litmus-cli 1.5.16-screen.0 → 1.5.16
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/README.md +5 -0
- package/dist/index.js +10 -5
- package/dist/index.js.map +1 -1
- package/dist/lib/connect-node-upgrade.d.ts +2 -0
- package/dist/lib/connect-node-upgrade.d.ts.map +1 -0
- package/dist/lib/connect-node-upgrade.js +122 -0
- package/dist/lib/connect-node-upgrade.js.map +1 -0
- package/dist/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/dist/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/dist/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/dist/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/dist/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/dist/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/dist/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/dist/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/dist/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/dist/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/dist/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/dist/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/dist/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/dist/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/dist/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/dist/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/dist/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/dist/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/dist/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/dist/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/dist/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/dist/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/dist/node_modules/ansi-regex/index.d.ts +33 -0
- package/dist/node_modules/ansi-regex/index.js +15 -0
- package/dist/node_modules/ansi-regex/license +9 -0
- package/dist/node_modules/ansi-regex/package.json +61 -0
- package/dist/node_modules/ansi-regex/readme.md +66 -0
- package/dist/node_modules/bluebird/LICENSE +21 -0
- package/dist/node_modules/bluebird/README.md +57 -0
- package/dist/node_modules/bluebird/changelog.md +1 -0
- package/dist/node_modules/bluebird/js/browser/bluebird.core.js +3914 -0
- package/dist/node_modules/bluebird/js/browser/bluebird.core.min.js +31 -0
- package/dist/node_modules/bluebird/js/browser/bluebird.js +5778 -0
- package/dist/node_modules/bluebird/js/browser/bluebird.min.js +31 -0
- package/dist/node_modules/bluebird/js/release/any.js +21 -0
- package/dist/node_modules/bluebird/js/release/assert.js +55 -0
- package/dist/node_modules/bluebird/js/release/async.js +120 -0
- package/dist/node_modules/bluebird/js/release/bind.js +67 -0
- package/dist/node_modules/bluebird/js/release/bluebird.js +11 -0
- package/dist/node_modules/bluebird/js/release/call_get.js +123 -0
- package/dist/node_modules/bluebird/js/release/cancel.js +129 -0
- package/dist/node_modules/bluebird/js/release/catch_filter.js +42 -0
- package/dist/node_modules/bluebird/js/release/context.js +69 -0
- package/dist/node_modules/bluebird/js/release/debuggability.js +1009 -0
- package/dist/node_modules/bluebird/js/release/direct_resolve.js +46 -0
- package/dist/node_modules/bluebird/js/release/each.js +30 -0
- package/dist/node_modules/bluebird/js/release/errors.js +116 -0
- package/dist/node_modules/bluebird/js/release/es5.js +80 -0
- package/dist/node_modules/bluebird/js/release/filter.js +12 -0
- package/dist/node_modules/bluebird/js/release/finally.js +146 -0
- package/dist/node_modules/bluebird/js/release/generators.js +223 -0
- package/dist/node_modules/bluebird/js/release/join.js +165 -0
- package/dist/node_modules/bluebird/js/release/map.js +175 -0
- package/dist/node_modules/bluebird/js/release/method.js +55 -0
- package/dist/node_modules/bluebird/js/release/nodeback.js +51 -0
- package/dist/node_modules/bluebird/js/release/nodeify.js +58 -0
- package/dist/node_modules/bluebird/js/release/promise.js +819 -0
- package/dist/node_modules/bluebird/js/release/promise_array.js +186 -0
- package/dist/node_modules/bluebird/js/release/promisify.js +314 -0
- package/dist/node_modules/bluebird/js/release/props.js +118 -0
- package/dist/node_modules/bluebird/js/release/queue.js +73 -0
- package/dist/node_modules/bluebird/js/release/race.js +49 -0
- package/dist/node_modules/bluebird/js/release/reduce.js +183 -0
- package/dist/node_modules/bluebird/js/release/schedule.js +62 -0
- package/dist/node_modules/bluebird/js/release/settle.js +47 -0
- package/dist/node_modules/bluebird/js/release/some.js +148 -0
- package/dist/node_modules/bluebird/js/release/synchronous_inspection.js +103 -0
- package/dist/node_modules/bluebird/js/release/thenables.js +86 -0
- package/dist/node_modules/bluebird/js/release/timers.js +93 -0
- package/dist/node_modules/bluebird/js/release/using.js +226 -0
- package/dist/node_modules/bluebird/js/release/util.js +421 -0
- package/dist/node_modules/bluebird/package.json +78 -0
- package/dist/node_modules/braces/LICENSE +21 -0
- package/dist/node_modules/braces/README.md +586 -0
- package/dist/node_modules/braces/index.js +170 -0
- package/dist/node_modules/braces/lib/compile.js +60 -0
- package/dist/node_modules/braces/lib/constants.js +57 -0
- package/dist/node_modules/braces/lib/expand.js +113 -0
- package/dist/node_modules/braces/lib/parse.js +331 -0
- package/dist/node_modules/braces/lib/stringify.js +32 -0
- package/dist/node_modules/braces/lib/utils.js +122 -0
- package/dist/node_modules/braces/package.json +77 -0
- package/dist/node_modules/buffer-crc32/LICENSE +19 -0
- package/dist/node_modules/buffer-crc32/README.md +55 -0
- package/dist/node_modules/buffer-crc32/dist/index.cjs +306 -0
- package/dist/node_modules/buffer-crc32/dist/index.d.cts +35 -0
- package/dist/node_modules/buffer-crc32/dist/index.d.mts +35 -0
- package/dist/node_modules/buffer-crc32/dist/index.mjs +304 -0
- package/dist/node_modules/buffer-crc32/index.d.ts +35 -0
- package/dist/node_modules/buffer-crc32/package.json +54 -0
- package/dist/node_modules/chalk/license +9 -0
- package/dist/node_modules/chalk/package.json +83 -0
- package/dist/node_modules/chalk/readme.md +297 -0
- package/dist/node_modules/chalk/source/index.d.ts +325 -0
- package/dist/node_modules/chalk/source/index.js +225 -0
- package/dist/node_modules/chalk/source/utilities.js +33 -0
- package/dist/node_modules/chalk/source/vendor/ansi-styles/index.d.ts +236 -0
- package/dist/node_modules/chalk/source/vendor/ansi-styles/index.js +223 -0
- package/dist/node_modules/chalk/source/vendor/supports-color/browser.d.ts +1 -0
- package/dist/node_modules/chalk/source/vendor/supports-color/browser.js +34 -0
- package/dist/node_modules/chalk/source/vendor/supports-color/index.d.ts +55 -0
- package/dist/node_modules/chalk/source/vendor/supports-color/index.js +190 -0
- package/dist/node_modules/chokidar/LICENSE +21 -0
- package/dist/node_modules/chokidar/README.md +305 -0
- package/dist/node_modules/chokidar/handler.d.ts +90 -0
- package/dist/node_modules/chokidar/handler.js +632 -0
- package/dist/node_modules/chokidar/index.d.ts +217 -0
- package/dist/node_modules/chokidar/index.js +822 -0
- package/dist/node_modules/chokidar/package.json +63 -0
- package/dist/node_modules/cli-cursor/index.d.ts +47 -0
- package/dist/node_modules/cli-cursor/index.js +39 -0
- package/dist/node_modules/cli-cursor/license +9 -0
- package/dist/node_modules/cli-cursor/package.json +56 -0
- package/dist/node_modules/cli-cursor/readme.md +39 -0
- package/dist/node_modules/cli-spinners/index.d.ts +139 -0
- package/dist/node_modules/cli-spinners/index.js +11 -0
- package/dist/node_modules/cli-spinners/license +9 -0
- package/dist/node_modules/cli-spinners/package.json +56 -0
- package/dist/node_modules/cli-spinners/readme.md +74 -0
- package/dist/node_modules/cli-spinners/spinners.json +1697 -0
- package/dist/node_modules/commander/LICENSE +22 -0
- package/dist/node_modules/commander/Readme.md +1172 -0
- package/dist/node_modules/commander/index.js +21 -0
- package/dist/node_modules/commander/lib/argument.js +147 -0
- package/dist/node_modules/commander/lib/command.js +2790 -0
- package/dist/node_modules/commander/lib/error.js +36 -0
- package/dist/node_modules/commander/lib/help.js +731 -0
- package/dist/node_modules/commander/lib/option.js +377 -0
- package/dist/node_modules/commander/lib/suggestSimilar.js +99 -0
- package/dist/node_modules/commander/package-support.json +19 -0
- package/dist/node_modules/commander/package.json +64 -0
- package/dist/node_modules/commander/typings/index.d.ts +1113 -0
- package/dist/node_modules/core-util-is/LICENSE +19 -0
- package/dist/node_modules/core-util-is/README.md +3 -0
- package/dist/node_modules/core-util-is/lib/util.js +107 -0
- package/dist/node_modules/core-util-is/package.json +38 -0
- package/dist/node_modules/duplexer2/LICENSE.md +26 -0
- package/dist/node_modules/duplexer2/README.md +115 -0
- package/dist/node_modules/duplexer2/index.js +76 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/.travis.yml +34 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/CONTRIBUTING.md +38 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/GOVERNANCE.md +136 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/LICENSE +47 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/README.md +58 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/doc/wg-meetings/2015-01-30.md +60 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/duplex-browser.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/duplex.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_duplex.js +131 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_passthrough.js +47 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_readable.js +1019 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_transform.js +214 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/_stream_writable.js +685 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/BufferList.js +78 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/destroy.js +84 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream-browser.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/lib/internal/streams/stream.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/package.json +52 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/passthrough.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/readable-browser.js +7 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/readable.js +19 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/transform.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/writable-browser.js +1 -0
- package/dist/node_modules/duplexer2/node_modules/readable-stream/writable.js +8 -0
- package/dist/node_modules/duplexer2/node_modules/safe-buffer/LICENSE +21 -0
- package/dist/node_modules/duplexer2/node_modules/safe-buffer/README.md +584 -0
- package/dist/node_modules/duplexer2/node_modules/safe-buffer/index.d.ts +187 -0
- package/dist/node_modules/duplexer2/node_modules/safe-buffer/index.js +62 -0
- package/dist/node_modules/duplexer2/node_modules/safe-buffer/package.json +37 -0
- package/dist/node_modules/duplexer2/node_modules/string_decoder/.travis.yml +50 -0
- package/dist/node_modules/duplexer2/node_modules/string_decoder/LICENSE +48 -0
- package/dist/node_modules/duplexer2/node_modules/string_decoder/README.md +47 -0
- package/dist/node_modules/duplexer2/node_modules/string_decoder/lib/string_decoder.js +296 -0
- package/dist/node_modules/duplexer2/node_modules/string_decoder/package.json +31 -0
- package/dist/node_modules/duplexer2/package.json +28 -0
- package/dist/node_modules/fast-glob/LICENSE +21 -0
- package/dist/node_modules/fast-glob/README.md +830 -0
- package/dist/node_modules/fast-glob/out/index.d.ts +40 -0
- package/dist/node_modules/fast-glob/out/index.js +102 -0
- package/dist/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/dist/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/dist/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/dist/node_modules/fast-glob/out/providers/async.js +23 -0
- package/dist/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/dist/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/dist/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
- package/dist/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
- package/dist/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/dist/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/dist/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/dist/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/dist/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/dist/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/dist/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/dist/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/dist/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/dist/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/dist/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/dist/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/dist/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/dist/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/dist/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/dist/node_modules/fast-glob/out/readers/async.js +35 -0
- package/dist/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/dist/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/dist/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/dist/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/dist/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/dist/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/dist/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/dist/node_modules/fast-glob/out/settings.js +59 -0
- package/dist/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/dist/node_modules/fast-glob/out/types/index.js +2 -0
- package/dist/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/dist/node_modules/fast-glob/out/utils/array.js +22 -0
- package/dist/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/dist/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/dist/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/dist/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/dist/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/dist/node_modules/fast-glob/out/utils/index.js +17 -0
- package/dist/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/dist/node_modules/fast-glob/out/utils/path.js +68 -0
- package/dist/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
- package/dist/node_modules/fast-glob/out/utils/pattern.js +206 -0
- package/dist/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/dist/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/dist/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/dist/node_modules/fast-glob/out/utils/string.js +11 -0
- package/dist/node_modules/fast-glob/package.json +81 -0
- package/dist/node_modules/fastq/LICENSE +13 -0
- package/dist/node_modules/fastq/README.md +310 -0
- package/dist/node_modules/fastq/SECURITY.md +15 -0
- package/dist/node_modules/fastq/bench.js +66 -0
- package/dist/node_modules/fastq/eslint.config.js +11 -0
- package/dist/node_modules/fastq/example.js +14 -0
- package/dist/node_modules/fastq/example.mjs +9 -0
- package/dist/node_modules/fastq/index.d.ts +59 -0
- package/dist/node_modules/fastq/package.json +49 -0
- package/dist/node_modules/fastq/queue.js +346 -0
- package/dist/node_modules/fastq/test/example.ts +83 -0
- package/dist/node_modules/fastq/test/promise.js +325 -0
- package/dist/node_modules/fastq/test/test.js +733 -0
- package/dist/node_modules/fastq/test/tsconfig.json +11 -0
- package/dist/node_modules/fill-range/LICENSE +21 -0
- package/dist/node_modules/fill-range/README.md +237 -0
- package/dist/node_modules/fill-range/index.js +248 -0
- package/dist/node_modules/fill-range/package.json +74 -0
- package/dist/node_modules/fs-extra/LICENSE +15 -0
- package/dist/node_modules/fs-extra/README.md +294 -0
- package/dist/node_modules/fs-extra/lib/copy/copy-sync.js +171 -0
- package/dist/node_modules/fs-extra/lib/copy/copy.js +182 -0
- package/dist/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/dist/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/dist/node_modules/fs-extra/lib/ensure/file.js +66 -0
- package/dist/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/dist/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink-paths.js +101 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink-type.js +34 -0
- package/dist/node_modules/fs-extra/lib/ensure/symlink.js +67 -0
- package/dist/node_modules/fs-extra/lib/esm.mjs +68 -0
- package/dist/node_modules/fs-extra/lib/fs/index.js +146 -0
- package/dist/node_modules/fs-extra/lib/index.js +16 -0
- package/dist/node_modules/fs-extra/lib/json/index.js +16 -0
- package/dist/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/dist/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/dist/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/dist/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/dist/node_modules/fs-extra/lib/move/index.js +7 -0
- package/dist/node_modules/fs-extra/lib/move/move-sync.js +55 -0
- package/dist/node_modules/fs-extra/lib/move/move.js +59 -0
- package/dist/node_modules/fs-extra/lib/output-file/index.js +31 -0
- package/dist/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/dist/node_modules/fs-extra/lib/remove/index.js +17 -0
- package/dist/node_modules/fs-extra/lib/util/stat.js +159 -0
- package/dist/node_modules/fs-extra/lib/util/utimes.js +36 -0
- package/dist/node_modules/fs-extra/package.json +71 -0
- package/dist/node_modules/get-east-asian-width/index.d.ts +60 -0
- package/dist/node_modules/get-east-asian-width/index.js +35 -0
- package/dist/node_modules/get-east-asian-width/license +9 -0
- package/dist/node_modules/get-east-asian-width/lookup-data.js +21 -0
- package/dist/node_modules/get-east-asian-width/lookup.js +138 -0
- package/dist/node_modules/get-east-asian-width/package.json +71 -0
- package/dist/node_modules/get-east-asian-width/readme.md +65 -0
- package/dist/node_modules/get-east-asian-width/utilities.js +24 -0
- package/dist/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/dist/node_modules/glob-parent/LICENSE +15 -0
- package/dist/node_modules/glob-parent/README.md +137 -0
- package/dist/node_modules/glob-parent/index.js +42 -0
- package/dist/node_modules/glob-parent/package.json +48 -0
- package/dist/node_modules/graceful-fs/LICENSE +15 -0
- package/dist/node_modules/graceful-fs/README.md +143 -0
- package/dist/node_modules/graceful-fs/clone.js +23 -0
- package/dist/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/dist/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/dist/node_modules/graceful-fs/package.json +53 -0
- package/dist/node_modules/graceful-fs/polyfills.js +355 -0
- package/dist/node_modules/inherits/LICENSE +16 -0
- package/dist/node_modules/inherits/README.md +42 -0
- package/dist/node_modules/inherits/inherits.js +9 -0
- package/dist/node_modules/inherits/inherits_browser.js +27 -0
- package/dist/node_modules/inherits/package.json +29 -0
- package/dist/node_modules/is-extglob/LICENSE +21 -0
- package/dist/node_modules/is-extglob/README.md +107 -0
- package/dist/node_modules/is-extglob/index.js +20 -0
- package/dist/node_modules/is-extglob/package.json +69 -0
- package/dist/node_modules/is-glob/LICENSE +21 -0
- package/dist/node_modules/is-glob/README.md +206 -0
- package/dist/node_modules/is-glob/index.js +150 -0
- package/dist/node_modules/is-glob/package.json +81 -0
- package/dist/node_modules/is-interactive/index.d.ts +25 -0
- package/dist/node_modules/is-interactive/index.js +7 -0
- package/dist/node_modules/is-interactive/license +9 -0
- package/dist/node_modules/is-interactive/package.json +41 -0
- package/dist/node_modules/is-interactive/readme.md +52 -0
- package/dist/node_modules/is-number/LICENSE +21 -0
- package/dist/node_modules/is-number/README.md +187 -0
- package/dist/node_modules/is-number/index.js +18 -0
- package/dist/node_modules/is-number/package.json +82 -0
- package/dist/node_modules/is-unicode-supported/index.d.ts +12 -0
- package/dist/node_modules/is-unicode-supported/index.js +21 -0
- package/dist/node_modules/is-unicode-supported/license +9 -0
- package/dist/node_modules/is-unicode-supported/package.json +47 -0
- package/dist/node_modules/is-unicode-supported/readme.md +35 -0
- package/dist/node_modules/isarray/.travis.yml +4 -0
- package/dist/node_modules/isarray/Makefile +6 -0
- package/dist/node_modules/isarray/README.md +60 -0
- package/dist/node_modules/isarray/component.json +19 -0
- package/dist/node_modules/isarray/index.js +5 -0
- package/dist/node_modules/isarray/package.json +45 -0
- package/dist/node_modules/isarray/test.js +20 -0
- package/dist/node_modules/jsonfile/LICENSE +15 -0
- package/dist/node_modules/jsonfile/README.md +230 -0
- package/dist/node_modules/jsonfile/index.js +88 -0
- package/dist/node_modules/jsonfile/package.json +40 -0
- package/dist/node_modules/jsonfile/utils.js +18 -0
- package/dist/node_modules/log-symbols/browser-symbols.js +4 -0
- package/dist/node_modules/log-symbols/browser.js +1 -0
- package/dist/node_modules/log-symbols/index.d.ts +22 -0
- package/dist/node_modules/log-symbols/index.js +1 -0
- package/dist/node_modules/log-symbols/license +9 -0
- package/dist/node_modules/log-symbols/package.json +60 -0
- package/dist/node_modules/log-symbols/readme.md +39 -0
- package/dist/node_modules/log-symbols/symbols.js +14 -0
- package/dist/node_modules/merge2/LICENSE +21 -0
- package/dist/node_modules/merge2/README.md +144 -0
- package/dist/node_modules/merge2/index.js +144 -0
- package/dist/node_modules/merge2/package.json +43 -0
- package/dist/node_modules/micromatch/LICENSE +21 -0
- package/dist/node_modules/micromatch/README.md +1024 -0
- package/dist/node_modules/micromatch/index.js +474 -0
- package/dist/node_modules/micromatch/package.json +119 -0
- package/dist/node_modules/mimic-function/index.d.ts +52 -0
- package/dist/node_modules/mimic-function/index.js +72 -0
- package/dist/node_modules/mimic-function/license +9 -0
- package/dist/node_modules/mimic-function/package.json +49 -0
- package/dist/node_modules/mimic-function/readme.md +80 -0
- package/dist/node_modules/node-int64/Int64.js +268 -0
- package/dist/node_modules/node-int64/LICENSE +19 -0
- package/dist/node_modules/node-int64/README.md +78 -0
- package/dist/node_modules/node-int64/package.json +27 -0
- package/dist/node_modules/node-int64/test.js +120 -0
- package/dist/node_modules/onetime/index.d.ts +59 -0
- package/dist/node_modules/onetime/index.js +41 -0
- package/dist/node_modules/onetime/license +9 -0
- package/dist/node_modules/onetime/package.json +49 -0
- package/dist/node_modules/onetime/readme.md +88 -0
- package/dist/node_modules/ora/index.d.ts +380 -0
- package/dist/node_modules/ora/index.js +668 -0
- package/dist/node_modules/ora/license +9 -0
- package/dist/node_modules/ora/package.json +62 -0
- package/dist/node_modules/ora/readme.md +427 -0
- package/dist/node_modules/pend/LICENSE +23 -0
- package/dist/node_modules/pend/README.md +41 -0
- package/dist/node_modules/pend/index.js +55 -0
- package/dist/node_modules/pend/package.json +18 -0
- package/dist/node_modules/pend/test.js +137 -0
- package/dist/node_modules/picomatch/LICENSE +21 -0
- package/dist/node_modules/picomatch/README.md +716 -0
- package/dist/node_modules/picomatch/index.js +3 -0
- package/dist/node_modules/picomatch/lib/constants.js +184 -0
- package/dist/node_modules/picomatch/lib/parse.js +1392 -0
- package/dist/node_modules/picomatch/lib/picomatch.js +342 -0
- package/dist/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/node_modules/picomatch/lib/utils.js +64 -0
- package/dist/node_modules/picomatch/package.json +81 -0
- package/dist/node_modules/process-nextick-args/index.js +45 -0
- package/dist/node_modules/process-nextick-args/license.md +19 -0
- package/dist/node_modules/process-nextick-args/package.json +25 -0
- package/dist/node_modules/process-nextick-args/readme.md +18 -0
- package/dist/node_modules/proper-lockfile/CHANGELOG.md +108 -0
- package/dist/node_modules/proper-lockfile/LICENSE +21 -0
- package/dist/node_modules/proper-lockfile/README.md +183 -0
- package/dist/node_modules/proper-lockfile/index.js +40 -0
- package/dist/node_modules/proper-lockfile/lib/adapter.js +85 -0
- package/dist/node_modules/proper-lockfile/lib/lockfile.js +342 -0
- package/dist/node_modules/proper-lockfile/lib/mtime-precision.js +55 -0
- package/dist/node_modules/proper-lockfile/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dist/node_modules/proper-lockfile/node_modules/signal-exit/README.md +39 -0
- package/dist/node_modules/proper-lockfile/node_modules/signal-exit/index.js +202 -0
- package/dist/node_modules/proper-lockfile/node_modules/signal-exit/package.json +38 -0
- package/dist/node_modules/proper-lockfile/node_modules/signal-exit/signals.js +53 -0
- package/dist/node_modules/proper-lockfile/package.json +71 -0
- package/dist/node_modules/queue-microtask/LICENSE +20 -0
- package/dist/node_modules/queue-microtask/README.md +90 -0
- package/dist/node_modules/queue-microtask/index.d.ts +2 -0
- package/dist/node_modules/queue-microtask/index.js +9 -0
- package/dist/node_modules/queue-microtask/package.json +55 -0
- package/dist/node_modules/readdirp/LICENSE +21 -0
- package/dist/node_modules/readdirp/README.md +120 -0
- package/dist/node_modules/readdirp/index.d.ts +108 -0
- package/dist/node_modules/readdirp/index.js +272 -0
- package/dist/node_modules/readdirp/package.json +66 -0
- package/dist/node_modules/restore-cursor/index.d.ts +15 -0
- package/dist/node_modules/restore-cursor/index.js +15 -0
- package/dist/node_modules/restore-cursor/license +9 -0
- package/dist/node_modules/restore-cursor/package.json +57 -0
- package/dist/node_modules/restore-cursor/readme.md +21 -0
- package/dist/node_modules/retry/.travis.yml +15 -0
- package/dist/node_modules/retry/License +21 -0
- package/dist/node_modules/retry/Makefile +18 -0
- package/dist/node_modules/retry/README.md +227 -0
- package/dist/node_modules/retry/equation.gif +0 -0
- package/dist/node_modules/retry/example/dns.js +31 -0
- package/dist/node_modules/retry/example/stop.js +40 -0
- package/dist/node_modules/retry/index.js +1 -0
- package/dist/node_modules/retry/lib/retry.js +100 -0
- package/dist/node_modules/retry/lib/retry_operation.js +158 -0
- package/dist/node_modules/retry/package.json +32 -0
- package/dist/node_modules/retry/test/common.js +10 -0
- package/dist/node_modules/retry/test/integration/test-forever.js +24 -0
- package/dist/node_modules/retry/test/integration/test-retry-operation.js +258 -0
- package/dist/node_modules/retry/test/integration/test-retry-wrap.js +101 -0
- package/dist/node_modules/retry/test/integration/test-timeouts.js +69 -0
- package/dist/node_modules/reusify/.github/dependabot.yml +7 -0
- package/dist/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/dist/node_modules/reusify/LICENSE +22 -0
- package/dist/node_modules/reusify/README.md +139 -0
- package/dist/node_modules/reusify/SECURITY.md +15 -0
- package/dist/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/dist/node_modules/reusify/benchmarks/fib.js +13 -0
- package/dist/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/dist/node_modules/reusify/eslint.config.js +14 -0
- package/dist/node_modules/reusify/package.json +50 -0
- package/dist/node_modules/reusify/reusify.d.ts +14 -0
- package/dist/node_modules/reusify/reusify.js +33 -0
- package/dist/node_modules/reusify/test.js +66 -0
- package/dist/node_modules/reusify/tsconfig.json +11 -0
- package/dist/node_modules/run-parallel/LICENSE +20 -0
- package/dist/node_modules/run-parallel/README.md +85 -0
- package/dist/node_modules/run-parallel/index.js +51 -0
- package/dist/node_modules/run-parallel/package.json +58 -0
- package/dist/node_modules/signal-exit/LICENSE.txt +16 -0
- package/dist/node_modules/signal-exit/README.md +74 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts +12 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js +10 -0
- package/dist/node_modules/signal-exit/dist/cjs/browser.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.d.ts +48 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js +279 -0
- package/dist/node_modules/signal-exit/dist/cjs/index.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts +29 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js +42 -0
- package/dist/node_modules/signal-exit/dist/cjs/signals.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts +12 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js +4 -0
- package/dist/node_modules/signal-exit/dist/mjs/browser.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.d.ts +48 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js +275 -0
- package/dist/node_modules/signal-exit/dist/mjs/index.js.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/package.json +3 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts +29 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.d.ts.map +1 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js +39 -0
- package/dist/node_modules/signal-exit/dist/mjs/signals.js.map +1 -0
- package/dist/node_modules/signal-exit/package.json +106 -0
- package/dist/node_modules/stdin-discarder/index.d.ts +13 -0
- package/dist/node_modules/stdin-discarder/index.js +84 -0
- package/dist/node_modules/stdin-discarder/license +9 -0
- package/dist/node_modules/stdin-discarder/package.json +42 -0
- package/dist/node_modules/stdin-discarder/readme.md +37 -0
- package/dist/node_modules/string-width/index.d.ts +39 -0
- package/dist/node_modules/string-width/index.js +203 -0
- package/dist/node_modules/string-width/license +9 -0
- package/dist/node_modules/string-width/package.json +65 -0
- package/dist/node_modules/string-width/readme.md +66 -0
- package/dist/node_modules/strip-ansi/index.d.ts +15 -0
- package/dist/node_modules/strip-ansi/index.js +19 -0
- package/dist/node_modules/strip-ansi/license +9 -0
- package/dist/node_modules/strip-ansi/package.json +59 -0
- package/dist/node_modules/strip-ansi/readme.md +37 -0
- package/dist/node_modules/to-regex-range/LICENSE +21 -0
- package/dist/node_modules/to-regex-range/README.md +305 -0
- package/dist/node_modules/to-regex-range/index.js +288 -0
- package/dist/node_modules/to-regex-range/package.json +88 -0
- package/dist/node_modules/universalify/LICENSE +20 -0
- package/dist/node_modules/universalify/README.md +76 -0
- package/dist/node_modules/universalify/index.js +24 -0
- package/dist/node_modules/universalify/package.json +34 -0
- package/dist/node_modules/unzipper/.gitattributes +1 -0
- package/dist/node_modules/unzipper/LICENSE +25 -0
- package/dist/node_modules/unzipper/README.md +397 -0
- package/dist/node_modules/unzipper/eslint.config.mjs +29 -0
- package/dist/node_modules/unzipper/lib/BufferStream.js +19 -0
- package/dist/node_modules/unzipper/lib/Decrypt.js +94 -0
- package/dist/node_modules/unzipper/lib/NoopStream.js +14 -0
- package/dist/node_modules/unzipper/lib/Open/directory.js +244 -0
- package/dist/node_modules/unzipper/lib/Open/index.js +141 -0
- package/dist/node_modules/unzipper/lib/Open/unzip.js +120 -0
- package/dist/node_modules/unzipper/lib/PullStream.js +139 -0
- package/dist/node_modules/unzipper/lib/extract.js +63 -0
- package/dist/node_modules/unzipper/lib/parse.js +288 -0
- package/dist/node_modules/unzipper/lib/parseBuffer.js +55 -0
- package/dist/node_modules/unzipper/lib/parseDateTime.js +13 -0
- package/dist/node_modules/unzipper/lib/parseExtraField.js +40 -0
- package/dist/node_modules/unzipper/lib/parseOne.js +54 -0
- package/dist/node_modules/unzipper/package.json +62 -0
- package/dist/node_modules/unzipper/unzip.js +5 -0
- package/dist/node_modules/util-deprecate/History.md +16 -0
- package/dist/node_modules/util-deprecate/LICENSE +24 -0
- package/dist/node_modules/util-deprecate/README.md +53 -0
- package/dist/node_modules/util-deprecate/browser.js +67 -0
- package/dist/node_modules/util-deprecate/node.js +6 -0
- package/dist/node_modules/util-deprecate/package.json +27 -0
- package/dist/node_modules/yauzl/LICENSE +21 -0
- package/dist/node_modules/yauzl/README.md +1015 -0
- package/dist/node_modules/yauzl/crc32.js +45 -0
- package/dist/node_modules/yauzl/fd-slicer.js +188 -0
- package/dist/node_modules/yauzl/index.js +1096 -0
- package/dist/node_modules/yauzl/package.json +40 -0
- package/dist/node_modules/yazl/LICENSE +21 -0
- package/dist/node_modules/yazl/README.md +457 -0
- package/dist/node_modules/yazl/index.js +826 -0
- package/dist/node_modules/yazl/package.json +34 -0
- package/dist/node_modules/yoctocolors/base.d.ts +69 -0
- package/dist/node_modules/yoctocolors/base.js +118 -0
- package/dist/node_modules/yoctocolors/index.d.ts +2 -0
- package/dist/node_modules/yoctocolors/index.js +2 -0
- package/dist/node_modules/yoctocolors/license +9 -0
- package/dist/node_modules/yoctocolors/package.json +69 -0
- package/dist/node_modules/yoctocolors/readme.md +163 -0
- package/dist/node_modules/zip-lib/LICENSE +21 -0
- package/dist/node_modules/zip-lib/README.md +473 -0
- package/dist/node_modules/zip-lib/lib/cancelable.d.ts +38 -0
- package/dist/node_modules/zip-lib/lib/cancelable.js +70 -0
- package/dist/node_modules/zip-lib/lib/fs.d.ts +32 -0
- package/dist/node_modules/zip-lib/lib/fs.js +286 -0
- package/dist/node_modules/zip-lib/lib/index.d.ts +44 -0
- package/dist/node_modules/zip-lib/lib/index.js +58 -0
- package/dist/node_modules/zip-lib/lib/unzip.d.ts +99 -0
- package/dist/node_modules/zip-lib/lib/unzip.js +450 -0
- package/dist/node_modules/zip-lib/lib/zip.d.ts +86 -0
- package/dist/node_modules/zip-lib/lib/zip.js +363 -0
- package/dist/node_modules/zip-lib/package.json +46 -0
- package/dist/node_modules/zod/LICENSE +21 -0
- package/dist/node_modules/zod/README.md +218 -0
- package/dist/node_modules/zod/compile.cjs +96 -0
- package/dist/node_modules/zod/compile.d.cts +1 -0
- package/dist/node_modules/zod/compile.d.ts +1 -0
- package/dist/node_modules/zod/compile.js +52 -0
- package/dist/node_modules/zod/index.cjs +52 -0
- package/dist/node_modules/zod/index.d.cts +3 -0
- package/dist/node_modules/zod/index.d.ts +3 -0
- package/dist/node_modules/zod/index.js +7 -0
- package/dist/node_modules/zod/locales/index.cjs +36 -0
- package/dist/node_modules/zod/locales/index.d.cts +1 -0
- package/dist/node_modules/zod/locales/index.d.ts +1 -0
- package/dist/node_modules/zod/locales/index.js +1 -0
- package/dist/node_modules/zod/locales/package.json +7 -0
- package/dist/node_modules/zod/mini/index.cjs +51 -0
- package/dist/node_modules/zod/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/mini/index.d.ts +3 -0
- package/dist/node_modules/zod/mini/index.js +3 -0
- package/dist/node_modules/zod/mini/package.json +7 -0
- package/dist/node_modules/zod/package.json +147 -0
- package/dist/node_modules/zod/src/compile.ts +56 -0
- package/dist/node_modules/zod/src/index.ts +7 -0
- package/dist/node_modules/zod/src/locales/index.ts +1 -0
- package/dist/node_modules/zod/src/mini/index.ts +3 -0
- package/dist/node_modules/zod/src/v3/ZodError.ts +340 -0
- package/dist/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/dist/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/dist/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/dist/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/dist/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/dist/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/dist/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/dist/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/dist/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/dist/node_modules/zod/src/v3/errors.ts +13 -0
- package/dist/node_modules/zod/src/v3/external.ts +6 -0
- package/dist/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/dist/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/dist/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/dist/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/dist/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/dist/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/dist/node_modules/zod/src/v3/index.ts +4 -0
- package/dist/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/dist/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/dist/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/dist/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/dist/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/dist/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/dist/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/dist/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/dist/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/dist/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/dist/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/dist/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/complex.test.ts +70 -0
- package/dist/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/dist/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/dist/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/dist/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/dist/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/dist/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/dist/node_modules/zod/src/v3/tests/error.test.ts +586 -0
- package/dist/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/dist/node_modules/zod/src/v3/tests/function.test.ts +261 -0
- package/dist/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/dist/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/dist/node_modules/zod/src/v3/tests/intersection.test.ts +128 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/dist/node_modules/zod/src/v3/tests/language-server.test.ts +206 -0
- package/dist/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/dist/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/dist/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/dist/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/dist/node_modules/zod/src/v3/tests/nan.test.ts +24 -0
- package/dist/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/dist/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/dist/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/object.test.ts +431 -0
- package/dist/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/dist/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/dist/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/dist/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/dist/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/dist/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/dist/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/dist/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/dist/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/readonly.test.ts +114 -0
- package/dist/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/dist/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/dist/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/dist/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/dist/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/dist/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/dist/node_modules/zod/src/v3/tests/string.test.ts +922 -0
- package/dist/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/dist/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/dist/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/dist/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/dist/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/dist/node_modules/zod/src/v3/types.ts +5138 -0
- package/dist/node_modules/zod/src/v4/classic/checks.ts +33 -0
- package/dist/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/compat.ts +78 -0
- package/dist/node_modules/zod/src/v4/classic/deep-partial.ts +76 -0
- package/dist/node_modules/zod/src/v4/classic/errors.ts +97 -0
- package/dist/node_modules/zod/src/v4/classic/external.ts +57 -0
- package/dist/node_modules/zod/src/v4/classic/from-json-schema.ts +944 -0
- package/dist/node_modules/zod/src/v4/classic/in-out.ts +45 -0
- package/dist/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/dist/node_modules/zod/src/v4/classic/iso.ts +20 -0
- package/dist/node_modules/zod/src/v4/classic/parse.ts +88 -0
- package/dist/node_modules/zod/src/v4/classic/schemas.ts +2937 -0
- package/dist/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/apply.test.ts +86 -0
- package/dist/node_modules/zod/src/v4/classic/tests/array.test.ts +291 -0
- package/dist/node_modules/zod/src/v4/classic/tests/assignability.test.ts +402 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/dist/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/dist/node_modules/zod/src/v4/classic/tests/bigint.test.ts +89 -0
- package/dist/node_modules/zod/src/v4/classic/tests/brand.test.ts +106 -0
- package/dist/node_modules/zod/src/v4/classic/tests/catch.test.ts +604 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/dist/node_modules/zod/src/v4/classic/tests/codec-examples.test.ts +572 -0
- package/dist/node_modules/zod/src/v4/classic/tests/codec.test.ts +704 -0
- package/dist/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/dist/node_modules/zod/src/v4/classic/tests/continuability.test.ts +374 -0
- package/dist/node_modules/zod/src/v4/classic/tests/credit-card.test.ts +76 -0
- package/dist/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/dist/node_modules/zod/src/v4/classic/tests/cyclic-data.test.ts +985 -0
- package/dist/node_modules/zod/src/v4/classic/tests/date.test.ts +92 -0
- package/dist/node_modules/zod/src/v4/classic/tests/datetime.test.ts +316 -0
- package/dist/node_modules/zod/src/v4/classic/tests/deep-partial.test.ts +380 -0
- package/dist/node_modules/zod/src/v4/classic/tests/default-locale.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/default.test.ts +455 -0
- package/dist/node_modules/zod/src/v4/classic/tests/describe-meta-checks.test.ts +27 -0
- package/dist/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/detached-methods.test.ts +221 -0
- package/dist/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +942 -0
- package/dist/node_modules/zod/src/v4/classic/tests/enum.test.ts +305 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +917 -0
- package/dist/node_modules/zod/src/v4/classic/tests/error.test.ts +1108 -0
- package/dist/node_modules/zod/src/v4/classic/tests/file.test.ts +96 -0
- package/dist/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +179 -0
- package/dist/node_modules/zod/src/v4/classic/tests/fix-json-issue.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/classic/tests/from-json-schema.test.ts +1467 -0
- package/dist/node_modules/zod/src/v4/classic/tests/function.test.ts +391 -0
- package/dist/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/dist/node_modules/zod/src/v4/classic/tests/global-config.test.ts +32 -0
- package/dist/node_modules/zod/src/v4/classic/tests/hash.test.ts +67 -0
- package/dist/node_modules/zod/src/v4/classic/tests/iban.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/in-out.test.ts +159 -0
- package/dist/node_modules/zod/src/v4/classic/tests/index.test.ts +958 -0
- package/dist/node_modules/zod/src/v4/classic/tests/instance-footprint.test.ts +319 -0
- package/dist/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +127 -0
- package/dist/node_modules/zod/src/v4/classic/tests/intersection.test.ts +334 -0
- package/dist/node_modules/zod/src/v4/classic/tests/issue-schema.test.ts +215 -0
- package/dist/node_modules/zod/src/v4/classic/tests/jitless-allows-eval.test.ts +39 -0
- package/dist/node_modules/zod/src/v4/classic/tests/json.test.ts +109 -0
- package/dist/node_modules/zod/src/v4/classic/tests/lazy.test.ts +262 -0
- package/dist/node_modules/zod/src/v4/classic/tests/literal.test.ts +128 -0
- package/dist/node_modules/zod/src/v4/classic/tests/locales_ka.test.ts +29 -0
- package/dist/node_modules/zod/src/v4/classic/tests/locales_ro.test.ts +24 -0
- package/dist/node_modules/zod/src/v4/classic/tests/map.test.ts +349 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +101 -0
- package/dist/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/classic/tests/number.test.ts +401 -0
- package/dist/node_modules/zod/src/v4/classic/tests/object.test.ts +1006 -0
- package/dist/node_modules/zod/src/v4/classic/tests/optin-ladder.test.ts +235 -0
- package/dist/node_modules/zod/src/v4/classic/tests/optional.test.ts +366 -0
- package/dist/node_modules/zod/src/v4/classic/tests/partial.test.ts +497 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +211 -0
- package/dist/node_modules/zod/src/v4/classic/tests/pipe.test.ts +101 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prefault.test.ts +144 -0
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess-types.test.ts +44 -0
- package/dist/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +351 -0
- package/dist/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/dist/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/dist/node_modules/zod/src/v4/classic/tests/properties.test.ts +141 -0
- package/dist/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/dist/node_modules/zod/src/v4/classic/tests/readonly.test.ts +184 -0
- package/dist/node_modules/zod/src/v4/classic/tests/record.test.ts +885 -0
- package/dist/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +707 -0
- package/dist/node_modules/zod/src/v4/classic/tests/redos.test.ts +68 -0
- package/dist/node_modules/zod/src/v4/classic/tests/refine.test.ts +693 -0
- package/dist/node_modules/zod/src/v4/classic/tests/registries.test.ts +243 -0
- package/dist/node_modules/zod/src/v4/classic/tests/set.test.ts +196 -0
- package/dist/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +153 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +125 -0
- package/dist/node_modules/zod/src/v4/classic/tests/string.test.ts +1440 -0
- package/dist/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +124 -0
- package/dist/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +812 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema-methods.test.ts +438 -0
- package/dist/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +4733 -0
- package/dist/node_modules/zod/src/v4/classic/tests/transform.test.ts +378 -0
- package/dist/node_modules/zod/src/v4/classic/tests/tuple.test.ts +511 -0
- package/dist/node_modules/zod/src/v4/classic/tests/union.test.ts +310 -0
- package/dist/node_modules/zod/src/v4/classic/tests/url.test.ts +13 -0
- package/dist/node_modules/zod/src/v4/classic/tests/validate.test.ts +645 -0
- package/dist/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/dist/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/dist/node_modules/zod/src/v4/core/api.ts +1875 -0
- package/dist/node_modules/zod/src/v4/core/checks.ts +1266 -0
- package/dist/node_modules/zod/src/v4/core/compile.ts +2322 -0
- package/dist/node_modules/zod/src/v4/core/core.ts +230 -0
- package/dist/node_modules/zod/src/v4/core/doc.ts +52 -0
- package/dist/node_modules/zod/src/v4/core/errors.ts +543 -0
- package/dist/node_modules/zod/src/v4/core/index.ts +19 -0
- package/dist/node_modules/zod/src/v4/core/json-schema-generator.ts +131 -0
- package/dist/node_modules/zod/src/v4/core/json-schema-processors.ts +934 -0
- package/dist/node_modules/zod/src/v4/core/json-schema.ts +148 -0
- package/dist/node_modules/zod/src/v4/core/memoizer.ts +331 -0
- package/dist/node_modules/zod/src/v4/core/parse.ts +309 -0
- package/dist/node_modules/zod/src/v4/core/regexes.ts +217 -0
- package/dist/node_modules/zod/src/v4/core/registries.ts +105 -0
- package/dist/node_modules/zod/src/v4/core/schemas.ts +5226 -0
- package/dist/node_modules/zod/src/v4/core/standard-schema.ts +159 -0
- package/dist/node_modules/zod/src/v4/core/tests/cached.test.ts +54 -0
- package/dist/node_modules/zod/src/v4/core/tests/compile-differential.test.ts +1004 -0
- package/dist/node_modules/zod/src/v4/core/tests/compile-generative.test.ts +445 -0
- package/dist/node_modules/zod/src/v4/core/tests/compile-global.test.ts +89 -0
- package/dist/node_modules/zod/src/v4/core/tests/compile-off-by-default.test.ts +26 -0
- package/dist/node_modules/zod/src/v4/core/tests/compile-stats.test.ts +34 -0
- package/dist/node_modules/zod/src/v4/core/tests/compile.test.ts +2036 -0
- package/dist/node_modules/zod/src/v4/core/tests/email-regex.test.ts +140 -0
- package/dist/node_modules/zod/src/v4/core/tests/extend.test.ts +59 -0
- package/dist/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/el.test.ts +214 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/es.test.ts +180 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/fr.test.ts +72 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/he.test.ts +379 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/hr.test.ts +163 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/nl.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/parity.test.ts +42 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tg.test.ts +85 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tk.test.ts +69 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/dist/node_modules/zod/src/v4/core/tests/locales/uz.test.ts +105 -0
- package/dist/node_modules/zod/src/v4/core/tests/polyfill-collision.test.ts +46 -0
- package/dist/node_modules/zod/src/v4/core/tests/record-constructor.test.ts +125 -0
- package/dist/node_modules/zod/src/v4/core/tests/recursive-tuples.test.ts +45 -0
- package/dist/node_modules/zod/src/v4/core/tests/treeshake.test.ts +51 -0
- package/dist/node_modules/zod/src/v4/core/tests/url-no-canparse.test.ts +133 -0
- package/dist/node_modules/zod/src/v4/core/to-json-schema.ts +857 -0
- package/dist/node_modules/zod/src/v4/core/util.ts +1293 -0
- package/dist/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/dist/node_modules/zod/src/v4/core/visit.ts +193 -0
- package/dist/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/dist/node_modules/zod/src/v4/index.ts +4 -0
- package/dist/node_modules/zod/src/v4/locales/ar.ts +120 -0
- package/dist/node_modules/zod/src/v4/locales/az.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/be.ts +188 -0
- package/dist/node_modules/zod/src/v4/locales/bg.ts +133 -0
- package/dist/node_modules/zod/src/v4/locales/bn.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/ca.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/ckb.ts +140 -0
- package/dist/node_modules/zod/src/v4/locales/cs.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/da.ts +128 -0
- package/dist/node_modules/zod/src/v4/locales/de.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/el.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/en.ts +136 -0
- package/dist/node_modules/zod/src/v4/locales/eo.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/es.ts +145 -0
- package/dist/node_modules/zod/src/v4/locales/fa.ts +131 -0
- package/dist/node_modules/zod/src/v4/locales/fi.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/fr-CA.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/fr.ts +139 -0
- package/dist/node_modules/zod/src/v4/locales/gu.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/he.ts +253 -0
- package/dist/node_modules/zod/src/v4/locales/hi.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/hr.ts +135 -0
- package/dist/node_modules/zod/src/v4/locales/hu.ts +122 -0
- package/dist/node_modules/zod/src/v4/locales/hy.ts +175 -0
- package/dist/node_modules/zod/src/v4/locales/id.ts +120 -0
- package/dist/node_modules/zod/src/v4/locales/index.ts +63 -0
- package/dist/node_modules/zod/src/v4/locales/is.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/it.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/ja.ts +119 -0
- package/dist/node_modules/zod/src/v4/locales/ka.ts +128 -0
- package/dist/node_modules/zod/src/v4/locales/kh.ts +7 -0
- package/dist/node_modules/zod/src/v4/locales/km.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/kn.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/ko.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/lt.ts +243 -0
- package/dist/node_modules/zod/src/v4/locales/mk.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/ms.ts +120 -0
- package/dist/node_modules/zod/src/v4/locales/ne.ts +128 -0
- package/dist/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/dist/node_modules/zod/src/v4/locales/nn.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/no.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/ota.ts +122 -0
- package/dist/node_modules/zod/src/v4/locales/pl.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/ps.ts +131 -0
- package/dist/node_modules/zod/src/v4/locales/pt-BR.ts +161 -0
- package/dist/node_modules/zod/src/v4/locales/pt.ts +159 -0
- package/dist/node_modules/zod/src/v4/locales/ro.ts +132 -0
- package/dist/node_modules/zod/src/v4/locales/ru.ts +188 -0
- package/dist/node_modules/zod/src/v4/locales/sk.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/sl.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/sv.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/ta.ts +123 -0
- package/dist/node_modules/zod/src/v4/locales/tg.ts +135 -0
- package/dist/node_modules/zod/src/v4/locales/th.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/tk.ts +113 -0
- package/dist/node_modules/zod/src/v4/locales/tr.ts +116 -0
- package/dist/node_modules/zod/src/v4/locales/ua.ts +7 -0
- package/dist/node_modules/zod/src/v4/locales/uk.ts +122 -0
- package/dist/node_modules/zod/src/v4/locales/ur.ts +124 -0
- package/dist/node_modules/zod/src/v4/locales/uz.ts +120 -0
- package/dist/node_modules/zod/src/v4/locales/vi.ts +122 -0
- package/dist/node_modules/zod/src/v4/locales/yo.ts +129 -0
- package/dist/node_modules/zod/src/v4/locales/zh-CN.ts +121 -0
- package/dist/node_modules/zod/src/v4/locales/zh-TW.ts +120 -0
- package/dist/node_modules/zod/src/v4/mini/checks.ts +33 -0
- package/dist/node_modules/zod/src/v4/mini/coerce.ts +27 -0
- package/dist/node_modules/zod/src/v4/mini/deep-partial.ts +73 -0
- package/dist/node_modules/zod/src/v4/mini/external.ts +52 -0
- package/dist/node_modules/zod/src/v4/mini/in-out.ts +45 -0
- package/dist/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/dist/node_modules/zod/src/v4/mini/iso.ts +66 -0
- package/dist/node_modules/zod/src/v4/mini/parse.ts +16 -0
- package/dist/node_modules/zod/src/v4/mini/schemas.ts +2051 -0
- package/dist/node_modules/zod/src/v4/mini/tests/apply.test.ts +57 -0
- package/dist/node_modules/zod/src/v4/mini/tests/assignability.test.ts +190 -0
- package/dist/node_modules/zod/src/v4/mini/tests/brand.test.ts +94 -0
- package/dist/node_modules/zod/src/v4/mini/tests/checks.test.ts +158 -0
- package/dist/node_modules/zod/src/v4/mini/tests/codec.test.ts +582 -0
- package/dist/node_modules/zod/src/v4/mini/tests/computed.test.ts +30 -0
- package/dist/node_modules/zod/src/v4/mini/tests/cyclic-data.test.ts +84 -0
- package/dist/node_modules/zod/src/v4/mini/tests/deep-partial.test.ts +54 -0
- package/dist/node_modules/zod/src/v4/mini/tests/error.test.ts +41 -0
- package/dist/node_modules/zod/src/v4/mini/tests/functions.test.ts +14 -0
- package/dist/node_modules/zod/src/v4/mini/tests/index.test.ts +1146 -0
- package/dist/node_modules/zod/src/v4/mini/tests/number.test.ts +109 -0
- package/dist/node_modules/zod/src/v4/mini/tests/object.test.ts +292 -0
- package/dist/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/dist/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +341 -0
- package/dist/node_modules/zod/src/v4/mini/tests/standard-schema.test.ts +50 -0
- package/dist/node_modules/zod/src/v4/mini/tests/string.test.ts +396 -0
- package/dist/node_modules/zod/src/v4-mini/index.ts +3 -0
- package/dist/node_modules/zod/v3/ZodError.cjs +167 -0
- package/dist/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/dist/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/dist/node_modules/zod/v3/ZodError.js +143 -0
- package/dist/node_modules/zod/v3/errors.cjs +36 -0
- package/dist/node_modules/zod/v3/errors.d.cts +5 -0
- package/dist/node_modules/zod/v3/errors.d.ts +5 -0
- package/dist/node_modules/zod/v3/errors.js +9 -0
- package/dist/node_modules/zod/v3/external.cjs +41 -0
- package/dist/node_modules/zod/v3/external.d.cts +6 -0
- package/dist/node_modules/zod/v3/external.d.ts +6 -0
- package/dist/node_modules/zod/v3/external.js +6 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.cjs +21 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.cjs +28 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/dist/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.cjs +143 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/dist/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.cjs +21 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/dist/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.cjs +21 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/dist/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/dist/node_modules/zod/v3/helpers/util.cjs +156 -0
- package/dist/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/dist/node_modules/zod/v3/helpers/util.js +133 -0
- package/dist/node_modules/zod/v3/index.cjs +52 -0
- package/dist/node_modules/zod/v3/index.d.cts +4 -0
- package/dist/node_modules/zod/v3/index.d.ts +4 -0
- package/dist/node_modules/zod/v3/index.js +4 -0
- package/dist/node_modules/zod/v3/locales/en.cjs +112 -0
- package/dist/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/dist/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/dist/node_modules/zod/v3/locales/en.js +109 -0
- package/dist/node_modules/zod/v3/package.json +7 -0
- package/dist/node_modules/zod/v3/standard-schema.cjs +21 -0
- package/dist/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/dist/node_modules/zod/v3/standard-schema.js +1 -0
- package/dist/node_modules/zod/v3/types.cjs +3798 -0
- package/dist/node_modules/zod/v3/types.d.cts +1034 -0
- package/dist/node_modules/zod/v3/types.d.ts +1034 -0
- package/dist/node_modules/zod/v3/types.js +3697 -0
- package/dist/node_modules/zod/v4/classic/checks.cjs +53 -0
- package/dist/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/classic/checks.js +1 -0
- package/dist/node_modules/zod/v4/classic/coerce.cjs +66 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/dist/node_modules/zod/v4/classic/coerce.js +17 -0
- package/dist/node_modules/zod/v4/classic/compat.cjs +80 -0
- package/dist/node_modules/zod/v4/classic/compat.d.cts +48 -0
- package/dist/node_modules/zod/v4/classic/compat.d.ts +48 -0
- package/dist/node_modules/zod/v4/classic/compat.js +31 -0
- package/dist/node_modules/zod/v4/classic/deep-partial.cjs +58 -0
- package/dist/node_modules/zod/v4/classic/deep-partial.d.cts +14 -0
- package/dist/node_modules/zod/v4/classic/deep-partial.d.ts +14 -0
- package/dist/node_modules/zod/v4/classic/deep-partial.js +13 -0
- package/dist/node_modules/zod/v4/classic/errors.cjs +102 -0
- package/dist/node_modules/zod/v4/classic/errors.d.cts +29 -0
- package/dist/node_modules/zod/v4/classic/errors.d.ts +29 -0
- package/dist/node_modules/zod/v4/classic/errors.js +57 -0
- package/dist/node_modules/zod/v4/classic/external.cjs +97 -0
- package/dist/node_modules/zod/v4/classic/external.d.cts +19 -0
- package/dist/node_modules/zod/v4/classic/external.d.ts +19 -0
- package/dist/node_modules/zod/v4/classic/external.js +17 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.cjs +926 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.cts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.d.ts +12 -0
- package/dist/node_modules/zod/v4/classic/from-json-schema.js +881 -0
- package/dist/node_modules/zod/v4/classic/in-out.cjs +82 -0
- package/dist/node_modules/zod/v4/classic/in-out.d.cts +8 -0
- package/dist/node_modules/zod/v4/classic/in-out.d.ts +8 -0
- package/dist/node_modules/zod/v4/classic/in-out.js +36 -0
- package/dist/node_modules/zod/v4/classic/index.cjs +52 -0
- package/dist/node_modules/zod/v4/classic/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/classic/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/classic/index.js +4 -0
- package/dist/node_modules/zod/v4/classic/iso.cjs +68 -0
- package/dist/node_modules/zod/v4/classic/iso.d.cts +7 -0
- package/dist/node_modules/zod/v4/classic/iso.d.ts +7 -0
- package/dist/node_modules/zod/v4/classic/iso.js +15 -0
- package/dist/node_modules/zod/v4/classic/package.json +7 -0
- package/dist/node_modules/zod/v4/classic/parse.cjs +63 -0
- package/dist/node_modules/zod/v4/classic/parse.d.cts +44 -0
- package/dist/node_modules/zod/v4/classic/parse.d.ts +44 -0
- package/dist/node_modules/zod/v4/classic/parse.js +16 -0
- package/dist/node_modules/zod/v4/classic/schemas.cjs +1676 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.cts +816 -0
- package/dist/node_modules/zod/v4/classic/schemas.d.ts +816 -0
- package/dist/node_modules/zod/v4/classic/schemas.js +1535 -0
- package/dist/node_modules/zod/v4/core/api.cjs +1269 -0
- package/dist/node_modules/zod/v4/core/api.d.cts +335 -0
- package/dist/node_modules/zod/v4/core/api.d.ts +335 -0
- package/dist/node_modules/zod/v4/core/api.js +1107 -0
- package/dist/node_modules/zod/v4/core/checks.cjs +561 -0
- package/dist/node_modules/zod/v4/core/checks.d.cts +294 -0
- package/dist/node_modules/zod/v4/core/checks.d.ts +294 -0
- package/dist/node_modules/zod/v4/core/checks.js +516 -0
- package/dist/node_modules/zod/v4/core/compile.cjs +1916 -0
- package/dist/node_modules/zod/v4/core/compile.d.cts +65 -0
- package/dist/node_modules/zod/v4/core/compile.d.ts +65 -0
- package/dist/node_modules/zod/v4/core/compile.js +1866 -0
- package/dist/node_modules/zod/v4/core/core.cjs +167 -0
- package/dist/node_modules/zod/v4/core/core.d.cts +82 -0
- package/dist/node_modules/zod/v4/core/core.d.ts +82 -0
- package/dist/node_modules/zod/v4/core/core.js +141 -0
- package/dist/node_modules/zod/v4/core/doc.cjs +61 -0
- package/dist/node_modules/zod/v4/core/doc.d.cts +16 -0
- package/dist/node_modules/zod/v4/core/doc.d.ts +16 -0
- package/dist/node_modules/zod/v4/core/doc.js +38 -0
- package/dist/node_modules/zod/v4/core/errors.cjs +317 -0
- package/dist/node_modules/zod/v4/core/errors.d.cts +225 -0
- package/dist/node_modules/zod/v4/core/errors.d.ts +225 -0
- package/dist/node_modules/zod/v4/core/errors.js +267 -0
- package/dist/node_modules/zod/v4/core/index.cjs +70 -0
- package/dist/node_modules/zod/v4/core/index.d.cts +19 -0
- package/dist/node_modules/zod/v4/core/index.d.ts +19 -0
- package/dist/node_modules/zod/v4/core/index.js +19 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.cjs +122 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.cts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.d.ts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-generator.js +99 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.cjs +929 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.cts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.d.ts +65 -0
- package/dist/node_modules/zod/v4/core/json-schema-processors.js +843 -0
- package/dist/node_modules/zod/v4/core/json-schema.cjs +21 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.cts +89 -0
- package/dist/node_modules/zod/v4/core/json-schema.d.ts +89 -0
- package/dist/node_modules/zod/v4/core/json-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/memoizer.cjs +360 -0
- package/dist/node_modules/zod/v4/core/memoizer.d.cts +15 -0
- package/dist/node_modules/zod/v4/core/memoizer.d.ts +15 -0
- package/dist/node_modules/zod/v4/core/memoizer.js +311 -0
- package/dist/node_modules/zod/v4/core/package.json +7 -0
- package/dist/node_modules/zod/v4/core/parse.cjs +233 -0
- package/dist/node_modules/zod/v4/core/parse.d.cts +52 -0
- package/dist/node_modules/zod/v4/core/parse.d.ts +52 -0
- package/dist/node_modules/zod/v4/core/parse.js +175 -0
- package/dist/node_modules/zod/v4/core/regexes.cjs +209 -0
- package/dist/node_modules/zod/v4/core/regexes.d.cts +90 -0
- package/dist/node_modules/zod/v4/core/regexes.d.ts +90 -0
- package/dist/node_modules/zod/v4/core/regexes.js +156 -0
- package/dist/node_modules/zod/v4/core/registries.cjs +75 -0
- package/dist/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/dist/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/dist/node_modules/zod/v4/core/registries.js +51 -0
- package/dist/node_modules/zod/v4/core/schemas.cjs +2699 -0
- package/dist/node_modules/zod/v4/core/schemas.d.cts +1275 -0
- package/dist/node_modules/zod/v4/core/schemas.d.ts +1275 -0
- package/dist/node_modules/zod/v4/core/schemas.js +2636 -0
- package/dist/node_modules/zod/v4/core/standard-schema.cjs +21 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.cts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.d.ts +126 -0
- package/dist/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.cjs +681 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.cts +154 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.d.ts +154 -0
- package/dist/node_modules/zod/v4/core/to-json-schema.js +651 -0
- package/dist/node_modules/zod/v4/core/util.cjs +964 -0
- package/dist/node_modules/zod/v4/core/util.d.cts +280 -0
- package/dist/node_modules/zod/v4/core/util.d.ts +280 -0
- package/dist/node_modules/zod/v4/core/util.js +873 -0
- package/dist/node_modules/zod/v4/core/versions.cjs +27 -0
- package/dist/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/dist/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/dist/node_modules/zod/v4/core/versions.js +5 -0
- package/dist/node_modules/zod/v4/core/visit.cjs +214 -0
- package/dist/node_modules/zod/v4/core/visit.d.cts +30 -0
- package/dist/node_modules/zod/v4/core/visit.d.ts +30 -0
- package/dist/node_modules/zod/v4/core/visit.js +169 -0
- package/dist/node_modules/zod/v4/index.cjs +51 -0
- package/dist/node_modules/zod/v4/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/index.js +4 -0
- package/dist/node_modules/zod/v4/locales/ar.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/ar.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ar.js +111 -0
- package/dist/node_modules/zod/v4/locales/az.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/az.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/az.js +110 -0
- package/dist/node_modules/zod/v4/locales/be.cjs +195 -0
- package/dist/node_modules/zod/v4/locales/be.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/be.js +168 -0
- package/dist/node_modules/zod/v4/locales/bg.cjs +152 -0
- package/dist/node_modules/zod/v4/locales/bg.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/bg.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/bg.js +125 -0
- package/dist/node_modules/zod/v4/locales/bn.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/bn.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/bn.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/bn.js +113 -0
- package/dist/node_modules/zod/v4/locales/ca.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/ca.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ca.js +112 -0
- package/dist/node_modules/zod/v4/locales/ckb.cjs +160 -0
- package/dist/node_modules/zod/v4/locales/ckb.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ckb.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ckb.js +133 -0
- package/dist/node_modules/zod/v4/locales/cs.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/cs.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/cs.js +116 -0
- package/dist/node_modules/zod/v4/locales/da.cjs +147 -0
- package/dist/node_modules/zod/v4/locales/da.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/da.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/da.js +120 -0
- package/dist/node_modules/zod/v4/locales/de.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/de.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/de.js +113 -0
- package/dist/node_modules/zod/v4/locales/el.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/el.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/el.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/el.js +112 -0
- package/dist/node_modules/zod/v4/locales/en.cjs +152 -0
- package/dist/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/en.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/en.js +125 -0
- package/dist/node_modules/zod/v4/locales/eo.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/eo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/eo.js +114 -0
- package/dist/node_modules/zod/v4/locales/es.cjs +163 -0
- package/dist/node_modules/zod/v4/locales/es.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/es.js +136 -0
- package/dist/node_modules/zod/v4/locales/fa.cjs +146 -0
- package/dist/node_modules/zod/v4/locales/fa.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fa.js +119 -0
- package/dist/node_modules/zod/v4/locales/fi.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/fi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fi.js +117 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr-CA.js +112 -0
- package/dist/node_modules/zod/v4/locales/fr.cjs +156 -0
- package/dist/node_modules/zod/v4/locales/fr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/fr.js +129 -0
- package/dist/node_modules/zod/v4/locales/gu.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/gu.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/gu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/gu.js +113 -0
- package/dist/node_modules/zod/v4/locales/he.cjs +248 -0
- package/dist/node_modules/zod/v4/locales/he.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/he.js +221 -0
- package/dist/node_modules/zod/v4/locales/hi.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/hi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hi.js +111 -0
- package/dist/node_modules/zod/v4/locales/hr.cjs +153 -0
- package/dist/node_modules/zod/v4/locales/hr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hr.js +126 -0
- package/dist/node_modules/zod/v4/locales/hu.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/hu.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hu.js +113 -0
- package/dist/node_modules/zod/v4/locales/hy.cjs +185 -0
- package/dist/node_modules/zod/v4/locales/hy.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/hy.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/hy.js +158 -0
- package/dist/node_modules/zod/v4/locales/id.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/id.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/id.js +111 -0
- package/dist/node_modules/zod/v4/locales/index.cjs +152 -0
- package/dist/node_modules/zod/v4/locales/index.d.cts +63 -0
- package/dist/node_modules/zod/v4/locales/index.d.ts +63 -0
- package/dist/node_modules/zod/v4/locales/index.js +63 -0
- package/dist/node_modules/zod/v4/locales/is.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/is.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/is.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/is.js +114 -0
- package/dist/node_modules/zod/v4/locales/it.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/it.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/it.js +113 -0
- package/dist/node_modules/zod/v4/locales/ja.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/ja.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ja.js +112 -0
- package/dist/node_modules/zod/v4/locales/ka.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/ka.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ka.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ka.js +117 -0
- package/dist/node_modules/zod/v4/locales/kh.cjs +12 -0
- package/dist/node_modules/zod/v4/locales/kh.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/kh.js +5 -0
- package/dist/node_modules/zod/v4/locales/km.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/km.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/km.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/km.js +115 -0
- package/dist/node_modules/zod/v4/locales/kn.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/kn.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/kn.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/kn.js +116 -0
- package/dist/node_modules/zod/v4/locales/ko.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/ko.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ko.js +116 -0
- package/dist/node_modules/zod/v4/locales/lt.cjs +234 -0
- package/dist/node_modules/zod/v4/locales/lt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/lt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/lt.js +207 -0
- package/dist/node_modules/zod/v4/locales/mk.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/mk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/mk.js +114 -0
- package/dist/node_modules/zod/v4/locales/ms.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/ms.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ms.js +112 -0
- package/dist/node_modules/zod/v4/locales/ne.cjs +138 -0
- package/dist/node_modules/zod/v4/locales/ne.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ne.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ne.js +111 -0
- package/dist/node_modules/zod/v4/locales/nl.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/nl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nl.js +115 -0
- package/dist/node_modules/zod/v4/locales/nn.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/nn.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/nn.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/nn.js +113 -0
- package/dist/node_modules/zod/v4/locales/no.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/no.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/no.js +113 -0
- package/dist/node_modules/zod/v4/locales/ota.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/ota.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ota.js +114 -0
- package/dist/node_modules/zod/v4/locales/package.json +7 -0
- package/dist/node_modules/zod/v4/locales/pl.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/pl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pl.js +114 -0
- package/dist/node_modules/zod/v4/locales/ps.cjs +146 -0
- package/dist/node_modules/zod/v4/locales/ps.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ps.js +119 -0
- package/dist/node_modules/zod/v4/locales/pt-BR.cjs +170 -0
- package/dist/node_modules/zod/v4/locales/pt-BR.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pt-BR.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt-BR.js +143 -0
- package/dist/node_modules/zod/v4/locales/pt.cjs +169 -0
- package/dist/node_modules/zod/v4/locales/pt.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/pt.js +142 -0
- package/dist/node_modules/zod/v4/locales/ro.cjs +149 -0
- package/dist/node_modules/zod/v4/locales/ro.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ro.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ro.js +122 -0
- package/dist/node_modules/zod/v4/locales/ru.cjs +195 -0
- package/dist/node_modules/zod/v4/locales/ru.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ru.js +168 -0
- package/dist/node_modules/zod/v4/locales/sk.cjs +143 -0
- package/dist/node_modules/zod/v4/locales/sk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sk.js +116 -0
- package/dist/node_modules/zod/v4/locales/sl.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/sl.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sl.js +114 -0
- package/dist/node_modules/zod/v4/locales/sv.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/sv.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/sv.js +115 -0
- package/dist/node_modules/zod/v4/locales/ta.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/ta.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ta.js +115 -0
- package/dist/node_modules/zod/v4/locales/tg.cjs +144 -0
- package/dist/node_modules/zod/v4/locales/tg.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tg.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/tg.js +117 -0
- package/dist/node_modules/zod/v4/locales/th.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/th.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/th.js +115 -0
- package/dist/node_modules/zod/v4/locales/tk.cjs +134 -0
- package/dist/node_modules/zod/v4/locales/tk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/tk.js +107 -0
- package/dist/node_modules/zod/v4/locales/tr.cjs +137 -0
- package/dist/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/tr.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/tr.js +110 -0
- package/dist/node_modules/zod/v4/locales/ua.cjs +12 -0
- package/dist/node_modules/zod/v4/locales/ua.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.d.ts +5 -0
- package/dist/node_modules/zod/v4/locales/ua.js +5 -0
- package/dist/node_modules/zod/v4/locales/uk.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/uk.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uk.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uk.js +113 -0
- package/dist/node_modules/zod/v4/locales/ur.cjs +142 -0
- package/dist/node_modules/zod/v4/locales/ur.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/ur.js +115 -0
- package/dist/node_modules/zod/v4/locales/uz.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/uz.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/uz.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/uz.js +113 -0
- package/dist/node_modules/zod/v4/locales/vi.cjs +140 -0
- package/dist/node_modules/zod/v4/locales/vi.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/vi.js +113 -0
- package/dist/node_modules/zod/v4/locales/yo.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/yo.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/yo.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/yo.js +112 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.cjs +141 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-CN.js +114 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.cjs +139 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.cts +5 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/dist/node_modules/zod/v4/locales/zh-TW.js +112 -0
- package/dist/node_modules/zod/v4/mini/checks.cjs +54 -0
- package/dist/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/checks.js +1 -0
- package/dist/node_modules/zod/v4/mini/coerce.cjs +71 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/dist/node_modules/zod/v4/mini/coerce.js +22 -0
- package/dist/node_modules/zod/v4/mini/deep-partial.cjs +58 -0
- package/dist/node_modules/zod/v4/mini/deep-partial.d.cts +14 -0
- package/dist/node_modules/zod/v4/mini/deep-partial.d.ts +14 -0
- package/dist/node_modules/zod/v4/mini/deep-partial.js +13 -0
- package/dist/node_modules/zod/v4/mini/external.cjs +95 -0
- package/dist/node_modules/zod/v4/mini/external.d.cts +16 -0
- package/dist/node_modules/zod/v4/mini/external.d.ts +16 -0
- package/dist/node_modules/zod/v4/mini/external.js +16 -0
- package/dist/node_modules/zod/v4/mini/in-out.cjs +82 -0
- package/dist/node_modules/zod/v4/mini/in-out.d.cts +8 -0
- package/dist/node_modules/zod/v4/mini/in-out.d.ts +8 -0
- package/dist/node_modules/zod/v4/mini/in-out.js +36 -0
- package/dist/node_modules/zod/v4/mini/index.cjs +51 -0
- package/dist/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/dist/node_modules/zod/v4/mini/index.js +3 -0
- package/dist/node_modules/zod/v4/mini/iso.cjs +83 -0
- package/dist/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/dist/node_modules/zod/v4/mini/iso.js +34 -0
- package/dist/node_modules/zod/v4/mini/package.json +7 -0
- package/dist/node_modules/zod/v4/mini/parse.cjs +37 -0
- package/dist/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/dist/node_modules/zod/v4/mini/parse.js +1 -0
- package/dist/node_modules/zod/v4/mini/schemas.cjs +1147 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.cts +480 -0
- package/dist/node_modules/zod/v4/mini/schemas.d.ts +480 -0
- package/dist/node_modules/zod/v4/mini/schemas.js +1002 -0
- package/dist/node_modules/zod/v4/package.json +7 -0
- package/dist/node_modules/zod/v4-mini/index.cjs +51 -0
- package/dist/node_modules/zod/v4-mini/index.d.cts +3 -0
- package/dist/node_modules/zod/v4-mini/index.d.ts +3 -0
- package/dist/node_modules/zod/v4-mini/index.js +3 -0
- package/dist/node_modules/zod/v4-mini/package.json +7 -0
- package/package.json +17 -7
package/README.md
CHANGED
|
@@ -12,6 +12,11 @@ Requires Node.js 24 or newer. If `node --version` reports an older major,
|
|
|
12
12
|
install Node 24 with your existing Node version manager, then run
|
|
13
13
|
`litmus setup-check` before starting an assessment.
|
|
14
14
|
|
|
15
|
+
The npm package can install on Node.js 18 or newer so `litmus connect` can
|
|
16
|
+
offer an upgrade from an interactive terminal. Answer `y` to download a
|
|
17
|
+
supported Node.js into your home directory and continue the same connection.
|
|
18
|
+
Your existing Node.js installation stays in place.
|
|
19
|
+
|
|
15
20
|
### Permission denied while installing or upgrading (macOS / Linux)
|
|
16
21
|
|
|
17
22
|
If npm reports `EACCES` while replacing an existing installation (for example
|
package/dist/index.js
CHANGED
|
@@ -1,12 +1,17 @@
|
|
|
1
1
|
#!/usr/bin/env node
|
|
2
2
|
import { checkNodeVersion } from "./lib/node-version.js";
|
|
3
|
-
// Keep the runtime check ahead of Commander and every command import
|
|
4
|
-
//
|
|
5
|
-
// gets an actionable message instead of an ESM loader failure.
|
|
3
|
+
// Keep the runtime check ahead of Commander and every command import so
|
|
4
|
+
// connecting from an older Node can offer recovery before loading the CLI.
|
|
6
5
|
const node = checkNodeVersion();
|
|
7
6
|
if (node.status === "fail") {
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
if (process.argv[2] === "connect") {
|
|
8
|
+
const { connectWithSupportedNode } = await import("./lib/connect-node-upgrade.js");
|
|
9
|
+
process.exitCode = await connectWithSupportedNode(process.argv.slice(1));
|
|
10
|
+
}
|
|
11
|
+
else {
|
|
12
|
+
console.error(node.detail);
|
|
13
|
+
process.exitCode = 1;
|
|
14
|
+
}
|
|
10
15
|
}
|
|
11
16
|
else {
|
|
12
17
|
await import("./program.js");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAA;AAExD,wEAAwE;AACxE,2EAA2E;AAC3E,MAAM,IAAI,GAAG,gBAAgB,EAAE,CAAA;AAC/B,IAAI,IAAI,CAAC,MAAM,KAAK,MAAM,EAAE,CAAC;IAC3B,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC,KAAK,SAAS,EAAE,CAAC;QAClC,MAAM,EAAE,wBAAwB,EAAE,GAAG,MAAM,MAAM,CAAC,+BAA+B,CAAC,CAAA;QAClF,OAAO,CAAC,QAAQ,GAAG,MAAM,wBAAwB,CAAC,OAAO,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,CAAA;IAC1E,CAAC;SAAM,CAAC;QACN,OAAO,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,CAAA;QAC1B,OAAO,CAAC,QAAQ,GAAG,CAAC,CAAA;IACtB,CAAC;AACH,CAAC;KAAM,CAAC;IACN,MAAM,MAAM,CAAC,cAAc,CAAC,CAAA;AAC9B,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect-node-upgrade.d.ts","sourceRoot":"","sources":["../../src/lib/connect-node-upgrade.ts"],"names":[],"mappings":"AA6FA,wBAAsB,wBAAwB,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CAyB9E"}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
import { spawnSync } from "node:child_process";
|
|
2
|
+
import { createHash } from "node:crypto";
|
|
3
|
+
import { createReadStream, createWriteStream } from "node:fs";
|
|
4
|
+
import { mkdir, mkdtemp, rename, rm } from "node:fs/promises";
|
|
5
|
+
import { get } from "node:https";
|
|
6
|
+
import { homedir } from "node:os";
|
|
7
|
+
import { dirname, join } from "node:path";
|
|
8
|
+
import { createInterface } from "node:readline";
|
|
9
|
+
import { pipeline } from "node:stream/promises";
|
|
10
|
+
import { NODE_MIN_VERSION } from "./node-version.js";
|
|
11
|
+
// Pin the runtime and hashes together from the official Node release manifest.
|
|
12
|
+
const version = "v24.22.3";
|
|
13
|
+
const checksums = {
|
|
14
|
+
"darwin-arm64": "ff6e17d4874b76d272212b908cc020d6e815fba5a6c7eaaa06add725840307fd",
|
|
15
|
+
"darwin-x64": "977614af0504c81045e7fd85596dbca0e5f951b96681516dadafedcca8c447f7",
|
|
16
|
+
"linux-arm64": "261af2af250dfd7e9f25cf151d1b2713a0adf8f10a9ad116c4947f68627affe8",
|
|
17
|
+
"linux-x64": "061ec3e3062115705b56b51fa9cc330ab50d34b6969387d4e4b1a50c6809acc2",
|
|
18
|
+
"win32-arm64": "172e320db179ce416fc012b96b9917dacfb442beb081de57c4deaed7b5a24644",
|
|
19
|
+
"win32-x64": "86fc4785327db5f5c7558dc6156c543b433c313e813a222e088086222ab4afa6",
|
|
20
|
+
};
|
|
21
|
+
function confirmUpgrade() {
|
|
22
|
+
return new Promise(resolve => {
|
|
23
|
+
const prompt = createInterface({ input: process.stdin, output: process.stderr, terminal: true });
|
|
24
|
+
prompt.once("close", () => resolve(false));
|
|
25
|
+
prompt.once("SIGINT", () => prompt.close());
|
|
26
|
+
prompt.question("Set up Node.js for Litmus and continue? [y/N] ", answer => {
|
|
27
|
+
resolve(/^y(es)?$/i.test(answer.trim()));
|
|
28
|
+
prompt.close();
|
|
29
|
+
});
|
|
30
|
+
});
|
|
31
|
+
}
|
|
32
|
+
async function downloadRuntime(asset, destination, checksum) {
|
|
33
|
+
const response = await new Promise((resolve, reject) => {
|
|
34
|
+
const request = get(`https://nodejs.org/dist/${version}/${asset}`, resolve);
|
|
35
|
+
request.once("error", reject);
|
|
36
|
+
request.setTimeout(30000, () => request.destroy(new Error("Node.js download timed out")));
|
|
37
|
+
});
|
|
38
|
+
if (response.statusCode !== 200) {
|
|
39
|
+
response.destroy();
|
|
40
|
+
throw new Error("Node.js download failed");
|
|
41
|
+
}
|
|
42
|
+
await pipeline(response, createWriteStream(destination, { mode: 0o600 }));
|
|
43
|
+
const hash = createHash("sha256");
|
|
44
|
+
for await (const chunk of createReadStream(destination))
|
|
45
|
+
hash.update(chunk);
|
|
46
|
+
if (hash.digest("hex") !== checksum)
|
|
47
|
+
throw new Error("Node.js download failed verification");
|
|
48
|
+
}
|
|
49
|
+
function isPinnedRuntime(binary) {
|
|
50
|
+
const result = spawnSync(binary, ["--version"], { encoding: "utf8", timeout: 5000, windowsHide: true });
|
|
51
|
+
return result.status === 0 && result.stdout.trim() === version;
|
|
52
|
+
}
|
|
53
|
+
async function installRuntime(platform, checksum) {
|
|
54
|
+
const windows = process.platform === "win32";
|
|
55
|
+
const release = `node-${version}-${platform}`;
|
|
56
|
+
const binaryPath = windows ? "node.exe" : "bin/node";
|
|
57
|
+
const root = join(homedir(), ".litmus", "node");
|
|
58
|
+
const install = join(root, release);
|
|
59
|
+
const binary = join(install, binaryPath);
|
|
60
|
+
if (isPinnedRuntime(binary))
|
|
61
|
+
return binary;
|
|
62
|
+
console.error("Downloading Node.js for Litmus…");
|
|
63
|
+
await mkdir(root, { recursive: true, mode: 0o700 });
|
|
64
|
+
const stage = await mkdtemp(join(root, ".download-"));
|
|
65
|
+
try {
|
|
66
|
+
const candidate = join(stage, release);
|
|
67
|
+
if (windows) {
|
|
68
|
+
await mkdir(candidate);
|
|
69
|
+
await downloadRuntime(`win-${process.arch}/node.exe`, join(candidate, binaryPath), checksum);
|
|
70
|
+
}
|
|
71
|
+
else {
|
|
72
|
+
const archive = join(stage, "node.tar.gz");
|
|
73
|
+
await downloadRuntime(`${release}.tar.gz`, archive, checksum);
|
|
74
|
+
const extract = spawnSync("tar", ["-xzf", archive, "-C", stage, `${release}/${binaryPath}`]);
|
|
75
|
+
if (extract.status !== 0)
|
|
76
|
+
throw new Error("Could not extract Node.js");
|
|
77
|
+
}
|
|
78
|
+
const stagedBinary = join(candidate, binaryPath);
|
|
79
|
+
if (!isPinnedRuntime(stagedBinary))
|
|
80
|
+
throw new Error("Could not start Node.js");
|
|
81
|
+
await mkdir(dirname(binary), { recursive: true });
|
|
82
|
+
try {
|
|
83
|
+
await rename(stagedBinary, binary);
|
|
84
|
+
}
|
|
85
|
+
catch (error) {
|
|
86
|
+
// A concurrent connect may have installed the same verified runtime.
|
|
87
|
+
if (!isPinnedRuntime(binary))
|
|
88
|
+
throw error;
|
|
89
|
+
}
|
|
90
|
+
return binary;
|
|
91
|
+
}
|
|
92
|
+
finally {
|
|
93
|
+
await rm(stage, { recursive: true, force: true });
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
export async function connectWithSupportedNode(args) {
|
|
97
|
+
console.error(`This terminal is using Node.js ${process.version.slice(1)}. Litmus needs Node.js ${NODE_MIN_VERSION} or newer to connect.`);
|
|
98
|
+
const platform = `${process.platform}-${process.arch}`;
|
|
99
|
+
const checksum = checksums[platform];
|
|
100
|
+
const manual = `Install Node.js ${NODE_MIN_VERSION} or newer from https://nodejs.org, then run the same connect command again.`;
|
|
101
|
+
if (!process.stdin.isTTY || !process.stderr.isTTY || !checksum) {
|
|
102
|
+
console.error(manual);
|
|
103
|
+
return 1;
|
|
104
|
+
}
|
|
105
|
+
console.error("Litmus can download a newer Node.js just for this connection and future Litmus connections.");
|
|
106
|
+
if (!await confirmUpgrade()) {
|
|
107
|
+
console.error(manual);
|
|
108
|
+
return 1;
|
|
109
|
+
}
|
|
110
|
+
try {
|
|
111
|
+
const binary = await installRuntime(platform, checksum);
|
|
112
|
+
const result = spawnSync(binary, args, { stdio: "inherit" });
|
|
113
|
+
if (result.error)
|
|
114
|
+
throw result.error;
|
|
115
|
+
return result.status ?? 1;
|
|
116
|
+
}
|
|
117
|
+
catch {
|
|
118
|
+
console.error(`Litmus couldn't set up its own Node.js. ${manual}`);
|
|
119
|
+
return 1;
|
|
120
|
+
}
|
|
121
|
+
}
|
|
122
|
+
//# sourceMappingURL=connect-node-upgrade.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connect-node-upgrade.js","sourceRoot":"","sources":["../../src/lib/connect-node-upgrade.ts"],"names":[],"mappings":"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"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) Denis Malinochkin
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
# @nodelib/fs.scandir
|
|
2
|
+
|
|
3
|
+
> List files and directories inside the specified directory.
|
|
4
|
+
|
|
5
|
+
## :bulb: Highlights
|
|
6
|
+
|
|
7
|
+
The package is aimed at obtaining information about entries in the directory.
|
|
8
|
+
|
|
9
|
+
* :moneybag: Returns useful information: `name`, `path`, `dirent` and `stats` (optional).
|
|
10
|
+
* :gear: On Node.js 10.10+ uses the mechanism without additional calls to determine the entry type. See [`old` and `modern` mode](#old-and-modern-mode).
|
|
11
|
+
* :link: Can safely work with broken symbolic links.
|
|
12
|
+
|
|
13
|
+
## Install
|
|
14
|
+
|
|
15
|
+
```console
|
|
16
|
+
npm install @nodelib/fs.scandir
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Usage
|
|
20
|
+
|
|
21
|
+
```ts
|
|
22
|
+
import * as fsScandir from '@nodelib/fs.scandir';
|
|
23
|
+
|
|
24
|
+
fsScandir.scandir('path', (error, stats) => { /* … */ });
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## API
|
|
28
|
+
|
|
29
|
+
### .scandir(path, [optionsOrSettings], callback)
|
|
30
|
+
|
|
31
|
+
Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path with standard callback-style.
|
|
32
|
+
|
|
33
|
+
```ts
|
|
34
|
+
fsScandir.scandir('path', (error, entries) => { /* … */ });
|
|
35
|
+
fsScandir.scandir('path', {}, (error, entries) => { /* … */ });
|
|
36
|
+
fsScandir.scandir('path', new fsScandir.Settings(), (error, entries) => { /* … */ });
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
### .scandirSync(path, [optionsOrSettings])
|
|
40
|
+
|
|
41
|
+
Returns an array of plain objects ([`Entry`](#entry)) with information about entry for provided path.
|
|
42
|
+
|
|
43
|
+
```ts
|
|
44
|
+
const entries = fsScandir.scandirSync('path');
|
|
45
|
+
const entries = fsScandir.scandirSync('path', {});
|
|
46
|
+
const entries = fsScandir.scandirSync(('path', new fsScandir.Settings());
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
#### path
|
|
50
|
+
|
|
51
|
+
* Required: `true`
|
|
52
|
+
* Type: `string | Buffer | URL`
|
|
53
|
+
|
|
54
|
+
A path to a file. If a URL is provided, it must use the `file:` protocol.
|
|
55
|
+
|
|
56
|
+
#### optionsOrSettings
|
|
57
|
+
|
|
58
|
+
* Required: `false`
|
|
59
|
+
* Type: `Options | Settings`
|
|
60
|
+
* Default: An instance of `Settings` class
|
|
61
|
+
|
|
62
|
+
An [`Options`](#options) object or an instance of [`Settings`](#settingsoptions) class.
|
|
63
|
+
|
|
64
|
+
> :book: When you pass a plain object, an instance of the `Settings` class will be created automatically. If you plan to call the method frequently, use a pre-created instance of the `Settings` class.
|
|
65
|
+
|
|
66
|
+
### Settings([options])
|
|
67
|
+
|
|
68
|
+
A class of full settings of the package.
|
|
69
|
+
|
|
70
|
+
```ts
|
|
71
|
+
const settings = new fsScandir.Settings({ followSymbolicLinks: false });
|
|
72
|
+
|
|
73
|
+
const entries = fsScandir.scandirSync('path', settings);
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Entry
|
|
77
|
+
|
|
78
|
+
* `name` — The name of the entry (`unknown.txt`).
|
|
79
|
+
* `path` — The path of the entry relative to call directory (`root/unknown.txt`).
|
|
80
|
+
* `dirent` — An instance of [`fs.Dirent`](./src/types/index.ts) class. On Node.js below 10.10 will be emulated by [`DirentFromStats`](./src/utils/fs.ts) class.
|
|
81
|
+
* `stats` (optional) — An instance of `fs.Stats` class.
|
|
82
|
+
|
|
83
|
+
For example, the `scandir` call for `tools` directory with one directory inside:
|
|
84
|
+
|
|
85
|
+
```ts
|
|
86
|
+
{
|
|
87
|
+
dirent: Dirent { name: 'typedoc', /* … */ },
|
|
88
|
+
name: 'typedoc',
|
|
89
|
+
path: 'tools/typedoc'
|
|
90
|
+
}
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Options
|
|
94
|
+
|
|
95
|
+
### stats
|
|
96
|
+
|
|
97
|
+
* Type: `boolean`
|
|
98
|
+
* Default: `false`
|
|
99
|
+
|
|
100
|
+
Adds an instance of `fs.Stats` class to the [`Entry`](#entry).
|
|
101
|
+
|
|
102
|
+
> :book: Always use `fs.readdir` without the `withFileTypes` option. ??TODO??
|
|
103
|
+
|
|
104
|
+
### followSymbolicLinks
|
|
105
|
+
|
|
106
|
+
* Type: `boolean`
|
|
107
|
+
* Default: `false`
|
|
108
|
+
|
|
109
|
+
Follow symbolic links or not. Call `fs.stat` on symbolic link if `true`.
|
|
110
|
+
|
|
111
|
+
### `throwErrorOnBrokenSymbolicLink`
|
|
112
|
+
|
|
113
|
+
* Type: `boolean`
|
|
114
|
+
* Default: `true`
|
|
115
|
+
|
|
116
|
+
Throw an error when symbolic link is broken if `true` or safely use `lstat` call if `false`.
|
|
117
|
+
|
|
118
|
+
### `pathSegmentSeparator`
|
|
119
|
+
|
|
120
|
+
* Type: `string`
|
|
121
|
+
* Default: `path.sep`
|
|
122
|
+
|
|
123
|
+
By default, this package uses the correct path separator for your OS (`\` on Windows, `/` on Unix-like systems). But you can set this option to any separator character(s) that you want to use instead.
|
|
124
|
+
|
|
125
|
+
### `fs`
|
|
126
|
+
|
|
127
|
+
* Type: [`FileSystemAdapter`](./src/adapters/fs.ts)
|
|
128
|
+
* Default: A default FS methods
|
|
129
|
+
|
|
130
|
+
By default, the built-in Node.js module (`fs`) is used to work with the file system. You can replace any method with your own.
|
|
131
|
+
|
|
132
|
+
```ts
|
|
133
|
+
interface FileSystemAdapter {
|
|
134
|
+
lstat?: typeof fs.lstat;
|
|
135
|
+
stat?: typeof fs.stat;
|
|
136
|
+
lstatSync?: typeof fs.lstatSync;
|
|
137
|
+
statSync?: typeof fs.statSync;
|
|
138
|
+
readdir?: typeof fs.readdir;
|
|
139
|
+
readdirSync?: typeof fs.readdirSync;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
const settings = new fsScandir.Settings({
|
|
143
|
+
fs: { lstat: fakeLstat }
|
|
144
|
+
});
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
## `old` and `modern` mode
|
|
148
|
+
|
|
149
|
+
This package has two modes that are used depending on the environment and parameters of use.
|
|
150
|
+
|
|
151
|
+
### old
|
|
152
|
+
|
|
153
|
+
* Node.js below `10.10` or when the `stats` option is enabled
|
|
154
|
+
|
|
155
|
+
When working in the old mode, the directory is read first (`fs.readdir`), then the type of entries is determined (`fs.lstat` and/or `fs.stat` for symbolic links).
|
|
156
|
+
|
|
157
|
+
### modern
|
|
158
|
+
|
|
159
|
+
* Node.js 10.10+ and the `stats` option is disabled
|
|
160
|
+
|
|
161
|
+
In the modern mode, reading the directory (`fs.readdir` with the `withFileTypes` option) is combined with obtaining information about its entries. An additional call for symbolic links (`fs.stat`) is still present.
|
|
162
|
+
|
|
163
|
+
This mode makes fewer calls to the file system. It's faster.
|
|
164
|
+
|
|
165
|
+
## Changelog
|
|
166
|
+
|
|
167
|
+
See the [Releases section of our GitHub project](https://github.com/nodelib/nodelib/releases) for changelog for each release version.
|
|
168
|
+
|
|
169
|
+
## License
|
|
170
|
+
|
|
171
|
+
This software is released under the terms of the MIT license.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type * as fsStat from '@nodelib/fs.stat';
|
|
2
|
+
import type { Dirent, ErrnoException } from '../types';
|
|
3
|
+
export interface ReaddirAsynchronousMethod {
|
|
4
|
+
(filepath: string, options: {
|
|
5
|
+
withFileTypes: true;
|
|
6
|
+
}, callback: (error: ErrnoException | null, files: Dirent[]) => void): void;
|
|
7
|
+
(filepath: string, callback: (error: ErrnoException | null, files: string[]) => void): void;
|
|
8
|
+
}
|
|
9
|
+
export interface ReaddirSynchronousMethod {
|
|
10
|
+
(filepath: string, options: {
|
|
11
|
+
withFileTypes: true;
|
|
12
|
+
}): Dirent[];
|
|
13
|
+
(filepath: string): string[];
|
|
14
|
+
}
|
|
15
|
+
export declare type FileSystemAdapter = fsStat.FileSystemAdapter & {
|
|
16
|
+
readdir: ReaddirAsynchronousMethod;
|
|
17
|
+
readdirSync: ReaddirSynchronousMethod;
|
|
18
|
+
};
|
|
19
|
+
export declare const FILE_SYSTEM_ADAPTER: FileSystemAdapter;
|
|
20
|
+
export declare function createFileSystemAdapter(fsMethods?: Partial<FileSystemAdapter>): FileSystemAdapter;
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createFileSystemAdapter = exports.FILE_SYSTEM_ADAPTER = void 0;
|
|
4
|
+
const fs = require("fs");
|
|
5
|
+
exports.FILE_SYSTEM_ADAPTER = {
|
|
6
|
+
lstat: fs.lstat,
|
|
7
|
+
stat: fs.stat,
|
|
8
|
+
lstatSync: fs.lstatSync,
|
|
9
|
+
statSync: fs.statSync,
|
|
10
|
+
readdir: fs.readdir,
|
|
11
|
+
readdirSync: fs.readdirSync
|
|
12
|
+
};
|
|
13
|
+
function createFileSystemAdapter(fsMethods) {
|
|
14
|
+
if (fsMethods === undefined) {
|
|
15
|
+
return exports.FILE_SYSTEM_ADAPTER;
|
|
16
|
+
}
|
|
17
|
+
return Object.assign(Object.assign({}, exports.FILE_SYSTEM_ADAPTER), fsMethods);
|
|
18
|
+
}
|
|
19
|
+
exports.createFileSystemAdapter = createFileSystemAdapter;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = void 0;
|
|
4
|
+
const NODE_PROCESS_VERSION_PARTS = process.versions.node.split('.');
|
|
5
|
+
if (NODE_PROCESS_VERSION_PARTS[0] === undefined || NODE_PROCESS_VERSION_PARTS[1] === undefined) {
|
|
6
|
+
throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);
|
|
7
|
+
}
|
|
8
|
+
const MAJOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[0], 10);
|
|
9
|
+
const MINOR_VERSION = Number.parseInt(NODE_PROCESS_VERSION_PARTS[1], 10);
|
|
10
|
+
const SUPPORTED_MAJOR_VERSION = 10;
|
|
11
|
+
const SUPPORTED_MINOR_VERSION = 10;
|
|
12
|
+
const IS_MATCHED_BY_MAJOR = MAJOR_VERSION > SUPPORTED_MAJOR_VERSION;
|
|
13
|
+
const IS_MATCHED_BY_MAJOR_AND_MINOR = MAJOR_VERSION === SUPPORTED_MAJOR_VERSION && MINOR_VERSION >= SUPPORTED_MINOR_VERSION;
|
|
14
|
+
/**
|
|
15
|
+
* IS `true` for Node.js 10.10 and greater.
|
|
16
|
+
*/
|
|
17
|
+
exports.IS_SUPPORT_READDIR_WITH_FILE_TYPES = IS_MATCHED_BY_MAJOR || IS_MATCHED_BY_MAJOR_AND_MINOR;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod } from './adapters/fs';
|
|
2
|
+
import * as async from './providers/async';
|
|
3
|
+
import Settings, { Options } from './settings';
|
|
4
|
+
import type { Dirent, Entry } from './types';
|
|
5
|
+
declare type AsyncCallback = async.AsyncCallback;
|
|
6
|
+
declare function scandir(path: string, callback: AsyncCallback): void;
|
|
7
|
+
declare function scandir(path: string, optionsOrSettings: Options | Settings, callback: AsyncCallback): void;
|
|
8
|
+
declare namespace scandir {
|
|
9
|
+
function __promisify__(path: string, optionsOrSettings?: Options | Settings): Promise<Entry[]>;
|
|
10
|
+
}
|
|
11
|
+
declare function scandirSync(path: string, optionsOrSettings?: Options | Settings): Entry[];
|
|
12
|
+
export { scandir, scandirSync, Settings, AsyncCallback, Dirent, Entry, FileSystemAdapter, ReaddirAsynchronousMethod, ReaddirSynchronousMethod, Options };
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Settings = exports.scandirSync = exports.scandir = void 0;
|
|
4
|
+
const async = require("./providers/async");
|
|
5
|
+
const sync = require("./providers/sync");
|
|
6
|
+
const settings_1 = require("./settings");
|
|
7
|
+
exports.Settings = settings_1.default;
|
|
8
|
+
function scandir(path, optionsOrSettingsOrCallback, callback) {
|
|
9
|
+
if (typeof optionsOrSettingsOrCallback === 'function') {
|
|
10
|
+
async.read(path, getSettings(), optionsOrSettingsOrCallback);
|
|
11
|
+
return;
|
|
12
|
+
}
|
|
13
|
+
async.read(path, getSettings(optionsOrSettingsOrCallback), callback);
|
|
14
|
+
}
|
|
15
|
+
exports.scandir = scandir;
|
|
16
|
+
function scandirSync(path, optionsOrSettings) {
|
|
17
|
+
const settings = getSettings(optionsOrSettings);
|
|
18
|
+
return sync.read(path, settings);
|
|
19
|
+
}
|
|
20
|
+
exports.scandirSync = scandirSync;
|
|
21
|
+
function getSettings(settingsOrOptions = {}) {
|
|
22
|
+
if (settingsOrOptions instanceof settings_1.default) {
|
|
23
|
+
return settingsOrOptions;
|
|
24
|
+
}
|
|
25
|
+
return new settings_1.default(settingsOrOptions);
|
|
26
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
/// <reference types="node" />
|
|
2
|
+
import type Settings from '../settings';
|
|
3
|
+
import type { Entry } from '../types';
|
|
4
|
+
export declare type AsyncCallback = (error: NodeJS.ErrnoException, entries: Entry[]) => void;
|
|
5
|
+
export declare function read(directory: string, settings: Settings, callback: AsyncCallback): void;
|
|
6
|
+
export declare function readdirWithFileTypes(directory: string, settings: Settings, callback: AsyncCallback): void;
|
|
7
|
+
export declare function readdir(directory: string, settings: Settings, callback: AsyncCallback): void;
|
|
@@ -0,0 +1,104 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.readdir = exports.readdirWithFileTypes = exports.read = void 0;
|
|
4
|
+
const fsStat = require("@nodelib/fs.stat");
|
|
5
|
+
const rpl = require("run-parallel");
|
|
6
|
+
const constants_1 = require("../constants");
|
|
7
|
+
const utils = require("../utils");
|
|
8
|
+
const common = require("./common");
|
|
9
|
+
function read(directory, settings, callback) {
|
|
10
|
+
if (!settings.stats && constants_1.IS_SUPPORT_READDIR_WITH_FILE_TYPES) {
|
|
11
|
+
readdirWithFileTypes(directory, settings, callback);
|
|
12
|
+
return;
|
|
13
|
+
}
|
|
14
|
+
readdir(directory, settings, callback);
|
|
15
|
+
}
|
|
16
|
+
exports.read = read;
|
|
17
|
+
function readdirWithFileTypes(directory, settings, callback) {
|
|
18
|
+
settings.fs.readdir(directory, { withFileTypes: true }, (readdirError, dirents) => {
|
|
19
|
+
if (readdirError !== null) {
|
|
20
|
+
callFailureCallback(callback, readdirError);
|
|
21
|
+
return;
|
|
22
|
+
}
|
|
23
|
+
const entries = dirents.map((dirent) => ({
|
|
24
|
+
dirent,
|
|
25
|
+
name: dirent.name,
|
|
26
|
+
path: common.joinPathSegments(directory, dirent.name, settings.pathSegmentSeparator)
|
|
27
|
+
}));
|
|
28
|
+
if (!settings.followSymbolicLinks) {
|
|
29
|
+
callSuccessCallback(callback, entries);
|
|
30
|
+
return;
|
|
31
|
+
}
|
|
32
|
+
const tasks = entries.map((entry) => makeRplTaskEntry(entry, settings));
|
|
33
|
+
rpl(tasks, (rplError, rplEntries) => {
|
|
34
|
+
if (rplError !== null) {
|
|
35
|
+
callFailureCallback(callback, rplError);
|
|
36
|
+
return;
|
|
37
|
+
}
|
|
38
|
+
callSuccessCallback(callback, rplEntries);
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
}
|
|
42
|
+
exports.readdirWithFileTypes = readdirWithFileTypes;
|
|
43
|
+
function makeRplTaskEntry(entry, settings) {
|
|
44
|
+
return (done) => {
|
|
45
|
+
if (!entry.dirent.isSymbolicLink()) {
|
|
46
|
+
done(null, entry);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
settings.fs.stat(entry.path, (statError, stats) => {
|
|
50
|
+
if (statError !== null) {
|
|
51
|
+
if (settings.throwErrorOnBrokenSymbolicLink) {
|
|
52
|
+
done(statError);
|
|
53
|
+
return;
|
|
54
|
+
}
|
|
55
|
+
done(null, entry);
|
|
56
|
+
return;
|
|
57
|
+
}
|
|
58
|
+
entry.dirent = utils.fs.createDirentFromStats(entry.name, stats);
|
|
59
|
+
done(null, entry);
|
|
60
|
+
});
|
|
61
|
+
};
|
|
62
|
+
}
|
|
63
|
+
function readdir(directory, settings, callback) {
|
|
64
|
+
settings.fs.readdir(directory, (readdirError, names) => {
|
|
65
|
+
if (readdirError !== null) {
|
|
66
|
+
callFailureCallback(callback, readdirError);
|
|
67
|
+
return;
|
|
68
|
+
}
|
|
69
|
+
const tasks = names.map((name) => {
|
|
70
|
+
const path = common.joinPathSegments(directory, name, settings.pathSegmentSeparator);
|
|
71
|
+
return (done) => {
|
|
72
|
+
fsStat.stat(path, settings.fsStatSettings, (error, stats) => {
|
|
73
|
+
if (error !== null) {
|
|
74
|
+
done(error);
|
|
75
|
+
return;
|
|
76
|
+
}
|
|
77
|
+
const entry = {
|
|
78
|
+
name,
|
|
79
|
+
path,
|
|
80
|
+
dirent: utils.fs.createDirentFromStats(name, stats)
|
|
81
|
+
};
|
|
82
|
+
if (settings.stats) {
|
|
83
|
+
entry.stats = stats;
|
|
84
|
+
}
|
|
85
|
+
done(null, entry);
|
|
86
|
+
});
|
|
87
|
+
};
|
|
88
|
+
});
|
|
89
|
+
rpl(tasks, (rplError, entries) => {
|
|
90
|
+
if (rplError !== null) {
|
|
91
|
+
callFailureCallback(callback, rplError);
|
|
92
|
+
return;
|
|
93
|
+
}
|
|
94
|
+
callSuccessCallback(callback, entries);
|
|
95
|
+
});
|
|
96
|
+
});
|
|
97
|
+
}
|
|
98
|
+
exports.readdir = readdir;
|
|
99
|
+
function callFailureCallback(callback, error) {
|
|
100
|
+
callback(error);
|
|
101
|
+
}
|
|
102
|
+
function callSuccessCallback(callback, result) {
|
|
103
|
+
callback(null, result);
|
|
104
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function joinPathSegments(a: string, b: string, separator: string): string;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.joinPathSegments = void 0;
|
|
4
|
+
function joinPathSegments(a, b, separator) {
|
|
5
|
+
/**
|
|
6
|
+
* The correct handling of cases when the first segment is a root (`/`, `C:/`) or UNC path (`//?/C:/`).
|
|
7
|
+
*/
|
|
8
|
+
if (a.endsWith(separator)) {
|
|
9
|
+
return a + b;
|
|
10
|
+
}
|
|
11
|
+
return a + separator + b;
|
|
12
|
+
}
|
|
13
|
+
exports.joinPathSegments = joinPathSegments;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import type Settings from '../settings';
|
|
2
|
+
import type { Entry } from '../types';
|
|
3
|
+
export declare function read(directory: string, settings: Settings): Entry[];
|
|
4
|
+
export declare function readdirWithFileTypes(directory: string, settings: Settings): Entry[];
|
|
5
|
+
export declare function readdir(directory: string, settings: Settings): Entry[];
|