json-server
Advanced tools
Comparing version 0.17.0 to 0.17.1
"use strict"; | ||
const updateNotifier = require('update-notifier'); | ||
const yargs = require('yargs'); | ||
@@ -12,6 +10,2 @@ | ||
module.exports = function () { | ||
updateNotifier({ | ||
pkg | ||
}).notify(); | ||
const argv = yargs.config('config').usage('$0 [options] <source>').options({ | ||
@@ -18,0 +12,0 @@ port: { |
{ | ||
"name": "json-server", | ||
"version": "0.17.0", | ||
"version": "0.17.1", | ||
"description": "Get a full fake REST API with zero coding in less than 30 seconds", | ||
@@ -41,3 +41,2 @@ "main": "./lib/server/index.js", | ||
"server-destroy": "^1.0.1", | ||
"update-notifier": "^5.1.0", | ||
"yargs": "^17.0.1" | ||
@@ -44,0 +43,0 @@ }, |
@@ -14,3 +14,3 @@ # 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) | ||
* :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) | ||
* β [xv - a beautifully simple and capable test runner](https://github.com/typicode/xv) | ||
@@ -40,4 +40,4 @@ <p> </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 href="https://megafamous.com/buy-instagram-followers" target="_blank"> | ||
<img src="https://jsonplaceholder.typicode.com/megafamous.png" height="70px"> | ||
</a> | ||
@@ -48,18 +48,14 @@ </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> | ||
<h2 align="center">Silver sponsors π₯</h2> | ||
<p> </p> | ||
--- | ||
<p align="center"> | ||
<a href="https://cased.com" target="_blank"> | ||
<img src="https://user-images.githubusercontent.com/5502029/194441951-b7dca49d-efd6-496d-900b-288004717f11.png" height="55px"> | ||
</a> | ||
</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> | ||
@@ -488,2 +484,4 @@ | ||
To add custom options (eg. `foreginKeySuffix`) pass in an object as the second argument to `jsonServer.router('db.json', { foreginKeySuffix: '_id' })`. | ||
Please note also that `jsonServer.router()` can be used in existing Express projects. | ||
@@ -610,6 +608,8 @@ | ||
__`jsonServer.router([path|object])`__ | ||
__`jsonServer.router([path|object], [options])`__ | ||
Returns JSON Server router. | ||
* options (see [CLI usage](#cli-usage)) | ||
### Deployment | ||
@@ -616,0 +616,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
19
58111
1084
- Removedupdate-notifier@^5.1.0
- Removed@sindresorhus/is@0.14.0(transitive)
- Removed@szmarczak/http-timer@1.1.2(transitive)
- Removedansi-align@3.0.1(transitive)
- Removedboxen@5.1.2(transitive)
- Removedcacheable-request@6.1.0(transitive)
- Removedcamelcase@6.3.0(transitive)
- Removedci-info@2.0.0(transitive)
- Removedcli-boxes@2.2.1(transitive)
- Removedclone-response@1.0.3(transitive)
- Removedconfigstore@5.0.1(transitive)
- Removedcrypto-random-string@2.0.0(transitive)
- Removeddecompress-response@3.3.0(transitive)
- Removeddeep-extend@0.6.0(transitive)
- Removeddefer-to-connect@1.1.3(transitive)
- Removeddot-prop@5.3.0(transitive)
- Removedduplexer3@0.1.5(transitive)
- Removedend-of-stream@1.4.4(transitive)
- Removedescape-goat@2.1.1(transitive)
- Removedget-stream@4.1.05.2.0(transitive)
- Removedglobal-dirs@3.0.1(transitive)
- Removedgot@9.6.0(transitive)
- Removedhas-yarn@2.1.0(transitive)
- Removedhttp-cache-semantics@4.1.1(transitive)
- Removedimport-lazy@2.1.0(transitive)
- Removedimurmurhash@0.1.4(transitive)
- Removedini@1.3.82.0.0(transitive)
- Removedis-ci@2.0.0(transitive)
- Removedis-installed-globally@0.4.0(transitive)
- Removedis-npm@5.0.0(transitive)
- Removedis-obj@2.0.0(transitive)
- Removedis-path-inside@3.0.3(transitive)
- Removedis-typedarray@1.0.0(transitive)
- Removedis-yarn-global@0.3.0(transitive)
- Removedjson-buffer@3.0.0(transitive)
- Removedkeyv@3.1.0(transitive)
- Removedlatest-version@5.1.0(transitive)
- Removedlowercase-keys@1.0.12.0.0(transitive)
- Removedmake-dir@3.1.0(transitive)
- Removedmimic-response@1.0.1(transitive)
- Removedminimist@1.2.8(transitive)
- Removednormalize-url@4.5.1(transitive)
- Removedonce@1.4.0(transitive)
- Removedp-cancelable@1.1.0(transitive)
- Removedpackage-json@6.5.0(transitive)
- Removedprepend-http@2.0.0(transitive)
- Removedpump@3.0.2(transitive)
- Removedpupa@2.1.1(transitive)
- Removedrc@1.2.8(transitive)
- Removedregistry-auth-token@4.2.2(transitive)
- Removedregistry-url@5.1.0(transitive)
- Removedresponselike@1.0.2(transitive)
- Removedsemver@6.3.17.6.3(transitive)
- Removedsemver-diff@3.1.1(transitive)
- Removedsignal-exit@3.0.7(transitive)
- Removedstrip-json-comments@2.0.1(transitive)
- Removedto-readable-stream@1.0.0(transitive)
- Removedtype-fest@0.20.2(transitive)
- Removedtypedarray-to-buffer@3.1.5(transitive)
- Removedunique-string@2.0.0(transitive)
- Removedupdate-notifier@5.1.0(transitive)
- Removedurl-parse-lax@3.0.0(transitive)
- Removedwidest-line@3.1.0(transitive)
- Removedwrappy@1.0.2(transitive)
- Removedwrite-file-atomic@3.0.3(transitive)
- Removedxdg-basedir@4.0.0(transitive)