@happier-dev/relay-server 0.2.6-dev.1778098335.1 → 0.2.11-preview.3
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/bin/happier-server.mjs +13 -21
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.d.ts +38 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.js +1123 -0
- package/node_modules/@happier-dev/release-runtime/dist/archiveExtraction.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/dist/assets.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/github.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/dist/github.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/github.js +17 -15
- package/node_modules/@happier-dev/release-runtime/dist/github.js.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.d.ts +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.js +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/index.js.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.d.ts +3 -2
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.d.ts.map +1 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.js +5 -0
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.js.map +1 -1
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/LICENSE.md +55 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/README.md +1233 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.js +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/create.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.d.ts +8 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.js +18 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/cwd-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.js +88 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/extract.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.js +32 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/get-write-flag.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.d.ts +53 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.js +348 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/header.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.d.ts +20 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.js +64 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.min.js +4 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/index.min.js.map +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.js +99 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/large-numbers.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.d.ts +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.js +153 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/list.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.d.ts +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.js +52 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/make-command.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.d.ts +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.js +187 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mkdir.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.js +29 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/mode-fix.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.js +38 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-unicode.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.js +12 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/normalize-windows-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.d.ts +604 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.js +66 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/options.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.d.ts +105 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.js +544 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.d.ts +92 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.js +655 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/parse.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.d.ts +11 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.js +170 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/path-reservations.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.d.ts +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.js +182 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/pax.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.js +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/process-umask.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.d.ts +36 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.js +136 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/read-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.js +227 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/replace.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.js +29 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-absolute-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.js +18 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/strip-trailing-slashes.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.d.ts +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.js +19 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/symlink-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.d.ts +16 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.js +70 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/types.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.d.ts +101 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.js +932 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/unpack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.js +33 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/update.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.d.ts +24 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.js +31 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/warn-method.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.js +14 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/winchars.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.d.ts +129 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.js +698 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/commonjs/write-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.js +76 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/create.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.d.ts +8 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.js +14 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/cwd-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.js +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/extract.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.js +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/get-write-flag.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.d.ts +53 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.js +311 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/header.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.d.ts +20 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.js +20 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.min.js +4 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/index.min.js.map +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.js +94 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/large-numbers.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.d.ts +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.js +113 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/list.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.d.ts +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.js +48 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/make-command.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.d.ts +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.js +179 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mkdir.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.js +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/mode-fix.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.js +34 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-unicode.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.js +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/normalize-windows-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.d.ts +604 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.js +54 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/options.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.d.ts +105 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.js +502 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.d.ts +92 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.js +651 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/parse.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.d.ts +11 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.js +166 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/path-reservations.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.d.ts +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.js +178 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/pax.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.js +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/process-umask.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.d.ts +36 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.js +132 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/read-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.js +221 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/replace.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.js +25 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-absolute-path.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.js +14 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/strip-trailing-slashes.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.d.ts +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.js +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/symlink-error.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.d.ts +16 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.js +65 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/types.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.d.ts +101 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.js +891 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/unpack.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.js +30 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/update.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.d.ts +24 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.js +27 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/warn-method.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.js +9 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/winchars.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.d.ts +129 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.js +656 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/dist/esm/write-entry.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/README.md +71 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts +118 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js +430 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts +118 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.js +420 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/README.md +825 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/node_modules/minipass/package.json +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/@isaacs/fs-minipass/package.json +72 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/LICENSE.md +63 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/README.md +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.js +93 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.js +85 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/chownr/package.json +69 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/README.md +825 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minipass/package.json +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/LICENSE +26 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/README.md +64 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.js +123 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/constants.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.d.ts +99 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.js +416 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.d.ts +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.js +117 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/constants.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.d.ts +99 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.js +363 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/LICENSE +15 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/README.md +825 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.js +1028 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.d.ts +549 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.js +1018 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/node_modules/minipass/package.json +82 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/minizlib/package.json +80 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/LICENSE.md +63 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/README.md +205 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts +39 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.js +384 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/commonjs/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts +39 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.d.ts.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.js +379 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/index.js.map +1 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/dist/esm/package.json +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/node_modules/yallist/package.json +68 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/tar/package.json +298 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/README.md +72 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/dist/package/xz-decompress.js +273 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/dist/package/xz-decompress.min.js +6 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/package.json +55 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/xz-decompress/types.d.ts +3 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/LICENSE +21 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/README.md +658 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/index.js +796 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/LICENSE +19 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/README.md +47 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/index.js +111 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/buffer-crc32/package.json +39 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/.npmignore +2 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/.travis.yml +7 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/CHANGELOG.md +49 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/LICENSE +21 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/README.md +199 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/index.js +296 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/LICENSE +23 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/README.md +41 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/index.js +55 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/package.json +18 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/node_modules/pend/test.js +137 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/package.json +36 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/node_modules/fd-slicer/test/test.js +350 -0
- package/node_modules/@happier-dev/release-runtime/node_modules/yauzl/package.json +40 -0
- package/node_modules/@happier-dev/release-runtime/package.json +8 -3
- package/node_modules/@happier-dev/release-runtime/releaseRings.cjs +204 -0
- package/package.json +1 -1
- package/src/archiveCache.mjs +25 -0
- package/src/archiveCache.test.mjs +82 -0
- package/src/runnerConfig.mjs +1 -1
- package/src/runnerConfig.test.mjs +3 -3
- package/node_modules/@happier-dev/release-runtime/dist/.tsbuildinfo +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/_cjs/releaseRings.js +0 -134
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts +0 -14
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.d.ts.map +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js +0 -48
- package/node_modules/@happier-dev/release-runtime/dist/extractPlan.js.map +0 -1
- package/node_modules/@happier-dev/release-runtime/dist/releaseRings.cjs +0 -134
|
@@ -0,0 +1,544 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// A readable tar stream creator
|
|
3
|
+
// Technically, this is a transform stream that you write paths into,
|
|
4
|
+
// and tar format comes out of.
|
|
5
|
+
// The `add()` method is like `write()` but returns this,
|
|
6
|
+
// and end() return `this` as well, so you can
|
|
7
|
+
// do `new Pack(opt).add('files').add('dir').end().pipe(output)
|
|
8
|
+
// You could also do something like:
|
|
9
|
+
// streamOfPaths().pipe(new Pack()).pipe(new fs.WriteStream('out.tar'))
|
|
10
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
11
|
+
if (k2 === undefined) k2 = k;
|
|
12
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
13
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
14
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
15
|
+
}
|
|
16
|
+
Object.defineProperty(o, k2, desc);
|
|
17
|
+
}) : (function(o, m, k, k2) {
|
|
18
|
+
if (k2 === undefined) k2 = k;
|
|
19
|
+
o[k2] = m[k];
|
|
20
|
+
}));
|
|
21
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
22
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
23
|
+
}) : function(o, v) {
|
|
24
|
+
o["default"] = v;
|
|
25
|
+
});
|
|
26
|
+
var __importStar = (this && this.__importStar) || (function () {
|
|
27
|
+
var ownKeys = function(o) {
|
|
28
|
+
ownKeys = Object.getOwnPropertyNames || function (o) {
|
|
29
|
+
var ar = [];
|
|
30
|
+
for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
|
|
31
|
+
return ar;
|
|
32
|
+
};
|
|
33
|
+
return ownKeys(o);
|
|
34
|
+
};
|
|
35
|
+
return function (mod) {
|
|
36
|
+
if (mod && mod.__esModule) return mod;
|
|
37
|
+
var result = {};
|
|
38
|
+
if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
|
|
39
|
+
__setModuleDefault(result, mod);
|
|
40
|
+
return result;
|
|
41
|
+
};
|
|
42
|
+
})();
|
|
43
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
44
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
45
|
+
};
|
|
46
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
47
|
+
exports.PackSync = exports.Pack = exports.PackJob = void 0;
|
|
48
|
+
const fs_1 = __importDefault(require("fs"));
|
|
49
|
+
const write_entry_js_1 = require("./write-entry.js");
|
|
50
|
+
class PackJob {
|
|
51
|
+
path;
|
|
52
|
+
absolute;
|
|
53
|
+
entry;
|
|
54
|
+
stat;
|
|
55
|
+
readdir;
|
|
56
|
+
pending = false;
|
|
57
|
+
pendingLink = false;
|
|
58
|
+
ignore = false;
|
|
59
|
+
piped = false;
|
|
60
|
+
constructor(path, absolute) {
|
|
61
|
+
this.path = path || './';
|
|
62
|
+
this.absolute = absolute;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
exports.PackJob = PackJob;
|
|
66
|
+
const minipass_1 = require("minipass");
|
|
67
|
+
const zlib = __importStar(require("minizlib"));
|
|
68
|
+
const yallist_1 = require("yallist");
|
|
69
|
+
const warn_method_js_1 = require("./warn-method.js");
|
|
70
|
+
const EOF = Buffer.alloc(1024);
|
|
71
|
+
const ONSTAT = Symbol('onStat');
|
|
72
|
+
const ENDED = Symbol('ended');
|
|
73
|
+
const QUEUE = Symbol('queue');
|
|
74
|
+
const PENDINGLINKS = Symbol('pendingLinks');
|
|
75
|
+
const CURRENT = Symbol('current');
|
|
76
|
+
const PROCESS = Symbol('process');
|
|
77
|
+
const PROCESSING = Symbol('processing');
|
|
78
|
+
const PROCESSJOB = Symbol('processJob');
|
|
79
|
+
const JOBS = Symbol('jobs');
|
|
80
|
+
const JOBDONE = Symbol('jobDone');
|
|
81
|
+
const ADDFSENTRY = Symbol('addFSEntry');
|
|
82
|
+
const ADDTARENTRY = Symbol('addTarEntry');
|
|
83
|
+
const STAT = Symbol('stat');
|
|
84
|
+
const READDIR = Symbol('readdir');
|
|
85
|
+
const ONREADDIR = Symbol('onreaddir');
|
|
86
|
+
const PIPE = Symbol('pipe');
|
|
87
|
+
const ENTRY = Symbol('entry');
|
|
88
|
+
const ENTRYOPT = Symbol('entryOpt');
|
|
89
|
+
const WRITEENTRYCLASS = Symbol('writeEntryClass');
|
|
90
|
+
const WRITE = Symbol('write');
|
|
91
|
+
const ONDRAIN = Symbol('ondrain');
|
|
92
|
+
const path_1 = __importDefault(require("path"));
|
|
93
|
+
const normalize_windows_path_js_1 = require("./normalize-windows-path.js");
|
|
94
|
+
class Pack extends minipass_1.Minipass {
|
|
95
|
+
sync = false;
|
|
96
|
+
opt;
|
|
97
|
+
cwd;
|
|
98
|
+
maxReadSize;
|
|
99
|
+
preservePaths;
|
|
100
|
+
strict;
|
|
101
|
+
noPax;
|
|
102
|
+
prefix;
|
|
103
|
+
linkCache;
|
|
104
|
+
statCache;
|
|
105
|
+
file;
|
|
106
|
+
portable;
|
|
107
|
+
zip;
|
|
108
|
+
readdirCache;
|
|
109
|
+
noDirRecurse;
|
|
110
|
+
follow;
|
|
111
|
+
noMtime;
|
|
112
|
+
mtime;
|
|
113
|
+
filter;
|
|
114
|
+
jobs;
|
|
115
|
+
[WRITEENTRYCLASS];
|
|
116
|
+
onWriteEntry;
|
|
117
|
+
// Note: we actually DO need a linked list here, because we
|
|
118
|
+
// shift() to update the head of the list where we start, but still
|
|
119
|
+
// while that happens, need to know what the next item in the queue
|
|
120
|
+
// will be. Since we do multiple jobs in parallel, it's not as simple
|
|
121
|
+
// as just an Array.shift(), since that would lose the information about
|
|
122
|
+
// the next job in the list. We could add a .next field on the PackJob
|
|
123
|
+
// class, but then we'd have to be tracking the tail of the queue the
|
|
124
|
+
// whole time, and Yallist just does that for us anyway.
|
|
125
|
+
[QUEUE];
|
|
126
|
+
[PENDINGLINKS] = new Map();
|
|
127
|
+
[JOBS] = 0;
|
|
128
|
+
[PROCESSING] = false;
|
|
129
|
+
[ENDED] = false;
|
|
130
|
+
constructor(opt = {}) {
|
|
131
|
+
super();
|
|
132
|
+
this.opt = opt;
|
|
133
|
+
this.file = opt.file || '';
|
|
134
|
+
this.cwd = opt.cwd || process.cwd();
|
|
135
|
+
this.maxReadSize = opt.maxReadSize;
|
|
136
|
+
this.preservePaths = !!opt.preservePaths;
|
|
137
|
+
this.strict = !!opt.strict;
|
|
138
|
+
this.noPax = !!opt.noPax;
|
|
139
|
+
this.prefix = (0, normalize_windows_path_js_1.normalizeWindowsPath)(opt.prefix || '');
|
|
140
|
+
this.linkCache = opt.linkCache || new Map();
|
|
141
|
+
this.statCache = opt.statCache || new Map();
|
|
142
|
+
this.readdirCache = opt.readdirCache || new Map();
|
|
143
|
+
this.onWriteEntry = opt.onWriteEntry;
|
|
144
|
+
this[WRITEENTRYCLASS] = write_entry_js_1.WriteEntry;
|
|
145
|
+
if (typeof opt.onwarn === 'function') {
|
|
146
|
+
this.on('warn', opt.onwarn);
|
|
147
|
+
}
|
|
148
|
+
this.portable = !!opt.portable;
|
|
149
|
+
if (opt.gzip || opt.brotli || opt.zstd) {
|
|
150
|
+
if ((opt.gzip ? 1 : 0) + (opt.brotli ? 1 : 0) + (opt.zstd ? 1 : 0) >
|
|
151
|
+
1) {
|
|
152
|
+
throw new TypeError('gzip, brotli, zstd are mutually exclusive');
|
|
153
|
+
}
|
|
154
|
+
if (opt.gzip) {
|
|
155
|
+
if (typeof opt.gzip !== 'object') {
|
|
156
|
+
opt.gzip = {};
|
|
157
|
+
}
|
|
158
|
+
if (this.portable) {
|
|
159
|
+
opt.gzip.portable = true;
|
|
160
|
+
}
|
|
161
|
+
this.zip = new zlib.Gzip(opt.gzip);
|
|
162
|
+
}
|
|
163
|
+
if (opt.brotli) {
|
|
164
|
+
if (typeof opt.brotli !== 'object') {
|
|
165
|
+
opt.brotli = {};
|
|
166
|
+
}
|
|
167
|
+
this.zip = new zlib.BrotliCompress(opt.brotli);
|
|
168
|
+
}
|
|
169
|
+
if (opt.zstd) {
|
|
170
|
+
if (typeof opt.zstd !== 'object') {
|
|
171
|
+
opt.zstd = {};
|
|
172
|
+
}
|
|
173
|
+
this.zip = new zlib.ZstdCompress(opt.zstd);
|
|
174
|
+
}
|
|
175
|
+
/* c8 ignore next */
|
|
176
|
+
if (!this.zip)
|
|
177
|
+
throw new Error('impossible');
|
|
178
|
+
const zip = this.zip;
|
|
179
|
+
zip.on('data', chunk => super.write(chunk));
|
|
180
|
+
zip.on('end', () => super.end());
|
|
181
|
+
zip.on('drain', () => this[ONDRAIN]());
|
|
182
|
+
this.on('resume', () => zip.resume());
|
|
183
|
+
}
|
|
184
|
+
else {
|
|
185
|
+
this.on('drain', this[ONDRAIN]);
|
|
186
|
+
}
|
|
187
|
+
this.noDirRecurse = !!opt.noDirRecurse;
|
|
188
|
+
this.follow = !!opt.follow;
|
|
189
|
+
this.noMtime = !!opt.noMtime;
|
|
190
|
+
if (opt.mtime)
|
|
191
|
+
this.mtime = opt.mtime;
|
|
192
|
+
this.filter =
|
|
193
|
+
typeof opt.filter === 'function' ? opt.filter : () => true;
|
|
194
|
+
this[QUEUE] = new yallist_1.Yallist();
|
|
195
|
+
this[JOBS] = 0;
|
|
196
|
+
this.jobs = Number(opt.jobs) || 4;
|
|
197
|
+
this[PROCESSING] = false;
|
|
198
|
+
this[ENDED] = false;
|
|
199
|
+
}
|
|
200
|
+
[WRITE](chunk) {
|
|
201
|
+
return super.write(chunk);
|
|
202
|
+
}
|
|
203
|
+
add(path) {
|
|
204
|
+
this.write(path);
|
|
205
|
+
return this;
|
|
206
|
+
}
|
|
207
|
+
end(path, encoding, cb) {
|
|
208
|
+
/* c8 ignore start */
|
|
209
|
+
if (typeof path === 'function') {
|
|
210
|
+
cb = path;
|
|
211
|
+
path = undefined;
|
|
212
|
+
}
|
|
213
|
+
if (typeof encoding === 'function') {
|
|
214
|
+
cb = encoding;
|
|
215
|
+
encoding = undefined;
|
|
216
|
+
}
|
|
217
|
+
/* c8 ignore stop */
|
|
218
|
+
if (path) {
|
|
219
|
+
this.add(path);
|
|
220
|
+
}
|
|
221
|
+
this[ENDED] = true;
|
|
222
|
+
this[PROCESS]();
|
|
223
|
+
/* c8 ignore next */
|
|
224
|
+
if (cb)
|
|
225
|
+
cb();
|
|
226
|
+
return this;
|
|
227
|
+
}
|
|
228
|
+
write(path) {
|
|
229
|
+
if (this[ENDED]) {
|
|
230
|
+
throw new Error('write after end');
|
|
231
|
+
}
|
|
232
|
+
if (typeof path === 'string') {
|
|
233
|
+
this[ADDFSENTRY](path);
|
|
234
|
+
}
|
|
235
|
+
else {
|
|
236
|
+
this[ADDTARENTRY](path);
|
|
237
|
+
}
|
|
238
|
+
return this.flowing;
|
|
239
|
+
}
|
|
240
|
+
[ADDTARENTRY](p) {
|
|
241
|
+
const absolute = (0, normalize_windows_path_js_1.normalizeWindowsPath)(path_1.default.resolve(this.cwd, p.path));
|
|
242
|
+
// in this case, we don't have to wait for the stat
|
|
243
|
+
if (!this.filter(p.path, p)) {
|
|
244
|
+
p.resume();
|
|
245
|
+
}
|
|
246
|
+
else {
|
|
247
|
+
const job = new PackJob(p.path, absolute);
|
|
248
|
+
job.entry = new write_entry_js_1.WriteEntryTar(p, this[ENTRYOPT](job));
|
|
249
|
+
job.entry.on('end', () => this[JOBDONE](job));
|
|
250
|
+
this[JOBS] += 1;
|
|
251
|
+
this[QUEUE].push(job);
|
|
252
|
+
}
|
|
253
|
+
this[PROCESS]();
|
|
254
|
+
}
|
|
255
|
+
[ADDFSENTRY](p) {
|
|
256
|
+
const absolute = (0, normalize_windows_path_js_1.normalizeWindowsPath)(path_1.default.resolve(this.cwd, p));
|
|
257
|
+
this[QUEUE].push(new PackJob(p, absolute));
|
|
258
|
+
this[PROCESS]();
|
|
259
|
+
}
|
|
260
|
+
[STAT](job) {
|
|
261
|
+
job.pending = true;
|
|
262
|
+
this[JOBS] += 1;
|
|
263
|
+
const stat = this.follow ? 'stat' : 'lstat';
|
|
264
|
+
fs_1.default[stat](job.absolute, (er, stat) => {
|
|
265
|
+
job.pending = false;
|
|
266
|
+
this[JOBS] -= 1;
|
|
267
|
+
if (er) {
|
|
268
|
+
this.emit('error', er);
|
|
269
|
+
}
|
|
270
|
+
else {
|
|
271
|
+
this[ONSTAT](job, stat);
|
|
272
|
+
}
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
[ONSTAT](job, stat) {
|
|
276
|
+
this.statCache.set(job.absolute, stat);
|
|
277
|
+
job.stat = stat;
|
|
278
|
+
// now we have the stat, we can filter it.
|
|
279
|
+
if (!this.filter(job.path, stat)) {
|
|
280
|
+
job.ignore = true;
|
|
281
|
+
}
|
|
282
|
+
else if (stat.isFile() &&
|
|
283
|
+
stat.nlink > 1 &&
|
|
284
|
+
!this.linkCache.get(`${stat.dev}:${stat.ino}`) &&
|
|
285
|
+
!this.sync) {
|
|
286
|
+
// if it's not filtered, and it's a new File entry, and next anyway
|
|
287
|
+
// process right away in case any pending Link entries are about
|
|
288
|
+
// to try to link to it.
|
|
289
|
+
if (job === this[CURRENT]) {
|
|
290
|
+
this[PROCESSJOB](job);
|
|
291
|
+
}
|
|
292
|
+
else {
|
|
293
|
+
// if it's NOT the current entry, it needs to be deferred,
|
|
294
|
+
// so that the link target can be built first.
|
|
295
|
+
const key = `${stat.dev}:${stat.ino}`;
|
|
296
|
+
const pending = this[PENDINGLINKS].get(key);
|
|
297
|
+
if (pending)
|
|
298
|
+
pending.push(job);
|
|
299
|
+
else
|
|
300
|
+
this[PENDINGLINKS].set(key, [job]);
|
|
301
|
+
job.pendingLink = true;
|
|
302
|
+
job.pending = true;
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
this[PROCESS]();
|
|
306
|
+
}
|
|
307
|
+
[READDIR](job) {
|
|
308
|
+
job.pending = true;
|
|
309
|
+
this[JOBS] += 1;
|
|
310
|
+
fs_1.default.readdir(job.absolute, (er, entries) => {
|
|
311
|
+
job.pending = false;
|
|
312
|
+
this[JOBS] -= 1;
|
|
313
|
+
if (er) {
|
|
314
|
+
return this.emit('error', er);
|
|
315
|
+
}
|
|
316
|
+
this[ONREADDIR](job, entries);
|
|
317
|
+
});
|
|
318
|
+
}
|
|
319
|
+
[ONREADDIR](job, entries) {
|
|
320
|
+
this.readdirCache.set(job.absolute, entries);
|
|
321
|
+
job.readdir = entries;
|
|
322
|
+
this[PROCESS]();
|
|
323
|
+
}
|
|
324
|
+
[PROCESS]() {
|
|
325
|
+
if (this[PROCESSING]) {
|
|
326
|
+
return;
|
|
327
|
+
}
|
|
328
|
+
this[PROCESSING] = true;
|
|
329
|
+
for (let w = this[QUEUE].head; !!w && this[JOBS] < this.jobs; w = w.next) {
|
|
330
|
+
this[PROCESSJOB](w.value);
|
|
331
|
+
if (w.value.ignore) {
|
|
332
|
+
const p = w.next;
|
|
333
|
+
this[QUEUE].removeNode(w);
|
|
334
|
+
w.next = p;
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
this[PROCESSING] = false;
|
|
338
|
+
if (this[ENDED] && this[QUEUE].length === 0 && this[JOBS] === 0) {
|
|
339
|
+
if (this.zip) {
|
|
340
|
+
this.zip.end(EOF);
|
|
341
|
+
}
|
|
342
|
+
else {
|
|
343
|
+
super.write(EOF);
|
|
344
|
+
super.end();
|
|
345
|
+
}
|
|
346
|
+
}
|
|
347
|
+
}
|
|
348
|
+
get [CURRENT]() {
|
|
349
|
+
return this[QUEUE] && this[QUEUE].head && this[QUEUE].head.value;
|
|
350
|
+
}
|
|
351
|
+
[JOBDONE](job) {
|
|
352
|
+
this[QUEUE].shift();
|
|
353
|
+
this[JOBS] -= 1;
|
|
354
|
+
const { stat } = job;
|
|
355
|
+
if (stat && stat.isFile() && stat.nlink > 1) {
|
|
356
|
+
// might be a file with pending links
|
|
357
|
+
const key = `${stat.dev}:${stat.ino}`;
|
|
358
|
+
const pending = this[PENDINGLINKS].get(key);
|
|
359
|
+
if (pending) {
|
|
360
|
+
this[PENDINGLINKS].delete(key);
|
|
361
|
+
for (const job of pending) {
|
|
362
|
+
job.pending = false;
|
|
363
|
+
this[PROCESSJOB](job);
|
|
364
|
+
}
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
this[PROCESS]();
|
|
368
|
+
}
|
|
369
|
+
[PROCESSJOB](job) {
|
|
370
|
+
if (job.pending && job.pendingLink && job === this[CURRENT]) {
|
|
371
|
+
// At least one of the links to this file are not being included
|
|
372
|
+
// in the tarball, so we need to just proceed.
|
|
373
|
+
job.pending = false;
|
|
374
|
+
job.pendingLink = false;
|
|
375
|
+
}
|
|
376
|
+
if (job.pending) {
|
|
377
|
+
return;
|
|
378
|
+
}
|
|
379
|
+
if (job.entry) {
|
|
380
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
381
|
+
this[PIPE](job);
|
|
382
|
+
}
|
|
383
|
+
return;
|
|
384
|
+
}
|
|
385
|
+
if (!job.stat) {
|
|
386
|
+
const sc = this.statCache.get(job.absolute);
|
|
387
|
+
if (sc) {
|
|
388
|
+
this[ONSTAT](job, sc);
|
|
389
|
+
}
|
|
390
|
+
else {
|
|
391
|
+
this[STAT](job);
|
|
392
|
+
}
|
|
393
|
+
}
|
|
394
|
+
if (!job.stat) {
|
|
395
|
+
return;
|
|
396
|
+
}
|
|
397
|
+
// filtered out!
|
|
398
|
+
if (job.ignore) {
|
|
399
|
+
return;
|
|
400
|
+
}
|
|
401
|
+
if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {
|
|
402
|
+
const rc = this.readdirCache.get(job.absolute);
|
|
403
|
+
if (rc) {
|
|
404
|
+
this[ONREADDIR](job, rc);
|
|
405
|
+
}
|
|
406
|
+
else {
|
|
407
|
+
this[READDIR](job);
|
|
408
|
+
}
|
|
409
|
+
if (!job.readdir) {
|
|
410
|
+
return;
|
|
411
|
+
}
|
|
412
|
+
}
|
|
413
|
+
// we know it doesn't have an entry, because that got checked above
|
|
414
|
+
job.entry = this[ENTRY](job);
|
|
415
|
+
if (!job.entry) {
|
|
416
|
+
job.ignore = true;
|
|
417
|
+
return;
|
|
418
|
+
}
|
|
419
|
+
if (job === this[CURRENT] && !job.piped) {
|
|
420
|
+
this[PIPE](job);
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
[ENTRYOPT](job) {
|
|
424
|
+
return {
|
|
425
|
+
onwarn: (code, msg, data) => this.warn(code, msg, data),
|
|
426
|
+
noPax: this.noPax,
|
|
427
|
+
cwd: this.cwd,
|
|
428
|
+
absolute: job.absolute,
|
|
429
|
+
preservePaths: this.preservePaths,
|
|
430
|
+
maxReadSize: this.maxReadSize,
|
|
431
|
+
strict: this.strict,
|
|
432
|
+
portable: this.portable,
|
|
433
|
+
linkCache: this.linkCache,
|
|
434
|
+
statCache: this.statCache,
|
|
435
|
+
noMtime: this.noMtime,
|
|
436
|
+
mtime: this.mtime,
|
|
437
|
+
prefix: this.prefix,
|
|
438
|
+
onWriteEntry: this.onWriteEntry,
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
[ENTRY](job) {
|
|
442
|
+
this[JOBS] += 1;
|
|
443
|
+
try {
|
|
444
|
+
const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job));
|
|
445
|
+
return e
|
|
446
|
+
.on('end', () => this[JOBDONE](job))
|
|
447
|
+
.on('error', er => this.emit('error', er));
|
|
448
|
+
}
|
|
449
|
+
catch (er) {
|
|
450
|
+
this.emit('error', er);
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
[ONDRAIN]() {
|
|
454
|
+
if (this[CURRENT] && this[CURRENT].entry) {
|
|
455
|
+
this[CURRENT].entry.resume();
|
|
456
|
+
}
|
|
457
|
+
}
|
|
458
|
+
// like .pipe() but using super, because our write() is special
|
|
459
|
+
[PIPE](job) {
|
|
460
|
+
job.piped = true;
|
|
461
|
+
if (job.readdir) {
|
|
462
|
+
job.readdir.forEach(entry => {
|
|
463
|
+
const p = job.path;
|
|
464
|
+
const base = p === './' ? '' : p.replace(/\/*$/, '/');
|
|
465
|
+
this[ADDFSENTRY](base + entry);
|
|
466
|
+
});
|
|
467
|
+
}
|
|
468
|
+
const source = job.entry;
|
|
469
|
+
const zip = this.zip;
|
|
470
|
+
/* c8 ignore start */
|
|
471
|
+
if (!source)
|
|
472
|
+
throw new Error('cannot pipe without source');
|
|
473
|
+
/* c8 ignore stop */
|
|
474
|
+
if (zip) {
|
|
475
|
+
source.on('data', chunk => {
|
|
476
|
+
if (!zip.write(chunk)) {
|
|
477
|
+
source.pause();
|
|
478
|
+
}
|
|
479
|
+
});
|
|
480
|
+
}
|
|
481
|
+
else {
|
|
482
|
+
source.on('data', chunk => {
|
|
483
|
+
if (!super.write(chunk)) {
|
|
484
|
+
source.pause();
|
|
485
|
+
}
|
|
486
|
+
});
|
|
487
|
+
}
|
|
488
|
+
}
|
|
489
|
+
pause() {
|
|
490
|
+
if (this.zip) {
|
|
491
|
+
this.zip.pause();
|
|
492
|
+
}
|
|
493
|
+
return super.pause();
|
|
494
|
+
}
|
|
495
|
+
warn(code, message, data = {}) {
|
|
496
|
+
(0, warn_method_js_1.warnMethod)(this, code, message, data);
|
|
497
|
+
}
|
|
498
|
+
}
|
|
499
|
+
exports.Pack = Pack;
|
|
500
|
+
class PackSync extends Pack {
|
|
501
|
+
sync = true;
|
|
502
|
+
constructor(opt) {
|
|
503
|
+
super(opt);
|
|
504
|
+
this[WRITEENTRYCLASS] = write_entry_js_1.WriteEntrySync;
|
|
505
|
+
}
|
|
506
|
+
// pause/resume are no-ops in sync streams.
|
|
507
|
+
pause() { }
|
|
508
|
+
resume() { }
|
|
509
|
+
[STAT](job) {
|
|
510
|
+
const stat = this.follow ? 'statSync' : 'lstatSync';
|
|
511
|
+
this[ONSTAT](job, fs_1.default[stat](job.absolute));
|
|
512
|
+
}
|
|
513
|
+
[READDIR](job) {
|
|
514
|
+
this[ONREADDIR](job, fs_1.default.readdirSync(job.absolute));
|
|
515
|
+
}
|
|
516
|
+
// gotta get it all in this tick
|
|
517
|
+
[PIPE](job) {
|
|
518
|
+
const source = job.entry;
|
|
519
|
+
const zip = this.zip;
|
|
520
|
+
if (job.readdir) {
|
|
521
|
+
job.readdir.forEach(entry => {
|
|
522
|
+
const p = job.path;
|
|
523
|
+
const base = p === './' ? '' : p.replace(/\/*$/, '/');
|
|
524
|
+
this[ADDFSENTRY](base + entry);
|
|
525
|
+
});
|
|
526
|
+
}
|
|
527
|
+
/* c8 ignore start */
|
|
528
|
+
if (!source)
|
|
529
|
+
throw new Error('Cannot pipe without source');
|
|
530
|
+
/* c8 ignore stop */
|
|
531
|
+
if (zip) {
|
|
532
|
+
source.on('data', chunk => {
|
|
533
|
+
zip.write(chunk);
|
|
534
|
+
});
|
|
535
|
+
}
|
|
536
|
+
else {
|
|
537
|
+
source.on('data', chunk => {
|
|
538
|
+
super[WRITE](chunk);
|
|
539
|
+
});
|
|
540
|
+
}
|
|
541
|
+
}
|
|
542
|
+
}
|
|
543
|
+
exports.PackSync = PackSync;
|
|
544
|
+
//# sourceMappingURL=pack.js.map
|
|
@@ -0,0 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ChC,CAAC,CAAC,CAAA;QACJ,CAAC;QAED,qBAAqB;QACrB,IAAI,CAAC,MAAM;YAAE,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAA;QAC1D,oBAAoB;QAEpB,IAAI,GAAG,EAAE,CAAC;YACR,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;gBACxB,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,CAAA;YAClB,CAAC,CAAC,CAAA;QACJ,CAAC;aAAM,CAAC;YACN,MAAM,CAAC,EAAE,CAAC,MAAM,EAAE,KAAK,CAAC,EAAE;gBACxB,KAAK,CAAC,KAAK,CAAC,CAAC,KAAK,CAAC,CAAA;YACrB,CAAC,CAAC,CAAA;QACJ,CAAC;IACH,CAAC;CACF;AA/CD,4BA+CC","sourcesContent":["// A readable tar stream creator\n// Technically, this is a transform stream that you write paths into,\n// and tar format comes out of.\n// The `add()` method is like `write()` but returns this,\n// and end() return `this` as well, so you can\n// do `new Pack(opt).add('files').add('dir').end().pipe(output)\n// You could also do something like:\n// streamOfPaths().pipe(new Pack()).pipe(new fs.WriteStream('out.tar'))\n\nimport fs, { type Stats } from 'fs'\nimport {\n WriteEntry,\n WriteEntrySync,\n WriteEntryTar,\n} from './write-entry.js'\n\nexport class PackJob {\n path: string\n absolute: string\n entry?: WriteEntry | WriteEntryTar\n stat?: Stats\n readdir?: string[]\n pending: boolean = false\n pendingLink: boolean = false\n ignore: boolean = false\n piped: boolean = false\n constructor(path: string, absolute: string) {\n this.path = path || './'\n this.absolute = absolute\n }\n}\n\nimport { Minipass } from 'minipass'\nimport * as zlib from 'minizlib'\nimport { Yallist } from 'yallist'\nimport type { ReadEntry } from './read-entry.js'\nimport type { WarnEvent } from './warn-method.js'\nimport { warnMethod, type WarnData, type Warner } from './warn-method.js'\n\nconst EOF = Buffer.alloc(1024)\nconst ONSTAT = Symbol('onStat')\nconst ENDED = Symbol('ended')\nconst QUEUE = Symbol('queue')\nconst PENDINGLINKS = Symbol('pendingLinks')\nconst CURRENT = Symbol('current')\nconst PROCESS = Symbol('process')\nconst PROCESSING = Symbol('processing')\nconst PROCESSJOB = Symbol('processJob')\nconst JOBS = Symbol('jobs')\nconst JOBDONE = Symbol('jobDone')\nconst ADDFSENTRY = Symbol('addFSEntry')\nconst ADDTARENTRY = Symbol('addTarEntry')\nconst STAT = Symbol('stat')\nconst READDIR = Symbol('readdir')\nconst ONREADDIR = Symbol('onreaddir')\nconst PIPE = Symbol('pipe')\nconst ENTRY = Symbol('entry')\nconst ENTRYOPT = Symbol('entryOpt')\nconst WRITEENTRYCLASS = Symbol('writeEntryClass')\nconst WRITE = Symbol('write')\nconst ONDRAIN = Symbol('ondrain')\n\nimport path from 'path'\nimport { normalizeWindowsPath } from './normalize-windows-path.js'\nimport type { LinkCacheKey, TarOptions } from './options.js'\n\nexport class Pack\n extends Minipass<Buffer, ReadEntry | string, WarnEvent<Buffer>>\n implements Warner\n{\n sync: boolean = false\n opt: TarOptions\n cwd: string\n maxReadSize?: number\n preservePaths: boolean\n strict: boolean\n noPax: boolean\n prefix: string\n linkCache: Exclude<TarOptions['linkCache'], undefined>\n statCache: Exclude<TarOptions['statCache'], undefined>\n file: string\n portable: boolean\n zip?: zlib.BrotliCompress | zlib.Gzip | zlib.ZstdCompress\n readdirCache: Exclude<TarOptions['readdirCache'], undefined>\n noDirRecurse: boolean\n follow: boolean\n noMtime: boolean\n mtime?: Date\n filter: Exclude<TarOptions['filter'], undefined>\n jobs: number;\n\n [WRITEENTRYCLASS]: typeof WriteEntry | typeof WriteEntrySync\n onWriteEntry?: (entry: WriteEntry) => void;\n // Note: we actually DO need a linked list here, because we\n // shift() to update the head of the list where we start, but still\n // while that happens, need to know what the next item in the queue\n // will be. Since we do multiple jobs in parallel, it's not as simple\n // as just an Array.shift(), since that would lose the information about\n // the next job in the list. We could add a .next field on the PackJob\n // class, but then we'd have to be tracking the tail of the queue the\n // whole time, and Yallist just does that for us anyway.\n [QUEUE]: Yallist<PackJob>;\n [PENDINGLINKS] = new Map<LinkCacheKey, PackJob[]>();\n [JOBS]: number = 0;\n [PROCESSING]: boolean = false;\n [ENDED]: boolean = false\n\n constructor(opt: TarOptions = {}) {\n super()\n this.opt = opt\n this.file = opt.file || ''\n this.cwd = opt.cwd || process.cwd()\n this.maxReadSize = opt.maxReadSize\n this.preservePaths = !!opt.preservePaths\n this.strict = !!opt.strict\n this.noPax = !!opt.noPax\n this.prefix = normalizeWindowsPath(opt.prefix || '')\n this.linkCache = opt.linkCache || new Map()\n this.statCache = opt.statCache || new Map()\n this.readdirCache = opt.readdirCache || new Map()\n this.onWriteEntry = opt.onWriteEntry\n\n this[WRITEENTRYCLASS] = WriteEntry\n if (typeof opt.onwarn === 'function') {\n this.on('warn', opt.onwarn)\n }\n\n this.portable = !!opt.portable\n\n if (opt.gzip || opt.brotli || opt.zstd) {\n if (\n (opt.gzip ? 1 : 0) + (opt.brotli ? 1 : 0) + (opt.zstd ? 1 : 0) >\n 1\n ) {\n throw new TypeError('gzip, brotli, zstd are mutually exclusive')\n }\n if (opt.gzip) {\n if (typeof opt.gzip !== 'object') {\n opt.gzip = {}\n }\n if (this.portable) {\n opt.gzip.portable = true\n }\n this.zip = new zlib.Gzip(opt.gzip)\n }\n if (opt.brotli) {\n if (typeof opt.brotli !== 'object') {\n opt.brotli = {}\n }\n this.zip = new zlib.BrotliCompress(opt.brotli)\n }\n if (opt.zstd) {\n if (typeof opt.zstd !== 'object') {\n opt.zstd = {}\n }\n this.zip = new zlib.ZstdCompress(opt.zstd)\n }\n /* c8 ignore next */\n if (!this.zip) throw new Error('impossible')\n const zip = this.zip\n zip.on('data', chunk => super.write(chunk as unknown as string))\n zip.on('end', () => super.end())\n zip.on('drain', () => this[ONDRAIN]())\n this.on('resume', () => zip.resume())\n } else {\n this.on('drain', this[ONDRAIN])\n }\n\n this.noDirRecurse = !!opt.noDirRecurse\n this.follow = !!opt.follow\n this.noMtime = !!opt.noMtime\n if (opt.mtime) this.mtime = opt.mtime\n\n this.filter =\n typeof opt.filter === 'function' ? opt.filter : () => true\n\n this[QUEUE] = new Yallist<PackJob>()\n this[JOBS] = 0\n this.jobs = Number(opt.jobs) || 4\n this[PROCESSING] = false\n this[ENDED] = false\n }\n\n [WRITE](chunk: Buffer) {\n return super.write(chunk as unknown as string)\n }\n\n add(path: string | ReadEntry) {\n this.write(path)\n return this\n }\n\n end(cb?: () => void): this\n end(path: string | ReadEntry, cb?: () => void): this\n end(\n path: string | ReadEntry,\n encoding?: Minipass.Encoding,\n cb?: () => void,\n ): this\n end(\n path?: string | ReadEntry | (() => void),\n encoding?: Minipass.Encoding | (() => void),\n cb?: () => void,\n ) {\n /* c8 ignore start */\n if (typeof path === 'function') {\n cb = path\n path = undefined\n }\n if (typeof encoding === 'function') {\n cb = encoding\n encoding = undefined\n }\n /* c8 ignore stop */\n if (path) {\n this.add(path)\n }\n this[ENDED] = true\n this[PROCESS]()\n /* c8 ignore next */\n if (cb) cb()\n return this\n }\n\n write(path: string | ReadEntry) {\n if (this[ENDED]) {\n throw new Error('write after end')\n }\n\n if (typeof path === 'string') {\n this[ADDFSENTRY](path)\n } else {\n this[ADDTARENTRY](path)\n }\n return this.flowing\n }\n\n [ADDTARENTRY](p: ReadEntry) {\n const absolute = normalizeWindowsPath(path.resolve(this.cwd, p.path))\n // in this case, we don't have to wait for the stat\n if (!this.filter(p.path, p)) {\n p.resume()\n } else {\n const job = new PackJob(p.path, absolute)\n job.entry = new WriteEntryTar(p, this[ENTRYOPT](job))\n job.entry.on('end', () => this[JOBDONE](job))\n this[JOBS] += 1\n this[QUEUE].push(job)\n }\n\n this[PROCESS]()\n }\n\n [ADDFSENTRY](p: string) {\n const absolute = normalizeWindowsPath(path.resolve(this.cwd, p))\n this[QUEUE].push(new PackJob(p, absolute))\n this[PROCESS]()\n }\n\n [STAT](job: PackJob) {\n job.pending = true\n this[JOBS] += 1\n const stat = this.follow ? 'stat' : 'lstat'\n fs[stat](job.absolute, (er, stat) => {\n job.pending = false\n this[JOBS] -= 1\n if (er) {\n this.emit('error', er)\n } else {\n this[ONSTAT](job, stat)\n }\n })\n }\n\n [ONSTAT](job: PackJob, stat: Stats) {\n this.statCache.set(job.absolute, stat)\n job.stat = stat\n\n // now we have the stat, we can filter it.\n if (!this.filter(job.path, stat)) {\n job.ignore = true\n } else if (\n stat.isFile() &&\n stat.nlink > 1 &&\n !this.linkCache.get(`${stat.dev}:${stat.ino}`) &&\n !this.sync\n ) {\n // if it's not filtered, and it's a new File entry, and next anyway\n // process right away in case any pending Link entries are about\n // to try to link to it.\n if (job === this[CURRENT]) {\n this[PROCESSJOB](job)\n } else {\n // if it's NOT the current entry, it needs to be deferred,\n // so that the link target can be built first.\n const key: LinkCacheKey = `${stat.dev}:${stat.ino}`\n const pending = this[PENDINGLINKS].get(key)\n if (pending) pending.push(job)\n else this[PENDINGLINKS].set(key, [job])\n job.pendingLink = true\n job.pending = true\n }\n }\n\n this[PROCESS]()\n }\n\n [READDIR](job: PackJob) {\n job.pending = true\n this[JOBS] += 1\n fs.readdir(job.absolute, (er, entries) => {\n job.pending = false\n this[JOBS] -= 1\n if (er) {\n return this.emit('error', er)\n }\n this[ONREADDIR](job, entries)\n })\n }\n\n [ONREADDIR](job: PackJob, entries: string[]) {\n this.readdirCache.set(job.absolute, entries)\n job.readdir = entries\n this[PROCESS]()\n }\n\n [PROCESS]() {\n if (this[PROCESSING]) {\n return\n }\n\n this[PROCESSING] = true\n for (\n let w = this[QUEUE].head;\n !!w && this[JOBS] < this.jobs;\n w = w.next\n ) {\n this[PROCESSJOB](w.value)\n if (w.value.ignore) {\n const p = w.next\n this[QUEUE].removeNode(w)\n w.next = p\n }\n }\n\n this[PROCESSING] = false\n\n if (this[ENDED] && this[QUEUE].length === 0 && this[JOBS] === 0) {\n if (this.zip) {\n this.zip.end(EOF)\n } else {\n super.write(EOF as unknown as string)\n super.end()\n }\n }\n }\n\n get [CURRENT]() {\n return this[QUEUE] && this[QUEUE].head && this[QUEUE].head.value\n }\n\n [JOBDONE](job: PackJob) {\n this[QUEUE].shift()\n this[JOBS] -= 1\n const { stat } = job\n if (stat && stat.isFile() && stat.nlink > 1) {\n // might be a file with pending links\n const key: LinkCacheKey = `${stat.dev}:${stat.ino}`\n const pending = this[PENDINGLINKS].get(key)\n if (pending) {\n this[PENDINGLINKS].delete(key)\n for (const job of pending) {\n job.pending = false\n this[PROCESSJOB](job)\n }\n }\n }\n this[PROCESS]()\n }\n\n [PROCESSJOB](job: PackJob) {\n if (job.pending && job.pendingLink && job === this[CURRENT]) {\n // At least one of the links to this file are not being included\n // in the tarball, so we need to just proceed.\n job.pending = false\n job.pendingLink = false\n }\n if (job.pending) {\n return\n }\n\n if (job.entry) {\n if (job === this[CURRENT] && !job.piped) {\n this[PIPE](job)\n }\n return\n }\n\n if (!job.stat) {\n const sc = this.statCache.get(job.absolute)\n if (sc) {\n this[ONSTAT](job, sc)\n } else {\n this[STAT](job)\n }\n }\n if (!job.stat) {\n return\n }\n\n // filtered out!\n if (job.ignore) {\n return\n }\n\n if (!this.noDirRecurse && job.stat.isDirectory() && !job.readdir) {\n const rc = this.readdirCache.get(job.absolute)\n if (rc) {\n this[ONREADDIR](job, rc)\n } else {\n this[READDIR](job)\n }\n if (!job.readdir) {\n return\n }\n }\n\n // we know it doesn't have an entry, because that got checked above\n job.entry = this[ENTRY](job)\n if (!job.entry) {\n job.ignore = true\n return\n }\n\n if (job === this[CURRENT] && !job.piped) {\n this[PIPE](job)\n }\n }\n\n [ENTRYOPT](job: PackJob): TarOptions {\n return {\n onwarn: (code, msg, data) => this.warn(code, msg, data),\n noPax: this.noPax,\n cwd: this.cwd,\n absolute: job.absolute,\n preservePaths: this.preservePaths,\n maxReadSize: this.maxReadSize,\n strict: this.strict,\n portable: this.portable,\n linkCache: this.linkCache,\n statCache: this.statCache,\n noMtime: this.noMtime,\n mtime: this.mtime,\n prefix: this.prefix,\n onWriteEntry: this.onWriteEntry,\n }\n }\n\n [ENTRY](job: PackJob) {\n this[JOBS] += 1\n try {\n const e = new this[WRITEENTRYCLASS](job.path, this[ENTRYOPT](job))\n return e\n .on('end', () => this[JOBDONE](job))\n .on('error', er => this.emit('error', er))\n } catch (er) {\n this.emit('error', er)\n }\n }\n\n [ONDRAIN]() {\n if (this[CURRENT] && this[CURRENT].entry) {\n this[CURRENT].entry.resume()\n }\n }\n\n // like .pipe() but using super, because our write() is special\n [PIPE](job: PackJob) {\n job.piped = true\n\n if (job.readdir) {\n job.readdir.forEach(entry => {\n const p = job.path\n const base = p === './' ? '' : p.replace(/\\/*$/, '/')\n this[ADDFSENTRY](base + entry)\n })\n }\n\n const source = job.entry\n const zip = this.zip\n /* c8 ignore start */\n if (!source) throw new Error('cannot pipe without source')\n /* c8 ignore stop */\n\n if (zip) {\n source.on('data', chunk => {\n if (!zip.write(chunk)) {\n source.pause()\n }\n })\n } else {\n source.on('data', chunk => {\n if (!super.write(chunk as unknown as string)) {\n source.pause()\n }\n })\n }\n }\n\n pause() {\n if (this.zip) {\n this.zip.pause()\n }\n return super.pause()\n }\n warn(code: string, message: string | Error, data: WarnData = {}): void {\n warnMethod(this, code, message, data)\n }\n}\n\nexport class PackSync extends Pack {\n sync: true = true\n constructor(opt: TarOptions) {\n super(opt)\n this[WRITEENTRYCLASS] = WriteEntrySync\n }\n\n // pause/resume are no-ops in sync streams.\n pause() {}\n resume() {}\n\n [STAT](job: PackJob) {\n const stat = this.follow ? 'statSync' : 'lstatSync'\n this[ONSTAT](job, fs[stat](job.absolute))\n }\n\n [READDIR](job: PackJob) {\n this[ONREADDIR](job, fs.readdirSync(job.absolute))\n }\n\n // gotta get it all in this tick\n [PIPE](job: PackJob) {\n const source = job.entry\n const zip = this.zip\n\n if (job.readdir) {\n job.readdir.forEach(entry => {\n const p = job.path\n const base = p === './' ? '' : p.replace(/\\/*$/, '/')\n this[ADDFSENTRY](base + entry)\n })\n }\n\n /* c8 ignore start */\n if (!source) throw new Error('Cannot pipe without source')\n /* c8 ignore stop */\n\n if (zip) {\n source.on('data', chunk => {\n zip.write(chunk)\n })\n } else {\n source.on('data', chunk => {\n super[WRITE](chunk)\n })\n }\n }\n}\n"]}
|