@esportsplus/typescript 0.8.3 → 0.8.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/tsc +5 -4
- package/bin/tsc-alias +8 -1
- package/node_modules/.package-lock.json +481 -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 +17 -0
- package/node_modules/fast-glob/out/providers/filters/entry.js +85 -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 +49 -0
- package/node_modules/fast-glob/out/utils/pattern.js +206 -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 +312 -0
- package/node_modules/fastq/SECURITY.md +15 -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 +57 -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 +291 -0
- package/node_modules/fastq/test/test.js +653 -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 +636 -0
- package/node_modules/ignore/legacy.js +559 -0
- package/node_modules/ignore/package.json +74 -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 +1024 -0
- package/node_modules/micromatch/index.js +474 -0
- package/node_modules/micromatch/package.json +119 -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/.github/dependabot.yml +7 -0
- package/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/node_modules/reusify/LICENSE +22 -0
- package/node_modules/reusify/README.md +139 -0
- package/node_modules/reusify/SECURITY.md +15 -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/eslint.config.js +14 -0
- package/node_modules/reusify/package.json +50 -0
- package/node_modules/reusify/reusify.d.ts +14 -0
- package/node_modules/reusify/reusify.js +33 -0
- package/node_modules/reusify/test.js +66 -0
- package/node_modules/reusify/tsconfig.json +11 -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 +4 -2
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import {
|
|
2
|
+
BufT,
|
|
3
|
+
DirT,
|
|
4
|
+
FileT,
|
|
5
|
+
JsonT,
|
|
6
|
+
} from "./interfaces";
|
|
7
|
+
|
|
8
|
+
declare interface MylasT extends FileT {
|
|
9
|
+
json: JsonT;
|
|
10
|
+
file: FileT;
|
|
11
|
+
dir: DirT;
|
|
12
|
+
buf: BufT;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
declare const Mylas: MylasT;
|
|
16
|
+
declare const Json: JsonT;
|
|
17
|
+
declare const File: FileT;
|
|
18
|
+
declare const Dir: DirT;
|
|
19
|
+
declare const Buf: BufT;
|
|
20
|
+
|
|
21
|
+
export default Mylas;
|
|
22
|
+
export { Json, Dir, File, Buf };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";Object.defineProperty(exports, "__esModule", {value: true});var _chunk3EDNT3AMjs = require('./chunk-3EDNT3AM.js');var _chunkM3H36CX2js = require('./chunk-M3H36CX2.js');exports.Buf = _chunk3EDNT3AMjs.a; exports.Dir = _chunk3EDNT3AMjs.b; exports.File = _chunkM3H36CX2js.e; exports.Json = _chunkM3H36CX2js.f; exports.Method = _chunkM3H36CX2js.a; exports.default = _chunk3EDNT3AMjs.c;
|
|
@@ -0,0 +1,201 @@
|
|
|
1
|
+
declare type voidCallback = () => void;
|
|
2
|
+
declare type stringCallback = (arg0: string) => void;
|
|
3
|
+
declare type objectCallback<T> = (arg0: T) => void;
|
|
4
|
+
declare type booleanCallback = (arg0: boolean) => void;
|
|
5
|
+
|
|
6
|
+
declare interface JsonT {
|
|
7
|
+
/**
|
|
8
|
+
* loads JSON from file sync.
|
|
9
|
+
* @param {string} path path to load from.
|
|
10
|
+
* @param {boolean} hasComments file to load has comments in json.
|
|
11
|
+
* @return {T}
|
|
12
|
+
*/
|
|
13
|
+
loadS: <T = any>(path: string, hasComments?: boolean) => T;
|
|
14
|
+
/**
|
|
15
|
+
* saves JSON data to file sync.
|
|
16
|
+
* @param {string} path path to save to.
|
|
17
|
+
* @param {T} data data to save.
|
|
18
|
+
* @return {void}
|
|
19
|
+
*/
|
|
20
|
+
saveS: <T = any>(path: string, data: T) => void;
|
|
21
|
+
/**
|
|
22
|
+
* loads JSON from file.
|
|
23
|
+
* @param {string} path path to load from.
|
|
24
|
+
* @param {objectCallback<T>} callback callback to call.
|
|
25
|
+
* @param {boolean} hasComments file to load has comments in json.
|
|
26
|
+
* @return {Promise<T>}
|
|
27
|
+
*/
|
|
28
|
+
load: <T = any>(path: string, callback?: objectCallback<T> | undefined, hasComments?: boolean) => Promise<T>;
|
|
29
|
+
/**
|
|
30
|
+
* saves JSON data to file.
|
|
31
|
+
* @param {string} path path to save to.
|
|
32
|
+
* @param {T} data data to save.
|
|
33
|
+
* @param {voidCallback} callback callback to call.
|
|
34
|
+
* @return {Promise<void>}
|
|
35
|
+
*/
|
|
36
|
+
save: <T = any>(path: string, data: T, callback?: voidCallback | undefined) => Promise<void>;
|
|
37
|
+
/**
|
|
38
|
+
* loads JSON from file.
|
|
39
|
+
* @param {string} path path to load from.
|
|
40
|
+
* @param {objectCallback<T>} callback callback to call.
|
|
41
|
+
* @param {boolean} hasComments file to load has comments in json.
|
|
42
|
+
*/
|
|
43
|
+
loadW: <T = any>(path: string, callback?: objectCallback<T> | undefined, hasComments?: boolean) => Promise<T>;
|
|
44
|
+
/**
|
|
45
|
+
* saves JSON data to file.
|
|
46
|
+
* @param {string} path path to save to.
|
|
47
|
+
* @param {T} data data to save.
|
|
48
|
+
* @param {voidCallback} callback callback to call.
|
|
49
|
+
*/
|
|
50
|
+
saveW: <T = any>(path: string, data: T, callback?: voidCallback | undefined) => Promise<void>;
|
|
51
|
+
}
|
|
52
|
+
declare interface StringSave {
|
|
53
|
+
/**
|
|
54
|
+
* saves string to file sync.
|
|
55
|
+
* @param {string} path path to save to.
|
|
56
|
+
* @return {void}
|
|
57
|
+
*/
|
|
58
|
+
saveS: (path: string) => void;
|
|
59
|
+
/**
|
|
60
|
+
* saves string to file async.
|
|
61
|
+
* @param {string} path path to save to.
|
|
62
|
+
* @param {voidCallback} callback callback to call.
|
|
63
|
+
* @return {Promise<void>}
|
|
64
|
+
*/
|
|
65
|
+
save: (path: string, callback?: voidCallback | undefined) => Promise<void>;
|
|
66
|
+
/**
|
|
67
|
+
* saves string to file with worker.
|
|
68
|
+
* @param {string} path path to save to.
|
|
69
|
+
* @param {voidCallback} callback callback to call.
|
|
70
|
+
*/
|
|
71
|
+
saveW: (path: string, callback?: voidCallback | undefined) => Promise<void>;
|
|
72
|
+
}
|
|
73
|
+
declare interface FileT {
|
|
74
|
+
/**
|
|
75
|
+
* loads string data from file sync.
|
|
76
|
+
* @param {string} path path to load from.
|
|
77
|
+
* @return {string}
|
|
78
|
+
*/
|
|
79
|
+
loadS: (path: string) => string;
|
|
80
|
+
/**
|
|
81
|
+
* loads string data from file async.
|
|
82
|
+
* @param {string} path path to load from.
|
|
83
|
+
* @param {stringCallback} callback callback to call.
|
|
84
|
+
* @return {Promise<string>}
|
|
85
|
+
*/
|
|
86
|
+
load: (path: string, callback?: stringCallback | undefined) => Promise<string>;
|
|
87
|
+
/**
|
|
88
|
+
* loads string data from file with worker.
|
|
89
|
+
* @param {string} path path to load from.
|
|
90
|
+
* @param {stringCallback} callback callback to call.
|
|
91
|
+
*/
|
|
92
|
+
loadW: (path: string, callback?: stringCallback | undefined) => Promise<string>;
|
|
93
|
+
/**
|
|
94
|
+
* saves string to file sync.
|
|
95
|
+
* @param {string} path path to save to.
|
|
96
|
+
* @param {string} data data to save.
|
|
97
|
+
* @return {void}
|
|
98
|
+
*/
|
|
99
|
+
saveS: (path: string, data: string) => void;
|
|
100
|
+
/**
|
|
101
|
+
* saves string to file async.
|
|
102
|
+
* @param {string} path path to save to.
|
|
103
|
+
* @param {string} data data to save.
|
|
104
|
+
* @param {voidCallback} callback callback to call.
|
|
105
|
+
* @return {Promise<void>}
|
|
106
|
+
*/
|
|
107
|
+
save: (path: string, data: string, callback?: voidCallback | undefined) => Promise<void>;
|
|
108
|
+
/**
|
|
109
|
+
* saves string to file with worker.
|
|
110
|
+
* @param {string} path path to save to.
|
|
111
|
+
* @param {string} data data to save.
|
|
112
|
+
* @param {voidCallback} callback callback to call.
|
|
113
|
+
*/
|
|
114
|
+
saveW: (path: string, data: string, callback?: voidCallback | undefined) => Promise<void>;
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
declare interface DirT {
|
|
118
|
+
/**
|
|
119
|
+
* Creates directory on filesystem synchronous.
|
|
120
|
+
* @param {string} path path to dir
|
|
121
|
+
* @return {void}
|
|
122
|
+
*/
|
|
123
|
+
mkS: (path: string) => void;
|
|
124
|
+
/**
|
|
125
|
+
* Removes directory on filesystem synchronous.
|
|
126
|
+
* @param {string} path path to dir
|
|
127
|
+
* @return {void}
|
|
128
|
+
*/
|
|
129
|
+
rmS: (path: string) => void;
|
|
130
|
+
/**
|
|
131
|
+
* Checks if directory exists on filesystem synchronous.
|
|
132
|
+
* @param {string} path path to dir.
|
|
133
|
+
* @return {boolean}
|
|
134
|
+
*/
|
|
135
|
+
checkS: (path: string) => boolean;
|
|
136
|
+
/**
|
|
137
|
+
* Creates directory on filesystem asynchronous.
|
|
138
|
+
* @param {string} path path to dir
|
|
139
|
+
* @param {voidCallback} callback callback to call.
|
|
140
|
+
* @return {Promise<void>}
|
|
141
|
+
*/
|
|
142
|
+
mk: (path: string, callback?: voidCallback | undefined) => Promise<void>;
|
|
143
|
+
/**
|
|
144
|
+
* Removes directory on filesystem asynchronous.
|
|
145
|
+
* @param {string} path path to dir
|
|
146
|
+
* @param {voidCallback} callback callback to call.
|
|
147
|
+
* @return {Promise<void>}
|
|
148
|
+
*/
|
|
149
|
+
rm: (path: string, callback?: voidCallback | undefined) => Promise<void>;
|
|
150
|
+
/**
|
|
151
|
+
* Checks if directory exists on filesystem asynchronous.
|
|
152
|
+
* @param {string} path path to dir.
|
|
153
|
+
* @param {booleanCallback} callback callback to call.
|
|
154
|
+
* @return {Promise<boolean>}
|
|
155
|
+
*/
|
|
156
|
+
check: (path: string, callback?: booleanCallback | undefined) => Promise<boolean>;
|
|
157
|
+
/**
|
|
158
|
+
* NodeModules finds where the node_modules directories are.
|
|
159
|
+
* @param {{ cwd?: string; relative?: boolean; } | string} input optional cwd input.
|
|
160
|
+
* @returns an array of locations where node_modules is found.
|
|
161
|
+
*/
|
|
162
|
+
nodeModules: (input?: { cwd?: string; relative?: boolean; } | string) => string[];
|
|
163
|
+
}
|
|
164
|
+
declare interface BufT {
|
|
165
|
+
/**
|
|
166
|
+
* loads buffer data from file.
|
|
167
|
+
* @param {string} path path to load from.
|
|
168
|
+
* @param {objectCallback<Buffer>} callback callback to call.
|
|
169
|
+
* @return {Promise<Buffer>}
|
|
170
|
+
*/
|
|
171
|
+
load: (path: string, callback?: objectCallback<Buffer> | undefined) => Promise<Buffer>;
|
|
172
|
+
/**
|
|
173
|
+
* saves buffer to file.
|
|
174
|
+
* @param {string} path path to save to.
|
|
175
|
+
* @param {Buffer} data data to save.
|
|
176
|
+
* @param {voidCallback} callback callback to call.
|
|
177
|
+
* @return {Promise<void>}
|
|
178
|
+
*/
|
|
179
|
+
save: (path: string, data: Buffer, callback?: voidCallback | undefined) => Promise<void>;
|
|
180
|
+
/**
|
|
181
|
+
* loads buffer data from file.
|
|
182
|
+
* @param {string} path path to load from.
|
|
183
|
+
* @param {objectCallback<Buffer>} callback callback to call.
|
|
184
|
+
*/
|
|
185
|
+
loadW: (path: string, callback?: objectCallback<Buffer> | undefined) => Promise<Buffer>;
|
|
186
|
+
/**
|
|
187
|
+
* saves buffer to file.
|
|
188
|
+
* @param {string} path path to save to.
|
|
189
|
+
* @param {Buffer} data data to save.
|
|
190
|
+
* @param {voidCallback} callback callback to call.
|
|
191
|
+
*/
|
|
192
|
+
saveW: (path: string, data: Buffer, callback?: voidCallback | undefined) => Promise<void>;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export {
|
|
196
|
+
FileT,
|
|
197
|
+
JsonT,
|
|
198
|
+
StringSave,
|
|
199
|
+
BufT,
|
|
200
|
+
DirT,
|
|
201
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunkM3H36CX2js = require('./chunk-M3H36CX2.js');String.load=_chunkM3H36CX2js.e.load;String.save=_chunkM3H36CX2js.e.save;String.loadS=_chunkM3H36CX2js.e.loadS;String.saveS=_chunkM3H36CX2js.e.saveS;String.loadW=_chunkM3H36CX2js.e.loadW;String.saveW=_chunkM3H36CX2js.e.saveW;String.prototype.save=async function(i,l){await _chunkM3H36CX2js.e.save(i,String(this),l)};String.prototype.saveS=function(i){_chunkM3H36CX2js.e.saveS(i,String(this))};String.prototype.saveW=async function(i,l){await _chunkM3H36CX2js.e.saveW(i,String(this),l)};JSON.load=_chunkM3H36CX2js.f.load;JSON.save=_chunkM3H36CX2js.f.save;JSON.loadS=_chunkM3H36CX2js.f.loadS;JSON.saveS=_chunkM3H36CX2js.f.saveS;JSON.loadW=_chunkM3H36CX2js.f.loadW;JSON.saveW=_chunkM3H36CX2js.f.saveW;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
"use strict";var _chunk3EDNT3AMjs = require('./chunk-3EDNT3AM.js');var _chunkM3H36CX2js = require('./chunk-M3H36CX2.js');var _worker_threads = require('worker_threads');_worker_threads.parentPort.once("message",async({method:e,path:s,data:i})=>{try{if(e===0&&_worker_threads.parentPort.postMessage(await _chunkM3H36CX2js.e.load(s)),e===1&&await _chunkM3H36CX2js.e.save(s,i),e===2&&_worker_threads.parentPort.postMessage(await _chunkM3H36CX2js.f.load(s)),e===3&&_worker_threads.parentPort.postMessage(await _chunkM3H36CX2js.f.load(s,void 0,!0)),e===4&&await _chunkM3H36CX2js.f.save(s,i),e===6&&await _chunk3EDNT3AMjs.a.save(s,Buffer.from(i)),e===5){let o=await _chunk3EDNT3AMjs.a.load(s),n=new Uint8Array(new SharedArrayBuffer(o.byteLength));n.set(o),_worker_threads.parentPort.postMessage(n)}process.exit(0)}catch (e2){process.exit(1)}});
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "mylas",
|
|
3
|
+
"version": "2.1.13",
|
|
4
|
+
"description": "Mylas is a npm package to make the loading and storing of data from fs easy and reliable.",
|
|
5
|
+
"main": "build/index.js",
|
|
6
|
+
"typings": "build/index",
|
|
7
|
+
"files": [
|
|
8
|
+
"build/"
|
|
9
|
+
],
|
|
10
|
+
"exports": {
|
|
11
|
+
".": {
|
|
12
|
+
"types": "./build/index.d.ts",
|
|
13
|
+
"require": "./build/index.js",
|
|
14
|
+
"default": "./build/index.js"
|
|
15
|
+
},
|
|
16
|
+
"./register": {
|
|
17
|
+
"types": "./build/register.d.ts",
|
|
18
|
+
"require": "./build/register.js",
|
|
19
|
+
"default": "./build/register.js"
|
|
20
|
+
}
|
|
21
|
+
},
|
|
22
|
+
"scripts": {
|
|
23
|
+
"prepack": "npm run build",
|
|
24
|
+
"test": "jest --config='./tests/jest.config.js'",
|
|
25
|
+
"build": "bash ./config/build.sh",
|
|
26
|
+
"lint": "eslint -c ./config/.eslintrc --ext .ts ./ts"
|
|
27
|
+
},
|
|
28
|
+
"repository": {
|
|
29
|
+
"type": "git",
|
|
30
|
+
"url": "git+https://github.com/raouldeheer/Mylas.git"
|
|
31
|
+
},
|
|
32
|
+
"keywords": [
|
|
33
|
+
"fs",
|
|
34
|
+
"data",
|
|
35
|
+
"json",
|
|
36
|
+
"loader",
|
|
37
|
+
"multithreaded",
|
|
38
|
+
"json-comments",
|
|
39
|
+
"node-modules"
|
|
40
|
+
],
|
|
41
|
+
"author": "Raoul de Heer",
|
|
42
|
+
"license": "MIT",
|
|
43
|
+
"bugs": {
|
|
44
|
+
"url": "https://github.com/raouldeheer/Mylas/issues"
|
|
45
|
+
},
|
|
46
|
+
"homepage": "https://mylas.js.org/",
|
|
47
|
+
"devDependencies": {
|
|
48
|
+
"@types/jest": "^29.0.0",
|
|
49
|
+
"@types/node": "^18.0.0",
|
|
50
|
+
"@typescript-eslint/eslint-plugin": "^5.27.1",
|
|
51
|
+
"@typescript-eslint/parser": "^5.27.1",
|
|
52
|
+
"eslint": "^8.17.0",
|
|
53
|
+
"jest": "^28.1.1",
|
|
54
|
+
"ts-jest": "^28.0.4",
|
|
55
|
+
"tsup": "^6.1.0",
|
|
56
|
+
"typescript": "^4.7.3"
|
|
57
|
+
},
|
|
58
|
+
"engines": {
|
|
59
|
+
"node": ">=12.0.0"
|
|
60
|
+
},
|
|
61
|
+
"funding": {
|
|
62
|
+
"type": "github",
|
|
63
|
+
"url": "https://github.com/sponsors/raouldeheer"
|
|
64
|
+
}
|
|
65
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2014-2018, Jon Schlinkert.
|
|
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
|
|
13
|
+
all 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
|
|
21
|
+
THE SOFTWARE.
|
|
@@ -0,0 +1,127 @@
|
|
|
1
|
+
# normalize-path [](https://www.npmjs.com/package/normalize-path) [](https://npmjs.org/package/normalize-path) [](https://npmjs.org/package/normalize-path) [](https://travis-ci.org/jonschlinkert/normalize-path)
|
|
2
|
+
|
|
3
|
+
> Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.
|
|
4
|
+
|
|
5
|
+
Please consider following this project's author, [Jon Schlinkert](https://github.com/jonschlinkert), and consider starring the project to show your :heart: and support.
|
|
6
|
+
|
|
7
|
+
## Install
|
|
8
|
+
|
|
9
|
+
Install with [npm](https://www.npmjs.com/):
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
$ npm install --save normalize-path
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
## Usage
|
|
16
|
+
|
|
17
|
+
```js
|
|
18
|
+
const normalize = require('normalize-path');
|
|
19
|
+
|
|
20
|
+
console.log(normalize('\\foo\\bar\\baz\\'));
|
|
21
|
+
//=> '/foo/bar/baz'
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
**win32 namespaces**
|
|
25
|
+
|
|
26
|
+
```js
|
|
27
|
+
console.log(normalize('\\\\?\\UNC\\Server01\\user\\docs\\Letter.txt'));
|
|
28
|
+
//=> '//?/UNC/Server01/user/docs/Letter.txt'
|
|
29
|
+
|
|
30
|
+
console.log(normalize('\\\\.\\CdRomX'));
|
|
31
|
+
//=> '//./CdRomX'
|
|
32
|
+
```
|
|
33
|
+
|
|
34
|
+
**Consecutive slashes**
|
|
35
|
+
|
|
36
|
+
Condenses multiple consecutive forward slashes (except for leading slashes in win32 namespaces) to a single slash.
|
|
37
|
+
|
|
38
|
+
```js
|
|
39
|
+
console.log(normalize('.//foo//bar///////baz/'));
|
|
40
|
+
//=> './foo/bar/baz'
|
|
41
|
+
```
|
|
42
|
+
|
|
43
|
+
### Trailing slashes
|
|
44
|
+
|
|
45
|
+
By default trailing slashes are removed. Pass `false` as the last argument to disable this behavior and _**keep** trailing slashes_:
|
|
46
|
+
|
|
47
|
+
```js
|
|
48
|
+
console.log(normalize('foo\\bar\\baz\\', false)); //=> 'foo/bar/baz/'
|
|
49
|
+
console.log(normalize('./foo/bar/baz/', false)); //=> './foo/bar/baz/'
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
## Release history
|
|
53
|
+
|
|
54
|
+
### v3.0
|
|
55
|
+
|
|
56
|
+
No breaking changes in this release.
|
|
57
|
+
|
|
58
|
+
* a check was added to ensure that [win32 namespaces](https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces) are handled properly by win32 `path.parse()` after a path has been normalized by this library.
|
|
59
|
+
* a minor optimization was made to simplify how the trailing separator was handled
|
|
60
|
+
|
|
61
|
+
## About
|
|
62
|
+
|
|
63
|
+
<details>
|
|
64
|
+
<summary><strong>Contributing</strong></summary>
|
|
65
|
+
|
|
66
|
+
Pull requests and stars are always welcome. For bugs and feature requests, [please create an issue](../../issues/new).
|
|
67
|
+
|
|
68
|
+
</details>
|
|
69
|
+
|
|
70
|
+
<details>
|
|
71
|
+
<summary><strong>Running Tests</strong></summary>
|
|
72
|
+
|
|
73
|
+
Running and reviewing unit tests is a great way to get familiarized with a library and its API. You can install dependencies and run tests with the following command:
|
|
74
|
+
|
|
75
|
+
```sh
|
|
76
|
+
$ npm install && npm test
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
</details>
|
|
80
|
+
|
|
81
|
+
<details>
|
|
82
|
+
<summary><strong>Building docs</strong></summary>
|
|
83
|
+
|
|
84
|
+
_(This project's readme.md is generated by [verb](https://github.com/verbose/verb-generate-readme), please don't edit the readme directly. Any changes to the readme must be made in the [.verb.md](.verb.md) readme template.)_
|
|
85
|
+
|
|
86
|
+
To generate the readme, run the following command:
|
|
87
|
+
|
|
88
|
+
```sh
|
|
89
|
+
$ npm install -g verbose/verb#dev verb-generate-readme && verb
|
|
90
|
+
```
|
|
91
|
+
|
|
92
|
+
</details>
|
|
93
|
+
|
|
94
|
+
### Related projects
|
|
95
|
+
|
|
96
|
+
Other useful path-related libraries:
|
|
97
|
+
|
|
98
|
+
* [contains-path](https://www.npmjs.com/package/contains-path): Return true if a file path contains the given path. | [homepage](https://github.com/jonschlinkert/contains-path "Return true if a file path contains the given path.")
|
|
99
|
+
* [is-absolute](https://www.npmjs.com/package/is-absolute): Returns true if a file path is absolute. Does not rely on the path module… [more](https://github.com/jonschlinkert/is-absolute) | [homepage](https://github.com/jonschlinkert/is-absolute "Returns true if a file path is absolute. Does not rely on the path module and can be used as a polyfill for node.js native `path.isAbolute`.")
|
|
100
|
+
* [is-relative](https://www.npmjs.com/package/is-relative): Returns `true` if the path appears to be relative. | [homepage](https://github.com/jonschlinkert/is-relative "Returns `true` if the path appears to be relative.")
|
|
101
|
+
* [parse-filepath](https://www.npmjs.com/package/parse-filepath): Pollyfill for node.js `path.parse`, parses a filepath into an object. | [homepage](https://github.com/jonschlinkert/parse-filepath "Pollyfill for node.js `path.parse`, parses a filepath into an object.")
|
|
102
|
+
* [path-ends-with](https://www.npmjs.com/package/path-ends-with): Return `true` if a file path ends with the given string/suffix. | [homepage](https://github.com/jonschlinkert/path-ends-with "Return `true` if a file path ends with the given string/suffix.")
|
|
103
|
+
* [unixify](https://www.npmjs.com/package/unixify): Convert Windows file paths to unix paths. | [homepage](https://github.com/jonschlinkert/unixify "Convert Windows file paths to unix paths.")
|
|
104
|
+
|
|
105
|
+
### Contributors
|
|
106
|
+
|
|
107
|
+
| **Commits** | **Contributor** |
|
|
108
|
+
| --- | --- |
|
|
109
|
+
| 35 | [jonschlinkert](https://github.com/jonschlinkert) |
|
|
110
|
+
| 1 | [phated](https://github.com/phated) |
|
|
111
|
+
|
|
112
|
+
### Author
|
|
113
|
+
|
|
114
|
+
**Jon Schlinkert**
|
|
115
|
+
|
|
116
|
+
* [LinkedIn Profile](https://linkedin.com/in/jonschlinkert)
|
|
117
|
+
* [GitHub Profile](https://github.com/jonschlinkert)
|
|
118
|
+
* [Twitter Profile](https://twitter.com/jonschlinkert)
|
|
119
|
+
|
|
120
|
+
### License
|
|
121
|
+
|
|
122
|
+
Copyright © 2018, [Jon Schlinkert](https://github.com/jonschlinkert).
|
|
123
|
+
Released under the [MIT License](LICENSE).
|
|
124
|
+
|
|
125
|
+
***
|
|
126
|
+
|
|
127
|
+
_This file was generated by [verb-generate-readme](https://github.com/verbose/verb-generate-readme), v0.6.0, on April 19, 2018._
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/*!
|
|
2
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
3
|
+
*
|
|
4
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
5
|
+
* Released under the MIT License.
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
module.exports = function(path, stripTrailing) {
|
|
9
|
+
if (typeof path !== 'string') {
|
|
10
|
+
throw new TypeError('expected path to be a string');
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
if (path === '\\' || path === '/') return '/';
|
|
14
|
+
|
|
15
|
+
var len = path.length;
|
|
16
|
+
if (len <= 1) return path;
|
|
17
|
+
|
|
18
|
+
// ensure that win32 namespaces has two leading slashes, so that the path is
|
|
19
|
+
// handled properly by the win32 version of path.parse() after being normalized
|
|
20
|
+
// https://msdn.microsoft.com/library/windows/desktop/aa365247(v=vs.85).aspx#namespaces
|
|
21
|
+
var prefix = '';
|
|
22
|
+
if (len > 4 && path[3] === '\\') {
|
|
23
|
+
var ch = path[2];
|
|
24
|
+
if ((ch === '?' || ch === '.') && path.slice(0, 2) === '\\\\') {
|
|
25
|
+
path = path.slice(2);
|
|
26
|
+
prefix = '//';
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
var segs = path.split(/[/\\]+/);
|
|
31
|
+
if (stripTrailing !== false && segs[segs.length - 1] === '') {
|
|
32
|
+
segs.pop();
|
|
33
|
+
}
|
|
34
|
+
return prefix + segs.join('/');
|
|
35
|
+
};
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "normalize-path",
|
|
3
|
+
"description": "Normalize slashes in a file path to be posix/unix-like forward slashes. Also condenses repeat slashes to a single slash and removes and trailing slashes, unless disabled.",
|
|
4
|
+
"version": "3.0.0",
|
|
5
|
+
"homepage": "https://github.com/jonschlinkert/normalize-path",
|
|
6
|
+
"author": "Jon Schlinkert (https://github.com/jonschlinkert)",
|
|
7
|
+
"contributors": [
|
|
8
|
+
"Blaine Bublitz (https://twitter.com/BlaineBublitz)",
|
|
9
|
+
"Jon Schlinkert (http://twitter.com/jonschlinkert)"
|
|
10
|
+
],
|
|
11
|
+
"repository": "jonschlinkert/normalize-path",
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/jonschlinkert/normalize-path/issues"
|
|
14
|
+
},
|
|
15
|
+
"license": "MIT",
|
|
16
|
+
"files": [
|
|
17
|
+
"index.js"
|
|
18
|
+
],
|
|
19
|
+
"main": "index.js",
|
|
20
|
+
"engines": {
|
|
21
|
+
"node": ">=0.10.0"
|
|
22
|
+
},
|
|
23
|
+
"scripts": {
|
|
24
|
+
"test": "mocha"
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
27
|
+
"gulp-format-md": "^1.0.0",
|
|
28
|
+
"minimist": "^1.2.0",
|
|
29
|
+
"mocha": "^3.5.3"
|
|
30
|
+
},
|
|
31
|
+
"keywords": [
|
|
32
|
+
"absolute",
|
|
33
|
+
"backslash",
|
|
34
|
+
"delimiter",
|
|
35
|
+
"file",
|
|
36
|
+
"file-path",
|
|
37
|
+
"filepath",
|
|
38
|
+
"fix",
|
|
39
|
+
"forward",
|
|
40
|
+
"fp",
|
|
41
|
+
"fs",
|
|
42
|
+
"normalize",
|
|
43
|
+
"path",
|
|
44
|
+
"relative",
|
|
45
|
+
"separator",
|
|
46
|
+
"slash",
|
|
47
|
+
"slashes",
|
|
48
|
+
"trailing",
|
|
49
|
+
"unix",
|
|
50
|
+
"urix"
|
|
51
|
+
],
|
|
52
|
+
"verb": {
|
|
53
|
+
"toc": false,
|
|
54
|
+
"layout": "default",
|
|
55
|
+
"tasks": [
|
|
56
|
+
"readme"
|
|
57
|
+
],
|
|
58
|
+
"plugins": [
|
|
59
|
+
"gulp-format-md"
|
|
60
|
+
],
|
|
61
|
+
"related": {
|
|
62
|
+
"description": "Other useful path-related libraries:",
|
|
63
|
+
"list": [
|
|
64
|
+
"contains-path",
|
|
65
|
+
"is-absolute",
|
|
66
|
+
"is-relative",
|
|
67
|
+
"parse-filepath",
|
|
68
|
+
"path-ends-with",
|
|
69
|
+
"path-ends-with",
|
|
70
|
+
"unixify"
|
|
71
|
+
]
|
|
72
|
+
},
|
|
73
|
+
"lint": {
|
|
74
|
+
"reflinks": true
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
export type PathTypeFunction = (path: string) => Promise<boolean>;
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Check whether the passed `path` is a file.
|
|
5
|
+
*
|
|
6
|
+
* @param path - The path to check.
|
|
7
|
+
* @returns Whether the `path` is a file.
|
|
8
|
+
*/
|
|
9
|
+
export const isFile: PathTypeFunction;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Check whether the passed `path` is a directory.
|
|
13
|
+
*
|
|
14
|
+
* @param path - The path to check.
|
|
15
|
+
* @returns Whether the `path` is a directory.
|
|
16
|
+
*/
|
|
17
|
+
export const isDirectory: PathTypeFunction;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Check whether the passed `path` is a symlink.
|
|
21
|
+
*
|
|
22
|
+
* @param path - The path to check.
|
|
23
|
+
* @returns Whether the `path` is a symlink.
|
|
24
|
+
*/
|
|
25
|
+
export const isSymlink: PathTypeFunction;
|
|
26
|
+
|
|
27
|
+
export type PathTypeSyncFunction = (path: string) => boolean;
|
|
28
|
+
|
|
29
|
+
/**
|
|
30
|
+
* Synchronously check whether the passed `path` is a file.
|
|
31
|
+
*
|
|
32
|
+
* @param path - The path to check.
|
|
33
|
+
* @returns Whether the `path` is a file.
|
|
34
|
+
*/
|
|
35
|
+
export const isFileSync: PathTypeSyncFunction;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* Synchronously check whether the passed `path` is a directory.
|
|
39
|
+
*
|
|
40
|
+
* @param path - The path to check.
|
|
41
|
+
* @returns Whether the `path` is a directory.
|
|
42
|
+
*/
|
|
43
|
+
export const isDirectorySync: PathTypeSyncFunction;
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* Synchronously check whether the passed `path` is a symlink.
|
|
47
|
+
*
|
|
48
|
+
* @param path - The path to check.
|
|
49
|
+
* @returns Whether the `path` is a directory.
|
|
50
|
+
*/
|
|
51
|
+
export const isSymlinkSync: PathTypeSyncFunction;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
const {promisify} = require('util');
|
|
3
|
+
const fs = require('fs');
|
|
4
|
+
|
|
5
|
+
async function isType(fsStatType, statsMethodName, filePath) {
|
|
6
|
+
if (typeof filePath !== 'string') {
|
|
7
|
+
throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
try {
|
|
11
|
+
const stats = await promisify(fs[fsStatType])(filePath);
|
|
12
|
+
return stats[statsMethodName]();
|
|
13
|
+
} catch (error) {
|
|
14
|
+
if (error.code === 'ENOENT') {
|
|
15
|
+
return false;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
throw error;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
function isTypeSync(fsStatType, statsMethodName, filePath) {
|
|
23
|
+
if (typeof filePath !== 'string') {
|
|
24
|
+
throw new TypeError(`Expected a string, got ${typeof filePath}`);
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
try {
|
|
28
|
+
return fs[fsStatType](filePath)[statsMethodName]();
|
|
29
|
+
} catch (error) {
|
|
30
|
+
if (error.code === 'ENOENT') {
|
|
31
|
+
return false;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
throw error;
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
exports.isFile = isType.bind(null, 'stat', 'isFile');
|
|
39
|
+
exports.isDirectory = isType.bind(null, 'stat', 'isDirectory');
|
|
40
|
+
exports.isSymlink = isType.bind(null, 'lstat', 'isSymbolicLink');
|
|
41
|
+
exports.isFileSync = isTypeSync.bind(null, 'statSync', 'isFile');
|
|
42
|
+
exports.isDirectorySync = isTypeSync.bind(null, 'statSync', 'isDirectory');
|
|
43
|
+
exports.isSymlinkSync = isTypeSync.bind(null, 'lstatSync', 'isSymbolicLink');
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Sindre Sorhus <sindresorhus@gmail.com> (sindresorhus.com)
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
|
6
|
+
|
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
|
8
|
+
|
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|