diff --git a/.autod.conf.js b/.autod.conf.js index 17fdbcfafe..01c406db87 100644 --- a/.autod.conf.js +++ b/.autod.conf.js @@ -27,9 +27,5 @@ 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/lib/egg.js b/lib/egg.js index 826b3b55f9..80e5bb33ac 100644 --- a/lib/egg.js +++ b/lib/egg.js @@ -9,7 +9,7 @@ const cluster = require('cluster-client'); const extend = require('extend2'); const ContextLogger = require('egg-logger').EggContextLogger; const ContextCookies = require('egg-cookies'); -const CircularJSON = require('circular-json'); +const CircularJSON = require('circular-json-for-egg'); const ContextHttpClient = require('./core/context_httpclient'); const Messenger = require('./core/messenger'); const DNSCacheHttpClient = require('./core/dnscache_httpclient'); diff --git a/package.json b/package.json index d1699970c1..1058101aaf 100644 --- a/package.json +++ b/package.json @@ -20,7 +20,7 @@ "accepts": "^1.3.5", "agentkeepalive": "^4.0.0", "cache-content-type": "^1.0.1", - "circular-json": "0.5.5", + "circular-json-for-egg": "^1.0.0", "cluster-client": "^2.1.1", "debug": "^4.0.1", "delegates": "^1.0.0",