json-server
Advanced tools
Comparing version 0.16.3 to 0.17.0
"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> </p> | ||
<p> </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> </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> </p> | ||
<p> </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> </p> | ||
<p> </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 @@ |
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
24
642
58192
26
+ Addedcliui@8.0.1(transitive)
+ Addedyargs@17.7.2(transitive)
+ Addedyargs-parser@21.1.1(transitive)
- Removedcliui@7.0.4(transitive)
- Removedyargs@16.2.0(transitive)
- Removedyargs-parser@20.2.9(transitive)
Updatedchalk@^4.1.2
Updatedexpress-urlrewrite@^1.4.0
Updatedlodash@^4.17.21
Updatedlodash-id@^0.14.1
Updatednanoid@^3.1.23
Updatedupdate-notifier@^5.1.0
Updatedyargs@^17.0.1