@samchon/ts-patch 3.2.2 → 3.4.0
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/.editorconfig +371 -0
- package/.gitattributes +2 -0
- package/.github/FUNDING.yml +1 -0
- package/.github/workflows/build.yml +49 -0
- package/.github/workflows/publish.yml +47 -0
- package/.idea/codeStyles/Project.xml +28 -0
- package/.idea/codeStyles/codeStyleConfig.xml +5 -0
- package/.idea/compiler.xml +6 -0
- package/.idea/inspectionProfiles/Project_Default.xml +98 -0
- package/.idea/jsonSchemas.xml +28 -0
- package/.idea/misc.xml +9 -0
- package/.idea/modules.xml +8 -0
- package/.idea/ts-patch.iml +22 -0
- package/.idea/vcs.xml +12 -0
- package/.idea/webResources.xml +15 -0
- package/CHANGELOG.md +7 -0
- package/dist/CHANGELOG.md +275 -0
- package/dist/LICENSE.md +13 -0
- package/dist/README.md +348 -0
- package/dist/actions/check.js +53 -0
- package/dist/actions/check.js.map +1 -0
- package/dist/actions/patch.js +88 -0
- package/dist/actions/patch.js.map +1 -0
- package/dist/actions/unpatch.js +87 -0
- package/dist/actions/unpatch.js.map +1 -0
- package/dist/bin/ts-patch.js +43 -0
- package/dist/bin/ts-patch.js.map +1 -0
- package/dist/cli/cli.js +106 -0
- package/dist/cli/cli.js.map +1 -0
- package/dist/cli/commands.js +49 -0
- package/dist/cli/commands.js.map +1 -0
- package/dist/config.js +50 -0
- package/dist/config.js.map +1 -0
- package/dist/module/module-file.d.ts +10 -0
- package/dist/module/module-file.js +102 -0
- package/dist/module/module-file.js.map +1 -0
- package/dist/module/ts-module.d.ts +40 -0
- package/dist/module/ts-module.js +131 -0
- package/dist/module/ts-module.js.map +1 -0
- package/dist/node_modules/.bin/resolve +15 -0
- package/dist/node_modules/.bin/resolve.cmd +7 -0
- package/dist/node_modules/.bin/semver +15 -0
- package/dist/node_modules/.bin/semver.cmd +7 -0
- package/dist/package.json +106 -0
- package/dist/patch/get-patched-source.js +69 -0
- package/dist/patch/get-patched-source.js.map +1 -0
- package/dist/patch/transformers/fix-ts-early-return.js +61 -0
- package/dist/patch/transformers/fix-ts-early-return.js.map +1 -0
- package/dist/resources/module-patch.js +623 -0
- package/dist/system/cache.js +79 -0
- package/dist/system/cache.js.map +1 -0
- package/dist/utils/file-utils.js +98 -0
- package/dist/utils/file-utils.js.map +1 -0
- package/jest.config.ts +26 -0
- package/package.json +60 -11
- package/projects/core/plugin.ts +42 -0
- package/projects/core/resolver-hook.js +55 -0
- package/projects/core/shared/plugin-types.ts +159 -0
- package/projects/core/src/actions/check.ts +79 -0
- package/projects/core/src/actions/index.ts +5 -0
- package/projects/core/src/actions/install.ts +23 -0
- package/projects/core/src/actions/patch.ts +110 -0
- package/projects/core/src/actions/uninstall.ts +24 -0
- package/projects/core/src/actions/unpatch.ts +109 -0
- package/projects/core/src/bin/ts-patch.ts +7 -0
- package/projects/core/src/bin/tspc.ts +12 -0
- package/projects/core/src/cli/cli.ts +94 -0
- package/projects/core/src/cli/commands.ts +55 -0
- package/projects/core/src/cli/help-menu.ts +48 -0
- package/projects/core/src/cli/options.ts +83 -0
- package/projects/core/src/compiler/package.json +4 -0
- package/projects/core/src/compiler/tsc.js +19 -0
- package/projects/core/src/compiler/tsserver.js +19 -0
- package/projects/core/src/compiler/tsserverlibrary.js +19 -0
- package/projects/core/src/compiler/typescript.js +19 -0
- package/projects/core/src/config.ts +65 -0
- package/projects/core/src/index.ts +4 -0
- package/projects/core/src/module/get-live-module.ts +25 -0
- package/projects/core/src/module/index.ts +4 -0
- package/projects/core/src/module/module-file.ts +127 -0
- package/projects/core/src/module/module-source.ts +59 -0
- package/projects/core/src/module/source-section.ts +110 -0
- package/projects/core/src/module/ts-module.ts +187 -0
- package/projects/core/src/options.ts +55 -0
- package/projects/core/src/patch/get-patched-source.ts +85 -0
- package/projects/core/src/patch/patch-detail.ts +106 -0
- package/projects/core/src/patch/patch-module.ts +213 -0
- package/projects/core/src/patch/transformers/add-original-create-program.ts +129 -0
- package/projects/core/src/patch/transformers/fix-ts-early-return.ts +46 -0
- package/projects/core/src/patch/transformers/hook-tsc-exec.ts +52 -0
- package/projects/core/src/patch/transformers/index.ts +6 -0
- package/projects/core/src/patch/transformers/merge-statements.ts +61 -0
- package/projects/core/src/patch/transformers/patch-create-program.ts +68 -0
- package/projects/core/src/patch/transformers/patch-emitter.ts +75 -0
- package/projects/core/src/slice/module-slice.ts +59 -0
- package/projects/core/src/slice/ts54.ts +79 -0
- package/projects/core/src/slice/ts55.ts +80 -0
- package/projects/core/src/slice/ts552.ts +80 -0
- package/projects/core/src/system/cache.ts +48 -0
- package/projects/core/src/system/errors.ts +39 -0
- package/projects/core/src/system/index.ts +4 -0
- package/projects/core/src/system/logger.ts +53 -0
- package/projects/core/src/system/types.ts +11 -0
- package/projects/core/src/ts-package.ts +99 -0
- package/projects/core/src/utils/file-utils.ts +104 -0
- package/projects/core/src/utils/find-cache-dir.ts +122 -0
- package/projects/core/src/utils/general.ts +24 -0
- package/projects/core/src/utils/index.ts +3 -0
- package/projects/core/tsconfig.json +20 -0
- package/projects/patch/package.json +8 -0
- package/projects/patch/plugin.ts +128 -0
- package/projects/patch/src/plugin/esm-intercept.ts +141 -0
- package/projects/patch/src/plugin/plugin-creator.ts +254 -0
- package/projects/patch/src/plugin/plugin.ts +193 -0
- package/projects/patch/src/plugin/register-plugin.ts +141 -0
- package/projects/patch/src/shared.ts +59 -0
- package/projects/patch/src/ts/create-program.ts +156 -0
- package/projects/patch/src/ts/shim.ts +43 -0
- package/projects/patch/src/types/plugin-types.ts +51 -0
- package/projects/patch/src/types/typescript.ts +11 -0
- package/projects/patch/tsconfig.json +34 -0
- package/scripts/postbuild.js +66 -0
- package/test/.yarnrc +1 -0
- package/test/assets/projects/main/package.json +5 -0
- package/test/assets/projects/main/src/index.ts +0 -0
- package/test/assets/projects/main/tsconfig.json +16 -0
- package/test/assets/projects/package-config/plugin/package.json +8 -0
- package/test/assets/projects/package-config/plugin/plugin.js +9 -0
- package/test/assets/projects/package-config/plugin/transformers/transformer1.js +28 -0
- package/test/assets/projects/package-config/plugin/transformers/transformer2.js +22 -0
- package/test/assets/projects/package-config/run-transform.js +72 -0
- package/test/assets/projects/package-config/src/index.ts +6 -0
- package/test/assets/projects/package-config/tsconfig.json +13 -0
- package/test/assets/projects/path-mapping/base.ts +1 -0
- package/test/assets/projects/path-mapping/package.json +8 -0
- package/test/assets/projects/path-mapping/src/a/a.ts +1 -0
- package/test/assets/projects/path-mapping/src/b.ts +1 -0
- package/test/assets/projects/path-mapping/src/index.ts +29 -0
- package/test/assets/projects/path-mapping/tsconfig.json +18 -0
- package/test/assets/projects/path-mapping/tsconfig.plugin.json +15 -0
- package/test/assets/projects/transform/package.json +9 -0
- package/test/assets/projects/transform/run-transform.js +56 -0
- package/test/assets/projects/transform/src/index.ts +4 -0
- package/test/assets/projects/transform/transformers/cjs/js-plugin.cjs +19 -0
- package/test/assets/projects/transform/transformers/cjs/package.json +3 -0
- package/test/assets/projects/transform/transformers/cjs/plugin.cts +17 -0
- package/test/assets/projects/transform/transformers/cjs/tsconfig.json +7 -0
- package/test/assets/projects/transform/transformers/esm/js-plugin.mjs +17 -0
- package/test/assets/projects/transform/transformers/esm/package.json +3 -0
- package/test/assets/projects/transform/transformers/esm/plugin.mts +19 -0
- package/test/assets/projects/transform/transformers/esm/plugin.ts +19 -0
- package/test/assets/projects/transform/transformers/esm/tsconfig.json +7 -0
- package/test/assets/projects/transform/tsconfig.cjs.json +12 -0
- package/test/assets/projects/transform/tsconfig.cts.json +12 -0
- package/test/assets/projects/transform/tsconfig.json +9 -0
- package/test/assets/projects/transform/tsconfig.mjs.json +12 -0
- package/test/assets/projects/transform/tsconfig.mts.json +11 -0
- package/test/assets/projects/transform/tsconfig.ts.json +11 -0
- package/test/assets/projects/webpack/esm-plugin.mjs +5 -0
- package/test/assets/projects/webpack/esm-plugin.mts +5 -0
- package/test/assets/projects/webpack/hide-module.js +24 -0
- package/test/assets/projects/webpack/package.json +14 -0
- package/test/assets/projects/webpack/plugin.ts +7 -0
- package/test/assets/projects/webpack/src/index.ts +0 -0
- package/test/assets/projects/webpack/tsconfig.esm.json +8 -0
- package/test/assets/projects/webpack/tsconfig.esmts.json +8 -0
- package/test/assets/projects/webpack/tsconfig.json +14 -0
- package/test/assets/projects/webpack/webpack.config.js +24 -0
- package/test/node_modules/.bin/acorn +15 -0
- package/test/node_modules/.bin/acorn.cmd +7 -0
- package/test/node_modules/.bin/json5 +15 -0
- package/test/node_modules/.bin/json5.cmd +7 -0
- package/test/node_modules/.bin/node-which +15 -0
- package/test/node_modules/.bin/node-which.cmd +7 -0
- package/test/node_modules/.bin/resolve +15 -0
- package/test/node_modules/.bin/resolve.cmd +7 -0
- package/test/node_modules/.bin/semver +15 -0
- package/test/node_modules/.bin/semver.cmd +7 -0
- package/test/node_modules/.bin/ts-node +15 -0
- package/test/node_modules/.bin/ts-node-cwd +15 -0
- package/test/node_modules/.bin/ts-node-cwd.cmd +7 -0
- package/test/node_modules/.bin/ts-node-esm +15 -0
- package/test/node_modules/.bin/ts-node-esm.cmd +7 -0
- package/test/node_modules/.bin/ts-node-script +15 -0
- package/test/node_modules/.bin/ts-node-script.cmd +7 -0
- package/test/node_modules/.bin/ts-node-transpile-only +15 -0
- package/test/node_modules/.bin/ts-node-transpile-only.cmd +7 -0
- package/test/node_modules/.bin/ts-node.cmd +7 -0
- package/test/node_modules/.bin/ts-script +15 -0
- package/test/node_modules/.bin/ts-script.cmd +7 -0
- package/test/node_modules/.bin/tsc +15 -0
- package/test/node_modules/.bin/tsc.cmd +7 -0
- package/test/node_modules/.bin/tsserver +15 -0
- package/test/node_modules/.bin/tsserver.cmd +7 -0
- package/test/node_modules/.yarn-integrity +73 -0
- package/test/node_modules/@cspotcode/source-map-support/LICENSE.md +21 -0
- package/test/node_modules/@cspotcode/source-map-support/README.md +289 -0
- package/test/node_modules/@cspotcode/source-map-support/browser-source-map-support.js +114 -0
- package/test/node_modules/@cspotcode/source-map-support/package.json +50 -0
- package/test/node_modules/@cspotcode/source-map-support/register-hook-require.d.ts +7 -0
- package/test/node_modules/@cspotcode/source-map-support/register-hook-require.js +3 -0
- package/test/node_modules/@cspotcode/source-map-support/register.d.ts +7 -0
- package/test/node_modules/@cspotcode/source-map-support/register.js +1 -0
- package/test/node_modules/@cspotcode/source-map-support/source-map-support.d.ts +76 -0
- package/test/node_modules/@cspotcode/source-map-support/source-map-support.js +938 -0
- package/test/node_modules/@jridgewell/resolve-uri/LICENSE +19 -0
- package/test/node_modules/@jridgewell/resolve-uri/README.md +40 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs +232 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.mjs.map +1 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js +240 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/resolve-uri.umd.js.map +1 -0
- package/test/node_modules/@jridgewell/resolve-uri/dist/types/resolve-uri.d.ts +4 -0
- package/test/node_modules/@jridgewell/resolve-uri/package.json +69 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/LICENSE +19 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/README.md +264 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs +423 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.mjs.map +6 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js +464 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/dist/sourcemap-codec.umd.js.map +6 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/package.json +63 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/scopes.ts +345 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/sourcemap-codec.ts +111 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/strings.ts +65 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/src/vlq.ts +55 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts +50 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts +50 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/scopes.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts +9 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts +9 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/sourcemap-codec.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts +16 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts +16 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/strings.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts +7 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.cts.map +1 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts +7 -0
- package/test/node_modules/@jridgewell/sourcemap-codec/types/vlq.d.mts.map +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/LICENSE +19 -0
- package/test/node_modules/@jridgewell/trace-mapping/README.md +193 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs +514 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.mjs.map +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js +528 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/trace-mapping.umd.js.map +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/any-map.d.ts +8 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/binary-search.d.ts +32 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/by-source.d.ts +7 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/resolve.d.ts +1 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/sort.d.ts +2 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/sourcemap-segment.d.ts +16 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/strip-filename.d.ts +4 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/trace-mapping.d.ts +70 -0
- package/test/node_modules/@jridgewell/trace-mapping/dist/types/types.d.ts +85 -0
- package/test/node_modules/@jridgewell/trace-mapping/package.json +70 -0
- package/test/node_modules/@tsconfig/node10/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node10/README.md +38 -0
- package/test/node_modules/@tsconfig/node10/package.json +15 -0
- package/test/node_modules/@tsconfig/node10/tsconfig.json +14 -0
- package/test/node_modules/@tsconfig/node12/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node12/README.md +40 -0
- package/test/node_modules/@tsconfig/node12/package.json +1 -0
- package/test/node_modules/@tsconfig/node12/tsconfig.json +16 -0
- package/test/node_modules/@tsconfig/node14/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node14/README.md +40 -0
- package/test/node_modules/@tsconfig/node14/package.json +1 -0
- package/test/node_modules/@tsconfig/node14/tsconfig.json +16 -0
- package/test/node_modules/@tsconfig/node16/LICENSE +21 -0
- package/test/node_modules/@tsconfig/node16/README.md +40 -0
- package/test/node_modules/@tsconfig/node16/package.json +15 -0
- package/test/node_modules/@tsconfig/node16/tsconfig.json +16 -0
- package/test/node_modules/@types/fs-extra/LICENSE +21 -0
- package/test/node_modules/@types/fs-extra/README.md +16 -0
- package/test/node_modules/@types/fs-extra/index.d.ts +563 -0
- package/test/node_modules/@types/fs-extra/package.json +67 -0
- package/test/node_modules/@types/node/LICENSE +21 -0
- package/test/node_modules/@types/node/README.md +15 -0
- package/test/node_modules/@types/node/assert/strict.d.ts +105 -0
- package/test/node_modules/@types/node/assert.d.ts +955 -0
- package/test/node_modules/@types/node/async_hooks.d.ts +623 -0
- package/test/node_modules/@types/node/buffer.buffer.d.ts +466 -0
- package/test/node_modules/@types/node/buffer.d.ts +1810 -0
- package/test/node_modules/@types/node/child_process.d.ts +1433 -0
- package/test/node_modules/@types/node/cluster.d.ts +486 -0
- package/test/node_modules/@types/node/compatibility/iterators.d.ts +21 -0
- package/test/node_modules/@types/node/console.d.ts +151 -0
- package/test/node_modules/@types/node/constants.d.ts +20 -0
- package/test/node_modules/@types/node/crypto.d.ts +4065 -0
- package/test/node_modules/@types/node/dgram.d.ts +564 -0
- package/test/node_modules/@types/node/diagnostics_channel.d.ts +576 -0
- package/test/node_modules/@types/node/dns/promises.d.ts +503 -0
- package/test/node_modules/@types/node/dns.d.ts +922 -0
- package/test/node_modules/@types/node/domain.d.ts +166 -0
- package/test/node_modules/@types/node/events.d.ts +1047 -0
- package/test/node_modules/@types/node/fs/promises.d.ts +1329 -0
- package/test/node_modules/@types/node/fs.d.ts +4678 -0
- package/test/node_modules/@types/node/globals.d.ts +150 -0
- package/test/node_modules/@types/node/globals.typedarray.d.ts +101 -0
- package/test/node_modules/@types/node/http.d.ts +2188 -0
- package/test/node_modules/@types/node/http2.d.ts +2480 -0
- package/test/node_modules/@types/node/https.d.ts +405 -0
- package/test/node_modules/@types/node/index.d.ts +115 -0
- package/test/node_modules/@types/node/inspector/promises.d.ts +41 -0
- package/test/node_modules/@types/node/inspector.d.ts +269 -0
- package/test/node_modules/@types/node/inspector.generated.d.ts +4401 -0
- package/test/node_modules/@types/node/module.d.ts +757 -0
- package/test/node_modules/@types/node/net.d.ts +933 -0
- package/test/node_modules/@types/node/os.d.ts +507 -0
- package/test/node_modules/@types/node/package.json +155 -0
- package/test/node_modules/@types/node/path/posix.d.ts +8 -0
- package/test/node_modules/@types/node/path/win32.d.ts +8 -0
- package/test/node_modules/@types/node/path.d.ts +187 -0
- package/test/node_modules/@types/node/perf_hooks.d.ts +643 -0
- package/test/node_modules/@types/node/process.d.ts +2175 -0
- package/test/node_modules/@types/node/punycode.d.ts +117 -0
- package/test/node_modules/@types/node/querystring.d.ts +152 -0
- package/test/node_modules/@types/node/quic.d.ts +910 -0
- package/test/node_modules/@types/node/readline/promises.d.ts +161 -0
- package/test/node_modules/@types/node/readline.d.ts +542 -0
- package/test/node_modules/@types/node/repl.d.ts +415 -0
- package/test/node_modules/@types/node/sea.d.ts +162 -0
- package/test/node_modules/@types/node/sqlite.d.ts +1065 -0
- package/test/node_modules/@types/node/stream/consumers.d.ts +38 -0
- package/test/node_modules/@types/node/stream/promises.d.ts +211 -0
- package/test/node_modules/@types/node/stream/web.d.ts +296 -0
- package/test/node_modules/@types/node/stream.d.ts +1770 -0
- package/test/node_modules/@types/node/string_decoder.d.ts +67 -0
- package/test/node_modules/@types/node/test/reporters.d.ts +96 -0
- package/test/node_modules/@types/node/test.d.ts +2275 -0
- package/test/node_modules/@types/node/timers/promises.d.ts +108 -0
- package/test/node_modules/@types/node/timers.d.ts +159 -0
- package/test/node_modules/@types/node/tls.d.ts +1203 -0
- package/test/node_modules/@types/node/trace_events.d.ts +197 -0
- package/test/node_modules/@types/node/ts5.6/buffer.buffer.d.ts +462 -0
- package/test/node_modules/@types/node/ts5.6/compatibility/float16array.d.ts +71 -0
- package/test/node_modules/@types/node/ts5.6/globals.typedarray.d.ts +36 -0
- package/test/node_modules/@types/node/ts5.6/index.d.ts +117 -0
- package/test/node_modules/@types/node/ts5.7/compatibility/float16array.d.ts +72 -0
- package/test/node_modules/@types/node/ts5.7/index.d.ts +117 -0
- package/test/node_modules/@types/node/tty.d.ts +250 -0
- package/test/node_modules/@types/node/url.d.ts +541 -0
- package/test/node_modules/@types/node/util/types.d.ts +558 -0
- package/test/node_modules/@types/node/util.d.ts +1687 -0
- package/test/node_modules/@types/node/v8.d.ts +988 -0
- package/test/node_modules/@types/node/vm.d.ts +1208 -0
- package/test/node_modules/@types/node/wasi.d.ts +202 -0
- package/test/node_modules/@types/node/web-globals/abortcontroller.d.ts +59 -0
- package/test/node_modules/@types/node/web-globals/blob.d.ts +23 -0
- package/test/node_modules/@types/node/web-globals/console.d.ts +9 -0
- package/test/node_modules/@types/node/web-globals/crypto.d.ts +39 -0
- package/test/node_modules/@types/node/web-globals/domexception.d.ts +68 -0
- package/test/node_modules/@types/node/web-globals/encoding.d.ts +11 -0
- package/test/node_modules/@types/node/web-globals/events.d.ts +106 -0
- package/test/node_modules/@types/node/web-globals/fetch.d.ts +69 -0
- package/test/node_modules/@types/node/web-globals/importmeta.d.ts +13 -0
- package/test/node_modules/@types/node/web-globals/messaging.d.ts +23 -0
- package/test/node_modules/@types/node/web-globals/navigator.d.ts +25 -0
- package/test/node_modules/@types/node/web-globals/performance.d.ts +45 -0
- package/test/node_modules/@types/node/web-globals/storage.d.ts +24 -0
- package/test/node_modules/@types/node/web-globals/streams.d.ts +115 -0
- package/test/node_modules/@types/node/web-globals/timers.d.ts +44 -0
- package/test/node_modules/@types/node/web-globals/url.d.ts +24 -0
- package/test/node_modules/@types/node/worker_threads.d.ts +717 -0
- package/test/node_modules/@types/node/zlib.d.ts +682 -0
- package/test/node_modules/acorn/CHANGELOG.md +972 -0
- package/test/node_modules/acorn/LICENSE +21 -0
- package/test/node_modules/acorn/README.md +301 -0
- package/test/node_modules/acorn/bin/acorn +4 -0
- package/test/node_modules/acorn/dist/acorn.d.mts +883 -0
- package/test/node_modules/acorn/dist/acorn.d.ts +883 -0
- package/test/node_modules/acorn/dist/acorn.js +6295 -0
- package/test/node_modules/acorn/dist/acorn.mjs +6266 -0
- package/test/node_modules/acorn/dist/bin.js +90 -0
- package/test/node_modules/acorn/package.json +50 -0
- package/test/node_modules/acorn-walk/CHANGELOG.md +209 -0
- package/test/node_modules/acorn-walk/LICENSE +21 -0
- package/test/node_modules/acorn-walk/README.md +124 -0
- package/test/node_modules/acorn-walk/dist/walk.d.mts +152 -0
- package/test/node_modules/acorn-walk/dist/walk.d.ts +152 -0
- package/test/node_modules/acorn-walk/dist/walk.js +485 -0
- package/test/node_modules/acorn-walk/dist/walk.mjs +467 -0
- package/test/node_modules/acorn-walk/node_modules/.bin/acorn +15 -0
- package/test/node_modules/acorn-walk/node_modules/.bin/acorn.cmd +7 -0
- package/test/node_modules/acorn-walk/package.json +50 -0
- package/test/node_modules/ansi-regex/index.d.ts +37 -0
- package/test/node_modules/ansi-regex/index.js +10 -0
- package/test/node_modules/ansi-regex/license +9 -0
- package/test/node_modules/ansi-regex/package.json +55 -0
- package/test/node_modules/ansi-regex/readme.md +78 -0
- package/test/node_modules/ansi-styles/index.d.ts +345 -0
- package/test/node_modules/ansi-styles/index.js +163 -0
- package/test/node_modules/ansi-styles/license +9 -0
- package/test/node_modules/ansi-styles/package.json +56 -0
- package/test/node_modules/ansi-styles/readme.md +152 -0
- package/test/node_modules/arg/LICENSE.md +21 -0
- package/test/node_modules/arg/README.md +280 -0
- package/test/node_modules/arg/index.d.ts +31 -0
- package/test/node_modules/arg/index.js +144 -0
- package/test/node_modules/arg/package.json +30 -0
- package/test/node_modules/chalk/index.d.ts +415 -0
- package/test/node_modules/chalk/license +9 -0
- package/test/node_modules/chalk/package.json +68 -0
- package/test/node_modules/chalk/readme.md +341 -0
- package/test/node_modules/chalk/source/index.js +229 -0
- package/test/node_modules/chalk/source/templates.js +134 -0
- package/test/node_modules/chalk/source/util.js +39 -0
- package/test/node_modules/color-convert/CHANGELOG.md +54 -0
- package/test/node_modules/color-convert/LICENSE +21 -0
- package/test/node_modules/color-convert/README.md +68 -0
- package/test/node_modules/color-convert/conversions.js +839 -0
- package/test/node_modules/color-convert/index.js +81 -0
- package/test/node_modules/color-convert/package.json +48 -0
- package/test/node_modules/color-convert/route.js +97 -0
- package/test/node_modules/color-name/LICENSE +8 -0
- package/test/node_modules/color-name/README.md +11 -0
- package/test/node_modules/color-name/index.js +152 -0
- package/test/node_modules/color-name/package.json +28 -0
- package/test/node_modules/create-require/CHANGELOG.md +33 -0
- package/test/node_modules/create-require/LICENSE +25 -0
- package/test/node_modules/create-require/README.md +46 -0
- package/test/node_modules/create-require/create-require.d.ts +3 -0
- package/test/node_modules/create-require/create-require.js +49 -0
- package/test/node_modules/create-require/package.json +39 -0
- package/test/node_modules/diff/CONTRIBUTING.md +39 -0
- package/test/node_modules/diff/LICENSE +31 -0
- package/test/node_modules/diff/README.md +207 -0
- package/test/node_modules/diff/dist/diff.js +1548 -0
- package/test/node_modules/diff/dist/diff.min.js +1 -0
- package/test/node_modules/diff/lib/convert/dmp.js +32 -0
- package/test/node_modules/diff/lib/convert/xml.js +42 -0
- package/test/node_modules/diff/lib/diff/array.js +45 -0
- package/test/node_modules/diff/lib/diff/base.js +304 -0
- package/test/node_modules/diff/lib/diff/character.js +37 -0
- package/test/node_modules/diff/lib/diff/css.js +41 -0
- package/test/node_modules/diff/lib/diff/json.js +163 -0
- package/test/node_modules/diff/lib/diff/line.js +89 -0
- package/test/node_modules/diff/lib/diff/sentence.js +41 -0
- package/test/node_modules/diff/lib/diff/word.js +107 -0
- package/test/node_modules/diff/lib/index.es6.js +1519 -0
- package/test/node_modules/diff/lib/index.js +216 -0
- package/test/node_modules/diff/lib/patch/apply.js +243 -0
- package/test/node_modules/diff/lib/patch/create.js +247 -0
- package/test/node_modules/diff/lib/patch/merge.js +609 -0
- package/test/node_modules/diff/lib/patch/parse.js +156 -0
- package/test/node_modules/diff/lib/util/array.js +32 -0
- package/test/node_modules/diff/lib/util/distance-iterator.js +57 -0
- package/test/node_modules/diff/lib/util/params.js +24 -0
- package/test/node_modules/diff/package.json +74 -0
- package/test/node_modules/diff/release-notes.md +261 -0
- package/test/node_modules/diff/runtime.js +3 -0
- package/test/node_modules/fs-extra/LICENSE +15 -0
- package/test/node_modules/fs-extra/README.md +262 -0
- package/test/node_modules/fs-extra/lib/copy/copy-sync.js +169 -0
- package/test/node_modules/fs-extra/lib/copy/copy.js +235 -0
- package/test/node_modules/fs-extra/lib/copy/index.js +7 -0
- package/test/node_modules/fs-extra/lib/empty/index.js +39 -0
- package/test/node_modules/fs-extra/lib/ensure/file.js +69 -0
- package/test/node_modules/fs-extra/lib/ensure/index.js +23 -0
- package/test/node_modules/fs-extra/lib/ensure/link.js +64 -0
- package/test/node_modules/fs-extra/lib/ensure/symlink-paths.js +99 -0
- package/test/node_modules/fs-extra/lib/ensure/symlink-type.js +31 -0
- package/test/node_modules/fs-extra/lib/ensure/symlink.js +82 -0
- package/test/node_modules/fs-extra/lib/fs/index.js +128 -0
- package/test/node_modules/fs-extra/lib/index.js +16 -0
- package/test/node_modules/fs-extra/lib/json/index.js +16 -0
- package/test/node_modules/fs-extra/lib/json/jsonfile.js +11 -0
- package/test/node_modules/fs-extra/lib/json/output-json-sync.js +12 -0
- package/test/node_modules/fs-extra/lib/json/output-json.js +12 -0
- package/test/node_modules/fs-extra/lib/mkdirs/index.js +14 -0
- package/test/node_modules/fs-extra/lib/mkdirs/make-dir.js +27 -0
- package/test/node_modules/fs-extra/lib/mkdirs/utils.js +21 -0
- package/test/node_modules/fs-extra/lib/move/index.js +7 -0
- package/test/node_modules/fs-extra/lib/move/move-sync.js +54 -0
- package/test/node_modules/fs-extra/lib/move/move.js +75 -0
- package/test/node_modules/fs-extra/lib/output-file/index.js +40 -0
- package/test/node_modules/fs-extra/lib/path-exists/index.js +12 -0
- package/test/node_modules/fs-extra/lib/remove/index.js +22 -0
- package/test/node_modules/fs-extra/lib/remove/rimraf.js +302 -0
- package/test/node_modules/fs-extra/lib/util/stat.js +154 -0
- package/test/node_modules/fs-extra/lib/util/utimes.js +26 -0
- package/test/node_modules/fs-extra/package.json +67 -0
- package/test/node_modules/function-bind/.eslintrc +21 -0
- package/test/node_modules/function-bind/.github/FUNDING.yml +12 -0
- package/test/node_modules/function-bind/.github/SECURITY.md +3 -0
- package/test/node_modules/function-bind/.nycrc +13 -0
- package/test/node_modules/function-bind/CHANGELOG.md +136 -0
- package/test/node_modules/function-bind/LICENSE +20 -0
- package/test/node_modules/function-bind/README.md +46 -0
- package/test/node_modules/function-bind/implementation.js +84 -0
- package/test/node_modules/function-bind/index.js +5 -0
- package/test/node_modules/function-bind/package.json +87 -0
- package/test/node_modules/function-bind/test/.eslintrc +9 -0
- package/test/node_modules/function-bind/test/index.js +252 -0
- package/test/node_modules/global-prefix/LICENSE +21 -0
- package/test/node_modules/global-prefix/README.md +92 -0
- package/test/node_modules/global-prefix/index.js +85 -0
- package/test/node_modules/global-prefix/node_modules/.bin/node-which +15 -0
- package/test/node_modules/global-prefix/node_modules/.bin/node-which.cmd +7 -0
- package/test/node_modules/global-prefix/package.json +49 -0
- package/test/node_modules/graceful-fs/LICENSE +15 -0
- package/test/node_modules/graceful-fs/README.md +143 -0
- package/test/node_modules/graceful-fs/clone.js +23 -0
- package/test/node_modules/graceful-fs/graceful-fs.js +448 -0
- package/test/node_modules/graceful-fs/legacy-streams.js +118 -0
- package/test/node_modules/graceful-fs/package.json +53 -0
- package/test/node_modules/graceful-fs/polyfills.js +355 -0
- package/test/node_modules/has-flag/index.d.ts +39 -0
- package/test/node_modules/has-flag/index.js +8 -0
- package/test/node_modules/has-flag/license +9 -0
- package/test/node_modules/has-flag/package.json +46 -0
- package/test/node_modules/has-flag/readme.md +89 -0
- package/test/node_modules/hasown/.eslintrc +5 -0
- package/test/node_modules/hasown/.github/FUNDING.yml +12 -0
- package/test/node_modules/hasown/.nycrc +13 -0
- package/test/node_modules/hasown/CHANGELOG.md +40 -0
- package/test/node_modules/hasown/LICENSE +21 -0
- package/test/node_modules/hasown/README.md +40 -0
- package/test/node_modules/hasown/index.d.ts +3 -0
- package/test/node_modules/hasown/index.js +8 -0
- package/test/node_modules/hasown/package.json +92 -0
- package/test/node_modules/hasown/tsconfig.json +6 -0
- package/test/node_modules/ini/LICENSE +15 -0
- package/test/node_modules/ini/README.md +180 -0
- package/test/node_modules/ini/lib/ini.js +280 -0
- package/test/node_modules/ini/package.json +45 -0
- package/test/node_modules/is-core-module/.eslintrc +18 -0
- package/test/node_modules/is-core-module/.nycrc +9 -0
- package/test/node_modules/is-core-module/CHANGELOG.md +218 -0
- package/test/node_modules/is-core-module/LICENSE +20 -0
- package/test/node_modules/is-core-module/README.md +40 -0
- package/test/node_modules/is-core-module/core.json +162 -0
- package/test/node_modules/is-core-module/index.js +69 -0
- package/test/node_modules/is-core-module/package.json +76 -0
- package/test/node_modules/is-core-module/test/index.js +157 -0
- package/test/node_modules/isexe/LICENSE.md +55 -0
- package/test/node_modules/isexe/README.md +80 -0
- package/test/node_modules/isexe/dist/commonjs/index.d.ts +14 -0
- package/test/node_modules/isexe/dist/commonjs/index.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/index.js +56 -0
- package/test/node_modules/isexe/dist/commonjs/index.js.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/index.min.js +2 -0
- package/test/node_modules/isexe/dist/commonjs/index.min.js.map +7 -0
- package/test/node_modules/isexe/dist/commonjs/options.d.ts +32 -0
- package/test/node_modules/isexe/dist/commonjs/options.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/options.js +3 -0
- package/test/node_modules/isexe/dist/commonjs/options.js.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/package.json +3 -0
- package/test/node_modules/isexe/dist/commonjs/posix.d.ts +18 -0
- package/test/node_modules/isexe/dist/commonjs/posix.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/posix.js +67 -0
- package/test/node_modules/isexe/dist/commonjs/posix.js.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/win32.d.ts +18 -0
- package/test/node_modules/isexe/dist/commonjs/win32.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/commonjs/win32.js +63 -0
- package/test/node_modules/isexe/dist/commonjs/win32.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/index.d.ts +14 -0
- package/test/node_modules/isexe/dist/esm/index.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/index.js +16 -0
- package/test/node_modules/isexe/dist/esm/index.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/index.min.js +2 -0
- package/test/node_modules/isexe/dist/esm/index.min.js.map +7 -0
- package/test/node_modules/isexe/dist/esm/options.d.ts +32 -0
- package/test/node_modules/isexe/dist/esm/options.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/options.js +2 -0
- package/test/node_modules/isexe/dist/esm/options.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/package.json +3 -0
- package/test/node_modules/isexe/dist/esm/posix.d.ts +18 -0
- package/test/node_modules/isexe/dist/esm/posix.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/posix.js +62 -0
- package/test/node_modules/isexe/dist/esm/posix.js.map +1 -0
- package/test/node_modules/isexe/dist/esm/win32.d.ts +18 -0
- package/test/node_modules/isexe/dist/esm/win32.d.ts.map +1 -0
- package/test/node_modules/isexe/dist/esm/win32.js +58 -0
- package/test/node_modules/isexe/dist/esm/win32.js.map +1 -0
- package/test/node_modules/isexe/package.json +78 -0
- package/test/node_modules/json5/LICENSE.md +23 -0
- package/test/node_modules/json5/README.md +282 -0
- package/test/node_modules/json5/dist/index.js +1737 -0
- package/test/node_modules/json5/dist/index.min.js +1 -0
- package/test/node_modules/json5/dist/index.min.mjs +1 -0
- package/test/node_modules/json5/dist/index.mjs +1426 -0
- package/test/node_modules/json5/lib/cli.js +152 -0
- package/test/node_modules/json5/lib/index.d.ts +4 -0
- package/test/node_modules/json5/lib/index.js +9 -0
- package/test/node_modules/json5/lib/parse.d.ts +15 -0
- package/test/node_modules/json5/lib/parse.js +1114 -0
- package/test/node_modules/json5/lib/register.js +13 -0
- package/test/node_modules/json5/lib/require.js +4 -0
- package/test/node_modules/json5/lib/stringify.d.ts +89 -0
- package/test/node_modules/json5/lib/stringify.js +261 -0
- package/test/node_modules/json5/lib/unicode.d.ts +3 -0
- package/test/node_modules/json5/lib/unicode.js +4 -0
- package/test/node_modules/json5/lib/util.d.ts +5 -0
- package/test/node_modules/json5/lib/util.js +35 -0
- package/test/node_modules/json5/package.json +72 -0
- package/test/node_modules/jsonfile/LICENSE +15 -0
- package/test/node_modules/jsonfile/README.md +230 -0
- package/test/node_modules/jsonfile/index.js +88 -0
- package/test/node_modules/jsonfile/package.json +40 -0
- package/test/node_modules/jsonfile/utils.js +14 -0
- package/test/node_modules/kind-of/CHANGELOG.md +160 -0
- package/test/node_modules/kind-of/LICENSE +21 -0
- package/test/node_modules/kind-of/README.md +367 -0
- package/test/node_modules/kind-of/index.js +129 -0
- package/test/node_modules/kind-of/package.json +88 -0
- package/test/node_modules/make-error/LICENSE +5 -0
- package/test/node_modules/make-error/README.md +112 -0
- package/test/node_modules/make-error/dist/make-error.js +1 -0
- package/test/node_modules/make-error/index.d.ts +47 -0
- package/test/node_modules/make-error/index.js +151 -0
- package/test/node_modules/make-error/package.json +62 -0
- package/test/node_modules/minimist/.eslintrc +29 -0
- package/test/node_modules/minimist/.github/FUNDING.yml +12 -0
- package/test/node_modules/minimist/.nycrc +14 -0
- package/test/node_modules/minimist/CHANGELOG.md +298 -0
- package/test/node_modules/minimist/LICENSE +18 -0
- package/test/node_modules/minimist/README.md +121 -0
- package/test/node_modules/minimist/example/parse.js +4 -0
- package/test/node_modules/minimist/index.js +263 -0
- package/test/node_modules/minimist/package.json +75 -0
- package/test/node_modules/minimist/test/all_bool.js +34 -0
- package/test/node_modules/minimist/test/bool.js +177 -0
- package/test/node_modules/minimist/test/dash.js +43 -0
- package/test/node_modules/minimist/test/default_bool.js +37 -0
- package/test/node_modules/minimist/test/dotted.js +24 -0
- package/test/node_modules/minimist/test/kv_short.js +32 -0
- package/test/node_modules/minimist/test/long.js +33 -0
- package/test/node_modules/minimist/test/num.js +38 -0
- package/test/node_modules/minimist/test/parse.js +209 -0
- package/test/node_modules/minimist/test/parse_modified.js +11 -0
- package/test/node_modules/minimist/test/proto.js +64 -0
- package/test/node_modules/minimist/test/short.js +69 -0
- package/test/node_modules/minimist/test/stop_early.js +17 -0
- package/test/node_modules/minimist/test/unknown.js +104 -0
- package/test/node_modules/minimist/test/whitespace.js +10 -0
- package/test/node_modules/path-parse/LICENSE +21 -0
- package/test/node_modules/path-parse/README.md +42 -0
- package/test/node_modules/path-parse/index.js +75 -0
- package/test/node_modules/path-parse/package.json +33 -0
- package/test/node_modules/resolve/.editorconfig +37 -0
- package/test/node_modules/resolve/.eslintrc +65 -0
- package/test/node_modules/resolve/.github/FUNDING.yml +12 -0
- package/test/node_modules/resolve/.github/INCIDENT_RESPONSE_PROCESS.md +119 -0
- package/test/node_modules/resolve/.github/THREAT_MODEL.md +74 -0
- package/test/node_modules/resolve/LICENSE +21 -0
- package/test/node_modules/resolve/SECURITY.md +11 -0
- package/test/node_modules/resolve/async.js +3 -0
- package/test/node_modules/resolve/bin/resolve +50 -0
- package/test/node_modules/resolve/example/async.js +5 -0
- package/test/node_modules/resolve/example/sync.js +3 -0
- package/test/node_modules/resolve/index.js +6 -0
- package/test/node_modules/resolve/lib/async.js +333 -0
- package/test/node_modules/resolve/lib/caller.js +8 -0
- package/test/node_modules/resolve/lib/core.js +12 -0
- package/test/node_modules/resolve/lib/core.json +162 -0
- package/test/node_modules/resolve/lib/homedir.js +24 -0
- package/test/node_modules/resolve/lib/is-core.js +5 -0
- package/test/node_modules/resolve/lib/node-modules-paths.js +45 -0
- package/test/node_modules/resolve/lib/normalize-options.js +10 -0
- package/test/node_modules/resolve/lib/sync.js +212 -0
- package/test/node_modules/resolve/package.json +75 -0
- package/test/node_modules/resolve/readme.markdown +301 -0
- package/test/node_modules/resolve/sync.js +3 -0
- package/test/node_modules/resolve/test/core.js +88 -0
- package/test/node_modules/resolve/test/dotdot/abc/index.js +2 -0
- package/test/node_modules/resolve/test/dotdot/index.js +1 -0
- package/test/node_modules/resolve/test/dotdot.js +29 -0
- package/test/node_modules/resolve/test/faulty_basedir.js +29 -0
- package/test/node_modules/resolve/test/filter.js +34 -0
- package/test/node_modules/resolve/test/filter_sync.js +33 -0
- package/test/node_modules/resolve/test/home_paths.js +127 -0
- package/test/node_modules/resolve/test/home_paths_sync.js +114 -0
- package/test/node_modules/resolve/test/mock.js +315 -0
- package/test/node_modules/resolve/test/mock_sync.js +214 -0
- package/test/node_modules/resolve/test/module_dir/xmodules/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/module_dir/ymodules/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/module_dir/zmodules/bbb/main.js +1 -0
- package/test/node_modules/resolve/test/module_dir/zmodules/bbb/package.json +3 -0
- package/test/node_modules/resolve/test/module_dir.js +56 -0
- package/test/node_modules/resolve/test/node-modules-paths.js +143 -0
- package/test/node_modules/resolve/test/node_path/x/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/node_path/x/ccc/index.js +1 -0
- package/test/node_modules/resolve/test/node_path/y/bbb/index.js +1 -0
- package/test/node_modules/resolve/test/node_path/y/ccc/index.js +1 -0
- package/test/node_modules/resolve/test/node_path.js +70 -0
- package/test/node_modules/resolve/test/nonstring.js +9 -0
- package/test/node_modules/resolve/test/pathfilter/deep_ref/main.js +0 -0
- package/test/node_modules/resolve/test/pathfilter.js +75 -0
- package/test/node_modules/resolve/test/precedence/aaa/index.js +1 -0
- package/test/node_modules/resolve/test/precedence/aaa/main.js +1 -0
- package/test/node_modules/resolve/test/precedence/aaa.js +1 -0
- package/test/node_modules/resolve/test/precedence/bbb/main.js +1 -0
- package/test/node_modules/resolve/test/precedence/bbb.js +1 -0
- package/test/node_modules/resolve/test/precedence.js +23 -0
- package/test/node_modules/resolve/test/resolver/baz/doom.js +0 -0
- package/test/node_modules/resolve/test/resolver/baz/package.json +4 -0
- package/test/node_modules/resolve/test/resolver/baz/quux.js +1 -0
- package/test/node_modules/resolve/test/resolver/browser_field/a.js +0 -0
- package/test/node_modules/resolve/test/resolver/browser_field/b.js +0 -0
- package/test/node_modules/resolve/test/resolver/browser_field/package.json +5 -0
- package/test/node_modules/resolve/test/resolver/cup.coffee +1 -0
- package/test/node_modules/resolve/test/resolver/dot_main/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/dot_main/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/dot_slash_main/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/dot_slash_main/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/false_main/index.js +0 -0
- package/test/node_modules/resolve/test/resolver/false_main/package.json +4 -0
- package/test/node_modules/resolve/test/resolver/foo.js +1 -0
- package/test/node_modules/resolve/test/resolver/incorrect_main/index.js +2 -0
- package/test/node_modules/resolve/test/resolver/incorrect_main/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/invalid_main/package.json +7 -0
- package/test/node_modules/resolve/test/resolver/mug.coffee +0 -0
- package/test/node_modules/resolve/test/resolver/mug.js +0 -0
- package/test/node_modules/resolve/test/resolver/multirepo/lerna.json +6 -0
- package/test/node_modules/resolve/test/resolver/multirepo/package.json +20 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/index.js +35 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-a/package.json +14 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/index.js +0 -0
- package/test/node_modules/resolve/test/resolver/multirepo/packages/package-b/package.json +14 -0
- package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/async.js +26 -0
- package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/package.json +15 -0
- package/test/node_modules/resolve/test/resolver/nested_symlinks/mylib/sync.js +12 -0
- package/test/node_modules/resolve/test/resolver/other_path/lib/other-lib.js +0 -0
- package/test/node_modules/resolve/test/resolver/other_path/root.js +0 -0
- package/test/node_modules/resolve/test/resolver/quux/foo/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/same_names/foo/index.js +1 -0
- package/test/node_modules/resolve/test/resolver/same_names/foo.js +1 -0
- package/test/node_modules/resolve/test/resolver/symlinked/_/node_modules/foo.js +0 -0
- package/test/node_modules/resolve/test/resolver/symlinked/_/symlink_target/.gitkeep +0 -0
- package/test/node_modules/resolve/test/resolver/symlinked/package/bar.js +1 -0
- package/test/node_modules/resolve/test/resolver/symlinked/package/package.json +3 -0
- package/test/node_modules/resolve/test/resolver/without_basedir/main.js +5 -0
- package/test/node_modules/resolve/test/resolver.js +597 -0
- package/test/node_modules/resolve/test/resolver_sync.js +730 -0
- package/test/node_modules/resolve/test/shadowed_core/node_modules/util/index.js +0 -0
- package/test/node_modules/resolve/test/shadowed_core.js +54 -0
- package/test/node_modules/resolve/test/subdirs.js +13 -0
- package/test/node_modules/resolve/test/symlinks.js +176 -0
- package/test/node_modules/semver/LICENSE +15 -0
- package/test/node_modules/semver/README.md +665 -0
- package/test/node_modules/semver/bin/semver.js +191 -0
- package/test/node_modules/semver/classes/comparator.js +143 -0
- package/test/node_modules/semver/classes/index.js +7 -0
- package/test/node_modules/semver/classes/range.js +557 -0
- package/test/node_modules/semver/classes/semver.js +333 -0
- package/test/node_modules/semver/functions/clean.js +8 -0
- package/test/node_modules/semver/functions/cmp.js +54 -0
- package/test/node_modules/semver/functions/coerce.js +62 -0
- package/test/node_modules/semver/functions/compare-build.js +9 -0
- package/test/node_modules/semver/functions/compare-loose.js +5 -0
- package/test/node_modules/semver/functions/compare.js +7 -0
- package/test/node_modules/semver/functions/diff.js +60 -0
- package/test/node_modules/semver/functions/eq.js +5 -0
- package/test/node_modules/semver/functions/gt.js +5 -0
- package/test/node_modules/semver/functions/gte.js +5 -0
- package/test/node_modules/semver/functions/inc.js +21 -0
- package/test/node_modules/semver/functions/lt.js +5 -0
- package/test/node_modules/semver/functions/lte.js +5 -0
- package/test/node_modules/semver/functions/major.js +5 -0
- package/test/node_modules/semver/functions/minor.js +5 -0
- package/test/node_modules/semver/functions/neq.js +5 -0
- package/test/node_modules/semver/functions/parse.js +18 -0
- package/test/node_modules/semver/functions/patch.js +5 -0
- package/test/node_modules/semver/functions/prerelease.js +8 -0
- package/test/node_modules/semver/functions/rcompare.js +5 -0
- package/test/node_modules/semver/functions/rsort.js +5 -0
- package/test/node_modules/semver/functions/satisfies.js +12 -0
- package/test/node_modules/semver/functions/sort.js +5 -0
- package/test/node_modules/semver/functions/valid.js +8 -0
- package/test/node_modules/semver/index.js +91 -0
- package/test/node_modules/semver/internal/constants.js +37 -0
- package/test/node_modules/semver/internal/debug.js +11 -0
- package/test/node_modules/semver/internal/identifiers.js +29 -0
- package/test/node_modules/semver/internal/lrucache.js +42 -0
- package/test/node_modules/semver/internal/parse-options.js +17 -0
- package/test/node_modules/semver/internal/re.js +223 -0
- package/test/node_modules/semver/package.json +78 -0
- package/test/node_modules/semver/preload.js +4 -0
- package/test/node_modules/semver/range.bnf +16 -0
- package/test/node_modules/semver/ranges/gtr.js +6 -0
- package/test/node_modules/semver/ranges/intersects.js +9 -0
- package/test/node_modules/semver/ranges/ltr.js +6 -0
- package/test/node_modules/semver/ranges/max-satisfying.js +27 -0
- package/test/node_modules/semver/ranges/min-satisfying.js +26 -0
- package/test/node_modules/semver/ranges/min-version.js +63 -0
- package/test/node_modules/semver/ranges/outside.js +82 -0
- package/test/node_modules/semver/ranges/simplify.js +49 -0
- package/test/node_modules/semver/ranges/subset.js +249 -0
- package/test/node_modules/semver/ranges/to-comparators.js +10 -0
- package/test/node_modules/semver/ranges/valid.js +13 -0
- package/test/node_modules/strip-ansi/index.d.ts +17 -0
- package/test/node_modules/strip-ansi/index.js +4 -0
- package/test/node_modules/strip-ansi/license +9 -0
- package/test/node_modules/strip-ansi/package.json +54 -0
- package/test/node_modules/strip-ansi/readme.md +46 -0
- package/test/node_modules/strip-bom/index.js +14 -0
- package/test/node_modules/strip-bom/license +21 -0
- package/test/node_modules/strip-bom/package.json +40 -0
- package/test/node_modules/strip-bom/readme.md +36 -0
- package/test/node_modules/supports-color/browser.js +5 -0
- package/test/node_modules/supports-color/index.js +135 -0
- package/test/node_modules/supports-color/license +9 -0
- package/test/node_modules/supports-color/package.json +53 -0
- package/test/node_modules/supports-color/readme.md +76 -0
- package/test/node_modules/supports-preserve-symlinks-flag/.eslintrc +14 -0
- package/test/node_modules/supports-preserve-symlinks-flag/.github/FUNDING.yml +12 -0
- package/test/node_modules/supports-preserve-symlinks-flag/.nycrc +9 -0
- package/test/node_modules/supports-preserve-symlinks-flag/CHANGELOG.md +22 -0
- package/test/node_modules/supports-preserve-symlinks-flag/LICENSE +21 -0
- package/test/node_modules/supports-preserve-symlinks-flag/README.md +42 -0
- package/test/node_modules/supports-preserve-symlinks-flag/browser.js +3 -0
- package/test/node_modules/supports-preserve-symlinks-flag/index.js +9 -0
- package/test/node_modules/supports-preserve-symlinks-flag/package.json +70 -0
- package/test/node_modules/supports-preserve-symlinks-flag/test/index.js +29 -0
- package/test/node_modules/ts-latest/LICENSE.txt +55 -0
- package/test/node_modules/ts-latest/README.md +50 -0
- package/test/node_modules/ts-latest/SECURITY.md +39 -0
- package/test/node_modules/ts-latest/ThirdPartyNoticeText.txt +193 -0
- package/test/node_modules/ts-latest/bin/tsc +2 -0
- package/test/node_modules/ts-latest/bin/tsserver +2 -0
- package/test/node_modules/ts-latest/lib/_tsc.js +134440 -0
- package/test/node_modules/ts-latest/lib/_tsserver.js +659 -0
- package/test/node_modules/ts-latest/lib/_typingsInstaller.js +222 -0
- package/test/node_modules/ts-latest/lib/cs/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/de/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/lib/es/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/fr/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/it/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/lib/ja/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/ko/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/lib.d.ts +20 -0
- package/test/node_modules/ts-latest/lib/lib.decorators.d.ts +382 -0
- package/test/node_modules/ts-latest/lib/lib.decorators.legacy.d.ts +20 -0
- package/test/node_modules/ts-latest/lib/lib.dom.asynciterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/lib.dom.d.ts +44303 -0
- package/test/node_modules/ts-latest/lib/lib.dom.iterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.collection.d.ts +150 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.core.d.ts +595 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.d.ts +26 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.generator.d.ts +75 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.iterable.d.ts +603 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.promise.d.ts +79 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.proxy.d.ts +126 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.reflect.d.ts +142 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.symbol.d.ts +44 -0
- package/test/node_modules/ts-latest/lib/lib.es2015.symbol.wellknown.d.ts +324 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.array.include.d.ts +114 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.d.ts +19 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.full.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2016.intl.d.ts +29 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.arraybuffer.d.ts +19 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.d.ts +24 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.date.d.ts +29 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.full.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.intl.d.ts +42 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.object.d.ts +47 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.sharedmemory.d.ts +133 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.string.d.ts +43 -0
- package/test/node_modules/ts-latest/lib/lib.es2017.typedarrays.d.ts +51 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.asyncgenerator.d.ts +75 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.asynciterable.d.ts +51 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.intl.d.ts +81 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.promise.d.ts +28 -0
- package/test/node_modules/ts-latest/lib/lib.es2018.regexp.d.ts +35 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.array.d.ts +77 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.intl.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.object.d.ts +31 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.string.d.ts +35 -0
- package/test/node_modules/ts-latest/lib/lib.es2019.symbol.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.bigint.d.ts +763 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.d.ts +25 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.date.d.ts +40 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.intl.d.ts +472 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.number.d.ts +26 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.promise.d.ts +45 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.sharedmemory.d.ts +97 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.string.d.ts +42 -0
- package/test/node_modules/ts-latest/lib/lib.es2020.symbol.wellknown.d.ts +39 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.intl.d.ts +164 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.promise.d.ts +46 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.string.d.ts +31 -0
- package/test/node_modules/ts-latest/lib/lib.es2021.weakref.d.ts +76 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.array.d.ts +119 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.error.d.ts +73 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.intl.d.ts +143 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.object.d.ts +24 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.regexp.d.ts +37 -0
- package/test/node_modules/ts-latest/lib/lib.es2022.string.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.array.d.ts +922 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.collection.d.ts +19 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.d.ts +20 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2023.intl.d.ts +62 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.arraybuffer.d.ts +63 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.collection.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.d.ts +24 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.object.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.promise.d.ts +33 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.regexp.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.sharedmemory.d.ts +66 -0
- package/test/node_modules/ts-latest/lib/lib.es2024.string.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.collection.d.ts +94 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.float16.d.ts +443 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.intl.d.ts +200 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.iterator.d.ts +146 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.promise.d.ts +32 -0
- package/test/node_modules/ts-latest/lib/lib.es2025.regexp.d.ts +30 -0
- package/test/node_modules/ts-latest/lib/lib.es5.d.ts +4599 -0
- package/test/node_modules/ts-latest/lib/lib.es6.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.array.d.ts +33 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.collection.d.ts +47 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.d.ts +27 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.date.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.decorators.d.ts +26 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.disposable.d.ts +191 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.error.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.full.d.ts +22 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.intl.d.ts +107 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.sharedmemory.d.ts +23 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.temporal.d.ts +473 -0
- package/test/node_modules/ts-latest/lib/lib.esnext.typedarrays.d.ts +90 -0
- package/test/node_modules/ts-latest/lib/lib.scripthost.d.ts +320 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.asynciterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.d.ts +14814 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.importscripts.d.ts +21 -0
- package/test/node_modules/ts-latest/lib/lib.webworker.iterable.d.ts +18 -0
- package/test/node_modules/ts-latest/lib/pl/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/pt-br/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/ru/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/lib/tr/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/tsc.js +8 -0
- package/test/node_modules/ts-latest/lib/tsserver.js +8 -0
- package/test/node_modules/ts-latest/lib/tsserverlibrary.d.ts +17 -0
- package/test/node_modules/ts-latest/lib/tsserverlibrary.js +21 -0
- package/test/node_modules/ts-latest/lib/typesMap.json +497 -0
- package/test/node_modules/ts-latest/lib/typescript.d.ts +11448 -0
- package/test/node_modules/ts-latest/lib/typescript.js +200997 -0
- package/test/node_modules/ts-latest/lib/typingsInstaller.js +8 -0
- package/test/node_modules/ts-latest/lib/watchGuard.js +53 -0
- package/test/node_modules/ts-latest/lib/zh-cn/diagnosticMessages.generated.json +2129 -0
- package/test/node_modules/ts-latest/lib/zh-tw/diagnosticMessages.generated.json +2125 -0
- package/test/node_modules/ts-latest/package.json +119 -0
- package/test/node_modules/ts-node/LICENSE +21 -0
- package/test/node_modules/ts-node/README.md +1442 -0
- package/test/node_modules/ts-node/child-loader.mjs +8 -0
- package/test/node_modules/ts-node/dist/bin-cwd.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-cwd.js +6 -0
- package/test/node_modules/ts-node/dist/bin-cwd.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-esm.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-esm.js +6 -0
- package/test/node_modules/ts-node/dist/bin-esm.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-script-deprecated.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-script-deprecated.js +7 -0
- package/test/node_modules/ts-node/dist/bin-script-deprecated.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-script.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-script.js +6 -0
- package/test/node_modules/ts-node/dist/bin-script.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin-transpile.d.ts +2 -0
- package/test/node_modules/ts-node/dist/bin-transpile.js +6 -0
- package/test/node_modules/ts-node/dist/bin-transpile.js.map +1 -0
- package/test/node_modules/ts-node/dist/bin.d.ts +11 -0
- package/test/node_modules/ts-node/dist/bin.js +581 -0
- package/test/node_modules/ts-node/dist/bin.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/argv-payload.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/argv-payload.js +19 -0
- package/test/node_modules/ts-node/dist/child/argv-payload.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/child-entrypoint.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/child-entrypoint.js +24 -0
- package/test/node_modules/ts-node/dist/child/child-entrypoint.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/child-loader.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/child-loader.js +32 -0
- package/test/node_modules/ts-node/dist/child/child-loader.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/child-require.d.ts +7 -0
- package/test/node_modules/ts-node/dist/child/child-require.js +22 -0
- package/test/node_modules/ts-node/dist/child/child-require.js.map +1 -0
- package/test/node_modules/ts-node/dist/child/spawn-child.d.ts +1 -0
- package/test/node_modules/ts-node/dist/child/spawn-child.js +49 -0
- package/test/node_modules/ts-node/dist/child/spawn-child.js.map +1 -0
- package/test/node_modules/ts-node/dist/cjs-resolve-hooks.d.ts +1 -0
- package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js +29 -0
- package/test/node_modules/ts-node/dist/cjs-resolve-hooks.js.map +1 -0
- package/test/node_modules/ts-node/dist/configuration.d.ts +1 -0
- package/test/node_modules/ts-node/dist/configuration.js +308 -0
- package/test/node_modules/ts-node/dist/configuration.js.map +1 -0
- package/test/node_modules/ts-node/dist/esm.d.ts +53 -0
- package/test/node_modules/ts-node/dist/esm.js +228 -0
- package/test/node_modules/ts-node/dist/esm.js.map +1 -0
- package/test/node_modules/ts-node/dist/file-extensions.d.ts +1 -0
- package/test/node_modules/ts-node/dist/file-extensions.js +133 -0
- package/test/node_modules/ts-node/dist/file-extensions.js.map +1 -0
- package/test/node_modules/ts-node/dist/index.d.ts +332 -0
- package/test/node_modules/ts-node/dist/index.js +953 -0
- package/test/node_modules/ts-node/dist/index.js.map +1 -0
- package/test/node_modules/ts-node/dist/module-type-classifier.d.ts +1 -0
- package/test/node_modules/ts-node/dist/module-type-classifier.js +64 -0
- package/test/node_modules/ts-node/dist/module-type-classifier.js.map +1 -0
- package/test/node_modules/ts-node/dist/node-module-type-classifier.d.ts +1 -0
- package/test/node_modules/ts-node/dist/node-module-type-classifier.js +39 -0
- package/test/node_modules/ts-node/dist/node-module-type-classifier.js.map +1 -0
- package/test/node_modules/ts-node/dist/repl.d.ts +78 -0
- package/test/node_modules/ts-node/dist/repl.js +561 -0
- package/test/node_modules/ts-node/dist/repl.js.map +1 -0
- package/test/node_modules/ts-node/dist/resolver-functions.d.ts +1 -0
- package/test/node_modules/ts-node/dist/resolver-functions.js +143 -0
- package/test/node_modules/ts-node/dist/resolver-functions.js.map +1 -0
- package/test/node_modules/ts-node/dist/transpilers/swc.d.ts +11 -0
- package/test/node_modules/ts-node/dist/transpilers/swc.js +218 -0
- package/test/node_modules/ts-node/dist/transpilers/swc.js.map +1 -0
- package/test/node_modules/ts-node/dist/transpilers/types.d.ts +35 -0
- package/test/node_modules/ts-node/dist/transpilers/types.js +3 -0
- package/test/node_modules/ts-node/dist/transpilers/types.js.map +1 -0
- package/test/node_modules/ts-node/dist/ts-compiler-types.d.ts +63 -0
- package/test/node_modules/ts-node/dist/ts-compiler-types.js +3 -0
- package/test/node_modules/ts-node/dist/ts-compiler-types.js.map +1 -0
- package/test/node_modules/ts-node/dist/ts-internals.d.ts +6 -0
- package/test/node_modules/ts-node/dist/ts-internals.js +321 -0
- package/test/node_modules/ts-node/dist/ts-internals.js.map +1 -0
- package/test/node_modules/ts-node/dist/ts-transpile-module.d.ts +1 -0
- package/test/node_modules/ts-node/dist/ts-transpile-module.js +100 -0
- package/test/node_modules/ts-node/dist/ts-transpile-module.js.map +1 -0
- package/test/node_modules/ts-node/dist/tsconfig-schema.d.ts +13 -0
- package/test/node_modules/ts-node/dist/tsconfig-schema.js +3 -0
- package/test/node_modules/ts-node/dist/tsconfig-schema.js.map +1 -0
- package/test/node_modules/ts-node/dist/tsconfigs.d.ts +1 -0
- package/test/node_modules/ts-node/dist/tsconfigs.js +36 -0
- package/test/node_modules/ts-node/dist/tsconfigs.js.map +1 -0
- package/test/node_modules/ts-node/dist/util.d.ts +4 -0
- package/test/node_modules/ts-node/dist/util.js +175 -0
- package/test/node_modules/ts-node/dist/util.js.map +1 -0
- package/test/node_modules/ts-node/dist-raw/NODE-LICENSE.md +24 -0
- package/test/node_modules/ts-node/dist-raw/README.md +36 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-constants.js +4 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-errors.js +82 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-helpers.js +89 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-cjs-loader.js +593 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-get_format.js +106 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-esm-resolve.js +962 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-modules-package_json_reader.js +44 -0
- package/test/node_modules/ts-node/dist-raw/node-internal-repl-await.js +254 -0
- package/test/node_modules/ts-node/dist-raw/node-internalBinding-fs.js +58 -0
- package/test/node_modules/ts-node/dist-raw/node-nativemodule.js +9 -0
- package/test/node_modules/ts-node/dist-raw/node-options.js +103 -0
- package/test/node_modules/ts-node/dist-raw/node-primordials.js +37 -0
- package/test/node_modules/ts-node/dist-raw/runmain-hack.js +9 -0
- package/test/node_modules/ts-node/esm/transpile-only.mjs +8 -0
- package/test/node_modules/ts-node/esm.mjs +8 -0
- package/test/node_modules/ts-node/node10/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node12/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node14/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node16/tsconfig.json +3 -0
- package/test/node_modules/ts-node/node_modules/.bin/acorn +15 -0
- package/test/node_modules/ts-node/node_modules/.bin/acorn.cmd +7 -0
- package/test/node_modules/ts-node/package.json +182 -0
- package/test/node_modules/ts-node/register/files.js +3 -0
- package/test/node_modules/ts-node/register/index.js +1 -0
- package/test/node_modules/ts-node/register/transpile-only.js +3 -0
- package/test/node_modules/ts-node/register/type-check.js +3 -0
- package/test/node_modules/ts-node/transpilers/swc-experimental.js +1 -0
- package/test/node_modules/ts-node/transpilers/swc.js +1 -0
- package/test/node_modules/ts-node/tsconfig.schema.json +183 -0
- package/test/node_modules/ts-node/tsconfig.schemastore-schema.json +1326 -0
- package/test/node_modules/tsconfig-paths/CHANGELOG.md +407 -0
- package/test/node_modules/tsconfig-paths/LICENSE +21 -0
- package/test/node_modules/tsconfig-paths/README.md +269 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js +87 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/config-loader.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.d.ts +17 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js +216 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/data/match-path-data.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js +56 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/filesystem.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js +39 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/mapping-entry.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js +18 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-async.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js +14 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/match-path-sync.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js +124 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/try-path.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.d.ts +1 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js +328 -0
- package/test/node_modules/tsconfig-paths/lib/__tests__/tsconfig-loader.test.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/config-loader.d.ts +33 -0
- package/test/node_modules/tsconfig-paths/lib/config-loader.js +48 -0
- package/test/node_modules/tsconfig-paths/lib/config-loader.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/filesystem.d.ts +34 -0
- package/test/node_modules/tsconfig-paths/lib/filesystem.js +61 -0
- package/test/node_modules/tsconfig-paths/lib/filesystem.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/index.d.ts +5 -0
- package/test/node_modules/tsconfig-paths/lib/index.js +15 -0
- package/test/node_modules/tsconfig-paths/lib/index.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/mapping-entry.d.ts +18 -0
- package/test/node_modules/tsconfig-paths/lib/mapping-entry.js +54 -0
- package/test/node_modules/tsconfig-paths/lib/mapping-entry.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-async.d.ts +21 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-async.js +116 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-async.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-sync.d.ts +32 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-sync.js +91 -0
- package/test/node_modules/tsconfig-paths/lib/match-path-sync.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/register.d.ts +12 -0
- package/test/node_modules/tsconfig-paths/lib/register.js +112 -0
- package/test/node_modules/tsconfig-paths/lib/register.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/try-path.d.ts +15 -0
- package/test/node_modules/tsconfig-paths/lib/try-path.js +91 -0
- package/test/node_modules/tsconfig-paths/lib/try-path.js.map +1 -0
- package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.d.ts +28 -0
- package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js +148 -0
- package/test/node_modules/tsconfig-paths/lib/tsconfig-loader.js.map +1 -0
- package/test/node_modules/tsconfig-paths/node_modules/.bin/json5 +15 -0
- package/test/node_modules/tsconfig-paths/node_modules/.bin/json5.cmd +7 -0
- package/test/node_modules/tsconfig-paths/package.json +74 -0
- package/test/node_modules/tsconfig-paths/register.js +1 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/config-loader.test.ts +101 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/data/match-path-data.ts +230 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/filesystem.test.ts +57 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/mapping-entry.test.ts +43 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/match-path-async.test.ts +26 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/match-path-sync.test.ts +22 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/try-path.test.ts +141 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-loader.test.ts +428 -0
- package/test/node_modules/tsconfig-paths/src/__tests__/tsconfig-named.json +10 -0
- package/test/node_modules/tsconfig-paths/src/config-loader.ts +89 -0
- package/test/node_modules/tsconfig-paths/src/filesystem.ts +93 -0
- package/test/node_modules/tsconfig-paths/src/index.ts +24 -0
- package/test/node_modules/tsconfig-paths/src/mapping-entry.ts +65 -0
- package/test/node_modules/tsconfig-paths/src/match-path-async.ts +223 -0
- package/test/node_modules/tsconfig-paths/src/match-path-sync.ts +146 -0
- package/test/node_modules/tsconfig-paths/src/register.ts +123 -0
- package/test/node_modules/tsconfig-paths/src/try-path.ts +103 -0
- package/test/node_modules/tsconfig-paths/src/tsconfig-loader.ts +229 -0
- package/test/node_modules/undici-types/LICENSE +21 -0
- package/test/node_modules/undici-types/README.md +6 -0
- package/test/node_modules/undici-types/agent.d.ts +32 -0
- package/test/node_modules/undici-types/api.d.ts +43 -0
- package/test/node_modules/undici-types/balanced-pool.d.ts +30 -0
- package/test/node_modules/undici-types/cache-interceptor.d.ts +173 -0
- package/test/node_modules/undici-types/cache.d.ts +36 -0
- package/test/node_modules/undici-types/client-stats.d.ts +15 -0
- package/test/node_modules/undici-types/client.d.ts +108 -0
- package/test/node_modules/undici-types/connector.d.ts +34 -0
- package/test/node_modules/undici-types/content-type.d.ts +21 -0
- package/test/node_modules/undici-types/cookies.d.ts +30 -0
- package/test/node_modules/undici-types/diagnostics-channel.d.ts +74 -0
- package/test/node_modules/undici-types/dispatcher.d.ts +276 -0
- package/test/node_modules/undici-types/env-http-proxy-agent.d.ts +22 -0
- package/test/node_modules/undici-types/errors.d.ts +161 -0
- package/test/node_modules/undici-types/eventsource.d.ts +66 -0
- package/test/node_modules/undici-types/fetch.d.ts +211 -0
- package/test/node_modules/undici-types/formdata.d.ts +108 -0
- package/test/node_modules/undici-types/global-dispatcher.d.ts +9 -0
- package/test/node_modules/undici-types/global-origin.d.ts +7 -0
- package/test/node_modules/undici-types/h2c-client.d.ts +73 -0
- package/test/node_modules/undici-types/handlers.d.ts +15 -0
- package/test/node_modules/undici-types/header.d.ts +160 -0
- package/test/node_modules/undici-types/index.d.ts +88 -0
- package/test/node_modules/undici-types/interceptors.d.ts +73 -0
- package/test/node_modules/undici-types/mock-agent.d.ts +68 -0
- package/test/node_modules/undici-types/mock-call-history.d.ts +111 -0
- package/test/node_modules/undici-types/mock-client.d.ts +27 -0
- package/test/node_modules/undici-types/mock-errors.d.ts +12 -0
- package/test/node_modules/undici-types/mock-interceptor.d.ts +94 -0
- package/test/node_modules/undici-types/mock-pool.d.ts +27 -0
- package/test/node_modules/undici-types/package.json +55 -0
- package/test/node_modules/undici-types/patch.d.ts +29 -0
- package/test/node_modules/undici-types/pool-stats.d.ts +19 -0
- package/test/node_modules/undici-types/pool.d.ts +41 -0
- package/test/node_modules/undici-types/proxy-agent.d.ts +29 -0
- package/test/node_modules/undici-types/readable.d.ts +68 -0
- package/test/node_modules/undici-types/retry-agent.d.ts +8 -0
- package/test/node_modules/undici-types/retry-handler.d.ts +125 -0
- package/test/node_modules/undici-types/round-robin-pool.d.ts +41 -0
- package/test/node_modules/undici-types/snapshot-agent.d.ts +109 -0
- package/test/node_modules/undici-types/util.d.ts +18 -0
- package/test/node_modules/undici-types/utility.d.ts +7 -0
- package/test/node_modules/undici-types/webidl.d.ts +341 -0
- package/test/node_modules/undici-types/websocket.d.ts +186 -0
- package/test/node_modules/universalify/LICENSE +20 -0
- package/test/node_modules/universalify/README.md +76 -0
- package/test/node_modules/universalify/index.js +24 -0
- package/test/node_modules/universalify/package.json +34 -0
- package/test/node_modules/v8-compile-cache-lib/CHANGELOG.md +53 -0
- package/test/node_modules/v8-compile-cache-lib/LICENSE +21 -0
- package/test/node_modules/v8-compile-cache-lib/README.md +60 -0
- package/test/node_modules/v8-compile-cache-lib/package.json +35 -0
- package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.d.ts +7 -0
- package/test/node_modules/v8-compile-cache-lib/v8-compile-cache.js +391 -0
- package/test/node_modules/which/LICENSE +15 -0
- package/test/node_modules/which/README.md +51 -0
- package/test/node_modules/which/bin/which.js +52 -0
- package/test/node_modules/which/lib/index.js +111 -0
- package/test/node_modules/which/package.json +57 -0
- package/test/node_modules/yn/index.d.ts +65 -0
- package/test/node_modules/yn/index.js +33 -0
- package/test/node_modules/yn/lenient.js +105 -0
- package/test/node_modules/yn/license +9 -0
- package/test/node_modules/yn/package.json +42 -0
- package/test/node_modules/yn/readme.md +83 -0
- package/test/package.json +14 -0
- package/test/src/cleanup.ts +10 -0
- package/test/src/config.ts +35 -0
- package/test/src/perf.ts +110 -0
- package/test/src/prepare.ts +10 -0
- package/test/src/project.ts +134 -0
- package/test/src/utils/general.ts +8 -0
- package/test/tests/actions.test.ts +274 -0
- package/test/tests/package-config.test.ts +40 -0
- package/test/tests/path-mapping.test.ts +47 -0
- package/test/tests/transformer.test.ts +44 -0
- package/test/tests/webpack.test.ts +71 -0
- package/test/tsconfig.json +12 -0
- package/tsconfig.base.json +21 -0
- package/actions/check.js +0 -45
- package/actions/check.js.map +0 -1
- package/actions/patch.js +0 -82
- package/actions/patch.js.map +0 -1
- package/actions/unpatch.js +0 -82
- package/actions/unpatch.js.map +0 -1
- package/bin/ts-patch.js +0 -33
- package/bin/ts-patch.js.map +0 -1
- package/cli/cli.js +0 -96
- package/cli/cli.js.map +0 -1
- package/cli/commands.js +0 -49
- package/cli/commands.js.map +0 -1
- package/config.js +0 -50
- package/config.js.map +0 -1
- package/module/module-file.d.ts +0 -9
- package/module/module-file.js +0 -97
- package/module/module-file.js.map +0 -1
- package/module/ts-module.d.ts +0 -35
- package/module/ts-module.js +0 -100
- package/module/ts-module.js.map +0 -1
- package/patch/get-patched-source.js +0 -69
- package/patch/get-patched-source.js.map +0 -1
- package/patch/transformers/fix-ts-early-return.js +0 -51
- package/patch/transformers/fix-ts-early-return.js.map +0 -1
- package/resources/module-patch.js +0 -609
- package/system/cache.js +0 -69
- package/system/cache.js.map +0 -1
- package/tsconfig.tsbuildinfo +0 -1
- package/utils/file-utils.js +0 -98
- package/utils/file-utils.js.map +0 -1
- /package/{actions → dist/actions}/check.d.ts +0 -0
- /package/{actions → dist/actions}/index.d.ts +0 -0
- /package/{actions → dist/actions}/index.js +0 -0
- /package/{actions → dist/actions}/index.js.map +0 -0
- /package/{actions → dist/actions}/install.d.ts +0 -0
- /package/{actions → dist/actions}/install.js +0 -0
- /package/{actions → dist/actions}/install.js.map +0 -0
- /package/{actions → dist/actions}/patch.d.ts +0 -0
- /package/{actions → dist/actions}/uninstall.d.ts +0 -0
- /package/{actions → dist/actions}/uninstall.js +0 -0
- /package/{actions → dist/actions}/uninstall.js.map +0 -0
- /package/{actions → dist/actions}/unpatch.d.ts +0 -0
- /package/{bin → dist/bin}/ts-patch.d.ts +0 -0
- /package/{bin → dist/bin}/tspc.d.ts +0 -0
- /package/{bin → dist/bin}/tspc.js +0 -0
- /package/{bin → dist/bin}/tspc.js.map +0 -0
- /package/{cli → dist/cli}/cli.d.ts +0 -0
- /package/{cli → dist/cli}/commands.d.ts +0 -0
- /package/{cli → dist/cli}/help-menu.d.ts +0 -0
- /package/{cli → dist/cli}/help-menu.js +0 -0
- /package/{cli → dist/cli}/help-menu.js.map +0 -0
- /package/{cli → dist/cli}/options.d.ts +0 -0
- /package/{cli → dist/cli}/options.js +0 -0
- /package/{cli → dist/cli}/options.js.map +0 -0
- /package/{compiler → dist/compiler}/package.json +0 -0
- /package/{compiler → dist/compiler}/tsc.js +0 -0
- /package/{compiler → dist/compiler}/tsserver.js +0 -0
- /package/{compiler → dist/compiler}/tsserverlibrary.js +0 -0
- /package/{compiler → dist/compiler}/typescript.js +0 -0
- /package/{config.d.ts → dist/config.d.ts} +0 -0
- /package/{index.d.ts → dist/index.d.ts} +0 -0
- /package/{index.js → dist/index.js} +0 -0
- /package/{index.js.map → dist/index.js.map} +0 -0
- /package/{module → dist/module}/get-live-module.d.ts +0 -0
- /package/{module → dist/module}/get-live-module.js +0 -0
- /package/{module → dist/module}/get-live-module.js.map +0 -0
- /package/{module → dist/module}/index.d.ts +0 -0
- /package/{module → dist/module}/index.js +0 -0
- /package/{module → dist/module}/index.js.map +0 -0
- /package/{module → dist/module}/module-source.d.ts +0 -0
- /package/{module → dist/module}/module-source.js +0 -0
- /package/{module → dist/module}/module-source.js.map +0 -0
- /package/{module → dist/module}/source-section.d.ts +0 -0
- /package/{module → dist/module}/source-section.js +0 -0
- /package/{module → dist/module}/source-section.js.map +0 -0
- /package/{options.d.ts → dist/options.d.ts} +0 -0
- /package/{options.js → dist/options.js} +0 -0
- /package/{options.js.map → dist/options.js.map} +0 -0
- /package/{patch → dist/patch}/get-patched-source.d.ts +0 -0
- /package/{patch → dist/patch}/patch-detail.d.ts +0 -0
- /package/{patch → dist/patch}/patch-detail.js +0 -0
- /package/{patch → dist/patch}/patch-detail.js.map +0 -0
- /package/{patch → dist/patch}/patch-module.d.ts +0 -0
- /package/{patch → dist/patch}/patch-module.js +0 -0
- /package/{patch → dist/patch}/patch-module.js.map +0 -0
- /package/{patch → dist/patch}/transformers/add-original-create-program.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/add-original-create-program.js +0 -0
- /package/{patch → dist/patch}/transformers/add-original-create-program.js.map +0 -0
- /package/{patch → dist/patch}/transformers/fix-ts-early-return.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/hook-tsc-exec.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/hook-tsc-exec.js +0 -0
- /package/{patch → dist/patch}/transformers/hook-tsc-exec.js.map +0 -0
- /package/{patch → dist/patch}/transformers/index.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/index.js +0 -0
- /package/{patch → dist/patch}/transformers/index.js.map +0 -0
- /package/{patch → dist/patch}/transformers/merge-statements.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/merge-statements.js +0 -0
- /package/{patch → dist/patch}/transformers/merge-statements.js.map +0 -0
- /package/{patch → dist/patch}/transformers/patch-create-program.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/patch-create-program.js +0 -0
- /package/{patch → dist/patch}/transformers/patch-create-program.js.map +0 -0
- /package/{patch → dist/patch}/transformers/patch-emitter.d.ts +0 -0
- /package/{patch → dist/patch}/transformers/patch-emitter.js +0 -0
- /package/{patch → dist/patch}/transformers/patch-emitter.js.map +0 -0
- /package/{plugin-types.d.ts → dist/plugin-types.d.ts} +0 -0
- /package/{plugin-types.js → dist/plugin-types.js} +0 -0
- /package/{plugin-types.js.map → dist/plugin-types.js.map} +0 -0
- /package/{resources → dist/resources}/module-patch.d.ts +0 -0
- /package/{slice → dist/slice}/module-slice.d.ts +0 -0
- /package/{slice → dist/slice}/module-slice.js +0 -0
- /package/{slice → dist/slice}/module-slice.js.map +0 -0
- /package/{slice → dist/slice}/ts54.d.ts +0 -0
- /package/{slice → dist/slice}/ts54.js +0 -0
- /package/{slice → dist/slice}/ts54.js.map +0 -0
- /package/{slice → dist/slice}/ts55.d.ts +0 -0
- /package/{slice → dist/slice}/ts55.js +0 -0
- /package/{slice → dist/slice}/ts55.js.map +0 -0
- /package/{slice → dist/slice}/ts552.d.ts +0 -0
- /package/{slice → dist/slice}/ts552.js +0 -0
- /package/{slice → dist/slice}/ts552.js.map +0 -0
- /package/{system → dist/system}/cache.d.ts +0 -0
- /package/{system → dist/system}/errors.d.ts +0 -0
- /package/{system → dist/system}/errors.js +0 -0
- /package/{system → dist/system}/errors.js.map +0 -0
- /package/{system → dist/system}/index.d.ts +0 -0
- /package/{system → dist/system}/index.js +0 -0
- /package/{system → dist/system}/index.js.map +0 -0
- /package/{system → dist/system}/logger.d.ts +0 -0
- /package/{system → dist/system}/logger.js +0 -0
- /package/{system → dist/system}/logger.js.map +0 -0
- /package/{system → dist/system}/types.d.ts +0 -0
- /package/{system → dist/system}/types.js +0 -0
- /package/{system → dist/system}/types.js.map +0 -0
- /package/{ts-package.d.ts → dist/ts-package.d.ts} +0 -0
- /package/{ts-package.js → dist/ts-package.js} +0 -0
- /package/{ts-package.js.map → dist/ts-package.js.map} +0 -0
- /package/{utils → dist/utils}/file-utils.d.ts +0 -0
- /package/{utils → dist/utils}/find-cache-dir.d.ts +0 -0
- /package/{utils → dist/utils}/find-cache-dir.js +0 -0
- /package/{utils → dist/utils}/find-cache-dir.js.map +0 -0
- /package/{utils → dist/utils}/general.d.ts +0 -0
- /package/{utils → dist/utils}/general.js +0 -0
- /package/{utils → dist/utils}/general.js.map +0 -0
- /package/{utils → dist/utils}/index.d.ts +0 -0
- /package/{utils → dist/utils}/index.js +0 -0
- /package/{utils → dist/utils}/index.js.map +0 -0
|
@@ -0,0 +1,839 @@
|
|
|
1
|
+
/* MIT license */
|
|
2
|
+
/* eslint-disable no-mixed-operators */
|
|
3
|
+
const cssKeywords = require('color-name');
|
|
4
|
+
|
|
5
|
+
// NOTE: conversions should only return primitive values (i.e. arrays, or
|
|
6
|
+
// values that give correct `typeof` results).
|
|
7
|
+
// do not use box values types (i.e. Number(), String(), etc.)
|
|
8
|
+
|
|
9
|
+
const reverseKeywords = {};
|
|
10
|
+
for (const key of Object.keys(cssKeywords)) {
|
|
11
|
+
reverseKeywords[cssKeywords[key]] = key;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
const convert = {
|
|
15
|
+
rgb: {channels: 3, labels: 'rgb'},
|
|
16
|
+
hsl: {channels: 3, labels: 'hsl'},
|
|
17
|
+
hsv: {channels: 3, labels: 'hsv'},
|
|
18
|
+
hwb: {channels: 3, labels: 'hwb'},
|
|
19
|
+
cmyk: {channels: 4, labels: 'cmyk'},
|
|
20
|
+
xyz: {channels: 3, labels: 'xyz'},
|
|
21
|
+
lab: {channels: 3, labels: 'lab'},
|
|
22
|
+
lch: {channels: 3, labels: 'lch'},
|
|
23
|
+
hex: {channels: 1, labels: ['hex']},
|
|
24
|
+
keyword: {channels: 1, labels: ['keyword']},
|
|
25
|
+
ansi16: {channels: 1, labels: ['ansi16']},
|
|
26
|
+
ansi256: {channels: 1, labels: ['ansi256']},
|
|
27
|
+
hcg: {channels: 3, labels: ['h', 'c', 'g']},
|
|
28
|
+
apple: {channels: 3, labels: ['r16', 'g16', 'b16']},
|
|
29
|
+
gray: {channels: 1, labels: ['gray']}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
module.exports = convert;
|
|
33
|
+
|
|
34
|
+
// Hide .channels and .labels properties
|
|
35
|
+
for (const model of Object.keys(convert)) {
|
|
36
|
+
if (!('channels' in convert[model])) {
|
|
37
|
+
throw new Error('missing channels property: ' + model);
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
if (!('labels' in convert[model])) {
|
|
41
|
+
throw new Error('missing channel labels property: ' + model);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
if (convert[model].labels.length !== convert[model].channels) {
|
|
45
|
+
throw new Error('channel and label counts mismatch: ' + model);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
const {channels, labels} = convert[model];
|
|
49
|
+
delete convert[model].channels;
|
|
50
|
+
delete convert[model].labels;
|
|
51
|
+
Object.defineProperty(convert[model], 'channels', {value: channels});
|
|
52
|
+
Object.defineProperty(convert[model], 'labels', {value: labels});
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
convert.rgb.hsl = function (rgb) {
|
|
56
|
+
const r = rgb[0] / 255;
|
|
57
|
+
const g = rgb[1] / 255;
|
|
58
|
+
const b = rgb[2] / 255;
|
|
59
|
+
const min = Math.min(r, g, b);
|
|
60
|
+
const max = Math.max(r, g, b);
|
|
61
|
+
const delta = max - min;
|
|
62
|
+
let h;
|
|
63
|
+
let s;
|
|
64
|
+
|
|
65
|
+
if (max === min) {
|
|
66
|
+
h = 0;
|
|
67
|
+
} else if (r === max) {
|
|
68
|
+
h = (g - b) / delta;
|
|
69
|
+
} else if (g === max) {
|
|
70
|
+
h = 2 + (b - r) / delta;
|
|
71
|
+
} else if (b === max) {
|
|
72
|
+
h = 4 + (r - g) / delta;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
h = Math.min(h * 60, 360);
|
|
76
|
+
|
|
77
|
+
if (h < 0) {
|
|
78
|
+
h += 360;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
const l = (min + max) / 2;
|
|
82
|
+
|
|
83
|
+
if (max === min) {
|
|
84
|
+
s = 0;
|
|
85
|
+
} else if (l <= 0.5) {
|
|
86
|
+
s = delta / (max + min);
|
|
87
|
+
} else {
|
|
88
|
+
s = delta / (2 - max - min);
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
return [h, s * 100, l * 100];
|
|
92
|
+
};
|
|
93
|
+
|
|
94
|
+
convert.rgb.hsv = function (rgb) {
|
|
95
|
+
let rdif;
|
|
96
|
+
let gdif;
|
|
97
|
+
let bdif;
|
|
98
|
+
let h;
|
|
99
|
+
let s;
|
|
100
|
+
|
|
101
|
+
const r = rgb[0] / 255;
|
|
102
|
+
const g = rgb[1] / 255;
|
|
103
|
+
const b = rgb[2] / 255;
|
|
104
|
+
const v = Math.max(r, g, b);
|
|
105
|
+
const diff = v - Math.min(r, g, b);
|
|
106
|
+
const diffc = function (c) {
|
|
107
|
+
return (v - c) / 6 / diff + 1 / 2;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
if (diff === 0) {
|
|
111
|
+
h = 0;
|
|
112
|
+
s = 0;
|
|
113
|
+
} else {
|
|
114
|
+
s = diff / v;
|
|
115
|
+
rdif = diffc(r);
|
|
116
|
+
gdif = diffc(g);
|
|
117
|
+
bdif = diffc(b);
|
|
118
|
+
|
|
119
|
+
if (r === v) {
|
|
120
|
+
h = bdif - gdif;
|
|
121
|
+
} else if (g === v) {
|
|
122
|
+
h = (1 / 3) + rdif - bdif;
|
|
123
|
+
} else if (b === v) {
|
|
124
|
+
h = (2 / 3) + gdif - rdif;
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
if (h < 0) {
|
|
128
|
+
h += 1;
|
|
129
|
+
} else if (h > 1) {
|
|
130
|
+
h -= 1;
|
|
131
|
+
}
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
return [
|
|
135
|
+
h * 360,
|
|
136
|
+
s * 100,
|
|
137
|
+
v * 100
|
|
138
|
+
];
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
convert.rgb.hwb = function (rgb) {
|
|
142
|
+
const r = rgb[0];
|
|
143
|
+
const g = rgb[1];
|
|
144
|
+
let b = rgb[2];
|
|
145
|
+
const h = convert.rgb.hsl(rgb)[0];
|
|
146
|
+
const w = 1 / 255 * Math.min(r, Math.min(g, b));
|
|
147
|
+
|
|
148
|
+
b = 1 - 1 / 255 * Math.max(r, Math.max(g, b));
|
|
149
|
+
|
|
150
|
+
return [h, w * 100, b * 100];
|
|
151
|
+
};
|
|
152
|
+
|
|
153
|
+
convert.rgb.cmyk = function (rgb) {
|
|
154
|
+
const r = rgb[0] / 255;
|
|
155
|
+
const g = rgb[1] / 255;
|
|
156
|
+
const b = rgb[2] / 255;
|
|
157
|
+
|
|
158
|
+
const k = Math.min(1 - r, 1 - g, 1 - b);
|
|
159
|
+
const c = (1 - r - k) / (1 - k) || 0;
|
|
160
|
+
const m = (1 - g - k) / (1 - k) || 0;
|
|
161
|
+
const y = (1 - b - k) / (1 - k) || 0;
|
|
162
|
+
|
|
163
|
+
return [c * 100, m * 100, y * 100, k * 100];
|
|
164
|
+
};
|
|
165
|
+
|
|
166
|
+
function comparativeDistance(x, y) {
|
|
167
|
+
/*
|
|
168
|
+
See https://en.m.wikipedia.org/wiki/Euclidean_distance#Squared_Euclidean_distance
|
|
169
|
+
*/
|
|
170
|
+
return (
|
|
171
|
+
((x[0] - y[0]) ** 2) +
|
|
172
|
+
((x[1] - y[1]) ** 2) +
|
|
173
|
+
((x[2] - y[2]) ** 2)
|
|
174
|
+
);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
convert.rgb.keyword = function (rgb) {
|
|
178
|
+
const reversed = reverseKeywords[rgb];
|
|
179
|
+
if (reversed) {
|
|
180
|
+
return reversed;
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
let currentClosestDistance = Infinity;
|
|
184
|
+
let currentClosestKeyword;
|
|
185
|
+
|
|
186
|
+
for (const keyword of Object.keys(cssKeywords)) {
|
|
187
|
+
const value = cssKeywords[keyword];
|
|
188
|
+
|
|
189
|
+
// Compute comparative distance
|
|
190
|
+
const distance = comparativeDistance(rgb, value);
|
|
191
|
+
|
|
192
|
+
// Check if its less, if so set as closest
|
|
193
|
+
if (distance < currentClosestDistance) {
|
|
194
|
+
currentClosestDistance = distance;
|
|
195
|
+
currentClosestKeyword = keyword;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
return currentClosestKeyword;
|
|
200
|
+
};
|
|
201
|
+
|
|
202
|
+
convert.keyword.rgb = function (keyword) {
|
|
203
|
+
return cssKeywords[keyword];
|
|
204
|
+
};
|
|
205
|
+
|
|
206
|
+
convert.rgb.xyz = function (rgb) {
|
|
207
|
+
let r = rgb[0] / 255;
|
|
208
|
+
let g = rgb[1] / 255;
|
|
209
|
+
let b = rgb[2] / 255;
|
|
210
|
+
|
|
211
|
+
// Assume sRGB
|
|
212
|
+
r = r > 0.04045 ? (((r + 0.055) / 1.055) ** 2.4) : (r / 12.92);
|
|
213
|
+
g = g > 0.04045 ? (((g + 0.055) / 1.055) ** 2.4) : (g / 12.92);
|
|
214
|
+
b = b > 0.04045 ? (((b + 0.055) / 1.055) ** 2.4) : (b / 12.92);
|
|
215
|
+
|
|
216
|
+
const x = (r * 0.4124) + (g * 0.3576) + (b * 0.1805);
|
|
217
|
+
const y = (r * 0.2126) + (g * 0.7152) + (b * 0.0722);
|
|
218
|
+
const z = (r * 0.0193) + (g * 0.1192) + (b * 0.9505);
|
|
219
|
+
|
|
220
|
+
return [x * 100, y * 100, z * 100];
|
|
221
|
+
};
|
|
222
|
+
|
|
223
|
+
convert.rgb.lab = function (rgb) {
|
|
224
|
+
const xyz = convert.rgb.xyz(rgb);
|
|
225
|
+
let x = xyz[0];
|
|
226
|
+
let y = xyz[1];
|
|
227
|
+
let z = xyz[2];
|
|
228
|
+
|
|
229
|
+
x /= 95.047;
|
|
230
|
+
y /= 100;
|
|
231
|
+
z /= 108.883;
|
|
232
|
+
|
|
233
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
|
234
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
|
235
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
|
236
|
+
|
|
237
|
+
const l = (116 * y) - 16;
|
|
238
|
+
const a = 500 * (x - y);
|
|
239
|
+
const b = 200 * (y - z);
|
|
240
|
+
|
|
241
|
+
return [l, a, b];
|
|
242
|
+
};
|
|
243
|
+
|
|
244
|
+
convert.hsl.rgb = function (hsl) {
|
|
245
|
+
const h = hsl[0] / 360;
|
|
246
|
+
const s = hsl[1] / 100;
|
|
247
|
+
const l = hsl[2] / 100;
|
|
248
|
+
let t2;
|
|
249
|
+
let t3;
|
|
250
|
+
let val;
|
|
251
|
+
|
|
252
|
+
if (s === 0) {
|
|
253
|
+
val = l * 255;
|
|
254
|
+
return [val, val, val];
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
if (l < 0.5) {
|
|
258
|
+
t2 = l * (1 + s);
|
|
259
|
+
} else {
|
|
260
|
+
t2 = l + s - l * s;
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
const t1 = 2 * l - t2;
|
|
264
|
+
|
|
265
|
+
const rgb = [0, 0, 0];
|
|
266
|
+
for (let i = 0; i < 3; i++) {
|
|
267
|
+
t3 = h + 1 / 3 * -(i - 1);
|
|
268
|
+
if (t3 < 0) {
|
|
269
|
+
t3++;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
if (t3 > 1) {
|
|
273
|
+
t3--;
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
if (6 * t3 < 1) {
|
|
277
|
+
val = t1 + (t2 - t1) * 6 * t3;
|
|
278
|
+
} else if (2 * t3 < 1) {
|
|
279
|
+
val = t2;
|
|
280
|
+
} else if (3 * t3 < 2) {
|
|
281
|
+
val = t1 + (t2 - t1) * (2 / 3 - t3) * 6;
|
|
282
|
+
} else {
|
|
283
|
+
val = t1;
|
|
284
|
+
}
|
|
285
|
+
|
|
286
|
+
rgb[i] = val * 255;
|
|
287
|
+
}
|
|
288
|
+
|
|
289
|
+
return rgb;
|
|
290
|
+
};
|
|
291
|
+
|
|
292
|
+
convert.hsl.hsv = function (hsl) {
|
|
293
|
+
const h = hsl[0];
|
|
294
|
+
let s = hsl[1] / 100;
|
|
295
|
+
let l = hsl[2] / 100;
|
|
296
|
+
let smin = s;
|
|
297
|
+
const lmin = Math.max(l, 0.01);
|
|
298
|
+
|
|
299
|
+
l *= 2;
|
|
300
|
+
s *= (l <= 1) ? l : 2 - l;
|
|
301
|
+
smin *= lmin <= 1 ? lmin : 2 - lmin;
|
|
302
|
+
const v = (l + s) / 2;
|
|
303
|
+
const sv = l === 0 ? (2 * smin) / (lmin + smin) : (2 * s) / (l + s);
|
|
304
|
+
|
|
305
|
+
return [h, sv * 100, v * 100];
|
|
306
|
+
};
|
|
307
|
+
|
|
308
|
+
convert.hsv.rgb = function (hsv) {
|
|
309
|
+
const h = hsv[0] / 60;
|
|
310
|
+
const s = hsv[1] / 100;
|
|
311
|
+
let v = hsv[2] / 100;
|
|
312
|
+
const hi = Math.floor(h) % 6;
|
|
313
|
+
|
|
314
|
+
const f = h - Math.floor(h);
|
|
315
|
+
const p = 255 * v * (1 - s);
|
|
316
|
+
const q = 255 * v * (1 - (s * f));
|
|
317
|
+
const t = 255 * v * (1 - (s * (1 - f)));
|
|
318
|
+
v *= 255;
|
|
319
|
+
|
|
320
|
+
switch (hi) {
|
|
321
|
+
case 0:
|
|
322
|
+
return [v, t, p];
|
|
323
|
+
case 1:
|
|
324
|
+
return [q, v, p];
|
|
325
|
+
case 2:
|
|
326
|
+
return [p, v, t];
|
|
327
|
+
case 3:
|
|
328
|
+
return [p, q, v];
|
|
329
|
+
case 4:
|
|
330
|
+
return [t, p, v];
|
|
331
|
+
case 5:
|
|
332
|
+
return [v, p, q];
|
|
333
|
+
}
|
|
334
|
+
};
|
|
335
|
+
|
|
336
|
+
convert.hsv.hsl = function (hsv) {
|
|
337
|
+
const h = hsv[0];
|
|
338
|
+
const s = hsv[1] / 100;
|
|
339
|
+
const v = hsv[2] / 100;
|
|
340
|
+
const vmin = Math.max(v, 0.01);
|
|
341
|
+
let sl;
|
|
342
|
+
let l;
|
|
343
|
+
|
|
344
|
+
l = (2 - s) * v;
|
|
345
|
+
const lmin = (2 - s) * vmin;
|
|
346
|
+
sl = s * vmin;
|
|
347
|
+
sl /= (lmin <= 1) ? lmin : 2 - lmin;
|
|
348
|
+
sl = sl || 0;
|
|
349
|
+
l /= 2;
|
|
350
|
+
|
|
351
|
+
return [h, sl * 100, l * 100];
|
|
352
|
+
};
|
|
353
|
+
|
|
354
|
+
// http://dev.w3.org/csswg/css-color/#hwb-to-rgb
|
|
355
|
+
convert.hwb.rgb = function (hwb) {
|
|
356
|
+
const h = hwb[0] / 360;
|
|
357
|
+
let wh = hwb[1] / 100;
|
|
358
|
+
let bl = hwb[2] / 100;
|
|
359
|
+
const ratio = wh + bl;
|
|
360
|
+
let f;
|
|
361
|
+
|
|
362
|
+
// Wh + bl cant be > 1
|
|
363
|
+
if (ratio > 1) {
|
|
364
|
+
wh /= ratio;
|
|
365
|
+
bl /= ratio;
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
const i = Math.floor(6 * h);
|
|
369
|
+
const v = 1 - bl;
|
|
370
|
+
f = 6 * h - i;
|
|
371
|
+
|
|
372
|
+
if ((i & 0x01) !== 0) {
|
|
373
|
+
f = 1 - f;
|
|
374
|
+
}
|
|
375
|
+
|
|
376
|
+
const n = wh + f * (v - wh); // Linear interpolation
|
|
377
|
+
|
|
378
|
+
let r;
|
|
379
|
+
let g;
|
|
380
|
+
let b;
|
|
381
|
+
/* eslint-disable max-statements-per-line,no-multi-spaces */
|
|
382
|
+
switch (i) {
|
|
383
|
+
default:
|
|
384
|
+
case 6:
|
|
385
|
+
case 0: r = v; g = n; b = wh; break;
|
|
386
|
+
case 1: r = n; g = v; b = wh; break;
|
|
387
|
+
case 2: r = wh; g = v; b = n; break;
|
|
388
|
+
case 3: r = wh; g = n; b = v; break;
|
|
389
|
+
case 4: r = n; g = wh; b = v; break;
|
|
390
|
+
case 5: r = v; g = wh; b = n; break;
|
|
391
|
+
}
|
|
392
|
+
/* eslint-enable max-statements-per-line,no-multi-spaces */
|
|
393
|
+
|
|
394
|
+
return [r * 255, g * 255, b * 255];
|
|
395
|
+
};
|
|
396
|
+
|
|
397
|
+
convert.cmyk.rgb = function (cmyk) {
|
|
398
|
+
const c = cmyk[0] / 100;
|
|
399
|
+
const m = cmyk[1] / 100;
|
|
400
|
+
const y = cmyk[2] / 100;
|
|
401
|
+
const k = cmyk[3] / 100;
|
|
402
|
+
|
|
403
|
+
const r = 1 - Math.min(1, c * (1 - k) + k);
|
|
404
|
+
const g = 1 - Math.min(1, m * (1 - k) + k);
|
|
405
|
+
const b = 1 - Math.min(1, y * (1 - k) + k);
|
|
406
|
+
|
|
407
|
+
return [r * 255, g * 255, b * 255];
|
|
408
|
+
};
|
|
409
|
+
|
|
410
|
+
convert.xyz.rgb = function (xyz) {
|
|
411
|
+
const x = xyz[0] / 100;
|
|
412
|
+
const y = xyz[1] / 100;
|
|
413
|
+
const z = xyz[2] / 100;
|
|
414
|
+
let r;
|
|
415
|
+
let g;
|
|
416
|
+
let b;
|
|
417
|
+
|
|
418
|
+
r = (x * 3.2406) + (y * -1.5372) + (z * -0.4986);
|
|
419
|
+
g = (x * -0.9689) + (y * 1.8758) + (z * 0.0415);
|
|
420
|
+
b = (x * 0.0557) + (y * -0.2040) + (z * 1.0570);
|
|
421
|
+
|
|
422
|
+
// Assume sRGB
|
|
423
|
+
r = r > 0.0031308
|
|
424
|
+
? ((1.055 * (r ** (1.0 / 2.4))) - 0.055)
|
|
425
|
+
: r * 12.92;
|
|
426
|
+
|
|
427
|
+
g = g > 0.0031308
|
|
428
|
+
? ((1.055 * (g ** (1.0 / 2.4))) - 0.055)
|
|
429
|
+
: g * 12.92;
|
|
430
|
+
|
|
431
|
+
b = b > 0.0031308
|
|
432
|
+
? ((1.055 * (b ** (1.0 / 2.4))) - 0.055)
|
|
433
|
+
: b * 12.92;
|
|
434
|
+
|
|
435
|
+
r = Math.min(Math.max(0, r), 1);
|
|
436
|
+
g = Math.min(Math.max(0, g), 1);
|
|
437
|
+
b = Math.min(Math.max(0, b), 1);
|
|
438
|
+
|
|
439
|
+
return [r * 255, g * 255, b * 255];
|
|
440
|
+
};
|
|
441
|
+
|
|
442
|
+
convert.xyz.lab = function (xyz) {
|
|
443
|
+
let x = xyz[0];
|
|
444
|
+
let y = xyz[1];
|
|
445
|
+
let z = xyz[2];
|
|
446
|
+
|
|
447
|
+
x /= 95.047;
|
|
448
|
+
y /= 100;
|
|
449
|
+
z /= 108.883;
|
|
450
|
+
|
|
451
|
+
x = x > 0.008856 ? (x ** (1 / 3)) : (7.787 * x) + (16 / 116);
|
|
452
|
+
y = y > 0.008856 ? (y ** (1 / 3)) : (7.787 * y) + (16 / 116);
|
|
453
|
+
z = z > 0.008856 ? (z ** (1 / 3)) : (7.787 * z) + (16 / 116);
|
|
454
|
+
|
|
455
|
+
const l = (116 * y) - 16;
|
|
456
|
+
const a = 500 * (x - y);
|
|
457
|
+
const b = 200 * (y - z);
|
|
458
|
+
|
|
459
|
+
return [l, a, b];
|
|
460
|
+
};
|
|
461
|
+
|
|
462
|
+
convert.lab.xyz = function (lab) {
|
|
463
|
+
const l = lab[0];
|
|
464
|
+
const a = lab[1];
|
|
465
|
+
const b = lab[2];
|
|
466
|
+
let x;
|
|
467
|
+
let y;
|
|
468
|
+
let z;
|
|
469
|
+
|
|
470
|
+
y = (l + 16) / 116;
|
|
471
|
+
x = a / 500 + y;
|
|
472
|
+
z = y - b / 200;
|
|
473
|
+
|
|
474
|
+
const y2 = y ** 3;
|
|
475
|
+
const x2 = x ** 3;
|
|
476
|
+
const z2 = z ** 3;
|
|
477
|
+
y = y2 > 0.008856 ? y2 : (y - 16 / 116) / 7.787;
|
|
478
|
+
x = x2 > 0.008856 ? x2 : (x - 16 / 116) / 7.787;
|
|
479
|
+
z = z2 > 0.008856 ? z2 : (z - 16 / 116) / 7.787;
|
|
480
|
+
|
|
481
|
+
x *= 95.047;
|
|
482
|
+
y *= 100;
|
|
483
|
+
z *= 108.883;
|
|
484
|
+
|
|
485
|
+
return [x, y, z];
|
|
486
|
+
};
|
|
487
|
+
|
|
488
|
+
convert.lab.lch = function (lab) {
|
|
489
|
+
const l = lab[0];
|
|
490
|
+
const a = lab[1];
|
|
491
|
+
const b = lab[2];
|
|
492
|
+
let h;
|
|
493
|
+
|
|
494
|
+
const hr = Math.atan2(b, a);
|
|
495
|
+
h = hr * 360 / 2 / Math.PI;
|
|
496
|
+
|
|
497
|
+
if (h < 0) {
|
|
498
|
+
h += 360;
|
|
499
|
+
}
|
|
500
|
+
|
|
501
|
+
const c = Math.sqrt(a * a + b * b);
|
|
502
|
+
|
|
503
|
+
return [l, c, h];
|
|
504
|
+
};
|
|
505
|
+
|
|
506
|
+
convert.lch.lab = function (lch) {
|
|
507
|
+
const l = lch[0];
|
|
508
|
+
const c = lch[1];
|
|
509
|
+
const h = lch[2];
|
|
510
|
+
|
|
511
|
+
const hr = h / 360 * 2 * Math.PI;
|
|
512
|
+
const a = c * Math.cos(hr);
|
|
513
|
+
const b = c * Math.sin(hr);
|
|
514
|
+
|
|
515
|
+
return [l, a, b];
|
|
516
|
+
};
|
|
517
|
+
|
|
518
|
+
convert.rgb.ansi16 = function (args, saturation = null) {
|
|
519
|
+
const [r, g, b] = args;
|
|
520
|
+
let value = saturation === null ? convert.rgb.hsv(args)[2] : saturation; // Hsv -> ansi16 optimization
|
|
521
|
+
|
|
522
|
+
value = Math.round(value / 50);
|
|
523
|
+
|
|
524
|
+
if (value === 0) {
|
|
525
|
+
return 30;
|
|
526
|
+
}
|
|
527
|
+
|
|
528
|
+
let ansi = 30
|
|
529
|
+
+ ((Math.round(b / 255) << 2)
|
|
530
|
+
| (Math.round(g / 255) << 1)
|
|
531
|
+
| Math.round(r / 255));
|
|
532
|
+
|
|
533
|
+
if (value === 2) {
|
|
534
|
+
ansi += 60;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
return ansi;
|
|
538
|
+
};
|
|
539
|
+
|
|
540
|
+
convert.hsv.ansi16 = function (args) {
|
|
541
|
+
// Optimization here; we already know the value and don't need to get
|
|
542
|
+
// it converted for us.
|
|
543
|
+
return convert.rgb.ansi16(convert.hsv.rgb(args), args[2]);
|
|
544
|
+
};
|
|
545
|
+
|
|
546
|
+
convert.rgb.ansi256 = function (args) {
|
|
547
|
+
const r = args[0];
|
|
548
|
+
const g = args[1];
|
|
549
|
+
const b = args[2];
|
|
550
|
+
|
|
551
|
+
// We use the extended greyscale palette here, with the exception of
|
|
552
|
+
// black and white. normal palette only has 4 greyscale shades.
|
|
553
|
+
if (r === g && g === b) {
|
|
554
|
+
if (r < 8) {
|
|
555
|
+
return 16;
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
if (r > 248) {
|
|
559
|
+
return 231;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
return Math.round(((r - 8) / 247) * 24) + 232;
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
const ansi = 16
|
|
566
|
+
+ (36 * Math.round(r / 255 * 5))
|
|
567
|
+
+ (6 * Math.round(g / 255 * 5))
|
|
568
|
+
+ Math.round(b / 255 * 5);
|
|
569
|
+
|
|
570
|
+
return ansi;
|
|
571
|
+
};
|
|
572
|
+
|
|
573
|
+
convert.ansi16.rgb = function (args) {
|
|
574
|
+
let color = args % 10;
|
|
575
|
+
|
|
576
|
+
// Handle greyscale
|
|
577
|
+
if (color === 0 || color === 7) {
|
|
578
|
+
if (args > 50) {
|
|
579
|
+
color += 3.5;
|
|
580
|
+
}
|
|
581
|
+
|
|
582
|
+
color = color / 10.5 * 255;
|
|
583
|
+
|
|
584
|
+
return [color, color, color];
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
const mult = (~~(args > 50) + 1) * 0.5;
|
|
588
|
+
const r = ((color & 1) * mult) * 255;
|
|
589
|
+
const g = (((color >> 1) & 1) * mult) * 255;
|
|
590
|
+
const b = (((color >> 2) & 1) * mult) * 255;
|
|
591
|
+
|
|
592
|
+
return [r, g, b];
|
|
593
|
+
};
|
|
594
|
+
|
|
595
|
+
convert.ansi256.rgb = function (args) {
|
|
596
|
+
// Handle greyscale
|
|
597
|
+
if (args >= 232) {
|
|
598
|
+
const c = (args - 232) * 10 + 8;
|
|
599
|
+
return [c, c, c];
|
|
600
|
+
}
|
|
601
|
+
|
|
602
|
+
args -= 16;
|
|
603
|
+
|
|
604
|
+
let rem;
|
|
605
|
+
const r = Math.floor(args / 36) / 5 * 255;
|
|
606
|
+
const g = Math.floor((rem = args % 36) / 6) / 5 * 255;
|
|
607
|
+
const b = (rem % 6) / 5 * 255;
|
|
608
|
+
|
|
609
|
+
return [r, g, b];
|
|
610
|
+
};
|
|
611
|
+
|
|
612
|
+
convert.rgb.hex = function (args) {
|
|
613
|
+
const integer = ((Math.round(args[0]) & 0xFF) << 16)
|
|
614
|
+
+ ((Math.round(args[1]) & 0xFF) << 8)
|
|
615
|
+
+ (Math.round(args[2]) & 0xFF);
|
|
616
|
+
|
|
617
|
+
const string = integer.toString(16).toUpperCase();
|
|
618
|
+
return '000000'.substring(string.length) + string;
|
|
619
|
+
};
|
|
620
|
+
|
|
621
|
+
convert.hex.rgb = function (args) {
|
|
622
|
+
const match = args.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);
|
|
623
|
+
if (!match) {
|
|
624
|
+
return [0, 0, 0];
|
|
625
|
+
}
|
|
626
|
+
|
|
627
|
+
let colorString = match[0];
|
|
628
|
+
|
|
629
|
+
if (match[0].length === 3) {
|
|
630
|
+
colorString = colorString.split('').map(char => {
|
|
631
|
+
return char + char;
|
|
632
|
+
}).join('');
|
|
633
|
+
}
|
|
634
|
+
|
|
635
|
+
const integer = parseInt(colorString, 16);
|
|
636
|
+
const r = (integer >> 16) & 0xFF;
|
|
637
|
+
const g = (integer >> 8) & 0xFF;
|
|
638
|
+
const b = integer & 0xFF;
|
|
639
|
+
|
|
640
|
+
return [r, g, b];
|
|
641
|
+
};
|
|
642
|
+
|
|
643
|
+
convert.rgb.hcg = function (rgb) {
|
|
644
|
+
const r = rgb[0] / 255;
|
|
645
|
+
const g = rgb[1] / 255;
|
|
646
|
+
const b = rgb[2] / 255;
|
|
647
|
+
const max = Math.max(Math.max(r, g), b);
|
|
648
|
+
const min = Math.min(Math.min(r, g), b);
|
|
649
|
+
const chroma = (max - min);
|
|
650
|
+
let grayscale;
|
|
651
|
+
let hue;
|
|
652
|
+
|
|
653
|
+
if (chroma < 1) {
|
|
654
|
+
grayscale = min / (1 - chroma);
|
|
655
|
+
} else {
|
|
656
|
+
grayscale = 0;
|
|
657
|
+
}
|
|
658
|
+
|
|
659
|
+
if (chroma <= 0) {
|
|
660
|
+
hue = 0;
|
|
661
|
+
} else
|
|
662
|
+
if (max === r) {
|
|
663
|
+
hue = ((g - b) / chroma) % 6;
|
|
664
|
+
} else
|
|
665
|
+
if (max === g) {
|
|
666
|
+
hue = 2 + (b - r) / chroma;
|
|
667
|
+
} else {
|
|
668
|
+
hue = 4 + (r - g) / chroma;
|
|
669
|
+
}
|
|
670
|
+
|
|
671
|
+
hue /= 6;
|
|
672
|
+
hue %= 1;
|
|
673
|
+
|
|
674
|
+
return [hue * 360, chroma * 100, grayscale * 100];
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
convert.hsl.hcg = function (hsl) {
|
|
678
|
+
const s = hsl[1] / 100;
|
|
679
|
+
const l = hsl[2] / 100;
|
|
680
|
+
|
|
681
|
+
const c = l < 0.5 ? (2.0 * s * l) : (2.0 * s * (1.0 - l));
|
|
682
|
+
|
|
683
|
+
let f = 0;
|
|
684
|
+
if (c < 1.0) {
|
|
685
|
+
f = (l - 0.5 * c) / (1.0 - c);
|
|
686
|
+
}
|
|
687
|
+
|
|
688
|
+
return [hsl[0], c * 100, f * 100];
|
|
689
|
+
};
|
|
690
|
+
|
|
691
|
+
convert.hsv.hcg = function (hsv) {
|
|
692
|
+
const s = hsv[1] / 100;
|
|
693
|
+
const v = hsv[2] / 100;
|
|
694
|
+
|
|
695
|
+
const c = s * v;
|
|
696
|
+
let f = 0;
|
|
697
|
+
|
|
698
|
+
if (c < 1.0) {
|
|
699
|
+
f = (v - c) / (1 - c);
|
|
700
|
+
}
|
|
701
|
+
|
|
702
|
+
return [hsv[0], c * 100, f * 100];
|
|
703
|
+
};
|
|
704
|
+
|
|
705
|
+
convert.hcg.rgb = function (hcg) {
|
|
706
|
+
const h = hcg[0] / 360;
|
|
707
|
+
const c = hcg[1] / 100;
|
|
708
|
+
const g = hcg[2] / 100;
|
|
709
|
+
|
|
710
|
+
if (c === 0.0) {
|
|
711
|
+
return [g * 255, g * 255, g * 255];
|
|
712
|
+
}
|
|
713
|
+
|
|
714
|
+
const pure = [0, 0, 0];
|
|
715
|
+
const hi = (h % 1) * 6;
|
|
716
|
+
const v = hi % 1;
|
|
717
|
+
const w = 1 - v;
|
|
718
|
+
let mg = 0;
|
|
719
|
+
|
|
720
|
+
/* eslint-disable max-statements-per-line */
|
|
721
|
+
switch (Math.floor(hi)) {
|
|
722
|
+
case 0:
|
|
723
|
+
pure[0] = 1; pure[1] = v; pure[2] = 0; break;
|
|
724
|
+
case 1:
|
|
725
|
+
pure[0] = w; pure[1] = 1; pure[2] = 0; break;
|
|
726
|
+
case 2:
|
|
727
|
+
pure[0] = 0; pure[1] = 1; pure[2] = v; break;
|
|
728
|
+
case 3:
|
|
729
|
+
pure[0] = 0; pure[1] = w; pure[2] = 1; break;
|
|
730
|
+
case 4:
|
|
731
|
+
pure[0] = v; pure[1] = 0; pure[2] = 1; break;
|
|
732
|
+
default:
|
|
733
|
+
pure[0] = 1; pure[1] = 0; pure[2] = w;
|
|
734
|
+
}
|
|
735
|
+
/* eslint-enable max-statements-per-line */
|
|
736
|
+
|
|
737
|
+
mg = (1.0 - c) * g;
|
|
738
|
+
|
|
739
|
+
return [
|
|
740
|
+
(c * pure[0] + mg) * 255,
|
|
741
|
+
(c * pure[1] + mg) * 255,
|
|
742
|
+
(c * pure[2] + mg) * 255
|
|
743
|
+
];
|
|
744
|
+
};
|
|
745
|
+
|
|
746
|
+
convert.hcg.hsv = function (hcg) {
|
|
747
|
+
const c = hcg[1] / 100;
|
|
748
|
+
const g = hcg[2] / 100;
|
|
749
|
+
|
|
750
|
+
const v = c + g * (1.0 - c);
|
|
751
|
+
let f = 0;
|
|
752
|
+
|
|
753
|
+
if (v > 0.0) {
|
|
754
|
+
f = c / v;
|
|
755
|
+
}
|
|
756
|
+
|
|
757
|
+
return [hcg[0], f * 100, v * 100];
|
|
758
|
+
};
|
|
759
|
+
|
|
760
|
+
convert.hcg.hsl = function (hcg) {
|
|
761
|
+
const c = hcg[1] / 100;
|
|
762
|
+
const g = hcg[2] / 100;
|
|
763
|
+
|
|
764
|
+
const l = g * (1.0 - c) + 0.5 * c;
|
|
765
|
+
let s = 0;
|
|
766
|
+
|
|
767
|
+
if (l > 0.0 && l < 0.5) {
|
|
768
|
+
s = c / (2 * l);
|
|
769
|
+
} else
|
|
770
|
+
if (l >= 0.5 && l < 1.0) {
|
|
771
|
+
s = c / (2 * (1 - l));
|
|
772
|
+
}
|
|
773
|
+
|
|
774
|
+
return [hcg[0], s * 100, l * 100];
|
|
775
|
+
};
|
|
776
|
+
|
|
777
|
+
convert.hcg.hwb = function (hcg) {
|
|
778
|
+
const c = hcg[1] / 100;
|
|
779
|
+
const g = hcg[2] / 100;
|
|
780
|
+
const v = c + g * (1.0 - c);
|
|
781
|
+
return [hcg[0], (v - c) * 100, (1 - v) * 100];
|
|
782
|
+
};
|
|
783
|
+
|
|
784
|
+
convert.hwb.hcg = function (hwb) {
|
|
785
|
+
const w = hwb[1] / 100;
|
|
786
|
+
const b = hwb[2] / 100;
|
|
787
|
+
const v = 1 - b;
|
|
788
|
+
const c = v - w;
|
|
789
|
+
let g = 0;
|
|
790
|
+
|
|
791
|
+
if (c < 1) {
|
|
792
|
+
g = (v - c) / (1 - c);
|
|
793
|
+
}
|
|
794
|
+
|
|
795
|
+
return [hwb[0], c * 100, g * 100];
|
|
796
|
+
};
|
|
797
|
+
|
|
798
|
+
convert.apple.rgb = function (apple) {
|
|
799
|
+
return [(apple[0] / 65535) * 255, (apple[1] / 65535) * 255, (apple[2] / 65535) * 255];
|
|
800
|
+
};
|
|
801
|
+
|
|
802
|
+
convert.rgb.apple = function (rgb) {
|
|
803
|
+
return [(rgb[0] / 255) * 65535, (rgb[1] / 255) * 65535, (rgb[2] / 255) * 65535];
|
|
804
|
+
};
|
|
805
|
+
|
|
806
|
+
convert.gray.rgb = function (args) {
|
|
807
|
+
return [args[0] / 100 * 255, args[0] / 100 * 255, args[0] / 100 * 255];
|
|
808
|
+
};
|
|
809
|
+
|
|
810
|
+
convert.gray.hsl = function (args) {
|
|
811
|
+
return [0, 0, args[0]];
|
|
812
|
+
};
|
|
813
|
+
|
|
814
|
+
convert.gray.hsv = convert.gray.hsl;
|
|
815
|
+
|
|
816
|
+
convert.gray.hwb = function (gray) {
|
|
817
|
+
return [0, 100, gray[0]];
|
|
818
|
+
};
|
|
819
|
+
|
|
820
|
+
convert.gray.cmyk = function (gray) {
|
|
821
|
+
return [0, 0, 0, gray[0]];
|
|
822
|
+
};
|
|
823
|
+
|
|
824
|
+
convert.gray.lab = function (gray) {
|
|
825
|
+
return [gray[0], 0, 0];
|
|
826
|
+
};
|
|
827
|
+
|
|
828
|
+
convert.gray.hex = function (gray) {
|
|
829
|
+
const val = Math.round(gray[0] / 100 * 255) & 0xFF;
|
|
830
|
+
const integer = (val << 16) + (val << 8) + val;
|
|
831
|
+
|
|
832
|
+
const string = integer.toString(16).toUpperCase();
|
|
833
|
+
return '000000'.substring(string.length) + string;
|
|
834
|
+
};
|
|
835
|
+
|
|
836
|
+
convert.rgb.gray = function (rgb) {
|
|
837
|
+
const val = (rgb[0] + rgb[1] + rgb[2]) / 3;
|
|
838
|
+
return [val / 255 * 100];
|
|
839
|
+
};
|