diff --git a/lib/routes.js b/lib/routes.js index 54369b9..54dc039 100644 --- a/lib/routes.js +++ b/lib/routes.js @@ -9,7 +9,7 @@ included in all copies or substantial portions of this Source Code Form. */ const router = require('koa-route'); -const stringify = require('safe-stable-stringify'); +const stringify = require('json-stringify-safe'); const stripAnsi = require('strip-ansi'); const prep = (data) => stringify(data); diff --git a/package-lock.json b/package-lock.json index 7622953..67e6254 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6666,6 +6666,11 @@ "integrity": "sha1-nbe1lJatPzz+8wp1FC0tkwrXJlE=", "dev": true }, + "json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha1-Epai1Y/UXxmg9s4B1lcB4sc1tus=" + }, "jsonfile": { "version": "6.0.1", "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-6.0.1.tgz", @@ -9645,11 +9650,6 @@ "ret": "~0.1.10" } }, - "safe-stable-stringify": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/safe-stable-stringify/-/safe-stable-stringify-1.1.1.tgz", - "integrity": "sha512-ERq4hUjKDbJfE4+XtZLFPCDi8Vb1JqaxAPTxWFLBx8XcAlf9Bda/ZJdVezs/NAfsMQScyIlUMx+Yeu7P7rx5jw==" - }, "safer-buffer": { "version": "2.1.2", "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", diff --git a/package.json b/package.json index e288a4f..5854395 100644 --- a/package.json +++ b/package.json @@ -45,6 +45,7 @@ "http-proxy-middleware": "^1.0.3", "is-path-cwd": "^2.2.0", "is-promise": "^4.0.0", + "json-stringify-safe": "^5.0.1", "koa": "^2.5.3", "koa-compress": "^5.0.1", "koa-connect": "^2.0.1", @@ -56,7 +57,6 @@ "open": "^7.0.3", "p-defer": "^3.0.0", "rimraf": "^3.0.2", - "safe-stable-stringify": "^1.1.1", "strip-ansi": "^6.0.0", "superstruct": "^0.12.1", "webpack-plugin-ramdisk": "^0.1.2",