ed2767416a
chore: lint
2023-02-22 22:34:39 +01:00
f1621c38fe
lint
2020-11-15 23:50:27 +01:00
cd716a2eec
fix lint errors
2019-09-02 18:21:43 +02:00
138a48e988
Update message
2018-10-18 14:42:18 +09:00
8471699c1d
Show proper error for PORT in use ( #864 )
...
Signed-off-by: VighneshKSP <ksp.vighnesh@gmail.com>
2018-10-18 14:33:22 +09:00
fda4e3e722
Merge branch 'master' of https://github.com/ruifortes/json-server into ruifortes-master
2018-09-11 23:47:47 +02:00
6cdcb32aac
CLI listen to 'localhost' by default, instead of '0.0.0.0'
2018-06-09 01:16:41 +02:00
4b36016e21
Fix server watch restart\n\nstart() is now called in destroy callback. Has watch callback is beeing called twice (on windows at least) reset server variable in start()
2018-06-05 11:10:28 +01:00
913473f304
Use latest lowdb
2018-06-04 20:18:17 +01:00
e9458a6409
webpack 4 + preact ( #786 )
2018-05-30 12:39:10 +02:00
6ca65ef982
#415 Missing body for POST request in middleware ( #576 )
...
* Missing postbody in middleware
Added body parser to server defaults.
* Test name change
Capitol letter is now lower case
* Missing postbody in middleware
Added body parser to server defaults.
* Test name change
Capitol letter is now lower case
* Added postbody as option to defaults
* Missing postbody in middleware
Added body parser to server defaults.
* Test name change
Capitol letter is now lower case
* Missing postbody in middleware
Added body parser to server defaults.
* Added postbody as option to defaults
* Setting bodyParser as enabled by default for cli
2017-07-14 02:41:55 +02:00
bd3fb1f8cd
Fix
2017-07-02 17:43:17 +02:00
13a231d794
Add prettier
2017-07-02 15:09:32 +02:00
9bff1b6f3d
Foreign key suffix ( #570 )
2017-06-28 23:05:21 +02:00
f1d7677d01
Allows for alternate foreign key attribute names, eg snake case (post_id). Defaults to 'Id' ( #556 )
2017-06-27 20:28:34 +02:00
0bac035258
Update
2016-12-08 23:29:43 +01:00
7cf8584f7c
Merge branch 'master' of https://github.com/zhangbg/json-server into zhangbg-master
2016-12-08 23:00:47 +01:00
485378d222
fixed the bug on windows: SyntaxError-Unexpected end of input
2016-11-29 18:55:30 +08:00
cb1d474ac6
Update run.js
2016-11-28 14:07:30 +01:00
b6b48facee
Fix standard error
2016-11-28 13:33:29 +01:00
c527e1ef87
Fix nohup issue
2016-11-28 13:30:43 +01:00
3f355b3ada
Check if file is not null when watching dir
2016-11-27 20:12:38 +01:00
2b26630ac6
v0.9.0 ( #404 )
...
* Remove automatic type conversion
* Remove body-parser from default middlewares
* Ignore lib
* ES2015
* Use shortid
* Add babel-register
* Update paths to ./lib
* Add .npmignore
* Update bin
* temp fix
* Fix bin
* Add message when creating default db
* Use fs.watch
* Fix operator existence test
* Fix 0.12 tests
* Update dependencies
* Update
* Increase timeout
* Fix 0.12 support
* 0.9.0-beta.1
* Fix missing example.json issue
* 0.9.0-beta.2
* Update message
* Update CHANGELOG.md
* Update lowdb dependency
* Add error message
* Update README.md
* Add database validation
* Update
* Update
* Fix tests
* Update
2016-11-12 01:59:43 +01:00
2879dceec2
Fixed the issue with watching under Win10 with Cygwin ( #356 )
2016-09-12 08:58:47 +02:00
e2d37ba67d
use yargs array for middlewares
2016-08-17 22:30:53 +02:00
e9d1da2ab7
Add --middlewares option ( #343 )
...
* Add --middlewares option
* Support multiple middlewares files
2016-08-14 05:51:12 +02:00
9155120566
Fix #320
2016-07-25 19:16:35 +02:00
706ab46d55
Use deep equal
2016-07-03 19:31:40 +02:00
988ddded82
style update to standard v7
2016-07-03 18:50:11 +02:00
bf45e62b7a
Update watch
2016-07-01 13:31:11 +02:00
32c76f4a3f
Update dependencies and watch
2016-06-30 12:36:51 +02:00
fc08f60898
refactor: update lowdb and lodash
2016-05-08 18:54:49 +02:00
42bb9cb3a4
Add switch for GZIP Content-Encoding
2016-04-14 19:56:00 +02:00
c50532dd75
Allow disabling of CORS
...
It is desirable to disable CORS for development purposes in order to
validate same-origin policy and web security concepts. Additionally,
json-server could be used to show proxy concepts.
This change adds a new CLI option `--no-cors` which disables CORS by not
adding the CORS middleware. The change is backwards compatible since the
default behavior, i.e. adding CORS headers is retained.
2016-01-17 08:27:05 +01:00
672393e915
Add --read-only option
2016-01-07 04:12:04 +01:00
9863de7d3b
Fix #177 force closing all currently open connections when reloading server
2015-12-28 20:16:22 +01:00
4e27a0fa36
feature: add optional --quiet
argument
...
Suppress log messages from output.
- Use logger middleware only if `--quiet` is `false`
2015-11-06 17:44:12 +01:00
38db6a1bed
Fail fast if snapshots directory doesn't exist
2015-10-15 21:52:17 +02:00
b2f3cae76d
Enhance output
2015-10-14 08:32:26 +02:00
f0e6c9ad0c
Add --snapshots and basic test
2015-10-14 08:28:02 +02:00
6c6333fa6d
Add static option
2015-09-19 10:48:56 +02:00
a49db2c5c3
Fix CLI regressions and refactor
2015-07-23 08:04:29 +02:00
f277035c52
Add --delay option
2015-07-21 21:04:50 +02:00
ccf67724e3
Refactor CLI and add tests
2015-07-15 18:44:33 +02:00