Skip to content

Commit 3daabb1

Browse files
committed
deps: minizlib@3.0.2
1 parent c7a7527 commit 3daabb1

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+273
-2405
lines changed

DEPENDENCIES.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,6 @@ graph LR;
429429
minipass-pipeline-->minipass;
430430
minipass-sized-->minipass;
431431
minizlib-->minipass;
432-
minizlib-->rimraf;
433432
node-gyp-->env-paths;
434433
node-gyp-->exponential-backoff;
435434
node-gyp-->graceful-fs;
@@ -710,7 +709,6 @@ graph LR;
710709
read-->mute-stream;
711710
read-package-json-fast-->json-parse-even-better-errors;
712711
read-package-json-fast-->npm-normalize-package-bin;
713-
rimraf-->glob;
714712
shebang-command-->shebang-regex;
715713
sigstore-->sigstore-bundle["@sigstore/bundle"];
716714
sigstore-->sigstore-core["@sigstore/core"];

node_modules/.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,6 @@
182182
!/read-package-json-fast
183183
!/read
184184
!/retry
185-
!/rimraf
186185
!/safer-buffer
187186
!/semver
188187
!/shebang-command

node_modules/cacache/node_modules/minizlib/dist/commonjs/index.js

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
11
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
9+
}) : (function(o, m, k, k2) {
10+
if (k2 === undefined) k2 = k;
11+
o[k2] = m[k];
12+
}));
13+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14+
Object.defineProperty(o, "default", { enumerable: true, value: v });
15+
}) : function(o, v) {
16+
o["default"] = v;
17+
});
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
235
var __importDefault = (this && this.__importDefault) || function (mod) {
336
return (mod && mod.__esModule) ? mod : { "default": mod };
437
};
@@ -7,11 +40,18 @@ exports.BrotliDecompress = exports.BrotliCompress = exports.Brotli = exports.Unz
740
const assert_1 = __importDefault(require("assert"));
841
const buffer_1 = require("buffer");
942
const minipass_1 = require("minipass");
10-
const zlib_1 = __importDefault(require("zlib"));
43+
const realZlib = __importStar(require("zlib"));
1144
const constants_js_1 = require("./constants.js");
1245
var constants_js_2 = require("./constants.js");
1346
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_js_2.constants; } });
1447
const OriginalBufferConcat = buffer_1.Buffer.concat;
48+
const desc = Object.getOwnPropertyDescriptor(buffer_1.Buffer, 'concat');
49+
const noop = (args) => args;
50+
const passthroughBufferConcat = desc?.writable === true || desc?.set !== undefined
51+
? (makeNoOp) => {
52+
buffer_1.Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
53+
}
54+
: (_) => { };
1555
const _superWrite = Symbol('_superWrite');
1656
class ZlibError extends Error {
1757
code;
@@ -69,7 +109,7 @@ class ZlibBase extends minipass_1.Minipass {
69109
try {
70110
// @types/node doesn't know that it exports the classes, but they're there
71111
//@ts-ignore
72-
this.#handle = new zlib_1.default[mode](opts);
112+
this.#handle = new realZlib[mode](opts);
73113
}
74114
catch (er) {
75115
// make sure that all errors get decorated properly
@@ -159,20 +199,20 @@ class ZlibBase extends minipass_1.Minipass {
159199
this.#handle.close = () => { };
160200
// It also calls `Buffer.concat()` at the end, which may be convenient
161201
// for some, but which we are not interested in as it slows us down.
162-
buffer_1.Buffer.concat = args => args;
202+
passthroughBufferConcat(true);
163203
let result = undefined;
164204
try {
165205
const flushFlag = typeof chunk[_flushFlag] === 'number'
166206
? chunk[_flushFlag]
167207
: this.#flushFlag;
168208
result = this.#handle._processChunk(chunk, flushFlag);
169209
// if we don't throw, reset it back how it was
170-
buffer_1.Buffer.concat = OriginalBufferConcat;
210+
passthroughBufferConcat(false);
171211
}
172212
catch (err) {
173213
// or if we do, put Buffer.concat() back before we emit error
174214
// Error events call into user code, which may call Buffer.concat()
175-
buffer_1.Buffer.concat = OriginalBufferConcat;
215+
passthroughBufferConcat(false);
176216
this.#onError(new ZlibError(err));
177217
}
178218
finally {

node_modules/cacache/node_modules/minizlib/dist/esm/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import assert from 'assert';
22
import { Buffer } from 'buffer';
33
import { Minipass } from 'minipass';
4-
import realZlib from 'zlib';
4+
import * as realZlib from 'zlib';
55
import { constants } from './constants.js';
66
export { constants } from './constants.js';
77
const OriginalBufferConcat = Buffer.concat;
8+
const desc = Object.getOwnPropertyDescriptor(Buffer, 'concat');
9+
const noop = (args) => args;
10+
const passthroughBufferConcat = desc?.writable === true || desc?.set !== undefined
11+
? (makeNoOp) => {
12+
Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
13+
}
14+
: (_) => { };
815
const _superWrite = Symbol('_superWrite');
916
export class ZlibError extends Error {
1017
code;
@@ -151,20 +158,20 @@ class ZlibBase extends Minipass {
151158
this.#handle.close = () => { };
152159
// It also calls `Buffer.concat()` at the end, which may be convenient
153160
// for some, but which we are not interested in as it slows us down.
154-
Buffer.concat = args => args;
161+
passthroughBufferConcat(true);
155162
let result = undefined;
156163
try {
157164
const flushFlag = typeof chunk[_flushFlag] === 'number'
158165
? chunk[_flushFlag]
159166
: this.#flushFlag;
160167
result = this.#handle._processChunk(chunk, flushFlag);
161168
// if we don't throw, reset it back how it was
162-
Buffer.concat = OriginalBufferConcat;
169+
passthroughBufferConcat(false);
163170
}
164171
catch (err) {
165172
// or if we do, put Buffer.concat() back before we emit error
166173
// Error events call into user code, which may call Buffer.concat()
167-
Buffer.concat = OriginalBufferConcat;
174+
passthroughBufferConcat(false);
168175
this.#onError(new ZlibError(err));
169176
}
170177
finally {

node_modules/cacache/node_modules/minizlib/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "minizlib",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
55
"main": "./dist/commonjs/index.js",
66
"dependencies": {
7-
"minipass": "^7.0.4",
8-
"rimraf": "^5.0.5"
7+
"minipass": "^7.1.2"
98
},
109
"scripts": {
1110
"prepare": "tshy",
@@ -34,11 +33,10 @@
3433
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
3534
"license": "MIT",
3635
"devDependencies": {
37-
"@types/node": "^20.11.29",
38-
"mkdirp": "^3.0.1",
39-
"tap": "^18.7.1",
40-
"tshy": "^1.12.0",
41-
"typedoc": "^0.25.12"
36+
"@types/node": "^22.13.14",
37+
"tap": "^21.1.0",
38+
"tshy": "^3.0.2",
39+
"typedoc": "^0.28.1"
4240
},
4341
"files": [
4442
"dist"
@@ -77,5 +75,6 @@
7775
"bracketSameLine": true,
7876
"arrowParens": "avoid",
7977
"endOfLine": "lf"
80-
}
78+
},
79+
"module": "./dist/esm/index.js"
8180
}

node_modules/minipass-fetch/node_modules/minizlib/dist/commonjs/index.js

Lines changed: 45 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,37 @@
11
"use strict";
2+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3+
if (k2 === undefined) k2 = k;
4+
var desc = Object.getOwnPropertyDescriptor(m, k);
5+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6+
desc = { enumerable: true, get: function() { return m[k]; } };
7+
}
8+
Object.defineProperty(o, k2, desc);
9+
}) : (function(o, m, k, k2) {
10+
if (k2 === undefined) k2 = k;
11+
o[k2] = m[k];
12+
}));
13+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14+
Object.defineProperty(o, "default", { enumerable: true, value: v });
15+
}) : function(o, v) {
16+
o["default"] = v;
17+
});
18+
var __importStar = (this && this.__importStar) || (function () {
19+
var ownKeys = function(o) {
20+
ownKeys = Object.getOwnPropertyNames || function (o) {
21+
var ar = [];
22+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23+
return ar;
24+
};
25+
return ownKeys(o);
26+
};
27+
return function (mod) {
28+
if (mod && mod.__esModule) return mod;
29+
var result = {};
30+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31+
__setModuleDefault(result, mod);
32+
return result;
33+
};
34+
})();
235
var __importDefault = (this && this.__importDefault) || function (mod) {
336
return (mod && mod.__esModule) ? mod : { "default": mod };
437
};
@@ -7,11 +40,18 @@ exports.BrotliDecompress = exports.BrotliCompress = exports.Brotli = exports.Unz
740
const assert_1 = __importDefault(require("assert"));
841
const buffer_1 = require("buffer");
942
const minipass_1 = require("minipass");
10-
const zlib_1 = __importDefault(require("zlib"));
43+
const realZlib = __importStar(require("zlib"));
1144
const constants_js_1 = require("./constants.js");
1245
var constants_js_2 = require("./constants.js");
1346
Object.defineProperty(exports, "constants", { enumerable: true, get: function () { return constants_js_2.constants; } });
1447
const OriginalBufferConcat = buffer_1.Buffer.concat;
48+
const desc = Object.getOwnPropertyDescriptor(buffer_1.Buffer, 'concat');
49+
const noop = (args) => args;
50+
const passthroughBufferConcat = desc?.writable === true || desc?.set !== undefined
51+
? (makeNoOp) => {
52+
buffer_1.Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
53+
}
54+
: (_) => { };
1555
const _superWrite = Symbol('_superWrite');
1656
class ZlibError extends Error {
1757
code;
@@ -69,7 +109,7 @@ class ZlibBase extends minipass_1.Minipass {
69109
try {
70110
// @types/node doesn't know that it exports the classes, but they're there
71111
//@ts-ignore
72-
this.#handle = new zlib_1.default[mode](opts);
112+
this.#handle = new realZlib[mode](opts);
73113
}
74114
catch (er) {
75115
// make sure that all errors get decorated properly
@@ -159,20 +199,20 @@ class ZlibBase extends minipass_1.Minipass {
159199
this.#handle.close = () => { };
160200
// It also calls `Buffer.concat()` at the end, which may be convenient
161201
// for some, but which we are not interested in as it slows us down.
162-
buffer_1.Buffer.concat = args => args;
202+
passthroughBufferConcat(true);
163203
let result = undefined;
164204
try {
165205
const flushFlag = typeof chunk[_flushFlag] === 'number'
166206
? chunk[_flushFlag]
167207
: this.#flushFlag;
168208
result = this.#handle._processChunk(chunk, flushFlag);
169209
// if we don't throw, reset it back how it was
170-
buffer_1.Buffer.concat = OriginalBufferConcat;
210+
passthroughBufferConcat(false);
171211
}
172212
catch (err) {
173213
// or if we do, put Buffer.concat() back before we emit error
174214
// Error events call into user code, which may call Buffer.concat()
175-
buffer_1.Buffer.concat = OriginalBufferConcat;
215+
passthroughBufferConcat(false);
176216
this.#onError(new ZlibError(err));
177217
}
178218
finally {

node_modules/minipass-fetch/node_modules/minizlib/dist/esm/index.js

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,17 @@
11
import assert from 'assert';
22
import { Buffer } from 'buffer';
33
import { Minipass } from 'minipass';
4-
import realZlib from 'zlib';
4+
import * as realZlib from 'zlib';
55
import { constants } from './constants.js';
66
export { constants } from './constants.js';
77
const OriginalBufferConcat = Buffer.concat;
8+
const desc = Object.getOwnPropertyDescriptor(Buffer, 'concat');
9+
const noop = (args) => args;
10+
const passthroughBufferConcat = desc?.writable === true || desc?.set !== undefined
11+
? (makeNoOp) => {
12+
Buffer.concat = makeNoOp ? noop : OriginalBufferConcat;
13+
}
14+
: (_) => { };
815
const _superWrite = Symbol('_superWrite');
916
export class ZlibError extends Error {
1017
code;
@@ -151,20 +158,20 @@ class ZlibBase extends Minipass {
151158
this.#handle.close = () => { };
152159
// It also calls `Buffer.concat()` at the end, which may be convenient
153160
// for some, but which we are not interested in as it slows us down.
154-
Buffer.concat = args => args;
161+
passthroughBufferConcat(true);
155162
let result = undefined;
156163
try {
157164
const flushFlag = typeof chunk[_flushFlag] === 'number'
158165
? chunk[_flushFlag]
159166
: this.#flushFlag;
160167
result = this.#handle._processChunk(chunk, flushFlag);
161168
// if we don't throw, reset it back how it was
162-
Buffer.concat = OriginalBufferConcat;
169+
passthroughBufferConcat(false);
163170
}
164171
catch (err) {
165172
// or if we do, put Buffer.concat() back before we emit error
166173
// Error events call into user code, which may call Buffer.concat()
167-
Buffer.concat = OriginalBufferConcat;
174+
passthroughBufferConcat(false);
168175
this.#onError(new ZlibError(err));
169176
}
170177
finally {

node_modules/minipass-fetch/node_modules/minizlib/package.json

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
11
{
22
"name": "minizlib",
3-
"version": "3.0.1",
3+
"version": "3.0.2",
44
"description": "A small fast zlib stream built on [minipass](http://npm.im/minipass) and Node.js's zlib binding.",
55
"main": "./dist/commonjs/index.js",
66
"dependencies": {
7-
"minipass": "^7.0.4",
8-
"rimraf": "^5.0.5"
7+
"minipass": "^7.1.2"
98
},
109
"scripts": {
1110
"prepare": "tshy",
@@ -34,11 +33,10 @@
3433
"author": "Isaac Z. Schlueter <i@izs.me> (http://blog.izs.me/)",
3534
"license": "MIT",
3635
"devDependencies": {
37-
"@types/node": "^20.11.29",
38-
"mkdirp": "^3.0.1",
39-
"tap": "^18.7.1",
40-
"tshy": "^1.12.0",
41-
"typedoc": "^0.25.12"
36+
"@types/node": "^22.13.14",
37+
"tap": "^21.1.0",
38+
"tshy": "^3.0.2",
39+
"typedoc": "^0.28.1"
4240
},
4341
"files": [
4442
"dist"
@@ -77,5 +75,6 @@
7775
"bracketSameLine": true,
7876
"arrowParens": "avoid",
7977
"endOfLine": "lf"
80-
}
78+
},
79+
"module": "./dist/esm/index.js"
8180
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy