@pnpm/exe 12.8.1 → 12.9.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/bin/pnpm.mjs +5 -1
- package/bin/pnpx.mjs +1 -1
- package/dist/node_modules/.bin/get-pnpm +4 -1
- package/dist/node_modules/.bin/node-gyp +4 -1
- package/dist/node_modules/.bin/node-which +4 -1
- package/dist/node_modules/.bin/nopt +4 -1
- package/dist/node_modules/.bin/semver +4 -1
- package/dist/node_modules/.pnpm-workspace-state-v1.json +18 -11
- package/dist/node_modules/undici/lib/core/request.js +68 -2
- package/dist/node_modules/undici/lib/dispatcher/client-h1.js +18 -7
- package/dist/node_modules/undici/lib/dispatcher/client-h2.js +70 -18
- package/dist/node_modules/undici/lib/handler/retry-handler.js +4 -1
- package/dist/node_modules/undici/package.json +1 -1
- package/dist/wasm/LICENSE +22 -0
- package/dist/wasm/README.md +140 -0
- package/dist/wasm/THIRD-PARTY-NOTICES.md +42 -0
- package/dist/wasm/host/atomic-waits.mjs +43 -0
- package/dist/wasm/host/cancellation.mjs +6 -0
- package/dist/wasm/host/executable-mode.mjs +8 -0
- package/dist/wasm/host/file-locks.mjs +40 -0
- package/dist/wasm/host/filesystem.mjs +318 -0
- package/dist/wasm/host/guest-imports.mjs +45 -0
- package/dist/wasm/host/guest-operations.mjs +148 -0
- package/dist/wasm/host/lock-registry.mjs +167 -0
- package/dist/wasm/host/network.mjs +76 -0
- package/dist/wasm/host/operations.mjs +67 -0
- package/dist/wasm/host/poll.mjs +74 -0
- package/dist/wasm/host/process-stdio.mjs +41 -0
- package/dist/wasm/host/process-tree.mjs +54 -0
- package/dist/wasm/host/process.mjs +126 -0
- package/dist/wasm/host/protocol.mjs +1 -0
- package/dist/wasm/host/resources.mjs +76 -0
- package/dist/wasm/host/shell-runner.mjs +8 -0
- package/dist/wasm/host/shell.mjs +19 -0
- package/dist/wasm/host/signals.mjs +49 -0
- package/dist/wasm/host/terminal-input.mjs +7 -0
- package/dist/wasm/host/terminal-password.mjs +32 -0
- package/dist/wasm/host/terminal-session.mjs +114 -0
- package/dist/wasm/host/terminal.mjs +61 -0
- package/dist/wasm/host/thread-spawn.mjs +21 -0
- package/dist/wasm/host/upload.mjs +21 -0
- package/dist/wasm/host/wait-for-reply.mjs +7 -0
- package/dist/wasm/host/wasi-errno.mjs +81 -0
- package/dist/wasm/host/wasi-imports.mjs +58 -0
- package/dist/wasm/node_modules/.bin/js-yaml +91 -0
- package/dist/wasm/node_modules/.bin/node-which +91 -0
- package/dist/wasm/node_modules/.bin/shell +91 -0
- package/dist/wasm/node_modules/.pnpm-workspace-state-v1.json +355 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/LICENSE +21 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/README.md +203 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.js +894 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.d.ts +272 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.cjs.min.js +1 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.mts +272 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.d.ts +274 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.esm-bundler.js +942 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.js +954 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.d.mts +272 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.js +1 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.min.mjs +1 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/dist/wasi-threads.mjs +889 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/index.js +5 -0
- package/dist/wasm/node_modules/@emnapi/wasi-threads/package.json +50 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/LICENSE +21 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/README.md +171 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/adapters/fs.d.ts +20 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/adapters/fs.js +19 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/constants.d.ts +4 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/constants.js +17 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/index.d.ts +12 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/index.js +26 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/async.d.ts +7 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/async.js +104 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/common.d.ts +1 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/common.js +13 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/sync.d.ts +5 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/providers/sync.js +54 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/settings.d.ts +20 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/settings.js +24 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/types/index.d.ts +20 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/types/index.js +2 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/fs.d.ts +2 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/fs.js +19 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/index.d.ts +2 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/out/utils/index.js +5 -0
- package/dist/wasm/node_modules/@nodelib/fs.scandir/package.json +44 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/LICENSE +21 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/README.md +126 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/adapters/fs.d.ts +13 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/adapters/fs.js +17 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/index.d.ts +12 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/index.js +26 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/async.d.ts +4 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/async.js +36 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/sync.d.ts +3 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/providers/sync.js +23 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/settings.d.ts +16 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/settings.js +16 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/types/index.d.ts +4 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/out/types/index.js +2 -0
- package/dist/wasm/node_modules/@nodelib/fs.stat/package.json +37 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/LICENSE +21 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/README.md +215 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/index.d.ts +14 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/index.js +34 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/async.d.ts +12 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/async.js +30 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/index.d.ts +4 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/index.js +9 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/stream.d.ts +12 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/stream.js +34 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/sync.d.ts +10 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/providers/sync.js +14 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/async.d.ts +30 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/async.js +97 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/common.d.ts +7 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/common.js +31 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/reader.d.ts +6 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/reader.js +11 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/sync.d.ts +15 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/readers/sync.js +59 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/settings.d.ts +30 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/settings.js +26 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/types/index.d.ts +8 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/out/types/index.js +2 -0
- package/dist/wasm/node_modules/@nodelib/fs.walk/package.json +44 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/LICENSE +21 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/README.md +193 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/tsdoc-metadata.json +11 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.d.ts +423 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.esm-bundler.js +2932 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.esm.js +2932 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.esm.min.js +1 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.js +2954 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/dist/wasm-util.min.js +1 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/asyncify.js +158 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/index.js +13 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/jspi.js +46 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/load.js +97 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/memory.js +35 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/error.js +103 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/fd.js +268 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/fs.js +3 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/index.js +192 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/path.js +316 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/preview1.js +1599 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/rights.js +141 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/types.js +220 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/wasi/util.js +128 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/cjs/webassembly.js +13 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/asyncify.mjs +153 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/index.mjs +9 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/jspi.mjs +39 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/load.mjs +89 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/memory.mjs +28 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/error.mjs +97 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/fd.mjs +256 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/fs.mjs +1 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/index.mjs +186 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/path.mjs +310 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/preview1.mjs +1593 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/rights.mjs +135 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/types.mjs +216 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/wasi/util.mjs +113 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/lib/mjs/webassembly.mjs +9 -0
- package/dist/wasm/node_modules/@tybys/wasm-util/package.json +58 -0
- package/dist/wasm/node_modules/@types/braces/LICENSE +21 -0
- package/dist/wasm/node_modules/@types/braces/README.md +15 -0
- package/dist/wasm/node_modules/@types/braces/index.d.ts +100 -0
- package/dist/wasm/node_modules/@types/braces/package.json +36 -0
- package/dist/wasm/node_modules/@types/micromatch/LICENSE +21 -0
- package/dist/wasm/node_modules/@types/micromatch/README.md +15 -0
- package/dist/wasm/node_modules/@types/micromatch/index.d.ts +670 -0
- package/dist/wasm/node_modules/@types/micromatch/package.json +28 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/README.md +17 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/AliasFS.d.ts +16 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/AliasFS.js +24 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/CwdFS.d.ts +15 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/CwdFS.js +36 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/FakeFS.d.ts +398 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/FakeFS.js +451 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/JailFS.d.ts +16 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/JailFS.js +35 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/LazyFS.d.ts +13 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/LazyFS.js +26 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/MountFS.d.ts +278 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/MountFS.js +873 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NoFS.d.ts +78 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NoFS.js +229 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodeFS.d.ts +223 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodeFS.js +476 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodePathFS.d.ts +18 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/NodePathFS.js +47 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/PosixFS.d.ts +9 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/PosixFS.js +18 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/ProxiedFS.d.ts +229 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/ProxiedFS.js +255 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/VirtualFS.d.ts +19 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/VirtualFS.js +89 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.d.ts +19 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/copyPromise.js +271 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/opendir.d.ts +22 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/opendir.js +65 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.d.ts +59 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile/CustomStatWatcher.js +139 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile.d.ts +6 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/algorithms/watchFile.js +67 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/constants.d.ts +13 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/constants.js +16 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/errors.d.ts +36 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/errors.js +54 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/index.d.ts +48 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/index.js +55 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/FileHandle.d.ts +81 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/FileHandle.js +254 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/patchFs.d.ts +5 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/patchFs/patchFs.js +265 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/path.d.ts +84 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/path.js +103 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/statUtils.d.ts +81 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/statUtils.js +238 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/xfs.d.ts +18 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/lib/xfs.js +123 -0
- package/dist/wasm/node_modules/@yarnpkg/fslib/package.json +42 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/resolution.d.ts +1 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/resolution.js +530 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/resolution.pegjs +17 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/shell.d.ts +92 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/shell.js +3653 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/shell.pegjs +189 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/syml.d.ts +1 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/syml.js +1911 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/grammars/syml.pegjs +125 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/index.d.ts +6 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/index.js +24 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/resolution.d.ts +12 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/resolution.js +31 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/shell.d.ts +19 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/shell.js +170 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/syml.d.ts +11 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/lib/syml.js +132 -0
- package/dist/wasm/node_modules/@yarnpkg/parsers/package.json +46 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/README.md +38 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/boot-cli-dev.js +3 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/cli.d.ts +2 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/cli.js +19 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/commands/entry.d.ts +8 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/commands/entry.js +60 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/errors.d.ts +6 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/errors.js +13 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/globUtils.d.ts +23 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/globUtils.js +47 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/index.d.ts +56 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/index.js +926 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/pipe.d.ts +54 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/lib/pipe.js +281 -0
- package/dist/wasm/node_modules/@yarnpkg/shell/package.json +54 -0
- package/dist/wasm/node_modules/ansi-styles/index.d.ts +345 -0
- package/dist/wasm/node_modules/ansi-styles/index.js +163 -0
- package/dist/wasm/node_modules/ansi-styles/license +9 -0
- package/dist/wasm/node_modules/ansi-styles/package.json +56 -0
- package/dist/wasm/node_modules/ansi-styles/readme.md +152 -0
- package/dist/wasm/node_modules/argparse/CHANGELOG.md +216 -0
- package/dist/wasm/node_modules/argparse/LICENSE +254 -0
- package/dist/wasm/node_modules/argparse/README.md +84 -0
- package/dist/wasm/node_modules/argparse/argparse.js +3707 -0
- package/dist/wasm/node_modules/argparse/lib/sub.js +67 -0
- package/dist/wasm/node_modules/argparse/lib/textwrap.js +440 -0
- package/dist/wasm/node_modules/argparse/package.json +31 -0
- package/dist/wasm/node_modules/braces/LICENSE +21 -0
- package/dist/wasm/node_modules/braces/README.md +586 -0
- package/dist/wasm/node_modules/braces/index.js +170 -0
- package/dist/wasm/node_modules/braces/lib/compile.js +60 -0
- package/dist/wasm/node_modules/braces/lib/constants.js +57 -0
- package/dist/wasm/node_modules/braces/lib/expand.js +113 -0
- package/dist/wasm/node_modules/braces/lib/parse.js +331 -0
- package/dist/wasm/node_modules/braces/lib/stringify.js +32 -0
- package/dist/wasm/node_modules/braces/lib/utils.js +122 -0
- package/dist/wasm/node_modules/braces/package.json +77 -0
- package/dist/wasm/node_modules/chalk/index.d.ts +415 -0
- package/dist/wasm/node_modules/chalk/license +9 -0
- package/dist/wasm/node_modules/chalk/package.json +68 -0
- package/dist/wasm/node_modules/chalk/readme.md +341 -0
- package/dist/wasm/node_modules/chalk/source/index.js +229 -0
- package/dist/wasm/node_modules/chalk/source/templates.js +134 -0
- package/dist/wasm/node_modules/chalk/source/util.js +39 -0
- package/dist/wasm/node_modules/clipanion/README.md +98 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/Cli.d.ts +225 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/Cli.js +406 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/Cli.mjs +398 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/Command.d.ts +144 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/Command.js +91 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/Command.mjs +67 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/HelpCommand.d.ts +11 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/HelpCommand.js +54 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/HelpCommand.mjs +50 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/definitions.d.ts +8 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/definitions.js +17 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/definitions.mjs +13 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/help.d.ts +10 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/help.js +19 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/help.mjs +15 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/index.d.ts +3 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/index.js +13 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/index.mjs +3 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/version.d.ts +10 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/version.js +20 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/builtins/version.mjs +16 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/index.d.ts +7 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/index.js +19 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/index.mjs +8 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Array.d.ts +17 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Array.js +37 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Array.mjs +33 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Boolean.d.ts +14 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Boolean.js +34 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Boolean.mjs +30 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Counter.d.ts +15 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Counter.js +41 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Counter.mjs +37 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Proxy.d.ts +18 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Proxy.js +35 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Proxy.mjs +31 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Rest.d.ts +18 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Rest.js +51 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/Rest.mjs +47 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/String.d.ts +49 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/String.js +84 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/String.mjs +80 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/index.d.ts +7 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/index.js +26 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/index.mjs +7 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/utils.d.ts +25 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/utils.js +59 -0
- package/dist/wasm/node_modules/clipanion/lib/advanced/options/utils.mjs +50 -0
- package/dist/wasm/node_modules/clipanion/lib/constants.d.ts +11 -0
- package/dist/wasm/node_modules/clipanion/lib/constants.js +27 -0
- package/dist/wasm/node_modules/clipanion/lib/constants.mjs +13 -0
- package/dist/wasm/node_modules/clipanion/lib/core.d.ts +462 -0
- package/dist/wasm/node_modules/clipanion/lib/core.js +827 -0
- package/dist/wasm/node_modules/clipanion/lib/core.mjs +800 -0
- package/dist/wasm/node_modules/clipanion/lib/demos/advanced.d.ts +22 -0
- package/dist/wasm/node_modules/clipanion/lib/errors.d.ts +52 -0
- package/dist/wasm/node_modules/clipanion/lib/errors.js +70 -0
- package/dist/wasm/node_modules/clipanion/lib/errors.mjs +64 -0
- package/dist/wasm/node_modules/clipanion/lib/format.d.ts +19 -0
- package/dist/wasm/node_modules/clipanion/lib/format.js +74 -0
- package/dist/wasm/node_modules/clipanion/lib/format.mjs +68 -0
- package/dist/wasm/node_modules/clipanion/package.json +68 -0
- package/dist/wasm/node_modules/color-convert/CHANGELOG.md +54 -0
- package/dist/wasm/node_modules/color-convert/LICENSE +21 -0
- package/dist/wasm/node_modules/color-convert/README.md +68 -0
- package/dist/wasm/node_modules/color-convert/conversions.js +839 -0
- package/dist/wasm/node_modules/color-convert/index.js +81 -0
- package/dist/wasm/node_modules/color-convert/package.json +48 -0
- package/dist/wasm/node_modules/color-convert/route.js +97 -0
- package/dist/wasm/node_modules/color-name/LICENSE +8 -0
- package/dist/wasm/node_modules/color-name/README.md +11 -0
- package/dist/wasm/node_modules/color-name/index.js +152 -0
- package/dist/wasm/node_modules/color-name/package.json +28 -0
- package/dist/wasm/node_modules/cross-spawn/LICENSE +21 -0
- package/dist/wasm/node_modules/cross-spawn/README.md +89 -0
- package/dist/wasm/node_modules/cross-spawn/index.js +39 -0
- package/dist/wasm/node_modules/cross-spawn/lib/enoent.js +59 -0
- package/dist/wasm/node_modules/cross-spawn/lib/parse.js +91 -0
- package/dist/wasm/node_modules/cross-spawn/lib/util/escape.js +47 -0
- package/dist/wasm/node_modules/cross-spawn/lib/util/readShebang.js +23 -0
- package/dist/wasm/node_modules/cross-spawn/lib/util/resolveCommand.js +52 -0
- package/dist/wasm/node_modules/cross-spawn/package.json +73 -0
- package/dist/wasm/node_modules/fast-glob/LICENSE +21 -0
- package/dist/wasm/node_modules/fast-glob/README.md +830 -0
- package/dist/wasm/node_modules/fast-glob/out/index.d.ts +40 -0
- package/dist/wasm/node_modules/fast-glob/out/index.js +102 -0
- package/dist/wasm/node_modules/fast-glob/out/managers/tasks.d.ts +22 -0
- package/dist/wasm/node_modules/fast-glob/out/managers/tasks.js +110 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/async.d.ts +9 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/async.js +23 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/filters/deep.d.ts +16 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/filters/deep.js +62 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/filters/entry.d.ts +17 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/filters/entry.js +85 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/filters/error.d.ts +8 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/filters/error.js +15 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/matchers/matcher.d.ts +33 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/matchers/matcher.js +45 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/matchers/partial.d.ts +4 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/matchers/partial.js +38 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/provider.d.ts +19 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/provider.js +48 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/stream.d.ts +11 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/stream.js +31 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/sync.d.ts +9 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/sync.js +23 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/transformers/entry.d.ts +8 -0
- package/dist/wasm/node_modules/fast-glob/out/providers/transformers/entry.js +26 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/async.d.ts +10 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/async.js +35 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/reader.d.ts +15 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/reader.js +33 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/stream.d.ts +14 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/stream.js +55 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/sync.d.ts +12 -0
- package/dist/wasm/node_modules/fast-glob/out/readers/sync.js +43 -0
- package/dist/wasm/node_modules/fast-glob/out/settings.d.ts +164 -0
- package/dist/wasm/node_modules/fast-glob/out/settings.js +59 -0
- package/dist/wasm/node_modules/fast-glob/out/types/index.d.ts +31 -0
- package/dist/wasm/node_modules/fast-glob/out/types/index.js +2 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/array.d.ts +2 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/array.js +22 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/errno.d.ts +2 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/errno.js +7 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/fs.d.ts +4 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/fs.js +19 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/index.d.ts +8 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/index.js +17 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/path.d.ts +13 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/path.js +68 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/pattern.d.ts +49 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/pattern.js +206 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/stream.d.ts +4 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/stream.js +17 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/string.d.ts +2 -0
- package/dist/wasm/node_modules/fast-glob/out/utils/string.js +11 -0
- package/dist/wasm/node_modules/fast-glob/package.json +81 -0
- package/dist/wasm/node_modules/fastq/LICENSE +13 -0
- package/dist/wasm/node_modules/fastq/README.md +310 -0
- package/dist/wasm/node_modules/fastq/SECURITY.md +15 -0
- package/dist/wasm/node_modules/fastq/bench.js +66 -0
- package/dist/wasm/node_modules/fastq/eslint.config.js +11 -0
- package/dist/wasm/node_modules/fastq/example.js +14 -0
- package/dist/wasm/node_modules/fastq/example.mjs +9 -0
- package/dist/wasm/node_modules/fastq/index.d.ts +59 -0
- package/dist/wasm/node_modules/fastq/package.json +49 -0
- package/dist/wasm/node_modules/fastq/queue.js +348 -0
- package/dist/wasm/node_modules/fastq/test/example.ts +83 -0
- package/dist/wasm/node_modules/fastq/test/promise.js +356 -0
- package/dist/wasm/node_modules/fastq/test/test.js +808 -0
- package/dist/wasm/node_modules/fastq/test/tsconfig.json +11 -0
- package/dist/wasm/node_modules/fill-range/LICENSE +21 -0
- package/dist/wasm/node_modules/fill-range/README.md +237 -0
- package/dist/wasm/node_modules/fill-range/index.js +248 -0
- package/dist/wasm/node_modules/fill-range/package.json +74 -0
- package/dist/wasm/node_modules/glob-parent/CHANGELOG.md +110 -0
- package/dist/wasm/node_modules/glob-parent/LICENSE +15 -0
- package/dist/wasm/node_modules/glob-parent/README.md +137 -0
- package/dist/wasm/node_modules/glob-parent/index.js +42 -0
- package/dist/wasm/node_modules/glob-parent/package.json +48 -0
- package/dist/wasm/node_modules/has-flag/index.d.ts +39 -0
- package/dist/wasm/node_modules/has-flag/index.js +8 -0
- package/dist/wasm/node_modules/has-flag/license +9 -0
- package/dist/wasm/node_modules/has-flag/package.json +46 -0
- package/dist/wasm/node_modules/has-flag/readme.md +89 -0
- package/dist/wasm/node_modules/is-extglob/LICENSE +21 -0
- package/dist/wasm/node_modules/is-extglob/README.md +107 -0
- package/dist/wasm/node_modules/is-extglob/index.js +20 -0
- package/dist/wasm/node_modules/is-extglob/package.json +69 -0
- package/dist/wasm/node_modules/is-glob/LICENSE +21 -0
- package/dist/wasm/node_modules/is-glob/README.md +206 -0
- package/dist/wasm/node_modules/is-glob/index.js +150 -0
- package/dist/wasm/node_modules/is-glob/package.json +81 -0
- package/dist/wasm/node_modules/is-number/LICENSE +21 -0
- package/dist/wasm/node_modules/is-number/README.md +187 -0
- package/dist/wasm/node_modules/is-number/index.js +18 -0
- package/dist/wasm/node_modules/is-number/package.json +82 -0
- package/dist/wasm/node_modules/isexe/.npmignore +2 -0
- package/dist/wasm/node_modules/isexe/LICENSE +15 -0
- package/dist/wasm/node_modules/isexe/README.md +51 -0
- package/dist/wasm/node_modules/isexe/index.js +57 -0
- package/dist/wasm/node_modules/isexe/mode.js +41 -0
- package/dist/wasm/node_modules/isexe/package.json +31 -0
- package/dist/wasm/node_modules/isexe/test/basic.js +221 -0
- package/dist/wasm/node_modules/isexe/windows.js +42 -0
- package/dist/wasm/node_modules/js-yaml/LICENSE +21 -0
- package/dist/wasm/node_modules/js-yaml/README.md +246 -0
- package/dist/wasm/node_modules/js-yaml/bin/js-yaml.js +126 -0
- package/dist/wasm/node_modules/js-yaml/dist/js-yaml.js +3874 -0
- package/dist/wasm/node_modules/js-yaml/dist/js-yaml.min.js +2 -0
- package/dist/wasm/node_modules/js-yaml/dist/js-yaml.mjs +3851 -0
- package/dist/wasm/node_modules/js-yaml/index.js +30 -0
- package/dist/wasm/node_modules/js-yaml/lib/common.js +59 -0
- package/dist/wasm/node_modules/js-yaml/lib/dumper.js +979 -0
- package/dist/wasm/node_modules/js-yaml/lib/exception.js +55 -0
- package/dist/wasm/node_modules/js-yaml/lib/loader.js +1733 -0
- package/dist/wasm/node_modules/js-yaml/lib/schema/core.js +11 -0
- package/dist/wasm/node_modules/js-yaml/lib/schema/default.js +22 -0
- package/dist/wasm/node_modules/js-yaml/lib/schema/failsafe.js +17 -0
- package/dist/wasm/node_modules/js-yaml/lib/schema/json.js +19 -0
- package/dist/wasm/node_modules/js-yaml/lib/schema.js +121 -0
- package/dist/wasm/node_modules/js-yaml/lib/snippet.js +101 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/binary.js +125 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/bool.js +35 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/float.js +97 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/int.js +156 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/map.js +8 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/merge.js +12 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/null.js +35 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/omap.js +44 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/pairs.js +53 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/seq.js +8 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/set.js +29 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/str.js +8 -0
- package/dist/wasm/node_modules/js-yaml/lib/type/timestamp.js +88 -0
- package/dist/wasm/node_modules/js-yaml/lib/type.js +65 -0
- package/dist/wasm/node_modules/js-yaml/package.json +65 -0
- package/dist/wasm/node_modules/merge2/LICENSE +21 -0
- package/dist/wasm/node_modules/merge2/README.md +144 -0
- package/dist/wasm/node_modules/merge2/index.js +144 -0
- package/dist/wasm/node_modules/merge2/package.json +43 -0
- package/dist/wasm/node_modules/micromatch/LICENSE +21 -0
- package/dist/wasm/node_modules/micromatch/README.md +1024 -0
- package/dist/wasm/node_modules/micromatch/index.js +474 -0
- package/dist/wasm/node_modules/micromatch/package.json +119 -0
- package/dist/wasm/node_modules/path-key/index.d.ts +40 -0
- package/dist/wasm/node_modules/path-key/index.js +16 -0
- package/dist/wasm/node_modules/path-key/license +9 -0
- package/dist/wasm/node_modules/path-key/package.json +39 -0
- package/dist/wasm/node_modules/path-key/readme.md +61 -0
- package/dist/wasm/node_modules/picomatch/LICENSE +21 -0
- package/dist/wasm/node_modules/picomatch/README.md +716 -0
- package/dist/wasm/node_modules/picomatch/index.js +3 -0
- package/dist/wasm/node_modules/picomatch/lib/constants.js +184 -0
- package/dist/wasm/node_modules/picomatch/lib/parse.js +1392 -0
- package/dist/wasm/node_modules/picomatch/lib/picomatch.js +342 -0
- package/dist/wasm/node_modules/picomatch/lib/scan.js +391 -0
- package/dist/wasm/node_modules/picomatch/lib/utils.js +64 -0
- package/dist/wasm/node_modules/picomatch/package.json +81 -0
- package/dist/wasm/node_modules/queue-microtask/LICENSE +20 -0
- package/dist/wasm/node_modules/queue-microtask/README.md +90 -0
- package/dist/wasm/node_modules/queue-microtask/index.d.ts +2 -0
- package/dist/wasm/node_modules/queue-microtask/index.js +9 -0
- package/dist/wasm/node_modules/queue-microtask/package.json +55 -0
- package/dist/wasm/node_modules/reusify/.github/dependabot.yml +7 -0
- package/dist/wasm/node_modules/reusify/.github/workflows/ci.yml +96 -0
- package/dist/wasm/node_modules/reusify/LICENSE +22 -0
- package/dist/wasm/node_modules/reusify/README.md +139 -0
- package/dist/wasm/node_modules/reusify/SECURITY.md +15 -0
- package/dist/wasm/node_modules/reusify/benchmarks/createNoCodeFunction.js +30 -0
- package/dist/wasm/node_modules/reusify/benchmarks/fib.js +13 -0
- package/dist/wasm/node_modules/reusify/benchmarks/reuseNoCodeFunction.js +38 -0
- package/dist/wasm/node_modules/reusify/eslint.config.js +14 -0
- package/dist/wasm/node_modules/reusify/package.json +50 -0
- package/dist/wasm/node_modules/reusify/reusify.d.ts +14 -0
- package/dist/wasm/node_modules/reusify/reusify.js +33 -0
- package/dist/wasm/node_modules/reusify/test.js +66 -0
- package/dist/wasm/node_modules/reusify/tsconfig.json +11 -0
- package/dist/wasm/node_modules/run-parallel/LICENSE +20 -0
- package/dist/wasm/node_modules/run-parallel/README.md +85 -0
- package/dist/wasm/node_modules/run-parallel/index.js +51 -0
- package/dist/wasm/node_modules/run-parallel/package.json +58 -0
- package/dist/wasm/node_modules/shebang-command/index.js +19 -0
- package/dist/wasm/node_modules/shebang-command/license +9 -0
- package/dist/wasm/node_modules/shebang-command/package.json +34 -0
- package/dist/wasm/node_modules/shebang-command/readme.md +34 -0
- package/dist/wasm/node_modules/shebang-regex/index.d.ts +22 -0
- package/dist/wasm/node_modules/shebang-regex/index.js +2 -0
- package/dist/wasm/node_modules/shebang-regex/license +9 -0
- package/dist/wasm/node_modules/shebang-regex/package.json +35 -0
- package/dist/wasm/node_modules/shebang-regex/readme.md +33 -0
- package/dist/wasm/node_modules/supports-color/browser.js +5 -0
- package/dist/wasm/node_modules/supports-color/index.js +135 -0
- package/dist/wasm/node_modules/supports-color/license +9 -0
- package/dist/wasm/node_modules/supports-color/package.json +53 -0
- package/dist/wasm/node_modules/supports-color/readme.md +76 -0
- package/dist/wasm/node_modules/to-regex-range/LICENSE +21 -0
- package/dist/wasm/node_modules/to-regex-range/README.md +305 -0
- package/dist/wasm/node_modules/to-regex-range/index.js +288 -0
- package/dist/wasm/node_modules/to-regex-range/package.json +88 -0
- package/dist/wasm/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/dist/wasm/node_modules/tslib/LICENSE.txt +12 -0
- package/dist/wasm/node_modules/tslib/README.md +164 -0
- package/dist/wasm/node_modules/tslib/SECURITY.md +41 -0
- package/dist/wasm/node_modules/tslib/modules/index.d.ts +38 -0
- package/dist/wasm/node_modules/tslib/modules/index.js +70 -0
- package/dist/wasm/node_modules/tslib/modules/package.json +3 -0
- package/dist/wasm/node_modules/tslib/package.json +47 -0
- package/dist/wasm/node_modules/tslib/tslib.d.ts +460 -0
- package/dist/wasm/node_modules/tslib/tslib.es6.html +1 -0
- package/dist/wasm/node_modules/tslib/tslib.es6.js +402 -0
- package/dist/wasm/node_modules/tslib/tslib.es6.mjs +401 -0
- package/dist/wasm/node_modules/tslib/tslib.html +1 -0
- package/dist/wasm/node_modules/tslib/tslib.js +484 -0
- package/dist/wasm/node_modules/typanion/README.md +117 -0
- package/dist/wasm/node_modules/typanion/lib/index.d.ts +5 -0
- package/dist/wasm/node_modules/typanion/lib/index.js +1305 -0
- package/dist/wasm/node_modules/typanion/lib/index.mjs +1249 -0
- package/dist/wasm/node_modules/typanion/lib/internal/format.d.ts +5 -0
- package/dist/wasm/node_modules/typanion/lib/internal/regexps.d.ts +5 -0
- package/dist/wasm/node_modules/typanion/lib/internal/tools.d.ts +5 -0
- package/dist/wasm/node_modules/typanion/lib/predicates/cascadingPredicates.d.ts +114 -0
- package/dist/wasm/node_modules/typanion/lib/predicates/helperPredicates.d.ts +80 -0
- package/dist/wasm/node_modules/typanion/lib/predicates/typePredicates.d.ts +205 -0
- package/dist/wasm/node_modules/typanion/lib/tools.d.ts +90 -0
- package/dist/wasm/node_modules/typanion/lib/types.d.ts +22 -0
- package/dist/wasm/node_modules/typanion/package.json +40 -0
- package/dist/wasm/node_modules/which/CHANGELOG.md +166 -0
- package/dist/wasm/node_modules/which/LICENSE +15 -0
- package/dist/wasm/node_modules/which/README.md +54 -0
- package/dist/wasm/node_modules/which/bin/node-which +52 -0
- package/dist/wasm/node_modules/which/package.json +43 -0
- package/dist/wasm/node_modules/which/which.js +125 -0
- package/dist/wasm/package.json +10 -0
- package/dist/wasm/pnpm.mjs +8 -0
- package/dist/wasm/pnpm.wasm +4 -0
- package/dist/wasm/pnpx.mjs +8 -0
- package/dist/wasm/run.mjs +147 -0
- package/dist/wasm/worker.mjs +56 -0
- package/install.js +18 -21
- package/package.json +16 -16
- package/pn +2 -70
- package/pnpm +2 -90
- package/pnpx +2 -70
- package/pnx +2 -70
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
# @tybys/wasm-util
|
|
2
|
+
|
|
3
|
+
WebAssembly related utils for browser environment
|
|
4
|
+
|
|
5
|
+
**The output code is ES2019**
|
|
6
|
+
|
|
7
|
+
## Features
|
|
8
|
+
|
|
9
|
+
All example code below need to be bundled by ES module bundlers like `webpack` / `rollup`, or specify import map in browser native ES module runtime.
|
|
10
|
+
|
|
11
|
+
### WASI polyfill for browser
|
|
12
|
+
|
|
13
|
+
The API is similar to the `require('wasi').WASI` in Node.js.
|
|
14
|
+
|
|
15
|
+
You can use `memfs-browser` to provide filesystem capability.
|
|
16
|
+
|
|
17
|
+
- Example: [https://github.com/toyobayashi/wasi-wabt](https://github.com/toyobayashi/wasi-wabt)
|
|
18
|
+
- Demo: [https://toyobayashi.github.io/wasi-wabt/](https://toyobayashi.github.io/wasi-wabt/)
|
|
19
|
+
|
|
20
|
+
```js
|
|
21
|
+
import { load, WASI } from '@tybys/wasm-util'
|
|
22
|
+
import { Volume, createFsFromVolume } from 'memfs-browser'
|
|
23
|
+
|
|
24
|
+
const fs = createFsFromVolume(Volume.fromJSON({
|
|
25
|
+
'/home/wasi': null
|
|
26
|
+
}))
|
|
27
|
+
|
|
28
|
+
const wasi = new WASI({
|
|
29
|
+
args: ['chrome', 'file.wasm'],
|
|
30
|
+
env: {
|
|
31
|
+
NODE_ENV: 'development',
|
|
32
|
+
WASI_SDK_PATH: '/opt/wasi-sdk'
|
|
33
|
+
},
|
|
34
|
+
preopens: {
|
|
35
|
+
'/': '/'
|
|
36
|
+
},
|
|
37
|
+
fs,
|
|
38
|
+
|
|
39
|
+
// redirect stdout / stderr
|
|
40
|
+
|
|
41
|
+
// print (text) { console.log(text) },
|
|
42
|
+
// printErr (text) { console.error(text) }
|
|
43
|
+
})
|
|
44
|
+
|
|
45
|
+
const imports = {
|
|
46
|
+
wasi_snapshot_preview1: wasi.wasiImport
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
const { module, instance } = await load('/path/to/file.wasm', imports)
|
|
50
|
+
wasi.start(instance)
|
|
51
|
+
// wasi.initialize(instance)
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
Implemented syscalls: [wasi_snapshot_preview1](#wasi_snapshot_preview1)
|
|
55
|
+
|
|
56
|
+
### `load` / `loadSync`
|
|
57
|
+
|
|
58
|
+
`loadSync` has 4KB wasm size limit in browser.
|
|
59
|
+
|
|
60
|
+
```js
|
|
61
|
+
// bundler
|
|
62
|
+
import { load, loadSync } from '@tybys/wasm-util'
|
|
63
|
+
|
|
64
|
+
const imports = { /* ... */ }
|
|
65
|
+
|
|
66
|
+
// using path
|
|
67
|
+
const { module, instance } = await load('/path/to/file.wasm', imports)
|
|
68
|
+
const { module, instance } = loadSync('/path/to/file.wasm', imports)
|
|
69
|
+
|
|
70
|
+
// using URL
|
|
71
|
+
const { module, instance } = await load(new URL('./file.wasm', import.meta.url), imports)
|
|
72
|
+
const { module, instance } = loadSync(new URL('./file.wasm', import.meta.url), imports)
|
|
73
|
+
|
|
74
|
+
// using Uint8Array
|
|
75
|
+
const buffer = new Uint8Array([
|
|
76
|
+
0x00, 0x61, 0x73, 0x6d,
|
|
77
|
+
0x01, 0x00, 0x00, 0x00
|
|
78
|
+
])
|
|
79
|
+
const { module, instance } = await load(buffer, imports)
|
|
80
|
+
const { module, instance } = loadSync(buffer, imports)
|
|
81
|
+
|
|
82
|
+
// auto asyncify
|
|
83
|
+
const {
|
|
84
|
+
module,
|
|
85
|
+
instance: asyncifiedInstance
|
|
86
|
+
} = await load(buffer, imports, { /* asyncify options */})
|
|
87
|
+
asyncifiedInstance.exports.fn() // => return Promise
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
### Extend Memory instance
|
|
91
|
+
|
|
92
|
+
```js
|
|
93
|
+
import { Memory, extendMemory } from '@tybys/wasm-util'
|
|
94
|
+
|
|
95
|
+
const memory = new WebAssembly.Memory({ initial: 256 })
|
|
96
|
+
// const memory = instance.exports.memory
|
|
97
|
+
|
|
98
|
+
extendMemory(memory)
|
|
99
|
+
console.log(memory instanceof Memory)
|
|
100
|
+
console.log(memory instanceof WebAssembly.Memory)
|
|
101
|
+
// expose memory view getters like Emscripten
|
|
102
|
+
const { HEAPU8, HEAPU32, view } = memory
|
|
103
|
+
```
|
|
104
|
+
|
|
105
|
+
### Asyncify wrap
|
|
106
|
+
|
|
107
|
+
Build the C code using `clang`, `wasm-ld` and `wasm-opt`
|
|
108
|
+
|
|
109
|
+
```c
|
|
110
|
+
void async_sleep(int ms);
|
|
111
|
+
|
|
112
|
+
int main() {
|
|
113
|
+
async_sleep(200);
|
|
114
|
+
return 0;
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
```js
|
|
119
|
+
import { Asyncify } from '@tybys/wasm-util'
|
|
120
|
+
|
|
121
|
+
const asyncify = new Asyncify()
|
|
122
|
+
|
|
123
|
+
const imports = {
|
|
124
|
+
env: {
|
|
125
|
+
async_sleep: asyncify.wrapImportFunction(function (ms) {
|
|
126
|
+
return new Promise((resolve) => {
|
|
127
|
+
setTimeout(resolve, ms)
|
|
128
|
+
})
|
|
129
|
+
})
|
|
130
|
+
}
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
// async_sleep(200)
|
|
134
|
+
const bytes = await (await fetch('/asyncfied_by_wasm-opt.wasm')).arrayBuffer()
|
|
135
|
+
const { instance } = await WebAssembly.instantiate(bytes, imports)
|
|
136
|
+
const asyncifiedInstance = asyncify.init(instance.exports.memory, instance, {
|
|
137
|
+
wrapExports: ['_start']
|
|
138
|
+
})
|
|
139
|
+
|
|
140
|
+
const p = asyncifedInstance._start()
|
|
141
|
+
console.log(typeof p.then === 'function')
|
|
142
|
+
const now = Date.now()
|
|
143
|
+
await p
|
|
144
|
+
console.log(Date.now() - now >= 200)
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### wasi_snapshot_preview1
|
|
148
|
+
|
|
149
|
+
- [x] args_get
|
|
150
|
+
- [x] args_sizes_get
|
|
151
|
+
- [x] environ_get
|
|
152
|
+
- [x] environ_sizes_get
|
|
153
|
+
- [x] clock_res_get
|
|
154
|
+
- [x] clock_time_get
|
|
155
|
+
- [ ] ~~fd_advise~~
|
|
156
|
+
- [x] fd_allocate
|
|
157
|
+
- [x] fd_close
|
|
158
|
+
- [x] fd_datasync
|
|
159
|
+
- [x] fd_fdstat_get
|
|
160
|
+
- [ ] ~~fd_fdstat_set_flags~~
|
|
161
|
+
- [x] fd_fdstat_set_rights
|
|
162
|
+
- [x] fd_filestat_get
|
|
163
|
+
- [x] fd_filestat_set_size
|
|
164
|
+
- [x] fd_filestat_set_times
|
|
165
|
+
- [x] fd_pread
|
|
166
|
+
- [x] fd_prestat_get
|
|
167
|
+
- [x] fd_prestat_dir_name
|
|
168
|
+
- [x] fd_pwrite
|
|
169
|
+
- [x] fd_read
|
|
170
|
+
- [x] fd_readdir
|
|
171
|
+
- [x] fd_renumber
|
|
172
|
+
- [x] fd_seek
|
|
173
|
+
- [x] fd_sync
|
|
174
|
+
- [x] fd_tell
|
|
175
|
+
- [x] fd_write
|
|
176
|
+
- [x] path_create_directory
|
|
177
|
+
- [x] path_filestat_get
|
|
178
|
+
- [x] path_filestat_set_times
|
|
179
|
+
- [x] path_link
|
|
180
|
+
- [x] path_open
|
|
181
|
+
- [x] path_readlink
|
|
182
|
+
- [x] path_remove_directory
|
|
183
|
+
- [x] path_rename
|
|
184
|
+
- [x] path_symlink
|
|
185
|
+
- [x] path_unlink_file
|
|
186
|
+
- [x] poll_oneoff (timer only)
|
|
187
|
+
- [x] proc_exit
|
|
188
|
+
- [ ] ~~proc_raise~~
|
|
189
|
+
- [x] sched_yield
|
|
190
|
+
- [x] random_get
|
|
191
|
+
- [ ] ~~sock_recv~~
|
|
192
|
+
- [ ] ~~sock_send~~
|
|
193
|
+
- [ ] ~~sock_shutdown~~
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
// This file is read by tools that parse documentation comments conforming to the TSDoc standard.
|
|
2
|
+
// It should be published with your NPM package. It should not be tracked by Git.
|
|
3
|
+
{
|
|
4
|
+
"tsdocVersion": "0.12",
|
|
5
|
+
"toolPackages": [
|
|
6
|
+
{
|
|
7
|
+
"packageName": "@microsoft/api-extractor",
|
|
8
|
+
"packageVersion": "7.34.4"
|
|
9
|
+
}
|
|
10
|
+
]
|
|
11
|
+
}
|
|
@@ -0,0 +1,423 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @packageDocumentation
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/** @public */
|
|
6
|
+
export declare class Asyncify {
|
|
7
|
+
private value;
|
|
8
|
+
private exports;
|
|
9
|
+
private dataPtr;
|
|
10
|
+
init<T extends WebAssembly.Exports, U extends Array<Exclude<keyof T, AsyncifyExportName>>>(memory: WebAssembly.Memory, instance: {
|
|
11
|
+
readonly exports: T;
|
|
12
|
+
}, options: AsyncifyOptions): {
|
|
13
|
+
readonly exports: AsyncifyExports<T, U>;
|
|
14
|
+
};
|
|
15
|
+
private assertState;
|
|
16
|
+
wrapImportFunction<T extends Function>(f: T): T;
|
|
17
|
+
wrapImports<T extends WebAssembly.Imports>(imports: T): T;
|
|
18
|
+
wrapExportFunction<T extends Function>(f: T): AsyncifyExportFunction<T>;
|
|
19
|
+
wrapExports<T extends WebAssembly.Exports>(exports: T): AsyncifyExports<T, void>;
|
|
20
|
+
wrapExports<T extends WebAssembly.Exports, U extends Array<Exclude<keyof T, AsyncifyExportName>>>(exports: T, needWrap: U): AsyncifyExports<T, U>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/** @public */
|
|
24
|
+
export declare type AsyncifyExportFunction<T> = T extends Callable ? (...args: Parameters<T>) => Promise<ReturnType<T>> : T;
|
|
25
|
+
|
|
26
|
+
/** @public */
|
|
27
|
+
export declare type AsyncifyExportName = 'asyncify_get_state' | 'asyncify_start_unwind' | 'asyncify_stop_unwind' | 'asyncify_start_rewind' | 'asyncify_stop_rewind';
|
|
28
|
+
|
|
29
|
+
/** @public */
|
|
30
|
+
export declare type AsyncifyExports<T, U> = T extends Record<string, any> ? {
|
|
31
|
+
[P in keyof T]: T[P] extends Callable ? U extends Array<Exclude<keyof T, AsyncifyExportName>> ? P extends U[number] ? AsyncifyExportFunction<T[P]> : T[P] : AsyncifyExportFunction<T[P]> : T[P];
|
|
32
|
+
} : T;
|
|
33
|
+
|
|
34
|
+
/** @public */
|
|
35
|
+
export declare function asyncifyLoad(asyncify: AsyncifyOptions, urlOrBuffer: string | URL | BufferSource | WebAssembly.Module, imports?: WebAssembly.Imports): Promise<WebAssembly.WebAssemblyInstantiatedSource>;
|
|
36
|
+
|
|
37
|
+
/** @public */
|
|
38
|
+
export declare function asyncifyLoadSync(asyncify: AsyncifyOptions, buffer: BufferSource | WebAssembly.Module, imports?: WebAssembly.Imports): WebAssembly.WebAssemblyInstantiatedSource;
|
|
39
|
+
|
|
40
|
+
/** @public */
|
|
41
|
+
export declare interface AsyncifyOptions {
|
|
42
|
+
wasm64?: boolean;
|
|
43
|
+
tryAllocate?: boolean | {
|
|
44
|
+
size?: number;
|
|
45
|
+
name?: string;
|
|
46
|
+
};
|
|
47
|
+
wrapExports?: string[];
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** @public */
|
|
51
|
+
export declare interface AsyncWASIOptions extends WASIOptions {
|
|
52
|
+
fs: {
|
|
53
|
+
promises: IFsPromises;
|
|
54
|
+
};
|
|
55
|
+
asyncify?: Asyncify;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/** @public */
|
|
59
|
+
export declare interface BaseEncodingOptions {
|
|
60
|
+
encoding?: BufferEncoding_2;
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/** @public */
|
|
64
|
+
export declare interface BigIntStats extends StatsBase<bigint> {
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** @public */
|
|
68
|
+
declare type BufferEncoding_2 = 'ascii' | 'utf8' | 'utf-8' | 'utf16le' | 'ucs2' | 'ucs-2' | 'base64' | 'base64url' | 'latin1' | 'binary' | 'hex';
|
|
69
|
+
export { BufferEncoding_2 as BufferEncoding }
|
|
70
|
+
|
|
71
|
+
/** @public */
|
|
72
|
+
export declare type BufferEncodingOption = 'buffer' | {
|
|
73
|
+
encoding: 'buffer';
|
|
74
|
+
};
|
|
75
|
+
|
|
76
|
+
/** @public */
|
|
77
|
+
export declare type Callable = (...args: any[]) => any;
|
|
78
|
+
|
|
79
|
+
/** @public */
|
|
80
|
+
export declare function createAsyncWASI(options?: AsyncWASIOptions): Promise<WASI>;
|
|
81
|
+
|
|
82
|
+
/** @public */
|
|
83
|
+
export declare function extendMemory(memory: WebAssembly.Memory): Memory;
|
|
84
|
+
|
|
85
|
+
/** @public */
|
|
86
|
+
export declare interface FileHandle {
|
|
87
|
+
readonly fd: number;
|
|
88
|
+
datasync(): Promise<void>;
|
|
89
|
+
sync(): Promise<void>;
|
|
90
|
+
read<TBuffer extends Uint8Array>(buffer: TBuffer, offset?: number, length?: number, position?: number): Promise<{
|
|
91
|
+
bytesRead: number;
|
|
92
|
+
buffer: TBuffer;
|
|
93
|
+
}>;
|
|
94
|
+
stat(opts?: StatOptions & {
|
|
95
|
+
bigint?: false;
|
|
96
|
+
}): Promise<Stats>;
|
|
97
|
+
stat(opts: StatOptions & {
|
|
98
|
+
bigint: true;
|
|
99
|
+
}): Promise<BigIntStats>;
|
|
100
|
+
stat(opts?: StatOptions): Promise<Stats | BigIntStats>;
|
|
101
|
+
truncate(len?: number): Promise<void>;
|
|
102
|
+
utimes(atime: string | number | Date, mtime: string | number | Date): Promise<void>;
|
|
103
|
+
write<TBuffer extends Uint8Array>(buffer: TBuffer, offset?: number, length?: number, position?: number): Promise<{
|
|
104
|
+
bytesWritten: number;
|
|
105
|
+
buffer: TBuffer;
|
|
106
|
+
}>;
|
|
107
|
+
write(data: string | Uint8Array, position?: number, encoding?: BufferEncoding_2): Promise<{
|
|
108
|
+
bytesWritten: number;
|
|
109
|
+
buffer: string;
|
|
110
|
+
}>;
|
|
111
|
+
close(): Promise<void>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/** @public */
|
|
115
|
+
export declare interface FinalizeBindingsOptions {
|
|
116
|
+
memory?: WebAssembly.Memory;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
/** @public */
|
|
120
|
+
export declare interface IDirent {
|
|
121
|
+
isFile(): boolean;
|
|
122
|
+
isDirectory(): boolean;
|
|
123
|
+
isBlockDevice(): boolean;
|
|
124
|
+
isCharacterDevice(): boolean;
|
|
125
|
+
isSymbolicLink(): boolean;
|
|
126
|
+
isFIFO(): boolean;
|
|
127
|
+
isSocket(): boolean;
|
|
128
|
+
name: string;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/** @public */
|
|
132
|
+
export declare interface IFs {
|
|
133
|
+
fstatSync(fd: number, options?: StatOptions & {
|
|
134
|
+
bigint?: false;
|
|
135
|
+
}): Stats;
|
|
136
|
+
fstatSync(fd: number, options: StatOptions & {
|
|
137
|
+
bigint: true;
|
|
138
|
+
}): BigIntStats;
|
|
139
|
+
fstatSync(fd: number, options?: StatOptions): Stats | BigIntStats;
|
|
140
|
+
statSync(path: PathLike, options?: StatOptions & {
|
|
141
|
+
bigint?: false;
|
|
142
|
+
}): Stats;
|
|
143
|
+
statSync(path: PathLike, options: StatOptions & {
|
|
144
|
+
bigint: true;
|
|
145
|
+
}): BigIntStats;
|
|
146
|
+
statSync(path: PathLike, options?: StatOptions): Stats | BigIntStats;
|
|
147
|
+
lstatSync(path: PathLike, options?: StatOptions & {
|
|
148
|
+
bigint?: false;
|
|
149
|
+
}): Stats;
|
|
150
|
+
lstatSync(path: PathLike, options: StatOptions & {
|
|
151
|
+
bigint: true;
|
|
152
|
+
}): BigIntStats;
|
|
153
|
+
lstatSync(path: PathLike, options?: StatOptions): Stats | BigIntStats;
|
|
154
|
+
utimesSync(path: PathLike, atime: string | number | Date, mtime: string | number | Date): void;
|
|
155
|
+
openSync(path: PathLike, flags: OpenMode, mode?: Mode): number;
|
|
156
|
+
readSync(fd: number, buffer: ArrayBufferView, offset: number, length: number, position: number | null): number;
|
|
157
|
+
readSync(fd: number, buffer: ArrayBufferView, opts?: ReadSyncOptions): number;
|
|
158
|
+
writeSync(fd: number, buffer: ArrayBufferView, offset?: number, length?: number, position?: number): number;
|
|
159
|
+
writeSync(fd: number, string: string, position?: number, encoding?: BufferEncoding_2): number;
|
|
160
|
+
closeSync(fd: number): void;
|
|
161
|
+
readlinkSync(path: PathLike, options?: BaseEncodingOptions | BufferEncoding_2): string;
|
|
162
|
+
readlinkSync(path: PathLike, options: BufferEncodingOption): Uint8Array;
|
|
163
|
+
readlinkSync(path: PathLike, options?: BaseEncodingOptions | string): string | Uint8Array;
|
|
164
|
+
realpathSync(path: PathLike, options?: BaseEncodingOptions | BufferEncoding_2): string;
|
|
165
|
+
realpathSync(path: PathLike, options: BufferEncodingOption): Uint8Array;
|
|
166
|
+
realpathSync(path: PathLike, options?: BaseEncodingOptions | string): string | Uint8Array;
|
|
167
|
+
truncateSync(path: PathLike, len?: number): void;
|
|
168
|
+
ftruncateSync(fd: number, len?: number): void;
|
|
169
|
+
fdatasyncSync(fd: number): void;
|
|
170
|
+
futimesSync(fd: number, atime: string | number | Date, mtime: string | number | Date): void;
|
|
171
|
+
readdirSync(path: PathLike, options?: {
|
|
172
|
+
encoding: BufferEncoding_2 | null;
|
|
173
|
+
withFileTypes?: false;
|
|
174
|
+
} | BufferEncoding_2): string[];
|
|
175
|
+
readdirSync(path: PathLike, options: {
|
|
176
|
+
encoding: 'buffer';
|
|
177
|
+
withFileTypes?: false;
|
|
178
|
+
} | 'buffer'): Uint8Array[];
|
|
179
|
+
readdirSync(path: PathLike, options?: BaseEncodingOptions & {
|
|
180
|
+
withFileTypes?: false;
|
|
181
|
+
} | BufferEncoding_2): string[] | Uint8Array[];
|
|
182
|
+
readdirSync(path: PathLike, options: BaseEncodingOptions & {
|
|
183
|
+
withFileTypes: true;
|
|
184
|
+
}): IDirent[];
|
|
185
|
+
fsyncSync(fd: number): void;
|
|
186
|
+
mkdirSync(path: PathLike, options: MakeDirectoryOptions & {
|
|
187
|
+
recursive: true;
|
|
188
|
+
}): string | undefined;
|
|
189
|
+
mkdirSync(path: PathLike, options?: Mode | (MakeDirectoryOptions & {
|
|
190
|
+
recursive?: false;
|
|
191
|
+
})): void;
|
|
192
|
+
mkdirSync(path: PathLike, options?: Mode | MakeDirectoryOptions): string | undefined;
|
|
193
|
+
rmdirSync(path: PathLike, options?: RmDirOptions): void;
|
|
194
|
+
linkSync(existingPath: PathLike, newPath: PathLike): void;
|
|
195
|
+
unlinkSync(path: PathLike): void;
|
|
196
|
+
renameSync(oldPath: PathLike, newPath: PathLike): void;
|
|
197
|
+
symlinkSync(target: PathLike, path: PathLike, type?: 'dir' | 'file' | 'junction'): void;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
/** @public */
|
|
201
|
+
export declare interface IFsPromises {
|
|
202
|
+
stat(path: PathLike, options?: StatOptions & {
|
|
203
|
+
bigint?: false;
|
|
204
|
+
}): Promise<Stats>;
|
|
205
|
+
stat(path: PathLike, options: StatOptions & {
|
|
206
|
+
bigint: true;
|
|
207
|
+
}): Promise<BigIntStats>;
|
|
208
|
+
stat(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
209
|
+
lstat(path: PathLike, options?: StatOptions & {
|
|
210
|
+
bigint?: false;
|
|
211
|
+
}): Promise<Stats>;
|
|
212
|
+
lstat(path: PathLike, options: StatOptions & {
|
|
213
|
+
bigint: true;
|
|
214
|
+
}): Promise<BigIntStats>;
|
|
215
|
+
lstat(path: PathLike, options?: StatOptions): Promise<Stats | BigIntStats>;
|
|
216
|
+
utimes(path: PathLike, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
|
|
217
|
+
open(path: PathLike, flags: OpenMode, mode?: Mode): Promise<FileHandle>;
|
|
218
|
+
read<TBuffer extends Uint8Array>(handle: FileHandle, buffer: TBuffer, offset?: number, length?: number, position?: number): Promise<{
|
|
219
|
+
bytesRead: number;
|
|
220
|
+
buffer: TBuffer;
|
|
221
|
+
}>;
|
|
222
|
+
write<TBuffer extends Uint8Array>(handle: FileHandle, buffer: TBuffer, offset?: number, length?: number, position?: number): Promise<{
|
|
223
|
+
bytesWritten: number;
|
|
224
|
+
buffer: TBuffer;
|
|
225
|
+
}>;
|
|
226
|
+
readlink(path: PathLike, options?: BaseEncodingOptions | BufferEncoding_2): Promise<string>;
|
|
227
|
+
readlink(path: PathLike, options: BufferEncodingOption): Promise<Uint8Array>;
|
|
228
|
+
readlink(path: PathLike, options?: BaseEncodingOptions | string): Promise<string | Uint8Array>;
|
|
229
|
+
realpath(path: PathLike, options?: BaseEncodingOptions | BufferEncoding_2): Promise<string>;
|
|
230
|
+
realpath(path: PathLike, options: BufferEncodingOption): Promise<Uint8Array>;
|
|
231
|
+
realpath(path: PathLike, options?: BaseEncodingOptions | string): Promise<string | Uint8Array>;
|
|
232
|
+
truncate(path: PathLike, len?: number): Promise<void>;
|
|
233
|
+
ftruncate(handle: FileHandle, len?: number): Promise<void>;
|
|
234
|
+
fdatasync(handle: FileHandle): Promise<void>;
|
|
235
|
+
futimes(handle: FileHandle, atime: string | number | Date, mtime: string | number | Date): Promise<void>;
|
|
236
|
+
readdir(path: PathLike, options?: {
|
|
237
|
+
encoding: BufferEncoding_2 | null;
|
|
238
|
+
withFileTypes?: false;
|
|
239
|
+
} | BufferEncoding_2): Promise<string[]>;
|
|
240
|
+
readdir(path: PathLike, options: {
|
|
241
|
+
encoding: 'buffer';
|
|
242
|
+
withFileTypes?: false;
|
|
243
|
+
} | 'buffer'): Promise<Uint8Array[]>;
|
|
244
|
+
readdir(path: PathLike, options?: BaseEncodingOptions & {
|
|
245
|
+
withFileTypes?: false;
|
|
246
|
+
} | BufferEncoding_2): Promise<string[] | Uint8Array[]>;
|
|
247
|
+
readdir(path: PathLike, options: BaseEncodingOptions & {
|
|
248
|
+
withFileTypes: true;
|
|
249
|
+
}): Promise<IDirent[]>;
|
|
250
|
+
fsync(handle: FileHandle): Promise<void>;
|
|
251
|
+
mkdir(path: PathLike, options: MakeDirectoryOptions & {
|
|
252
|
+
recursive: true;
|
|
253
|
+
}): Promise<string | undefined>;
|
|
254
|
+
mkdir(path: PathLike, options?: Mode | (MakeDirectoryOptions & {
|
|
255
|
+
recursive?: false;
|
|
256
|
+
})): Promise<void>;
|
|
257
|
+
mkdir(path: PathLike, options?: Mode | MakeDirectoryOptions): Promise<string | undefined>;
|
|
258
|
+
rmdir(path: PathLike, options?: RmDirOptions): Promise<void>;
|
|
259
|
+
link(existingPath: PathLike, newPath: PathLike): Promise<void>;
|
|
260
|
+
unlink(path: PathLike): Promise<void>;
|
|
261
|
+
rename(oldPath: PathLike, newPath: PathLike): Promise<void>;
|
|
262
|
+
symlink(target: PathLike, path: PathLike, type?: 'dir' | 'file' | 'junction'): Promise<void>;
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
declare const kBindingName: unique symbol;
|
|
266
|
+
|
|
267
|
+
declare const kExitCode: unique symbol;
|
|
268
|
+
|
|
269
|
+
declare const kInstance: unique symbol;
|
|
270
|
+
|
|
271
|
+
declare const kSetMemory: unique symbol;
|
|
272
|
+
|
|
273
|
+
declare const kStarted: unique symbol;
|
|
274
|
+
|
|
275
|
+
/** @public */
|
|
276
|
+
export declare function load(wasmInput: string | URL | BufferSource | WebAssembly.Module, imports?: WebAssembly.Imports): Promise<WebAssembly.WebAssemblyInstantiatedSource>;
|
|
277
|
+
|
|
278
|
+
/** @public */
|
|
279
|
+
export declare function loadSync(wasmInput: BufferSource | WebAssembly.Module, imports?: WebAssembly.Imports): WebAssembly.WebAssemblyInstantiatedSource;
|
|
280
|
+
|
|
281
|
+
/** @public */
|
|
282
|
+
export declare interface MakeDirectoryOptions {
|
|
283
|
+
recursive?: boolean;
|
|
284
|
+
mode?: Mode;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
/** @public */
|
|
288
|
+
export declare class Memory extends WebAssemblyMemory {
|
|
289
|
+
constructor(descriptor: WebAssembly.MemoryDescriptor);
|
|
290
|
+
get HEAP8(): Int8Array;
|
|
291
|
+
get HEAPU8(): Uint8Array;
|
|
292
|
+
get HEAP16(): Int16Array;
|
|
293
|
+
get HEAPU16(): Uint16Array;
|
|
294
|
+
get HEAP32(): Int32Array;
|
|
295
|
+
get HEAPU32(): Uint32Array;
|
|
296
|
+
get HEAP64(): BigInt64Array;
|
|
297
|
+
get HEAPU64(): BigUint64Array;
|
|
298
|
+
get HEAPF32(): Float32Array;
|
|
299
|
+
get HEAPF64(): Float64Array;
|
|
300
|
+
get view(): DataView;
|
|
301
|
+
}
|
|
302
|
+
|
|
303
|
+
/** @public */
|
|
304
|
+
export declare type Mode = number | string;
|
|
305
|
+
|
|
306
|
+
/** @public */
|
|
307
|
+
export declare type OpenMode = number | string;
|
|
308
|
+
|
|
309
|
+
/** @public */
|
|
310
|
+
export declare type PathLike = string | Uint8Array | URL;
|
|
311
|
+
|
|
312
|
+
/** @public */
|
|
313
|
+
export declare type PromisifyExports<T, U> = T extends Record<string, any> ? {
|
|
314
|
+
[P in keyof T]: T[P] extends Callable ? U extends Array<keyof T> ? P extends U[number] ? AsyncifyExportFunction<T[P]> : T[P] : AsyncifyExportFunction<T[P]> : T[P];
|
|
315
|
+
} : T;
|
|
316
|
+
|
|
317
|
+
/** @public */
|
|
318
|
+
export declare interface ReadSyncOptions {
|
|
319
|
+
offset?: number;
|
|
320
|
+
length?: number;
|
|
321
|
+
position?: number;
|
|
322
|
+
}
|
|
323
|
+
|
|
324
|
+
/** @public */
|
|
325
|
+
export declare interface RmDirOptions {
|
|
326
|
+
maxRetries?: number;
|
|
327
|
+
recursive?: boolean;
|
|
328
|
+
retryDelay?: number;
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
/** @public */
|
|
332
|
+
export declare interface StatOptions {
|
|
333
|
+
bigint?: boolean;
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
/** @public */
|
|
337
|
+
export declare interface Stats extends StatsBase<number> {
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
/** @public */
|
|
341
|
+
export declare interface StatsBase<T> {
|
|
342
|
+
isFile(): boolean;
|
|
343
|
+
isDirectory(): boolean;
|
|
344
|
+
isBlockDevice(): boolean;
|
|
345
|
+
isCharacterDevice(): boolean;
|
|
346
|
+
isSymbolicLink(): boolean;
|
|
347
|
+
isFIFO(): boolean;
|
|
348
|
+
isSocket(): boolean;
|
|
349
|
+
dev: T;
|
|
350
|
+
ino: T;
|
|
351
|
+
mode: T;
|
|
352
|
+
nlink: T;
|
|
353
|
+
uid: T;
|
|
354
|
+
gid: T;
|
|
355
|
+
rdev: T;
|
|
356
|
+
size: T;
|
|
357
|
+
blksize: T;
|
|
358
|
+
blocks: T;
|
|
359
|
+
atimeMs: T;
|
|
360
|
+
mtimeMs: T;
|
|
361
|
+
ctimeMs: T;
|
|
362
|
+
birthtimeMs: T;
|
|
363
|
+
atime: Date;
|
|
364
|
+
mtime: Date;
|
|
365
|
+
ctime: Date;
|
|
366
|
+
birthtime: Date;
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
/** @public */
|
|
370
|
+
export declare interface SyncWASIOptions extends WASIOptions {
|
|
371
|
+
fs?: IFs;
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
/** @public */
|
|
375
|
+
export declare class WASI {
|
|
376
|
+
private [kSetMemory];
|
|
377
|
+
private [kStarted];
|
|
378
|
+
private [kExitCode];
|
|
379
|
+
private [kInstance];
|
|
380
|
+
private [kBindingName];
|
|
381
|
+
readonly wasiImport: Record<string, any>;
|
|
382
|
+
constructor(options?: SyncWASIOptions);
|
|
383
|
+
finalizeBindings(instance: WebAssembly.Instance, { memory }?: FinalizeBindingsOptions): void;
|
|
384
|
+
start(instance: WebAssembly.Instance): number | undefined | Promise<number> | Promise<undefined>;
|
|
385
|
+
initialize(instance: WebAssembly.Instance): void | Promise<void>;
|
|
386
|
+
getImportObject(): Record<string, Record<string, any>>;
|
|
387
|
+
}
|
|
388
|
+
|
|
389
|
+
/** @public */
|
|
390
|
+
export declare interface WASIOptions {
|
|
391
|
+
version?: 'unstable' | 'preview1';
|
|
392
|
+
args?: string[] | undefined;
|
|
393
|
+
env?: Record<string, string> | undefined;
|
|
394
|
+
preopens?: Record<string, string> | undefined;
|
|
395
|
+
/**
|
|
396
|
+
* @defaultValue `false`
|
|
397
|
+
*/
|
|
398
|
+
returnOnExit?: boolean | undefined;
|
|
399
|
+
print?: (str: string) => void;
|
|
400
|
+
printErr?: (str: string) => void;
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
/** @public */
|
|
404
|
+
export declare const WebAssemblyMemory: {
|
|
405
|
+
new (descriptor: WebAssembly.MemoryDescriptor): WebAssembly.Memory;
|
|
406
|
+
prototype: WebAssembly.Memory;
|
|
407
|
+
};
|
|
408
|
+
|
|
409
|
+
/** @public */
|
|
410
|
+
export declare function wrapAsyncExport<T extends Function = any>(f: Function): T;
|
|
411
|
+
|
|
412
|
+
/** @public */
|
|
413
|
+
export declare function wrapAsyncImport<T extends (...args: any[]) => any>(f: T, parameterType: WebAssembly.ValueType[], returnType: WebAssembly.ValueType[]): (...args: [object, ...Parameters<T>]) => ReturnType<T>;
|
|
414
|
+
|
|
415
|
+
/** @public */
|
|
416
|
+
export declare function wrapExports<T extends WebAssembly.Exports>(exports: T): PromisifyExports<T, void>;
|
|
417
|
+
|
|
418
|
+
/** @public */
|
|
419
|
+
export declare function wrapExports<T extends WebAssembly.Exports, U extends Array<keyof T>>(exports: T, needWrap: U): PromisifyExports<T, U>;
|
|
420
|
+
|
|
421
|
+
export { }
|
|
422
|
+
|
|
423
|
+
export as namespace wasmUtil;
|