@esportsplus/typescript 0.6.7 → 0.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/index.d.ts +1 -1
- package/build/index.js +1 -1
- package/build/types.d.ts +1 -1
- package/node_modules/.package-lock.json +446 -0
- package/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/node_modules/anymatch/LICENSE +15 -0
- package/node_modules/anymatch/README.md +87 -0
- package/node_modules/anymatch/index.d.ts +20 -0
- package/node_modules/anymatch/index.js +104 -0
- package/node_modules/anymatch/package.json +48 -0
- package/node_modules/array-union/index.d.ts +25 -0
- package/node_modules/array-union/index.js +5 -0
- package/node_modules/array-union/license +9 -0
- package/node_modules/array-union/package.json +38 -0
- package/node_modules/array-union/readme.md +34 -0
- package/node_modules/binary-extensions/binary-extensions.json +263 -0
- package/node_modules/binary-extensions/binary-extensions.json.d.ts +3 -0
- package/node_modules/binary-extensions/index.d.ts +14 -0
- package/node_modules/binary-extensions/index.js +1 -0
- package/node_modules/binary-extensions/license +10 -0
- package/node_modules/binary-extensions/package.json +40 -0
- package/node_modules/binary-extensions/readme.md +25 -0
- package/node_modules/braces/LICENSE +21 -0
- package/node_modules/braces/README.md +586 -0
- package/node_modules/braces/index.js +170 -0
- package/node_modules/braces/lib/compile.js +60 -0
- package/node_modules/braces/lib/constants.js +57 -0
- package/node_modules/braces/lib/expand.js +113 -0
- package/node_modules/braces/lib/parse.js +331 -0
- package/node_modules/braces/lib/stringify.js +32 -0
- package/node_modules/braces/lib/utils.js +122 -0
- package/node_modules/braces/package.json +77 -0
- package/node_modules/chokidar/LICENSE +21 -0
- package/node_modules/chokidar/README.md +308 -0
- package/node_modules/chokidar/index.js +973 -0
- package/node_modules/chokidar/lib/constants.js +66 -0
- package/node_modules/chokidar/lib/fsevents-handler.js +526 -0
- package/node_modules/chokidar/lib/nodefs-handler.js +654 -0
- package/node_modules/chokidar/package.json +70 -0
- package/node_modules/chokidar/types/index.d.ts +192 -0
- package/node_modules/commander/LICENSE +22 -0
- package/node_modules/commander/Readme.md +1129 -0
- package/node_modules/commander/esm.mjs +16 -0
- package/node_modules/commander/index.js +27 -0
- package/node_modules/commander/lib/argument.js +147 -0
- package/node_modules/commander/lib/command.js +2179 -0
- package/node_modules/commander/lib/error.js +45 -0
- package/node_modules/commander/lib/help.js +461 -0
- package/node_modules/commander/lib/option.js +326 -0
- package/node_modules/commander/lib/suggestSimilar.js +100 -0
- package/node_modules/commander/package-support.json +16 -0
- package/node_modules/commander/package.json +80 -0
- package/node_modules/commander/typings/index.d.ts +891 -0
- package/node_modules/dir-glob/index.js +75 -0
- package/node_modules/dir-glob/license +9 -0
- package/node_modules/dir-glob/package.json +38 -0
- package/node_modules/dir-glob/readme.md +76 -0
- package/node_modules/fast-glob/LICENSE +21 -0
- package/node_modules/fast-glob/README.md +830 -0
- package/node_modules/fast-glob/out/index.d.ts +40 -0
- package/node_modules/fast-glob/out/index.js +102 -0
- package/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/node_modules/fast-glob/out/providers/async.js +23 -0
- package/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/node_modules/fast-glob/out/providers/filters/entry.d.ts +16 -0
- package/node_modules/fast-glob/out/providers/filters/entry.js +63 -0
- package/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/node_modules/fast-glob/out/readers/async.js +35 -0
- package/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/node_modules/fast-glob/out/settings.js +59 -0
- package/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/node_modules/fast-glob/out/types/index.js +2 -0
- package/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/array.js +22 -0
- package/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/node_modules/fast-glob/out/utils/index.js +17 -0
- package/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/node_modules/fast-glob/out/utils/path.js +68 -0
- package/node_modules/fast-glob/out/utils/pattern.d.ts +47 -0
- package/node_modules/fast-glob/out/utils/pattern.js +188 -0
- package/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/node_modules/fast-glob/out/utils/string.js +11 -0
- package/node_modules/fast-glob/package.json +81 -0
- package/node_modules/fastq/.github/dependabot.yml +11 -0
- package/node_modules/fastq/.github/workflows/ci.yml +75 -0
- package/node_modules/fastq/LICENSE +13 -0
- package/node_modules/fastq/README.md +306 -0
- package/node_modules/fastq/bench.js +66 -0
- package/node_modules/fastq/example.js +14 -0
- package/node_modules/fastq/example.mjs +11 -0
- package/node_modules/fastq/index.d.ts +38 -0
- package/node_modules/fastq/package.json +53 -0
- package/node_modules/fastq/queue.js +311 -0
- package/node_modules/fastq/test/example.ts +83 -0
- package/node_modules/fastq/test/promise.js +248 -0
- package/node_modules/fastq/test/test.js +642 -0
- package/node_modules/fastq/test/tsconfig.json +11 -0
- package/node_modules/fill-range/LICENSE +21 -0
- package/node_modules/fill-range/README.md +237 -0
- package/node_modules/fill-range/index.js +248 -0
- package/node_modules/fill-range/package.json +74 -0
- package/node_modules/get-tsconfig/LICENSE +21 -0
- package/node_modules/get-tsconfig/README.md +235 -0
- package/node_modules/get-tsconfig/dist/index.cjs +7 -0
- package/node_modules/get-tsconfig/dist/index.d.cts +1439 -0
- package/node_modules/get-tsconfig/dist/index.d.mts +1439 -0
- package/node_modules/get-tsconfig/dist/index.mjs +7 -0
- package/node_modules/get-tsconfig/package.json +46 -0
- package/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/node_modules/glob-parent/LICENSE +15 -0
- package/node_modules/glob-parent/README.md +137 -0
- package/node_modules/glob-parent/index.js +42 -0
- package/node_modules/glob-parent/package.json +48 -0
- package/node_modules/globby/gitignore.js +120 -0
- package/node_modules/globby/index.d.ts +186 -0
- package/node_modules/globby/index.js +181 -0
- package/node_modules/globby/license +9 -0
- package/node_modules/globby/package.json +82 -0
- package/node_modules/globby/readme.md +170 -0
- package/node_modules/globby/stream-utils.js +46 -0
- package/node_modules/ignore/LICENSE-MIT +21 -0
- package/node_modules/ignore/README.md +412 -0
- package/node_modules/ignore/index.d.ts +61 -0
- package/node_modules/ignore/index.js +626 -0
- package/node_modules/ignore/legacy.js +545 -0
- package/node_modules/ignore/package.json +73 -0
- package/node_modules/is-binary-path/index.d.ts +17 -0
- package/node_modules/is-binary-path/index.js +7 -0
- package/node_modules/is-binary-path/license +9 -0
- package/node_modules/is-binary-path/package.json +40 -0
- package/node_modules/is-binary-path/readme.md +34 -0
- package/node_modules/is-extglob/LICENSE +21 -0
- package/node_modules/is-extglob/README.md +107 -0
- package/node_modules/is-extglob/index.js +20 -0
- package/node_modules/is-extglob/package.json +69 -0
- package/node_modules/is-glob/LICENSE +21 -0
- package/node_modules/is-glob/README.md +206 -0
- package/node_modules/is-glob/index.js +150 -0
- package/node_modules/is-glob/package.json +81 -0
- package/node_modules/is-number/LICENSE +21 -0
- package/node_modules/is-number/README.md +187 -0
- package/node_modules/is-number/index.js +18 -0
- package/node_modules/is-number/package.json +82 -0
- package/node_modules/merge2/LICENSE +21 -0
- package/node_modules/merge2/README.md +144 -0
- package/node_modules/merge2/index.js +144 -0
- package/node_modules/merge2/package.json +43 -0
- package/node_modules/micromatch/LICENSE +21 -0
- package/node_modules/micromatch/README.md +1017 -0
- package/node_modules/micromatch/index.js +467 -0
- package/node_modules/micromatch/package.json +101 -0
- package/node_modules/mylas/LICENSE +21 -0
- package/node_modules/mylas/README.md +39 -0
- package/node_modules/mylas/build/chunk-3EDNT3AM.js +1 -0
- package/node_modules/mylas/build/chunk-M3H36CX2.js +3 -0
- package/node_modules/mylas/build/index.d.ts +22 -0
- package/node_modules/mylas/build/index.js +1 -0
- package/node_modules/mylas/build/interfaces.d.ts +201 -0
- package/node_modules/mylas/build/register.d.ts +9 -0
- package/node_modules/mylas/build/register.js +1 -0
- package/node_modules/mylas/build/worker.js +1 -0
- package/node_modules/mylas/package.json +65 -0
- package/node_modules/normalize-path/LICENSE +21 -0
- package/node_modules/normalize-path/README.md +127 -0
- package/node_modules/normalize-path/index.js +35 -0
- package/node_modules/normalize-path/package.json +77 -0
- package/node_modules/path-type/index.d.ts +51 -0
- package/node_modules/path-type/index.js +43 -0
- package/node_modules/path-type/license +9 -0
- package/node_modules/path-type/package.json +45 -0
- package/node_modules/path-type/readme.md +72 -0
- package/node_modules/picomatch/CHANGELOG.md +136 -0
- package/node_modules/picomatch/LICENSE +21 -0
- package/node_modules/picomatch/README.md +708 -0
- package/node_modules/picomatch/index.js +3 -0
- package/node_modules/picomatch/lib/constants.js +179 -0
- package/node_modules/picomatch/lib/parse.js +1091 -0
- package/node_modules/picomatch/lib/picomatch.js +342 -0
- package/node_modules/picomatch/lib/scan.js +391 -0
- package/node_modules/picomatch/lib/utils.js +64 -0
- package/node_modules/picomatch/package.json +81 -0
- package/node_modules/plimit-lit/LICENSE +21 -0
- package/node_modules/plimit-lit/README.md +99 -0
- package/node_modules/plimit-lit/dist/index.d.ts +6 -0
- package/node_modules/plimit-lit/dist/plimit-lit.cjs +91 -0
- package/node_modules/plimit-lit/dist/plimit-lit.modern.js +91 -0
- package/node_modules/plimit-lit/dist/plimit-lit.module.js +91 -0
- package/node_modules/plimit-lit/package.json +55 -0
- package/node_modules/queue-lit/LICENSE +21 -0
- package/node_modules/queue-lit/README.md +93 -0
- package/node_modules/queue-lit/dist/index.d.ts +34 -0
- package/node_modules/queue-lit/dist/queue-lit.cjs +110 -0
- package/node_modules/queue-lit/dist/queue-lit.modern.js +110 -0
- package/node_modules/queue-lit/dist/queue-lit.module.js +110 -0
- package/node_modules/queue-lit/package.json +53 -0
- package/node_modules/queue-microtask/LICENSE +20 -0
- package/node_modules/queue-microtask/README.md +90 -0
- package/node_modules/queue-microtask/index.d.ts +2 -0
- package/node_modules/queue-microtask/index.js +9 -0
- package/node_modules/queue-microtask/package.json +55 -0
- package/node_modules/readdirp/LICENSE +21 -0
- package/node_modules/readdirp/README.md +122 -0
- package/node_modules/readdirp/index.d.ts +43 -0
- package/node_modules/readdirp/index.js +287 -0
- package/node_modules/readdirp/package.json +122 -0
- package/node_modules/resolve-pkg-maps/LICENSE +21 -0
- package/node_modules/resolve-pkg-maps/README.md +216 -0
- package/node_modules/resolve-pkg-maps/dist/index.cjs +1 -0
- package/node_modules/resolve-pkg-maps/dist/index.d.cts +11 -0
- package/node_modules/resolve-pkg-maps/dist/index.d.mts +11 -0
- package/node_modules/resolve-pkg-maps/dist/index.mjs +1 -0
- package/node_modules/resolve-pkg-maps/package.json +42 -0
- package/node_modules/reusify/.coveralls.yml +1 -0
- package/node_modules/reusify/.travis.yml +28 -0
- package/node_modules/reusify/LICENSE +22 -0
- package/node_modules/reusify/README.md +145 -0
- package/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/node_modules/reusify/benchmarks/fib.js +13 -0
- package/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/node_modules/reusify/package.json +45 -0
- package/node_modules/reusify/reusify.js +33 -0
- package/node_modules/reusify/test.js +66 -0
- package/node_modules/run-parallel/LICENSE +20 -0
- package/node_modules/run-parallel/README.md +85 -0
- package/node_modules/run-parallel/index.js +51 -0
- package/node_modules/run-parallel/package.json +58 -0
- package/node_modules/slash/index.d.ts +25 -0
- package/node_modules/slash/index.js +11 -0
- package/node_modules/slash/license +9 -0
- package/node_modules/slash/package.json +35 -0
- package/node_modules/slash/readme.md +44 -0
- package/node_modules/to-regex-range/LICENSE +21 -0
- package/node_modules/to-regex-range/README.md +305 -0
- package/node_modules/to-regex-range/index.js +288 -0
- package/node_modules/to-regex-range/package.json +88 -0
- package/node_modules/tsc-alias/LICENSE +21 -0
- package/node_modules/tsc-alias/README.md +184 -0
- package/node_modules/tsc-alias/dist/bin/index.d.ts +2 -0
- package/node_modules/tsc-alias/dist/bin/index.js +39 -0
- package/node_modules/tsc-alias/dist/bin/index.js.map +1 -0
- package/node_modules/tsc-alias/dist/helpers/config.d.ts +5 -0
- package/node_modules/tsc-alias/dist/helpers/config.js +181 -0
- package/node_modules/tsc-alias/dist/helpers/config.js.map +1 -0
- package/node_modules/tsc-alias/dist/helpers/index.d.ts +3 -0
- package/node_modules/tsc-alias/dist/helpers/index.js +20 -0
- package/node_modules/tsc-alias/dist/helpers/index.js.map +1 -0
- package/node_modules/tsc-alias/dist/helpers/path.d.ts +3 -0
- package/node_modules/tsc-alias/dist/helpers/path.js +73 -0
- package/node_modules/tsc-alias/dist/helpers/path.js.map +1 -0
- package/node_modules/tsc-alias/dist/helpers/replacers.d.ts +4 -0
- package/node_modules/tsc-alias/dist/helpers/replacers.js +150 -0
- package/node_modules/tsc-alias/dist/helpers/replacers.js.map +1 -0
- package/node_modules/tsc-alias/dist/index.d.ts +8 -0
- package/node_modules/tsc-alias/dist/index.js +74 -0
- package/node_modules/tsc-alias/dist/index.js.map +1 -0
- package/node_modules/tsc-alias/dist/interfaces.d.ts +87 -0
- package/node_modules/tsc-alias/dist/interfaces.js +3 -0
- package/node_modules/tsc-alias/dist/interfaces.js.map +1 -0
- package/node_modules/tsc-alias/dist/replacers/base-url.replacer.d.ts +2 -0
- package/node_modules/tsc-alias/dist/replacers/base-url.replacer.js +33 -0
- package/node_modules/tsc-alias/dist/replacers/base-url.replacer.js.map +1 -0
- package/node_modules/tsc-alias/dist/replacers/default.replacer.d.ts +2 -0
- package/node_modules/tsc-alias/dist/replacers/default.replacer.js +67 -0
- package/node_modules/tsc-alias/dist/replacers/default.replacer.js.map +1 -0
- package/node_modules/tsc-alias/dist/utils/import-path-resolver.d.ts +19 -0
- package/node_modules/tsc-alias/dist/utils/import-path-resolver.js +87 -0
- package/node_modules/tsc-alias/dist/utils/import-path-resolver.js.map +1 -0
- package/node_modules/tsc-alias/dist/utils/index.d.ts +4 -0
- package/node_modules/tsc-alias/dist/utils/index.js +21 -0
- package/node_modules/tsc-alias/dist/utils/index.js.map +1 -0
- package/node_modules/tsc-alias/dist/utils/output.d.ts +11 -0
- package/node_modules/tsc-alias/dist/utils/output.js +44 -0
- package/node_modules/tsc-alias/dist/utils/output.js.map +1 -0
- package/node_modules/tsc-alias/dist/utils/path-cache.d.ts +12 -0
- package/node_modules/tsc-alias/dist/utils/path-cache.js +74 -0
- package/node_modules/tsc-alias/dist/utils/path-cache.js.map +1 -0
- package/node_modules/tsc-alias/dist/utils/trie.d.ts +9 -0
- package/node_modules/tsc-alias/dist/utils/trie.js +81 -0
- package/node_modules/tsc-alias/dist/utils/trie.js.map +1 -0
- package/node_modules/tsc-alias/package.json +66 -0
- package/node_modules/typescript/LICENSE.txt +55 -0
- package/node_modules/typescript/README.md +50 -0
- package/node_modules/typescript/SECURITY.md +41 -0
- package/node_modules/typescript/ThirdPartyNoticeText.txt +193 -0
- package/node_modules/typescript/bin/tsc +2 -0
- package/node_modules/typescript/bin/tsserver +2 -0
- package/node_modules/typescript/lib/_tsc.js +132810 -0
- package/node_modules/typescript/lib/_tsserver.js +659 -0
- package/node_modules/typescript/lib/_typingsInstaller.js +222 -0
- package/node_modules/typescript/lib/cs/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/de/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/es/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/fr/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/it/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/ja/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/ko/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/lib.d.ts +22 -0
- package/node_modules/typescript/lib/lib.decorators.d.ts +384 -0
- package/node_modules/typescript/lib/lib.decorators.legacy.d.ts +22 -0
- package/node_modules/typescript/lib/lib.dom.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.dom.d.ts +29610 -0
- package/node_modules/typescript/lib/lib.dom.iterable.d.ts +493 -0
- package/node_modules/typescript/lib/lib.es2015.collection.d.ts +147 -0
- package/node_modules/typescript/lib/lib.es2015.core.d.ts +597 -0
- package/node_modules/typescript/lib/lib.es2015.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2015.generator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2015.iterable.d.ts +605 -0
- package/node_modules/typescript/lib/lib.es2015.promise.d.ts +81 -0
- package/node_modules/typescript/lib/lib.es2015.proxy.d.ts +128 -0
- package/node_modules/typescript/lib/lib.es2015.reflect.d.ts +144 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.d.ts +46 -0
- package/node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts +326 -0
- package/node_modules/typescript/lib/lib.es2016.array.include.d.ts +116 -0
- package/node_modules/typescript/lib/lib.es2016.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2016.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2016.intl.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.arraybuffer.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2017.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2017.date.d.ts +31 -0
- package/node_modules/typescript/lib/lib.es2017.full.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2017.intl.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2017.object.d.ts +49 -0
- package/node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts +135 -0
- package/node_modules/typescript/lib/lib.es2017.string.d.ts +45 -0
- package/node_modules/typescript/lib/lib.es2017.typedarrays.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts +77 -0
- package/node_modules/typescript/lib/lib.es2018.asynciterable.d.ts +53 -0
- package/node_modules/typescript/lib/lib.es2018.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2018.intl.d.ts +83 -0
- package/node_modules/typescript/lib/lib.es2018.promise.d.ts +30 -0
- package/node_modules/typescript/lib/lib.es2018.regexp.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.array.d.ts +79 -0
- package/node_modules/typescript/lib/lib.es2019.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2019.intl.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2019.object.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2019.string.d.ts +37 -0
- package/node_modules/typescript/lib/lib.es2019.symbol.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.bigint.d.ts +765 -0
- package/node_modules/typescript/lib/lib.es2020.d.ts +27 -0
- package/node_modules/typescript/lib/lib.es2020.date.d.ts +42 -0
- package/node_modules/typescript/lib/lib.es2020.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2020.intl.d.ts +474 -0
- package/node_modules/typescript/lib/lib.es2020.number.d.ts +28 -0
- package/node_modules/typescript/lib/lib.es2020.promise.d.ts +47 -0
- package/node_modules/typescript/lib/lib.es2020.sharedmemory.d.ts +99 -0
- package/node_modules/typescript/lib/lib.es2020.string.d.ts +44 -0
- package/node_modules/typescript/lib/lib.es2020.symbol.wellknown.d.ts +41 -0
- package/node_modules/typescript/lib/lib.es2021.d.ts +23 -0
- package/node_modules/typescript/lib/lib.es2021.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2021.intl.d.ts +166 -0
- package/node_modules/typescript/lib/lib.es2021.promise.d.ts +48 -0
- package/node_modules/typescript/lib/lib.es2021.string.d.ts +33 -0
- package/node_modules/typescript/lib/lib.es2021.weakref.d.ts +78 -0
- package/node_modules/typescript/lib/lib.es2022.array.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2022.error.d.ts +75 -0
- package/node_modules/typescript/lib/lib.es2022.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2022.intl.d.ts +121 -0
- package/node_modules/typescript/lib/lib.es2022.object.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2022.regexp.d.ts +39 -0
- package/node_modules/typescript/lib/lib.es2022.string.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2023.array.d.ts +924 -0
- package/node_modules/typescript/lib/lib.es2023.collection.d.ts +21 -0
- package/node_modules/typescript/lib/lib.es2023.d.ts +22 -0
- package/node_modules/typescript/lib/lib.es2023.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2023.intl.d.ts +56 -0
- package/node_modules/typescript/lib/lib.es2024.arraybuffer.d.ts +65 -0
- package/node_modules/typescript/lib/lib.es2024.collection.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.d.ts +26 -0
- package/node_modules/typescript/lib/lib.es2024.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.es2024.object.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es2024.promise.d.ts +35 -0
- package/node_modules/typescript/lib/lib.es2024.regexp.d.ts +25 -0
- package/node_modules/typescript/lib/lib.es2024.sharedmemory.d.ts +68 -0
- package/node_modules/typescript/lib/lib.es2024.string.d.ts +29 -0
- package/node_modules/typescript/lib/lib.es5.d.ts +4594 -0
- package/node_modules/typescript/lib/lib.es6.d.ts +23 -0
- package/node_modules/typescript/lib/lib.esnext.array.d.ts +35 -0
- package/node_modules/typescript/lib/lib.esnext.collection.d.ts +96 -0
- package/node_modules/typescript/lib/lib.esnext.d.ts +27 -0
- package/node_modules/typescript/lib/lib.esnext.decorators.d.ts +28 -0
- package/node_modules/typescript/lib/lib.esnext.disposable.d.ts +193 -0
- package/node_modules/typescript/lib/lib.esnext.float16.d.ts +443 -0
- package/node_modules/typescript/lib/lib.esnext.full.d.ts +24 -0
- package/node_modules/typescript/lib/lib.esnext.intl.d.ts +21 -0
- package/node_modules/typescript/lib/lib.esnext.iterator.d.ts +148 -0
- package/node_modules/typescript/lib/lib.esnext.promise.d.ts +34 -0
- package/node_modules/typescript/lib/lib.scripthost.d.ts +322 -0
- package/node_modules/typescript/lib/lib.webworker.asynciterable.d.ts +41 -0
- package/node_modules/typescript/lib/lib.webworker.d.ts +9894 -0
- package/node_modules/typescript/lib/lib.webworker.importscripts.d.ts +23 -0
- package/node_modules/typescript/lib/lib.webworker.iterable.d.ts +287 -0
- package/node_modules/typescript/lib/pl/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/pt-br/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/ru/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/tr/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/tsc.js +8 -0
- package/node_modules/typescript/lib/tsserver.js +8 -0
- package/node_modules/typescript/lib/tsserverlibrary.d.ts +17 -0
- package/node_modules/typescript/lib/tsserverlibrary.js +21 -0
- package/node_modules/typescript/lib/typesMap.json +497 -0
- package/node_modules/typescript/lib/typescript.d.ts +11399 -0
- package/node_modules/typescript/lib/typescript.js +199120 -0
- package/node_modules/typescript/lib/typingsInstaller.js +8 -0
- package/node_modules/typescript/lib/watchGuard.js +53 -0
- package/node_modules/typescript/lib/zh-cn/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/lib/zh-tw/diagnosticMessages.generated.json +2105 -0
- package/node_modules/typescript/package.json +120 -0
- package/package.json +5 -4
- package/src/types.ts +1 -1
- package/tsconfig.base.json +6 -1
package/build/index.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types.js';
|
package/build/index.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export * from './types';
|
|
1
|
+
export * from './types.js';
|
package/build/types.d.ts
CHANGED
|
@@ -10,4 +10,4 @@ type Prettify<T> = {
|
|
|
10
10
|
type UnionRecord<U, V extends Record<string, unknown>> = Prettify<U & {
|
|
11
11
|
[K in keyof U]?: undefined;
|
|
12
12
|
} & V>;
|
|
13
|
-
export { DeepReadonly, Function, NeverAsync, NeverFunction, Prettify, UnionRecord };
|
|
13
|
+
export type { DeepReadonly, Function, NeverAsync, NeverFunction, Prettify, UnionRecord };
|
|
@@ -0,0 +1,446 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@esportsplus/typescript",
|
|
3
|
+
"version": "0.8.1",
|
|
4
|
+
"lockfileVersion": 3,
|
|
5
|
+
"requires": true,
|
|
6
|
+
"packages": {
|
|
7
|
+
"node_modules/@nodelib/fs.scandir": {
|
|
8
|
+
"version": "2.1.5",
|
|
9
|
+
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
|
|
10
|
+
"integrity": "sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g==",
|
|
11
|
+
"dependencies": {
|
|
12
|
+
"@nodelib/fs.stat": "2.0.5",
|
|
13
|
+
"run-parallel": "^1.1.9"
|
|
14
|
+
},
|
|
15
|
+
"engines": {
|
|
16
|
+
"node": ">= 8"
|
|
17
|
+
}
|
|
18
|
+
},
|
|
19
|
+
"node_modules/@nodelib/fs.stat": {
|
|
20
|
+
"version": "2.0.5",
|
|
21
|
+
"resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz",
|
|
22
|
+
"integrity": "sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A==",
|
|
23
|
+
"engines": {
|
|
24
|
+
"node": ">= 8"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"node_modules/@nodelib/fs.walk": {
|
|
28
|
+
"version": "1.2.8",
|
|
29
|
+
"resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz",
|
|
30
|
+
"integrity": "sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg==",
|
|
31
|
+
"dependencies": {
|
|
32
|
+
"@nodelib/fs.scandir": "2.1.5",
|
|
33
|
+
"fastq": "^1.6.0"
|
|
34
|
+
},
|
|
35
|
+
"engines": {
|
|
36
|
+
"node": ">= 8"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"node_modules/anymatch": {
|
|
40
|
+
"version": "3.1.3",
|
|
41
|
+
"resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.3.tgz",
|
|
42
|
+
"integrity": "sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==",
|
|
43
|
+
"dependencies": {
|
|
44
|
+
"normalize-path": "^3.0.0",
|
|
45
|
+
"picomatch": "^2.0.4"
|
|
46
|
+
},
|
|
47
|
+
"engines": {
|
|
48
|
+
"node": ">= 8"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"node_modules/array-union": {
|
|
52
|
+
"version": "2.1.0",
|
|
53
|
+
"resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz",
|
|
54
|
+
"integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==",
|
|
55
|
+
"engines": {
|
|
56
|
+
"node": ">=8"
|
|
57
|
+
}
|
|
58
|
+
},
|
|
59
|
+
"node_modules/binary-extensions": {
|
|
60
|
+
"version": "2.3.0",
|
|
61
|
+
"resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.3.0.tgz",
|
|
62
|
+
"integrity": "sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==",
|
|
63
|
+
"engines": {
|
|
64
|
+
"node": ">=8"
|
|
65
|
+
},
|
|
66
|
+
"funding": {
|
|
67
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"node_modules/braces": {
|
|
71
|
+
"version": "3.0.3",
|
|
72
|
+
"resolved": "https://registry.npmjs.org/braces/-/braces-3.0.3.tgz",
|
|
73
|
+
"integrity": "sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==",
|
|
74
|
+
"dependencies": {
|
|
75
|
+
"fill-range": "^7.1.1"
|
|
76
|
+
},
|
|
77
|
+
"engines": {
|
|
78
|
+
"node": ">=8"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"node_modules/chokidar": {
|
|
82
|
+
"version": "3.6.0",
|
|
83
|
+
"resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.6.0.tgz",
|
|
84
|
+
"integrity": "sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==",
|
|
85
|
+
"dependencies": {
|
|
86
|
+
"anymatch": "~3.1.2",
|
|
87
|
+
"braces": "~3.0.2",
|
|
88
|
+
"glob-parent": "~5.1.2",
|
|
89
|
+
"is-binary-path": "~2.1.0",
|
|
90
|
+
"is-glob": "~4.0.1",
|
|
91
|
+
"normalize-path": "~3.0.0",
|
|
92
|
+
"readdirp": "~3.6.0"
|
|
93
|
+
},
|
|
94
|
+
"engines": {
|
|
95
|
+
"node": ">= 8.10.0"
|
|
96
|
+
},
|
|
97
|
+
"funding": {
|
|
98
|
+
"url": "https://paulmillr.com/funding/"
|
|
99
|
+
},
|
|
100
|
+
"optionalDependencies": {
|
|
101
|
+
"fsevents": "~2.3.2"
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"node_modules/commander": {
|
|
105
|
+
"version": "9.5.0",
|
|
106
|
+
"resolved": "https://registry.npmjs.org/commander/-/commander-9.5.0.tgz",
|
|
107
|
+
"integrity": "sha512-KRs7WVDKg86PWiuAqhDrAQnTXZKraVcCc6vFdL14qrZ/DcWwuRo7VoiYXalXO7S5GKpqYiVEwCbgFDfxNHKJBQ==",
|
|
108
|
+
"engines": {
|
|
109
|
+
"node": "^12.20.0 || >=14"
|
|
110
|
+
}
|
|
111
|
+
},
|
|
112
|
+
"node_modules/dir-glob": {
|
|
113
|
+
"version": "3.0.1",
|
|
114
|
+
"resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz",
|
|
115
|
+
"integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==",
|
|
116
|
+
"dependencies": {
|
|
117
|
+
"path-type": "^4.0.0"
|
|
118
|
+
},
|
|
119
|
+
"engines": {
|
|
120
|
+
"node": ">=8"
|
|
121
|
+
}
|
|
122
|
+
},
|
|
123
|
+
"node_modules/fast-glob": {
|
|
124
|
+
"version": "3.3.2",
|
|
125
|
+
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.3.2.tgz",
|
|
126
|
+
"integrity": "sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow==",
|
|
127
|
+
"dependencies": {
|
|
128
|
+
"@nodelib/fs.stat": "^2.0.2",
|
|
129
|
+
"@nodelib/fs.walk": "^1.2.3",
|
|
130
|
+
"glob-parent": "^5.1.2",
|
|
131
|
+
"merge2": "^1.3.0",
|
|
132
|
+
"micromatch": "^4.0.4"
|
|
133
|
+
},
|
|
134
|
+
"engines": {
|
|
135
|
+
"node": ">=8.6.0"
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
"node_modules/fastq": {
|
|
139
|
+
"version": "1.17.1",
|
|
140
|
+
"resolved": "https://registry.npmjs.org/fastq/-/fastq-1.17.1.tgz",
|
|
141
|
+
"integrity": "sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w==",
|
|
142
|
+
"dependencies": {
|
|
143
|
+
"reusify": "^1.0.4"
|
|
144
|
+
}
|
|
145
|
+
},
|
|
146
|
+
"node_modules/fill-range": {
|
|
147
|
+
"version": "7.1.1",
|
|
148
|
+
"resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.1.1.tgz",
|
|
149
|
+
"integrity": "sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==",
|
|
150
|
+
"dependencies": {
|
|
151
|
+
"to-regex-range": "^5.0.1"
|
|
152
|
+
},
|
|
153
|
+
"engines": {
|
|
154
|
+
"node": ">=8"
|
|
155
|
+
}
|
|
156
|
+
},
|
|
157
|
+
"node_modules/get-tsconfig": {
|
|
158
|
+
"version": "4.10.1",
|
|
159
|
+
"resolved": "https://registry.npmjs.org/get-tsconfig/-/get-tsconfig-4.10.1.tgz",
|
|
160
|
+
"integrity": "sha512-auHyJ4AgMz7vgS8Hp3N6HXSmlMdUyhSUrfBF16w153rxtLIEOE+HGqaBppczZvnHLqQJfiHotCYpNhl0lUROFQ==",
|
|
161
|
+
"license": "MIT",
|
|
162
|
+
"dependencies": {
|
|
163
|
+
"resolve-pkg-maps": "^1.0.0"
|
|
164
|
+
},
|
|
165
|
+
"funding": {
|
|
166
|
+
"url": "https://github.com/privatenumber/get-tsconfig?sponsor=1"
|
|
167
|
+
}
|
|
168
|
+
},
|
|
169
|
+
"node_modules/glob-parent": {
|
|
170
|
+
"version": "5.1.2",
|
|
171
|
+
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
|
|
172
|
+
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
|
|
173
|
+
"dependencies": {
|
|
174
|
+
"is-glob": "^4.0.1"
|
|
175
|
+
},
|
|
176
|
+
"engines": {
|
|
177
|
+
"node": ">= 6"
|
|
178
|
+
}
|
|
179
|
+
},
|
|
180
|
+
"node_modules/globby": {
|
|
181
|
+
"version": "11.1.0",
|
|
182
|
+
"resolved": "https://registry.npmjs.org/globby/-/globby-11.1.0.tgz",
|
|
183
|
+
"integrity": "sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g==",
|
|
184
|
+
"dependencies": {
|
|
185
|
+
"array-union": "^2.1.0",
|
|
186
|
+
"dir-glob": "^3.0.1",
|
|
187
|
+
"fast-glob": "^3.2.9",
|
|
188
|
+
"ignore": "^5.2.0",
|
|
189
|
+
"merge2": "^1.4.1",
|
|
190
|
+
"slash": "^3.0.0"
|
|
191
|
+
},
|
|
192
|
+
"engines": {
|
|
193
|
+
"node": ">=10"
|
|
194
|
+
},
|
|
195
|
+
"funding": {
|
|
196
|
+
"url": "https://github.com/sponsors/sindresorhus"
|
|
197
|
+
}
|
|
198
|
+
},
|
|
199
|
+
"node_modules/ignore": {
|
|
200
|
+
"version": "5.3.1",
|
|
201
|
+
"resolved": "https://registry.npmjs.org/ignore/-/ignore-5.3.1.tgz",
|
|
202
|
+
"integrity": "sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw==",
|
|
203
|
+
"engines": {
|
|
204
|
+
"node": ">= 4"
|
|
205
|
+
}
|
|
206
|
+
},
|
|
207
|
+
"node_modules/is-binary-path": {
|
|
208
|
+
"version": "2.1.0",
|
|
209
|
+
"resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz",
|
|
210
|
+
"integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==",
|
|
211
|
+
"dependencies": {
|
|
212
|
+
"binary-extensions": "^2.0.0"
|
|
213
|
+
},
|
|
214
|
+
"engines": {
|
|
215
|
+
"node": ">=8"
|
|
216
|
+
}
|
|
217
|
+
},
|
|
218
|
+
"node_modules/is-extglob": {
|
|
219
|
+
"version": "2.1.1",
|
|
220
|
+
"resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz",
|
|
221
|
+
"integrity": "sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==",
|
|
222
|
+
"engines": {
|
|
223
|
+
"node": ">=0.10.0"
|
|
224
|
+
}
|
|
225
|
+
},
|
|
226
|
+
"node_modules/is-glob": {
|
|
227
|
+
"version": "4.0.3",
|
|
228
|
+
"resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.3.tgz",
|
|
229
|
+
"integrity": "sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==",
|
|
230
|
+
"dependencies": {
|
|
231
|
+
"is-extglob": "^2.1.1"
|
|
232
|
+
},
|
|
233
|
+
"engines": {
|
|
234
|
+
"node": ">=0.10.0"
|
|
235
|
+
}
|
|
236
|
+
},
|
|
237
|
+
"node_modules/is-number": {
|
|
238
|
+
"version": "7.0.0",
|
|
239
|
+
"resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz",
|
|
240
|
+
"integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==",
|
|
241
|
+
"engines": {
|
|
242
|
+
"node": ">=0.12.0"
|
|
243
|
+
}
|
|
244
|
+
},
|
|
245
|
+
"node_modules/merge2": {
|
|
246
|
+
"version": "1.4.1",
|
|
247
|
+
"resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz",
|
|
248
|
+
"integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==",
|
|
249
|
+
"engines": {
|
|
250
|
+
"node": ">= 8"
|
|
251
|
+
}
|
|
252
|
+
},
|
|
253
|
+
"node_modules/micromatch": {
|
|
254
|
+
"version": "4.0.7",
|
|
255
|
+
"resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.7.tgz",
|
|
256
|
+
"integrity": "sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==",
|
|
257
|
+
"dependencies": {
|
|
258
|
+
"braces": "^3.0.3",
|
|
259
|
+
"picomatch": "^2.3.1"
|
|
260
|
+
},
|
|
261
|
+
"engines": {
|
|
262
|
+
"node": ">=8.6"
|
|
263
|
+
}
|
|
264
|
+
},
|
|
265
|
+
"node_modules/mylas": {
|
|
266
|
+
"version": "2.1.13",
|
|
267
|
+
"resolved": "https://registry.npmjs.org/mylas/-/mylas-2.1.13.tgz",
|
|
268
|
+
"integrity": "sha512-+MrqnJRtxdF+xngFfUUkIMQrUUL0KsxbADUkn23Z/4ibGg192Q+z+CQyiYwvWTsYjJygmMR8+w3ZDa98Zh6ESg==",
|
|
269
|
+
"engines": {
|
|
270
|
+
"node": ">=12.0.0"
|
|
271
|
+
},
|
|
272
|
+
"funding": {
|
|
273
|
+
"type": "github",
|
|
274
|
+
"url": "https://github.com/sponsors/raouldeheer"
|
|
275
|
+
}
|
|
276
|
+
},
|
|
277
|
+
"node_modules/normalize-path": {
|
|
278
|
+
"version": "3.0.0",
|
|
279
|
+
"resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz",
|
|
280
|
+
"integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==",
|
|
281
|
+
"engines": {
|
|
282
|
+
"node": ">=0.10.0"
|
|
283
|
+
}
|
|
284
|
+
},
|
|
285
|
+
"node_modules/path-type": {
|
|
286
|
+
"version": "4.0.0",
|
|
287
|
+
"resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
|
|
288
|
+
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==",
|
|
289
|
+
"engines": {
|
|
290
|
+
"node": ">=8"
|
|
291
|
+
}
|
|
292
|
+
},
|
|
293
|
+
"node_modules/picomatch": {
|
|
294
|
+
"version": "2.3.1",
|
|
295
|
+
"resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz",
|
|
296
|
+
"integrity": "sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==",
|
|
297
|
+
"engines": {
|
|
298
|
+
"node": ">=8.6"
|
|
299
|
+
},
|
|
300
|
+
"funding": {
|
|
301
|
+
"url": "https://github.com/sponsors/jonschlinkert"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"node_modules/plimit-lit": {
|
|
305
|
+
"version": "1.6.1",
|
|
306
|
+
"resolved": "https://registry.npmjs.org/plimit-lit/-/plimit-lit-1.6.1.tgz",
|
|
307
|
+
"integrity": "sha512-B7+VDyb8Tl6oMJT9oSO2CW8XC/T4UcJGrwOVoNGwOQsQYhlpfajmrMj5xeejqaASq3V/EqThyOeATEOMuSEXiA==",
|
|
308
|
+
"dependencies": {
|
|
309
|
+
"queue-lit": "^1.5.1"
|
|
310
|
+
},
|
|
311
|
+
"engines": {
|
|
312
|
+
"node": ">=12"
|
|
313
|
+
}
|
|
314
|
+
},
|
|
315
|
+
"node_modules/queue-lit": {
|
|
316
|
+
"version": "1.5.2",
|
|
317
|
+
"resolved": "https://registry.npmjs.org/queue-lit/-/queue-lit-1.5.2.tgz",
|
|
318
|
+
"integrity": "sha512-tLc36IOPeMAubu8BkW8YDBV+WyIgKlYU7zUNs0J5Vk9skSZ4JfGlPOqplP0aHdfv7HL0B2Pg6nwiq60Qc6M2Hw==",
|
|
319
|
+
"engines": {
|
|
320
|
+
"node": ">=12"
|
|
321
|
+
}
|
|
322
|
+
},
|
|
323
|
+
"node_modules/queue-microtask": {
|
|
324
|
+
"version": "1.2.3",
|
|
325
|
+
"resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz",
|
|
326
|
+
"integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==",
|
|
327
|
+
"funding": [
|
|
328
|
+
{
|
|
329
|
+
"type": "github",
|
|
330
|
+
"url": "https://github.com/sponsors/feross"
|
|
331
|
+
},
|
|
332
|
+
{
|
|
333
|
+
"type": "patreon",
|
|
334
|
+
"url": "https://www.patreon.com/feross"
|
|
335
|
+
},
|
|
336
|
+
{
|
|
337
|
+
"type": "consulting",
|
|
338
|
+
"url": "https://feross.org/support"
|
|
339
|
+
}
|
|
340
|
+
]
|
|
341
|
+
},
|
|
342
|
+
"node_modules/readdirp": {
|
|
343
|
+
"version": "3.6.0",
|
|
344
|
+
"resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.6.0.tgz",
|
|
345
|
+
"integrity": "sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==",
|
|
346
|
+
"dependencies": {
|
|
347
|
+
"picomatch": "^2.2.1"
|
|
348
|
+
},
|
|
349
|
+
"engines": {
|
|
350
|
+
"node": ">=8.10.0"
|
|
351
|
+
}
|
|
352
|
+
},
|
|
353
|
+
"node_modules/resolve-pkg-maps": {
|
|
354
|
+
"version": "1.0.0",
|
|
355
|
+
"resolved": "https://registry.npmjs.org/resolve-pkg-maps/-/resolve-pkg-maps-1.0.0.tgz",
|
|
356
|
+
"integrity": "sha512-seS2Tj26TBVOC2NIc2rOe2y2ZO7efxITtLZcGSOnHHNOQ7CkiUBfw0Iw2ck6xkIhPwLhKNLS8BO+hEpngQlqzw==",
|
|
357
|
+
"funding": {
|
|
358
|
+
"url": "https://github.com/privatenumber/resolve-pkg-maps?sponsor=1"
|
|
359
|
+
}
|
|
360
|
+
},
|
|
361
|
+
"node_modules/reusify": {
|
|
362
|
+
"version": "1.0.4",
|
|
363
|
+
"resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz",
|
|
364
|
+
"integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==",
|
|
365
|
+
"engines": {
|
|
366
|
+
"iojs": ">=1.0.0",
|
|
367
|
+
"node": ">=0.10.0"
|
|
368
|
+
}
|
|
369
|
+
},
|
|
370
|
+
"node_modules/run-parallel": {
|
|
371
|
+
"version": "1.2.0",
|
|
372
|
+
"resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz",
|
|
373
|
+
"integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==",
|
|
374
|
+
"funding": [
|
|
375
|
+
{
|
|
376
|
+
"type": "github",
|
|
377
|
+
"url": "https://github.com/sponsors/feross"
|
|
378
|
+
},
|
|
379
|
+
{
|
|
380
|
+
"type": "patreon",
|
|
381
|
+
"url": "https://www.patreon.com/feross"
|
|
382
|
+
},
|
|
383
|
+
{
|
|
384
|
+
"type": "consulting",
|
|
385
|
+
"url": "https://feross.org/support"
|
|
386
|
+
}
|
|
387
|
+
],
|
|
388
|
+
"dependencies": {
|
|
389
|
+
"queue-microtask": "^1.2.2"
|
|
390
|
+
}
|
|
391
|
+
},
|
|
392
|
+
"node_modules/slash": {
|
|
393
|
+
"version": "3.0.0",
|
|
394
|
+
"resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz",
|
|
395
|
+
"integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==",
|
|
396
|
+
"engines": {
|
|
397
|
+
"node": ">=8"
|
|
398
|
+
}
|
|
399
|
+
},
|
|
400
|
+
"node_modules/to-regex-range": {
|
|
401
|
+
"version": "5.0.1",
|
|
402
|
+
"resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz",
|
|
403
|
+
"integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==",
|
|
404
|
+
"dependencies": {
|
|
405
|
+
"is-number": "^7.0.0"
|
|
406
|
+
},
|
|
407
|
+
"engines": {
|
|
408
|
+
"node": ">=8.0"
|
|
409
|
+
}
|
|
410
|
+
},
|
|
411
|
+
"node_modules/tsc-alias": {
|
|
412
|
+
"version": "1.8.16",
|
|
413
|
+
"resolved": "https://registry.npmjs.org/tsc-alias/-/tsc-alias-1.8.16.tgz",
|
|
414
|
+
"integrity": "sha512-QjCyu55NFyRSBAl6+MTFwplpFcnm2Pq01rR/uxfqJoLMm6X3O14KEGtaSDZpJYaE1bJBGDjD0eSuiIWPe2T58g==",
|
|
415
|
+
"license": "MIT",
|
|
416
|
+
"dependencies": {
|
|
417
|
+
"chokidar": "^3.5.3",
|
|
418
|
+
"commander": "^9.0.0",
|
|
419
|
+
"get-tsconfig": "^4.10.0",
|
|
420
|
+
"globby": "^11.0.4",
|
|
421
|
+
"mylas": "^2.1.9",
|
|
422
|
+
"normalize-path": "^3.0.0",
|
|
423
|
+
"plimit-lit": "^1.2.6"
|
|
424
|
+
},
|
|
425
|
+
"bin": {
|
|
426
|
+
"tsc-alias": "dist/bin/index.js"
|
|
427
|
+
},
|
|
428
|
+
"engines": {
|
|
429
|
+
"node": ">=16.20.2"
|
|
430
|
+
}
|
|
431
|
+
},
|
|
432
|
+
"node_modules/typescript": {
|
|
433
|
+
"version": "5.8.3",
|
|
434
|
+
"resolved": "https://registry.npmjs.org/typescript/-/typescript-5.8.3.tgz",
|
|
435
|
+
"integrity": "sha512-p1diW6TqL9L07nNxvRMM7hMMw4c5XOo/1ibL4aAIGmSAt9slTE1Xgw5KWuof2uTOvCg9BY7ZRi+GaF+7sfgPeQ==",
|
|
436
|
+
"license": "Apache-2.0",
|
|
437
|
+
"bin": {
|
|
438
|
+
"tsc": "bin/tsc",
|
|
439
|
+
"tsserver": "bin/tsserver"
|
|
440
|
+
},
|
|
441
|
+
"engines": {
|
|
442
|
+
"node": ">=14.17"
|
|
443
|
+
}
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
@@ -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;
|