Socket
Socket
Sign inDemoInstall

json-server

Package Overview
Dependencies
Maintainers
1
Versions
154
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

json-server - npm Package Compare versions

Comparing version 0.14.1 to 0.14.2

4

CHANGELOG.md
# 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 @@

4

lib/server/router/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚑️ by Socket Inc