@slicemachine/manager 0.5.0 → 0.5.1-dev-next-release.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/_node_modules/cross-spawn/index.cjs +10 -7
- package/dist/_node_modules/cross-spawn/index.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/index.js +12 -9
- package/dist/_node_modules/cross-spawn/index.js.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs +2 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/enoent.js +1 -1
- package/dist/_node_modules/cross-spawn/lib/parse.cjs +4 -3
- package/dist/_node_modules/cross-spawn/lib/parse.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/parse.js +3 -3
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs +3 -2
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/readShebang.js +2 -2
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs +5 -5
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.cjs.map +1 -1
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js +3 -4
- package/dist/_node_modules/cross-spawn/lib/util/resolveCommand.js.map +1 -1
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/core.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/main.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/realtime.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/human-signals/build/src/signals.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/is-stream/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/mimic-fn/index.js.map +1 -0
- package/dist/_node_modules/{npm-run-path → execa/_node_modules/npm-run-path}/index.cjs +1 -1
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.cjs.map +1 -0
- package/dist/_node_modules/{npm-run-path → execa/_node_modules/npm-run-path}/index.js +1 -1
- package/dist/_node_modules/execa/_node_modules/npm-run-path/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/onetime/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/path-key/index.js.map +1 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.cjs.map +1 -0
- package/dist/_node_modules/execa/_node_modules/strip-final-newline/index.js.map +1 -0
- package/dist/_node_modules/execa/index.cjs +5 -6
- package/dist/_node_modules/execa/index.cjs.map +1 -1
- package/dist/_node_modules/execa/index.js +5 -6
- package/dist/_node_modules/execa/index.js.map +1 -1
- package/dist/_node_modules/execa/lib/error.cjs +1 -1
- package/dist/_node_modules/execa/lib/error.js +1 -1
- package/dist/_node_modules/execa/lib/kill.cjs +2 -3
- package/dist/_node_modules/execa/lib/kill.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/kill.js +2 -3
- package/dist/_node_modules/execa/lib/kill.js.map +1 -1
- package/dist/_node_modules/execa/lib/pipe.cjs +1 -1
- package/dist/_node_modules/execa/lib/pipe.js +1 -1
- package/dist/_node_modules/execa/lib/stream.cjs +4 -5
- package/dist/_node_modules/execa/lib/stream.cjs.map +1 -1
- package/dist/_node_modules/execa/lib/stream.js +4 -5
- package/dist/_node_modules/execa/lib/stream.js.map +1 -1
- package/dist/_node_modules/file-type/core.cjs +54 -0
- package/dist/_node_modules/file-type/core.cjs.map +1 -1
- package/dist/_node_modules/file-type/core.js +54 -0
- package/dist/_node_modules/file-type/core.js.map +1 -1
- package/dist/_node_modules/file-type/supported.cjs +308 -0
- package/dist/_node_modules/file-type/supported.cjs.map +1 -0
- package/dist/_node_modules/file-type/supported.js +308 -0
- package/dist/_node_modules/file-type/supported.js.map +1 -0
- package/dist/_node_modules/fp-ts/es6/Either.cjs.map +1 -1
- package/dist/_node_modules/fp-ts/es6/Either.js.map +1 -1
- package/dist/_node_modules/fp-ts/es6/function.cjs +11 -0
- package/dist/_node_modules/fp-ts/es6/function.cjs.map +1 -1
- package/dist/_node_modules/fp-ts/es6/function.js +11 -0
- package/dist/_node_modules/fp-ts/es6/function.js.map +1 -1
- package/dist/_node_modules/fp-ts/es6/internal.cjs.map +1 -1
- package/dist/_node_modules/fp-ts/es6/internal.js.map +1 -1
- package/dist/_node_modules/get-stream/buffer-stream.cjs +2 -1
- package/dist/_node_modules/get-stream/buffer-stream.cjs.map +1 -1
- package/dist/_node_modules/get-stream/buffer-stream.js +1 -1
- package/dist/_node_modules/get-stream/index.cjs +8 -5
- package/dist/_node_modules/get-stream/index.cjs.map +1 -1
- package/dist/_node_modules/get-stream/index.js +10 -7
- package/dist/_node_modules/get-stream/index.js.map +1 -1
- package/dist/_node_modules/isexe/index.cjs +2 -1
- package/dist/_node_modules/isexe/index.cjs.map +1 -1
- package/dist/_node_modules/isexe/index.js +1 -1
- package/dist/_node_modules/merge-stream/index.cjs +3 -1
- package/dist/_node_modules/merge-stream/index.cjs.map +1 -1
- package/dist/_node_modules/merge-stream/index.js +3 -1
- package/dist/_node_modules/merge-stream/index.js.map +1 -1
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.cjs.map +1 -0
- package/dist/_node_modules/p-limit/_node_modules/yocto-queue/index.js.map +1 -0
- package/dist/_node_modules/p-limit/index.cjs +1 -1
- package/dist/_node_modules/p-limit/index.js +1 -1
- package/dist/_node_modules/path-key/index.cjs +4 -2
- package/dist/_node_modules/path-key/index.cjs.map +1 -1
- package/dist/_node_modules/path-key/index.js +4 -3
- package/dist/_node_modules/path-key/index.js.map +1 -1
- package/dist/_node_modules/shebang-command/index.cjs +3 -2
- package/dist/_node_modules/shebang-command/index.cjs.map +1 -1
- package/dist/_node_modules/shebang-command/index.js +2 -2
- package/dist/_node_modules/shebang-regex/index.cjs +2 -1
- package/dist/_node_modules/shebang-regex/index.cjs.map +1 -1
- package/dist/_node_modules/shebang-regex/index.js +1 -1
- package/dist/_node_modules/signal-exit/index.cjs +6 -4
- package/dist/_node_modules/signal-exit/index.cjs.map +1 -1
- package/dist/_node_modules/signal-exit/index.js +8 -6
- package/dist/_node_modules/signal-exit/index.js.map +1 -1
- package/dist/_node_modules/signal-exit/signals.cjs +2 -2
- package/dist/_node_modules/signal-exit/signals.js +3 -3
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.cjs +3 -3
- package/dist/_node_modules/web-streams-polyfill/dist/ponyfill.es2018.js +4 -4
- package/dist/_node_modules/which/which.cjs +3 -2
- package/dist/_node_modules/which/which.cjs.map +1 -1
- package/dist/_node_modules/which/which.js +2 -2
- package/dist/_virtual/_commonjsHelpers.cjs +4 -0
- package/dist/_virtual/_commonjsHelpers.cjs.map +1 -1
- package/dist/_virtual/_commonjsHelpers.js +5 -1
- package/dist/_virtual/_commonjsHelpers.js.map +1 -1
- package/dist/_virtual/index.cjs +1 -9
- package/dist/_virtual/index.cjs.map +1 -1
- package/dist/_virtual/index.js +2 -11
- package/dist/_virtual/index.js.map +1 -1
- package/dist/_virtual/index2.cjs +1 -9
- package/dist/_virtual/index2.cjs.map +1 -1
- package/dist/_virtual/index2.js +2 -11
- package/dist/_virtual/index2.js.map +1 -1
- package/dist/_virtual/index3.cjs +1 -9
- package/dist/_virtual/index3.cjs.map +1 -1
- package/dist/_virtual/index3.js +2 -11
- package/dist/_virtual/index3.js.map +1 -1
- package/dist/_virtual/index4.cjs +1 -9
- package/dist/_virtual/index4.cjs.map +1 -1
- package/dist/_virtual/index4.js +2 -11
- package/dist/_virtual/index4.js.map +1 -1
- package/dist/_virtual/ponyfill.es2018.cjs +1 -9
- package/dist/_virtual/ponyfill.es2018.cjs.map +1 -1
- package/dist/_virtual/ponyfill.es2018.js +2 -11
- package/dist/_virtual/ponyfill.es2018.js.map +1 -1
- package/dist/_virtual/signals.cjs +1 -9
- package/dist/_virtual/signals.cjs.map +1 -1
- package/dist/_virtual/signals.js +2 -11
- package/dist/_virtual/signals.js.map +1 -1
- package/dist/lib/installDependencies.cjs +6 -6
- package/dist/lib/installDependencies.cjs.map +1 -1
- package/dist/lib/installDependencies.js +6 -6
- package/dist/lib/installDependencies.js.map +1 -1
- package/dist/managers/screenshots/ScreenshotsManager.cjs +1 -1
- package/dist/managers/screenshots/ScreenshotsManager.js +1 -1
- package/package.json +38 -40
- package/src/lib/installDependencies.ts +6 -6
- package/dist/_node_modules/human-signals/build/src/core.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/core.js.map +0 -1
- package/dist/_node_modules/human-signals/build/src/main.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/main.js.map +0 -1
- package/dist/_node_modules/human-signals/build/src/realtime.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/realtime.js.map +0 -1
- package/dist/_node_modules/human-signals/build/src/signals.cjs.map +0 -1
- package/dist/_node_modules/human-signals/build/src/signals.js.map +0 -1
- package/dist/_node_modules/is-stream/index.cjs.map +0 -1
- package/dist/_node_modules/is-stream/index.js.map +0 -1
- package/dist/_node_modules/mimic-fn/index.cjs.map +0 -1
- package/dist/_node_modules/mimic-fn/index.js.map +0 -1
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.cjs.map +0 -1
- package/dist/_node_modules/npm-run-path/_node_modules/path-key/index.js.map +0 -1
- package/dist/_node_modules/npm-run-path/index.cjs.map +0 -1
- package/dist/_node_modules/npm-run-path/index.js.map +0 -1
- package/dist/_node_modules/onetime/index.cjs.map +0 -1
- package/dist/_node_modules/onetime/index.js.map +0 -1
- package/dist/_node_modules/strip-final-newline/index.cjs.map +0 -1
- package/dist/_node_modules/strip-final-newline/index.js.map +0 -1
- package/dist/_node_modules/yocto-queue/index.cjs.map +0 -1
- package/dist/_node_modules/yocto-queue/index.js.map +0 -1
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/core.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/core.js +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/main.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/main.js +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/realtime.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/realtime.js +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/signals.cjs +0 -0
- /package/dist/_node_modules/{human-signals → execa/_node_modules/human-signals}/build/src/signals.js +0 -0
- /package/dist/_node_modules/{is-stream → execa/_node_modules/is-stream}/index.cjs +0 -0
- /package/dist/_node_modules/{is-stream → execa/_node_modules/is-stream}/index.js +0 -0
- /package/dist/_node_modules/{mimic-fn → execa/_node_modules/mimic-fn}/index.cjs +0 -0
- /package/dist/_node_modules/{mimic-fn → execa/_node_modules/mimic-fn}/index.js +0 -0
- /package/dist/_node_modules/{onetime → execa/_node_modules/onetime}/index.cjs +0 -0
- /package/dist/_node_modules/{onetime → execa/_node_modules/onetime}/index.js +0 -0
- /package/dist/_node_modules/{npm-run-path → execa}/_node_modules/path-key/index.cjs +0 -0
- /package/dist/_node_modules/{npm-run-path → execa}/_node_modules/path-key/index.js +0 -0
- /package/dist/_node_modules/{strip-final-newline → execa/_node_modules/strip-final-newline}/index.cjs +0 -0
- /package/dist/_node_modules/{strip-final-newline → execa/_node_modules/strip-final-newline}/index.js +0 -0
- /package/dist/_node_modules/{yocto-queue → p-limit/_node_modules/yocto-queue}/index.cjs +0 -0
- /package/dist/_node_modules/{yocto-queue → p-limit/_node_modules/yocto-queue}/index.js +0 -0
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const require$$0 = require("stream");
|
|
3
4
|
const { PassThrough: PassThroughStream } = require$$0;
|
|
4
5
|
var bufferStream = (options) => {
|
|
@@ -38,5 +39,5 @@ var bufferStream = (options) => {
|
|
|
38
39
|
stream.getBufferedLength = () => length;
|
|
39
40
|
return stream;
|
|
40
41
|
};
|
|
41
|
-
|
|
42
|
+
exports.bufferStream = bufferStream;
|
|
42
43
|
//# sourceMappingURL=buffer-stream.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"buffer-stream.cjs","sources":["../../../../../node_modules/get-stream/buffer-stream.js"],"sourcesContent":["'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"buffer-stream.cjs","sources":["../../../../../node_modules/get-stream/buffer-stream.js"],"sourcesContent":["'use strict';\nconst {PassThrough: PassThroughStream} = require('stream');\n\nmodule.exports = options => {\n\toptions = {...options};\n\n\tconst {array} = options;\n\tlet {encoding} = options;\n\tconst isBuffer = encoding === 'buffer';\n\tlet objectMode = false;\n\n\tif (array) {\n\t\tobjectMode = !(encoding || isBuffer);\n\t} else {\n\t\tencoding = encoding || 'utf8';\n\t}\n\n\tif (isBuffer) {\n\t\tencoding = null;\n\t}\n\n\tconst stream = new PassThroughStream({objectMode});\n\n\tif (encoding) {\n\t\tstream.setEncoding(encoding);\n\t}\n\n\tlet length = 0;\n\tconst chunks = [];\n\n\tstream.on('data', chunk => {\n\t\tchunks.push(chunk);\n\n\t\tif (objectMode) {\n\t\t\tlength = chunks.length;\n\t\t} else {\n\t\t\tlength += chunk.length;\n\t\t}\n\t});\n\n\tstream.getBufferedValue = () => {\n\t\tif (array) {\n\t\t\treturn chunks;\n\t\t}\n\n\t\treturn isBuffer ? Buffer.concat(chunks, length) : chunks.join('');\n\t};\n\n\tstream.getBufferedLength = () => length;\n\n\treturn stream;\n};\n"],"names":[],"mappings":";;;AACA,MAAM,EAAC,aAAa,kBAAiB,IAAI;IAEzC,eAAiB,aAAW;AAC3B,YAAU,EAAC,GAAG,QAAO;AAErB,QAAM,EAAC,MAAK,IAAI;AAChB,MAAI,EAAC,SAAQ,IAAI;AACjB,QAAM,WAAW,aAAa;AAC9B,MAAI,aAAa;AAEjB,MAAI,OAAO;AACV,iBAAa,EAAE,YAAY;AAAA,EAC7B,OAAQ;AACN,eAAW,YAAY;AAAA,EACvB;AAED,MAAI,UAAU;AACb,eAAW;AAAA,EACX;AAED,QAAM,SAAS,IAAI,kBAAkB,EAAC,WAAU,CAAC;AAEjD,MAAI,UAAU;AACb,WAAO,YAAY,QAAQ;AAAA,EAC3B;AAED,MAAI,SAAS;AACb,QAAM,SAAS,CAAA;AAEf,SAAO,GAAG,QAAQ,WAAS;AAC1B,WAAO,KAAK,KAAK;AAEjB,QAAI,YAAY;AACf,eAAS,OAAO;AAAA,IACnB,OAAS;AACN,gBAAU,MAAM;AAAA,IAChB;AAAA,EACH,CAAE;AAED,SAAO,mBAAmB,MAAM;AAC/B,QAAI,OAAO;AACV,aAAO;AAAA,IACP;AAED,WAAO,WAAW,OAAO,OAAO,QAAQ,MAAM,IAAI,OAAO,KAAK,EAAE;AAAA,EAClE;AAEC,SAAO,oBAAoB,MAAM;AAEjC,SAAO;AACR;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
|
2
3
|
const index = require("../../_virtual/index3.cjs");
|
|
3
4
|
const require$$0$1 = require("buffer");
|
|
4
5
|
const require$$0 = require("stream");
|
|
@@ -7,7 +8,7 @@ const bufferStream$1 = require("./buffer-stream.cjs");
|
|
|
7
8
|
const { constants: BufferConstants } = require$$0$1;
|
|
8
9
|
const stream = require$$0;
|
|
9
10
|
const { promisify } = require$$2;
|
|
10
|
-
const bufferStream = bufferStream$1;
|
|
11
|
+
const bufferStream = bufferStream$1.bufferStream;
|
|
11
12
|
const streamPipelinePromisified = promisify(stream.pipeline);
|
|
12
13
|
class MaxBufferError extends Error {
|
|
13
14
|
constructor() {
|
|
@@ -49,8 +50,10 @@ async function getStream(inputStream, options) {
|
|
|
49
50
|
return stream2.getBufferedValue();
|
|
50
51
|
}
|
|
51
52
|
index.__module.exports = getStream;
|
|
52
|
-
index.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" });
|
|
53
|
-
index.exports.array = (stream2, options) => getStream(stream2, { ...options, array: true });
|
|
54
|
-
index.exports.MaxBufferError = MaxBufferError;
|
|
55
|
-
|
|
53
|
+
index.__module.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" });
|
|
54
|
+
index.__module.exports.array = (stream2, options) => getStream(stream2, { ...options, array: true });
|
|
55
|
+
index.__module.exports.MaxBufferError = MaxBufferError;
|
|
56
|
+
var getStreamExports = index.__module.exports;
|
|
57
|
+
const getStream$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(getStreamExports);
|
|
58
|
+
module.exports = getStream$1;
|
|
56
59
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/get-stream/index.js"],"sourcesContent":["'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n"],"names":["require$$0","require$$1","require$$3","stream","getStreamModule"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/get-stream/index.js"],"sourcesContent":["'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n"],"names":["require$$0","require$$1","require$$3","stream","getStreamModule"],"mappings":";;;;;;;AACA,MAAM,EAAC,WAAW,gBAAe,IAAIA;AACrC,MAAM,SAASC;AACf,MAAM,EAAC,UAAS,IAAI;AACpB,MAAM,eAAeC,eAAAA;AAErB,MAAM,4BAA4B,UAAU,OAAO,QAAQ;AAE3D,MAAM,uBAAuB,MAAM;AAAA,EAClC,cAAc;AACb,UAAM,oBAAoB;AAC1B,SAAK,OAAO;AAAA,EACZ;AACF;AAEA,eAAe,UAAU,aAAa,SAAS;AAC9C,MAAI,CAAC,aAAa;AACjB,UAAM,IAAI,MAAM,mBAAmB;AAAA,EACnC;AAED,YAAU;AAAA,IACT,WAAW;AAAA,IACX,GAAG;AAAA,EACL;AAEC,QAAM,EAAC,UAAS,IAAI;AACpB,QAAMC,UAAS,aAAa,OAAO;AAEnC,QAAM,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,gBAAgB,WAAS;AAE9B,UAAI,SAASA,QAAO,kBAAiB,KAAM,gBAAgB,YAAY;AACtE,cAAM,eAAeA,QAAO;MAC5B;AAED,aAAO,KAAK;AAAA,IACf;AAEE,KAAC,YAAY;AACZ,UAAI;AACH,cAAM,0BAA0B,aAAaA,OAAM;AACnD;MACA,SAAQ,OAAP;AACD,sBAAc,KAAK;AAAA,MACnB;AAAA,IACJ;AAEE,IAAAA,QAAO,GAAG,QAAQ,MAAM;AACvB,UAAIA,QAAO,kBAAmB,IAAG,WAAW;AAC3C,sBAAc,IAAI,eAAc,CAAE;AAAA,MAClC;AAAA,IACJ,CAAG;AAAA,EACH,CAAE;AAED,SAAOA,QAAO;AACf;AAEAC,MAAAA,SAAc,UAAG;AACjBA,MAAA,SAAA,QAAA,SAAwB,CAACD,SAAQ,YAAY,UAAUA,SAAQ,EAAC,GAAG,SAAS,UAAU,SAAQ,CAAC;AAC/FC,MAAA,SAAA,QAAA,QAAuB,CAACD,SAAQ,YAAY,UAAUA,SAAQ,EAAC,GAAG,SAAS,OAAO,KAAI,CAAC;AACvFC,MAAAA,SAAA,QAAA,iBAAgC;;;;","x_google_ignoreList":[0]}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as getStream$2 } from "../../_virtual/index3.js";
|
|
2
3
|
import require$$0$1 from "buffer";
|
|
3
4
|
import require$$0 from "stream";
|
|
4
5
|
import require$$2 from "util";
|
|
5
|
-
import bufferStream$1 from "./buffer-stream.js";
|
|
6
|
+
import { b as bufferStream$1 } from "./buffer-stream.js";
|
|
6
7
|
const { constants: BufferConstants } = require$$0$1;
|
|
7
8
|
const stream = require$$0;
|
|
8
9
|
const { promisify } = require$$2;
|
|
@@ -47,11 +48,13 @@ async function getStream(inputStream, options) {
|
|
|
47
48
|
});
|
|
48
49
|
return stream2.getBufferedValue();
|
|
49
50
|
}
|
|
50
|
-
getStream$
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
51
|
+
getStream$2.exports = getStream;
|
|
52
|
+
getStream$2.exports.buffer = (stream2, options) => getStream(stream2, { ...options, encoding: "buffer" });
|
|
53
|
+
getStream$2.exports.array = (stream2, options) => getStream(stream2, { ...options, array: true });
|
|
54
|
+
getStream$2.exports.MaxBufferError = MaxBufferError;
|
|
55
|
+
var getStreamExports = getStream$2.exports;
|
|
56
|
+
const getStream$1 = /* @__PURE__ */ getDefaultExportFromCjs(getStreamExports);
|
|
54
57
|
export {
|
|
55
|
-
|
|
58
|
+
getStream$1 as default
|
|
56
59
|
};
|
|
57
60
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/get-stream/index.js"],"sourcesContent":["'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n"],"names":["require$$0","require$$1","require$$3","stream","getStreamModule"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/get-stream/index.js"],"sourcesContent":["'use strict';\nconst {constants: BufferConstants} = require('buffer');\nconst stream = require('stream');\nconst {promisify} = require('util');\nconst bufferStream = require('./buffer-stream');\n\nconst streamPipelinePromisified = promisify(stream.pipeline);\n\nclass MaxBufferError extends Error {\n\tconstructor() {\n\t\tsuper('maxBuffer exceeded');\n\t\tthis.name = 'MaxBufferError';\n\t}\n}\n\nasync function getStream(inputStream, options) {\n\tif (!inputStream) {\n\t\tthrow new Error('Expected a stream');\n\t}\n\n\toptions = {\n\t\tmaxBuffer: Infinity,\n\t\t...options\n\t};\n\n\tconst {maxBuffer} = options;\n\tconst stream = bufferStream(options);\n\n\tawait new Promise((resolve, reject) => {\n\t\tconst rejectPromise = error => {\n\t\t\t// Don't retrieve an oversized buffer.\n\t\t\tif (error && stream.getBufferedLength() <= BufferConstants.MAX_LENGTH) {\n\t\t\t\terror.bufferedData = stream.getBufferedValue();\n\t\t\t}\n\n\t\t\treject(error);\n\t\t};\n\n\t\t(async () => {\n\t\t\ttry {\n\t\t\t\tawait streamPipelinePromisified(inputStream, stream);\n\t\t\t\tresolve();\n\t\t\t} catch (error) {\n\t\t\t\trejectPromise(error);\n\t\t\t}\n\t\t})();\n\n\t\tstream.on('data', () => {\n\t\t\tif (stream.getBufferedLength() > maxBuffer) {\n\t\t\t\trejectPromise(new MaxBufferError());\n\t\t\t}\n\t\t});\n\t});\n\n\treturn stream.getBufferedValue();\n}\n\nmodule.exports = getStream;\nmodule.exports.buffer = (stream, options) => getStream(stream, {...options, encoding: 'buffer'});\nmodule.exports.array = (stream, options) => getStream(stream, {...options, array: true});\nmodule.exports.MaxBufferError = MaxBufferError;\n"],"names":["require$$0","require$$1","require$$3","stream","getStreamModule"],"mappings":";;;;;;AACA,MAAM,EAAC,WAAW,gBAAe,IAAIA;AACrC,MAAM,SAASC;AACf,MAAM,EAAC,UAAS,IAAI;AACpB,MAAM,eAAeC;AAErB,MAAM,4BAA4B,UAAU,OAAO,QAAQ;AAE3D,MAAM,uBAAuB,MAAM;AAAA,EAClC,cAAc;AACb,UAAM,oBAAoB;AAC1B,SAAK,OAAO;AAAA,EACZ;AACF;AAEA,eAAe,UAAU,aAAa,SAAS;AAC9C,MAAI,CAAC,aAAa;AACjB,UAAM,IAAI,MAAM,mBAAmB;AAAA,EACnC;AAED,YAAU;AAAA,IACT,WAAW;AAAA,IACX,GAAG;AAAA,EACL;AAEC,QAAM,EAAC,UAAS,IAAI;AACpB,QAAMC,UAAS,aAAa,OAAO;AAEnC,QAAM,IAAI,QAAQ,CAAC,SAAS,WAAW;AACtC,UAAM,gBAAgB,WAAS;AAE9B,UAAI,SAASA,QAAO,kBAAiB,KAAM,gBAAgB,YAAY;AACtE,cAAM,eAAeA,QAAO;MAC5B;AAED,aAAO,KAAK;AAAA,IACf;AAEE,KAAC,YAAY;AACZ,UAAI;AACH,cAAM,0BAA0B,aAAaA,OAAM;AACnD;MACA,SAAQ,OAAP;AACD,sBAAc,KAAK;AAAA,MACnB;AAAA,IACJ;AAEE,IAAAA,QAAO,GAAG,QAAQ,MAAM;AACvB,UAAIA,QAAO,kBAAmB,IAAG,WAAW;AAC3C,sBAAc,IAAI,eAAc,CAAE;AAAA,MAClC;AAAA,IACJ,CAAG;AAAA,EACH,CAAE;AAED,SAAOA,QAAO;AACf;AAEAC,YAAc,UAAG;AACjBA,YAAA,QAAA,SAAwB,CAACD,SAAQ,YAAY,UAAUA,SAAQ,EAAC,GAAG,SAAS,UAAU,SAAQ,CAAC;AAC/FC,YAAA,QAAA,QAAuB,CAACD,SAAQ,YAAY,UAAUA,SAAQ,EAAC,GAAG,SAAS,OAAO,KAAI,CAAC;AACvFC,YAAA,QAAA,iBAAgC;;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
|
3
4
|
require("fs");
|
|
4
5
|
const windows = require("./windows.cjs");
|
|
@@ -51,5 +52,5 @@ function sync(path, options) {
|
|
|
51
52
|
}
|
|
52
53
|
}
|
|
53
54
|
}
|
|
54
|
-
|
|
55
|
+
exports.isexe_1 = isexe_1;
|
|
55
56
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/isexe/index.js"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n"],"names":["global","require$$1","require$$2"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/isexe/index.js"],"sourcesContent":["var fs = require('fs')\nvar core\nif (process.platform === 'win32' || global.TESTING_WINDOWS) {\n core = require('./windows.js')\n} else {\n core = require('./mode.js')\n}\n\nmodule.exports = isexe\nisexe.sync = sync\n\nfunction isexe (path, options, cb) {\n if (typeof options === 'function') {\n cb = options\n options = {}\n }\n\n if (!cb) {\n if (typeof Promise !== 'function') {\n throw new TypeError('callback not provided')\n }\n\n return new Promise(function (resolve, reject) {\n isexe(path, options || {}, function (er, is) {\n if (er) {\n reject(er)\n } else {\n resolve(is)\n }\n })\n })\n }\n\n core(path, options || {}, function (er, is) {\n // ignore EACCES because that just means we aren't allowed to run it\n if (er) {\n if (er.code === 'EACCES' || options && options.ignoreErrors) {\n er = null\n is = false\n }\n }\n cb(er, is)\n })\n}\n\nfunction sync (path, options) {\n // my kingdom for a filtered catch\n try {\n return core.sync(path, options || {})\n } catch (er) {\n if (options && options.ignoreErrors || er.code === 'EACCES') {\n return false\n } else {\n throw er\n }\n }\n}\n"],"names":["global","require$$1","require$$2"],"mappings":";;;;;;AACA,IAAI;AACJ,IAAI,QAAQ,aAAa,WAAWA,iBAAAA,eAAO,iBAAiB;AAC1D,SAAOC,QAAAA,UAAuB;AAChC,OAAO;AACL,SAAOC,KAAAA,UAAoB;AAC7B;AAEA,IAAA,UAAiB;AACjB,MAAM,OAAO;AAEb,SAAS,MAAO,MAAM,SAAS,IAAI;AACjC,MAAI,OAAO,YAAY,YAAY;AACjC,SAAK;AACL,cAAU,CAAE;AAAA,EACb;AAED,MAAI,CAAC,IAAI;AACP,QAAI,OAAO,YAAY,YAAY;AACjC,YAAM,IAAI,UAAU,uBAAuB;AAAA,IAC5C;AAED,WAAO,IAAI,QAAQ,SAAU,SAAS,QAAQ;AAC5C,YAAM,MAAM,WAAW,CAAE,GAAE,SAAU,IAAI,IAAI;AAC3C,YAAI,IAAI;AACN,iBAAO,EAAE;AAAA,QACnB,OAAe;AACL,kBAAQ,EAAE;AAAA,QACX;AAAA,MACT,CAAO;AAAA,IACP,CAAK;AAAA,EACF;AAED,OAAK,MAAM,WAAW,CAAE,GAAE,SAAU,IAAI,IAAI;AAE1C,QAAI,IAAI;AACN,UAAI,GAAG,SAAS,YAAY,WAAW,QAAQ,cAAc;AAC3D,aAAK;AACL,aAAK;AAAA,MACN;AAAA,IACF;AACD,OAAG,IAAI,EAAE;AAAA,EACb,CAAG;AACH;AAEA,SAAS,KAAM,MAAM,SAAS;AAE5B,MAAI;AACF,WAAO,KAAK,KAAK,MAAM,WAAW,CAAA,CAAE;AAAA,EACrC,SAAQ,IAAP;AACA,QAAI,WAAW,QAAQ,gBAAgB,GAAG,SAAS,UAAU;AAC3D,aAAO;AAAA,IACb,OAAW;AACL,YAAM;AAAA,IACP;AAAA,EACF;AACH;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
const _commonjsHelpers = require("../../_virtual/_commonjsHelpers.cjs");
|
|
2
3
|
const require$$0 = require("stream");
|
|
3
4
|
const { PassThrough } = require$$0;
|
|
4
5
|
var mergeStream = function() {
|
|
@@ -33,5 +34,6 @@ var mergeStream = function() {
|
|
|
33
34
|
}
|
|
34
35
|
}
|
|
35
36
|
};
|
|
36
|
-
|
|
37
|
+
const mergeStream$1 = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(mergeStream);
|
|
38
|
+
module.exports = mergeStream$1;
|
|
37
39
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/merge-stream/index.js"],"sourcesContent":["'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/merge-stream/index.js"],"sourcesContent":["'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n"],"names":[],"mappings":";;;AAEA,MAAM,EAAE,YAAa,IAAG;AAExB,IAAA,cAAiB,WAA0B;AACzC,MAAI,UAAU,CAAE;AAChB,MAAI,SAAU,IAAI,YAAY,EAAC,YAAY,KAAI,CAAC;AAEhD,SAAO,gBAAgB,CAAC;AAExB,SAAO,MAAM;AACb,SAAO,UAAU;AAEjB,SAAO,GAAG,UAAU,MAAM;AAE1B,QAAM,UAAU,MAAM,KAAK,SAAS,EAAE,QAAQ,GAAG;AAEjD,SAAO;AAEP,WAAS,IAAK,QAAQ;AACpB,QAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,aAAO,QAAQ,GAAG;AAClB,aAAO;AAAA,IACR;AAED,YAAQ,KAAK,MAAM;AACnB,WAAO,KAAK,OAAO,OAAO,KAAK,MAAM,MAAM,CAAC;AAC5C,WAAO,KAAK,SAAS,OAAO,KAAK,KAAK,QAAQ,OAAO,CAAC;AACtD,WAAO,KAAK,QAAQ,EAAC,KAAK,MAAK,CAAC;AAChC,WAAO;AAAA,EACR;AAED,WAAS,UAAW;AAClB,WAAO,QAAQ,UAAU;AAAA,EAC1B;AAED,WAAS,OAAQ,QAAQ;AACvB,cAAU,QAAQ,OAAO,SAAU,IAAI;AAAE,aAAO,OAAO;AAAA,KAAQ;AAC/D,QAAI,CAAC,QAAQ,UAAU,OAAO,UAAU;AAAE,aAAO;IAAO;AAAA,EACzD;AACH;;;","x_google_ignoreList":[0]}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
|
1
2
|
import require$$0 from "stream";
|
|
2
3
|
const { PassThrough } = require$$0;
|
|
3
4
|
var mergeStream = function() {
|
|
@@ -32,7 +33,8 @@ var mergeStream = function() {
|
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
};
|
|
36
|
+
const mergeStream$1 = /* @__PURE__ */ getDefaultExportFromCjs(mergeStream);
|
|
35
37
|
export {
|
|
36
|
-
mergeStream as default
|
|
38
|
+
mergeStream$1 as default
|
|
37
39
|
};
|
|
38
40
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/merge-stream/index.js"],"sourcesContent":["'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/merge-stream/index.js"],"sourcesContent":["'use strict';\n\nconst { PassThrough } = require('stream');\n\nmodule.exports = function (/*streams...*/) {\n var sources = []\n var output = new PassThrough({objectMode: true})\n\n output.setMaxListeners(0)\n\n output.add = add\n output.isEmpty = isEmpty\n\n output.on('unpipe', remove)\n\n Array.prototype.slice.call(arguments).forEach(add)\n\n return output\n\n function add (source) {\n if (Array.isArray(source)) {\n source.forEach(add)\n return this\n }\n\n sources.push(source);\n source.once('end', remove.bind(null, source))\n source.once('error', output.emit.bind(output, 'error'))\n source.pipe(output, {end: false})\n return this\n }\n\n function isEmpty () {\n return sources.length == 0;\n }\n\n function remove (source) {\n sources = sources.filter(function (it) { return it !== source })\n if (!sources.length && output.readable) { output.end() }\n }\n}\n"],"names":[],"mappings":";;AAEA,MAAM,EAAE,YAAa,IAAG;AAExB,IAAA,cAAiB,WAA0B;AACzC,MAAI,UAAU,CAAE;AAChB,MAAI,SAAU,IAAI,YAAY,EAAC,YAAY,KAAI,CAAC;AAEhD,SAAO,gBAAgB,CAAC;AAExB,SAAO,MAAM;AACb,SAAO,UAAU;AAEjB,SAAO,GAAG,UAAU,MAAM;AAE1B,QAAM,UAAU,MAAM,KAAK,SAAS,EAAE,QAAQ,GAAG;AAEjD,SAAO;AAEP,WAAS,IAAK,QAAQ;AACpB,QAAI,MAAM,QAAQ,MAAM,GAAG;AACzB,aAAO,QAAQ,GAAG;AAClB,aAAO;AAAA,IACR;AAED,YAAQ,KAAK,MAAM;AACnB,WAAO,KAAK,OAAO,OAAO,KAAK,MAAM,MAAM,CAAC;AAC5C,WAAO,KAAK,SAAS,OAAO,KAAK,KAAK,QAAQ,OAAO,CAAC;AACtD,WAAO,KAAK,QAAQ,EAAC,KAAK,MAAK,CAAC;AAChC,WAAO;AAAA,EACR;AAED,WAAS,UAAW;AAClB,WAAO,QAAQ,UAAU;AAAA,EAC1B;AAED,WAAS,OAAQ,QAAQ;AACvB,cAAU,QAAQ,OAAO,SAAU,IAAI;AAAE,aAAO,OAAO;AAAA,KAAQ;AAC/D,QAAI,CAAC,QAAQ,UAAU,OAAO,UAAU;AAAE,aAAO;IAAO;AAAA,EACzD;AACH;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../../../node_modules/p-limit/node_modules/yocto-queue/index.js"],"sourcesContent":["/*\nHow it works:\n`this.#head` is an instance of `Node` which keeps track of its current value and nests another instance of `Node` that keeps the value that comes after it. When a value is provided to `.enqueue()`, the code needs to iterate through `this.#head`, going deeper and deeper to find the last value. However, iterating through every single item is slow. This problem is solved by saving a reference to the last value as `this.#tail` so that it can reference it to add a new value.\n*/\n\nclass Node {\n\tvalue;\n\tnext;\n\n\tconstructor(value) {\n\t\tthis.value = value;\n\t}\n}\n\nexport default class Queue {\n\t#head;\n\t#tail;\n\t#size;\n\n\tconstructor() {\n\t\tthis.clear();\n\t}\n\n\tenqueue(value) {\n\t\tconst node = new Node(value);\n\n\t\tif (this.#head) {\n\t\t\tthis.#tail.next = node;\n\t\t\tthis.#tail = node;\n\t\t} else {\n\t\t\tthis.#head = node;\n\t\t\tthis.#tail = node;\n\t\t}\n\n\t\tthis.#size++;\n\t}\n\n\tdequeue() {\n\t\tconst current = this.#head;\n\t\tif (!current) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.#head = this.#head.next;\n\t\tthis.#size--;\n\t\treturn current.value;\n\t}\n\n\tclear() {\n\t\tthis.#head = undefined;\n\t\tthis.#tail = undefined;\n\t\tthis.#size = 0;\n\t}\n\n\tget size() {\n\t\treturn this.#size;\n\t}\n\n\t* [Symbol.iterator]() {\n\t\tlet current = this.#head;\n\n\t\twhile (current) {\n\t\t\tyield current.value;\n\t\t\tcurrent = current.next;\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAKA,MAAM,KAAK;AAAA,EAIV,YAAY,OAAO;AAHnB;AACA;AAGC,SAAK,QAAQ;AAAA,EACb;AACF;AAEe,MAAM,MAAM;AAAA,EAK1B,cAAc;AAJd;AACA;AACA;AAGC,SAAK,MAAK;AAAA,EACV;AAAA,EAED,QAAQ,OAAO;AACd,UAAM,OAAO,IAAI,KAAK,KAAK;AAE3B,QAAI,mBAAK,QAAO;AACf,yBAAK,OAAM,OAAO;AAClB,yBAAK,OAAQ;AAAA,IAChB,OAAS;AACN,yBAAK,OAAQ;AACb,yBAAK,OAAQ;AAAA,IACb;AAED,2BAAK,OAAL;AAAA,EACA;AAAA,EAED,UAAU;AACT,UAAM,UAAU,mBAAK;AACrB,QAAI,CAAC,SAAS;AACb;AAAA,IACA;AAED,uBAAK,OAAQ,mBAAK,OAAM;AACxB,2BAAK,OAAL;AACA,WAAO,QAAQ;AAAA,EACf;AAAA,EAED,QAAQ;AACP,uBAAK,OAAQ;AACb,uBAAK,OAAQ;AACb,uBAAK,OAAQ;AAAA,EACb;AAAA,EAED,IAAI,OAAO;AACV,WAAO,mBAAK;AAAA,EACZ;AAAA,EAED,EAAG,OAAO,QAAQ,IAAI;AACrB,QAAI,UAAU,mBAAK;AAEnB,WAAO,SAAS;AACf,YAAM,QAAQ;AACd,gBAAU,QAAQ;AAAA,IAClB;AAAA,EACD;AACF;AAnDC;AACA;AACA;;","x_google_ignoreList":[0]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../node_modules/p-limit/node_modules/yocto-queue/index.js"],"sourcesContent":["/*\nHow it works:\n`this.#head` is an instance of `Node` which keeps track of its current value and nests another instance of `Node` that keeps the value that comes after it. When a value is provided to `.enqueue()`, the code needs to iterate through `this.#head`, going deeper and deeper to find the last value. However, iterating through every single item is slow. This problem is solved by saving a reference to the last value as `this.#tail` so that it can reference it to add a new value.\n*/\n\nclass Node {\n\tvalue;\n\tnext;\n\n\tconstructor(value) {\n\t\tthis.value = value;\n\t}\n}\n\nexport default class Queue {\n\t#head;\n\t#tail;\n\t#size;\n\n\tconstructor() {\n\t\tthis.clear();\n\t}\n\n\tenqueue(value) {\n\t\tconst node = new Node(value);\n\n\t\tif (this.#head) {\n\t\t\tthis.#tail.next = node;\n\t\t\tthis.#tail = node;\n\t\t} else {\n\t\t\tthis.#head = node;\n\t\t\tthis.#tail = node;\n\t\t}\n\n\t\tthis.#size++;\n\t}\n\n\tdequeue() {\n\t\tconst current = this.#head;\n\t\tif (!current) {\n\t\t\treturn;\n\t\t}\n\n\t\tthis.#head = this.#head.next;\n\t\tthis.#size--;\n\t\treturn current.value;\n\t}\n\n\tclear() {\n\t\tthis.#head = undefined;\n\t\tthis.#tail = undefined;\n\t\tthis.#size = 0;\n\t}\n\n\tget size() {\n\t\treturn this.#size;\n\t}\n\n\t* [Symbol.iterator]() {\n\t\tlet current = this.#head;\n\n\t\twhile (current) {\n\t\t\tyield current.value;\n\t\t\tcurrent = current.next;\n\t\t}\n\t}\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAKA,MAAM,KAAK;AAAA,EAIV,YAAY,OAAO;AAHnB;AACA;AAGC,SAAK,QAAQ;AAAA,EACb;AACF;AAEe,MAAM,MAAM;AAAA,EAK1B,cAAc;AAJd;AACA;AACA;AAGC,SAAK,MAAK;AAAA,EACV;AAAA,EAED,QAAQ,OAAO;AACd,UAAM,OAAO,IAAI,KAAK,KAAK;AAE3B,QAAI,mBAAK,QAAO;AACf,yBAAK,OAAM,OAAO;AAClB,yBAAK,OAAQ;AAAA,IAChB,OAAS;AACN,yBAAK,OAAQ;AACb,yBAAK,OAAQ;AAAA,IACb;AAED,2BAAK,OAAL;AAAA,EACA;AAAA,EAED,UAAU;AACT,UAAM,UAAU,mBAAK;AACrB,QAAI,CAAC,SAAS;AACb;AAAA,IACA;AAED,uBAAK,OAAQ,mBAAK,OAAM;AACxB,2BAAK,OAAL;AACA,WAAO,QAAQ;AAAA,EACf;AAAA,EAED,QAAQ;AACP,uBAAK,OAAQ;AACb,uBAAK,OAAQ;AACb,uBAAK,OAAQ;AAAA,EACb;AAAA,EAED,IAAI,OAAO;AACV,WAAO,mBAAK;AAAA,EACZ;AAAA,EAED,EAAG,OAAO,QAAQ,IAAI;AACrB,QAAI,UAAU,mBAAK;AAEnB,WAAO,SAAS;AACf,YAAM,QAAQ;AACd,gBAAU,QAAQ;AAAA,IAClB;AAAA,EACD;AACF;AAnDC;AACA;AACA;","x_google_ignoreList":[0]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
const index = require(
|
|
2
|
+
const index = require('./_node_modules/yocto-queue/index.cjs');
|
|
3
3
|
function pLimit(concurrency) {
|
|
4
4
|
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
5
5
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import Queue from
|
|
1
|
+
import Queue from './_node_modules/yocto-queue/index.js';
|
|
2
2
|
function pLimit(concurrency) {
|
|
3
3
|
if (!((Number.isInteger(concurrency) || concurrency === Number.POSITIVE_INFINITY) && concurrency > 0)) {
|
|
4
4
|
throw new TypeError("Expected `concurrency` to be a number from 1 and up");
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const index = require("../../_virtual/index4.cjs");
|
|
3
4
|
const pathKey = (options = {}) => {
|
|
4
5
|
const environment = options.env || process.env;
|
|
@@ -9,6 +10,7 @@ const pathKey = (options = {}) => {
|
|
|
9
10
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
10
11
|
};
|
|
11
12
|
index.__module.exports = pathKey;
|
|
12
|
-
index.exports.default = pathKey;
|
|
13
|
-
|
|
13
|
+
index.__module.exports.default = pathKey;
|
|
14
|
+
var pathKeyExports = index.__module.exports;
|
|
15
|
+
exports.pathKeyExports = pathKeyExports;
|
|
14
16
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/path-key/index.js"],"sourcesContent":["'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n"],"names":["pathKeyModule"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/path-key/index.js"],"sourcesContent":["'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n"],"names":["pathKeyModule"],"mappings":";;;AAEA,MAAM,UAAU,CAAC,UAAU,OAAO;AACjC,QAAM,cAAc,QAAQ,OAAO,QAAQ;AAC3C,QAAM,WAAW,QAAQ,YAAY,QAAQ;AAE7C,MAAI,aAAa,SAAS;AACzB,WAAO;AAAA,EACP;AAED,SAAO,OAAO,KAAK,WAAW,EAAE,QAAO,EAAG,KAAK,SAAO,IAAI,YAAW,MAAO,MAAM,KAAK;AACxF;AAEAA,MAAAA,SAAc,UAAG;AAEjBA,MAAAA,SAAA,QAAA,UAAyB;;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __module as pathKey$1 } from "../../_virtual/index4.js";
|
|
2
2
|
const pathKey = (options = {}) => {
|
|
3
3
|
const environment = options.env || process.env;
|
|
4
4
|
const platform = options.platform || process.platform;
|
|
@@ -8,8 +8,9 @@ const pathKey = (options = {}) => {
|
|
|
8
8
|
return Object.keys(environment).reverse().find((key) => key.toUpperCase() === "PATH") || "Path";
|
|
9
9
|
};
|
|
10
10
|
pathKey$1.exports = pathKey;
|
|
11
|
-
|
|
11
|
+
pathKey$1.exports.default = pathKey;
|
|
12
|
+
var pathKeyExports = pathKey$1.exports;
|
|
12
13
|
export {
|
|
13
|
-
pathKeyExports as
|
|
14
|
+
pathKeyExports as p
|
|
14
15
|
};
|
|
15
16
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/path-key/index.js"],"sourcesContent":["'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n"],"names":["pathKeyModule"
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/path-key/index.js"],"sourcesContent":["'use strict';\n\nconst pathKey = (options = {}) => {\n\tconst environment = options.env || process.env;\n\tconst platform = options.platform || process.platform;\n\n\tif (platform !== 'win32') {\n\t\treturn 'PATH';\n\t}\n\n\treturn Object.keys(environment).reverse().find(key => key.toUpperCase() === 'PATH') || 'Path';\n};\n\nmodule.exports = pathKey;\n// TODO: Remove this for the next major release\nmodule.exports.default = pathKey;\n"],"names":["pathKeyModule"],"mappings":";AAEA,MAAM,UAAU,CAAC,UAAU,OAAO;AACjC,QAAM,cAAc,QAAQ,OAAO,QAAQ;AAC3C,QAAM,WAAW,QAAQ,YAAY,QAAQ;AAE7C,MAAI,aAAa,SAAS;AACzB,WAAO;AAAA,EACP;AAED,SAAO,OAAO,KAAK,WAAW,EAAE,QAAO,EAAG,KAAK,SAAO,IAAI,YAAW,MAAO,MAAM,KAAK;AACxF;AAEAA,UAAc,UAAG;AAEjBA,UAAA,QAAA,UAAyB;;","x_google_ignoreList":[0]}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
|
|
2
3
|
const index = require("../shebang-regex/index.cjs");
|
|
3
|
-
const shebangRegex = index;
|
|
4
|
+
const shebangRegex = index.shebangRegex;
|
|
4
5
|
var shebangCommand = (string = "") => {
|
|
5
6
|
const match = string.match(shebangRegex);
|
|
6
7
|
if (!match) {
|
|
@@ -13,5 +14,5 @@ var shebangCommand = (string = "") => {
|
|
|
13
14
|
}
|
|
14
15
|
return argument ? `${binary} ${argument}` : binary;
|
|
15
16
|
};
|
|
16
|
-
|
|
17
|
+
exports.shebangCommand = shebangCommand;
|
|
17
18
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"names":["require$$0"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/shebang-command/index.js"],"sourcesContent":["'use strict';\nconst shebangRegex = require('shebang-regex');\n\nmodule.exports = (string = '') => {\n\tconst match = string.match(shebangRegex);\n\n\tif (!match) {\n\t\treturn null;\n\t}\n\n\tconst [path, argument] = match[0].replace(/#! ?/, '').split(' ');\n\tconst binary = path.split('/').pop();\n\n\tif (binary === 'env') {\n\t\treturn argument;\n\t}\n\n\treturn argument ? `${binary} ${argument}` : binary;\n};\n"],"names":["require$$0"],"mappings":";;;AACA,MAAM,eAAeA,MAAAA;AAErB,IAAA,iBAAiB,CAAC,SAAS,OAAO;AACjC,QAAM,QAAQ,OAAO,MAAM,YAAY;AAEvC,MAAI,CAAC,OAAO;AACX,WAAO;AAAA,EACP;AAED,QAAM,CAAC,MAAM,QAAQ,IAAI,MAAM,CAAC,EAAE,QAAQ,QAAQ,EAAE,EAAE,MAAM,GAAG;AAC/D,QAAM,SAAS,KAAK,MAAM,GAAG,EAAE,IAAG;AAElC,MAAI,WAAW,OAAO;AACrB,WAAO;AAAA,EACP;AAED,SAAO,WAAW,GAAG,UAAU,aAAa;AAC7C;;","x_google_ignoreList":[0]}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import shebangRegex$1 from "../shebang-regex/index.js";
|
|
1
|
+
import { s as shebangRegex$1 } from "../shebang-regex/index.js";
|
|
2
2
|
const shebangRegex = shebangRegex$1;
|
|
3
3
|
var shebangCommand = (string = "") => {
|
|
4
4
|
const match = string.match(shebangRegex);
|
|
@@ -13,6 +13,6 @@ var shebangCommand = (string = "") => {
|
|
|
13
13
|
return argument ? `${binary} ${argument}` : binary;
|
|
14
14
|
};
|
|
15
15
|
export {
|
|
16
|
-
shebangCommand as
|
|
16
|
+
shebangCommand as s
|
|
17
17
|
};
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/shebang-regex/index.js"],"sourcesContent":["'use strict';\nmodule.exports = /^#!(.*)/;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/shebang-regex/index.js"],"sourcesContent":["'use strict';\nmodule.exports = /^#!(.*)/;\n"],"names":[],"mappings":";;AACA,IAAA,eAAiB;;","x_google_ignoreList":[0]}
|
|
@@ -70,7 +70,7 @@ if (!processOk(process)) {
|
|
|
70
70
|
process.reallyExit = originalProcessReallyExit;
|
|
71
71
|
emitter.count -= 1;
|
|
72
72
|
};
|
|
73
|
-
index.exports.unload = unload;
|
|
73
|
+
index.__module.exports.unload = unload;
|
|
74
74
|
var emit = function emit2(event, code, signal) {
|
|
75
75
|
if (emitter.emitted[event]) {
|
|
76
76
|
return;
|
|
@@ -96,7 +96,7 @@ if (!processOk(process)) {
|
|
|
96
96
|
}
|
|
97
97
|
};
|
|
98
98
|
});
|
|
99
|
-
index.exports.signals = function() {
|
|
99
|
+
index.__module.exports.signals = function() {
|
|
100
100
|
return signals;
|
|
101
101
|
};
|
|
102
102
|
var loaded = false;
|
|
@@ -117,7 +117,7 @@ if (!processOk(process)) {
|
|
|
117
117
|
process.emit = processEmit;
|
|
118
118
|
process.reallyExit = processReallyExit;
|
|
119
119
|
};
|
|
120
|
-
index.exports.load = load;
|
|
120
|
+
index.__module.exports.load = load;
|
|
121
121
|
var originalProcessReallyExit = process.reallyExit;
|
|
122
122
|
var processReallyExit = function processReallyExit2(code) {
|
|
123
123
|
if (!processOk(_commonjsHelpers.commonjsGlobal.process)) {
|
|
@@ -144,5 +144,7 @@ if (!processOk(process)) {
|
|
|
144
144
|
}
|
|
145
145
|
};
|
|
146
146
|
}
|
|
147
|
-
|
|
147
|
+
var signalExitExports = index.__module.exports;
|
|
148
|
+
const onExit = /* @__PURE__ */ _commonjsHelpers.getDefaultExportFromCjs(signalExitExports);
|
|
149
|
+
module.exports = onExit;
|
|
148
150
|
//# sourceMappingURL=index.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","
|
|
1
|
+
{"version":3,"file":"index.cjs","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\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{
|
|
1
|
+
import { commonjsGlobal, getDefaultExportFromCjs } from "../../_virtual/_commonjsHelpers.js";
|
|
2
|
+
import { __module as signalExit } from "../../_virtual/index2.js";
|
|
3
3
|
import require$$0 from "assert";
|
|
4
4
|
import { __require as requireSignals } from "./signals.js";
|
|
5
5
|
import require$$2 from "events";
|
|
@@ -69,7 +69,7 @@ if (!processOk(process)) {
|
|
|
69
69
|
process.reallyExit = originalProcessReallyExit;
|
|
70
70
|
emitter.count -= 1;
|
|
71
71
|
};
|
|
72
|
-
|
|
72
|
+
signalExit.exports.unload = unload;
|
|
73
73
|
var emit = function emit2(event, code, signal) {
|
|
74
74
|
if (emitter.emitted[event]) {
|
|
75
75
|
return;
|
|
@@ -95,7 +95,7 @@ if (!processOk(process)) {
|
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
97
|
});
|
|
98
|
-
|
|
98
|
+
signalExit.exports.signals = function() {
|
|
99
99
|
return signals;
|
|
100
100
|
};
|
|
101
101
|
var loaded = false;
|
|
@@ -116,7 +116,7 @@ if (!processOk(process)) {
|
|
|
116
116
|
process.emit = processEmit;
|
|
117
117
|
process.reallyExit = processReallyExit;
|
|
118
118
|
};
|
|
119
|
-
|
|
119
|
+
signalExit.exports.load = load;
|
|
120
120
|
var originalProcessReallyExit = process.reallyExit;
|
|
121
121
|
var processReallyExit = function processReallyExit2(code) {
|
|
122
122
|
if (!processOk(commonjsGlobal.process)) {
|
|
@@ -143,7 +143,9 @@ if (!processOk(process)) {
|
|
|
143
143
|
}
|
|
144
144
|
};
|
|
145
145
|
}
|
|
146
|
+
var signalExitExports = signalExit.exports;
|
|
147
|
+
const onExit = /* @__PURE__ */ getDefaultExportFromCjs(signalExitExports);
|
|
146
148
|
export {
|
|
147
|
-
|
|
149
|
+
onExit as default
|
|
148
150
|
};
|
|
149
151
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../node_modules/signal-exit/index.js"],"sourcesContent":["// Note: since nyc uses this module to output coverage, any lines\n// that are in the direct sync flow of nyc's outputCoverage are\n// ignored, since we can never get coverage for them.\n// grab a reference to node's real process object right away\nvar process = global.process\n\nconst processOk = function (process) {\n return process &&\n typeof process === 'object' &&\n typeof process.removeListener === 'function' &&\n typeof process.emit === 'function' &&\n typeof process.reallyExit === 'function' &&\n typeof process.listeners === 'function' &&\n typeof process.kill === 'function' &&\n typeof process.pid === 'number' &&\n typeof process.on === 'function'\n}\n\n// some kind of non-node environment, just no-op\n/* istanbul ignore if */\nif (!processOk(process)) {\n module.exports = function () {\n return function () {}\n }\n} else {\n var assert = require('assert')\n var signals = require('./signals.js')\n var isWin = /^win/i.test(process.platform)\n\n var EE = require('events')\n /* istanbul ignore if */\n if (typeof EE !== 'function') {\n EE = EE.EventEmitter\n }\n\n var emitter\n if (process.__signal_exit_emitter__) {\n emitter = process.__signal_exit_emitter__\n } else {\n emitter = process.__signal_exit_emitter__ = new EE()\n emitter.count = 0\n emitter.emitted = {}\n }\n\n // Because this emitter is a global, we have to check to see if a\n // previous version of this library failed to enable infinite listeners.\n // I know what you're about to say. But literally everything about\n // signal-exit is a compromise with evil. Get used to it.\n if (!emitter.infinite) {\n emitter.setMaxListeners(Infinity)\n emitter.infinite = true\n }\n\n module.exports = function (cb, opts) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return function () {}\n }\n assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')\n\n if (loaded === false) {\n load()\n }\n\n var ev = 'exit'\n if (opts && opts.alwaysLast) {\n ev = 'afterexit'\n }\n\n var remove = function () {\n emitter.removeListener(ev, cb)\n if (emitter.listeners('exit').length === 0 &&\n emitter.listeners('afterexit').length === 0) {\n unload()\n }\n }\n emitter.on(ev, cb)\n\n return remove\n }\n\n var unload = function unload () {\n if (!loaded || !processOk(global.process)) {\n return\n }\n loaded = false\n\n signals.forEach(function (sig) {\n try {\n process.removeListener(sig, sigListeners[sig])\n } catch (er) {}\n })\n process.emit = originalProcessEmit\n process.reallyExit = originalProcessReallyExit\n emitter.count -= 1\n }\n module.exports.unload = unload\n\n var emit = function emit (event, code, signal) {\n /* istanbul ignore if */\n if (emitter.emitted[event]) {\n return\n }\n emitter.emitted[event] = true\n emitter.emit(event, code, signal)\n }\n\n // { <signal>: <listener fn>, ... }\n var sigListeners = {}\n signals.forEach(function (sig) {\n sigListeners[sig] = function listener () {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n // If there are no other listeners, an exit is coming!\n // Simplest way: remove us and then re-send the signal.\n // We know that this will kill the process, so we can\n // safely emit now.\n var listeners = process.listeners(sig)\n if (listeners.length === emitter.count) {\n unload()\n emit('exit', null, sig)\n /* istanbul ignore next */\n emit('afterexit', null, sig)\n /* istanbul ignore next */\n if (isWin && sig === 'SIGHUP') {\n // \"SIGHUP\" throws an `ENOSYS` error on Windows,\n // so use a supported signal instead\n sig = 'SIGINT'\n }\n /* istanbul ignore next */\n process.kill(process.pid, sig)\n }\n }\n })\n\n module.exports.signals = function () {\n return signals\n }\n\n var loaded = false\n\n var load = function load () {\n if (loaded || !processOk(global.process)) {\n return\n }\n loaded = true\n\n // This is the number of onSignalExit's that are in play.\n // It's important so that we can count the correct number of\n // listeners on signals, and don't wait for the other one to\n // handle it instead of us.\n emitter.count += 1\n\n signals = signals.filter(function (sig) {\n try {\n process.on(sig, sigListeners[sig])\n return true\n } catch (er) {\n return false\n }\n })\n\n process.emit = processEmit\n process.reallyExit = processReallyExit\n }\n module.exports.load = load\n\n var originalProcessReallyExit = process.reallyExit\n var processReallyExit = function processReallyExit (code) {\n /* istanbul ignore if */\n if (!processOk(global.process)) {\n return\n }\n process.exitCode = code || /* istanbul ignore next */ 0\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n originalProcessReallyExit.call(process, process.exitCode)\n }\n\n var originalProcessEmit = process.emit\n var processEmit = function processEmit (ev, arg) {\n if (ev === 'exit' && processOk(global.process)) {\n /* istanbul ignore else */\n if (arg !== undefined) {\n process.exitCode = arg\n }\n var ret = originalProcessEmit.apply(this, arguments)\n /* istanbul ignore next */\n emit('exit', process.exitCode, null)\n /* istanbul ignore next */\n emit('afterexit', process.exitCode, null)\n /* istanbul ignore next */\n return ret\n } else {\n return originalProcessEmit.apply(this, arguments)\n }\n }\n}\n"],"names":["global","process","signalExitModule","require$$1","unload","emit","load","processReallyExit","processEmit"],"mappings":";;;;;AAIA,IAAI,UAAUA,eAAO;AAErB,MAAM,YAAY,SAAUC,UAAS;AACnC,SAAOA,YACL,OAAOA,aAAY,YACnB,OAAOA,SAAQ,mBAAmB,cAClC,OAAOA,SAAQ,SAAS,cACxB,OAAOA,SAAQ,eAAe,cAC9B,OAAOA,SAAQ,cAAc,cAC7B,OAAOA,SAAQ,SAAS,cACxB,OAAOA,SAAQ,QAAQ,YACvB,OAAOA,SAAQ,OAAO;AAC1B;AAIA,IAAI,CAAC,UAAU,OAAO,GAAG;AACvBC,aAAA,UAAiB,WAAY;AAC3B,WAAO,WAAY;AAAA,IAAE;AAAA,EACtB;AACH,OAAO;AACL,MAAI,SAAS;AACb,MAAI,UAAUC,eAAuB;AACrC,MAAI,QAAQ,QAAQ,KAAK,QAAQ,QAAQ;AAEzC,MAAI,KAAK;AAET,MAAI,OAAO,OAAO,YAAY;AAC5B,SAAK,GAAG;AAAA,EACT;AAED,MAAI;AACJ,MAAI,QAAQ,yBAAyB;AACnC,cAAU,QAAQ;AAAA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MAAI,cAAc,SAASQ,aAAa,IAAI,KAAK;AAC/C,QAAI,OAAO,UAAU,UAAUR,eAAO,OAAO,GAAG;AAE9C,UAAI,QAAQ,QAAW;AACrB,gBAAQ,WAAW;AAAA,MACpB;AACD,UAAI,MAAM,oBAAoB,MAAM,MAAM,SAAS;AAEnD,WAAK,QAAQ,QAAQ,UAAU,IAAI;AAEnC,WAAK,aAAa,QAAQ,UAAU,IAAI;AAExC,aAAO;AAAA,IACb,OAAW;AACL,aAAO,oBAAoB,MAAM,MAAM,SAAS;AAAA,IACjD;AAAA,EACF;AACH;;;","x_google_ignoreList":[0]}
|
|
@@ -4,7 +4,7 @@ const signals = require("../../_virtual/signals.cjs");
|
|
|
4
4
|
var hasRequiredSignals;
|
|
5
5
|
function requireSignals() {
|
|
6
6
|
if (hasRequiredSignals)
|
|
7
|
-
return signals.exports;
|
|
7
|
+
return signals.__module.exports;
|
|
8
8
|
hasRequiredSignals = 1;
|
|
9
9
|
(function(module2) {
|
|
10
10
|
module2.exports = [
|
|
@@ -39,7 +39,7 @@ function requireSignals() {
|
|
|
39
39
|
);
|
|
40
40
|
}
|
|
41
41
|
})(signals.__module);
|
|
42
|
-
return signals.exports;
|
|
42
|
+
return signals.__module.exports;
|
|
43
43
|
}
|
|
44
44
|
exports.__require = requireSignals;
|
|
45
45
|
//# sourceMappingURL=signals.cjs.map
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { __module as signals } from "../../_virtual/signals.js";
|
|
2
2
|
var hasRequiredSignals;
|
|
3
3
|
function requireSignals() {
|
|
4
4
|
if (hasRequiredSignals)
|
|
5
|
-
return
|
|
5
|
+
return signals.exports;
|
|
6
6
|
hasRequiredSignals = 1;
|
|
7
7
|
(function(module) {
|
|
8
8
|
module.exports = [
|
|
@@ -37,7 +37,7 @@ function requireSignals() {
|
|
|
37
37
|
);
|
|
38
38
|
}
|
|
39
39
|
})(signals);
|
|
40
|
-
return
|
|
40
|
+
return signals.exports;
|
|
41
41
|
}
|
|
42
42
|
export {
|
|
43
43
|
requireSignals as __require
|