muhammara 5.4.0 → 6.0.1
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/node_modules/{fs-minipass → @isaacs/fs-minipass}/README.md +4 -3
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@mapbox/node-pre-gyp/.github/dependabot.yml +20 -0
- package/node_modules/@mapbox/node-pre-gyp/.github/workflows/ci.yml +28 -0
- package/node_modules/@mapbox/node-pre-gyp/.github/workflows/codeql.yml +4 -4
- package/node_modules/@mapbox/node-pre-gyp/.github/workflows/release.yml +105 -0
- package/node_modules/@mapbox/node-pre-gyp/.github/workflows/s3-bucket.yml +47 -0
- package/node_modules/@mapbox/node-pre-gyp/CHANGELOG.md +21 -3
- package/node_modules/@mapbox/node-pre-gyp/CODEOWNERS +1 -0
- package/node_modules/@mapbox/node-pre-gyp/README.md +35 -5
- package/node_modules/@mapbox/node-pre-gyp/RELEASE.md +23 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/clean.js +3 -3
- package/node_modules/@mapbox/node-pre-gyp/lib/info.js +5 -6
- package/node_modules/@mapbox/node-pre-gyp/lib/install.js +87 -9
- package/node_modules/@mapbox/node-pre-gyp/lib/main.js +4 -4
- package/node_modules/@mapbox/node-pre-gyp/lib/mock/http.js +38 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/mock/s3.js +44 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/node-pre-gyp.js +3 -17
- package/node_modules/@mapbox/node-pre-gyp/lib/package.js +2 -3
- package/node_modules/@mapbox/node-pre-gyp/lib/publish.js +6 -6
- package/node_modules/@mapbox/node-pre-gyp/lib/testbinary.js +1 -1
- package/node_modules/@mapbox/node-pre-gyp/lib/testpackage.js +2 -3
- package/node_modules/@mapbox/node-pre-gyp/lib/unpublish.js +4 -5
- package/node_modules/@mapbox/node-pre-gyp/lib/util/abi_crosswalk.json +705 -1
- package/node_modules/@mapbox/node-pre-gyp/lib/util/compile.js +2 -2
- package/node_modules/@mapbox/node-pre-gyp/lib/util/log.js +9 -0
- package/node_modules/@mapbox/node-pre-gyp/lib/util/napi.js +4 -6
- package/node_modules/@mapbox/node-pre-gyp/lib/util/s3_setup.js +47 -118
- package/node_modules/@mapbox/node-pre-gyp/lib/util/versioning.js +10 -3
- package/node_modules/@mapbox/node-pre-gyp/package.json +23 -17
- package/node_modules/abbrev/lib/index.js +53 -0
- package/node_modules/abbrev/package.json +35 -11
- package/node_modules/{emoji-regex/LICENSE-MIT.txt → agent-base/LICENSE} +10 -8
- package/node_modules/agent-base/README.md +43 -119
- package/node_modules/agent-base/dist/helpers.d.ts +15 -0
- package/node_modules/agent-base/dist/helpers.d.ts.map +1 -0
- package/node_modules/agent-base/dist/helpers.js +66 -0
- package/node_modules/agent-base/dist/helpers.js.map +1 -0
- package/node_modules/agent-base/dist/index.d.ts +41 -0
- package/node_modules/agent-base/dist/index.d.ts.map +1 -0
- package/node_modules/agent-base/dist/index.js +178 -0
- package/node_modules/agent-base/dist/index.js.map +1 -0
- package/node_modules/agent-base/package.json +25 -43
- package/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/chownr/package.json +49 -12
- package/node_modules/consola/LICENSE +47 -0
- package/node_modules/consola/README.md +352 -0
- package/node_modules/consola/basic.d.ts +1 -0
- package/node_modules/consola/browser.d.ts +1 -0
- package/node_modules/consola/core.d.ts +1 -0
- package/node_modules/consola/dist/basic.cjs +32 -0
- package/node_modules/consola/dist/basic.d.cts +23 -0
- package/node_modules/consola/dist/basic.d.mts +21 -0
- package/node_modules/consola/dist/basic.d.ts +23 -0
- package/node_modules/consola/dist/basic.mjs +24 -0
- package/node_modules/consola/dist/browser.cjs +84 -0
- package/node_modules/consola/dist/browser.d.cts +23 -0
- package/node_modules/consola/dist/browser.d.mts +21 -0
- package/node_modules/consola/dist/browser.d.ts +23 -0
- package/node_modules/consola/dist/browser.mjs +76 -0
- package/node_modules/consola/dist/chunks/prompt.cjs +288 -0
- package/node_modules/consola/dist/chunks/prompt.mjs +280 -0
- package/node_modules/consola/dist/core.cjs +517 -0
- package/node_modules/consola/dist/core.d.cts +459 -0
- package/node_modules/consola/dist/core.d.mts +459 -0
- package/node_modules/consola/dist/core.d.ts +459 -0
- package/node_modules/consola/dist/core.mjs +512 -0
- package/node_modules/consola/dist/index.cjs +663 -0
- package/node_modules/consola/dist/index.d.cts +24 -0
- package/node_modules/consola/dist/index.d.mts +22 -0
- package/node_modules/consola/dist/index.d.ts +24 -0
- package/node_modules/consola/dist/index.mjs +651 -0
- package/node_modules/consola/dist/shared/consola.DCGIlDNP.cjs +75 -0
- package/node_modules/consola/dist/shared/consola.DRwqZj3T.mjs +72 -0
- package/node_modules/consola/dist/shared/consola.DXBYu-KD.mjs +288 -0
- package/node_modules/consola/dist/shared/consola.DwRq1yyg.cjs +312 -0
- package/node_modules/consola/dist/utils.cjs +64 -0
- package/node_modules/consola/dist/utils.d.cts +286 -0
- package/node_modules/consola/dist/utils.d.mts +286 -0
- package/node_modules/consola/dist/utils.d.ts +286 -0
- package/node_modules/consola/dist/utils.mjs +54 -0
- package/node_modules/consola/lib/index.cjs +10 -0
- package/node_modules/consola/package.json +136 -0
- package/node_modules/consola/utils.d.ts +1 -0
- package/node_modules/{delegates/License → https-proxy-agent/LICENSE} +10 -8
- package/node_modules/https-proxy-agent/README.md +16 -83
- package/node_modules/https-proxy-agent/dist/index.d.ts +45 -21
- package/node_modules/https-proxy-agent/dist/index.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/index.js +174 -8
- package/node_modules/https-proxy-agent/dist/index.js.map +1 -1
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts +11 -3
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.d.ts.map +1 -0
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js +47 -12
- package/node_modules/https-proxy-agent/dist/parse-proxy-response.js.map +1 -1
- package/node_modules/https-proxy-agent/package.json +25 -31
- package/node_modules/minipass/README.md +73 -17
- package/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/minipass/package.json +56 -50
- package/node_modules/minizlib/LICENSE +3 -3
- package/node_modules/minizlib/README.md +7 -3
- package/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/minizlib/package.json +49 -11
- package/node_modules/nopt/README.md +9 -8
- package/node_modules/nopt/bin/nopt.js +28 -53
- package/node_modules/nopt/lib/debug.js +5 -0
- package/node_modules/nopt/lib/nopt-lib.js +514 -0
- package/node_modules/nopt/lib/nopt.js +25 -432
- package/node_modules/nopt/lib/type-defs.js +91 -0
- package/node_modules/nopt/package.json +30 -12
- package/node_modules/tar/README.md +242 -217
- package/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/create.js +83 -0
- package/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/extract.js +78 -0
- package/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js +29 -0
- package/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/commonjs/header.d.ts +54 -0
- package/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/header.js +306 -0
- package/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/index.js +54 -0
- package/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts +4 -0
- package/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/list.js +136 -0
- package/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/make-command.js +61 -0
- package/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts +27 -0
- package/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mkdir.js +209 -0
- package/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js +17 -0
- package/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/options.d.ts +605 -0
- package/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts +102 -0
- package/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pack.js +477 -0
- package/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts +87 -0
- package/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/parse.js +599 -0
- package/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts +27 -0
- package/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/pax.js +158 -0
- package/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts +37 -0
- package/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/read-entry.js +140 -0
- package/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/replace.js +231 -0
- package/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/commonjs/types.d.ts +7 -0
- package/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/types.js +50 -0
- package/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts +99 -0
- package/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/unpack.js +919 -0
- package/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts +25 -0
- package/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts +132 -0
- package/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/commonjs/write-entry.js +689 -0
- package/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/create.js +77 -0
- package/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/get-write-flag.js +23 -0
- package/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/tar/dist/esm/header.d.ts +54 -0
- package/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/header.js +279 -0
- package/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts +4 -0
- package/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/list.js +106 -0
- package/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/make-command.js +57 -0
- package/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts +27 -0
- package/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mkdir.js +201 -0
- package/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js +13 -0
- package/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/tar/{lib → dist/esm}/normalize-windows-path.js +5 -4
- package/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/tar/dist/esm/options.d.ts +605 -0
- package/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/tar/dist/esm/pack.d.ts +102 -0
- package/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pack.js +445 -0
- package/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/tar/dist/esm/parse.d.ts +87 -0
- package/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/parse.js +595 -0
- package/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/tar/dist/esm/pax.d.ts +27 -0
- package/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/pax.js +154 -0
- package/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts +37 -0
- package/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/read-entry.js +136 -0
- package/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/replace.js +225 -0
- package/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/tar/dist/esm/types.d.ts +7 -0
- package/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/types.js +45 -0
- package/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/tar/dist/esm/unpack.d.ts +99 -0
- package/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/unpack.js +888 -0
- package/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts +25 -0
- package/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts +132 -0
- package/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/tar/dist/esm/write-entry.js +657 -0
- package/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/{mkdirp → tar/node_modules/mkdirp}/LICENSE +1 -1
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/package.json +91 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/bin.d.ts +3 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/bin.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/bin.js +80 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/bin.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/find-made.d.ts +4 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/find-made.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/find-made.js +35 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/find-made.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/index.d.ts +39 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/index.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/index.js +53 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/index.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts +6 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.js +79 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-manual.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts +6 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-native.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-native.js +50 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/mkdirp-native.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts +42 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/opts-arg.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/opts-arg.js +38 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/opts-arg.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts +2 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/path-arg.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/path-arg.js +28 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/path-arg.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/use-native.d.ts +6 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/use-native.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/use-native.js +17 -0
- package/node_modules/tar/node_modules/mkdirp/dist/cjs/src/use-native.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/find-made.d.ts +4 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/find-made.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/find-made.js +30 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/find-made.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/index.d.ts +39 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/index.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/index.js +43 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/index.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts +6 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-manual.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-manual.js +75 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-manual.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts +6 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-native.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-native.js +46 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/mkdirp-native.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/opts-arg.d.ts +42 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/opts-arg.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/opts-arg.js +34 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/opts-arg.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/package.json +3 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/path-arg.d.ts +2 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/path-arg.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/path-arg.js +24 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/path-arg.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/use-native.d.ts +6 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/use-native.d.ts.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/use-native.js +14 -0
- package/node_modules/tar/node_modules/mkdirp/dist/mjs/use-native.js.map +1 -0
- package/node_modules/tar/node_modules/mkdirp/package.json +91 -0
- package/node_modules/tar/node_modules/mkdirp/readme.markdown +281 -0
- package/node_modules/tar/package.json +296 -41
- package/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/yallist/README.md +8 -7
- package/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/yallist/package.json +51 -12
- package/package.json +5 -3
- package/node_modules/abbrev/abbrev.js +0 -61
- package/node_modules/agent-base/dist/src/index.d.ts +0 -78
- package/node_modules/agent-base/dist/src/index.js +0 -203
- package/node_modules/agent-base/dist/src/index.js.map +0 -1
- package/node_modules/agent-base/dist/src/promisify.d.ts +0 -4
- package/node_modules/agent-base/dist/src/promisify.js +0 -18
- package/node_modules/agent-base/dist/src/promisify.js.map +0 -1
- package/node_modules/agent-base/src/index.ts +0 -345
- package/node_modules/agent-base/src/promisify.ts +0 -33
- package/node_modules/ansi-regex/index.d.ts +0 -37
- package/node_modules/ansi-regex/index.js +0 -10
- package/node_modules/ansi-regex/license +0 -9
- package/node_modules/ansi-regex/package.json +0 -55
- package/node_modules/ansi-regex/readme.md +0 -78
- package/node_modules/aproba/CHANGELOG.md +0 -4
- package/node_modules/aproba/LICENSE +0 -14
- package/node_modules/aproba/README.md +0 -94
- package/node_modules/aproba/index.js +0 -105
- package/node_modules/aproba/package.json +0 -35
- package/node_modules/are-we-there-yet/LICENSE.md +0 -18
- package/node_modules/are-we-there-yet/README.md +0 -208
- package/node_modules/are-we-there-yet/lib/index.js +0 -4
- package/node_modules/are-we-there-yet/lib/tracker-base.js +0 -11
- package/node_modules/are-we-there-yet/lib/tracker-group.js +0 -116
- package/node_modules/are-we-there-yet/lib/tracker-stream.js +0 -36
- package/node_modules/are-we-there-yet/lib/tracker.js +0 -32
- package/node_modules/are-we-there-yet/node_modules/readable-stream/CONTRIBUTING.md +0 -38
- package/node_modules/are-we-there-yet/node_modules/readable-stream/GOVERNANCE.md +0 -136
- package/node_modules/are-we-there-yet/node_modules/readable-stream/LICENSE +0 -47
- package/node_modules/are-we-there-yet/node_modules/readable-stream/README.md +0 -106
- package/node_modules/are-we-there-yet/node_modules/readable-stream/errors-browser.js +0 -127
- package/node_modules/are-we-there-yet/node_modules/readable-stream/errors.js +0 -116
- package/node_modules/are-we-there-yet/node_modules/readable-stream/experimentalWarning.js +0 -17
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_duplex.js +0 -126
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_passthrough.js +0 -37
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_readable.js +0 -1027
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_transform.js +0 -190
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/_stream_writable.js +0 -641
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/async_iterator.js +0 -180
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/buffer_list.js +0 -183
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/destroy.js +0 -96
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/end-of-stream.js +0 -86
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/from-browser.js +0 -3
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/from.js +0 -52
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/pipeline.js +0 -86
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/state.js +0 -22
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/stream-browser.js +0 -1
- package/node_modules/are-we-there-yet/node_modules/readable-stream/lib/internal/streams/stream.js +0 -1
- package/node_modules/are-we-there-yet/node_modules/readable-stream/package.json +0 -68
- package/node_modules/are-we-there-yet/node_modules/readable-stream/readable-browser.js +0 -9
- package/node_modules/are-we-there-yet/node_modules/readable-stream/readable.js +0 -16
- package/node_modules/are-we-there-yet/node_modules/string_decoder/LICENSE +0 -48
- package/node_modules/are-we-there-yet/node_modules/string_decoder/README.md +0 -47
- package/node_modules/are-we-there-yet/node_modules/string_decoder/lib/string_decoder.js +0 -296
- package/node_modules/are-we-there-yet/node_modules/string_decoder/package.json +0 -34
- package/node_modules/are-we-there-yet/package.json +0 -53
- package/node_modules/balanced-match/.github/FUNDING.yml +0 -2
- package/node_modules/balanced-match/LICENSE.md +0 -21
- package/node_modules/balanced-match/README.md +0 -97
- package/node_modules/balanced-match/index.js +0 -62
- package/node_modules/balanced-match/package.json +0 -48
- package/node_modules/chownr/chownr.js +0 -167
- package/node_modules/color-support/LICENSE +0 -15
- package/node_modules/color-support/README.md +0 -129
- package/node_modules/color-support/bin.js +0 -3
- package/node_modules/color-support/browser.js +0 -14
- package/node_modules/color-support/index.js +0 -134
- package/node_modules/color-support/package.json +0 -36
- package/node_modules/concat-map/.travis.yml +0 -4
- package/node_modules/concat-map/LICENSE +0 -18
- package/node_modules/concat-map/README.markdown +0 -62
- package/node_modules/concat-map/example/map.js +0 -6
- package/node_modules/concat-map/index.js +0 -13
- package/node_modules/concat-map/package.json +0 -43
- package/node_modules/concat-map/test/map.js +0 -39
- package/node_modules/console-control-strings/LICENSE +0 -13
- package/node_modules/console-control-strings/README.md +0 -145
- package/node_modules/console-control-strings/README.md~ +0 -140
- package/node_modules/console-control-strings/index.js +0 -125
- package/node_modules/console-control-strings/package.json +0 -27
- package/node_modules/delegates/.npmignore +0 -1
- package/node_modules/delegates/History.md +0 -22
- package/node_modules/delegates/Makefile +0 -8
- package/node_modules/delegates/Readme.md +0 -94
- package/node_modules/delegates/index.js +0 -121
- package/node_modules/delegates/package.json +0 -13
- package/node_modules/delegates/test/index.js +0 -94
- package/node_modules/emoji-regex/README.md +0 -73
- package/node_modules/emoji-regex/es2015/index.js +0 -6
- package/node_modules/emoji-regex/es2015/text.js +0 -6
- package/node_modules/emoji-regex/index.d.ts +0 -23
- package/node_modules/emoji-regex/index.js +0 -6
- package/node_modules/emoji-regex/package.json +0 -50
- package/node_modules/emoji-regex/text.js +0 -6
- package/node_modules/fs-minipass/LICENSE +0 -15
- package/node_modules/fs-minipass/index.js +0 -422
- package/node_modules/fs-minipass/node_modules/minipass/LICENSE +0 -15
- package/node_modules/fs-minipass/node_modules/minipass/README.md +0 -728
- package/node_modules/fs-minipass/node_modules/minipass/index.d.ts +0 -155
- package/node_modules/fs-minipass/node_modules/minipass/index.js +0 -649
- package/node_modules/fs-minipass/node_modules/minipass/package.json +0 -56
- package/node_modules/fs-minipass/package.json +0 -39
- package/node_modules/fs.realpath/LICENSE +0 -43
- package/node_modules/fs.realpath/README.md +0 -33
- package/node_modules/fs.realpath/index.js +0 -66
- package/node_modules/fs.realpath/old.js +0 -303
- package/node_modules/fs.realpath/package.json +0 -26
- package/node_modules/gauge/CHANGELOG.md +0 -163
- package/node_modules/gauge/LICENSE +0 -13
- package/node_modules/gauge/README.md +0 -402
- package/node_modules/gauge/base-theme.js +0 -14
- package/node_modules/gauge/error.js +0 -24
- package/node_modules/gauge/has-color.js +0 -4
- package/node_modules/gauge/index.js +0 -233
- package/node_modules/gauge/package.json +0 -66
- package/node_modules/gauge/plumbing.js +0 -48
- package/node_modules/gauge/process.js +0 -3
- package/node_modules/gauge/progress-bar.js +0 -35
- package/node_modules/gauge/render-template.js +0 -178
- package/node_modules/gauge/set-immediate.js +0 -7
- package/node_modules/gauge/set-interval.js +0 -3
- package/node_modules/gauge/spin.js +0 -5
- package/node_modules/gauge/template-item.js +0 -72
- package/node_modules/gauge/theme-set.js +0 -114
- package/node_modules/gauge/themes.js +0 -56
- package/node_modules/gauge/wide-truncate.js +0 -25
- package/node_modules/has-unicode/LICENSE +0 -14
- package/node_modules/has-unicode/README.md +0 -43
- package/node_modules/has-unicode/index.js +0 -16
- package/node_modules/has-unicode/package.json +0 -30
- package/node_modules/https-proxy-agent/dist/agent.d.ts +0 -30
- package/node_modules/https-proxy-agent/dist/agent.js +0 -177
- package/node_modules/https-proxy-agent/dist/agent.js.map +0 -1
- package/node_modules/inflight/LICENSE +0 -15
- package/node_modules/inflight/README.md +0 -37
- package/node_modules/inflight/inflight.js +0 -54
- package/node_modules/inflight/package.json +0 -29
- package/node_modules/inherits/LICENSE +0 -16
- package/node_modules/inherits/README.md +0 -42
- package/node_modules/inherits/inherits.js +0 -9
- package/node_modules/inherits/inherits_browser.js +0 -27
- package/node_modules/inherits/package.json +0 -29
- package/node_modules/is-fullwidth-code-point/index.d.ts +0 -17
- package/node_modules/is-fullwidth-code-point/index.js +0 -50
- package/node_modules/is-fullwidth-code-point/license +0 -9
- package/node_modules/is-fullwidth-code-point/package.json +0 -42
- package/node_modules/is-fullwidth-code-point/readme.md +0 -39
- package/node_modules/make-dir/index.d.ts +0 -66
- package/node_modules/make-dir/index.js +0 -156
- package/node_modules/make-dir/license +0 -9
- package/node_modules/make-dir/node_modules/semver/LICENSE +0 -15
- package/node_modules/make-dir/node_modules/semver/README.md +0 -443
- package/node_modules/make-dir/node_modules/semver/bin/semver.js +0 -174
- package/node_modules/make-dir/node_modules/semver/package.json +0 -38
- package/node_modules/make-dir/node_modules/semver/range.bnf +0 -16
- package/node_modules/make-dir/node_modules/semver/semver.js +0 -1643
- package/node_modules/make-dir/package.json +0 -59
- package/node_modules/make-dir/readme.md +0 -125
- package/node_modules/minipass/index.d.ts +0 -152
- package/node_modules/minipass/index.js +0 -702
- package/node_modules/minipass/index.mjs +0 -702
- package/node_modules/minizlib/constants.js +0 -115
- package/node_modules/minizlib/index.js +0 -348
- package/node_modules/minizlib/node_modules/minipass/LICENSE +0 -15
- package/node_modules/minizlib/node_modules/minipass/README.md +0 -728
- package/node_modules/minizlib/node_modules/minipass/index.d.ts +0 -155
- package/node_modules/minizlib/node_modules/minipass/index.js +0 -649
- package/node_modules/minizlib/node_modules/minipass/package.json +0 -56
- package/node_modules/mkdirp/CHANGELOG.md +0 -15
- package/node_modules/mkdirp/bin/cmd.js +0 -68
- package/node_modules/mkdirp/index.js +0 -31
- package/node_modules/mkdirp/lib/find-made.js +0 -29
- package/node_modules/mkdirp/lib/mkdirp-manual.js +0 -64
- package/node_modules/mkdirp/lib/mkdirp-native.js +0 -39
- package/node_modules/mkdirp/lib/opts-arg.js +0 -23
- package/node_modules/mkdirp/lib/path-arg.js +0 -29
- package/node_modules/mkdirp/lib/use-native.js +0 -10
- package/node_modules/mkdirp/package.json +0 -44
- package/node_modules/mkdirp/readme.markdown +0 -266
- package/node_modules/nopt/CHANGELOG.md +0 -58
- package/node_modules/npmlog/LICENSE +0 -15
- package/node_modules/npmlog/README.md +0 -216
- package/node_modules/npmlog/log.js +0 -403
- package/node_modules/npmlog/package.json +0 -33
- package/node_modules/object-assign/index.js +0 -90
- package/node_modules/object-assign/license +0 -21
- package/node_modules/object-assign/package.json +0 -42
- package/node_modules/object-assign/readme.md +0 -61
- package/node_modules/once/LICENSE +0 -15
- package/node_modules/once/README.md +0 -79
- package/node_modules/once/once.js +0 -42
- package/node_modules/once/package.json +0 -33
- package/node_modules/path-is-absolute/index.js +0 -20
- package/node_modules/path-is-absolute/license +0 -21
- package/node_modules/path-is-absolute/package.json +0 -43
- package/node_modules/path-is-absolute/readme.md +0 -59
- package/node_modules/rimraf/CHANGELOG.md +0 -65
- package/node_modules/rimraf/LICENSE +0 -15
- package/node_modules/rimraf/README.md +0 -101
- package/node_modules/rimraf/bin.js +0 -68
- package/node_modules/rimraf/node_modules/brace-expansion/LICENSE +0 -21
- package/node_modules/rimraf/node_modules/brace-expansion/README.md +0 -129
- package/node_modules/rimraf/node_modules/brace-expansion/index.js +0 -201
- package/node_modules/rimraf/node_modules/brace-expansion/package.json +0 -47
- package/node_modules/rimraf/node_modules/glob/LICENSE +0 -21
- package/node_modules/rimraf/node_modules/glob/README.md +0 -378
- package/node_modules/rimraf/node_modules/glob/common.js +0 -238
- package/node_modules/rimraf/node_modules/glob/glob.js +0 -790
- package/node_modules/rimraf/node_modules/glob/package.json +0 -55
- package/node_modules/rimraf/node_modules/glob/sync.js +0 -486
- package/node_modules/rimraf/node_modules/minimatch/LICENSE +0 -15
- package/node_modules/rimraf/node_modules/minimatch/README.md +0 -230
- package/node_modules/rimraf/node_modules/minimatch/minimatch.js +0 -947
- package/node_modules/rimraf/node_modules/minimatch/package.json +0 -33
- package/node_modules/rimraf/package.json +0 -32
- package/node_modules/rimraf/rimraf.js +0 -360
- package/node_modules/safe-buffer/LICENSE +0 -21
- package/node_modules/safe-buffer/README.md +0 -584
- package/node_modules/safe-buffer/index.d.ts +0 -187
- package/node_modules/safe-buffer/index.js +0 -65
- package/node_modules/safe-buffer/package.json +0 -51
- package/node_modules/set-blocking/CHANGELOG.md +0 -26
- package/node_modules/set-blocking/LICENSE.txt +0 -14
- package/node_modules/set-blocking/README.md +0 -31
- package/node_modules/set-blocking/index.js +0 -7
- package/node_modules/set-blocking/package.json +0 -42
- package/node_modules/signal-exit/LICENSE.txt +0 -16
- package/node_modules/signal-exit/README.md +0 -39
- package/node_modules/signal-exit/index.js +0 -202
- package/node_modules/signal-exit/package.json +0 -38
- package/node_modules/signal-exit/signals.js +0 -53
- package/node_modules/string-width/index.d.ts +0 -29
- package/node_modules/string-width/index.js +0 -47
- package/node_modules/string-width/license +0 -9
- package/node_modules/string-width/package.json +0 -56
- package/node_modules/string-width/readme.md +0 -50
- package/node_modules/strip-ansi/index.d.ts +0 -17
- package/node_modules/strip-ansi/index.js +0 -4
- package/node_modules/strip-ansi/license +0 -9
- package/node_modules/strip-ansi/package.json +0 -54
- package/node_modules/strip-ansi/readme.md +0 -46
- package/node_modules/tar/index.js +0 -18
- package/node_modules/tar/lib/create.js +0 -111
- package/node_modules/tar/lib/extract.js +0 -113
- package/node_modules/tar/lib/get-write-flag.js +0 -20
- package/node_modules/tar/lib/header.js +0 -304
- package/node_modules/tar/lib/high-level-opt.js +0 -29
- package/node_modules/tar/lib/large-numbers.js +0 -104
- package/node_modules/tar/lib/list.js +0 -139
- package/node_modules/tar/lib/mkdir.js +0 -229
- package/node_modules/tar/lib/mode-fix.js +0 -27
- package/node_modules/tar/lib/normalize-unicode.js +0 -12
- package/node_modules/tar/lib/pack.js +0 -432
- package/node_modules/tar/lib/parse.js +0 -552
- package/node_modules/tar/lib/path-reservations.js +0 -156
- package/node_modules/tar/lib/pax.js +0 -150
- package/node_modules/tar/lib/read-entry.js +0 -107
- package/node_modules/tar/lib/replace.js +0 -246
- package/node_modules/tar/lib/strip-absolute-path.js +0 -24
- package/node_modules/tar/lib/strip-trailing-slashes.js +0 -13
- package/node_modules/tar/lib/types.js +0 -44
- package/node_modules/tar/lib/unpack.js +0 -923
- package/node_modules/tar/lib/update.js +0 -40
- package/node_modules/tar/lib/warn-mixin.js +0 -24
- package/node_modules/tar/lib/winchars.js +0 -23
- package/node_modules/tar/lib/write-entry.js +0 -546
- package/node_modules/util-deprecate/History.md +0 -16
- package/node_modules/util-deprecate/LICENSE +0 -24
- package/node_modules/util-deprecate/README.md +0 -53
- package/node_modules/util-deprecate/browser.js +0 -67
- package/node_modules/util-deprecate/node.js +0 -6
- package/node_modules/util-deprecate/package.json +0 -27
- package/node_modules/wide-align/LICENSE +0 -14
- package/node_modules/wide-align/README.md +0 -47
- package/node_modules/wide-align/align.js +0 -65
- package/node_modules/wide-align/package.json +0 -33
- package/node_modules/wrappy/LICENSE +0 -15
- package/node_modules/wrappy/README.md +0 -36
- package/node_modules/wrappy/package.json +0 -29
- package/node_modules/wrappy/wrappy.js +0 -33
- package/node_modules/yallist/LICENSE +0 -15
- package/node_modules/yallist/iterator.js +0 -8
- package/node_modules/yallist/yallist.js +0 -426
- /package/node_modules/{chownr → @isaacs/fs-minipass}/LICENSE +0 -0
|
@@ -30,9 +30,10 @@ overhead.
|
|
|
30
30
|
It's just streams, you pipe them or read() them or write() to them.
|
|
31
31
|
|
|
32
32
|
```js
|
|
33
|
-
|
|
34
|
-
const
|
|
35
|
-
const
|
|
33
|
+
import { ReadStream, WriteStream } from 'fs-minipass'
|
|
34
|
+
// or: const { ReadStream, WriteStream } = require('fs-minipass')
|
|
35
|
+
const readStream = new ReadStream('file.txt')
|
|
36
|
+
const writeStream = new WriteStream('output.txt')
|
|
36
37
|
writeStream.write('some file header or whatever\n')
|
|
37
38
|
readStream.pipe(writeStream)
|
|
38
39
|
```
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
/// <reference types="node" />
|
|
3
|
+
/// <reference types="node" />
|
|
4
|
+
import EE from 'events';
|
|
5
|
+
import { Minipass } from 'minipass';
|
|
6
|
+
declare const _autoClose: unique symbol;
|
|
7
|
+
declare const _close: unique symbol;
|
|
8
|
+
declare const _ended: unique symbol;
|
|
9
|
+
declare const _fd: unique symbol;
|
|
10
|
+
declare const _finished: unique symbol;
|
|
11
|
+
declare const _flags: unique symbol;
|
|
12
|
+
declare const _flush: unique symbol;
|
|
13
|
+
declare const _handleChunk: unique symbol;
|
|
14
|
+
declare const _makeBuf: unique symbol;
|
|
15
|
+
declare const _mode: unique symbol;
|
|
16
|
+
declare const _needDrain: unique symbol;
|
|
17
|
+
declare const _onerror: unique symbol;
|
|
18
|
+
declare const _onopen: unique symbol;
|
|
19
|
+
declare const _onread: unique symbol;
|
|
20
|
+
declare const _onwrite: unique symbol;
|
|
21
|
+
declare const _open: unique symbol;
|
|
22
|
+
declare const _path: unique symbol;
|
|
23
|
+
declare const _pos: unique symbol;
|
|
24
|
+
declare const _queue: unique symbol;
|
|
25
|
+
declare const _read: unique symbol;
|
|
26
|
+
declare const _readSize: unique symbol;
|
|
27
|
+
declare const _reading: unique symbol;
|
|
28
|
+
declare const _remain: unique symbol;
|
|
29
|
+
declare const _size: unique symbol;
|
|
30
|
+
declare const _write: unique symbol;
|
|
31
|
+
declare const _writing: unique symbol;
|
|
32
|
+
declare const _defaultFlag: unique symbol;
|
|
33
|
+
declare const _errored: unique symbol;
|
|
34
|
+
export type ReadStreamOptions = Minipass.Options<Minipass.ContiguousData> & {
|
|
35
|
+
fd?: number;
|
|
36
|
+
readSize?: number;
|
|
37
|
+
size?: number;
|
|
38
|
+
autoClose?: boolean;
|
|
39
|
+
};
|
|
40
|
+
export type ReadStreamEvents = Minipass.Events<Minipass.ContiguousData> & {
|
|
41
|
+
open: [fd: number];
|
|
42
|
+
};
|
|
43
|
+
export declare class ReadStream extends Minipass<Minipass.ContiguousData, Buffer, ReadStreamEvents> {
|
|
44
|
+
[_errored]: boolean;
|
|
45
|
+
[_fd]?: number;
|
|
46
|
+
[_path]: string;
|
|
47
|
+
[_readSize]: number;
|
|
48
|
+
[_reading]: boolean;
|
|
49
|
+
[_size]: number;
|
|
50
|
+
[_remain]: number;
|
|
51
|
+
[_autoClose]: boolean;
|
|
52
|
+
constructor(path: string, opt: ReadStreamOptions);
|
|
53
|
+
get fd(): number | undefined;
|
|
54
|
+
get path(): string;
|
|
55
|
+
write(): void;
|
|
56
|
+
end(): void;
|
|
57
|
+
[_open](): void;
|
|
58
|
+
[_onopen](er?: NodeJS.ErrnoException | null, fd?: number): void;
|
|
59
|
+
[_makeBuf](): Buffer;
|
|
60
|
+
[_read](): void;
|
|
61
|
+
[_onread](er?: NodeJS.ErrnoException | null, br?: number, buf?: Buffer): void;
|
|
62
|
+
[_close](): void;
|
|
63
|
+
[_onerror](er: NodeJS.ErrnoException): void;
|
|
64
|
+
[_handleChunk](br: number, buf: Buffer): boolean;
|
|
65
|
+
emit<Event extends keyof ReadStreamEvents>(ev: Event, ...args: ReadStreamEvents[Event]): boolean;
|
|
66
|
+
}
|
|
67
|
+
export declare class ReadStreamSync extends ReadStream {
|
|
68
|
+
[_open](): void;
|
|
69
|
+
[_read](): void;
|
|
70
|
+
[_close](): void;
|
|
71
|
+
}
|
|
72
|
+
export type WriteStreamOptions = {
|
|
73
|
+
fd?: number;
|
|
74
|
+
autoClose?: boolean;
|
|
75
|
+
mode?: number;
|
|
76
|
+
captureRejections?: boolean;
|
|
77
|
+
start?: number;
|
|
78
|
+
flags?: string;
|
|
79
|
+
};
|
|
80
|
+
export declare class WriteStream extends EE {
|
|
81
|
+
readable: false;
|
|
82
|
+
writable: boolean;
|
|
83
|
+
[_errored]: boolean;
|
|
84
|
+
[_writing]: boolean;
|
|
85
|
+
[_ended]: boolean;
|
|
86
|
+
[_queue]: Buffer[];
|
|
87
|
+
[_needDrain]: boolean;
|
|
88
|
+
[_path]: string;
|
|
89
|
+
[_mode]: number;
|
|
90
|
+
[_autoClose]: boolean;
|
|
91
|
+
[_fd]?: number;
|
|
92
|
+
[_defaultFlag]: boolean;
|
|
93
|
+
[_flags]: string;
|
|
94
|
+
[_finished]: boolean;
|
|
95
|
+
[_pos]?: number;
|
|
96
|
+
constructor(path: string, opt: WriteStreamOptions);
|
|
97
|
+
emit(ev: string, ...args: any[]): boolean;
|
|
98
|
+
get fd(): number | undefined;
|
|
99
|
+
get path(): string;
|
|
100
|
+
[_onerror](er: NodeJS.ErrnoException): void;
|
|
101
|
+
[_open](): void;
|
|
102
|
+
[_onopen](er?: null | NodeJS.ErrnoException, fd?: number): void;
|
|
103
|
+
end(buf: string, enc?: BufferEncoding): this;
|
|
104
|
+
end(buf?: Buffer, enc?: undefined): this;
|
|
105
|
+
write(buf: string, enc?: BufferEncoding): boolean;
|
|
106
|
+
write(buf: Buffer, enc?: undefined): boolean;
|
|
107
|
+
[_write](buf: Buffer): void;
|
|
108
|
+
[_onwrite](er?: null | NodeJS.ErrnoException, bw?: number): void;
|
|
109
|
+
[_flush](): void;
|
|
110
|
+
[_close](): void;
|
|
111
|
+
}
|
|
112
|
+
export declare class WriteStreamSync extends WriteStream {
|
|
113
|
+
[_open](): void;
|
|
114
|
+
[_close](): void;
|
|
115
|
+
[_write](buf: Buffer): void;
|
|
116
|
+
}
|
|
117
|
+
export {};
|
|
118
|
+
//# sourceMappingURL=index.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G,EAAE,MAAM;CAmBrB"}
|
|
@@ -0,0 +1,430 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.WriteStreamSync = exports.WriteStream = exports.ReadStreamSync = exports.ReadStream = void 0;
|
|
7
|
+
const events_1 = __importDefault(require("events"));
|
|
8
|
+
const fs_1 = __importDefault(require("fs"));
|
|
9
|
+
const minipass_1 = require("minipass");
|
|
10
|
+
const writev = fs_1.default.writev;
|
|
11
|
+
const _autoClose = Symbol('_autoClose');
|
|
12
|
+
const _close = Symbol('_close');
|
|
13
|
+
const _ended = Symbol('_ended');
|
|
14
|
+
const _fd = Symbol('_fd');
|
|
15
|
+
const _finished = Symbol('_finished');
|
|
16
|
+
const _flags = Symbol('_flags');
|
|
17
|
+
const _flush = Symbol('_flush');
|
|
18
|
+
const _handleChunk = Symbol('_handleChunk');
|
|
19
|
+
const _makeBuf = Symbol('_makeBuf');
|
|
20
|
+
const _mode = Symbol('_mode');
|
|
21
|
+
const _needDrain = Symbol('_needDrain');
|
|
22
|
+
const _onerror = Symbol('_onerror');
|
|
23
|
+
const _onopen = Symbol('_onopen');
|
|
24
|
+
const _onread = Symbol('_onread');
|
|
25
|
+
const _onwrite = Symbol('_onwrite');
|
|
26
|
+
const _open = Symbol('_open');
|
|
27
|
+
const _path = Symbol('_path');
|
|
28
|
+
const _pos = Symbol('_pos');
|
|
29
|
+
const _queue = Symbol('_queue');
|
|
30
|
+
const _read = Symbol('_read');
|
|
31
|
+
const _readSize = Symbol('_readSize');
|
|
32
|
+
const _reading = Symbol('_reading');
|
|
33
|
+
const _remain = Symbol('_remain');
|
|
34
|
+
const _size = Symbol('_size');
|
|
35
|
+
const _write = Symbol('_write');
|
|
36
|
+
const _writing = Symbol('_writing');
|
|
37
|
+
const _defaultFlag = Symbol('_defaultFlag');
|
|
38
|
+
const _errored = Symbol('_errored');
|
|
39
|
+
class ReadStream extends minipass_1.Minipass {
|
|
40
|
+
[_errored] = false;
|
|
41
|
+
[_fd];
|
|
42
|
+
[_path];
|
|
43
|
+
[_readSize];
|
|
44
|
+
[_reading] = false;
|
|
45
|
+
[_size];
|
|
46
|
+
[_remain];
|
|
47
|
+
[_autoClose];
|
|
48
|
+
constructor(path, opt) {
|
|
49
|
+
opt = opt || {};
|
|
50
|
+
super(opt);
|
|
51
|
+
this.readable = true;
|
|
52
|
+
this.writable = false;
|
|
53
|
+
if (typeof path !== 'string') {
|
|
54
|
+
throw new TypeError('path must be a string');
|
|
55
|
+
}
|
|
56
|
+
this[_errored] = false;
|
|
57
|
+
this[_fd] = typeof opt.fd === 'number' ? opt.fd : undefined;
|
|
58
|
+
this[_path] = path;
|
|
59
|
+
this[_readSize] = opt.readSize || 16 * 1024 * 1024;
|
|
60
|
+
this[_reading] = false;
|
|
61
|
+
this[_size] = typeof opt.size === 'number' ? opt.size : Infinity;
|
|
62
|
+
this[_remain] = this[_size];
|
|
63
|
+
this[_autoClose] =
|
|
64
|
+
typeof opt.autoClose === 'boolean' ? opt.autoClose : true;
|
|
65
|
+
if (typeof this[_fd] === 'number') {
|
|
66
|
+
this[_read]();
|
|
67
|
+
}
|
|
68
|
+
else {
|
|
69
|
+
this[_open]();
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
get fd() {
|
|
73
|
+
return this[_fd];
|
|
74
|
+
}
|
|
75
|
+
get path() {
|
|
76
|
+
return this[_path];
|
|
77
|
+
}
|
|
78
|
+
//@ts-ignore
|
|
79
|
+
write() {
|
|
80
|
+
throw new TypeError('this is a readable stream');
|
|
81
|
+
}
|
|
82
|
+
//@ts-ignore
|
|
83
|
+
end() {
|
|
84
|
+
throw new TypeError('this is a readable stream');
|
|
85
|
+
}
|
|
86
|
+
[_open]() {
|
|
87
|
+
fs_1.default.open(this[_path], 'r', (er, fd) => this[_onopen](er, fd));
|
|
88
|
+
}
|
|
89
|
+
[_onopen](er, fd) {
|
|
90
|
+
if (er) {
|
|
91
|
+
this[_onerror](er);
|
|
92
|
+
}
|
|
93
|
+
else {
|
|
94
|
+
this[_fd] = fd;
|
|
95
|
+
this.emit('open', fd);
|
|
96
|
+
this[_read]();
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
[_makeBuf]() {
|
|
100
|
+
return Buffer.allocUnsafe(Math.min(this[_readSize], this[_remain]));
|
|
101
|
+
}
|
|
102
|
+
[_read]() {
|
|
103
|
+
if (!this[_reading]) {
|
|
104
|
+
this[_reading] = true;
|
|
105
|
+
const buf = this[_makeBuf]();
|
|
106
|
+
/* c8 ignore start */
|
|
107
|
+
if (buf.length === 0) {
|
|
108
|
+
return process.nextTick(() => this[_onread](null, 0, buf));
|
|
109
|
+
}
|
|
110
|
+
/* c8 ignore stop */
|
|
111
|
+
fs_1.default.read(this[_fd], buf, 0, buf.length, null, (er, br, b) => this[_onread](er, br, b));
|
|
112
|
+
}
|
|
113
|
+
}
|
|
114
|
+
[_onread](er, br, buf) {
|
|
115
|
+
this[_reading] = false;
|
|
116
|
+
if (er) {
|
|
117
|
+
this[_onerror](er);
|
|
118
|
+
}
|
|
119
|
+
else if (this[_handleChunk](br, buf)) {
|
|
120
|
+
this[_read]();
|
|
121
|
+
}
|
|
122
|
+
}
|
|
123
|
+
[_close]() {
|
|
124
|
+
if (this[_autoClose] && typeof this[_fd] === 'number') {
|
|
125
|
+
const fd = this[_fd];
|
|
126
|
+
this[_fd] = undefined;
|
|
127
|
+
fs_1.default.close(fd, er => er ? this.emit('error', er) : this.emit('close'));
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
[_onerror](er) {
|
|
131
|
+
this[_reading] = true;
|
|
132
|
+
this[_close]();
|
|
133
|
+
this.emit('error', er);
|
|
134
|
+
}
|
|
135
|
+
[_handleChunk](br, buf) {
|
|
136
|
+
let ret = false;
|
|
137
|
+
// no effect if infinite
|
|
138
|
+
this[_remain] -= br;
|
|
139
|
+
if (br > 0) {
|
|
140
|
+
ret = super.write(br < buf.length ? buf.subarray(0, br) : buf);
|
|
141
|
+
}
|
|
142
|
+
if (br === 0 || this[_remain] <= 0) {
|
|
143
|
+
ret = false;
|
|
144
|
+
this[_close]();
|
|
145
|
+
super.end();
|
|
146
|
+
}
|
|
147
|
+
return ret;
|
|
148
|
+
}
|
|
149
|
+
emit(ev, ...args) {
|
|
150
|
+
switch (ev) {
|
|
151
|
+
case 'prefinish':
|
|
152
|
+
case 'finish':
|
|
153
|
+
return false;
|
|
154
|
+
case 'drain':
|
|
155
|
+
if (typeof this[_fd] === 'number') {
|
|
156
|
+
this[_read]();
|
|
157
|
+
}
|
|
158
|
+
return false;
|
|
159
|
+
case 'error':
|
|
160
|
+
if (this[_errored]) {
|
|
161
|
+
return false;
|
|
162
|
+
}
|
|
163
|
+
this[_errored] = true;
|
|
164
|
+
return super.emit(ev, ...args);
|
|
165
|
+
default:
|
|
166
|
+
return super.emit(ev, ...args);
|
|
167
|
+
}
|
|
168
|
+
}
|
|
169
|
+
}
|
|
170
|
+
exports.ReadStream = ReadStream;
|
|
171
|
+
class ReadStreamSync extends ReadStream {
|
|
172
|
+
[_open]() {
|
|
173
|
+
let threw = true;
|
|
174
|
+
try {
|
|
175
|
+
this[_onopen](null, fs_1.default.openSync(this[_path], 'r'));
|
|
176
|
+
threw = false;
|
|
177
|
+
}
|
|
178
|
+
finally {
|
|
179
|
+
if (threw) {
|
|
180
|
+
this[_close]();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
}
|
|
184
|
+
[_read]() {
|
|
185
|
+
let threw = true;
|
|
186
|
+
try {
|
|
187
|
+
if (!this[_reading]) {
|
|
188
|
+
this[_reading] = true;
|
|
189
|
+
do {
|
|
190
|
+
const buf = this[_makeBuf]();
|
|
191
|
+
/* c8 ignore start */
|
|
192
|
+
const br = buf.length === 0
|
|
193
|
+
? 0
|
|
194
|
+
: fs_1.default.readSync(this[_fd], buf, 0, buf.length, null);
|
|
195
|
+
/* c8 ignore stop */
|
|
196
|
+
if (!this[_handleChunk](br, buf)) {
|
|
197
|
+
break;
|
|
198
|
+
}
|
|
199
|
+
} while (true);
|
|
200
|
+
this[_reading] = false;
|
|
201
|
+
}
|
|
202
|
+
threw = false;
|
|
203
|
+
}
|
|
204
|
+
finally {
|
|
205
|
+
if (threw) {
|
|
206
|
+
this[_close]();
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
[_close]() {
|
|
211
|
+
if (this[_autoClose] && typeof this[_fd] === 'number') {
|
|
212
|
+
const fd = this[_fd];
|
|
213
|
+
this[_fd] = undefined;
|
|
214
|
+
fs_1.default.closeSync(fd);
|
|
215
|
+
this.emit('close');
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
}
|
|
219
|
+
exports.ReadStreamSync = ReadStreamSync;
|
|
220
|
+
class WriteStream extends events_1.default {
|
|
221
|
+
readable = false;
|
|
222
|
+
writable = true;
|
|
223
|
+
[_errored] = false;
|
|
224
|
+
[_writing] = false;
|
|
225
|
+
[_ended] = false;
|
|
226
|
+
[_queue] = [];
|
|
227
|
+
[_needDrain] = false;
|
|
228
|
+
[_path];
|
|
229
|
+
[_mode];
|
|
230
|
+
[_autoClose];
|
|
231
|
+
[_fd];
|
|
232
|
+
[_defaultFlag];
|
|
233
|
+
[_flags];
|
|
234
|
+
[_finished] = false;
|
|
235
|
+
[_pos];
|
|
236
|
+
constructor(path, opt) {
|
|
237
|
+
opt = opt || {};
|
|
238
|
+
super(opt);
|
|
239
|
+
this[_path] = path;
|
|
240
|
+
this[_fd] = typeof opt.fd === 'number' ? opt.fd : undefined;
|
|
241
|
+
this[_mode] = opt.mode === undefined ? 0o666 : opt.mode;
|
|
242
|
+
this[_pos] = typeof opt.start === 'number' ? opt.start : undefined;
|
|
243
|
+
this[_autoClose] =
|
|
244
|
+
typeof opt.autoClose === 'boolean' ? opt.autoClose : true;
|
|
245
|
+
// truncating makes no sense when writing into the middle
|
|
246
|
+
const defaultFlag = this[_pos] !== undefined ? 'r+' : 'w';
|
|
247
|
+
this[_defaultFlag] = opt.flags === undefined;
|
|
248
|
+
this[_flags] = opt.flags === undefined ? defaultFlag : opt.flags;
|
|
249
|
+
if (this[_fd] === undefined) {
|
|
250
|
+
this[_open]();
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
emit(ev, ...args) {
|
|
254
|
+
if (ev === 'error') {
|
|
255
|
+
if (this[_errored]) {
|
|
256
|
+
return false;
|
|
257
|
+
}
|
|
258
|
+
this[_errored] = true;
|
|
259
|
+
}
|
|
260
|
+
return super.emit(ev, ...args);
|
|
261
|
+
}
|
|
262
|
+
get fd() {
|
|
263
|
+
return this[_fd];
|
|
264
|
+
}
|
|
265
|
+
get path() {
|
|
266
|
+
return this[_path];
|
|
267
|
+
}
|
|
268
|
+
[_onerror](er) {
|
|
269
|
+
this[_close]();
|
|
270
|
+
this[_writing] = true;
|
|
271
|
+
this.emit('error', er);
|
|
272
|
+
}
|
|
273
|
+
[_open]() {
|
|
274
|
+
fs_1.default.open(this[_path], this[_flags], this[_mode], (er, fd) => this[_onopen](er, fd));
|
|
275
|
+
}
|
|
276
|
+
[_onopen](er, fd) {
|
|
277
|
+
if (this[_defaultFlag] &&
|
|
278
|
+
this[_flags] === 'r+' &&
|
|
279
|
+
er &&
|
|
280
|
+
er.code === 'ENOENT') {
|
|
281
|
+
this[_flags] = 'w';
|
|
282
|
+
this[_open]();
|
|
283
|
+
}
|
|
284
|
+
else if (er) {
|
|
285
|
+
this[_onerror](er);
|
|
286
|
+
}
|
|
287
|
+
else {
|
|
288
|
+
this[_fd] = fd;
|
|
289
|
+
this.emit('open', fd);
|
|
290
|
+
if (!this[_writing]) {
|
|
291
|
+
this[_flush]();
|
|
292
|
+
}
|
|
293
|
+
}
|
|
294
|
+
}
|
|
295
|
+
end(buf, enc) {
|
|
296
|
+
if (buf) {
|
|
297
|
+
//@ts-ignore
|
|
298
|
+
this.write(buf, enc);
|
|
299
|
+
}
|
|
300
|
+
this[_ended] = true;
|
|
301
|
+
// synthetic after-write logic, where drain/finish live
|
|
302
|
+
if (!this[_writing] &&
|
|
303
|
+
!this[_queue].length &&
|
|
304
|
+
typeof this[_fd] === 'number') {
|
|
305
|
+
this[_onwrite](null, 0);
|
|
306
|
+
}
|
|
307
|
+
return this;
|
|
308
|
+
}
|
|
309
|
+
write(buf, enc) {
|
|
310
|
+
if (typeof buf === 'string') {
|
|
311
|
+
buf = Buffer.from(buf, enc);
|
|
312
|
+
}
|
|
313
|
+
if (this[_ended]) {
|
|
314
|
+
this.emit('error', new Error('write() after end()'));
|
|
315
|
+
return false;
|
|
316
|
+
}
|
|
317
|
+
if (this[_fd] === undefined || this[_writing] || this[_queue].length) {
|
|
318
|
+
this[_queue].push(buf);
|
|
319
|
+
this[_needDrain] = true;
|
|
320
|
+
return false;
|
|
321
|
+
}
|
|
322
|
+
this[_writing] = true;
|
|
323
|
+
this[_write](buf);
|
|
324
|
+
return true;
|
|
325
|
+
}
|
|
326
|
+
[_write](buf) {
|
|
327
|
+
fs_1.default.write(this[_fd], buf, 0, buf.length, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
328
|
+
}
|
|
329
|
+
[_onwrite](er, bw) {
|
|
330
|
+
if (er) {
|
|
331
|
+
this[_onerror](er);
|
|
332
|
+
}
|
|
333
|
+
else {
|
|
334
|
+
if (this[_pos] !== undefined && typeof bw === 'number') {
|
|
335
|
+
this[_pos] += bw;
|
|
336
|
+
}
|
|
337
|
+
if (this[_queue].length) {
|
|
338
|
+
this[_flush]();
|
|
339
|
+
}
|
|
340
|
+
else {
|
|
341
|
+
this[_writing] = false;
|
|
342
|
+
if (this[_ended] && !this[_finished]) {
|
|
343
|
+
this[_finished] = true;
|
|
344
|
+
this[_close]();
|
|
345
|
+
this.emit('finish');
|
|
346
|
+
}
|
|
347
|
+
else if (this[_needDrain]) {
|
|
348
|
+
this[_needDrain] = false;
|
|
349
|
+
this.emit('drain');
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
}
|
|
354
|
+
[_flush]() {
|
|
355
|
+
if (this[_queue].length === 0) {
|
|
356
|
+
if (this[_ended]) {
|
|
357
|
+
this[_onwrite](null, 0);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
else if (this[_queue].length === 1) {
|
|
361
|
+
this[_write](this[_queue].pop());
|
|
362
|
+
}
|
|
363
|
+
else {
|
|
364
|
+
const iovec = this[_queue];
|
|
365
|
+
this[_queue] = [];
|
|
366
|
+
writev(this[_fd], iovec, this[_pos], (er, bw) => this[_onwrite](er, bw));
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
[_close]() {
|
|
370
|
+
if (this[_autoClose] && typeof this[_fd] === 'number') {
|
|
371
|
+
const fd = this[_fd];
|
|
372
|
+
this[_fd] = undefined;
|
|
373
|
+
fs_1.default.close(fd, er => er ? this.emit('error', er) : this.emit('close'));
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
exports.WriteStream = WriteStream;
|
|
378
|
+
class WriteStreamSync extends WriteStream {
|
|
379
|
+
[_open]() {
|
|
380
|
+
let fd;
|
|
381
|
+
// only wrap in a try{} block if we know we'll retry, to avoid
|
|
382
|
+
// the rethrow obscuring the error's source frame in most cases.
|
|
383
|
+
if (this[_defaultFlag] && this[_flags] === 'r+') {
|
|
384
|
+
try {
|
|
385
|
+
fd = fs_1.default.openSync(this[_path], this[_flags], this[_mode]);
|
|
386
|
+
}
|
|
387
|
+
catch (er) {
|
|
388
|
+
if (er?.code === 'ENOENT') {
|
|
389
|
+
this[_flags] = 'w';
|
|
390
|
+
return this[_open]();
|
|
391
|
+
}
|
|
392
|
+
else {
|
|
393
|
+
throw er;
|
|
394
|
+
}
|
|
395
|
+
}
|
|
396
|
+
}
|
|
397
|
+
else {
|
|
398
|
+
fd = fs_1.default.openSync(this[_path], this[_flags], this[_mode]);
|
|
399
|
+
}
|
|
400
|
+
this[_onopen](null, fd);
|
|
401
|
+
}
|
|
402
|
+
[_close]() {
|
|
403
|
+
if (this[_autoClose] && typeof this[_fd] === 'number') {
|
|
404
|
+
const fd = this[_fd];
|
|
405
|
+
this[_fd] = undefined;
|
|
406
|
+
fs_1.default.closeSync(fd);
|
|
407
|
+
this.emit('close');
|
|
408
|
+
}
|
|
409
|
+
}
|
|
410
|
+
[_write](buf) {
|
|
411
|
+
// throw the original, but try to close if it fails
|
|
412
|
+
let threw = true;
|
|
413
|
+
try {
|
|
414
|
+
this[_onwrite](null, fs_1.default.writeSync(this[_fd], buf, 0, buf.length, this[_pos]));
|
|
415
|
+
threw = false;
|
|
416
|
+
}
|
|
417
|
+
finally {
|
|
418
|
+
if (threw) {
|
|
419
|
+
try {
|
|
420
|
+
this[_close]();
|
|
421
|
+
}
|
|
422
|
+
catch {
|
|
423
|
+
// ok error
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
}
|
|
427
|
+
}
|
|
428
|
+
}
|
|
429
|
+
exports.WriteStreamSync = WriteStreamSync;
|
|
430
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;AAAA,oDAAuB;AACvB,4CAAmB;AACnB,uCAAmC;AAEnC,MAAM,MAAM,GAAG,YAAE,CAAC,MAAM,CAAA;AAExB,MAAM,UAAU,GAAG,MAAM,CAAC,YAAY,CAAC,CAAA;AACvC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;AAC/B,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAAC,CAAA;AAC/B,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAA;AACzB,MAAM,SAAS,GAAG,MAAM,CAAC,WAAW,CAAC,CAAA;AACrC,MAAM,MAAM,GAAG,MAAM,CAAC,QAAQ,CAA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AC,EAAE,IAAI,CAAC,MAAM,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAA;QAC1D,CAAC;QAED,IAAI,CAAC,OAAO,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAA;IACzB,CAAC;IAED,CAAC,MAAM,CAAC;QACN,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,OAAO,IAAI,CAAC,GAAG,CAAC,KAAK,QAAQ,EAAE,CAAC;YACtD,MAAM,EAAE,GAAG,IAAI,CAAC,GAAG,CAAC,CAAA;YACpB,IAAI,CAAC,GAAG,CAAC,GAAG,SAAS,CAAA;YACrB,YAAE,CAAC,SAAS,CAAC,EAAE,CAAC,CAAA;YAChB,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAA;QACpB,CAAC;IACH,CAAC;IAED,CAAC,MAAM,CAAC,CAAC,GAAW;QAClB,mDAAmD;QACnD,IAAI,KAAK,GAAG,IAAI,CAAA;QAChB,IAAI,CAAC;YACH,IAAI,CAAC,QAAQ,CAAC,CACZ,IAAI,EACJ,YAAE,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAW,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,CAAC,MAAM,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAClE,CAAA;YACD,KAAK,GAAG,KAAK,CAAA;QACf,CAAC;gBAAS,CAAC;YACT,IAAI,KAAK,EAAE,CAAC;gBACV,IAAI,CAAC;oBACH,IAAI,CAAC,MAAM,CAAC,EAAE,CAAA;gBAChB,CAAC;gBAAC,MAAM,CAAC;oBACP,WAAW;gBACb,CAAC;YACH,CAAC;QACH,CAAC;IACH,CAAC;CACF;AAnDD,0CAmDC","sourcesContent":["import EE from 'events'\nimport fs from 'fs'\nimport { Minipass } from 'minipass'\n\nconst writev = fs.writev\n\nconst _autoClose = Symbol('_autoClose')\nconst _close = Symbol('_close')\nconst _ended = Symbol('_ended')\nconst _fd = Symbol('_fd')\nconst _finished = Symbol('_finished')\nconst _flags = Symbol('_flags')\nconst _flush = Symbol('_flush')\nconst _handleChunk = Symbol('_handleChunk')\nconst _makeBuf = Symbol('_makeBuf')\nconst _mode = Symbol('_mode')\nconst _needDrain = Symbol('_needDrain')\nconst _onerror = Symbol('_onerror')\nconst _onopen = Symbol('_onopen')\nconst _onread = Symbol('_onread')\nconst _onwrite = Symbol('_onwrite')\nconst _open = Symbol('_open')\nconst _path = Symbol('_path')\nconst _pos = Symbol('_pos')\nconst _queue = Symbol('_queue')\nconst _read = Symbol('_read')\nconst _readSize = Symbol('_readSize')\nconst _reading = Symbol('_reading')\nconst _remain = Symbol('_remain')\nconst _size = Symbol('_size')\nconst _write = Symbol('_write')\nconst _writing = Symbol('_writing')\nconst _defaultFlag = Symbol('_defaultFlag')\nconst _errored = Symbol('_errored')\n\nexport type ReadStreamOptions =\n Minipass.Options<Minipass.ContiguousData> & {\n fd?: number\n readSize?: number\n size?: number\n autoClose?: boolean\n }\n\nexport type ReadStreamEvents = Minipass.Events<Minipass.ContiguousData> & {\n open: [fd: number]\n}\n\nexport class ReadStream extends Minipass<\n Minipass.ContiguousData,\n Buffer,\n ReadStreamEvents\n> {\n [_errored]: boolean = false;\n [_fd]?: number;\n [_path]: string;\n [_readSize]: number;\n [_reading]: boolean = false;\n [_size]: number;\n [_remain]: number;\n [_autoClose]: boolean\n\n constructor(path: string, opt: ReadStreamOptions) {\n opt = opt || {}\n super(opt)\n\n this.readable = true\n this.writable = false\n\n if (typeof path !== 'string') {\n throw new TypeError('path must be a string')\n }\n\n this[_errored] = false\n this[_fd] = typeof opt.fd === 'number' ? opt.fd : undefined\n this[_path] = path\n this[_readSize] = opt.readSize || 16 * 1024 * 1024\n this[_reading] = false\n this[_size] = typeof opt.size === 'number' ? opt.size : Infinity\n this[_remain] = this[_size]\n this[_autoClose] =\n typeof opt.autoClose === 'boolean' ? opt.autoClose : true\n\n if (typeof this[_fd] === 'number') {\n this[_read]()\n } else {\n this[_open]()\n }\n }\n\n get fd() {\n return this[_fd]\n }\n\n get path() {\n return this[_path]\n }\n\n //@ts-ignore\n write() {\n throw new TypeError('this is a readable stream')\n }\n\n //@ts-ignore\n end() {\n throw new TypeError('this is a readable stream')\n }\n\n [_open]() {\n fs.open(this[_path], 'r', (er, fd) => this[_onopen](er, fd))\n }\n\n [_onopen](er?: NodeJS.ErrnoException | null, fd?: number) {\n if (er) {\n this[_onerror](er)\n } else {\n this[_fd] = fd\n this.emit('open', fd as number)\n this[_read]()\n }\n }\n\n [_makeBuf]() {\n return Buffer.allocUnsafe(Math.min(this[_readSize], this[_remain]))\n }\n\n [_read]() {\n if (!this[_reading]) {\n this[_reading] = true\n const buf = this[_makeBuf]()\n /* c8 ignore start */\n if (buf.length === 0) {\n return process.nextTick(() => this[_onread](null, 0, buf))\n }\n /* c8 ignore stop */\n fs.read(this[_fd] as number, buf, 0, buf.length, null, (er, br, b) =>\n this[_onread](er, br, b),\n )\n }\n }\n\n [_onread](er?: NodeJS.ErrnoException | null, br?: number, buf?: Buffer) {\n this[_reading] = false\n if (er) {\n this[_onerror](er)\n } else if (this[_handleChunk](br as number, buf as Buffer)) {\n this[_read]()\n }\n }\n\n [_close]() {\n if (this[_autoClose] && typeof this[_fd] === 'number') {\n const fd = this[_fd]\n this[_fd] = undefined\n fs.close(fd, er =>\n er ? this.emit('error', er) : this.emit('close'),\n )\n }\n }\n\n [_onerror](er: NodeJS.ErrnoException) {\n this[_reading] = true\n this[_close]()\n this.emit('error', er)\n }\n\n [_handleChunk](br: number, buf: Buffer) {\n let ret = false\n // no effect if infinite\n this[_remain] -= br\n if (br > 0) {\n ret = super.write(br < buf.length ? buf.subarray(0, br) : buf)\n }\n\n if (br === 0 || this[_remain] <= 0) {\n ret = false\n this[_close]()\n super.end()\n }\n\n return ret\n }\n\n emit<Event extends keyof ReadStreamEvents>(\n ev: Event,\n ...args: ReadStreamEvents[Event]\n ): boolean {\n switch (ev) {\n case 'prefinish':\n case 'finish':\n return false\n\n case 'drain':\n if (typeof this[_fd] === 'number') {\n this[_read]()\n }\n return false\n\n case 'error':\n if (this[_errored]) {\n return false\n }\n this[_errored] = true\n return super.emit(ev, ...args)\n\n default:\n return super.emit(ev, ...args)\n }\n }\n}\n\nexport class ReadStreamSync extends ReadStream {\n [_open]() {\n let threw = true\n try {\n this[_onopen](null, fs.openSync(this[_path], 'r'))\n threw = false\n } finally {\n if (threw) {\n this[_close]()\n }\n }\n }\n\n [_read]() {\n let threw = true\n try {\n if (!this[_reading]) {\n this[_reading] = true\n do {\n const buf = this[_makeBuf]()\n /* c8 ignore start */\n const br =\n buf.length === 0\n ? 0\n : fs.readSync(this[_fd] as number, buf, 0, buf.length, null)\n /* c8 ignore stop */\n if (!this[_handleChunk](br, buf)) {\n break\n }\n } while (true)\n this[_reading] = false\n }\n threw = false\n } finally {\n if (threw) {\n this[_close]()\n }\n }\n }\n\n [_close]() {\n if (this[_autoClose] && typeof this[_fd] === 'number') {\n const fd = this[_fd]\n this[_fd] = undefined\n fs.closeSync(fd)\n this.emit('close')\n }\n }\n}\n\nexport type WriteStreamOptions = {\n fd?: number\n autoClose?: boolean\n mode?: number\n captureRejections?: boolean\n start?: number\n flags?: string\n}\n\nexport class WriteStream extends EE {\n readable: false = false\n writable: boolean = true;\n [_errored]: boolean = false;\n [_writing]: boolean = false;\n [_ended]: boolean = false;\n [_queue]: Buffer[] = [];\n [_needDrain]: boolean = false;\n [_path]: string;\n [_mode]: number;\n [_autoClose]: boolean;\n [_fd]?: number;\n [_defaultFlag]: boolean;\n [_flags]: string;\n [_finished]: boolean = false;\n [_pos]?: number\n\n constructor(path: string, opt: WriteStreamOptions) {\n opt = opt || {}\n super(opt)\n this[_path] = path\n this[_fd] = typeof opt.fd === 'number' ? opt.fd : undefined\n this[_mode] = opt.mode === undefined ? 0o666 : opt.mode\n this[_pos] = typeof opt.start === 'number' ? opt.start : undefined\n this[_autoClose] =\n typeof opt.autoClose === 'boolean' ? opt.autoClose : true\n\n // truncating makes no sense when writing into the middle\n const defaultFlag = this[_pos] !== undefined ? 'r+' : 'w'\n this[_defaultFlag] = opt.flags === undefined\n this[_flags] = opt.flags === undefined ? defaultFlag : opt.flags\n\n if (this[_fd] === undefined) {\n this[_open]()\n }\n }\n\n emit(ev: string, ...args: any[]) {\n if (ev === 'error') {\n if (this[_errored]) {\n return false\n }\n this[_errored] = true\n }\n return super.emit(ev, ...args)\n }\n\n get fd() {\n return this[_fd]\n }\n\n get path() {\n return this[_path]\n }\n\n [_onerror](er: NodeJS.ErrnoException) {\n this[_close]()\n this[_writing] = true\n this.emit('error', er)\n }\n\n [_open]() {\n fs.open(this[_path], this[_flags], this[_mode], (er, fd) =>\n this[_onopen](er, fd),\n )\n }\n\n [_onopen](er?: null | NodeJS.ErrnoException, fd?: number) {\n if (\n this[_defaultFlag] &&\n this[_flags] === 'r+' &&\n er &&\n er.code === 'ENOENT'\n ) {\n this[_flags] = 'w'\n this[_open]()\n } else if (er) {\n this[_onerror](er)\n } else {\n this[_fd] = fd\n this.emit('open', fd)\n if (!this[_writing]) {\n this[_flush]()\n }\n }\n }\n\n end(buf: string, enc?: BufferEncoding): this\n end(buf?: Buffer, enc?: undefined): this\n end(buf?: Buffer | string, enc?: BufferEncoding): this {\n if (buf) {\n //@ts-ignore\n this.write(buf, enc)\n }\n\n this[_ended] = true\n\n // synthetic after-write logic, where drain/finish live\n if (\n !this[_writing] &&\n !this[_queue].length &&\n typeof this[_fd] === 'number'\n ) {\n this[_onwrite](null, 0)\n }\n return this\n }\n\n write(buf: string, enc?: BufferEncoding): boolean\n write(buf: Buffer, enc?: undefined): boolean\n write(buf: Buffer | string, enc?: BufferEncoding): boolean {\n if (typeof buf === 'string') {\n buf = Buffer.from(buf, enc)\n }\n\n if (this[_ended]) {\n this.emit('error', new Error('write() after end()'))\n return false\n }\n\n if (this[_fd] === undefined || this[_writing] || this[_queue].length) {\n this[_queue].push(buf)\n this[_needDrain] = true\n return false\n }\n\n this[_writing] = true\n this[_write](buf)\n return true\n }\n\n [_write](buf: Buffer) {\n fs.write(\n this[_fd] as number,\n buf,\n 0,\n buf.length,\n this[_pos],\n (er, bw) => this[_onwrite](er, bw),\n )\n }\n\n [_onwrite](er?: null | NodeJS.ErrnoException, bw?: number) {\n if (er) {\n this[_onerror](er)\n } else {\n if (this[_pos] !== undefined && typeof bw === 'number') {\n this[_pos] += bw\n }\n if (this[_queue].length) {\n this[_flush]()\n } else {\n this[_writing] = false\n\n if (this[_ended] && !this[_finished]) {\n this[_finished] = true\n this[_close]()\n this.emit('finish')\n } else if (this[_needDrain]) {\n this[_needDrain] = false\n this.emit('drain')\n }\n }\n }\n }\n\n [_flush]() {\n if (this[_queue].length === 0) {\n if (this[_ended]) {\n this[_onwrite](null, 0)\n }\n } else if (this[_queue].length === 1) {\n this[_write](this[_queue].pop() as Buffer)\n } else {\n const iovec = this[_queue]\n this[_queue] = []\n writev(this[_fd] as number, iovec, this[_pos] as number, (er, bw) =>\n this[_onwrite](er, bw),\n )\n }\n }\n\n [_close]() {\n if (this[_autoClose] && typeof this[_fd] === 'number') {\n const fd = this[_fd]\n this[_fd] = undefined\n fs.close(fd, er =>\n er ? this.emit('error', er) : this.emit('close'),\n )\n }\n }\n}\n\nexport class WriteStreamSync extends WriteStream {\n [_open](): void {\n let fd\n // only wrap in a try{} block if we know we'll retry, to avoid\n // the rethrow obscuring the error's source frame in most cases.\n if (this[_defaultFlag] && this[_flags] === 'r+') {\n try {\n fd = fs.openSync(this[_path], this[_flags], this[_mode])\n } catch (er) {\n if ((er as NodeJS.ErrnoException)?.code === 'ENOENT') {\n this[_flags] = 'w'\n return this[_open]()\n } else {\n throw er\n }\n }\n } else {\n fd = fs.openSync(this[_path], this[_flags], this[_mode])\n }\n\n this[_onopen](null, fd)\n }\n\n [_close]() {\n if (this[_autoClose] && typeof this[_fd] === 'number') {\n const fd = this[_fd]\n this[_fd] = undefined\n fs.closeSync(fd)\n this.emit('close')\n }\n }\n\n [_write](buf: Buffer) {\n // throw the original, but try to close if it fails\n let threw = true\n try {\n this[_onwrite](\n null,\n fs.writeSync(this[_fd] as number, buf, 0, buf.length, this[_pos]),\n )\n threw = false\n } finally {\n if (threw) {\n try {\n this[_close]()\n } catch {\n // ok error\n }\n }\n }\n }\n}\n"]}
|