json-server
Advanced tools
Comparing version 0.14.1 to 0.14.2
# Change Log | ||
## 0.14.2 - 2018-12-26 | ||
* Fix `db.getState is not a function` | ||
## 0.14.1 - 2018-12-25 | ||
@@ -4,0 +8,0 @@ |
@@ -15,3 +15,3 @@ "use strict"; | ||
const FileAsync = require('lowdb/adapters/FileAsync'); | ||
const FileSync = require('lowdb/adapters/FileSync'); | ||
@@ -35,3 +35,3 @@ const bodyParser = require('../body-parser'); | ||
if (typeof db === 'string') { | ||
db = low(new FileAsync(db)); | ||
db = low(new FileSync(db)); | ||
} else if (!_.has(db, '__chain__') || !_.has(db, '__wrapped__')) { | ||
@@ -38,0 +38,0 @@ db = low(new Memory()).setState(db); |
{ | ||
"name": "json-server", | ||
"version": "0.14.1", | ||
"version": "0.14.2", | ||
"description": "Serves JSON files through REST routes.", | ||
@@ -5,0 +5,0 @@ "main": "./lib/server/index.js", |
@@ -311,3 +311,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) | ||
There's many way to set up SSL in development. One simple way though is to use [hotel](https://github.com/typicode/hotel). | ||
There are many ways to set up SSL in development. One simple way is to use [hotel](https://github.com/typicode/hotel). | ||
@@ -314,0 +314,0 @@ ### Add custom routes |
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
100340