Commits
Per https://github.com/Schniz/bs-faker/pull/42#issuecomment-565809527, changed getOrRaise to `Belt.Option.getExn`. Removes some of the `Js.Nullable.t` calls in bs-platform@7.0.1. I went and checked and it works. Obviously, this is bs.platform@7.01 nit picking. This will make the previous merge fully idiomatic bs.platform@7.01. Tests are passing.
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
This PR closes https://github.com/Schniz/bs-faker/issues/5
Now the latest `Faker.js` has no API called `soon` (I suppose), so I implemented APIs below:
```
date
past
future <- Added
between <- Added
recent <- Added
soon
month <- Added
weekday <- Added
```
> Now the latest `Faker.js` has no API called `soon` (I suppose)
```sh
~/dev/src/github.com/yamadayuki/bs-faker date-bindings
❯ node
> const date = require('faker').date
undefined
> date
_Date {
past: [Function: bound ],
future: [Function: bound ],
between: [Function: bound ],
recent: [Function: bound ],
month: [Function: bound ],
weekday: [Function: bound ] }
> date.soon
undefined
```
* Add bindings for `internet`
* Update binding coverage badge count (+16)
* Add readme for `internet`
* Add bindings for `hacker` module
* Increment bindings counter (+6)
* Add readme for `hacker`
* Extract Lorem to separate file
* Extract Commerce to separate file
* Extract Company to separate file
* Extract Database to separate file
* Extract Date to separate file
* Extract Phone to separate file
* Extract Random to separate file
* Extract System to separate file
* Extract Locale to separate files
* Extract Image to separate files
* Extract Internet to separate files
* Extract Name to separate files
* Keep only fake function and nullable variable in Faker module
* Remove nullable type from interface file
* Separate tests to files by module name
* Turn on "namespace" option in bsconfig.json
* Reformat bsconfig.json file
* Update README.md to reflect changes to file structure
* Update readme.md to use the new `BsFaker` root module name
* Update test descriptions to use new module name `BsFaker`
* Update readme
* Remove duplicate BsFaker.Internet section
* Fix reason snippet starting tag
* Add bindings for `commerce`
* Update readme (+7 in bindings coverage counter)
* Add binding for setLocale (+getLocale)
* Add Locale module to README
* Increment binding coverage counter (+1)
I didn't add bindings for `objectElement` because I don't see how it could be used from Reason side and I don't know how to type dynamic objects.
`float` and `hexaDecimal` functions are not included in `faker@4.1.0`, thus bindings for those are not included too.
closes #14
Fix issues with code formatting due to open comments
* Make sure package is built before publishing
* Updated the README
* Add bindings for Company module (closes #3)
* Add bindings for Lorem module
* Add Travis CI
* Support only newer versions of node
* Add build status tag
* Make it a link
* Closes #9: Add Faker.fake : string => Result.t(string, Js.Exn.t)
Per https://github.com/Schniz/bs-faker/pull/42#issuecomment-565809527, changed getOrRaise to `Belt.Option.getExn`. Removes some of the `Js.Nullable.t` calls in bs-platform@7.0.1. I went and checked and it works. Obviously, this is bs.platform@7.01 nit picking. This will make the previous merge fully idiomatic bs.platform@7.01. Tests are passing.
Co-authored-by: Gal Schlezinger <gal@spitfire.co.il>
This PR closes https://github.com/Schniz/bs-faker/issues/5
Now the latest `Faker.js` has no API called `soon` (I suppose), so I implemented APIs below:
```
date
past
future <- Added
between <- Added
recent <- Added
soon
month <- Added
weekday <- Added
```
> Now the latest `Faker.js` has no API called `soon` (I suppose)
```sh
~/dev/src/github.com/yamadayuki/bs-faker date-bindings
❯ node
> const date = require('faker').date
undefined
> date
_Date {
past: [Function: bound ],
future: [Function: bound ],
between: [Function: bound ],
recent: [Function: bound ],
month: [Function: bound ],
weekday: [Function: bound ] }
> date.soon
undefined
```
* Add bindings for `internet`
* Update binding coverage badge count (+16)
* Add readme for `internet`
* Add bindings for `hacker` module
* Increment bindings counter (+6)
* Add readme for `hacker`
* Extract Lorem to separate file
* Extract Commerce to separate file
* Extract Company to separate file
* Extract Database to separate file
* Extract Date to separate file
* Extract Phone to separate file
* Extract Random to separate file
* Extract System to separate file
* Extract Locale to separate files
* Extract Image to separate files
* Extract Internet to separate files
* Extract Name to separate files
* Keep only fake function and nullable variable in Faker module
* Remove nullable type from interface file
* Separate tests to files by module name
* Turn on "namespace" option in bsconfig.json
* Reformat bsconfig.json file
* Update README.md to reflect changes to file structure
* Update readme.md to use the new `BsFaker` root module name
* Update test descriptions to use new module name `BsFaker`
* Update readme
* Remove duplicate BsFaker.Internet section
* Fix reason snippet starting tag