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.16.3 to 0.17.0

2

lib/server/router/plural.js
"use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

@@ -5,0 +5,0 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

"use strict";
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) { symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); } keys.push.apply(keys, symbols); } return keys; }

@@ -5,0 +5,0 @@ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }

{
"name": "json-server",
"version": "0.16.3",
"version": "0.17.0",
"description": "Get a full fake REST API with zero coding in less than 30 seconds",

@@ -12,3 +12,3 @@ "main": "./lib/server/index.js",

"scripts": {
"_postinstall": "husky install",
"prepare": "husky install",
"test": "npm run build && cross-env NODE_ENV=test jest && npm run lint",

@@ -21,8 +21,7 @@ "start": "babel-node -- src/cli/bin db.json -r routes.json",

"postversion": "git push && git push --tags",
"prepublish": "npm test && npm run build && pkg-ok && pinst --disable",
"postpublish": "pinst --enable"
"prepublish": "npm test && npm run build"
},
"dependencies": {
"body-parser": "^1.19.0",
"chalk": "^4.1.0",
"chalk": "^4.1.2",
"compression": "^1.7.4",

@@ -33,15 +32,15 @@ "connect-pause": "^0.1.1",

"express": "^4.17.1",
"express-urlrewrite": "^1.3.0",
"express-urlrewrite": "^1.4.0",
"json-parse-helpfulerror": "^1.0.3",
"lodash": "^4.17.20",
"lodash-id": "^0.14.0",
"lodash": "^4.17.21",
"lodash-id": "^0.14.1",
"lowdb": "^1.0.0",
"method-override": "^3.0.0",
"morgan": "^1.10.0",
"nanoid": "^3.1.16",
"nanoid": "^3.1.23",
"please-upgrade-node": "^3.2.0",
"pluralize": "^8.0.0",
"server-destroy": "^1.0.1",
"update-notifier": "^5.0.1",
"yargs": "^16.1.1"
"update-notifier": "^5.1.0",
"yargs": "^17.0.1"
},

@@ -55,3 +54,3 @@ "devDependencies": {

"eslint": "^7.13.0",
"eslint-config-prettier": "^6.15.0",
"eslint-config-prettier": "^8.3.0",
"eslint-config-standard": "^16.0.1",

@@ -63,3 +62,3 @@ "eslint-plugin-import": "^2.22.1",

"eslint-plugin-standard": "^4.1.0",
"husky": "^5.0.0-beta.0",
"husky": "^6.0.0",
"jest": "^26.6.3",

@@ -70,5 +69,3 @@ "markdown-toc": "^1.2.0",

"os-tmpdir": "^2.0.0",
"pinst": "^2.1.1",
"pkg-ok": "^2.3.1",
"prettier": "^2.1.2",
"prettier": "^2.3.2",
"rimraf": "^3.0.2",

@@ -106,3 +103,3 @@ "server-ready": "^0.3.1",

"engines": {
"node": ">=10"
"node": ">=12"
},

@@ -109,0 +106,0 @@ "jest": {

@@ -1,2 +0,2 @@

# 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)
# JSON Server [![Node.js CI](https://github.com/typicode/json-server/actions/workflows/node.js.yml/badge.svg?branch=master)](https://github.com/typicode/json-server/actions/workflows/node.js.yml)

@@ -13,3 +13,4 @@ Get a full fake REST API with __zero coding__ in __less than 30 seconds__ (seriously)

* :dog: [husky - Git hooks made easy](https://github.com/typicode/husky)
* :hotel: [hotel - developer tool with local .localhost domain and https out of the box](https://github.com/typicode/hotel)
* :owl: [lowdb - local JSON database](https://github.com/typicode/lowdb)
* :x: :heavy_check_mark: [xv - the most minimalist test runner](https://github.com/typicode/xv)

@@ -28,5 +29,7 @@ <p>&nbsp;</p>

<p>&nbsp;</p>
<p align="center">
<a href="https://mockend.com/" target="_blank">
<img src="https://i.imgur.com/Gwaqv3q.png" height="70px">
<img src="https://jsonplaceholder.typicode.com/mockend.svg" height="70px">
</a>

@@ -37,4 +40,36 @@ </p>

<p align="center">
<a href="https://www.deta.sh/?ref=typicode" target="_blank">
<img src="https://jsonplaceholder.typicode.com/deta.svg" height="70px">
</a>
</p>
<p>&nbsp;</p>
<p align="center">
<a href="https://uibakery.io/?utm_source=json_server&utm_medium=sponsor&utm_campaign=github" target="_blank">
<img src="https://jsonplaceholder.typicode.com/ui_bakery.jpg" height="70px">
</a>
</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
---
From generating an API to importing a CSV into postgres, Retool’s range of 20+ developer utilities is a go-to resource when building apps. [Check it out now](https://retool.com/utilities/)
---
<p>&nbsp;</p>
<p>&nbsp;</p>
[Become a sponsor and have your company logo here](https://github.com/users/typicode/sponsorship)
## Sponsor
__Please help me build OSS__ 👉 [GitHub Sponsors](https://github.com/sponsors/typicode) :heart:
## Table of contents

@@ -41,0 +76,0 @@

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