json-server
Advanced tools
Comparing version 0.9.2 to 0.9.3
# Change Log | ||
## [Unreleased][Unreleased] | ||
## [0.9.3][2016-12-07] | ||
* Fix [#221](https://github.com/typicode/json-server/issues/221) nohup support | ||
* Fix [#420](https://github.com/typicode/json-server/issues/420) TypeError when watching db.json | ||
* Fix [#396](https://github.com/typicode/json-server/issues/396) PUT/PATCH saves the updated item with an id that has been converted to string | ||
## [0.9.2][2016-11-29] | ||
* Fix [#221](https://github.com/typicode/json-server/issues/221) `nohup` support | ||
* Fix [#420](https://github.com/typicode/json-server/issues/420) TypeError when watching `db.json` | ||
## [0.9.1][2016-11-21] | ||
@@ -9,0 +13,0 @@ |
{ | ||
"name": "json-server", | ||
"version": "0.9.2", | ||
"version": "0.9.3", | ||
"description": "Serves JSON files through REST routes.", | ||
@@ -27,3 +27,3 @@ "main": "./lib/server/index.js", | ||
"shortid": "^2.2.6", | ||
"underscore-db": "^0.12.1", | ||
"underscore-db": "^0.12.2", | ||
"update-notifier": "^1.0.2", | ||
@@ -30,0 +30,0 @@ "yargs": "^6.0.0" |
@@ -533,2 +533,3 @@ # JSON Server [![](https://travis-ci.org/typicode/json-server.svg?branch=master)](https://travis-ci.org/typicode/json-server) [![](https://badge.fury.io/js/json-server.svg)](http://badge.fury.io/js/json-server) [![](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/typicode/json-server?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge) | ||
* [JSON file generator](https://github.com/dfsq/json-server-init) | ||
* [JSON Server extension](https://github.com/maty21/json-server-extension) | ||
@@ -535,0 +536,0 @@ ## License |
@@ -558,2 +558,3 @@ const assert = require('assert') | ||
.put('/posts/1') | ||
.set('Accept', 'application/json') | ||
// body property omitted to test that the resource is replaced | ||
@@ -566,4 +567,7 @@ .send(post) | ||
if (err) return done(err) | ||
// TODO find a "supertest" way to test this | ||
// https://github.com/typicode/json-server/issues/396 | ||
assert.deepStrictEqual(res.body, post) | ||
// assert it was created in database too | ||
assert.deepEqual(db.posts[0], post) | ||
assert.deepStrictEqual(db.posts[0], post) | ||
done() | ||
@@ -593,4 +597,5 @@ }) | ||
if (err) return done(err) | ||
assert.deepStrictEqual(res.body, post) | ||
// assert it was created in database too | ||
assert.deepEqual(db.posts[0], {id: 1, body: 'bar'}) | ||
assert.deepStrictEqual(db.posts[0], {id: 1, body: 'bar'}) | ||
done() | ||
@@ -597,0 +602,0 @@ }) |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
90769
2036
538
Updatedunderscore-db@^0.12.2