diff options
author | isaacs <i@izs.me> | 2020-07-23 20:58:04 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2020-07-29 21:53:42 +0300 |
commit | ad5e07d8bd86d1dbe2b03dc142f8c8d6f4828ffe (patch) | |
tree | 97b66f97d77f35774f10a5e3e9957b1897d150bb /node_modules/minizlib | |
parent | a16994cfdd2f255016f3d8ee60d03473d80eabd8 (diff) |
Full dependency reboot
Reinstall everything from a clean node_modules and package-lock.json
state.
Re-generate list of bundleDependencies and node_modules/.gitignore with
a script that does the right thing based on actual dependency state.
Diffstat (limited to 'node_modules/minizlib')
-rw-r--r-- | node_modules/minizlib/README.md | 7 | ||||
-rw-r--r-- | node_modules/minizlib/index.js | 24 | ||||
-rw-r--r-- | node_modules/minizlib/package.json | 32 |
3 files changed, 17 insertions, 46 deletions
diff --git a/node_modules/minizlib/README.md b/node_modules/minizlib/README.md index 80e067ab3..4097b8522 100644 --- a/node_modules/minizlib/README.md +++ b/node_modules/minizlib/README.md @@ -51,10 +51,3 @@ const decode = new zlib.BrotliDecompress() const output = whereToWriteTheDecodedData() input.pipe(decode).pipe(output) ``` - -## REPRODUCIBLE BUILDS - -To create reproducible gzip compressed files across different operating -systems, set `portable: true` in the options. This causes minizlib to set -the `OS` indicator in byte 9 of the extended gzip header to `0xFF` for -'unknown'. diff --git a/node_modules/minizlib/index.js b/node_modules/minizlib/index.js index c84bda1b5..295047b9c 100644 --- a/node_modules/minizlib/index.js +++ b/node_modules/minizlib/index.js @@ -9,7 +9,6 @@ const Minipass = require('minipass') const OriginalBufferConcat = Buffer.concat -const _superWrite = Symbol('_superWrite') class ZlibError extends Error { constructor (err) { super('zlib: ' + err.message) @@ -165,12 +164,12 @@ class ZlibBase extends Minipass { if (Array.isArray(result) && result.length > 0) { // The first buffer is always `handle._outBuffer`, which would be // re-used for later invocations; so, we always have to copy that one. - writeReturn = this[_superWrite](Buffer.from(result[0])) + writeReturn = super.write(Buffer.from(result[0])) for (let i = 1; i < result.length; i++) { - writeReturn = this[_superWrite](result[i]) + writeReturn = super.write(result[i]) } } else { - writeReturn = this[_superWrite](Buffer.from(result)) + writeReturn = super.write(Buffer.from(result)) } } @@ -178,10 +177,6 @@ class ZlibBase extends Minipass { cb() return writeReturn } - - [_superWrite] (data) { - return super.write(data) - } } class Zlib extends ZlibBase { @@ -248,22 +243,9 @@ class Inflate extends Zlib { } // gzip - bigger header, same deflate compression -const _portable = Symbol('_portable') class Gzip extends Zlib { constructor (opts) { super(opts, 'Gzip') - this[_portable] = opts && !!opts.portable - } - - [_superWrite] (data) { - if (!this[_portable]) - return super[_superWrite](data) - - // we'll always get the header emitted in one first chunk - // overwrite the OS indicator byte with 0xFF - this[_portable] = false - data[9] = 255 - return super[_superWrite](data) } } diff --git a/node_modules/minizlib/package.json b/node_modules/minizlib/package.json index e3107c0b7..5dbf11457 100644 --- a/node_modules/minizlib/package.json +++ b/node_modules/minizlib/package.json @@ -1,27 +1,27 @@ { - "_from": "minizlib@^2.1.0", - "_id": "minizlib@2.1.0", + "_from": "minizlib@^1.2.1", + "_id": "minizlib@1.3.3", "_inBundle": false, - "_integrity": "sha512-EzTZN/fjSvifSX0SlqUERCN39o6T40AMarPbv0MrarSFtIITCBh7bi+dU8nxGFHuqs9jdIAeoYoKuQAAASsPPA==", + "_integrity": "sha512-6ZYMOEnmVsdCeTJVE0W9ZD+pVnE8h9Hma/iOwwRDsdQoePpoX56/8B6z3P9VNwppJuBKNRuFDRNRqRWexT9G9Q==", "_location": "/minizlib", "_phantomChildren": {}, "_requested": { "type": "range", "registry": true, - "raw": "minizlib@^2.1.0", + "raw": "minizlib@^1.2.1", "name": "minizlib", "escapedName": "minizlib", - "rawSpec": "^2.1.0", + "rawSpec": "^1.2.1", "saveSpec": null, - "fetchSpec": "^2.1.0" + "fetchSpec": "^1.2.1" }, "_requiredBy": [ - "/tar" + "/node-gyp/tar" ], - "_resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.0.tgz", - "_shasum": "fd52c645301ef09a63a2c209697c294c6ce02cf3", - "_spec": "minizlib@^2.1.0", - "_where": "/Users/claudiahdz/npm/cli/node_modules/tar", + "_resolved": "https://registry.npmjs.org/minizlib/-/minizlib-1.3.3.tgz", + "_shasum": "2290de96818a34c29551c8a8d301216bd65a861d", + "_spec": "minizlib@^1.2.1", + "_where": "/Users/isaacs/dev/npm/cli/node_modules/node-gyp/node_modules/tar", "author": { "name": "Isaac Z. Schlueter", "email": "i@izs.me", @@ -32,16 +32,12 @@ }, "bundleDependencies": false, "dependencies": { - "minipass": "^3.0.0", - "yallist": "^4.0.0" + "minipass": "^2.9.0" }, "deprecated": false, "description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.", "devDependencies": { - "tap": "^14.6.9" - }, - "engines": { - "node": ">= 8" + "tap": "^12.0.1" }, "files": [ "index.js", @@ -71,5 +67,5 @@ "preversion": "npm test", "test": "tap test/*.js --100 -J" }, - "version": "2.1.0" + "version": "1.3.3" } |