From abd8d12861e17ff8fe5e950d589c00d17625beae Mon Sep 17 00:00:00 2001 From: Yiyu He Date: Thu, 20 Sep 2018 18:09:06 +0800 Subject: [PATCH] deps: pin circular-json@0.5.5 to avoid output deprecate message (#3023) the author of `circular-json` recommended `flatted` to replace `circular-json` but `flatted`'s output is too different with JSON.stringify which don't fit our needs --- .autod.conf.js | 4 ++++ package.json | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.autod.conf.js b/.autod.conf.js index 01c406db87..17fdbcfafe 100644 --- a/.autod.conf.js +++ b/.autod.conf.js @@ -27,5 +27,9 @@ module.exports = { '@types/koa-router', '@types/urllib', ], + keep: [ + // circular-json > 0.5.5 will output some deprecate message, and we don't want to use flatted + 'circular-json', + ], test: 'scripts', }; diff --git a/package.json b/package.json index d9fd3d6523..b449e20a5e 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "accepts": "^1.3.5", "agentkeepalive": "^3.5.1", "cache-content-type": "^1.0.1", - "circular-json": "^0.5.5", + "circular-json": "0.5.5", "cluster-client": "^2.1.1", "debug": "^4.0.1", "delegates": "^1.0.0",