diff options
author | Kat Marchán <kzm@zkat.tech> | 2018-08-15 23:18:26 +0300 |
---|---|---|
committer | Kat Marchán <kzm@zkat.tech> | 2018-08-21 02:17:21 +0300 |
commit | a5e6f78e916873f7d18639ebdb8abd20479615a9 (patch) | |
tree | 2eb05079a1e8f9af626656f8e9393789a42b3bda /node_modules | |
parent | e8d5f441821553a31fc8cd751670663699d2c8ce (diff) |
JSONStream@1.3.4
Fixes memory leak problem when streaming large files (like legacy npm search)
Credit: @daern91
Diffstat (limited to 'node_modules')
-rwxr-xr-x | node_modules/JSONStream/index.js | 1 | ||||
-rw-r--r-- | node_modules/JSONStream/package.json | 22 | ||||
-rw-r--r-- | node_modules/JSONStream/test/fixtures/depth.json | 2 |
3 files changed, 13 insertions, 12 deletions
diff --git a/node_modules/JSONStream/index.js b/node_modules/JSONStream/index.js index 383e36e30..c3bf14f96 100755 --- a/node_modules/JSONStream/index.js +++ b/node_modules/JSONStream/index.js @@ -115,6 +115,7 @@ exports.parse = function (path, map) { stream.queue(data) } + if (this.value) delete this.value[this.key] for(var k in this.stack) if (!Object.isFrozen(this.stack[k])) this.stack[k].value = null diff --git a/node_modules/JSONStream/package.json b/node_modules/JSONStream/package.json index deeeb9d46..23588d31b 100644 --- a/node_modules/JSONStream/package.json +++ b/node_modules/JSONStream/package.json @@ -1,28 +1,28 @@ { - "_from": "JSONStream@1.3.3", - "_id": "JSONStream@1.3.3", + "_from": "JSONStream@1.3.4", + "_id": "JSONStream@1.3.4", "_inBundle": false, - "_integrity": "sha512-3Sp6WZZ/lXl+nTDoGpGWHEpTnnC6X5fnkolYZR6nwIfzbxxvA8utPWe1gCt7i0m9uVGsSz2IS8K8mJ7HmlduMg==", + "_integrity": "sha512-Y7vfi3I5oMOYIr+WxV8NZxDSwcbNgzdKYsTNInmycOq9bUYwGg9ryu57Wg5NLmCjqdFPNUmpMBo3kSJN9tCbXg==", "_location": "/JSONStream", "_phantomChildren": {}, "_requested": { "type": "version", "registry": true, - "raw": "JSONStream@1.3.3", + "raw": "JSONStream@1.3.4", "name": "JSONStream", "escapedName": "JSONStream", - "rawSpec": "1.3.3", + "rawSpec": "1.3.4", "saveSpec": null, - "fetchSpec": "1.3.3" + "fetchSpec": "1.3.4" }, "_requiredBy": [ "#USER", "/" ], - "_resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.3.tgz", - "_shasum": "27b4b8fbbfeab4e71bcf551e7f27be8d952239bf", - "_spec": "JSONStream@1.3.3", - "_where": "/Users/rebecca/code/npm", + "_resolved": "https://registry.npmjs.org/JSONStream/-/JSONStream-1.3.4.tgz", + "_shasum": "615bb2adb0cd34c8f4c447b5f6512fa1d8f16a2e", + "_spec": "JSONStream@1.3.4", + "_where": "/Users/zkat/Documents/code/work/npm", "author": { "name": "Dominic Tarr", "email": "dominic.tarr@gmail.com", @@ -71,5 +71,5 @@ "scripts": { "test": "set -e; for t in test/*.js; do echo '***' $t '***'; node $t; done" }, - "version": "1.3.3" + "version": "1.3.4" } diff --git a/node_modules/JSONStream/test/fixtures/depth.json b/node_modules/JSONStream/test/fixtures/depth.json index 682887dc2..9b4bfb937 100644 --- a/node_modules/JSONStream/test/fixtures/depth.json +++ b/node_modules/JSONStream/test/fixtures/depth.json @@ -12,4 +12,4 @@ {"blbl": [{}, {"a":0, "b":1, "value":"3"}, 10]}, {"value": 4} ] -}
\ No newline at end of file +} |