Skip to content

Commit 2c380d0

Browse files
authored
fix: memory leak regression (#207) (#209)
1 parent 5a5971f commit 2c380d0

File tree

3 files changed

+7
-7
lines changed

3 files changed

+7
-7
lines changed

lib/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
included in all copies or substantial portions of this Source Code Form.
1010
*/
1111
const router = require('koa-route');
12-
const stringify = require('safe-stable-stringify');
12+
const stringify = require('json-stringify-safe');
1313
const stripAnsi = require('strip-ansi');
1414

1515
const prep = (data) => stringify(data);

package-lock.json

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@
4545
"http-proxy-middleware": "^1.0.3",
4646
"is-path-cwd": "^2.2.0",
4747
"is-promise": "^4.0.0",
48+
"json-stringify-safe": "^5.0.1",
4849
"koa": "^2.5.3",
4950
"koa-compress": "^5.0.1",
5051
"koa-connect": "^2.0.1",
@@ -56,7 +57,6 @@
5657
"open": "^7.0.3",
5758
"p-defer": "^3.0.0",
5859
"rimraf": "^3.0.2",
59-
"safe-stable-stringify": "^1.1.1",
6060
"strip-ansi": "^6.0.0",
6161
"superstruct": "^0.12.1",
6262
"webpack-plugin-ramdisk": "^0.1.2",

0 commit comments

Comments
 (0)