From 5d62c2030a356b0ca38e775cc83670417e880e54 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Tue, 19 Mar 2024 11:50:51 -0700 Subject: [PATCH 1/4] docs: Update release notes --- packages/pass-style/NEWS.md | 2 +- packages/ses-ava/NEWS.md | 4 +++- packages/ses-ava/package.json | 1 + 3 files changed, 5 insertions(+), 2 deletions(-) diff --git a/packages/pass-style/NEWS.md b/packages/pass-style/NEWS.md index aed8771080..b2a572be12 100644 --- a/packages/pass-style/NEWS.md +++ b/packages/pass-style/NEWS.md @@ -1,6 +1,6 @@ User-visible changes in `@endo/pass-style`: -# Next release +# v1.3.0 (2024-03-19) - Exports `isWellFormedString` and `assertWellFormedString`. Unfortunately the [standard `String.prototype.isWellFormed`](https://tc39.es/proposal-is-usv-string/) first coerces its input to string, leading it to claim that some non-strings are well-formed strings. By contrast, `isWellFormedString` and `assertWellFormedString` will not judge any non-strings to be well-formed strings. - Previously, all JavaScript strings were considered Passable with `passStyleOf(str) === 'string'`. Our tentative plan is that only well-formed Unicode strings will be considered Passable. For all others, `passStyleOf(str)` throws a diagnostic error. This would bring us into closer conformance to the OCapN standard, which prohibits sending non-well-formed strings, and requires non-well-formed strings to be rejected when received. Applications that had previously handled non-well-formed strings successfully (even if inadvertantly) may then start experiences these failure. We are also uncertain about the performance impact of this extra check, since it is linear in the size of strings. diff --git a/packages/ses-ava/NEWS.md b/packages/ses-ava/NEWS.md index 8ab970b1db..2fbf347a5f 100644 --- a/packages/ses-ava/NEWS.md +++ b/packages/ses-ava/NEWS.md @@ -1,6 +1,6 @@ User-visible changes in `@endo/ses-ava`: -# Next release +# v1.2.0 (204-03-19) - Rather that writing your own `./prepare-test-env-ava.js` or similar to setup a ses-ava `test` function, you can now simply @@ -8,6 +8,8 @@ User-visible changes in `@endo/ses-ava`: import test from '@endo/ses-ava/prepare-endo.js'; ``` This will set various options appropriately to help you debug your tests. + Dependent packages must still take a direct dependency on `ava` and may choose + from either version range `^5.3.0` or `^6.1.2`. - Ava's `t.log` buffers logged messages, so it can be output later with its test case. But this uses Ava's own console emulation. This loses all the redacted error information printed by SES's `console`. diff --git a/packages/ses-ava/package.json b/packages/ses-ava/package.json index 64c509ed5b..f2a14c4697 100644 --- a/packages/ses-ava/package.json +++ b/packages/ses-ava/package.json @@ -45,6 +45,7 @@ "ava": "^5.3.0|^6.1.2" }, "devDependencies": { + "ava": "^6.1.2", "babel-eslint": "^10.0.3", "c8": "^7.14.0", "eslint": "^8.46.0", From 57d2d0ff767465c828256e17d5d5f39a643b6dcc Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Mar 2024 15:36:58 -0700 Subject: [PATCH 2/4] chore: Add generated types --- .vscode/launch.json | 9 + packages/base64/atob.d.ts | 2 + packages/base64/atob.d.ts.map | 1 + packages/base64/btoa.d.ts | 2 + packages/base64/btoa.d.ts.map | 1 + packages/base64/decode.d.ts | 2 + packages/base64/decode.d.ts.map | 1 + packages/base64/encode.d.ts | 2 + packages/base64/encode.d.ts.map | 1 + packages/base64/index.d.ts | 5 + packages/base64/index.d.ts.map | 1 + packages/base64/shim.d.ts | 2 + packages/base64/shim.d.ts.map | 1 + packages/base64/src/common.d.ts | 11 + packages/base64/src/common.d.ts.map | 1 + packages/base64/src/decode.d.ts | 4 + packages/base64/src/decode.d.ts.map | 1 + packages/base64/src/encode.d.ts | 4 + packages/base64/src/encode.d.ts.map | 1 + packages/bundle-source/cache.d.ts | 54 ++ packages/bundle-source/cache.d.ts.map | 1 + packages/bundle-source/src/bundle-source.d.ts | 4 + .../bundle-source/src/bundle-source.d.ts.map | 1 + packages/bundle-source/src/fs.d.ts | 50 ++ packages/bundle-source/src/fs.d.ts.map | 1 + packages/bundle-source/src/index.d.ts | 4 + packages/bundle-source/src/index.d.ts.map | 1 + packages/bundle-source/src/is-entrypoint.d.ts | 2 + .../bundle-source/src/is-entrypoint.d.ts.map | 1 + packages/bundle-source/src/main.d.ts | 6 + packages/bundle-source/src/main.d.ts.map | 1 + .../src/nested-evaluate-and-get-exports.d.ts | 12 + .../nested-evaluate-and-get-exports.d.ts.map | 1 + packages/bundle-source/src/tool.d.ts | 3 + packages/bundle-source/src/tool.d.ts.map | 1 + packages/bundle-source/src/types.d.ts | 43 ++ packages/bundle-source/src/types.d.ts.map | 1 + packages/bundle-source/src/zip-base64.d.ts | 6 + .../bundle-source/src/zip-base64.d.ts.map | 1 + packages/captp/src/atomics.d.ts | 6 + packages/captp/src/atomics.d.ts.map | 1 + packages/captp/src/captp.d.ts | 55 ++ packages/captp/src/captp.d.ts.map | 1 + packages/captp/src/finalize.d.ts | 13 + packages/captp/src/finalize.d.ts.map | 1 + packages/captp/src/index.d.ts | 6 + packages/captp/src/index.d.ts.map | 1 + packages/captp/src/loopback.d.ts | 14 + packages/captp/src/loopback.d.ts.map | 1 + packages/captp/src/trap.d.ts | 11 + packages/captp/src/trap.d.ts.map | 1 + packages/captp/src/types.d.ts | 61 ++ packages/captp/src/types.d.ts.map | 1 + packages/check-bundle/index.d.ts | 4 + packages/check-bundle/index.d.ts.map | 1 + packages/check-bundle/lite.d.ts | 2 + packages/check-bundle/lite.d.ts.map | 1 + packages/check-bundle/src/json.d.ts | 2 + packages/check-bundle/src/json.d.ts.map | 1 + packages/cjs-module-analyzer/index.d.ts | 11 + packages/cjs-module-analyzer/index.d.ts.map | 1 + packages/cli/src/client.d.ts | 2 + packages/cli/src/client.d.ts.map | 1 + packages/cli/src/commands/adopt.d.ts | 7 + packages/cli/src/commands/adopt.d.ts.map | 1 + packages/cli/src/commands/bundle.d.ts | 7 + packages/cli/src/commands/bundle.d.ts.map | 1 + packages/cli/src/commands/cancel.d.ts | 6 + packages/cli/src/commands/cancel.d.ts.map | 1 + packages/cli/src/commands/cat.d.ts | 5 + packages/cli/src/commands/cat.d.ts.map | 1 + packages/cli/src/commands/dismiss.d.ts | 5 + packages/cli/src/commands/dismiss.d.ts.map | 1 + packages/cli/src/commands/eval.d.ts | 8 + packages/cli/src/commands/eval.d.ts.map | 1 + packages/cli/src/commands/follow.d.ts | 5 + packages/cli/src/commands/follow.d.ts.map | 1 + packages/cli/src/commands/inbox.d.ts | 5 + packages/cli/src/commands/inbox.d.ts.map | 1 + packages/cli/src/commands/install.d.ts | 10 + packages/cli/src/commands/install.d.ts.map | 1 + packages/cli/src/commands/list.d.ts | 6 + packages/cli/src/commands/list.d.ts.map | 1 + packages/cli/src/commands/log.d.ts | 5 + packages/cli/src/commands/log.d.ts.map | 1 + packages/cli/src/commands/make.d.ts | 10 + packages/cli/src/commands/make.d.ts.map | 1 + packages/cli/src/commands/mkguest.d.ts | 6 + packages/cli/src/commands/mkguest.d.ts.map | 1 + packages/cli/src/commands/mkhost.d.ts | 6 + packages/cli/src/commands/mkhost.d.ts.map | 1 + packages/cli/src/commands/open.d.ts | 5 + packages/cli/src/commands/open.d.ts.map | 1 + packages/cli/src/commands/ping.d.ts | 2 + packages/cli/src/commands/ping.d.ts.map | 1 + packages/cli/src/commands/reject.d.ts | 6 + packages/cli/src/commands/reject.d.ts.map | 1 + packages/cli/src/commands/remove.d.ts | 5 + packages/cli/src/commands/remove.d.ts.map | 1 + packages/cli/src/commands/rename.d.ts | 6 + packages/cli/src/commands/rename.d.ts.map | 1 + packages/cli/src/commands/request.d.ts | 7 + packages/cli/src/commands/request.d.ts.map | 1 + packages/cli/src/commands/resolve.d.ts | 6 + packages/cli/src/commands/resolve.d.ts.map | 1 + packages/cli/src/commands/run.d.ts | 9 + packages/cli/src/commands/run.d.ts.map | 1 + packages/cli/src/commands/send.d.ts | 6 + packages/cli/src/commands/send.d.ts.map | 1 + packages/cli/src/commands/show.d.ts | 5 + packages/cli/src/commands/show.d.ts.map | 1 + packages/cli/src/commands/spawn.d.ts | 5 + packages/cli/src/commands/spawn.d.ts.map | 1 + packages/cli/src/commands/store.d.ts | 6 + packages/cli/src/commands/store.d.ts.map | 1 + packages/cli/src/context.d.ts | 15 + packages/cli/src/context.d.ts.map | 1 + packages/cli/src/endo.d.ts | 2 + packages/cli/src/endo.d.ts.map | 1 + packages/cli/src/locator.d.ts | 6 + packages/cli/src/locator.d.ts.map | 1 + packages/cli/src/message-format.d.ts | 2 + packages/cli/src/message-format.d.ts.map | 1 + packages/cli/src/message-parse.d.ts | 6 + packages/cli/src/message-parse.d.ts.map | 1 + packages/cli/src/pet-name.d.ts | 2 + packages/cli/src/pet-name.d.ts.map | 1 + packages/cli/src/prompt.d.ts | 9 + packages/cli/src/prompt.d.ts.map | 1 + packages/cli/src/random.d.ts | 2 + packages/cli/src/random.d.ts.map | 1 + packages/common/apply-labeling-error.d.ts | 2 + packages/common/apply-labeling-error.d.ts.map | 1 + packages/common/from-unique-entries.d.ts | 2 + packages/common/from-unique-entries.d.ts.map | 1 + packages/common/ident-checker.d.ts | 49 ++ packages/common/ident-checker.d.ts.map | 1 + packages/common/list-difference.d.ts | 2 + packages/common/list-difference.d.ts.map | 1 + packages/common/make-array-iterator.d.ts | 2 + packages/common/make-array-iterator.d.ts.map | 1 + packages/common/make-iterator.d.ts | 2 + packages/common/make-iterator.d.ts.map | 1 + packages/common/object-map.d.ts | 2 + packages/common/object-map.d.ts.map | 1 + packages/common/object-meta-assign.d.ts | 2 + packages/common/object-meta-assign.d.ts.map | 1 + packages/common/object-meta-map.d.ts | 2 + packages/common/object-meta-map.d.ts.map | 1 + packages/common/throw-labeled.d.ts | 2 + packages/common/throw-labeled.d.ts.map | 1 + packages/compartment-mapper/archive.d.ts | 2 + packages/compartment-mapper/archive.d.ts.map | 1 + packages/compartment-mapper/bundle.d.ts | 2 + packages/compartment-mapper/bundle.d.ts.map | 1 + .../compartment-mapper/import-archive.d.ts | 2 + .../import-archive.d.ts.map | 1 + packages/compartment-mapper/import.d.ts | 2 + packages/compartment-mapper/import.d.ts.map | 1 + packages/compartment-mapper/index.d.ts | 7 + packages/compartment-mapper/index.d.ts.map | 1 + packages/compartment-mapper/node-powers.d.ts | 2 + .../compartment-mapper/node-powers.d.ts.map | 1 + packages/compartment-mapper/src/archive.d.ts | 25 + .../compartment-mapper/src/archive.d.ts.map | 1 + .../compartment-mapper/src/bundle-cjs.d.ts | 19 + .../src/bundle-cjs.d.ts.map | 1 + .../compartment-mapper/src/bundle-mjs.d.ts | 22 + .../src/bundle-mjs.d.ts.map | 1 + packages/compartment-mapper/src/bundle.d.ts | 20 + .../compartment-mapper/src/bundle.d.ts.map | 1 + .../src/compartment-map.d.ts | 5 + .../src/compartment-map.d.ts.map | 1 + .../compartment-mapper/src/extension.d.ts | 2 + .../compartment-mapper/src/extension.d.ts.map | 1 + .../src/import-archive.d.ts | 13 + .../src/import-archive.d.ts.map | 1 + .../compartment-mapper/src/import-hook.d.ts | 29 + .../src/import-hook.d.ts.map | 1 + packages/compartment-mapper/src/import.d.ts | 12 + .../compartment-mapper/src/import.d.ts.map | 1 + .../compartment-mapper/src/infer-exports.d.ts | 9 + .../src/infer-exports.d.ts.map | 1 + packages/compartment-mapper/src/json.d.ts | 2 + packages/compartment-mapper/src/json.d.ts.map | 1 + packages/compartment-mapper/src/link.d.ts | 22 + packages/compartment-mapper/src/link.d.ts.map | 1 + .../src/node-module-specifier.d.ts | 4 + .../src/node-module-specifier.d.ts.map | 1 + .../compartment-mapper/src/node-modules.d.ts | 52 ++ .../src/node-modules.d.ts.map | 1 + .../compartment-mapper/src/node-powers.d.ts | 46 ++ .../src/node-powers.d.ts.map | 1 + .../src/parse-archive-cjs.d.ts | 5 + .../src/parse-archive-cjs.d.ts.map | 1 + .../src/parse-archive-mjs.d.ts | 5 + .../src/parse-archive-mjs.d.ts.map | 1 + .../compartment-mapper/src/parse-bytes.d.ts | 5 + .../src/parse-bytes.d.ts.map | 1 + .../src/parse-cjs-shared-export-wrapper.d.ts | 21 + .../parse-cjs-shared-export-wrapper.d.ts.map | 1 + .../compartment-mapper/src/parse-cjs.d.ts | 5 + .../compartment-mapper/src/parse-cjs.d.ts.map | 1 + .../compartment-mapper/src/parse-json.d.ts | 5 + .../src/parse-json.d.ts.map | 1 + .../compartment-mapper/src/parse-mjs.d.ts | 5 + .../compartment-mapper/src/parse-mjs.d.ts.map | 1 + .../compartment-mapper/src/parse-pre-cjs.d.ts | 5 + .../src/parse-pre-cjs.d.ts.map | 1 + .../compartment-mapper/src/parse-pre-mjs.d.ts | 5 + .../src/parse-pre-mjs.d.ts.map | 1 + .../compartment-mapper/src/parse-text.d.ts | 5 + .../src/parse-text.d.ts.map | 1 + .../compartment-mapper/src/policy-format.d.ts | 7 + .../src/policy-format.d.ts.map | 1 + packages/compartment-mapper/src/policy.d.ts | 42 ++ .../compartment-mapper/src/policy.d.ts.map | 1 + packages/compartment-mapper/src/powers.d.ts | 2 + .../compartment-mapper/src/powers.d.ts.map | 1 + packages/compartment-mapper/src/search.d.ts | 14 + .../compartment-mapper/src/search.d.ts.map | 1 + packages/compartment-mapper/src/types.d.ts | 359 ++++++++++++ .../compartment-mapper/src/types.d.ts.map | 1 + packages/compartment-mapper/src/url.d.ts | 2 + packages/compartment-mapper/src/url.d.ts.map | 1 + packages/daemon/index.d.ts | 40 ++ packages/daemon/index.d.ts.map | 1 + packages/daemon/reader-ref.d.ts | 2 + packages/daemon/reader-ref.d.ts.map | 1 + packages/daemon/ref-reader.d.ts | 2 + packages/daemon/ref-reader.d.ts.map | 1 + packages/daemon/src/client.d.ts | 5 + packages/daemon/src/client.d.ts.map | 1 + packages/daemon/src/connection.d.ts | 11 + packages/daemon/src/connection.d.ts.map | 1 + packages/daemon/src/context.d.ts | 13 + packages/daemon/src/context.d.ts.map | 1 + packages/daemon/src/daemon-node-powers.d.ts | 38 ++ .../daemon/src/daemon-node-powers.d.ts.map | 1 + packages/daemon/src/daemon-node.d.ts | 2 + packages/daemon/src/daemon-node.d.ts.map | 1 + packages/daemon/src/daemon.d.ts | 29 + packages/daemon/src/daemon.d.ts.map | 1 + packages/daemon/src/deferred-tasks.d.ts | 2 + packages/daemon/src/deferred-tasks.d.ts.map | 1 + packages/daemon/src/directory.d.ts | 41 ++ packages/daemon/src/directory.d.ts.map | 1 + packages/daemon/src/formula-identifier.d.ts | 4 + .../daemon/src/formula-identifier.d.ts.map | 1 + packages/daemon/src/guest.d.ts | 56 ++ packages/daemon/src/guest.d.ts.map | 1 + packages/daemon/src/host.d.ts | 92 +++ packages/daemon/src/host.d.ts.map | 1 + packages/daemon/src/mail.d.ts | 5 + packages/daemon/src/mail.d.ts.map | 1 + packages/daemon/src/networks/loopback.d.ts | 4 + .../daemon/src/networks/loopback.d.ts.map | 1 + .../daemon/src/networks/tcp-netstring.d.ts | 10 + .../src/networks/tcp-netstring.d.ts.map | 1 + packages/daemon/src/pet-name.d.ts | 3 + packages/daemon/src/pet-name.d.ts.map | 1 + packages/daemon/src/pet-sitter.d.ts | 2 + packages/daemon/src/pet-sitter.d.ts.map | 1 + packages/daemon/src/pet-store.d.ts | 4 + packages/daemon/src/pet-store.d.ts.map | 1 + packages/daemon/src/pubsub.d.ts | 18 + packages/daemon/src/pubsub.d.ts.map | 1 + packages/daemon/src/reader-ref.d.ts | 4 + packages/daemon/src/reader-ref.d.ts.map | 1 + packages/daemon/src/ref-reader.d.ts | 11 + packages/daemon/src/ref-reader.d.ts.map | 1 + packages/daemon/src/serial-jobs.d.ts | 2 + packages/daemon/src/serial-jobs.d.ts.map | 1 + packages/daemon/src/serve-private-path.d.ts | 10 + .../daemon/src/serve-private-path.d.ts.map | 1 + .../daemon/src/serve-private-port-http.d.ts | 10 + .../src/serve-private-port-http.d.ts.map | 1 + packages/daemon/src/weak-multimap.d.ts | 2 + packages/daemon/src/weak-multimap.d.ts.map | 1 + packages/daemon/src/web-page.d.ts | 2 + packages/daemon/src/web-page.d.ts.map | 1 + .../daemon/src/web-server-node-powers.d.ts | 13 + .../src/web-server-node-powers.d.ts.map | 1 + packages/daemon/src/web-server-node.d.ts | 18 + packages/daemon/src/web-server-node.d.ts.map | 1 + packages/daemon/src/worker-node-powers.d.ts | 5 + .../daemon/src/worker-node-powers.d.ts.map | 1 + packages/daemon/src/worker-node.d.ts | 2 + packages/daemon/src/worker-node.d.ts.map | 1 + packages/daemon/src/worker.d.ts | 96 ++++ packages/daemon/src/worker.d.ts.map | 1 + packages/env-options/index.d.ts | 2 + packages/env-options/index.d.ts.map | 1 + packages/env-options/src/env-options.d.ts | 24 + packages/env-options/src/env-options.d.ts.map | 1 + packages/errors/index.d.ts | 10 + packages/errors/index.d.ts.map | 1 + packages/evasive-transform/index.d.ts | 2 + packages/evasive-transform/index.d.ts.map | 1 + packages/evasive-transform/src/generate.d.ts | 76 +++ .../evasive-transform/src/generate.d.ts.map | 1 + packages/evasive-transform/src/index.d.ts | 48 ++ packages/evasive-transform/src/index.d.ts.map | 1 + .../src/location-unmapper.d.ts | 22 + .../src/location-unmapper.d.ts.map | 1 + packages/evasive-transform/src/parse-ast.d.ts | 39 ++ .../evasive-transform/src/parse-ast.d.ts.map | 1 + .../evasive-transform/src/transform-ast.d.ts | 72 +++ .../src/transform-ast.d.ts.map | 1 + .../src/transform-comment.d.ts | 10 + .../src/transform-comment.d.ts.map | 1 + packages/eventual-send/shim.d.ts | 2 + packages/eventual-send/shim.d.ts.map | 1 + packages/eventual-send/src/E.d.ts | 158 +++++ packages/eventual-send/src/E.d.ts.map | 1 + .../eventual-send/src/exports.test-d.d.ts | 2 + .../eventual-send/src/exports.test-d.d.ts.map | 1 + .../eventual-send/src/handled-promise.d.ts | 35 ++ .../src/handled-promise.d.ts.map | 1 + packages/eventual-send/src/local.d.ts | 5 + packages/eventual-send/src/local.d.ts.map | 1 + .../src/message-breakpoints.d.ts | 44 ++ .../src/message-breakpoints.d.ts.map | 1 + packages/eventual-send/src/no-shim.d.ts | 17 + packages/eventual-send/src/no-shim.d.ts.map | 1 + packages/eventual-send/src/postponed.d.ts | 2 + packages/eventual-send/src/postponed.d.ts.map | 1 + packages/eventual-send/src/track-turns.d.ts | 7 + .../eventual-send/src/track-turns.d.ts.map | 1 + packages/eventual-send/test/get-hp.d.ts | 15 + packages/eventual-send/test/get-hp.d.ts.map | 1 + packages/eventual-send/utils.d.ts | 3 + packages/eventual-send/utils.d.ts.map | 1 + packages/exo/index.d.ts | 3 + packages/exo/index.d.ts.map | 1 + packages/exo/src/exo-makers.d.ts | 102 ++++ packages/exo/src/exo-makers.d.ts.map | 1 + packages/exo/src/exo-tools.d.ts | 27 + packages/exo/src/exo-tools.d.ts.map | 1 + packages/exo/src/get-interface.d.ts | 18 + packages/exo/src/get-interface.d.ts.map | 1 + packages/exo/tools.d.ts | 2 + packages/exo/tools.d.ts.map | 1 + packages/far/src/index.d.ts | 23 + packages/far/src/index.d.ts.map | 1 + .../import-bundle/source-map-node-powers.d.ts | 2 + .../source-map-node-powers.d.ts.map | 1 + packages/import-bundle/source-map-node.d.ts | 2 + .../import-bundle/source-map-node.d.ts.map | 1 + .../src/compartment-wrapper.d.ts | 5 + .../src/compartment-wrapper.d.ts.map | 1 + packages/import-bundle/src/index.d.ts | 2 + packages/import-bundle/src/index.d.ts.map | 1 + .../src/source-map-node-powers.d.ts | 12 + .../src/source-map-node-powers.d.ts.map | 1 + .../import-bundle/src/source-map-node.d.ts | 4 + .../src/source-map-node.d.ts.map | 1 + packages/init/debug.d.ts | 2 + packages/init/debug.d.ts.map | 1 + packages/init/index.d.ts | 2 + packages/init/index.d.ts.map | 1 + packages/init/legacy.d.ts | 2 + packages/init/legacy.d.ts.map | 1 + packages/init/pre-bundle-source.d.ts | 2 + packages/init/pre-bundle-source.d.ts.map | 1 + packages/init/pre-remoting.d.ts | 3 + packages/init/pre-remoting.d.ts.map | 1 + packages/init/pre.d.ts | 2 + packages/init/pre.d.ts.map | 1 + .../src/node-async-local-storage-patch.d.ts | 16 + .../node-async-local-storage-patch.d.ts.map | 1 + packages/init/src/node-async_hooks-patch.d.ts | 2 + .../init/src/node-async_hooks-patch.d.ts.map | 1 + packages/init/src/node-async_hooks.d.ts | 4 + packages/init/src/node-async_hooks.d.ts.map | 1 + packages/init/src/pre-node.d.ts | 2 + packages/init/src/pre-node.d.ts.map | 1 + packages/init/unsafe-fast.d.ts | 2 + packages/init/unsafe-fast.d.ts.map | 1 + packages/lp32/index.d.ts | 3 + packages/lp32/index.d.ts.map | 1 + packages/lp32/reader.d.ts | 5 + packages/lp32/reader.d.ts.map | 1 + packages/lp32/src/host-endian.d.ts | 2 + packages/lp32/src/host-endian.d.ts.map | 1 + packages/lp32/writer.d.ts | 6 + packages/lp32/writer.d.ts.map | 1 + packages/marshal/index.d.ts | 10 + packages/marshal/index.d.ts.map | 1 + packages/marshal/src/deeplyFulfilled.d.ts | 4 + packages/marshal/src/deeplyFulfilled.d.ts.map | 1 + packages/marshal/src/dot-membrane.d.ts | 5 + packages/marshal/src/dot-membrane.d.ts.map | 1 + packages/marshal/src/encodePassable.d.ts | 48 ++ packages/marshal/src/encodePassable.d.ts.map | 1 + packages/marshal/src/encodeToCapData.d.ts | 22 + packages/marshal/src/encodeToCapData.d.ts.map | 1 + packages/marshal/src/encodeToSmallcaps.d.ts | 17 + .../marshal/src/encodeToSmallcaps.d.ts.map | 1 + packages/marshal/src/marshal-justin.d.ts | 17 + packages/marshal/src/marshal-justin.d.ts.map | 1 + packages/marshal/src/marshal-stringify.d.ts | 12 + .../marshal/src/marshal-stringify.d.ts.map | 1 + packages/marshal/src/marshal.d.ts | 18 + packages/marshal/src/marshal.d.ts.map | 1 + packages/marshal/src/rankOrder.d.ts | 36 ++ packages/marshal/src/rankOrder.d.ts.map | 1 + packages/marshal/src/types.d.ts | 166 ++++++ packages/marshal/src/types.d.ts.map | 1 + packages/marshal/src/types.test-d.d.ts | 2 + packages/marshal/src/types.test-d.d.ts.map | 1 + packages/memoize/index.d.ts | 2 + packages/memoize/index.d.ts.map | 1 + packages/memoize/src/memoize.d.ts | 2 + packages/memoize/src/memoize.d.ts.map | 1 + packages/nat/src/index.d.ts | 30 + packages/nat/src/index.d.ts.map | 1 + packages/netstring/index.d.ts | 3 + packages/netstring/index.d.ts.map | 1 + packages/netstring/reader.d.ts | 6 + packages/netstring/reader.d.ts.map | 1 + packages/netstring/writer.d.ts | 7 + packages/netstring/writer.d.ts.map | 1 + packages/pass-style/endow.d.ts | 2 + packages/pass-style/endow.d.ts.map | 1 + packages/pass-style/index.d.ts | 12 + packages/pass-style/index.d.ts.map | 1 + packages/pass-style/src/copyArray.d.ts | 6 + packages/pass-style/src/copyArray.d.ts.map | 1 + packages/pass-style/src/copyRecord.d.ts | 6 + packages/pass-style/src/copyRecord.d.ts.map | 1 + packages/pass-style/src/error.d.ts | 11 + packages/pass-style/src/error.d.ts.map | 1 + packages/pass-style/src/internal-types.d.ts | 26 + .../pass-style/src/internal-types.d.ts.map | 1 + packages/pass-style/src/iter-helpers.d.ts | 3 + packages/pass-style/src/iter-helpers.d.ts.map | 1 + packages/pass-style/src/make-far.d.ts | 21 + packages/pass-style/src/make-far.d.ts.map | 1 + packages/pass-style/src/makeTagged.d.ts | 2 + packages/pass-style/src/makeTagged.d.ts.map | 1 + .../pass-style/src/passStyle-helpers.d.ts | 38 ++ .../pass-style/src/passStyle-helpers.d.ts.map | 1 + packages/pass-style/src/passStyleOf.d.ts | 29 + packages/pass-style/src/passStyleOf.d.ts.map | 1 + packages/pass-style/src/remotable.d.ts | 14 + packages/pass-style/src/remotable.d.ts.map | 1 + packages/pass-style/src/safe-promise.d.ts | 4 + packages/pass-style/src/safe-promise.d.ts.map | 1 + packages/pass-style/src/string.d.ts | 4 + packages/pass-style/src/string.d.ts.map | 1 + packages/pass-style/src/symbol.d.ts | 5 + packages/pass-style/src/symbol.d.ts.map | 1 + packages/pass-style/src/tagged.d.ts | 6 + packages/pass-style/src/tagged.d.ts.map | 1 + packages/pass-style/src/typeGuards.d.ts | 65 +++ packages/pass-style/src/typeGuards.d.ts.map | 1 + packages/pass-style/src/types.d.ts | 114 ++++ packages/pass-style/src/types.d.ts.map | 1 + packages/pass-style/tools.d.ts | 2 + packages/pass-style/tools.d.ts.map | 1 + packages/pass-style/tools/arb-passable.d.ts | 17 + .../pass-style/tools/arb-passable.d.ts.map | 1 + packages/patterns/index.d.ts | 12 + packages/patterns/index.d.ts.map | 1 + packages/patterns/src/keys/checkKey.d.ts | 84 +++ packages/patterns/src/keys/checkKey.d.ts.map | 1 + packages/patterns/src/keys/compareKeys.d.ts | 11 + .../patterns/src/keys/compareKeys.d.ts.map | 1 + packages/patterns/src/keys/copyBag.d.ts | 11 + packages/patterns/src/keys/copyBag.d.ts.map | 1 + packages/patterns/src/keys/copySet.d.ts | 11 + packages/patterns/src/keys/copySet.d.ts.map | 1 + .../src/keys/keycollection-operators.d.ts | 8 + .../src/keys/keycollection-operators.d.ts.map | 1 + .../src/keys/merge-bag-operators.d.ts | 9 + .../src/keys/merge-bag-operators.d.ts.map | 1 + .../src/keys/merge-set-operators.d.ts | 17 + .../src/keys/merge-set-operators.d.ts.map | 1 + .../src/patterns/getGuardPayloads.d.ts | 5 + .../src/patterns/getGuardPayloads.d.ts.map | 1 + .../src/patterns/patternMatchers.d.ts | 35 ++ .../src/patterns/patternMatchers.d.ts.map | 1 + packages/patterns/src/patterns/types.d.ts | 68 +++ packages/patterns/src/patterns/types.d.ts.map | 1 + packages/patterns/src/types.d.ts | 541 ++++++++++++++++++ packages/patterns/src/types.d.ts.map | 1 + packages/promise-kit/index.d.ts | 24 + packages/promise-kit/index.d.ts.map | 1 + packages/promise-kit/shim.d.ts | 2 + packages/promise-kit/shim.d.ts.map | 1 + packages/promise-kit/src/is-promise.d.ts | 8 + packages/promise-kit/src/is-promise.d.ts.map | 1 + packages/promise-kit/src/memo-race.d.ts | 27 + packages/promise-kit/src/memo-race.d.ts.map | 1 + .../promise-kit/src/promise-executor-kit.d.ts | 8 + .../src/promise-executor-kit.d.ts.map | 1 + packages/promise-kit/src/types.d.ts | 20 + packages/promise-kit/src/types.d.ts.map | 1 + packages/ses-ava/exported.d.ts | 1 + packages/ses-ava/exported.d.ts.map | 1 + packages/ses-ava/index.d.ts | 2 + packages/ses-ava/index.d.ts.map | 1 + packages/ses-ava/prepare-endo.d.ts | 5 + packages/ses-ava/prepare-endo.d.ts.map | 1 + packages/ses-ava/src/ses-ava-test.d.ts | 44 ++ packages/ses-ava/src/ses-ava-test.d.ts.map | 1 + packages/skel/index.d.ts | 1 + packages/skel/index.d.ts.map | 1 + packages/static-module-record/index.d.ts | 2 + packages/static-module-record/index.d.ts.map | 1 + .../static-module-record/src/babelPlugin.d.ts | 56 ++ .../src/babelPlugin.d.ts.map | 1 + packages/static-module-record/src/hidden.d.ts | 11 + .../static-module-record/src/hidden.d.ts.map | 1 + .../src/static-module-record.d.ts | 80 +++ .../src/static-module-record.d.ts.map | 1 + .../src/transform-analyze.d.ts | 13 + .../src/transform-analyze.d.ts.map | 1 + .../src/transformSource.d.ts | 2 + .../src/transformSource.d.ts.map | 1 + packages/stream-node/index.d.ts | 3 + packages/stream-node/index.d.ts.map | 1 + packages/stream-node/reader.d.ts | 2 + packages/stream-node/reader.d.ts.map | 1 + packages/stream-node/writer.d.ts | 2 + packages/stream-node/writer.d.ts.map | 1 + packages/stream/index.d.ts | 48 ++ packages/stream/index.d.ts.map | 1 + packages/syrup/decode.d.ts | 2 + packages/syrup/decode.d.ts.map | 1 + packages/syrup/encode.d.ts | 2 + packages/syrup/encode.d.ts.map | 1 + packages/syrup/index.d.ts | 3 + packages/syrup/index.d.ts.map | 1 + packages/syrup/src/compare.d.ts | 10 + packages/syrup/src/compare.d.ts.map | 1 + packages/syrup/src/decode.d.ts | 13 + packages/syrup/src/decode.d.ts.map | 1 + packages/syrup/src/encode.d.ts | 16 + packages/syrup/src/encode.d.ts.map | 1 + packages/where/index.d.ts | 32 ++ packages/where/index.d.ts.map | 1 + packages/zip/index.d.ts | 4 + packages/zip/index.d.ts.map | 1 + packages/zip/reader.d.ts | 2 + packages/zip/reader.d.ts.map | 1 + packages/zip/src/buffer-reader.d.ts | 112 ++++ packages/zip/src/buffer-reader.d.ts.map | 1 + packages/zip/src/buffer-writer.d.ts | 66 +++ packages/zip/src/buffer-writer.d.ts.map | 1 + packages/zip/src/compression.d.ts | 2 + packages/zip/src/compression.d.ts.map | 1 + packages/zip/src/crc32.d.ts | 8 + packages/zip/src/crc32.d.ts.map | 1 + packages/zip/src/format-reader.d.ts | 44 ++ packages/zip/src/format-reader.d.ts.map | 1 + packages/zip/src/format-writer.d.ts | 46 ++ packages/zip/src/format-writer.d.ts.map | 1 + packages/zip/src/reader.d.ts | 24 + packages/zip/src/reader.d.ts.map | 1 + packages/zip/src/signature.d.ts | 7 + packages/zip/src/signature.d.ts.map | 1 + packages/zip/src/types.d.ts | 48 ++ packages/zip/src/types.d.ts.map | 1 + packages/zip/src/writer.d.ts | 33 ++ packages/zip/src/writer.d.ts.map | 1 + packages/zip/writer.d.ts | 2 + packages/zip/writer.d.ts.map | 1 + 569 files changed, 5612 insertions(+) create mode 100644 .vscode/launch.json create mode 100644 packages/base64/atob.d.ts create mode 100644 packages/base64/atob.d.ts.map create mode 100644 packages/base64/btoa.d.ts create mode 100644 packages/base64/btoa.d.ts.map create mode 100644 packages/base64/decode.d.ts create mode 100644 packages/base64/decode.d.ts.map create mode 100644 packages/base64/encode.d.ts create mode 100644 packages/base64/encode.d.ts.map create mode 100644 packages/base64/index.d.ts create mode 100644 packages/base64/index.d.ts.map create mode 100644 packages/base64/shim.d.ts create mode 100644 packages/base64/shim.d.ts.map create mode 100644 packages/base64/src/common.d.ts create mode 100644 packages/base64/src/common.d.ts.map create mode 100644 packages/base64/src/decode.d.ts create mode 100644 packages/base64/src/decode.d.ts.map create mode 100644 packages/base64/src/encode.d.ts create mode 100644 packages/base64/src/encode.d.ts.map create mode 100644 packages/bundle-source/cache.d.ts create mode 100644 packages/bundle-source/cache.d.ts.map create mode 100644 packages/bundle-source/src/bundle-source.d.ts create mode 100644 packages/bundle-source/src/bundle-source.d.ts.map create mode 100644 packages/bundle-source/src/fs.d.ts create mode 100644 packages/bundle-source/src/fs.d.ts.map create mode 100644 packages/bundle-source/src/index.d.ts create mode 100644 packages/bundle-source/src/index.d.ts.map create mode 100644 packages/bundle-source/src/is-entrypoint.d.ts create mode 100644 packages/bundle-source/src/is-entrypoint.d.ts.map create mode 100644 packages/bundle-source/src/main.d.ts create mode 100644 packages/bundle-source/src/main.d.ts.map create mode 100644 packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts create mode 100644 packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map create mode 100644 packages/bundle-source/src/tool.d.ts create mode 100644 packages/bundle-source/src/tool.d.ts.map create mode 100644 packages/bundle-source/src/types.d.ts create mode 100644 packages/bundle-source/src/types.d.ts.map create mode 100644 packages/bundle-source/src/zip-base64.d.ts create mode 100644 packages/bundle-source/src/zip-base64.d.ts.map create mode 100644 packages/captp/src/atomics.d.ts create mode 100644 packages/captp/src/atomics.d.ts.map create mode 100644 packages/captp/src/captp.d.ts create mode 100644 packages/captp/src/captp.d.ts.map create mode 100644 packages/captp/src/finalize.d.ts create mode 100644 packages/captp/src/finalize.d.ts.map create mode 100644 packages/captp/src/index.d.ts create mode 100644 packages/captp/src/index.d.ts.map create mode 100644 packages/captp/src/loopback.d.ts create mode 100644 packages/captp/src/loopback.d.ts.map create mode 100644 packages/captp/src/trap.d.ts create mode 100644 packages/captp/src/trap.d.ts.map create mode 100644 packages/captp/src/types.d.ts create mode 100644 packages/captp/src/types.d.ts.map create mode 100644 packages/check-bundle/index.d.ts create mode 100644 packages/check-bundle/index.d.ts.map create mode 100644 packages/check-bundle/lite.d.ts create mode 100644 packages/check-bundle/lite.d.ts.map create mode 100644 packages/check-bundle/src/json.d.ts create mode 100644 packages/check-bundle/src/json.d.ts.map create mode 100644 packages/cjs-module-analyzer/index.d.ts create mode 100644 packages/cjs-module-analyzer/index.d.ts.map create mode 100644 packages/cli/src/client.d.ts create mode 100644 packages/cli/src/client.d.ts.map create mode 100644 packages/cli/src/commands/adopt.d.ts create mode 100644 packages/cli/src/commands/adopt.d.ts.map create mode 100644 packages/cli/src/commands/bundle.d.ts create mode 100644 packages/cli/src/commands/bundle.d.ts.map create mode 100644 packages/cli/src/commands/cancel.d.ts create mode 100644 packages/cli/src/commands/cancel.d.ts.map create mode 100644 packages/cli/src/commands/cat.d.ts create mode 100644 packages/cli/src/commands/cat.d.ts.map create mode 100644 packages/cli/src/commands/dismiss.d.ts create mode 100644 packages/cli/src/commands/dismiss.d.ts.map create mode 100644 packages/cli/src/commands/eval.d.ts create mode 100644 packages/cli/src/commands/eval.d.ts.map create mode 100644 packages/cli/src/commands/follow.d.ts create mode 100644 packages/cli/src/commands/follow.d.ts.map create mode 100644 packages/cli/src/commands/inbox.d.ts create mode 100644 packages/cli/src/commands/inbox.d.ts.map create mode 100644 packages/cli/src/commands/install.d.ts create mode 100644 packages/cli/src/commands/install.d.ts.map create mode 100644 packages/cli/src/commands/list.d.ts create mode 100644 packages/cli/src/commands/list.d.ts.map create mode 100644 packages/cli/src/commands/log.d.ts create mode 100644 packages/cli/src/commands/log.d.ts.map create mode 100644 packages/cli/src/commands/make.d.ts create mode 100644 packages/cli/src/commands/make.d.ts.map create mode 100644 packages/cli/src/commands/mkguest.d.ts create mode 100644 packages/cli/src/commands/mkguest.d.ts.map create mode 100644 packages/cli/src/commands/mkhost.d.ts create mode 100644 packages/cli/src/commands/mkhost.d.ts.map create mode 100644 packages/cli/src/commands/open.d.ts create mode 100644 packages/cli/src/commands/open.d.ts.map create mode 100644 packages/cli/src/commands/ping.d.ts create mode 100644 packages/cli/src/commands/ping.d.ts.map create mode 100644 packages/cli/src/commands/reject.d.ts create mode 100644 packages/cli/src/commands/reject.d.ts.map create mode 100644 packages/cli/src/commands/remove.d.ts create mode 100644 packages/cli/src/commands/remove.d.ts.map create mode 100644 packages/cli/src/commands/rename.d.ts create mode 100644 packages/cli/src/commands/rename.d.ts.map create mode 100644 packages/cli/src/commands/request.d.ts create mode 100644 packages/cli/src/commands/request.d.ts.map create mode 100644 packages/cli/src/commands/resolve.d.ts create mode 100644 packages/cli/src/commands/resolve.d.ts.map create mode 100644 packages/cli/src/commands/run.d.ts create mode 100644 packages/cli/src/commands/run.d.ts.map create mode 100644 packages/cli/src/commands/send.d.ts create mode 100644 packages/cli/src/commands/send.d.ts.map create mode 100644 packages/cli/src/commands/show.d.ts create mode 100644 packages/cli/src/commands/show.d.ts.map create mode 100644 packages/cli/src/commands/spawn.d.ts create mode 100644 packages/cli/src/commands/spawn.d.ts.map create mode 100644 packages/cli/src/commands/store.d.ts create mode 100644 packages/cli/src/commands/store.d.ts.map create mode 100644 packages/cli/src/context.d.ts create mode 100644 packages/cli/src/context.d.ts.map create mode 100644 packages/cli/src/endo.d.ts create mode 100644 packages/cli/src/endo.d.ts.map create mode 100644 packages/cli/src/locator.d.ts create mode 100644 packages/cli/src/locator.d.ts.map create mode 100644 packages/cli/src/message-format.d.ts create mode 100644 packages/cli/src/message-format.d.ts.map create mode 100644 packages/cli/src/message-parse.d.ts create mode 100644 packages/cli/src/message-parse.d.ts.map create mode 100644 packages/cli/src/pet-name.d.ts create mode 100644 packages/cli/src/pet-name.d.ts.map create mode 100644 packages/cli/src/prompt.d.ts create mode 100644 packages/cli/src/prompt.d.ts.map create mode 100644 packages/cli/src/random.d.ts create mode 100644 packages/cli/src/random.d.ts.map create mode 100644 packages/common/apply-labeling-error.d.ts create mode 100644 packages/common/apply-labeling-error.d.ts.map create mode 100644 packages/common/from-unique-entries.d.ts create mode 100644 packages/common/from-unique-entries.d.ts.map create mode 100644 packages/common/ident-checker.d.ts create mode 100644 packages/common/ident-checker.d.ts.map create mode 100644 packages/common/list-difference.d.ts create mode 100644 packages/common/list-difference.d.ts.map create mode 100644 packages/common/make-array-iterator.d.ts create mode 100644 packages/common/make-array-iterator.d.ts.map create mode 100644 packages/common/make-iterator.d.ts create mode 100644 packages/common/make-iterator.d.ts.map create mode 100644 packages/common/object-map.d.ts create mode 100644 packages/common/object-map.d.ts.map create mode 100644 packages/common/object-meta-assign.d.ts create mode 100644 packages/common/object-meta-assign.d.ts.map create mode 100644 packages/common/object-meta-map.d.ts create mode 100644 packages/common/object-meta-map.d.ts.map create mode 100644 packages/common/throw-labeled.d.ts create mode 100644 packages/common/throw-labeled.d.ts.map create mode 100644 packages/compartment-mapper/archive.d.ts create mode 100644 packages/compartment-mapper/archive.d.ts.map create mode 100644 packages/compartment-mapper/bundle.d.ts create mode 100644 packages/compartment-mapper/bundle.d.ts.map create mode 100644 packages/compartment-mapper/import-archive.d.ts create mode 100644 packages/compartment-mapper/import-archive.d.ts.map create mode 100644 packages/compartment-mapper/import.d.ts create mode 100644 packages/compartment-mapper/import.d.ts.map create mode 100644 packages/compartment-mapper/index.d.ts create mode 100644 packages/compartment-mapper/index.d.ts.map create mode 100644 packages/compartment-mapper/node-powers.d.ts create mode 100644 packages/compartment-mapper/node-powers.d.ts.map create mode 100644 packages/compartment-mapper/src/archive.d.ts create mode 100644 packages/compartment-mapper/src/archive.d.ts.map create mode 100644 packages/compartment-mapper/src/bundle-cjs.d.ts create mode 100644 packages/compartment-mapper/src/bundle-cjs.d.ts.map create mode 100644 packages/compartment-mapper/src/bundle-mjs.d.ts create mode 100644 packages/compartment-mapper/src/bundle-mjs.d.ts.map create mode 100644 packages/compartment-mapper/src/bundle.d.ts create mode 100644 packages/compartment-mapper/src/bundle.d.ts.map create mode 100644 packages/compartment-mapper/src/compartment-map.d.ts create mode 100644 packages/compartment-mapper/src/compartment-map.d.ts.map create mode 100644 packages/compartment-mapper/src/extension.d.ts create mode 100644 packages/compartment-mapper/src/extension.d.ts.map create mode 100644 packages/compartment-mapper/src/import-archive.d.ts create mode 100644 packages/compartment-mapper/src/import-archive.d.ts.map create mode 100644 packages/compartment-mapper/src/import-hook.d.ts create mode 100644 packages/compartment-mapper/src/import-hook.d.ts.map create mode 100644 packages/compartment-mapper/src/import.d.ts create mode 100644 packages/compartment-mapper/src/import.d.ts.map create mode 100644 packages/compartment-mapper/src/infer-exports.d.ts create mode 100644 packages/compartment-mapper/src/infer-exports.d.ts.map create mode 100644 packages/compartment-mapper/src/json.d.ts create mode 100644 packages/compartment-mapper/src/json.d.ts.map create mode 100644 packages/compartment-mapper/src/link.d.ts create mode 100644 packages/compartment-mapper/src/link.d.ts.map create mode 100644 packages/compartment-mapper/src/node-module-specifier.d.ts create mode 100644 packages/compartment-mapper/src/node-module-specifier.d.ts.map create mode 100644 packages/compartment-mapper/src/node-modules.d.ts create mode 100644 packages/compartment-mapper/src/node-modules.d.ts.map create mode 100644 packages/compartment-mapper/src/node-powers.d.ts create mode 100644 packages/compartment-mapper/src/node-powers.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-archive-cjs.d.ts create mode 100644 packages/compartment-mapper/src/parse-archive-cjs.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-archive-mjs.d.ts create mode 100644 packages/compartment-mapper/src/parse-archive-mjs.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-bytes.d.ts create mode 100644 packages/compartment-mapper/src/parse-bytes.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts create mode 100644 packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-cjs.d.ts create mode 100644 packages/compartment-mapper/src/parse-cjs.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-json.d.ts create mode 100644 packages/compartment-mapper/src/parse-json.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-mjs.d.ts create mode 100644 packages/compartment-mapper/src/parse-mjs.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-pre-cjs.d.ts create mode 100644 packages/compartment-mapper/src/parse-pre-cjs.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-pre-mjs.d.ts create mode 100644 packages/compartment-mapper/src/parse-pre-mjs.d.ts.map create mode 100644 packages/compartment-mapper/src/parse-text.d.ts create mode 100644 packages/compartment-mapper/src/parse-text.d.ts.map create mode 100644 packages/compartment-mapper/src/policy-format.d.ts create mode 100644 packages/compartment-mapper/src/policy-format.d.ts.map create mode 100644 packages/compartment-mapper/src/policy.d.ts create mode 100644 packages/compartment-mapper/src/policy.d.ts.map create mode 100644 packages/compartment-mapper/src/powers.d.ts create mode 100644 packages/compartment-mapper/src/powers.d.ts.map create mode 100644 packages/compartment-mapper/src/search.d.ts create mode 100644 packages/compartment-mapper/src/search.d.ts.map create mode 100644 packages/compartment-mapper/src/types.d.ts create mode 100644 packages/compartment-mapper/src/types.d.ts.map create mode 100644 packages/compartment-mapper/src/url.d.ts create mode 100644 packages/compartment-mapper/src/url.d.ts.map create mode 100644 packages/daemon/index.d.ts create mode 100644 packages/daemon/index.d.ts.map create mode 100644 packages/daemon/reader-ref.d.ts create mode 100644 packages/daemon/reader-ref.d.ts.map create mode 100644 packages/daemon/ref-reader.d.ts create mode 100644 packages/daemon/ref-reader.d.ts.map create mode 100644 packages/daemon/src/client.d.ts create mode 100644 packages/daemon/src/client.d.ts.map create mode 100644 packages/daemon/src/connection.d.ts create mode 100644 packages/daemon/src/connection.d.ts.map create mode 100644 packages/daemon/src/context.d.ts create mode 100644 packages/daemon/src/context.d.ts.map create mode 100644 packages/daemon/src/daemon-node-powers.d.ts create mode 100644 packages/daemon/src/daemon-node-powers.d.ts.map create mode 100644 packages/daemon/src/daemon-node.d.ts create mode 100644 packages/daemon/src/daemon-node.d.ts.map create mode 100644 packages/daemon/src/daemon.d.ts create mode 100644 packages/daemon/src/daemon.d.ts.map create mode 100644 packages/daemon/src/deferred-tasks.d.ts create mode 100644 packages/daemon/src/deferred-tasks.d.ts.map create mode 100644 packages/daemon/src/directory.d.ts create mode 100644 packages/daemon/src/directory.d.ts.map create mode 100644 packages/daemon/src/formula-identifier.d.ts create mode 100644 packages/daemon/src/formula-identifier.d.ts.map create mode 100644 packages/daemon/src/guest.d.ts create mode 100644 packages/daemon/src/guest.d.ts.map create mode 100644 packages/daemon/src/host.d.ts create mode 100644 packages/daemon/src/host.d.ts.map create mode 100644 packages/daemon/src/mail.d.ts create mode 100644 packages/daemon/src/mail.d.ts.map create mode 100644 packages/daemon/src/networks/loopback.d.ts create mode 100644 packages/daemon/src/networks/loopback.d.ts.map create mode 100644 packages/daemon/src/networks/tcp-netstring.d.ts create mode 100644 packages/daemon/src/networks/tcp-netstring.d.ts.map create mode 100644 packages/daemon/src/pet-name.d.ts create mode 100644 packages/daemon/src/pet-name.d.ts.map create mode 100644 packages/daemon/src/pet-sitter.d.ts create mode 100644 packages/daemon/src/pet-sitter.d.ts.map create mode 100644 packages/daemon/src/pet-store.d.ts create mode 100644 packages/daemon/src/pet-store.d.ts.map create mode 100644 packages/daemon/src/pubsub.d.ts create mode 100644 packages/daemon/src/pubsub.d.ts.map create mode 100644 packages/daemon/src/reader-ref.d.ts create mode 100644 packages/daemon/src/reader-ref.d.ts.map create mode 100644 packages/daemon/src/ref-reader.d.ts create mode 100644 packages/daemon/src/ref-reader.d.ts.map create mode 100644 packages/daemon/src/serial-jobs.d.ts create mode 100644 packages/daemon/src/serial-jobs.d.ts.map create mode 100644 packages/daemon/src/serve-private-path.d.ts create mode 100644 packages/daemon/src/serve-private-path.d.ts.map create mode 100644 packages/daemon/src/serve-private-port-http.d.ts create mode 100644 packages/daemon/src/serve-private-port-http.d.ts.map create mode 100644 packages/daemon/src/weak-multimap.d.ts create mode 100644 packages/daemon/src/weak-multimap.d.ts.map create mode 100644 packages/daemon/src/web-page.d.ts create mode 100644 packages/daemon/src/web-page.d.ts.map create mode 100644 packages/daemon/src/web-server-node-powers.d.ts create mode 100644 packages/daemon/src/web-server-node-powers.d.ts.map create mode 100644 packages/daemon/src/web-server-node.d.ts create mode 100644 packages/daemon/src/web-server-node.d.ts.map create mode 100644 packages/daemon/src/worker-node-powers.d.ts create mode 100644 packages/daemon/src/worker-node-powers.d.ts.map create mode 100644 packages/daemon/src/worker-node.d.ts create mode 100644 packages/daemon/src/worker-node.d.ts.map create mode 100644 packages/daemon/src/worker.d.ts create mode 100644 packages/daemon/src/worker.d.ts.map create mode 100644 packages/env-options/index.d.ts create mode 100644 packages/env-options/index.d.ts.map create mode 100644 packages/env-options/src/env-options.d.ts create mode 100644 packages/env-options/src/env-options.d.ts.map create mode 100644 packages/errors/index.d.ts create mode 100644 packages/errors/index.d.ts.map create mode 100644 packages/evasive-transform/index.d.ts create mode 100644 packages/evasive-transform/index.d.ts.map create mode 100644 packages/evasive-transform/src/generate.d.ts create mode 100644 packages/evasive-transform/src/generate.d.ts.map create mode 100644 packages/evasive-transform/src/index.d.ts create mode 100644 packages/evasive-transform/src/index.d.ts.map create mode 100644 packages/evasive-transform/src/location-unmapper.d.ts create mode 100644 packages/evasive-transform/src/location-unmapper.d.ts.map create mode 100644 packages/evasive-transform/src/parse-ast.d.ts create mode 100644 packages/evasive-transform/src/parse-ast.d.ts.map create mode 100644 packages/evasive-transform/src/transform-ast.d.ts create mode 100644 packages/evasive-transform/src/transform-ast.d.ts.map create mode 100644 packages/evasive-transform/src/transform-comment.d.ts create mode 100644 packages/evasive-transform/src/transform-comment.d.ts.map create mode 100644 packages/eventual-send/shim.d.ts create mode 100644 packages/eventual-send/shim.d.ts.map create mode 100644 packages/eventual-send/src/E.d.ts create mode 100644 packages/eventual-send/src/E.d.ts.map create mode 100644 packages/eventual-send/src/exports.test-d.d.ts create mode 100644 packages/eventual-send/src/exports.test-d.d.ts.map create mode 100644 packages/eventual-send/src/handled-promise.d.ts create mode 100644 packages/eventual-send/src/handled-promise.d.ts.map create mode 100644 packages/eventual-send/src/local.d.ts create mode 100644 packages/eventual-send/src/local.d.ts.map create mode 100644 packages/eventual-send/src/message-breakpoints.d.ts create mode 100644 packages/eventual-send/src/message-breakpoints.d.ts.map create mode 100644 packages/eventual-send/src/no-shim.d.ts create mode 100644 packages/eventual-send/src/no-shim.d.ts.map create mode 100644 packages/eventual-send/src/postponed.d.ts create mode 100644 packages/eventual-send/src/postponed.d.ts.map create mode 100644 packages/eventual-send/src/track-turns.d.ts create mode 100644 packages/eventual-send/src/track-turns.d.ts.map create mode 100644 packages/eventual-send/test/get-hp.d.ts create mode 100644 packages/eventual-send/test/get-hp.d.ts.map create mode 100644 packages/eventual-send/utils.d.ts create mode 100644 packages/eventual-send/utils.d.ts.map create mode 100644 packages/exo/index.d.ts create mode 100644 packages/exo/index.d.ts.map create mode 100644 packages/exo/src/exo-makers.d.ts create mode 100644 packages/exo/src/exo-makers.d.ts.map create mode 100644 packages/exo/src/exo-tools.d.ts create mode 100644 packages/exo/src/exo-tools.d.ts.map create mode 100644 packages/exo/src/get-interface.d.ts create mode 100644 packages/exo/src/get-interface.d.ts.map create mode 100644 packages/exo/tools.d.ts create mode 100644 packages/exo/tools.d.ts.map create mode 100644 packages/far/src/index.d.ts create mode 100644 packages/far/src/index.d.ts.map create mode 100644 packages/import-bundle/source-map-node-powers.d.ts create mode 100644 packages/import-bundle/source-map-node-powers.d.ts.map create mode 100644 packages/import-bundle/source-map-node.d.ts create mode 100644 packages/import-bundle/source-map-node.d.ts.map create mode 100644 packages/import-bundle/src/compartment-wrapper.d.ts create mode 100644 packages/import-bundle/src/compartment-wrapper.d.ts.map create mode 100644 packages/import-bundle/src/index.d.ts create mode 100644 packages/import-bundle/src/index.d.ts.map create mode 100644 packages/import-bundle/src/source-map-node-powers.d.ts create mode 100644 packages/import-bundle/src/source-map-node-powers.d.ts.map create mode 100644 packages/import-bundle/src/source-map-node.d.ts create mode 100644 packages/import-bundle/src/source-map-node.d.ts.map create mode 100644 packages/init/debug.d.ts create mode 100644 packages/init/debug.d.ts.map create mode 100644 packages/init/index.d.ts create mode 100644 packages/init/index.d.ts.map create mode 100644 packages/init/legacy.d.ts create mode 100644 packages/init/legacy.d.ts.map create mode 100644 packages/init/pre-bundle-source.d.ts create mode 100644 packages/init/pre-bundle-source.d.ts.map create mode 100644 packages/init/pre-remoting.d.ts create mode 100644 packages/init/pre-remoting.d.ts.map create mode 100644 packages/init/pre.d.ts create mode 100644 packages/init/pre.d.ts.map create mode 100644 packages/init/src/node-async-local-storage-patch.d.ts create mode 100644 packages/init/src/node-async-local-storage-patch.d.ts.map create mode 100644 packages/init/src/node-async_hooks-patch.d.ts create mode 100644 packages/init/src/node-async_hooks-patch.d.ts.map create mode 100644 packages/init/src/node-async_hooks.d.ts create mode 100644 packages/init/src/node-async_hooks.d.ts.map create mode 100644 packages/init/src/pre-node.d.ts create mode 100644 packages/init/src/pre-node.d.ts.map create mode 100644 packages/init/unsafe-fast.d.ts create mode 100644 packages/init/unsafe-fast.d.ts.map create mode 100644 packages/lp32/index.d.ts create mode 100644 packages/lp32/index.d.ts.map create mode 100644 packages/lp32/reader.d.ts create mode 100644 packages/lp32/reader.d.ts.map create mode 100644 packages/lp32/src/host-endian.d.ts create mode 100644 packages/lp32/src/host-endian.d.ts.map create mode 100644 packages/lp32/writer.d.ts create mode 100644 packages/lp32/writer.d.ts.map create mode 100644 packages/marshal/index.d.ts create mode 100644 packages/marshal/index.d.ts.map create mode 100644 packages/marshal/src/deeplyFulfilled.d.ts create mode 100644 packages/marshal/src/deeplyFulfilled.d.ts.map create mode 100644 packages/marshal/src/dot-membrane.d.ts create mode 100644 packages/marshal/src/dot-membrane.d.ts.map create mode 100644 packages/marshal/src/encodePassable.d.ts create mode 100644 packages/marshal/src/encodePassable.d.ts.map create mode 100644 packages/marshal/src/encodeToCapData.d.ts create mode 100644 packages/marshal/src/encodeToCapData.d.ts.map create mode 100644 packages/marshal/src/encodeToSmallcaps.d.ts create mode 100644 packages/marshal/src/encodeToSmallcaps.d.ts.map create mode 100644 packages/marshal/src/marshal-justin.d.ts create mode 100644 packages/marshal/src/marshal-justin.d.ts.map create mode 100644 packages/marshal/src/marshal-stringify.d.ts create mode 100644 packages/marshal/src/marshal-stringify.d.ts.map create mode 100644 packages/marshal/src/marshal.d.ts create mode 100644 packages/marshal/src/marshal.d.ts.map create mode 100644 packages/marshal/src/rankOrder.d.ts create mode 100644 packages/marshal/src/rankOrder.d.ts.map create mode 100644 packages/marshal/src/types.d.ts create mode 100644 packages/marshal/src/types.d.ts.map create mode 100644 packages/marshal/src/types.test-d.d.ts create mode 100644 packages/marshal/src/types.test-d.d.ts.map create mode 100644 packages/memoize/index.d.ts create mode 100644 packages/memoize/index.d.ts.map create mode 100644 packages/memoize/src/memoize.d.ts create mode 100644 packages/memoize/src/memoize.d.ts.map create mode 100644 packages/nat/src/index.d.ts create mode 100644 packages/nat/src/index.d.ts.map create mode 100644 packages/netstring/index.d.ts create mode 100644 packages/netstring/index.d.ts.map create mode 100644 packages/netstring/reader.d.ts create mode 100644 packages/netstring/reader.d.ts.map create mode 100644 packages/netstring/writer.d.ts create mode 100644 packages/netstring/writer.d.ts.map create mode 100644 packages/pass-style/endow.d.ts create mode 100644 packages/pass-style/endow.d.ts.map create mode 100644 packages/pass-style/index.d.ts create mode 100644 packages/pass-style/index.d.ts.map create mode 100644 packages/pass-style/src/copyArray.d.ts create mode 100644 packages/pass-style/src/copyArray.d.ts.map create mode 100644 packages/pass-style/src/copyRecord.d.ts create mode 100644 packages/pass-style/src/copyRecord.d.ts.map create mode 100644 packages/pass-style/src/error.d.ts create mode 100644 packages/pass-style/src/error.d.ts.map create mode 100644 packages/pass-style/src/internal-types.d.ts create mode 100644 packages/pass-style/src/internal-types.d.ts.map create mode 100644 packages/pass-style/src/iter-helpers.d.ts create mode 100644 packages/pass-style/src/iter-helpers.d.ts.map create mode 100644 packages/pass-style/src/make-far.d.ts create mode 100644 packages/pass-style/src/make-far.d.ts.map create mode 100644 packages/pass-style/src/makeTagged.d.ts create mode 100644 packages/pass-style/src/makeTagged.d.ts.map create mode 100644 packages/pass-style/src/passStyle-helpers.d.ts create mode 100644 packages/pass-style/src/passStyle-helpers.d.ts.map create mode 100644 packages/pass-style/src/passStyleOf.d.ts create mode 100644 packages/pass-style/src/passStyleOf.d.ts.map create mode 100644 packages/pass-style/src/remotable.d.ts create mode 100644 packages/pass-style/src/remotable.d.ts.map create mode 100644 packages/pass-style/src/safe-promise.d.ts create mode 100644 packages/pass-style/src/safe-promise.d.ts.map create mode 100644 packages/pass-style/src/string.d.ts create mode 100644 packages/pass-style/src/string.d.ts.map create mode 100644 packages/pass-style/src/symbol.d.ts create mode 100644 packages/pass-style/src/symbol.d.ts.map create mode 100644 packages/pass-style/src/tagged.d.ts create mode 100644 packages/pass-style/src/tagged.d.ts.map create mode 100644 packages/pass-style/src/typeGuards.d.ts create mode 100644 packages/pass-style/src/typeGuards.d.ts.map create mode 100644 packages/pass-style/src/types.d.ts create mode 100644 packages/pass-style/src/types.d.ts.map create mode 100644 packages/pass-style/tools.d.ts create mode 100644 packages/pass-style/tools.d.ts.map create mode 100644 packages/pass-style/tools/arb-passable.d.ts create mode 100644 packages/pass-style/tools/arb-passable.d.ts.map create mode 100644 packages/patterns/index.d.ts create mode 100644 packages/patterns/index.d.ts.map create mode 100644 packages/patterns/src/keys/checkKey.d.ts create mode 100644 packages/patterns/src/keys/checkKey.d.ts.map create mode 100644 packages/patterns/src/keys/compareKeys.d.ts create mode 100644 packages/patterns/src/keys/compareKeys.d.ts.map create mode 100644 packages/patterns/src/keys/copyBag.d.ts create mode 100644 packages/patterns/src/keys/copyBag.d.ts.map create mode 100644 packages/patterns/src/keys/copySet.d.ts create mode 100644 packages/patterns/src/keys/copySet.d.ts.map create mode 100644 packages/patterns/src/keys/keycollection-operators.d.ts create mode 100644 packages/patterns/src/keys/keycollection-operators.d.ts.map create mode 100644 packages/patterns/src/keys/merge-bag-operators.d.ts create mode 100644 packages/patterns/src/keys/merge-bag-operators.d.ts.map create mode 100644 packages/patterns/src/keys/merge-set-operators.d.ts create mode 100644 packages/patterns/src/keys/merge-set-operators.d.ts.map create mode 100644 packages/patterns/src/patterns/getGuardPayloads.d.ts create mode 100644 packages/patterns/src/patterns/getGuardPayloads.d.ts.map create mode 100644 packages/patterns/src/patterns/patternMatchers.d.ts create mode 100644 packages/patterns/src/patterns/patternMatchers.d.ts.map create mode 100644 packages/patterns/src/patterns/types.d.ts create mode 100644 packages/patterns/src/patterns/types.d.ts.map create mode 100644 packages/patterns/src/types.d.ts create mode 100644 packages/patterns/src/types.d.ts.map create mode 100644 packages/promise-kit/index.d.ts create mode 100644 packages/promise-kit/index.d.ts.map create mode 100644 packages/promise-kit/shim.d.ts create mode 100644 packages/promise-kit/shim.d.ts.map create mode 100644 packages/promise-kit/src/is-promise.d.ts create mode 100644 packages/promise-kit/src/is-promise.d.ts.map create mode 100644 packages/promise-kit/src/memo-race.d.ts create mode 100644 packages/promise-kit/src/memo-race.d.ts.map create mode 100644 packages/promise-kit/src/promise-executor-kit.d.ts create mode 100644 packages/promise-kit/src/promise-executor-kit.d.ts.map create mode 100644 packages/promise-kit/src/types.d.ts create mode 100644 packages/promise-kit/src/types.d.ts.map create mode 100644 packages/ses-ava/exported.d.ts create mode 100644 packages/ses-ava/exported.d.ts.map create mode 100644 packages/ses-ava/index.d.ts create mode 100644 packages/ses-ava/index.d.ts.map create mode 100644 packages/ses-ava/prepare-endo.d.ts create mode 100644 packages/ses-ava/prepare-endo.d.ts.map create mode 100644 packages/ses-ava/src/ses-ava-test.d.ts create mode 100644 packages/ses-ava/src/ses-ava-test.d.ts.map create mode 100644 packages/skel/index.d.ts create mode 100644 packages/skel/index.d.ts.map create mode 100644 packages/static-module-record/index.d.ts create mode 100644 packages/static-module-record/index.d.ts.map create mode 100644 packages/static-module-record/src/babelPlugin.d.ts create mode 100644 packages/static-module-record/src/babelPlugin.d.ts.map create mode 100644 packages/static-module-record/src/hidden.d.ts create mode 100644 packages/static-module-record/src/hidden.d.ts.map create mode 100644 packages/static-module-record/src/static-module-record.d.ts create mode 100644 packages/static-module-record/src/static-module-record.d.ts.map create mode 100644 packages/static-module-record/src/transform-analyze.d.ts create mode 100644 packages/static-module-record/src/transform-analyze.d.ts.map create mode 100644 packages/static-module-record/src/transformSource.d.ts create mode 100644 packages/static-module-record/src/transformSource.d.ts.map create mode 100644 packages/stream-node/index.d.ts create mode 100644 packages/stream-node/index.d.ts.map create mode 100644 packages/stream-node/reader.d.ts create mode 100644 packages/stream-node/reader.d.ts.map create mode 100644 packages/stream-node/writer.d.ts create mode 100644 packages/stream-node/writer.d.ts.map create mode 100644 packages/stream/index.d.ts create mode 100644 packages/stream/index.d.ts.map create mode 100644 packages/syrup/decode.d.ts create mode 100644 packages/syrup/decode.d.ts.map create mode 100644 packages/syrup/encode.d.ts create mode 100644 packages/syrup/encode.d.ts.map create mode 100644 packages/syrup/index.d.ts create mode 100644 packages/syrup/index.d.ts.map create mode 100644 packages/syrup/src/compare.d.ts create mode 100644 packages/syrup/src/compare.d.ts.map create mode 100644 packages/syrup/src/decode.d.ts create mode 100644 packages/syrup/src/decode.d.ts.map create mode 100644 packages/syrup/src/encode.d.ts create mode 100644 packages/syrup/src/encode.d.ts.map create mode 100644 packages/where/index.d.ts create mode 100644 packages/where/index.d.ts.map create mode 100644 packages/zip/index.d.ts create mode 100644 packages/zip/index.d.ts.map create mode 100644 packages/zip/reader.d.ts create mode 100644 packages/zip/reader.d.ts.map create mode 100644 packages/zip/src/buffer-reader.d.ts create mode 100644 packages/zip/src/buffer-reader.d.ts.map create mode 100644 packages/zip/src/buffer-writer.d.ts create mode 100644 packages/zip/src/buffer-writer.d.ts.map create mode 100644 packages/zip/src/compression.d.ts create mode 100644 packages/zip/src/compression.d.ts.map create mode 100644 packages/zip/src/crc32.d.ts create mode 100644 packages/zip/src/crc32.d.ts.map create mode 100644 packages/zip/src/format-reader.d.ts create mode 100644 packages/zip/src/format-reader.d.ts.map create mode 100644 packages/zip/src/format-writer.d.ts create mode 100644 packages/zip/src/format-writer.d.ts.map create mode 100644 packages/zip/src/reader.d.ts create mode 100644 packages/zip/src/reader.d.ts.map create mode 100644 packages/zip/src/signature.d.ts create mode 100644 packages/zip/src/signature.d.ts.map create mode 100644 packages/zip/src/types.d.ts create mode 100644 packages/zip/src/types.d.ts.map create mode 100644 packages/zip/src/writer.d.ts create mode 100644 packages/zip/src/writer.d.ts.map create mode 100644 packages/zip/writer.d.ts create mode 100644 packages/zip/writer.d.ts.map diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 0000000000..528ebfef7f --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,9 @@ +{ + "sourceMapPathOverrides": { + "type": "object", + "description": "%chrome.sourceMapPathOverrides.description%", + "default": { + "sourcemap:///./*": "/Users/kris/*" + } + } +} diff --git a/packages/base64/atob.d.ts b/packages/base64/atob.d.ts new file mode 100644 index 0000000000..cea5f057c6 --- /dev/null +++ b/packages/base64/atob.d.ts @@ -0,0 +1,2 @@ +export function atob(encodedData: string): string; +//# sourceMappingURL=atob.d.ts.map \ No newline at end of file diff --git a/packages/base64/atob.d.ts.map b/packages/base64/atob.d.ts.map new file mode 100644 index 0000000000..2103d5ba2d --- /dev/null +++ b/packages/base64/atob.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"atob.d.ts","sourceRoot":"","sources":["atob.js"],"names":[],"mappings":"AAMO,kCAHI,MAAM,GACJ,MAAM,CAKlB"} \ No newline at end of file diff --git a/packages/base64/btoa.d.ts b/packages/base64/btoa.d.ts new file mode 100644 index 0000000000..d1d54000e4 --- /dev/null +++ b/packages/base64/btoa.d.ts @@ -0,0 +1,2 @@ +export function btoa(stringToEncode: string): string; +//# sourceMappingURL=btoa.d.ts.map \ No newline at end of file diff --git a/packages/base64/btoa.d.ts.map b/packages/base64/btoa.d.ts.map new file mode 100644 index 0000000000..c0091d0160 --- /dev/null +++ b/packages/base64/btoa.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"btoa.d.ts","sourceRoot":"","sources":["btoa.js"],"names":[],"mappings":"AAMO,qCAHI,MAAM,GACJ,MAAM,CAYlB"} \ No newline at end of file diff --git a/packages/base64/decode.d.ts b/packages/base64/decode.d.ts new file mode 100644 index 0000000000..b347963b58 --- /dev/null +++ b/packages/base64/decode.d.ts @@ -0,0 +1,2 @@ +export { decodeBase64 } from "./src/decode.js"; +//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/base64/decode.d.ts.map b/packages/base64/decode.d.ts.map new file mode 100644 index 0000000000..857a2f9a25 --- /dev/null +++ b/packages/base64/decode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/encode.d.ts b/packages/base64/encode.d.ts new file mode 100644 index 0000000000..5fcca1b2bf --- /dev/null +++ b/packages/base64/encode.d.ts @@ -0,0 +1,2 @@ +export { encodeBase64 } from "./src/encode.js"; +//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/base64/encode.d.ts.map b/packages/base64/encode.d.ts.map new file mode 100644 index 0000000000..6d6d25d222 --- /dev/null +++ b/packages/base64/encode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/index.d.ts b/packages/base64/index.d.ts new file mode 100644 index 0000000000..ea4bf7b6f9 --- /dev/null +++ b/packages/base64/index.d.ts @@ -0,0 +1,5 @@ +export { encodeBase64 } from "./src/encode.js"; +export { decodeBase64 } from "./src/decode.js"; +export { btoa } from "./btoa.js"; +export { atob } from "./atob.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/base64/index.d.ts.map b/packages/base64/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/base64/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/shim.d.ts b/packages/base64/shim.d.ts new file mode 100644 index 0000000000..e30ed92ed1 --- /dev/null +++ b/packages/base64/shim.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=shim.d.ts.map \ No newline at end of file diff --git a/packages/base64/shim.d.ts.map b/packages/base64/shim.d.ts.map new file mode 100644 index 0000000000..52ccee7578 --- /dev/null +++ b/packages/base64/shim.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["shim.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/src/common.d.ts b/packages/base64/src/common.d.ts new file mode 100644 index 0000000000..b505c78a5b --- /dev/null +++ b/packages/base64/src/common.d.ts @@ -0,0 +1,11 @@ +export const padding: "="; +export const alphabet64: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; +/** + * The numeric value corresponding to each letter of the alphabet. + * If an alphabet is named for the Greek letters alpha and beta, then clearly a + * monodu is named for the corresponding Greek numbers mono and duo. + * + * @type {Record} + */ +export const monodu64: Record; +//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/packages/base64/src/common.d.ts.map b/packages/base64/src/common.d.ts.map new file mode 100644 index 0000000000..a833376c62 --- /dev/null +++ b/packages/base64/src/common.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.js"],"names":[],"mappings":"AAEA,0BAA2B;AAE3B,4FACqE;AAErE;;;;;;GAMG;AACH,uBAFU,OAAO,MAAM,EAAE,MAAM,CAAC,CAEL"} \ No newline at end of file diff --git a/packages/base64/src/decode.d.ts b/packages/base64/src/decode.d.ts new file mode 100644 index 0000000000..e4a02e1aad --- /dev/null +++ b/packages/base64/src/decode.d.ts @@ -0,0 +1,4 @@ +export function jsDecodeBase64(string: string, name?: string | undefined): Uint8Array; +/** @type {typeof jsDecodeBase64} */ +export const decodeBase64: typeof jsDecodeBase64; +//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/base64/src/decode.d.ts.map b/packages/base64/src/decode.d.ts.map new file mode 100644 index 0000000000..c36d4573a0 --- /dev/null +++ b/packages/base64/src/decode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":"AAuBO,uCALI,MAAM,8BAGJ,UAAU,CA4CtB;AAcD,oCAAoC;AACpC,2BADW,qBAAqB,CAIX"} \ No newline at end of file diff --git a/packages/base64/src/encode.d.ts b/packages/base64/src/encode.d.ts new file mode 100644 index 0000000000..60d0c790ae --- /dev/null +++ b/packages/base64/src/encode.d.ts @@ -0,0 +1,4 @@ +export function jsEncodeBase64(data: Uint8Array): string; +/** @type {typeof jsEncodeBase64} */ +export const encodeBase64: typeof jsEncodeBase64; +//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/base64/src/encode.d.ts.map b/packages/base64/src/encode.d.ts.map new file mode 100644 index 0000000000..7ce0e769a4 --- /dev/null +++ b/packages/base64/src/encode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":"AAqBO,qCAHI,UAAU,GACR,MAAM,CA8ClB;AAED,oCAAoC;AACpC,2BADW,qBAAqB,CAE8C"} \ No newline at end of file diff --git a/packages/bundle-source/cache.d.ts b/packages/bundle-source/cache.d.ts new file mode 100644 index 0000000000..2fe56a828a --- /dev/null +++ b/packages/bundle-source/cache.d.ts @@ -0,0 +1,54 @@ +export namespace jsOpts { + function encodeBundle(bundle: any): string; + function toBundleName(n: any): string; + function toBundleMeta(n: any): string; +} +export namespace jsonOpts { + export function encodeBundle_1(bundle: any): string; + export { encodeBundle_1 as encodeBundle }; + export function toBundleName_1(n: any): string; + export { toBundleName_1 as toBundleName }; + export function toBundleMeta_1(n: any): string; + export { toBundleMeta_1 as toBundleMeta }; +} +export function makeBundleCache(wr: any, cwd: any, readPowers: any, opts: any): { + add: (rootPath: any, targetName: any, log?: any) => Promise; + validate: (targetName: string, rootOpt: any, log?: Logger | undefined, meta?: BundleMeta | undefined) => Promise; + validateOrAdd: (rootPath: string, targetName: string, log?: Logger | undefined) => Promise; + load: (rootPath: string, targetName?: string | undefined, log?: Logger | undefined) => Promise; +}; +export function makeNodeBundleCache(dest: string, options: { + format?: string; + cacheOpts?: CacheOpts; + cacheSourceMaps?: boolean; + dev?: boolean; + log?: Logger; +}, loadModule: (id: string) => Promise, pid?: number | undefined, nonce?: number | undefined): Promise<{ + add: (rootPath: any, targetName: any, log?: any) => Promise; + validate: (targetName: string, rootOpt: any, log?: Logger | undefined, meta?: BundleMeta | undefined) => Promise; + validateOrAdd: (rootPath: string, targetName: string, log?: Logger | undefined) => Promise; + load: (rootPath: string, targetName?: string | undefined, log?: Logger | undefined) => Promise; +}>; +/** + * A message logger. + */ +export type Logger = (...args: unknown[]) => void; +export type BundleMeta = { + bundleFileName: string; + /** + * ISO format + */ + bundleTime: string; + bundleSize: number; + moduleSource: { + relative: string; + absolute: string; + }; + contents: Array<{ + relativePath: string; + mtime: string; + size: number; + }>; +}; +export type CacheOpts = typeof jsOpts; +//# sourceMappingURL=cache.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/cache.d.ts.map b/packages/bundle-source/cache.d.ts.map new file mode 100644 index 0000000000..856ef9e8a3 --- /dev/null +++ b/packages/bundle-source/cache.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["cache.js"],"names":[],"mappings":";IAuBgB,2CAAuD;IACvD,sCAAqB;IACrB,sCAA+B;;;IAM/B,oDAAuC;;IACvC,+CAAuB;;IACvB,+CAAiC;;;AAG1C;;2BAsFM,MAAM,WACN,GAAG,8DAGD,QAAQ,UAAU,CAAC;8BAyErB,MAAM,cACN,MAAM,+BAEJ,QAAQ,UAAU,CAAC;qBAgDrB,MAAM;EAgClB;AASM,0CANI,MAAM,WACN;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,mBAC7F,MAAM,KAAK,QAAQ,GAAG,CAAC;;2BArK1B,MAAM,WACN,GAAG,8DAGD,QAAQ,UAAU,CAAC;8BAyErB,MAAM,cACN,MAAM,+BAEJ,QAAQ,UAAU,CAAC;qBAgDrB,MAAM;GAuElB;;;;+BAvTsB,OAAO,EAAE,KAAK,IAAI;;oBAK3B,MAAM;;;;gBACN,MAAM;gBACN,MAAM;kBACN;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;cACtC,MAAM;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;;wBAS5D,aAAa"} \ No newline at end of file diff --git a/packages/bundle-source/src/bundle-source.d.ts b/packages/bundle-source/src/bundle-source.d.ts new file mode 100644 index 0000000000..3fdbc8b284 --- /dev/null +++ b/packages/bundle-source/src/bundle-source.d.ts @@ -0,0 +1,4 @@ +export default bundleSource; +/** @type {import('./types').BundleSource} */ +declare const bundleSource: import('./types').BundleSource; +//# sourceMappingURL=bundle-source.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/bundle-source.d.ts.map b/packages/bundle-source/src/bundle-source.d.ts.map new file mode 100644 index 0000000000..3c706e02c8 --- /dev/null +++ b/packages/bundle-source/src/bundle-source.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle-source.d.ts","sourceRoot":"","sources":["bundle-source.js"],"names":[],"mappings":";AAIA,6CAA6C;AAE7C,4BAFW,OAAO,SAAS,EAAE,YAAY,CAgDvC"} \ No newline at end of file diff --git a/packages/bundle-source/src/fs.d.ts b/packages/bundle-source/src/fs.d.ts new file mode 100644 index 0000000000..88ed2b07ce --- /dev/null +++ b/packages/bundle-source/src/fs.d.ts @@ -0,0 +1,50 @@ +/// +/// +/// +export function makeFileReader(fileName: string, { fs, path }: { + fs: { + promises: Pick; + }; + path: Pick; +}): { + toString: () => string; + readText: () => Promise; + maybeReadText: () => Promise; + neighbor: (ref: any) => any; + stat: () => Promise; + absolute: () => string; + relative: (there: any) => string; + exists: () => Promise; +}; +/** + * @param {string} fileName + * @param {{ + * fs: Pick & + * { promises: Pick< + * import('fs/promises'), + * 'readFile' | 'stat' | 'writeFile' | 'mkdir' | 'rename' | 'rm' + * >, + * }, + * path: Pick, + * }} io + * @param {(there: string) => ReturnType} make + */ +export const makeFileWriter: any; +/** + * @param {string} fileName + * @param {{ + * fs: Pick & + * { promises: Pick< + * import('fs/promises'), + * 'readFile' | 'stat' | 'writeFile' | 'mkdir' | 'rm' + * >, + * }, + * path: Pick, + * os: Pick, + * }} io + * @param {number} [pid] + * @param {number} [nonce] + * @param {(there: string) => ReturnType} make + */ +export const makeAtomicFileWriter: any; +//# sourceMappingURL=fs.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/fs.d.ts.map b/packages/bundle-source/src/fs.d.ts.map new file mode 100644 index 0000000000..9b9c25acbf --- /dev/null +++ b/packages/bundle-source/src/fs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["fs.js"],"names":[],"mappings":";;;AAYO,yCARI,MAAM,gBACN;IACV,EAAM,EAAE;QACR,QAAc,EAAE,mCAA2B,UAAU,GAAG,MAAM,CAAC,CAAA;KAC1D,CAAC;IACN,IAAQ,EAAE,kCAAqB,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;CAClE;;;;;;;;;EAqDH;AAED;;;;;;;;;;;;GAYG;AACH,iCAgCE;AAEF;;;;;;;;;;;;;;;GAeG;AACH,uCAmCE"} \ No newline at end of file diff --git a/packages/bundle-source/src/index.d.ts b/packages/bundle-source/src/index.d.ts new file mode 100644 index 0000000000..378c3873ae --- /dev/null +++ b/packages/bundle-source/src/index.d.ts @@ -0,0 +1,4 @@ +export default bundleSource; +export * from "./exports.js"; +import bundleSource from './bundle-source.js'; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/index.d.ts.map b/packages/bundle-source/src/index.d.ts.map new file mode 100644 index 0000000000..5de8e61d52 --- /dev/null +++ b/packages/bundle-source/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;yBAAyB,oBAAoB"} \ No newline at end of file diff --git a/packages/bundle-source/src/is-entrypoint.d.ts b/packages/bundle-source/src/is-entrypoint.d.ts new file mode 100644 index 0000000000..bb1e2c8a59 --- /dev/null +++ b/packages/bundle-source/src/is-entrypoint.d.ts @@ -0,0 +1,2 @@ +export function isEntrypoint(href: any): boolean; +//# sourceMappingURL=is-entrypoint.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/is-entrypoint.d.ts.map b/packages/bundle-source/src/is-entrypoint.d.ts.map new file mode 100644 index 0000000000..27425d1b72 --- /dev/null +++ b/packages/bundle-source/src/is-entrypoint.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"is-entrypoint.d.ts","sourceRoot":"","sources":["is-entrypoint.js"],"names":[],"mappings":"AAcO,iDAE0D"} \ No newline at end of file diff --git a/packages/bundle-source/src/main.d.ts b/packages/bundle-source/src/main.d.ts new file mode 100644 index 0000000000..de1824fcf6 --- /dev/null +++ b/packages/bundle-source/src/main.d.ts @@ -0,0 +1,6 @@ +export function main(args: [to: string, dest: string, ...rest: string[]], { loadModule, pid, log }: { + loadModule: (spec: string) => any; + pid: number; + log?: import("../cache.js").Logger | undefined; +}): Promise; +//# sourceMappingURL=main.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/main.d.ts.map b/packages/bundle-source/src/main.d.ts.map new file mode 100644 index 0000000000..953fde3cc3 --- /dev/null +++ b/packages/bundle-source/src/main.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["main.js"],"names":[],"mappings":"AAcO;uBALW,MAAM,KAAK,GAAG;SACrB,MAAM;;IAEJ,QAAQ,IAAI,CAAC,CAiCzB"} \ No newline at end of file diff --git a/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts b/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts new file mode 100644 index 0000000000..f15adb894f --- /dev/null +++ b/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts @@ -0,0 +1,12 @@ +/** + * @template {'nestedEvaluate' | 'getExport'} T + * @param {string} startFilename + * @param {T} moduleFormat + * @param {any} powers + */ +export function bundleNestedEvaluateAndGetExports(startFilename: string, moduleFormat: T, powers: any): Promise<{ + moduleFormat: T; + source: string; + sourceMap: string; +}>; +//# sourceMappingURL=nested-evaluate-and-get-exports.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map b/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map new file mode 100644 index 0000000000..00881c0507 --- /dev/null +++ b/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"nested-evaluate-and-get-exports.d.ts","sourceRoot":"","sources":["nested-evaluate-and-get-exports.js"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,2GAJW,MAAM,2BAEN,GAAG;;;;GA+Pb"} \ No newline at end of file diff --git a/packages/bundle-source/src/tool.d.ts b/packages/bundle-source/src/tool.d.ts new file mode 100644 index 0000000000..7d9ce44977 --- /dev/null +++ b/packages/bundle-source/src/tool.d.ts @@ -0,0 +1,3 @@ +#!/usr/bin/env node +export {}; +//# sourceMappingURL=tool.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/tool.d.ts.map b/packages/bundle-source/src/tool.d.ts.map new file mode 100644 index 0000000000..90bcc33bfb --- /dev/null +++ b/packages/bundle-source/src/tool.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["tool.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/bundle-source/src/types.d.ts b/packages/bundle-source/src/types.d.ts new file mode 100644 index 0000000000..3cbcf5e436 --- /dev/null +++ b/packages/bundle-source/src/types.d.ts @@ -0,0 +1,43 @@ +export type ModuleFormat = 'endoZipBase64' | 'nestedEvaluate' | 'getExport'; +export type BundleSource = BundleSourceSimple & BundleSourceWithFormat & BundleSourceWithOptions & BundleSourceGeneral; +export type BundleSourceResult = T extends 'endoZipBase64' ? { + moduleFormat: 'endoZipBase64'; + endoZipBase64: string; + endoZipBase64Sha512: string; +} : T extends 'getExport' | 'nestedEvaluate' ? { + moduleFormat: T; + source: string; + sourceMap: string; +} : never; +export type BundleSourceSimple = (startFilename: string) => Promise>; +export type BundleSourceWithFormat = (startFilename: string, format: T, powers?: { + read?: ReadFn; + canonical?: CanonicalFn; + externals?: string[]; +}) => Promise>; +export type BundleSourceWithOptions = (startFilename: string, bundleOptions: BundleOptions, powers?: { + read?: ReadFn; + canonical?: CanonicalFn; + externals?: string[]; +}) => Promise>; +export type BundleSourceGeneral = (startFilename: string, formatOrOptions?: T | BundleOptions | undefined, powers?: { + read?: ReadFn; + canonical?: CanonicalFn; + externals?: string[]; +}) => Promise>; +export type BundleOptions = { + format?: T | undefined; + /** + * - development mode, for test bundles that need + * access to devDependencies of the entry package. + */ + dev?: boolean | undefined; +}; +export type ReadFn = (location: string) => Promise; +/** + * Returns a canonical URL for a given URL, following redirects or symbolic + * links if any exist along the path. + * Must return the given logical location if the real location does not exist. + */ +export type CanonicalFn = (location: string) => Promise; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/types.d.ts.map b/packages/bundle-source/src/types.d.ts.map new file mode 100644 index 0000000000..e11e0a6dcf --- /dev/null +++ b/packages/bundle-source/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"2BAIa,eAAe,GAAG,gBAAgB,GAAG,WAAW;2BAO5D,kBAAqB,GACrB,sBAAyB,GACzB,uBAA0B,GAC1B,mBAAsB;yDAKV,CAAC,SAAS,eAAe,GAAG;IACxC,YAAgB,EAAE,eAAe,CAAC;IAClC,aAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAuB,EAAE,MAAM,CAAC;CAC7B,GAAG,CAAC,SAAS,WAAW,GAAG,gBAAgB,GAAG;IACjD,YAAgB,EAAE,CAAC,CAAC;IACpB,MAAU,EAAE,MAAM,CAAC;IACnB,SAAa,EAAE,MAAM,CAAC;CACnB,GAAG,KAAK;4EAKO,MAAM;+FAMN,MAAM,sBAEZ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;gGAM1D,MAAM,4CAEZ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;4FAMzD,MAAM,+DAEZ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;;;;gCAcnE,MAAM,KACJ,QAAQ,UAAU,CAAC;;;;;;qCASrB,MAAM,KACJ,QAAQ,MAAM,CAAC"} \ No newline at end of file diff --git a/packages/bundle-source/src/zip-base64.d.ts b/packages/bundle-source/src/zip-base64.d.ts new file mode 100644 index 0000000000..2b3d87fca4 --- /dev/null +++ b/packages/bundle-source/src/zip-base64.d.ts @@ -0,0 +1,6 @@ +export function bundleZipBase64(startFilename: any, options?: {}, grantedPowers?: {}): Promise<{ + moduleFormat: "endoZipBase64"; + endoZipBase64: string; + endoZipBase64Sha512: string; +}>; +//# sourceMappingURL=zip-base64.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/zip-base64.d.ts.map b/packages/bundle-source/src/zip-base64.d.ts.map new file mode 100644 index 0000000000..626778a2db --- /dev/null +++ b/packages/bundle-source/src/zip-base64.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"zip-base64.d.ts","sourceRoot":"","sources":["zip-base64.js"],"names":[],"mappings":"AAmBA;;;;GAuKC"} \ No newline at end of file diff --git a/packages/captp/src/atomics.d.ts b/packages/captp/src/atomics.d.ts new file mode 100644 index 0000000000..2adac73bac --- /dev/null +++ b/packages/captp/src/atomics.d.ts @@ -0,0 +1,6 @@ +export const MIN_DATA_BUFFER_LENGTH: 1; +export const TRANSFER_OVERHEAD_LENGTH: number; +export const MIN_TRANSFER_BUFFER_LENGTH: number; +export function makeAtomicsTrapHost(transferBuffer: SharedArrayBuffer): import('./types.js').TrapHost; +export function makeAtomicsTrapGuest(transferBuffer: SharedArrayBuffer): import('./types.js').TrapGuest; +//# sourceMappingURL=atomics.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/atomics.d.ts.map b/packages/captp/src/atomics.d.ts.map new file mode 100644 index 0000000000..cfb8949dcb --- /dev/null +++ b/packages/captp/src/atomics.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"atomics.d.ts","sourceRoot":"","sources":["atomics.js"],"names":[],"mappings":"AAKA,uCAAwC;AAGxC,8CACkE;AAClE,gDACoD;AA0C7C,oDAHI,iBAAiB,GACf,OAAO,YAAY,EAAE,QAAQ,CA8CzC;AAWM,qDAHI,iBAAiB,GACf,OAAO,YAAY,EAAE,SAAS,CAgE1C"} \ No newline at end of file diff --git a/packages/captp/src/captp.d.ts b/packages/captp/src/captp.d.ts new file mode 100644 index 0000000000..1e2437f9ca --- /dev/null +++ b/packages/captp/src/captp.d.ts @@ -0,0 +1,55 @@ +export { E }; +export function makeCapTP(ourId: string, rawSend: (obj: Record) => void, bootstrapObj?: any, opts?: CapTPOptions): { + abort: (reason?: undefined) => void; + dispatch: (obj: any) => boolean; + getBootstrap: () => Promise; + getStats: () => { + send: { + [x: string]: number; + }; + recv: { + [x: string]: number; + }; + gc: { + DROPPED: number; + }; + }; + isOnlyLocal: (specimen: any) => boolean; + serialize: import("@endo/marshal/src/marshal.js").ToCapData; + unserialize: import("@endo/marshal/src/marshal.js").FromCapData; + makeTrapHandler: (name: any, obj: any) => any; + Trap: import("./ts-types.js").Trap | undefined; +}; +export type Settler = import('@endo/eventual-send').Settler; +export type HandledExecutor = import('@endo/eventual-send').HandledExecutor; +export type RemoteKit = import('@endo/eventual-send').RemoteKit; +/** + * the options to makeCapTP + */ +export type CapTPOptions = { + exportHook?: ((val: unknown, slot: import('./types.js').CapTPSlot) => void) | undefined; + importHook?: ((val: unknown, slot: import('./types.js').CapTPSlot) => void) | undefined; + onReject?: ((err: any) => void) | undefined; + /** + * an integer tag to attach to all messages in order to + * assist in ignoring earlier defunct instance's messages + */ + epoch?: number | undefined; + /** + * if specified, enable this CapTP (guest) to + * use Trap(target) to block while the recipient (host) resolves and + * communicates the response to the message + */ + trapGuest?: import("./types.js").TrapGuest | undefined; + /** + * if specified, enable this CapTP (host) to serve + * objects marked with makeTrapHandler to synchronous clients (guests) + */ + trapHost?: import("./types.js").TrapHost | undefined; + /** + * if true, aggressively garbage collect imports + */ + gcImports?: boolean | undefined; +}; +import { E } from '@endo/eventual-send'; +//# sourceMappingURL=captp.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/captp.d.ts.map b/packages/captp/src/captp.d.ts.map new file mode 100644 index 0000000000..f23ee16548 --- /dev/null +++ b/packages/captp/src/captp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"captp.d.ts","sourceRoot":"","sources":["captp.js"],"names":[],"mappings":";AAuEO,iCALI,MAAM,iBACA,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,iBAClC,GAAG,SACH,YAAY;;;;;;;;;;;;;;;;;;;;EA+0BtB;mCAl5BmC,OAAO,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC;2CACxC,OAAO,qBAAqB,EAAE,eAAe,CAAC,CAAC,CAAC;qCAChD,OAAO,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;;;;;wBA8C1D,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;wBACtD,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;sBACtD,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;kBAzCE,qBAAqB"} \ No newline at end of file diff --git a/packages/captp/src/finalize.d.ts b/packages/captp/src/finalize.d.ts new file mode 100644 index 0000000000..5a8efbdf5b --- /dev/null +++ b/packages/captp/src/finalize.d.ts @@ -0,0 +1,13 @@ +export function makeFinalizingMap(finalizer?: ((key: K) => void) | undefined, opts?: { + weakValues?: boolean | undefined; +} | undefined): Pick, "get" | "has" | "delete"> & { + set: (key: K, value: V) => void; + clearWithoutFinalizing: () => void; + getSize: () => number; +} & import("@endo/eventual-send").RemotableBrand<{}, FinalizingMap>; +export type FinalizingMap = Pick, "get" | "has" | "delete"> & { + set: (key: K, value: V) => void; + clearWithoutFinalizing: () => void; + getSize: () => number; +}; +//# sourceMappingURL=finalize.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/finalize.d.ts.map b/packages/captp/src/finalize.d.ts.map new file mode 100644 index 0000000000..0799176a56 --- /dev/null +++ b/packages/captp/src/finalize.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"finalize.d.ts","sourceRoot":"","sources":["finalize.js"],"names":[],"mappings":"AAsDO,iFAPgB,IAAI;;;+BApCK,IAAI;kCACD,IAAI;mBACnB,MAAM;0EA+HzB;;eAjIe,CAAC,SAAS,CAAC,KAAK,IAAI;4BACP,MAAM,IAAI;aACzB,MAAM,MAAM"} \ No newline at end of file diff --git a/packages/captp/src/index.d.ts b/packages/captp/src/index.d.ts new file mode 100644 index 0000000000..e604385ea2 --- /dev/null +++ b/packages/captp/src/index.d.ts @@ -0,0 +1,6 @@ +export { Nat } from "@endo/nat"; +export * from "@endo/marshal"; +export * from "./captp.js"; +export * from "./atomics.js"; +export { makeLoopback } from "./loopback.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/index.d.ts.map b/packages/captp/src/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/captp/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/captp/src/loopback.d.ts b/packages/captp/src/loopback.d.ts new file mode 100644 index 0000000000..8710bd64e2 --- /dev/null +++ b/packages/captp/src/loopback.d.ts @@ -0,0 +1,14 @@ +export { E }; +export function makeLoopback(ourId: string, nearOptions?: import("./captp.js").CapTPOptions | undefined, farOptions?: import("./captp.js").CapTPOptions | undefined): { + makeFar(x: T): ERef; + makeNear(x: T_1): ERef; + makeTrapHandler(x: T_2): T_2; + isOnlyNear(x: any): boolean; + isOnlyFar(x: any): boolean; + getNearStats(): any; + getFarStats(): any; + Trap: import("./ts-types.js").Trap | undefined; +}; +export type ERef = import('@endo/eventual-send').ERef; +import { E } from './captp.js'; +//# sourceMappingURL=loopback.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/loopback.d.ts.map b/packages/captp/src/loopback.d.ts.map new file mode 100644 index 0000000000..f94a99e3ae --- /dev/null +++ b/packages/captp/src/loopback.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loopback.d.ts","sourceRoot":"","sources":["loopback.js"],"names":[],"mappings":";AA6BO,oCAdI,MAAM;;;;kBAOE,GAAG,GAAG,OAAO;iBACd,GAAG,GAAG,OAAO;oBACV,GAAG;mBACJ,GAAG;;EA4FtB;sBA5GY,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC;kBARrB,YAAY"} \ No newline at end of file diff --git a/packages/captp/src/trap.d.ts b/packages/captp/src/trap.d.ts new file mode 100644 index 0000000000..bd4d6129b6 --- /dev/null +++ b/packages/captp/src/trap.d.ts @@ -0,0 +1,11 @@ +/** + * Default implementation of Trap for near objects. + * + * @type {import('./types.js').TrapImpl} + */ +export const nearTrapImpl: import('./types.js').TrapImpl; +export function makeTrap(trapImpl: import('./types.js').TrapImpl): { + (x: any): any; + get: (x: any) => any; +}; +//# sourceMappingURL=trap.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/trap.d.ts.map b/packages/captp/src/trap.d.ts.map new file mode 100644 index 0000000000..67615628ea --- /dev/null +++ b/packages/captp/src/trap.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"trap.d.ts","sourceRoot":"","sources":["trap.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,2BAFU,OAAO,YAAY,EAAE,QAAQ,CAYpC;AA6CI,mCAHI,OAAO,YAAY,EAAE,QAAQ;;;EAyBvC"} \ No newline at end of file diff --git a/packages/captp/src/types.d.ts b/packages/captp/src/types.d.ts new file mode 100644 index 0000000000..dbc64ade55 --- /dev/null +++ b/packages/captp/src/types.d.ts @@ -0,0 +1,61 @@ +export type CapTPSlot = string; +export type TrapImpl = { + /** + * function + * application + */ + applyFunction: (target: any, args: Array) => any; + /** + * method invocation, which is an atomic lookup of method + * and apply + */ + applyMethod: (target: any, method: string | symbol | number, args: Array) => any; + /** + * property + * lookup + */ + get: (target: any, prop: string | symbol | number) => any; +}; +/** + * The head of the pair + * is the `isRejected` value indicating whether the sync call was an exception, + * and tail of the pair is the serialized fulfillment value or rejection reason. + * (The fulfillment value is a non-thenable. The rejection reason is normally + * an error.) + */ +export type TrapCompletion = [boolean, import('@endo/marshal').CapData]; +/** + * the argument to TrapGuest + */ +export type TrapRequest = { + /** + * the TrapImpl method that was called + */ + trapMethod: keyof TrapImpl; + /** + * the target slot + */ + slot: CapTPSlot; + /** + * arguments to the TrapImpl method + */ + trapArgs: Array; + /** + * start the + * trap process on the trapHost, and drive the other side. + */ + startTrap: () => Required>; +}; +/** + * Use out-of-band communications to synchronously return a + * TrapCompletion value indicating the final results of a Trap call. + */ +export type TrapGuest = (req: TrapRequest) => TrapCompletion; +/** + * start the process of transferring the Trap request's + * results + */ +export type TrapHost = (completion: TrapCompletion) => AsyncIterator | undefined; +export type Trap = import('./ts-types.js').Trap; +export type TrapHandler = import('./ts-types').TrapHandler; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/types.d.ts.map b/packages/captp/src/types.d.ts.map new file mode 100644 index 0000000000..cb96f419df --- /dev/null +++ b/packages/captp/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"wBAEc,MAAM;;;;;;4BAIG,GAAG,QAAQ,MAAM,GAAG,CAAC,KAAK,GAAG;;;;;0BAGvC,GAAG,UACH,MAAM,GAAG,MAAM,GAAG,MAAM,QAC1B,MAAM,GAAG,CAAC,KACb,GAAG;;;;;kBAEY,GAAG,QAAQ,MAAM,GAAG,MAAM,GAAG,MAAM,KAAK,GAAG;;;;;;;;;6BAKrD,CAAC,OAAO,EAAE,OAAO,eAAe,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;;;;;;;;gBASpD,MAAM,QAAQ;;;;UACd,SAAS;;;;cACT,MAAM,GAAG,CAAC;;;;;eACV,MAAM,SAAS,SAAS,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;;;;;;8BAO5C,WAAW;;;;;uDAQT,cAAc,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,SAAS;mBAIzC,OAAO,eAAe,EAAE,IAAI;6BAI7B,OAAO,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/check-bundle/index.d.ts b/packages/check-bundle/index.d.ts new file mode 100644 index 0000000000..b001f9979a --- /dev/null +++ b/packages/check-bundle/index.d.ts @@ -0,0 +1,4 @@ +export function checkBundle(bundle: any, name?: string | undefined): Promise; +export function checkBundleBytes(bytes: Uint8Array, name?: string | undefined): Promise; +export function checkBundleFile(path: string): Promise; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/check-bundle/index.d.ts.map b/packages/check-bundle/index.d.ts.map new file mode 100644 index 0000000000..1088734268 --- /dev/null +++ b/packages/check-bundle/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAmBO,oCAHI,GAAG,SACH,MAAM,6BAIhB;AAMM,wCAHI,UAAU,SACV,MAAM,6BAOhB;AAKM,sCAFI,MAAM,iBAKhB"} \ No newline at end of file diff --git a/packages/check-bundle/lite.d.ts b/packages/check-bundle/lite.d.ts new file mode 100644 index 0000000000..8ed06e2f8c --- /dev/null +++ b/packages/check-bundle/lite.d.ts @@ -0,0 +1,2 @@ +export function checkBundle(bundle: any, computeSha512: (bytes: Uint8Array) => string, bundleName?: string): Promise; +//# sourceMappingURL=lite.d.ts.map \ No newline at end of file diff --git a/packages/check-bundle/lite.d.ts.map b/packages/check-bundle/lite.d.ts.map new file mode 100644 index 0000000000..5d9ca4b0f6 --- /dev/null +++ b/packages/check-bundle/lite.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"lite.d.ts","sourceRoot":"","sources":["lite.js"],"names":[],"mappings":"AAmBO,oCALI,GAAG,yBACK,UAAU,KAAK,MAAM,eAC7B,MAAM,GACJ,QAAQ,IAAI,CAAC,CA0EzB"} \ No newline at end of file diff --git a/packages/check-bundle/src/json.d.ts b/packages/check-bundle/src/json.d.ts new file mode 100644 index 0000000000..cc71f9914d --- /dev/null +++ b/packages/check-bundle/src/json.d.ts @@ -0,0 +1,2 @@ +export function parseLocatedJson(source: string, location: string): any; +//# sourceMappingURL=json.d.ts.map \ No newline at end of file diff --git a/packages/check-bundle/src/json.d.ts.map b/packages/check-bundle/src/json.d.ts.map new file mode 100644 index 0000000000..aab10ace5b --- /dev/null +++ b/packages/check-bundle/src/json.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["json.js"],"names":[],"mappings":"AAYO,yCAHI,MAAM,YACN,MAAM,OAWhB"} \ No newline at end of file diff --git a/packages/cjs-module-analyzer/index.d.ts b/packages/cjs-module-analyzer/index.d.ts new file mode 100644 index 0000000000..f26a8d2f64 --- /dev/null +++ b/packages/cjs-module-analyzer/index.d.ts @@ -0,0 +1,11 @@ +/** + * @param {string} cjsSource + * @param {string} [name] + */ +export function analyzeCommonJS(cjsSource: string, name?: string | undefined): { + exports: any[]; + reexports: any[]; + requires: any; +}; +export type RequireType = 0 | 1 | 2; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/cjs-module-analyzer/index.d.ts.map b/packages/cjs-module-analyzer/index.d.ts.map new file mode 100644 index 0000000000..cfe68a2a4f --- /dev/null +++ b/packages/cjs-module-analyzer/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAmEA;;;GAGG;AACH,2CAHW,MAAM;;;;EAqBhB;0BAxCa,CAAC,GAAG,CAAC,GAAG,CAAC"} \ No newline at end of file diff --git a/packages/cli/src/client.d.ts b/packages/cli/src/client.d.ts new file mode 100644 index 0000000000..f820fa646b --- /dev/null +++ b/packages/cli/src/client.d.ts @@ -0,0 +1,2 @@ +export function provideEndoClient(name: string, sockPath: string, cancelled: Promise, bootstrap?: TBootstrap | undefined): Promise; +//# sourceMappingURL=client.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/client.d.ts.map b/packages/cli/src/client.d.ts.map new file mode 100644 index 0000000000..1399c6c9e0 --- /dev/null +++ b/packages/cli/src/client.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["client.js"],"names":[],"mappings":"AASO,oDALI,MAAM,YACN,MAAM,aACN,QAAQ,IAAI,CAAC,oDAsBvB"} \ No newline at end of file diff --git a/packages/cli/src/commands/adopt.d.ts b/packages/cli/src/commands/adopt.d.ts new file mode 100644 index 0000000000..6f55e1644b --- /dev/null +++ b/packages/cli/src/commands/adopt.d.ts @@ -0,0 +1,7 @@ +export function adoptCommand({ messageNumberText, edgeName, name, agentNames, }: { + messageNumberText: any; + edgeName: any; + name: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=adopt.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/adopt.d.ts.map b/packages/cli/src/commands/adopt.d.ts.map new file mode 100644 index 0000000000..84c298fd11 --- /dev/null +++ b/packages/cli/src/commands/adopt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"adopt.d.ts","sourceRoot":"","sources":["adopt.js"],"names":[],"mappings":"AAKO;;;;;kBAUH"} \ No newline at end of file diff --git a/packages/cli/src/commands/bundle.d.ts b/packages/cli/src/commands/bundle.d.ts new file mode 100644 index 0000000000..8ba634ae10 --- /dev/null +++ b/packages/cli/src/commands/bundle.d.ts @@ -0,0 +1,7 @@ +export function bundleCommand({ applicationPath, bundleName, agentNames, bundleOptions, }: { + applicationPath: any; + bundleName: any; + agentNames: any; + bundleOptions: any; +}): Promise; +//# sourceMappingURL=bundle.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/bundle.d.ts.map b/packages/cli/src/commands/bundle.d.ts.map new file mode 100644 index 0000000000..f5de7f6e7c --- /dev/null +++ b/packages/cli/src/commands/bundle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":"AAUO;;;;;kBAqBN"} \ No newline at end of file diff --git a/packages/cli/src/commands/cancel.d.ts b/packages/cli/src/commands/cancel.d.ts new file mode 100644 index 0000000000..5adbcd3a2c --- /dev/null +++ b/packages/cli/src/commands/cancel.d.ts @@ -0,0 +1,6 @@ +export function cancelCommand({ name, agentNames, reason }: { + name: any; + agentNames: any; + reason: any; +}): Promise; +//# sourceMappingURL=cancel.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/cancel.d.ts.map b/packages/cli/src/commands/cancel.d.ts.map new file mode 100644 index 0000000000..cbc418b2e9 --- /dev/null +++ b/packages/cli/src/commands/cancel.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["cancel.js"],"names":[],"mappings":"AAKO;;;;kBAGH"} \ No newline at end of file diff --git a/packages/cli/src/commands/cat.d.ts b/packages/cli/src/commands/cat.d.ts new file mode 100644 index 0000000000..c47e1e0de3 --- /dev/null +++ b/packages/cli/src/commands/cat.d.ts @@ -0,0 +1,5 @@ +export function cat({ name, agentNames }: { + name: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=cat.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/cat.d.ts.map b/packages/cli/src/commands/cat.d.ts.map new file mode 100644 index 0000000000..93d20395c1 --- /dev/null +++ b/packages/cli/src/commands/cat.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"cat.d.ts","sourceRoot":"","sources":["cat.js"],"names":[],"mappings":"AAOO;;;kBAQH"} \ No newline at end of file diff --git a/packages/cli/src/commands/dismiss.d.ts b/packages/cli/src/commands/dismiss.d.ts new file mode 100644 index 0000000000..0688ddbc7c --- /dev/null +++ b/packages/cli/src/commands/dismiss.d.ts @@ -0,0 +1,5 @@ +export function dismissCommand({ messageNumberText, agentNames }: { + messageNumberText: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=dismiss.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/dismiss.d.ts.map b/packages/cli/src/commands/dismiss.d.ts.map new file mode 100644 index 0000000000..c3b53a35a0 --- /dev/null +++ b/packages/cli/src/commands/dismiss.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dismiss.d.ts","sourceRoot":"","sources":["dismiss.js"],"names":[],"mappings":"AAKO;;;kBAKH"} \ No newline at end of file diff --git a/packages/cli/src/commands/eval.d.ts b/packages/cli/src/commands/eval.d.ts new file mode 100644 index 0000000000..09907826f6 --- /dev/null +++ b/packages/cli/src/commands/eval.d.ts @@ -0,0 +1,8 @@ +export function evalCommand({ source, names, resultName, workerName, agentNames, }: { + source: any; + names: any; + resultName: any; + workerName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=eval.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/eval.d.ts.map b/packages/cli/src/commands/eval.d.ts.map new file mode 100644 index 0000000000..7530a91923 --- /dev/null +++ b/packages/cli/src/commands/eval.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["eval.js"],"names":[],"mappings":"AAMO;;;;;;kBAkCH"} \ No newline at end of file diff --git a/packages/cli/src/commands/follow.d.ts b/packages/cli/src/commands/follow.d.ts new file mode 100644 index 0000000000..1368b1cc3f --- /dev/null +++ b/packages/cli/src/commands/follow.d.ts @@ -0,0 +1,5 @@ +export function followCommand({ name, agentNames }: { + name: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=follow.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/follow.d.ts.map b/packages/cli/src/commands/follow.d.ts.map new file mode 100644 index 0000000000..61003ef1f7 --- /dev/null +++ b/packages/cli/src/commands/follow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["follow.js"],"names":[],"mappings":"AAOO;;;kBAMH"} \ No newline at end of file diff --git a/packages/cli/src/commands/inbox.d.ts b/packages/cli/src/commands/inbox.d.ts new file mode 100644 index 0000000000..6f586d10dd --- /dev/null +++ b/packages/cli/src/commands/inbox.d.ts @@ -0,0 +1,5 @@ +export function inbox({ follow, agentNames }: { + follow: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=inbox.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/inbox.d.ts.map b/packages/cli/src/commands/inbox.d.ts.map new file mode 100644 index 0000000000..9b4113fa8d --- /dev/null +++ b/packages/cli/src/commands/inbox.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["inbox.js"],"names":[],"mappings":"AAQO;;;kBAgCH"} \ No newline at end of file diff --git a/packages/cli/src/commands/install.d.ts b/packages/cli/src/commands/install.d.ts new file mode 100644 index 0000000000..da82e57347 --- /dev/null +++ b/packages/cli/src/commands/install.d.ts @@ -0,0 +1,10 @@ +export function install({ bundleName, agentNames, powersName, webletName, requestedPort, programPath, doOpen, }: { + bundleName: any; + agentNames: any; + powersName: any; + webletName: any; + requestedPort: any; + programPath: any; + doOpen: any; +}): Promise; +//# sourceMappingURL=install.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/install.d.ts.map b/packages/cli/src/commands/install.d.ts.map new file mode 100644 index 0000000000..60f7a30a56 --- /dev/null +++ b/packages/cli/src/commands/install.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["install.js"],"names":[],"mappings":"AAcO;;;;;;;;kBAsDN"} \ No newline at end of file diff --git a/packages/cli/src/commands/list.d.ts b/packages/cli/src/commands/list.d.ts new file mode 100644 index 0000000000..65eda53af4 --- /dev/null +++ b/packages/cli/src/commands/list.d.ts @@ -0,0 +1,6 @@ +export function list({ directoryPath, follow, json }: { + directoryPath: any; + follow: any; + json: any; +}): Promise; +//# sourceMappingURL=list.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/list.d.ts.map b/packages/cli/src/commands/list.d.ts.map new file mode 100644 index 0000000000..a5d2ca9f42 --- /dev/null +++ b/packages/cli/src/commands/list.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.js"],"names":[],"mappings":"AAMO;;;;kBA2BH"} \ No newline at end of file diff --git a/packages/cli/src/commands/log.d.ts b/packages/cli/src/commands/log.d.ts new file mode 100644 index 0000000000..2afb3e0ec5 --- /dev/null +++ b/packages/cli/src/commands/log.d.ts @@ -0,0 +1,5 @@ +export function log({ follow, ping }: { + follow: any; + ping: any; +}): Promise; +//# sourceMappingURL=log.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/log.d.ts.map b/packages/cli/src/commands/log.d.ts.map new file mode 100644 index 0000000000..83372d7733 --- /dev/null +++ b/packages/cli/src/commands/log.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["log.js"],"names":[],"mappings":"AAwBO;;;kBA+DH"} \ No newline at end of file diff --git a/packages/cli/src/commands/make.d.ts b/packages/cli/src/commands/make.d.ts new file mode 100644 index 0000000000..ddd0fcad81 --- /dev/null +++ b/packages/cli/src/commands/make.d.ts @@ -0,0 +1,10 @@ +export function makeCommand({ filePath, importPath, resultName, bundleName, workerName, agentNames, powersName, }: { + filePath: any; + importPath: any; + resultName: any; + bundleName: any; + workerName: any; + agentNames: any; + powersName: any; +}): Promise; +//# sourceMappingURL=make.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/make.d.ts.map b/packages/cli/src/commands/make.d.ts.map new file mode 100644 index 0000000000..15e032f4dd --- /dev/null +++ b/packages/cli/src/commands/make.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"make.d.ts","sourceRoot":"","sources":["make.js"],"names":[],"mappings":"AAcO;;;;;;;;kBAkEN"} \ No newline at end of file diff --git a/packages/cli/src/commands/mkguest.d.ts b/packages/cli/src/commands/mkguest.d.ts new file mode 100644 index 0000000000..bbf1c3fab9 --- /dev/null +++ b/packages/cli/src/commands/mkguest.d.ts @@ -0,0 +1,6 @@ +export function mkguest({ name, agentNames, introducedNames }: { + name: any; + agentNames: any; + introducedNames: any; +}): Promise; +//# sourceMappingURL=mkguest.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/mkguest.d.ts.map b/packages/cli/src/commands/mkguest.d.ts.map new file mode 100644 index 0000000000..bd2032b75b --- /dev/null +++ b/packages/cli/src/commands/mkguest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"mkguest.d.ts","sourceRoot":"","sources":["mkguest.js"],"names":[],"mappings":"AAKO;;;;kBAIH"} \ No newline at end of file diff --git a/packages/cli/src/commands/mkhost.d.ts b/packages/cli/src/commands/mkhost.d.ts new file mode 100644 index 0000000000..8e75a16d6c --- /dev/null +++ b/packages/cli/src/commands/mkhost.d.ts @@ -0,0 +1,6 @@ +export function mkhost({ name, agentNames, introducedNames }: { + name: any; + agentNames: any; + introducedNames: any; +}): Promise; +//# sourceMappingURL=mkhost.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/mkhost.d.ts.map b/packages/cli/src/commands/mkhost.d.ts.map new file mode 100644 index 0000000000..db19773a02 --- /dev/null +++ b/packages/cli/src/commands/mkhost.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"mkhost.d.ts","sourceRoot":"","sources":["mkhost.js"],"names":[],"mappings":"AAKO;;;;kBAIH"} \ No newline at end of file diff --git a/packages/cli/src/commands/open.d.ts b/packages/cli/src/commands/open.d.ts new file mode 100644 index 0000000000..f901aa1423 --- /dev/null +++ b/packages/cli/src/commands/open.d.ts @@ -0,0 +1,5 @@ +export function open({ webletName, agentNames }: { + webletName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=open.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/open.d.ts.map b/packages/cli/src/commands/open.d.ts.map new file mode 100644 index 0000000000..7f6015438f --- /dev/null +++ b/packages/cli/src/commands/open.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["open.js"],"names":[],"mappings":"AASO;;;kBAON"} \ No newline at end of file diff --git a/packages/cli/src/commands/ping.d.ts b/packages/cli/src/commands/ping.d.ts new file mode 100644 index 0000000000..4c06525505 --- /dev/null +++ b/packages/cli/src/commands/ping.d.ts @@ -0,0 +1,2 @@ +export function ping(): Promise; +//# sourceMappingURL=ping.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/ping.d.ts.map b/packages/cli/src/commands/ping.d.ts.map new file mode 100644 index 0000000000..3a28b50748 --- /dev/null +++ b/packages/cli/src/commands/ping.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["ping.js"],"names":[],"mappings":"AAOO,sCAoBH"} \ No newline at end of file diff --git a/packages/cli/src/commands/reject.d.ts b/packages/cli/src/commands/reject.d.ts new file mode 100644 index 0000000000..e295d1209e --- /dev/null +++ b/packages/cli/src/commands/reject.d.ts @@ -0,0 +1,6 @@ +export function rejectCommand({ requestNumberText, message, agentNames, }: { + requestNumberText: any; + message: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=reject.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/reject.d.ts.map b/packages/cli/src/commands/reject.d.ts.map new file mode 100644 index 0000000000..da815ee7a3 --- /dev/null +++ b/packages/cli/src/commands/reject.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reject.d.ts","sourceRoot":"","sources":["reject.js"],"names":[],"mappings":"AAKO;;;;kBASH"} \ No newline at end of file diff --git a/packages/cli/src/commands/remove.d.ts b/packages/cli/src/commands/remove.d.ts new file mode 100644 index 0000000000..313681f6b2 --- /dev/null +++ b/packages/cli/src/commands/remove.d.ts @@ -0,0 +1,5 @@ +export function remove({ petNames, agentNames }: { + petNames: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=remove.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/remove.d.ts.map b/packages/cli/src/commands/remove.d.ts.map new file mode 100644 index 0000000000..10cdbff0c6 --- /dev/null +++ b/packages/cli/src/commands/remove.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["remove.js"],"names":[],"mappings":"AAKO;;;kBAGJ"} \ No newline at end of file diff --git a/packages/cli/src/commands/rename.d.ts b/packages/cli/src/commands/rename.d.ts new file mode 100644 index 0000000000..d266d29b50 --- /dev/null +++ b/packages/cli/src/commands/rename.d.ts @@ -0,0 +1,6 @@ +export function rename({ fromName, toName, agentNames }: { + fromName: any; + toName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=rename.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/rename.d.ts.map b/packages/cli/src/commands/rename.d.ts.map new file mode 100644 index 0000000000..4883d7cace --- /dev/null +++ b/packages/cli/src/commands/rename.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"rename.d.ts","sourceRoot":"","sources":["rename.js"],"names":[],"mappings":"AAKO;;;;kBAGH"} \ No newline at end of file diff --git a/packages/cli/src/commands/request.d.ts b/packages/cli/src/commands/request.d.ts new file mode 100644 index 0000000000..bb6550a89a --- /dev/null +++ b/packages/cli/src/commands/request.d.ts @@ -0,0 +1,7 @@ +export function request({ description, toName, resultName, agentNames, }: { + description: any; + toName: any; + resultName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=request.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/request.d.ts.map b/packages/cli/src/commands/request.d.ts.map new file mode 100644 index 0000000000..4fad65d18b --- /dev/null +++ b/packages/cli/src/commands/request.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["request.js"],"names":[],"mappings":"AAKO;;;;;kBAUN"} \ No newline at end of file diff --git a/packages/cli/src/commands/resolve.d.ts b/packages/cli/src/commands/resolve.d.ts new file mode 100644 index 0000000000..bd74afbf8d --- /dev/null +++ b/packages/cli/src/commands/resolve.d.ts @@ -0,0 +1,6 @@ +export function resolveCommand({ requestNumberText, resolutionName, agentNames, }: { + requestNumberText: any; + resolutionName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=resolve.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/resolve.d.ts.map b/packages/cli/src/commands/resolve.d.ts.map new file mode 100644 index 0000000000..eb979772ac --- /dev/null +++ b/packages/cli/src/commands/resolve.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["resolve.js"],"names":[],"mappings":"AAKO;;;;kBASH"} \ No newline at end of file diff --git a/packages/cli/src/commands/run.d.ts b/packages/cli/src/commands/run.d.ts new file mode 100644 index 0000000000..f8ec31cbd2 --- /dev/null +++ b/packages/cli/src/commands/run.d.ts @@ -0,0 +1,9 @@ +export function run({ filePath, args, bundleName, importPath, powersName, agentNames, }: { + filePath: any; + args: any; + bundleName: any; + importPath: any; + powersName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=run.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/run.d.ts.map b/packages/cli/src/commands/run.d.ts.map new file mode 100644 index 0000000000..d6510c8f46 --- /dev/null +++ b/packages/cli/src/commands/run.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["run.js"],"names":[],"mappings":"AAkBO;;;;;;;kBAsFN"} \ No newline at end of file diff --git a/packages/cli/src/commands/send.d.ts b/packages/cli/src/commands/send.d.ts new file mode 100644 index 0000000000..0aad8ad916 --- /dev/null +++ b/packages/cli/src/commands/send.d.ts @@ -0,0 +1,6 @@ +export function send({ message, agentName, agentNames }: { + message: any; + agentName: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=send.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/send.d.ts.map b/packages/cli/src/commands/send.d.ts.map new file mode 100644 index 0000000000..385f08df63 --- /dev/null +++ b/packages/cli/src/commands/send.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["send.js"],"names":[],"mappings":"AAMO;;;;kBAKN"} \ No newline at end of file diff --git a/packages/cli/src/commands/show.d.ts b/packages/cli/src/commands/show.d.ts new file mode 100644 index 0000000000..cc03419d39 --- /dev/null +++ b/packages/cli/src/commands/show.d.ts @@ -0,0 +1,5 @@ +export function show({ name, agentNames }: { + name: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=show.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/show.d.ts.map b/packages/cli/src/commands/show.d.ts.map new file mode 100644 index 0000000000..128a2e3b1e --- /dev/null +++ b/packages/cli/src/commands/show.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"show.d.ts","sourceRoot":"","sources":["show.js"],"names":[],"mappings":"AAKO;;;kBAIH"} \ No newline at end of file diff --git a/packages/cli/src/commands/spawn.d.ts b/packages/cli/src/commands/spawn.d.ts new file mode 100644 index 0000000000..4055295074 --- /dev/null +++ b/packages/cli/src/commands/spawn.d.ts @@ -0,0 +1,5 @@ +export function spawn({ petNames, agentNames }: { + petNames: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=spawn.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/spawn.d.ts.map b/packages/cli/src/commands/spawn.d.ts.map new file mode 100644 index 0000000000..f99b760864 --- /dev/null +++ b/packages/cli/src/commands/spawn.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["spawn.js"],"names":[],"mappings":"AAMO;;;kBAGJ"} \ No newline at end of file diff --git a/packages/cli/src/commands/store.d.ts b/packages/cli/src/commands/store.d.ts new file mode 100644 index 0000000000..ac2b14df03 --- /dev/null +++ b/packages/cli/src/commands/store.d.ts @@ -0,0 +1,6 @@ +export function store({ storablePath, name, agentNames }: { + storablePath: any; + name: any; + agentNames: any; +}): Promise; +//# sourceMappingURL=store.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/store.d.ts.map b/packages/cli/src/commands/store.d.ts.map new file mode 100644 index 0000000000..a3d4dbc87f --- /dev/null +++ b/packages/cli/src/commands/store.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["store.js"],"names":[],"mappings":"AAUO;;;;kBAON"} \ No newline at end of file diff --git a/packages/cli/src/context.d.ts b/packages/cli/src/context.d.ts new file mode 100644 index 0000000000..6c4d4492e2 --- /dev/null +++ b/packages/cli/src/context.d.ts @@ -0,0 +1,15 @@ +export function withInterrupt(callback: any): Promise; +export function withEndoBootstrap({ os, process, clientName }: { + os: any; + process: any; + clientName?: string | undefined; +}, callback: any): Promise; +export function withEndoHost({ os, process }: { + os: any; + process: any; +}, callback: any): Promise; +export function withEndoAgent(agentNamePath: any, { os, process }: { + os: any; + process: any; +}, callback: any): Promise; +//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/context.d.ts.map b/packages/cli/src/context.d.ts.map new file mode 100644 index 0000000000..c4fc4da567 --- /dev/null +++ b/packages/cli/src/context.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["context.js"],"names":[],"mappings":"AAQO,4DAYN;AAEM;;;;iCA0BH;AAEG;;;iCAYJ;AAEI;;;iCAgBJ"} \ No newline at end of file diff --git a/packages/cli/src/endo.d.ts b/packages/cli/src/endo.d.ts new file mode 100644 index 0000000000..587ce5db99 --- /dev/null +++ b/packages/cli/src/endo.d.ts @@ -0,0 +1,2 @@ +export function main(rawArgs: any): Promise; +//# sourceMappingURL=endo.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/endo.d.ts.map b/packages/cli/src/endo.d.ts.map new file mode 100644 index 0000000000..4ec9734597 --- /dev/null +++ b/packages/cli/src/endo.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"endo.d.ts","sourceRoot":"","sources":["endo.js"],"names":[],"mappings":"AA0CO,iDAiiBN"} \ No newline at end of file diff --git a/packages/cli/src/locator.d.ts b/packages/cli/src/locator.d.ts new file mode 100644 index 0000000000..cb1647897a --- /dev/null +++ b/packages/cli/src/locator.d.ts @@ -0,0 +1,6 @@ +export const statePath: string; +export const logPath: any; +export const ephemeralStatePath: string; +export const cachePath: string; +export const sockPath: string; +//# sourceMappingURL=locator.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/locator.d.ts.map b/packages/cli/src/locator.d.ts.map new file mode 100644 index 0000000000..276138a4a5 --- /dev/null +++ b/packages/cli/src/locator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"locator.d.ts","sourceRoot":"","sources":["locator.js"],"names":[],"mappings":"AAmBA,+BAA6E;AAE7E,0BAAwD;AAExD,wCAIE;AAEF,+BAA6E;AAE7E,8BAA2E"} \ No newline at end of file diff --git a/packages/cli/src/message-format.d.ts b/packages/cli/src/message-format.d.ts new file mode 100644 index 0000000000..ed19aa93d3 --- /dev/null +++ b/packages/cli/src/message-format.d.ts @@ -0,0 +1,2 @@ +export function formatMessage(strings: Array, edgeNames: Array): string; +//# sourceMappingURL=message-format.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/message-format.d.ts.map b/packages/cli/src/message-format.d.ts.map new file mode 100644 index 0000000000..9b35c8218f --- /dev/null +++ b/packages/cli/src/message-format.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"message-format.d.ts","sourceRoot":"","sources":["message-format.js"],"names":[],"mappings":"AAIO,uCAHI,MAAM,MAAM,CAAC,aACb,MAAM,MAAM,CAAC,UAiBvB"} \ No newline at end of file diff --git a/packages/cli/src/message-parse.d.ts b/packages/cli/src/message-parse.d.ts new file mode 100644 index 0000000000..58f9ceed2f --- /dev/null +++ b/packages/cli/src/message-parse.d.ts @@ -0,0 +1,6 @@ +export function parseMessage(message: any): { + strings: any[]; + petNames: any[]; + edgeNames: any[]; +}; +//# sourceMappingURL=message-parse.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/message-parse.d.ts.map b/packages/cli/src/message-parse.d.ts.map new file mode 100644 index 0000000000..8b66099ad6 --- /dev/null +++ b/packages/cli/src/message-parse.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"message-parse.d.ts","sourceRoot":"","sources":["message-parse.js"],"names":[],"mappings":"AAEO;;;;EAmBN"} \ No newline at end of file diff --git a/packages/cli/src/pet-name.d.ts b/packages/cli/src/pet-name.d.ts new file mode 100644 index 0000000000..c01e8ec837 --- /dev/null +++ b/packages/cli/src/pet-name.d.ts @@ -0,0 +1,2 @@ +export function parsePetNamePath(petNamePath: string): string[]; +//# sourceMappingURL=pet-name.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/pet-name.d.ts.map b/packages/cli/src/pet-name.d.ts.map new file mode 100644 index 0000000000..dab0256a09 --- /dev/null +++ b/packages/cli/src/pet-name.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pet-name.d.ts","sourceRoot":"","sources":["pet-name.js"],"names":[],"mappings":"AASO,8CAHI,MAAM,GACJ,MAAM,EAAE,CAYpB"} \ No newline at end of file diff --git a/packages/cli/src/prompt.d.ts b/packages/cli/src/prompt.d.ts new file mode 100644 index 0000000000..f74dca692b --- /dev/null +++ b/packages/cli/src/prompt.d.ts @@ -0,0 +1,9 @@ +/** + * Prompts the user for input. The answer is trimmed and converted to + * lowercase. + * + * @param {string} question - The question to ask the user. + * @returns {Promise} The user's answer. + */ +export function prompt(question: string): Promise; +//# sourceMappingURL=prompt.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/prompt.d.ts.map b/packages/cli/src/prompt.d.ts.map new file mode 100644 index 0000000000..af90f782fe --- /dev/null +++ b/packages/cli/src/prompt.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["prompt.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,iCAHW,MAAM,GACJ,QAAQ,MAAM,CAAC,CAc3B"} \ No newline at end of file diff --git a/packages/cli/src/random.d.ts b/packages/cli/src/random.d.ts new file mode 100644 index 0000000000..8f275be42b --- /dev/null +++ b/packages/cli/src/random.d.ts @@ -0,0 +1,2 @@ +export function randomHex16(): Promise; +//# sourceMappingURL=random.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/random.d.ts.map b/packages/cli/src/random.d.ts.map new file mode 100644 index 0000000000..8ee3ce0ac1 --- /dev/null +++ b/packages/cli/src/random.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["random.js"],"names":[],"mappings":"AAEO,4CASJ"} \ No newline at end of file diff --git a/packages/common/apply-labeling-error.d.ts b/packages/common/apply-labeling-error.d.ts new file mode 100644 index 0000000000..6a06cac9a0 --- /dev/null +++ b/packages/common/apply-labeling-error.d.ts @@ -0,0 +1,2 @@ +export function applyLabelingError(func: (...args: A[]) => R, args: A[], label?: string | number | undefined): R; +//# sourceMappingURL=apply-labeling-error.d.ts.map \ No newline at end of file diff --git a/packages/common/apply-labeling-error.d.ts.map b/packages/common/apply-labeling-error.d.ts.map new file mode 100644 index 0000000000..86f420f3d2 --- /dev/null +++ b/packages/common/apply-labeling-error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"apply-labeling-error.d.ts","sourceRoot":"","sources":["apply-labeling-error.js"],"names":[],"mappings":"AAkCO,uHAwBN"} \ No newline at end of file diff --git a/packages/common/from-unique-entries.d.ts b/packages/common/from-unique-entries.d.ts new file mode 100644 index 0000000000..1cb83ca3ea --- /dev/null +++ b/packages/common/from-unique-entries.d.ts @@ -0,0 +1,2 @@ +export function fromUniqueEntries(allEntries: Iterable<[K, V]>): {}; +//# sourceMappingURL=from-unique-entries.d.ts.map \ No newline at end of file diff --git a/packages/common/from-unique-entries.d.ts.map b/packages/common/from-unique-entries.d.ts.map new file mode 100644 index 0000000000..547511628d --- /dev/null +++ b/packages/common/from-unique-entries.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"from-unique-entries.d.ts","sourceRoot":"","sources":["from-unique-entries.js"],"names":[],"mappings":"AAcO,0EAcN"} \ No newline at end of file diff --git a/packages/common/ident-checker.d.ts b/packages/common/ident-checker.d.ts new file mode 100644 index 0000000000..ee9dae79af --- /dev/null +++ b/packages/common/ident-checker.d.ts @@ -0,0 +1,49 @@ +/** + * @callback Checker + * Internal to a useful pattern for writing checking logic + * (a "checkFoo" function) that can be used to implement a predicate + * (an "isFoo" function) or a validator (an "assertFoo" function). + * + * * A predicate ideally only returns `true` or `false` and rarely throws. + * * A validator throws an informative diagnostic when the predicate + * would have returned `false`, and simply returns `undefined` normally + * when the predicate would have returned `true`. + * * The internal checking function that they share is parameterized by a + * `Checker` that determines how to proceed with a failure condition. + * Predicates pass in an identity function as checker. Validators + * pass in `assertChecker` which is a trivial wrapper around `assert`. + * + * See the various uses for good examples. + * @param {boolean} cond + * @param {import('ses').Details} [details] + * @returns {boolean} + */ +/** + * In the `assertFoo`/`isFoo`/`checkFoo` pattern, `checkFoo` has a `check` + * parameter of type `Checker`. `assertFoo` calls `checkFoo` passes + * `assertChecker` as the `check` argument. `isFoo` passes `identChecker` + * as the `check` argument. `identChecker` acts precisely like an + * identity function, but is typed as a `Checker` to indicate its + * intended use. + * + * @type {Checker} + */ +export const identChecker: Checker; +/** + * Internal to a useful pattern for writing checking logic + * (a "checkFoo" function) that can be used to implement a predicate + * (an "isFoo" function) or a validator (an "assertFoo" function). + * + * * A predicate ideally only returns `true` or `false` and rarely throws. + * * A validator throws an informative diagnostic when the predicate + * would have returned `false`, and simply returns `undefined` normally + * when the predicate would have returned `true`. + * * The internal checking function that they share is parameterized by a + * `Checker` that determines how to proceed with a failure condition. + * Predicates pass in an identity function as checker. Validators + * pass in `assertChecker` which is a trivial wrapper around `assert`. + * + * See the various uses for good examples. + */ +export type Checker = (cond: boolean, details?: import("ses").Details | undefined) => boolean; +//# sourceMappingURL=ident-checker.d.ts.map \ No newline at end of file diff --git a/packages/common/ident-checker.d.ts.map b/packages/common/ident-checker.d.ts.map new file mode 100644 index 0000000000..00b88d9193 --- /dev/null +++ b/packages/common/ident-checker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ident-checker.d.ts","sourceRoot":"","sources":["ident-checker.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;GASG;AACH,2BAFU,OAAO,CAEoC;;;;;;;;;;;;;;;;;6BAf1C,OAAO,kDAEL,OAAO"} \ No newline at end of file diff --git a/packages/common/list-difference.d.ts b/packages/common/list-difference.d.ts new file mode 100644 index 0000000000..0655b042f5 --- /dev/null +++ b/packages/common/list-difference.d.ts @@ -0,0 +1,2 @@ +export function listDifference(leftList: V[], rightList: V[]): V[]; +//# sourceMappingURL=list-difference.d.ts.map \ No newline at end of file diff --git a/packages/common/list-difference.d.ts.map b/packages/common/list-difference.d.ts.map new file mode 100644 index 0000000000..2c594c0fee --- /dev/null +++ b/packages/common/list-difference.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"list-difference.d.ts","sourceRoot":"","sources":["list-difference.js"],"names":[],"mappings":"AAcO,sFAGN"} \ No newline at end of file diff --git a/packages/common/make-array-iterator.d.ts b/packages/common/make-array-iterator.d.ts new file mode 100644 index 0000000000..e78720f768 --- /dev/null +++ b/packages/common/make-array-iterator.d.ts @@ -0,0 +1,2 @@ +export function makeArrayIterator(arr: T[]): IterableIterator; +//# sourceMappingURL=make-array-iterator.d.ts.map \ No newline at end of file diff --git a/packages/common/make-array-iterator.d.ts.map b/packages/common/make-array-iterator.d.ts.map new file mode 100644 index 0000000000..8105a16040 --- /dev/null +++ b/packages/common/make-array-iterator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"make-array-iterator.d.ts","sourceRoot":"","sources":["make-array-iterator.js"],"names":[],"mappings":"AASO,8EAcN"} \ No newline at end of file diff --git a/packages/common/make-iterator.d.ts b/packages/common/make-iterator.d.ts new file mode 100644 index 0000000000..63042f8f11 --- /dev/null +++ b/packages/common/make-iterator.d.ts @@ -0,0 +1,2 @@ +export function makeIterator(next: () => IteratorResult): IterableIterator; +//# sourceMappingURL=make-iterator.d.ts.map \ No newline at end of file diff --git a/packages/common/make-iterator.d.ts.map b/packages/common/make-iterator.d.ts.map new file mode 100644 index 0000000000..37fd37f0fd --- /dev/null +++ b/packages/common/make-iterator.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"make-iterator.d.ts","sourceRoot":"","sources":["make-iterator.js"],"names":[],"mappings":"AAOO,mGAMN"} \ No newline at end of file diff --git a/packages/common/object-map.d.ts b/packages/common/object-map.d.ts new file mode 100644 index 0000000000..417bbadd27 --- /dev/null +++ b/packages/common/object-map.d.ts @@ -0,0 +1,2 @@ +export function objectMap, R>(original: O, mapFn: (value: O[keyof O], key: keyof O) => R): Record; +//# sourceMappingURL=object-map.d.ts.map \ No newline at end of file diff --git a/packages/common/object-map.d.ts.map b/packages/common/object-map.d.ts.map new file mode 100644 index 0000000000..66d462aa51 --- /dev/null +++ b/packages/common/object-map.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"object-map.d.ts","sourceRoot":"","sources":["object-map.js"],"names":[],"mappings":"AAyCO,4IAMN"} \ No newline at end of file diff --git a/packages/common/object-meta-assign.d.ts b/packages/common/object-meta-assign.d.ts new file mode 100644 index 0000000000..1cfdef6244 --- /dev/null +++ b/packages/common/object-meta-assign.d.ts @@ -0,0 +1,2 @@ +export function objectMetaAssign(target: any, ...originals: any[]): any; +//# sourceMappingURL=object-meta-assign.d.ts.map \ No newline at end of file diff --git a/packages/common/object-meta-assign.d.ts.map b/packages/common/object-meta-assign.d.ts.map new file mode 100644 index 0000000000..9d59453466 --- /dev/null +++ b/packages/common/object-meta-assign.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"object-meta-assign.d.ts","sourceRoot":"","sources":["object-meta-assign.js"],"names":[],"mappings":"AAmBO,yCAJI,GAAG,gBACH,GAAG,EAAE,GACH,GAAG,CAOf"} \ No newline at end of file diff --git a/packages/common/object-meta-map.d.ts b/packages/common/object-meta-map.d.ts new file mode 100644 index 0000000000..25cfadcd60 --- /dev/null +++ b/packages/common/object-meta-map.d.ts @@ -0,0 +1,2 @@ +export function objectMetaMap>(original: O, metaMapFn: (desc: TypedPropertyDescriptor, key: keyof O) => (PropertyDescriptor | undefined), proto?: any): any; +//# sourceMappingURL=object-meta-map.d.ts.map \ No newline at end of file diff --git a/packages/common/object-meta-map.d.ts.map b/packages/common/object-meta-map.d.ts.map new file mode 100644 index 0000000000..39fc38b5de --- /dev/null +++ b/packages/common/object-meta-map.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"object-meta-map.d.ts","sourceRoot":"","sources":["object-meta-map.js"],"names":[],"mappings":"AAkCO,uJAJC,CAAC,kBAAkB,GAAG,SAAS,CAAC,UAC7B,GAAG,GACD,GAAG,CAgBf"} \ No newline at end of file diff --git a/packages/common/throw-labeled.d.ts b/packages/common/throw-labeled.d.ts new file mode 100644 index 0000000000..c16786cbd7 --- /dev/null +++ b/packages/common/throw-labeled.d.ts @@ -0,0 +1,2 @@ +export function throwLabeled(innerErr: Error, label: string | number, errConstructor?: import("ses").GenericErrorConstructor | undefined, options?: import("ses").AssertMakeErrorOptions | undefined): never; +//# sourceMappingURL=throw-labeled.d.ts.map \ No newline at end of file diff --git a/packages/common/throw-labeled.d.ts.map b/packages/common/throw-labeled.d.ts.map new file mode 100644 index 0000000000..83ec63ea8d --- /dev/null +++ b/packages/common/throw-labeled.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"throw-labeled.d.ts","sourceRoot":"","sources":["throw-labeled.js"],"names":[],"mappings":"AAaO,uCANI,KAAK,SACL,MAAM,GAAC,MAAM,mIAGX,KAAK,CAkBjB"} \ No newline at end of file diff --git a/packages/compartment-mapper/archive.d.ts b/packages/compartment-mapper/archive.d.ts new file mode 100644 index 0000000000..9c11c57d4c --- /dev/null +++ b/packages/compartment-mapper/archive.d.ts @@ -0,0 +1,2 @@ +export { makeArchive, makeAndHashArchive, writeArchive, mapLocation, hashLocation } from "./src/archive.js"; +//# sourceMappingURL=archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/archive.d.ts.map b/packages/compartment-mapper/archive.d.ts.map new file mode 100644 index 0000000000..e96aadc011 --- /dev/null +++ b/packages/compartment-mapper/archive.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["archive.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/bundle.d.ts b/packages/compartment-mapper/bundle.d.ts new file mode 100644 index 0000000000..1ecb3f3e39 --- /dev/null +++ b/packages/compartment-mapper/bundle.d.ts @@ -0,0 +1,2 @@ +export { makeBundle, writeBundle } from "./src/bundle.js"; +//# sourceMappingURL=bundle.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/bundle.d.ts.map b/packages/compartment-mapper/bundle.d.ts.map new file mode 100644 index 0000000000..16d2acd499 --- /dev/null +++ b/packages/compartment-mapper/bundle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/import-archive.d.ts b/packages/compartment-mapper/import-archive.d.ts new file mode 100644 index 0000000000..c48a17cc67 --- /dev/null +++ b/packages/compartment-mapper/import-archive.d.ts @@ -0,0 +1,2 @@ +export { parseArchive, loadArchive, importArchive } from "./src/import-archive.js"; +//# sourceMappingURL=import-archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/import-archive.d.ts.map b/packages/compartment-mapper/import-archive.d.ts.map new file mode 100644 index 0000000000..bef9600442 --- /dev/null +++ b/packages/compartment-mapper/import-archive.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"import-archive.d.ts","sourceRoot":"","sources":["import-archive.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/import.d.ts b/packages/compartment-mapper/import.d.ts new file mode 100644 index 0000000000..c348aa9a0a --- /dev/null +++ b/packages/compartment-mapper/import.d.ts @@ -0,0 +1,2 @@ +export { loadLocation, importLocation } from "./src/import.js"; +//# sourceMappingURL=import.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/import.d.ts.map b/packages/compartment-mapper/import.d.ts.map new file mode 100644 index 0000000000..704ad5e085 --- /dev/null +++ b/packages/compartment-mapper/import.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["import.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/index.d.ts b/packages/compartment-mapper/index.d.ts new file mode 100644 index 0000000000..113cdfbf3c --- /dev/null +++ b/packages/compartment-mapper/index.d.ts @@ -0,0 +1,7 @@ +export { search } from "./src/search.js"; +export { compartmentMapForNodeModules } from "./src/node-modules.js"; +export { loadLocation, importLocation } from "./src/import.js"; +export { makeArchive, makeAndHashArchive, writeArchive, mapLocation, hashLocation } from "./src/archive.js"; +export { parseArchive, loadArchive, importArchive } from "./src/import-archive.js"; +export { makeBundle, writeBundle } from "./src/bundle.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/index.d.ts.map b/packages/compartment-mapper/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/compartment-mapper/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/node-powers.d.ts b/packages/compartment-mapper/node-powers.d.ts new file mode 100644 index 0000000000..439e8a12b6 --- /dev/null +++ b/packages/compartment-mapper/node-powers.d.ts @@ -0,0 +1,2 @@ +export { makeReadPowers, makeWritePowers, makeNodeReadPowers, makeNodeWritePowers } from "./src/node-powers.js"; +//# sourceMappingURL=node-powers.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/node-powers.d.ts.map b/packages/compartment-mapper/node-powers.d.ts.map new file mode 100644 index 0000000000..af8d64816f --- /dev/null +++ b/packages/compartment-mapper/node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-powers.d.ts","sourceRoot":"","sources":["node-powers.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/src/archive.d.ts b/packages/compartment-mapper/src/archive.d.ts new file mode 100644 index 0000000000..f5623fb039 --- /dev/null +++ b/packages/compartment-mapper/src/archive.d.ts @@ -0,0 +1,25 @@ +export function makeArchiveCompartmentMap(compartmentMap: CompartmentMapDescriptor, sources: Sources): { + archiveCompartmentMap: CompartmentMapDescriptor; + archiveSources: Sources; +}; +export function makeAndHashArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise<{ + bytes: Uint8Array; + sha512?: string | undefined; +}>; +export function makeArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; +export function mapLocation(powers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; +export function hashLocation(powers: HashPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; +export function writeArchive(write: WriteFn, readPowers: ReadFn | ReadPowers, archiveLocation: string, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; +export type ArchiveOptions = import('./types.js').ArchiveOptions; +export type ArchiveWriter = import('./types.js').ArchiveWriter; +export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; +export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor; +export type ModuleDescriptor = import('./types.js').ModuleDescriptor; +export type ParserImplementation = import('./types.js').ParserImplementation; +export type ReadFn = import('./types.js').ReadFn; +export type CaptureSourceLocationHook = import('./types.js').CaptureSourceLocationHook; +export type ReadPowers = import('./types.js').ReadPowers; +export type HashPowers = import('./types.js').HashPowers; +export type Sources = import('./types.js').Sources; +export type WriteFn = import('./types.js').WriteFn; +//# sourceMappingURL=archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/archive.d.ts.map b/packages/compartment-mapper/src/archive.d.ts.map new file mode 100644 index 0000000000..0bdbde9961 --- /dev/null +++ b/packages/compartment-mapper/src/archive.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["archive.js"],"names":[],"mappings":"AA8PO,0DAJI,wBAAwB,WACxB,OAAO;2BACmB,wBAAwB;oBAAkB,OAAO;EAiCrF;AA4HM,2CALI,MAAM,GAAG,UAAU,kBACnB,MAAM;WAEY,UAAU;;GAetC;AAQM,oCALI,MAAM,GAAG,UAAU,kBACnB,MAAM,8DAEJ,QAAQ,UAAU,CAAC,CAK/B;AAQM,oCALI,MAAM,GAAG,UAAU,kBACnB,MAAM,8DAEJ,QAAQ,UAAU,CAAC,CAS/B;AAQM,qCALI,UAAU,kBACV,MAAM,8DAEJ,QAAQ,MAAM,CAAC,CAU3B;AASM,oCANI,OAAO,cACP,MAAM,GAAG,UAAU,mBACnB,MAAM,kBACN,MAAM,4EAYhB;6BA/da,OAAO,YAAY,EAAE,cAAc;4BACnC,OAAO,YAAY,EAAE,aAAa;oCAClC,OAAO,YAAY,EAAE,qBAAqB;uCAC1C,OAAO,YAAY,EAAE,wBAAwB;+BAC7C,OAAO,YAAY,EAAE,gBAAgB;mCACrC,OAAO,YAAY,EAAE,oBAAoB;qBACzC,OAAO,YAAY,EAAE,MAAM;wCAC3B,OAAO,YAAY,EAAE,yBAAyB;yBAC9C,OAAO,YAAY,EAAE,UAAU;yBAC/B,OAAO,YAAY,EAAE,UAAU;sBAC/B,OAAO,YAAY,EAAE,OAAO;sBAC5B,OAAO,YAAY,EAAE,OAAO"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-cjs.d.ts b/packages/compartment-mapper/src/bundle-cjs.d.ts new file mode 100644 index 0000000000..e9179f6e45 --- /dev/null +++ b/packages/compartment-mapper/src/bundle-cjs.d.ts @@ -0,0 +1,19 @@ +declare namespace _default { + export { runtime }; + export function getBundlerKit({ index, indexedImports, record: { cjsFunctor, exports: exportsList }, }: { + index: any; + indexedImports: any; + record: { + cjsFunctor: any; + exports?: {} | undefined; + }; + }): { + getFunctor: () => string; + getCells: () => string; + getReexportsWiring: () => string; + getFunctorCall: () => string; + }; +} +export default _default; +declare const runtime: string; +//# sourceMappingURL=bundle-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-cjs.d.ts.map b/packages/compartment-mapper/src/bundle-cjs.d.ts.map new file mode 100644 index 0000000000..5aeea508fe --- /dev/null +++ b/packages/compartment-mapper/src/bundle-cjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle-cjs.d.ts","sourceRoot":"","sources":["bundle-cjs.js"],"names":[],"mappings":";;IAuDE;;;;;;;;;;;;MAsBC;;;AA7DH,8BAmCa"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-mjs.d.ts b/packages/compartment-mapper/src/bundle-mjs.d.ts new file mode 100644 index 0000000000..b287df3414 --- /dev/null +++ b/packages/compartment-mapper/src/bundle-mjs.d.ts @@ -0,0 +1,22 @@ +export const runtime: "function observeImports(map, importName, importIndex) {\n for (const [name, observers] of map.get(importName)) {\n const cell = cells[importIndex][name];\n if (cell === undefined) {\n throw new ReferenceError(`Cannot import name ${name}`);\n }\n for (const observer of observers) {\n cell.observe(observer);\n }\n }\n}\n"; +declare namespace _default { + export { runtime }; + export function getBundlerKit({ index, indexedImports, record: { __syncModuleProgram__, __fixedExportMap__, __liveExportMap__, __reexportMap__, reexports, }, }: { + index: any; + indexedImports: any; + record: { + __syncModuleProgram__: any; + __fixedExportMap__?: {} | undefined; + __liveExportMap__?: {} | undefined; + __reexportMap__?: {} | undefined; + reexports: any; + }; + }): { + getFunctor: () => string; + getCells: () => string; + getReexportsWiring: () => any; + getFunctorCall: () => string; + }; +} +export default _default; +//# sourceMappingURL=bundle-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-mjs.d.ts.map b/packages/compartment-mapper/src/bundle-mjs.d.ts.map new file mode 100644 index 0000000000..b3a77eaff6 --- /dev/null +++ b/packages/compartment-mapper/src/bundle-mjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle-mjs.d.ts","sourceRoot":"","sources":["bundle-mjs.js"],"names":[],"mappings":"AAiCA,oXAYE;;;IAIA;;;;;;;;;;;;;;;MAqEC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle.d.ts b/packages/compartment-mapper/src/bundle.d.ts new file mode 100644 index 0000000000..5b737f8ea6 --- /dev/null +++ b/packages/compartment-mapper/src/bundle.d.ts @@ -0,0 +1,20 @@ +export function makeBundle(read: ReadFn, moduleLocation: string, options?: { + moduleTransforms?: import("./types.js").ModuleTransforms | undefined; + dev?: boolean | undefined; + tags?: Set | undefined; + commonDependencies?: object; + searchSuffixes?: string[] | undefined; + sourceMapHook?: import("./types.js").SourceMapHook | undefined; +} | undefined): Promise; +export function writeBundle(write: WriteFn, read: ReadFn, bundleLocation: string, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; +export type ResolveHook = import('ses').ResolveHook; +export type PrecompiledStaticModuleInterface = import('ses').PrecompiledStaticModuleInterface; +export type ParserImplementation = import('./types.js').ParserImplementation; +export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; +export type CompartmentSources = import('./types.js').CompartmentSources; +export type ReadFn = import('./types.js').ReadFn; +export type ModuleTransforms = import('./types.js').ModuleTransforms; +export type Sources = import('./types.js').Sources; +export type WriteFn = import('./types.js').WriteFn; +export type ArchiveOptions = import('./types.js').ArchiveOptions; +//# sourceMappingURL=bundle.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle.d.ts.map b/packages/compartment-mapper/src/bundle.d.ts.map new file mode 100644 index 0000000000..49e59888e0 --- /dev/null +++ b/packages/compartment-mapper/src/bundle.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":"AA4KO,iCAXI,MAAM,kBACN,MAAM;;;;yBAKN,MAAM;;;gBAGJ,QAAQ,MAAM,CAAC,CA8J3B;AASM,mCANI,OAAO,QACP,MAAM,kBACN,MAAM,kBACN,MAAM,4EAahB;0BAxVa,OAAO,KAAK,EAAE,WAAW;+CACzB,OAAO,KAAK,EAAE,gCAAgC;mCAC9C,OAAO,YAAY,EAAE,oBAAoB;oCACzC,OAAO,YAAY,EAAE,qBAAqB;iCAC1C,OAAO,YAAY,EAAE,kBAAkB;qBACvC,OAAO,YAAY,EAAE,MAAM;+BAC3B,OAAO,YAAY,EAAE,gBAAgB;sBACrC,OAAO,YAAY,EAAE,OAAO;sBAC5B,OAAO,YAAY,EAAE,OAAO;6BAC5B,OAAO,YAAY,EAAE,cAAc"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/compartment-map.d.ts b/packages/compartment-mapper/src/compartment-map.d.ts new file mode 100644 index 0000000000..757a2bbb68 --- /dev/null +++ b/packages/compartment-mapper/src/compartment-map.d.ts @@ -0,0 +1,5 @@ +/** @type {(a: string, b: string) => number} */ +export const stringCompare: (a: string, b: string) => number; +export function pathCompare(a: Array | undefined, b: Array | undefined): number; +export function assertCompartmentMap(allegedCompartmentMap: unknown, url?: string | undefined): asserts compartmentMap is import("./types.js").CompartmentMapDescriptor; +//# sourceMappingURL=compartment-map.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/compartment-map.d.ts.map b/packages/compartment-mapper/src/compartment-map.d.ts.map new file mode 100644 index 0000000000..cc49e343b0 --- /dev/null +++ b/packages/compartment-mapper/src/compartment-map.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"compartment-map.d.ts","sourceRoot":"","sources":["compartment-map.js"],"names":[],"mappings":"AAqBA,+CAA+C;AAE/C,gCAFe,MAAM,KAAK,MAAM,KAAK,MAAM,CAE2B;AAc/D,+BAHI,MAAM,MAAM,CAAC,GAAG,SAAS,KACzB,MAAM,MAAM,CAAC,GAAG,SAAS,UAqCnC;AAyaM,4DALI,OAAO,qGA0BjB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/extension.d.ts b/packages/compartment-mapper/src/extension.d.ts new file mode 100644 index 0000000000..53e0f2e382 --- /dev/null +++ b/packages/compartment-mapper/src/extension.d.ts @@ -0,0 +1,2 @@ +export function parseExtension(location: string): string; +//# sourceMappingURL=extension.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/extension.d.ts.map b/packages/compartment-mapper/src/extension.d.ts.map new file mode 100644 index 0000000000..7ffa325209 --- /dev/null +++ b/packages/compartment-mapper/src/extension.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["extension.js"],"names":[],"mappings":"AAUO,yCAHI,MAAM,GACJ,MAAM,CAalB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-archive.d.ts b/packages/compartment-mapper/src/import-archive.d.ts new file mode 100644 index 0000000000..d60d26ad3b --- /dev/null +++ b/packages/compartment-mapper/src/import-archive.d.ts @@ -0,0 +1,13 @@ +export function parseArchive(archiveBytes: Uint8Array, archiveLocation?: string | undefined, options?: { + expectedSha512?: string | undefined; + computeSha512?: import("./types.js").HashFn | undefined; + modules?: Record | undefined; + importHook?: import("./types.js").ExitModuleImportHook | undefined; + Compartment?: typeof Compartment | undefined; + computeSourceLocation?: import("./types.js").ComputeSourceLocationHook | undefined; + computeSourceMapLocation?: import("./types.js").ComputeSourceMapLocationHook | undefined; +} | undefined): Promise; +export function loadArchive(readPowers: import('./types.js').ReadFn | import('./types.js').ReadPowers, archiveLocation: string, options?: import("./types.js").LoadArchiveOptions | undefined): Promise; +export function importArchive(readPowers: import('./types.js').ReadFn | import('./types.js').ReadPowers, archiveLocation: string, options: import('./types.js').ExecuteOptions & import('./types.js').LoadArchiveOptions): Promise; +export type CompartmentConstructor = typeof Compartment; +//# sourceMappingURL=import-archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-archive.d.ts.map b/packages/compartment-mapper/src/import-archive.d.ts.map new file mode 100644 index 0000000000..2e738e315d --- /dev/null +++ b/packages/compartment-mapper/src/import-archive.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"import-archive.d.ts","sourceRoot":"","sources":["import-archive.js"],"names":[],"mappings":"AA8PO,2CAZI,UAAU;;;;;;;;gBAUR,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAmJrD;AAQM,wCALI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,mBAC7D,MAAM,kEAEJ,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAsBrD;AAQM,0CALI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,mBAC7D,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,GAAG,OAAO,YAAY,EAAE,kBAAkB,GAC3E,QAAQ,MAAM,CAAC,CAK3B;qCAvMa,kBAAkB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-hook.d.ts b/packages/compartment-mapper/src/import-hook.d.ts new file mode 100644 index 0000000000..a5484fc1e5 --- /dev/null +++ b/packages/compartment-mapper/src/import-hook.d.ts @@ -0,0 +1,29 @@ +export function exitModuleImportHookMaker({ modules, exitModuleImportHook, }: { + modules?: Record | undefined; + exitModuleImportHook?: ExitModuleImportHook | undefined; +}): ExitModuleImportHook | undefined; +export function makeImportHookMaker(readPowers: ReadFn | ReadPowers, baseLocation: string, { sources, compartmentDescriptors, archiveOnly, computeSha512, searchSuffixes, sourceMapHook, entryCompartmentName, entryModuleSpecifier, exitModuleImportHook, }: { + sources?: import("./types.js").Sources | undefined; + compartmentDescriptors?: Record | undefined; + archiveOnly?: boolean | undefined; + computeSha512?: import("./types.js").HashFn | undefined; + searchSuffixes?: string[] | undefined; + entryCompartmentName: string; + entryModuleSpecifier: string; + exitModuleImportHook?: import("./types.js").ExitModuleImportHook | undefined; + sourceMapHook?: import("./types.js").SourceMapHook | undefined; +}): ImportHookMaker; +export type ImportHook = import('ses').ImportHook; +export type StaticModuleType = import('ses').StaticModuleType; +export type RedirectStaticModuleInterface = import('ses').RedirectStaticModuleInterface; +export type ThirdPartyStaticModuleInterface = import('ses').ThirdPartyStaticModuleInterface; +export type ReadFn = import('./types.js').ReadFn; +export type ReadPowers = import('./types.js').ReadPowers; +export type HashFn = import('./types.js').HashFn; +export type Sources = import('./types.js').Sources; +export type CompartmentSources = import('./types.js').CompartmentSources; +export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; +export type ImportHookMaker = import('./types.js').ImportHookMaker; +export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider; +export type ExitModuleImportHook = import('./types.js').ExitModuleImportHook; +//# sourceMappingURL=import-hook.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-hook.d.ts.map b/packages/compartment-mapper/src/import-hook.d.ts.map new file mode 100644 index 0000000000..397147c483 --- /dev/null +++ b/packages/compartment-mapper/src/import-hook.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"import-hook.d.ts","sourceRoot":"","sources":["import-hook.js"],"names":[],"mappings":"AAuEO;IAJiC,OAAO,GAApC,OAAO,MAAM,EAAE,GAAG,CAAC;IACW,oBAAoB,GAAlD,oBAAoB;IAClB,oBAAoB,GAAC,SAAS,CA0B1C;AAuBM,gDApBI,MAAM,GAAC,UAAU,gBACjB,MAAM;IAEY,OAAO;IACuB,sBAAsB;IACpD,WAAW;IACZ,aAAa;IACN,cAAc;IAOtB,oBAAoB,EAApC,MAAM;IACU,oBAAoB,EAApC,MAAM;IACyB,oBAAoB;IACN,aAAa;IACxD,eAAe,CAqR3B;yBAvYa,OAAO,KAAK,EAAE,UAAU;+BACxB,OAAO,KAAK,EAAE,gBAAgB;4CAC9B,OAAO,KAAK,EAAE,6BAA6B;8CAC3C,OAAO,KAAK,EAAE,+BAA+B;qBAC7C,OAAO,YAAY,EAAE,MAAM;yBAC3B,OAAO,YAAY,EAAE,UAAU;qBAC/B,OAAO,YAAY,EAAE,MAAM;sBAC3B,OAAO,YAAY,EAAE,OAAO;iCAC5B,OAAO,YAAY,EAAE,kBAAkB;oCACvC,OAAO,YAAY,EAAE,qBAAqB;8BAC1C,OAAO,YAAY,EAAE,eAAe;0CACpC,OAAO,YAAY,EAAE,2BAA2B;mCAChD,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/import.d.ts b/packages/compartment-mapper/src/import.d.ts new file mode 100644 index 0000000000..1f4042ad1a --- /dev/null +++ b/packages/compartment-mapper/src/import.d.ts @@ -0,0 +1,12 @@ +/** @type {Record} */ +export const parserForLanguage: Record; +export function loadLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; +export function importLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: (import("./types.js").ExecuteOptions & import("./types.js").ArchiveOptions) | undefined): Promise; +export type Application = import('./types.js').Application; +export type ArchiveOptions = import('./types.js').ArchiveOptions; +export type ExecuteFn = import('./types.js').ExecuteFn; +export type ExecuteOptions = import('./types.js').ExecuteOptions; +export type ParserImplementation = import('./types.js').ParserImplementation; +export type ReadFn = import('./types.js').ReadFn; +export type ReadPowers = import('./types.js').ReadPowers; +//# sourceMappingURL=import.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/import.d.ts.map b/packages/compartment-mapper/src/import.d.ts.map new file mode 100644 index 0000000000..66adfc50a4 --- /dev/null +++ b/packages/compartment-mapper/src/import.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["import.js"],"names":[],"mappings":"AA0BA,mDAAmD;AACnD,gCADW,OAAO,MAAM,EAAE,oBAAoB,CAAC,CAO7C;AAQK,yCALI,MAAM,GAAG,UAAU,kBACnB,MAAM,8DAEJ,QAAQ,WAAW,CAAC,CAwEhC;AASM,2CANI,MAAM,GAAG,UAAU,kBACnB,MAAM,sGAEJ,QAAQ,OAAO,YAAY,EAAE,UAAU,CAAC,CAUpD;0BA5Ha,OAAO,YAAY,EAAE,WAAW;6BAChC,OAAO,YAAY,EAAE,cAAc;wBACnC,OAAO,YAAY,EAAE,SAAS;6BAC9B,OAAO,YAAY,EAAE,cAAc;mCACnC,OAAO,YAAY,EAAE,oBAAoB;qBACzC,OAAO,YAAY,EAAE,MAAM;yBAC3B,OAAO,YAAY,EAAE,UAAU"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/infer-exports.d.ts b/packages/compartment-mapper/src/infer-exports.d.ts new file mode 100644 index 0000000000..b8182c0d7d --- /dev/null +++ b/packages/compartment-mapper/src/infer-exports.d.ts @@ -0,0 +1,9 @@ +export function inferExportsEntries({ main, module, exports }: { + main: string; + module?: string | undefined; + exports?: object; +}, tags: Set, types: Record): Generator; +export function inferExports(descriptor: object, tags: Set, types: Record): Record; +export function inferExportsAndAliases(descriptor: any, externalAliases: any, internalAliases: any, tags: any, types: any): void; +export type Language = import('./types.js').Language; +//# sourceMappingURL=infer-exports.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/infer-exports.d.ts.map b/packages/compartment-mapper/src/infer-exports.d.ts.map new file mode 100644 index 0000000000..742e7cf19f --- /dev/null +++ b/packages/compartment-mapper/src/infer-exports.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"infer-exports.d.ts","sourceRoot":"","sources":["infer-exports.js"],"names":[],"mappings":"AA6GO;IAT8B,IAAI,EAA9B,MAAM;IACqB,MAAM;IACN,OAAO,GAAlC,MAAM;SACN,IAAI,MAAM,CAAC,SAEX,OAAO,MAAM,EAAE,QAAQ,CAAC,kCA2BlC;AAkBM,yCAPI,MAAM,QACN,IAAI,MAAM,CAAC,SAEX,OAAO,MAAM,EAAE,QAAQ,CAAC,GAEtB,OAAO,MAAM,EAAE,MAAM,CAAC,CAGwB;AAEpD,iIA2CN;uBAlMa,OAAO,YAAY,EAAE,QAAQ"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/json.d.ts b/packages/compartment-mapper/src/json.d.ts new file mode 100644 index 0000000000..cc71f9914d --- /dev/null +++ b/packages/compartment-mapper/src/json.d.ts @@ -0,0 +1,2 @@ +export function parseLocatedJson(source: string, location: string): any; +//# sourceMappingURL=json.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/json.d.ts.map b/packages/compartment-mapper/src/json.d.ts.map new file mode 100644 index 0000000000..1867c833d6 --- /dev/null +++ b/packages/compartment-mapper/src/json.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["json.js"],"names":[],"mappings":"AASO,yCAHI,MAAM,YACN,MAAM,OAWhB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/link.d.ts b/packages/compartment-mapper/src/link.d.ts new file mode 100644 index 0000000000..a925ab72ae --- /dev/null +++ b/packages/compartment-mapper/src/link.d.ts @@ -0,0 +1,22 @@ +export function mapParsers(languageForExtension: Record, languageForModuleSpecifier: Record, parserForLanguage: Record, moduleTransforms?: ModuleTransforms): ParseFn; +export function link({ entry, compartments: compartmentDescriptors }: CompartmentMapDescriptor, { resolve, makeImportHook, parserForLanguage, globals, transforms, moduleTransforms, __shimTransforms__, archiveOnly, Compartment, }: LinkOptions): { + compartment: Compartment; + compartments: Record; + attenuatorsCompartment: Compartment; + pendingJobsPromise: Promise; +}; +export function assemble(compartmentMap: CompartmentMapDescriptor, options: LinkOptions): Compartment; +export type ModuleMapHook = import('ses').ModuleMapHook; +export type ResolveHook = import('ses').ResolveHook; +export type ParseFn = import('./types.js').ParseFn; +export type ParserImplementation = import('./types.js').ParserImplementation; +export type ShouldDeferError = import('./types.js').ShouldDeferError; +export type ModuleTransforms = import('./types.js').ModuleTransforms; +export type Language = import('./types.js').Language; +export type ModuleDescriptor = import('./types.js').ModuleDescriptor; +export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; +export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor; +export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider; +export type LinkOptions = import('./types.js').LinkOptions; +export type ERef = import('@endo/eventual-send').ERef; +//# sourceMappingURL=link.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/link.d.ts.map b/packages/compartment-mapper/src/link.d.ts.map new file mode 100644 index 0000000000..c56b4dc267 --- /dev/null +++ b/packages/compartment-mapper/src/link.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AA+IO,iDAPI,OAAO,MAAM,EAAE,QAAQ,CAAC,8BACxB,OAAO,MAAM,EAAE,MAAM,CAAC,qBAEtB,OAAO,MAAM,EAAE,oBAAoB,CAAC,qBACpC,gBAAgB,GACd,OAAO,CA0BnB;AAmKM,sEAHI,wBAAwB,wIACxB,WAAW;;;;;EA0IrB;AAMM,yCAHI,wBAAwB,WACxB,WAAW,eAGqB;4BAvd7B,OAAO,KAAK,EAAE,aAAa;0BAC3B,OAAO,KAAK,EAAE,WAAW;sBACzB,OAAO,YAAY,EAAE,OAAO;mCAC5B,OAAO,YAAY,EAAE,oBAAoB;+BACzC,OAAO,YAAY,EAAE,gBAAgB;+BACrC,OAAO,YAAY,EAAE,gBAAgB;uBACrC,OAAO,YAAY,EAAE,QAAQ;+BAC7B,OAAO,YAAY,EAAE,gBAAgB;oCACrC,OAAO,YAAY,EAAE,qBAAqB;uCAC1C,OAAO,YAAY,EAAE,wBAAwB;0CAC7C,OAAO,YAAY,EAAE,2BAA2B;0BAChD,OAAO,YAAY,EAAE,WAAW;wBACpB,OAAO,qBAAqB,EAAE,IAAI,CAAC,GAAC,CAAC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-module-specifier.d.ts b/packages/compartment-mapper/src/node-module-specifier.d.ts new file mode 100644 index 0000000000..77dfd65a4e --- /dev/null +++ b/packages/compartment-mapper/src/node-module-specifier.d.ts @@ -0,0 +1,4 @@ +export function resolve(spec: string, referrer: string): string; +export function join(base: string, spec: string): string; +export function relativize(spec: string): string; +//# sourceMappingURL=node-module-specifier.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-module-specifier.d.ts.map b/packages/compartment-mapper/src/node-module-specifier.d.ts.map new file mode 100644 index 0000000000..7854fb6062 --- /dev/null +++ b/packages/compartment-mapper/src/node-module-specifier.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-module-specifier.d.ts","sourceRoot":"","sources":["node-module-specifier.js"],"names":[],"mappings":"AAoDO,8BAJI,MAAM,YACN,MAAM,GACJ,MAAM,CAiClB;AAeM,2BAJI,MAAM,QACN,MAAM,GACJ,MAAM,CA6BlB;AAaM,iCALI,MAAM,GAEJ,MAAM,CAclB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-modules.d.ts b/packages/compartment-mapper/src/node-modules.d.ts new file mode 100644 index 0000000000..06d8319335 --- /dev/null +++ b/packages/compartment-mapper/src/node-modules.d.ts @@ -0,0 +1,52 @@ +export function compartmentMapForNodeModules(readPowers: ReadFn | ReadPowers | MaybeReadPowers, packageLocation: string, tags: Set, packageDescriptor: object, moduleSpecifier: string, options?: { + dev?: boolean | undefined; + commonDependencies?: object; + policy?: object; +} | undefined): Promise; +export type Language = import('./types.js').Language; +export type ReadFn = import('./types.js').ReadFn; +export type MaybeReadFn = import('./types.js').MaybeReadFn; +export type CanonicalFn = import('./types.js').CanonicalFn; +export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor; +export type ModuleDescriptor = import('./types.js').ModuleDescriptor; +export type ScopeDescriptor = import('./types.js').ScopeDescriptor; +export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; +export type ReadPowers = import('./types.js').ReadPowers; +export type MaybeReadPowers = import('./types.js').MaybeReadPowers; +/** + * The graph is an intermediate object model that the functions of this module + * build by exploring the `node_modules` tree dropped by tools like npm and + * consumed by tools like Node.js. + * This gets translated finally into a compartment map. + */ +export type Graph = Record; +export type Node = { + label: string; + name: string; + path: Array; + logicalPath: Array; + explicitExports: boolean; + internalAliases: Record; + externalAliases: Record; + /** + * - from module name to + * location in storage. + */ + dependencyLocations: Record; + /** + * - the parser for + * modules based on their extension. + */ + parsers: Record; + /** + * - the parser for specific + * modules. + */ + types: Record; +}; +export type CommonDependencyDescriptors = Record; +export type ReadDescriptorFn = (packageLocation: string) => Promise; +//# sourceMappingURL=node-modules.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-modules.d.ts.map b/packages/compartment-mapper/src/node-modules.d.ts.map new file mode 100644 index 0000000000..0f34f46e4b --- /dev/null +++ b/packages/compartment-mapper/src/node-modules.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-modules.d.ts","sourceRoot":"","sources":["node-modules.js"],"names":[],"mappings":"AAwsBO,yDAXI,MAAM,GAAG,UAAU,GAAG,eAAe,mBACrC,MAAM,QACN,IAAI,MAAM,CAAC,qBACX,MAAM,mBACN,MAAM;;yBAGN,MAAM;aACN,MAAM;gBACJ,QAAQ,wBAAwB,CAAC,CA+C7C;uBAlvBa,OAAO,YAAY,EAAE,QAAQ;qBAC7B,OAAO,YAAY,EAAE,MAAM;0BAC3B,OAAO,YAAY,EAAE,WAAW;0BAChC,OAAO,YAAY,EAAE,WAAW;uCAChC,OAAO,YAAY,EAAE,wBAAwB;+BAC7C,OAAO,YAAY,EAAE,gBAAgB;8BACrC,OAAO,YAAY,EAAE,eAAe;oCACpC,OAAO,YAAY,EAAE,qBAAqB;yBAC1C,OAAO,YAAY,EAAE,UAAU;8BAC/B,OAAO,YAAY,EAAE,eAAe;;;;;;;oBAQrC,OAAO,MAAM,EAAE,IAAI,CAAC;;WAKnB,MAAM;UACN,MAAM;UACN,MAAM,MAAM,CAAC;iBACb,MAAM,MAAM,CAAC;qBACb,OAAO;qBACP,OAAO,MAAM,EAAE,MAAM,CAAC;qBACtB,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;yBACtB,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;aAEtB,OAAO,MAAM,EAAE,QAAQ,CAAC;;;;;WAExB,OAAO,MAAM,EAAE,QAAQ,CAAC;;0CAKzB,OAAO,MAAM,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;iDA+E/C,MAAM,KACJ,QAAQ,MAAM,CAAC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-powers.d.ts b/packages/compartment-mapper/src/node-powers.d.ts new file mode 100644 index 0000000000..7dc22af42a --- /dev/null +++ b/packages/compartment-mapper/src/node-powers.d.ts @@ -0,0 +1,46 @@ +/// +/// +/** + * The implementation of `makeReadPowers` and the deprecated + * `makeNodeReadPowers` handles the case when the `url` power is not provided, + * but `makeReadPowers` presents a type that requires `url`. + * + * @param {object} args + * @param {typeof import('fs')} args.fs + * @param {typeof import('url')} [args.url] + * @param {typeof import('crypto')} [args.crypto] + */ +export function makeReadPowers({ fs, url, crypto }: { + fs: typeof import('fs'); + url?: typeof import("url") | undefined; + crypto?: typeof import("crypto") | undefined; +}): { + read: (location: string) => Promise; + maybeRead: (location: string) => Promise; + fileURLToPath: (location: string) => string; + pathToFileURL: ((path: string) => string) | typeof import("url").pathToFileURL; + canonical: (location: string) => Promise; + computeSha512: import("./types.js").HashFn | undefined; + requireResolve: (from: any, specifier: any, options: any) => string; +}; +/** + * The implementation of `makeWritePowers` and the deprecated + * `makeNodeWritePowers` handles the case when the `url` power is not provided, + * but `makeWritePowers` presents a type that requires `url`. + * + * @param {object} args + * @param {typeof import('fs')} args.fs + * @param {typeof import('url')} [args.url] + */ +export function makeWritePowers({ fs, url }: { + fs: typeof import('fs'); + url?: typeof import("url") | undefined; +}): { + write: (location: string, data: Uint8Array) => Promise; +}; +export function makeNodeReadPowers(fs: typeof import('fs'), crypto?: typeof import("crypto") | undefined): ReadPowers; +export function makeNodeWritePowers(fs: typeof import('fs')): WritePowers; +export type ReadPowers = import('./types.js').ReadPowers; +export type HashFn = import('./types.js').HashFn; +export type WritePowers = import('./types.js').WritePowers; +//# sourceMappingURL=node-powers.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-powers.d.ts.map b/packages/compartment-mapper/src/node-powers.d.ts.map new file mode 100644 index 0000000000..7c26f0ce72 --- /dev/null +++ b/packages/compartment-mapper/src/node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-powers.d.ts","sourceRoot":"","sources":["node-powers.js"],"names":[],"mappings":";;AA0BA;;;;;;;;;GASG;AACH;IAJqC,EAAE,EAA5B,cAAc,IAAI,CAAC;IACS,GAAG;IACA,MAAM;;qBAWnC,MAAM;0BAqBN,MAAM;8BAzDR,MAAM;2BAWN,MAAM;0BA2EJ,MAAM;;;EAoClB;AAED;;;;;;;;GAQG;AACH;IAHqC,EAAE,EAA5B,cAAc,IAAI,CAAC;IACS,GAAG;;sBAO7B,MAAM,QACN,UAAU;EAWtB;AA0BM,uCAJI,cAAc,IAAI,CAAC,iDAEjB,UAAU,CAItB;AAUM,wCAHI,cAAc,IAAI,CAAC,GACjB,WAAW,CAIvB;yBArMa,OAAO,YAAY,EAAE,UAAU;qBAC/B,OAAO,YAAY,EAAE,MAAM;0BAC3B,OAAO,YAAY,EAAE,WAAW"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-cjs.d.ts b/packages/compartment-mapper/src/parse-archive-cjs.d.ts new file mode 100644 index 0000000000..1da6be4bf5 --- /dev/null +++ b/packages/compartment-mapper/src/parse-archive-cjs.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseArchiveCjs: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-archive-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-cjs.d.ts.map b/packages/compartment-mapper/src/parse-archive-cjs.d.ts.map new file mode 100644 index 0000000000..b011cfc878 --- /dev/null +++ b/packages/compartment-mapper/src/parse-archive-cjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-archive-cjs.d.ts","sourceRoot":"","sources":["parse-archive-cjs.js"],"names":[],"mappings":"AAaA,2CAA2C;AAC3C,8BADW,OAAO,YAAY,EAAE,OAAO,CA6CrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-mjs.d.ts b/packages/compartment-mapper/src/parse-archive-mjs.d.ts new file mode 100644 index 0000000000..68dd240c8a --- /dev/null +++ b/packages/compartment-mapper/src/parse-archive-mjs.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseArchiveMjs: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-archive-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-mjs.d.ts.map b/packages/compartment-mapper/src/parse-archive-mjs.d.ts.map new file mode 100644 index 0000000000..fc062abb08 --- /dev/null +++ b/packages/compartment-mapper/src/parse-archive-mjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-archive-mjs.d.ts","sourceRoot":"","sources":["parse-archive-mjs.js"],"names":[],"mappings":"AAOA,2CAA2C;AAC3C,8BADW,OAAO,YAAY,EAAE,OAAO,CAqBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-bytes.d.ts b/packages/compartment-mapper/src/parse-bytes.d.ts new file mode 100644 index 0000000000..5b38e25fca --- /dev/null +++ b/packages/compartment-mapper/src/parse-bytes.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseBytes: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-bytes.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-bytes.d.ts.map b/packages/compartment-mapper/src/parse-bytes.d.ts.map new file mode 100644 index 0000000000..6df17873f5 --- /dev/null +++ b/packages/compartment-mapper/src/parse-bytes.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-bytes.d.ts","sourceRoot":"","sources":["parse-bytes.js"],"names":[],"mappings":"AAUA,2CAA2C;AAC3C,yBADW,OAAO,YAAY,EAAE,OAAO,CA+BrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts b/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts new file mode 100644 index 0000000000..c20477be18 --- /dev/null +++ b/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts @@ -0,0 +1,21 @@ +export function getModulePaths(readPowers: ReadPowers | ReadFn | undefined, location: string): { + filename: string | null; + dirname: string | null; +}; +export function wrap({ moduleEnvironmentRecord, compartment, resolvedImports, location, readPowers, }: { + moduleEnvironmentRecord: object; + compartment: Compartment; + resolvedImports: Record; + location: string; + readPowers: ReadFn | ReadPowers | undefined; +}): { + module: { + exports: any; + }; + moduleExports: any; + afterExecute: Function; + require: Function; +}; +export type ReadFn = import('./types.js').ReadFn; +export type ReadPowers = import('./types.js').ReadPowers; +//# sourceMappingURL=parse-cjs-shared-export-wrapper.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map b/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map new file mode 100644 index 0000000000..0e5d043d9f --- /dev/null +++ b/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-cjs-shared-export-wrapper.d.ts","sourceRoot":"","sources":["parse-cjs-shared-export-wrapper.js"],"names":[],"mappings":"AA8BO,2CAPI,UAAU,GAAG,MAAM,GAAG,SAAS,YAC/B,MAAM,GACJ;IACZ,QAAY,EAAC,MAAM,GAAC,IAAI,CAAC;IACzB,OAAW,EAAE,MAAM,GAAC,IAAI,CAAA;CACrB,CAgCH;AAmBM;IAZe,uBAAuB,EAAlC,MAAM;IACU,WAAW,EAA3B,WAAW;IACgB,eAAe,EAA1C,OAAO,MAAM,EAAE,MAAM,CAAC;IACX,QAAQ,EAAnB,MAAM;IAC8B,UAAU,EAA9C,MAAM,GAAG,UAAU,GAAG,SAAS;;;iBAElB,GAAG;;mBACP,GAAG;;;EA+GtB;qBAvLa,OAAO,YAAY,EAAE,MAAM;yBAC3B,OAAO,YAAY,EAAE,UAAU"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs.d.ts b/packages/compartment-mapper/src/parse-cjs.d.ts new file mode 100644 index 0000000000..3af902ce9c --- /dev/null +++ b/packages/compartment-mapper/src/parse-cjs.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseCjs: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs.d.ts.map b/packages/compartment-mapper/src/parse-cjs.d.ts.map new file mode 100644 index 0000000000..d8404a2e67 --- /dev/null +++ b/packages/compartment-mapper/src/parse-cjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-cjs.d.ts","sourceRoot":"","sources":["parse-cjs.js"],"names":[],"mappings":"AASA,2CAA2C;AAC3C,uBADW,OAAO,YAAY,EAAE,OAAO,CAkDrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-json.d.ts b/packages/compartment-mapper/src/parse-json.d.ts new file mode 100644 index 0000000000..a81b23f080 --- /dev/null +++ b/packages/compartment-mapper/src/parse-json.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseJson: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-json.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-json.d.ts.map b/packages/compartment-mapper/src/parse-json.d.ts.map new file mode 100644 index 0000000000..09069ed764 --- /dev/null +++ b/packages/compartment-mapper/src/parse-json.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-json.d.ts","sourceRoot":"","sources":["parse-json.js"],"names":[],"mappings":"AAcA,2CAA2C;AAC3C,wBADW,OAAO,YAAY,EAAE,OAAO,CAyBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-mjs.d.ts b/packages/compartment-mapper/src/parse-mjs.d.ts new file mode 100644 index 0000000000..a0971e334c --- /dev/null +++ b/packages/compartment-mapper/src/parse-mjs.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseMjs: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-mjs.d.ts.map b/packages/compartment-mapper/src/parse-mjs.d.ts.map new file mode 100644 index 0000000000..bb12976c81 --- /dev/null +++ b/packages/compartment-mapper/src/parse-mjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-mjs.d.ts","sourceRoot":"","sources":["parse-mjs.js"],"names":[],"mappings":"AAMA,2CAA2C;AAC3C,uBADW,OAAO,YAAY,EAAE,OAAO,CAqBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-cjs.d.ts b/packages/compartment-mapper/src/parse-pre-cjs.d.ts new file mode 100644 index 0000000000..a0f39c3cf3 --- /dev/null +++ b/packages/compartment-mapper/src/parse-pre-cjs.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parsePreCjs: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-pre-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-cjs.d.ts.map b/packages/compartment-mapper/src/parse-pre-cjs.d.ts.map new file mode 100644 index 0000000000..e0f231b997 --- /dev/null +++ b/packages/compartment-mapper/src/parse-pre-cjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-pre-cjs.d.ts","sourceRoot":"","sources":["parse-pre-cjs.js"],"names":[],"mappings":"AAOA,2CAA2C;AAC3C,0BADW,OAAO,YAAY,EAAE,OAAO,CA+CrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-mjs.d.ts b/packages/compartment-mapper/src/parse-pre-mjs.d.ts new file mode 100644 index 0000000000..a4d27c2bcb --- /dev/null +++ b/packages/compartment-mapper/src/parse-pre-mjs.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parsePreMjs: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-pre-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-mjs.d.ts.map b/packages/compartment-mapper/src/parse-pre-mjs.d.ts.map new file mode 100644 index 0000000000..b84fd8e506 --- /dev/null +++ b/packages/compartment-mapper/src/parse-pre-mjs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-pre-mjs.d.ts","sourceRoot":"","sources":["parse-pre-mjs.js"],"names":[],"mappings":"AAMA,2CAA2C;AAC3C,0BADW,OAAO,YAAY,EAAE,OAAO,CAsBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-text.d.ts b/packages/compartment-mapper/src/parse-text.d.ts new file mode 100644 index 0000000000..042df9a016 --- /dev/null +++ b/packages/compartment-mapper/src/parse-text.d.ts @@ -0,0 +1,5 @@ +/** @type {import('./types.js').ParseFn} */ +export const parseText: import('./types.js').ParseFn; +declare const _default: import('./types.js').ParserImplementation; +export default _default; +//# sourceMappingURL=parse-text.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-text.d.ts.map b/packages/compartment-mapper/src/parse-text.d.ts.map new file mode 100644 index 0000000000..a0da2db8d3 --- /dev/null +++ b/packages/compartment-mapper/src/parse-text.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["parse-text.js"],"names":[],"mappings":"AAYA,2CAA2C;AAC3C,wBADW,OAAO,YAAY,EAAE,OAAO,CA4BrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy-format.d.ts b/packages/compartment-mapper/src/policy-format.d.ts new file mode 100644 index 0000000000..67d2f4f72e --- /dev/null +++ b/packages/compartment-mapper/src/policy-format.d.ts @@ -0,0 +1,7 @@ +export function policyLookupHelper(packagePolicy: import('./types.js').PackagePolicy, field: 'builtins' | 'globals' | 'packages', itemName: string): boolean | import('./types.js').AttenuationDefinition; +export function isAllowingEverything(policyValue: unknown): policyValue is "any"; +export function isAttenuationDefinition(allegedDefinition: unknown): allegedDefinition is import("./types.js").AttenuationDefinition; +export function getAttenuatorFromDefinition(attenuationDefinition: import('./types.js').AttenuationDefinition): import('./types.js').UnifiedAttenuationDefinition; +export function assertPackagePolicy(allegedPackagePolicy: unknown, path: string, url?: string | undefined): asserts allegedPackagePolicy is import("./types.js").PackagePolicy | undefined; +export function assertPolicy(allegedPolicy: unknown): asserts allegedPolicy is import("./types.js").Policy | undefined; +//# sourceMappingURL=policy-format.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy-format.d.ts.map b/packages/compartment-mapper/src/policy-format.d.ts.map new file mode 100644 index 0000000000..fe819a0197 --- /dev/null +++ b/packages/compartment-mapper/src/policy-format.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"policy-format.d.ts","sourceRoot":"","sources":["policy-format.js"],"names":[],"mappings":"AAsBO,kDALI,OAAO,YAAY,EAAE,aAAa,SAClC,UAAU,GAAC,SAAS,GAAC,UAAU,YAC/B,MAAM,GACJ,OAAO,GAAG,OAAO,YAAY,EAAE,qBAAqB,CAyBhE;AAQM,kDAHI,OAAO,wBAIqB;AAOhC,2DAHI,OAAO,mEAUjB;AAOM,mEAHI,OAAO,YAAY,EAAE,qBAAqB,GACxC,OAAO,YAAY,EAAE,4BAA4B,CAuB7D;AA0CM,0DALI,OAAO,QACP,MAAM,8HA4DhB;AAUM,4CAHI,OAAO,sFAiCjB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy.d.ts b/packages/compartment-mapper/src/policy.d.ts new file mode 100644 index 0000000000..832163548b --- /dev/null +++ b/packages/compartment-mapper/src/policy.d.ts @@ -0,0 +1,42 @@ +/** + * Const string to identify the internal attenuators compartment + */ +export const ATTENUATORS_COMPARTMENT: ""; +export function detectAttenuators(policy?: import("./types.js").Policy | undefined): Array; +export function dependencyAllowedByPolicy(namingKit: import('./types.js').PackageNamingKit, packagePolicy: import('./types.js').PackagePolicy): boolean; +/** + * Returns the policy applicable to the canonicalName of the package + * + * @overload + * @param {import('./types.js').PackageNamingKit} namingKit - a key in the policy resources spec is derived from these + * @param {import('./types.js').Policy} policy - user supplied policy + * @returns {import('./types.js').PackagePolicy} packagePolicy if policy was specified + */ +export function getPolicyForPackage(namingKit: import('./types.js').PackageNamingKit, policy?: import('./types.js').Policy): import('./types.js').PackagePolicy; +/** + * Returns `undefined` + * + * @overload + * @param {import('./types.js').PackageNamingKit} namingKit - a key in the policy resources spec is derived from these + * @param {import('./types.js').Policy} [policy] - user supplied policy + * @returns {import('./types.js').PackagePolicy|undefined} packagePolicy if policy was specified + */ +export function getPolicyForPackage(namingKit: import('./types.js').PackageNamingKit, policy?: import("./types.js").Policy | undefined): import('./types.js').PackagePolicy | undefined; +export function makeDeferredAttenuatorsProvider(compartments: Record, compartmentDescriptors: Record): import('./types.js').DeferredAttenuatorsProvider; +export function attenuateGlobals(globalThis: object, globals: object, packagePolicy: import('./types.js').PackagePolicy, attenuators: import('./types.js').DeferredAttenuatorsProvider, pendingJobs: Array>, name?: string): void; +export function enforceModulePolicy(specifier: string, compartmentDescriptor: import('./types.js').CompartmentDescriptor, { exit, errorHint }?: EnforceModulePolicyOptions | undefined): void; +export function attenuateModuleHook(specifier: string, originalModuleRecord: import('ses').ThirdPartyStaticModuleInterface, policy: import('./types.js').PackagePolicy, attenuators: import('./types.js').DeferredAttenuatorsProvider): Promise; +/** + * Options for {@link enforceModulePolicy } + */ +export type EnforceModulePolicyOptions = { + /** + * - Whether it is an exit module + */ + exit?: boolean | undefined; + /** + * - Error hint message + */ + errorHint?: string | undefined; +}; +//# sourceMappingURL=policy.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy.d.ts.map b/packages/compartment-mapper/src/policy.d.ts.map new file mode 100644 index 0000000000..c6aede445b --- /dev/null +++ b/packages/compartment-mapper/src/policy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["policy.js"],"names":[],"mappings":"AAYA;;GAEG;AACH,sDAAuD;AAkDhD,uGAFM,MAAM,MAAM,CAAC,CAezB;AA0BM,qDAJI,OAAO,YAAY,EAAE,gBAAgB,iBACrC,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,CASnB;;;;;;;;;AAKE,+CACQ,OAAO,YAAY,EAAE,gBAAgB,WACrC,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,YAAY,EAAE,aAAa,CAC9C;;;;;;;;;AAKE,+CACQ,OAAO,YAAY,EAAE,gBAAgB,uEAEnC,OAAO,YAAY,EAAE,aAAa,GAAC,SAAS,CACxD;AAkFM,8DAJI,OAAO,MAAM,EAAE,WAAW,CAAC,0BAC3B,OAAO,MAAM,EAAE,OAAO,YAAY,EAAE,qBAAqB,CAAC,GACxD,OAAO,YAAY,EAAE,2BAA2B,CA2C5D;AAoDM,6CARI,MAAM,WACN,MAAM,iBACN,OAAO,YAAY,EAAE,aAAa,eAClC,OAAO,YAAY,EAAE,2BAA2B,eAChD,mBAAc,SACd,MAAM,GACJ,IAAI,CAgDhB;AA2BM,+CAJI,MAAM,yBACN,OAAO,YAAY,EAAE,qBAAqB,sEAiCpD;AAgDM,+CANI,MAAM,wBACN,OAAO,KAAK,EAAE,+BAA+B,UAC7C,OAAO,YAAY,EAAE,aAAa,eAClC,OAAO,YAAY,EAAE,2BAA2B,GAC9C,QAAQ,OAAO,KAAK,EAAE,+BAA+B,CAAC,CAyBlE"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/powers.d.ts b/packages/compartment-mapper/src/powers.d.ts new file mode 100644 index 0000000000..f7d589e029 --- /dev/null +++ b/packages/compartment-mapper/src/powers.d.ts @@ -0,0 +1,2 @@ +export function unpackReadPowers(powers: import('./types.js').ReadFn | import('./types.js').ReadPowers | import('./types.js').MaybeReadPowers): import('./types.js').MaybeReadPowers; +//# sourceMappingURL=powers.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/powers.d.ts.map b/packages/compartment-mapper/src/powers.d.ts.map new file mode 100644 index 0000000000..b833a555dc --- /dev/null +++ b/packages/compartment-mapper/src/powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"powers.d.ts","sourceRoot":"","sources":["powers.js"],"names":[],"mappings":"AASO,yCAHI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,GAAG,OAAO,YAAY,EAAE,eAAe,GAClG,OAAO,YAAY,EAAE,eAAe,CAkChD"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/search.d.ts b/packages/compartment-mapper/src/search.d.ts new file mode 100644 index 0000000000..40274f3542 --- /dev/null +++ b/packages/compartment-mapper/src/search.d.ts @@ -0,0 +1,14 @@ +export function searchDescriptor(location: string, readDescriptor: (location: string) => Promise): Promise<{ + data: T; + directory: string; + location: string; + packageDescriptorLocation: string; +}>; +export function search(read: ReadFn, moduleLocation: string): Promise<{ + packageLocation: string; + packageDescriptorLocation: string; + packageDescriptorText: string; + moduleSpecifier: string; +}>; +export type ReadFn = import('./types.js').ReadFn; +//# sourceMappingURL=search.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/search.d.ts.map b/packages/compartment-mapper/src/search.d.ts.map new file mode 100644 index 0000000000..a6702db470 --- /dev/null +++ b/packages/compartment-mapper/src/search.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.js"],"names":[],"mappings":"AA8BO,8CAJI,MAAM,6BACI,MAAM;;eACc,MAAM;cAAW,MAAM;+BAA6B,MAAM;GA2BlG;AAqCM,6BATI,MAAM,kBACN,MAAM;qBAEK,MAAM;+BACI,MAAM;2BACV,MAAM;qBACZ,MAAM;GAqB3B;qBA5Ga,OAAO,YAAY,EAAE,MAAM"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/types.d.ts b/packages/compartment-mapper/src/types.d.ts new file mode 100644 index 0000000000..aa37688132 --- /dev/null +++ b/packages/compartment-mapper/src/types.d.ts @@ -0,0 +1,359 @@ +export type FinalStaticModuleType = import('ses').FinalStaticModuleType; +export type ThirdPartyStaticModuleInterface = import('ses').ThirdPartyStaticModuleInterface; +export type ImportHook = import('ses').ImportHook; +export type StaticModuleType = import('ses').StaticModuleType; +export type Transform = import('ses').Transform; +/** + * A compartment map describes how to construct an application as a graph of + * Compartments, each corresponding to Node.js style packaged modules. + */ +export type CompartmentMapDescriptor = { + tags: Array; + entry: EntryDescriptor; + compartments: Record; +}; +/** + * The entry descriptor of a compartment map denotes the root module of an + * application and the compartment that contains it. + */ +export type EntryDescriptor = { + compartment: string; + module: string; +}; +/** + * A compartment descriptor corresponds to a single Compartment + * of an assembled Application and describes how to construct + * one for a given library or application package.json. + */ +export type CompartmentDescriptor = { + label: string; + /** + * - shortest path of dependency names to this + * compartment + */ + path?: string[] | undefined; + /** + * - the name of the originating package suitable for + * constructing a sourceURL prefix that will match it to files in a developer + * workspace. + */ + name: string; + location: string; + /** + * - whether this compartment was retained by + * any module in the solution. This property should never appear in an archived + * compartment map. + */ + retained?: boolean | undefined; + modules: Record; + scopes: Record; + /** + * - language for extension + */ + parsers: Record; + /** + * - language for module specifier + */ + types: Record; + /** + * - policy specific to compartment + */ + policy: object; +}; +/** + * For every module explicitly mentioned in an `exports` field of a + * package.json, there is a corresponding module descriptor. + */ +export type ModuleDescriptor = { + compartment?: string | undefined; + module?: string | undefined; + location?: string | undefined; + parser?: Language | undefined; + /** + * in base 16, hex + */ + sha512?: string | undefined; + exit?: string | undefined; + deferredError?: string | undefined; +}; +/** + * Scope descriptors link all names under a prefix to modules in another + * compartment, like a wildcard. + * These are employed to link any module not explicitly mentioned + * in a package.json file, when that package.json file does not have + * an explicit `exports` map. + */ +export type ScopeDescriptor = { + compartment: string; + module?: string | undefined; +}; +export type Language = 'mjs' | 'cjs' | 'json' | 'bytes' | 'text' | 'pre-mjs-json' | 'pre-cjs-json'; +export type ArchiveWriter = { + write: WriteFn; + snapshot: SnapshotFn; +}; +export type WriteFn = (location: string, bytes: Uint8Array) => Promise; +export type ArchiveReader = { + read: ReadFn; +}; +export type ReadFn = (location: string) => Promise; +/** + * A resolution of `undefined` indicates `ENOENT` or the equivalent. + */ +export type MaybeReadFn = (location: string) => Promise; +/** + * Returns a canonical URL for a given URL, following redirects or symbolic + * links if any exist along the path. + * Must return the given logical location if the real location does not exist. + */ +export type CanonicalFn = (location: string) => Promise; +export type HashFn = (bytes: string | Uint8Array) => string; +export type Application = { + import: ExecuteFn; + sha512?: string | undefined; +}; +export type ExecuteFn = (options?: ExecuteOptions | undefined) => Promise; +export type SnapshotFn = () => Promise; +export type ReadPowers = { + read: ReadFn; + canonical: CanonicalFn; + computeSha512?: HashFn | undefined; + fileURLToPath?: Function | undefined; + pathToFileURL?: Function | undefined; + requireResolve?: Function | undefined; +}; +export type MaybeReadPowers = ReadPowers | object; +export type HashPowers = { + read: ReadFn; + canonical: CanonicalFn; + computeSha512: HashFn; +}; +export type WritePowers = { + write: WriteFn; +}; +export type ResolveHook = (importSpecifier: string, referrerSpecifier: string) => string; +export type ShouldDeferError = (language: Language | undefined) => boolean; +export type ImportHookMakerOptions = { + packageLocation: string; + packageName: string; + attenuators: DeferredAttenuatorsProvider; + parse: ParseFn; + shouldDeferError: ShouldDeferError; + compartments: Record; +}; +export type ImportHookMaker = (options: ImportHookMakerOptions) => ImportHook; +export type SourceMapHookDetails = { + compartment: string; + module: string; + location: string; + sha512: string; +}; +export type SourceMapHook = (sourceMap: string, details: SourceMapHookDetails) => any; +export type ComputeSourceMapLocationDetails = { + compartment: string; + module: string; + location: string; + sha512: string; +}; +export type ComputeSourceMapLocationHook = (details: ComputeSourceMapLocationDetails) => string; +export type ParseFn = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: { + sourceMap?: string | undefined; + sourceMapHook?: SourceMapHook | undefined; + sourceMapUrl?: string | undefined; + readPowers?: ReadFn | ReadPowers | undefined; +} | undefined) => Promise<{ + bytes: Uint8Array; + parser: Language; + record: FinalStaticModuleType; + sourceMap?: string; +}>; +/** + * ParserImplementation declares if a heuristic is used by parser to detect + * imports - is set to true for cjs, which uses a lexer to find require calls + */ +export type ParserImplementation = { + heuristicImports: boolean; + parse: ParseFn; +}; +export type ComputeSourceLocationHook = (compartmentName: string, moduleSpecifier: string) => string | undefined; +export type ExitModuleImportHook = (specifier: string) => Promise; +export type LoadArchiveOptions = { + expectedSha512?: string | undefined; + modules?: Record | undefined; + Compartment?: typeof Compartment | undefined; + computeSourceLocation?: ComputeSourceLocationHook | undefined; + computeSourceMapLocation?: ComputeSourceMapLocationHook | undefined; +}; +export type ExecuteOptions = { + globals?: object; + transforms?: import("ses").Transform[] | undefined; + __shimTransforms__?: import("ses").Transform[] | undefined; + modules?: Record | undefined; + importHook?: ExitModuleImportHook | undefined; + attenuations?: Record | undefined; + Compartment?: typeof Compartment | undefined; +}; +export type ParserForLanguage = Record; +export type ExtraLinkOptions = { + resolve?: ResolveHook | undefined; + makeImportHook: ImportHookMaker; + parserForLanguage: ParserForLanguage; + moduleTransforms?: ModuleTransforms | undefined; + archiveOnly?: boolean | undefined; +}; +export type LinkOptions = ExecuteOptions & ExtraLinkOptions; +export type ModuleTransforms = Record; +export type ModuleTransform = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: { + sourceMap?: string | undefined; +} | undefined) => Promise<{ + bytes: Uint8Array; + parser: Language; + sourceMap?: string; +}>; +export type Sources = Record; +export type CompartmentSources = Record; +export type ModuleSource = { + /** + * - module loading error deferred to later stage + */ + deferredError?: string | undefined; + /** + * - package relative location + */ + location?: string | undefined; + /** + * - fully qualified location + */ + sourceLocation?: string | undefined; + bytes?: Uint8Array | undefined; + /** + * in base16, hex + */ + sha512?: string | undefined; + parser?: Language | undefined; + exit?: string | undefined; + record?: import("ses").StaticModuleType | undefined; +}; +export type Artifact = { + bytes: Uint8Array; + parser: Language; +}; +export type CaptureSourceLocationHook = (compartmentName: string, moduleSpecifier: string, sourceLocation: string) => any; +export type ArchiveOptions = { + moduleTransforms?: ModuleTransforms | undefined; + modules?: Record | undefined; + dev?: boolean | undefined; + policy?: object; + tags?: Set | undefined; + captureSourceLocation?: CaptureSourceLocationHook | undefined; + importHook?: ExitModuleImportHook | undefined; + searchSuffixes?: string[] | undefined; + commonDependencies?: Record | undefined; + sourceMapHook?: SourceMapHook | undefined; +}; +export type PackageNamingKit = { + /** + * - true if location is the entry compartment + */ + isEntry?: boolean | undefined; + name: string; + path: Array; +}; +/** + * An object representing a full attenuation definition. + */ +export type FullAttenuationDefinition = { + /** + * - The type of attenuation. + */ + attenuate: string; + /** + * - The parameters for the attenuation. + */ + params: ImplicitAttenuationDefinition; +}; +/** + * An array of any type representing an implicit attenuation definition. + */ +export type ImplicitAttenuationDefinition = [any, ...any[]]; +/** + * A type representing an attenuation definition, which can be either a full or implicit definition. + */ +export type AttenuationDefinition = FullAttenuationDefinition | [any, ...any[]]; +export type UnifiedAttenuationDefinition = { + displayName: string; + specifier: string | null; + params?: any[] | undefined; +}; +export type Attenuator = { + attenuateGlobals?: GlobalAttenuatorFn | undefined; + attenuateModule?: ModuleAttenuatorFn | undefined; +}; +export type GlobalAttenuatorFn = (params: Params, originalObject: Record, globalThis: Record) => void; +export type ModuleAttenuatorFn = (params: Params, ns: T) => U; +export type DeferredAttenuatorsProvider = { + import: (attenuatorSpecifier: string | null) => Promise; +}; +/** + * A type representing a wildcard policy, which can be 'any'. + */ +export type WildcardPolicy = 'any'; +/** + * A type representing a property policy, which is a record of string keys and boolean values. + */ +export type PropertyPolicy = Record; +/** + * A type representing a policy item, which can be a {@link WildcardPolicy wildcard policy}, a property policy, `undefined`, or defined by an attenuator + */ +export type PolicyItem = WildcardPolicy | PropertyPolicy | T; +/** + * An object representing a nested attenuation definition. + */ +export type NestedAttenuationDefinition = Record; +/** + * An object representing a base package policy. + */ +export type PackagePolicy = { + /** + * - The default attenuator. + */ + defaultAttenuator?: string | undefined; + /** + * - The policy item for packages. + */ + packages?: PolicyItem | undefined; + /** + * - The policy item or full attenuation definition for globals. + */ + globals?: AttenuationDefinition | PolicyItem | undefined; + /** + * - The policy item or nested attenuation definition for builtins. + */ + builtins?: NestedAttenuationDefinition | PolicyItem | undefined; + /** + * - Whether to disable global freeze. + */ + noGlobalFreeze?: boolean | undefined; +}; +/** + * An object representing a base policy. + */ +export type Policy = { + /** + * - The package policies for the resources. + */ + resources: Record>; + /** + * - The default attenuator. + */ + defaultAttenuator?: string | undefined; + /** + * - The package policy for the entry. + */ + entry?: PackagePolicy | undefined; +}; +/** + * Any object. All objects. Not `null`, though. + */ +export type SomeObject = Record; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/types.d.ts.map b/packages/compartment-mapper/src/types.d.ts.map new file mode 100644 index 0000000000..613457aaab --- /dev/null +++ b/packages/compartment-mapper/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"oCAKc,OAAO,KAAK,EAAE,qBAAqB;8CACnC,OAAO,KAAK,EAAE,+BAA+B;yBAC7C,OAAO,KAAK,EAAE,UAAU;+BACxB,OAAO,KAAK,EAAE,gBAAgB;wBAC9B,OAAO,KAAK,EAAE,SAAS;;;;;;UAWvB,MAAM,MAAM,CAAC;WACb,eAAe;kBACf,OAAO,MAAM,EAAE,qBAAqB,CAAC;;;;;;;iBAQrC,MAAM;YACN,MAAM;;;;;;;;WASN,MAAM;;;;;;;;;;;UAGN,MAAM;cAGN,MAAM;;;;;;;aAIN,OAAO,MAAM,EAAE,gBAAgB,CAAC;YAChC,OAAO,MAAM,EAAE,eAAe,CAAC;;;;aAC/B,OAAO,MAAM,EAAE,QAAQ,CAAC;;;;WACxB,OAAO,MAAM,EAAE,QAAQ,CAAC;;;;YACxB,MAAM;;;;;;;kBAQN,MAAM;;;;;;;;;;;;;;;;;;;iBAiBN,MAAM;;;uBAKP,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,cAAc,GAAG,cAAc;;WAS1E,OAAO;cACP,UAAU;;iCAKb,MAAM,SACN,UAAU,KACR,QAAQ,IAAI,CAAC;;UAKZ,MAAM;;gCAKT,MAAM,KACJ,QAAQ,UAAU,CAAC;;;;qCAOrB,MAAM,KACJ,QAAQ,UAAU,GAAG,SAAS,CAAC;;;;;;qCASjC,MAAM,KACJ,QAAQ,MAAM,CAAC;6BAKjB,MAAM,GAAG,UAAU,KACjB,MAAM;;YAKL,SAAS;;;kEAOV,QAAQ,UAAU,CAAC;+BAKnB,QAAQ,UAAU,CAAC;;UAKlB,MAAM;eACN,WAAW;;;;;;8BAQZ,UAAU,GAAG,MAAM;;UAMlB,MAAM;eACN,WAAW;mBACX,MAAM;;;WAKN,OAAO;;4CASV,MAAM,qBACN,MAAM,KACJ,MAAM;0CAKR,QAAQ,GAAG,SAAS,KAClB,OAAO;;qBAKN,MAAM;iBACN,MAAM;iBACN,2BAA2B;WAC3B,OAAO;sBACP,gBAAgB;kBAChB,OAAO,MAAM,EAAE,WAAW,CAAC;;wCAK9B,sBAAsB,KACpB,UAAU;;iBAKT,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;wCAKT,MAAM,WACN,oBAAoB;;iBAKjB,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;qDAKT,+BAA+B,KAC7B,MAAM;8BAKR,UAAU,aACV,MAAM,YACN,MAAM,mBACN,MAAM;;;;;kBAMJ,QAAQ;IACpB,KAAS,EAAE,UAAU,CAAC;IACtB,MAAU,EAAE,QAAQ,CAAC;IACrB,MAAU,EAAE,qBAAqB,CAAC;IAClC,SAAa,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;;;;;;sBAQS,OAAO;WACP,OAAO;;0DAKV,MAAM,mBACN,MAAM,KACJ,MAAM,GAAC,SAAS;+CAKlB,MAAM,KACJ,QAAQ,+BAA+B,GAAC,SAAS,CAAC;;;;;;;;;cAcjD,MAAM;;;;;;;;gCAUP,OAAO,MAAM,EAAE,oBAAoB,CAAC;;;oBAMnC,eAAe;uBACf,iBAAiB;;;;0BAMlB,cAAc,GAAG,gBAAgB;+BAIjC,OAAO,MAAM,EAAE,eAAe,CAAC;sCAKjC,UAAU,aACV,MAAM,YACN,MAAM,mBACN,MAAM;;kBAGJ,QAAQ;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;sBASlE,OAAO,MAAM,EAAE,kBAAkB,CAAC;iCAIlC,OAAO,MAAM,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;WAiB3B,UAAU;YACV,QAAQ;;0DAKX,MAAM,mBACN,MAAM,kBACN,MAAM;;;;;aAQH,MAAM;;;;;;;;;;;;;UAgBN,MAAM;UACN,MAAM,MAAM,CAAC;;;;;;;;;eAMb,MAAM;;;;;;;;;4CAMP,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;;;;oCAKf,yBAAyB,kBAAgC;;iBAKxD,MAAM;eACN,MAAM,GAAG,IAAI;;;;;;;4FAehB,MAAM,kBACN,OAAO,WAAW,EAAE,GAAG,CAAC,cACxB,OAAO,WAAW,EAAE,GAAG,CAAC,KACtB,IAAI;gHASN,MAAM,MACN,CAAC,KACC,CAAC;;kCAKsB,MAAM,GAAC,IAAI,KAAK,QAAQ,UAAU,CAAC;;;;;6BAK1D,KAAK;;;;6BAKL,OAAO,MAAM,EAAE,OAAO,CAAC;;;;mCAMvB,cAAc,GAAC,cAAc,GAAC,CAAC;;;;0CAK/B,OAAO,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAsB9C,OAAO,MAAM,EAAE,cAAc,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;yBAOxF,OAAO,WAAW,EAAE,GAAG,CAAC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/url.d.ts b/packages/compartment-mapper/src/url.d.ts new file mode 100644 index 0000000000..a8d30a1a11 --- /dev/null +++ b/packages/compartment-mapper/src/url.d.ts @@ -0,0 +1,2 @@ +export function relative(referrer: string, location: string): string; +//# sourceMappingURL=url.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/url.d.ts.map b/packages/compartment-mapper/src/url.d.ts.map new file mode 100644 index 0000000000..df33c46c45 --- /dev/null +++ b/packages/compartment-mapper/src/url.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["url.js"],"names":[],"mappings":"AA2BO,mCAJI,MAAM,YACN,MAAM,GACJ,MAAM,CAyDlB"} \ No newline at end of file diff --git a/packages/daemon/index.d.ts b/packages/daemon/index.d.ts new file mode 100644 index 0000000000..5dd49f3b4c --- /dev/null +++ b/packages/daemon/index.d.ts @@ -0,0 +1,40 @@ +export { makeEndoClient } from "./src/client.js"; +export function terminate(locator?: { + statePath: string; + ephemeralStatePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function start(locator?: { + statePath: string; + ephemeralStatePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function clean(locator?: { + statePath: string; + ephemeralStatePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function restart(locator?: { + statePath: string; + ephemeralStatePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function stop(locator?: { + statePath: string; + ephemeralStatePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function purge(locator?: { + statePath: string; + ephemeralStatePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export { makeRefReader, makeRefIterator } from "./src/ref-reader.js"; +export { makeReaderRef, makeIteratorRef } from "./src/reader-ref.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/daemon/index.d.ts.map b/packages/daemon/index.d.ts.map new file mode 100644 index 0000000000..a211ba9879 --- /dev/null +++ b/packages/daemon/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";AA0DO;;;;;kBAcN;AAEM;;;;;iBA8DN;AASM;;;;;kBAIN;AAEM;;;;;iBAIN;AAEM;;;;;kBAGN;AAEM;;;;;kBAwBN"} \ No newline at end of file diff --git a/packages/daemon/reader-ref.d.ts b/packages/daemon/reader-ref.d.ts new file mode 100644 index 0000000000..a8db169ffc --- /dev/null +++ b/packages/daemon/reader-ref.d.ts @@ -0,0 +1,2 @@ +export * from "./src/reader-ref.js"; +//# sourceMappingURL=reader-ref.d.ts.map \ No newline at end of file diff --git a/packages/daemon/reader-ref.d.ts.map b/packages/daemon/reader-ref.d.ts.map new file mode 100644 index 0000000000..cd9cf9f471 --- /dev/null +++ b/packages/daemon/reader-ref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader-ref.d.ts","sourceRoot":"","sources":["reader-ref.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/ref-reader.d.ts b/packages/daemon/ref-reader.d.ts new file mode 100644 index 0000000000..a54191c61a --- /dev/null +++ b/packages/daemon/ref-reader.d.ts @@ -0,0 +1,2 @@ +export * from "./src/ref-reader.js"; +//# sourceMappingURL=ref-reader.d.ts.map \ No newline at end of file diff --git a/packages/daemon/ref-reader.d.ts.map b/packages/daemon/ref-reader.d.ts.map new file mode 100644 index 0000000000..3ed96bbf99 --- /dev/null +++ b/packages/daemon/ref-reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ref-reader.d.ts","sourceRoot":"","sources":["ref-reader.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/client.d.ts b/packages/daemon/src/client.d.ts new file mode 100644 index 0000000000..68720a6e7f --- /dev/null +++ b/packages/daemon/src/client.d.ts @@ -0,0 +1,5 @@ +export function makeEndoClient(name: string, sockPath: string, cancelled: Promise, bootstrap?: TBootstrap | undefined): Promise<{ + getBootstrap: () => Promise; + closed: Promise; +}>; +//# sourceMappingURL=client.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/client.d.ts.map b/packages/daemon/src/client.d.ts.map new file mode 100644 index 0000000000..d5169c4029 --- /dev/null +++ b/packages/daemon/src/client.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["client.js"],"names":[],"mappings":"AAaO,iDALI,MAAM,YACN,MAAM,aACN,QAAQ,IAAI,CAAC;;;GA2BvB"} \ No newline at end of file diff --git a/packages/daemon/src/connection.d.ts b/packages/daemon/src/connection.d.ts new file mode 100644 index 0000000000..7b032c8123 --- /dev/null +++ b/packages/daemon/src/connection.d.ts @@ -0,0 +1,11 @@ +export function makeMessageCapTP(name: string, writer: import('@endo/stream').Stream, reader: import('@endo/stream').Stream, cancelled: Promise, bootstrap: TBootstrap): { + getBootstrap: () => Promise; + closed: Promise; +}; +export function messageToBytes(message: any): Uint8Array; +export function bytesToMessage(bytes: Uint8Array): any; +export function makeNetstringCapTP(name: string, bytesWriter: import('@endo/stream').Writer, bytesReader: import('@endo/stream').Reader, cancelled: Promise, bootstrap: TBootstrap): { + getBootstrap: () => Promise; + closed: Promise; +}; +//# sourceMappingURL=connection.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/connection.d.ts.map b/packages/daemon/src/connection.d.ts.map new file mode 100644 index 0000000000..481202787f --- /dev/null +++ b/packages/daemon/src/connection.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["connection.js"],"names":[],"mappings":"AAiBO,mDANI,MAAM,UACN,OAAO,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,UAC7D,OAAO,cAAc,EAAE,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,aACnE,QAAQ,IAAI,CAAC;;;EAgCvB;AAGM,wCADK,GAAG,cAMd;AAGM,sCADK,UAAU,OAMrB;AAUM,qDANI,MAAM,eACN,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,eACzC,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,aACzC,QAAQ,IAAI,CAAC;;;EAyBvB"} \ No newline at end of file diff --git a/packages/daemon/src/context.d.ts b/packages/daemon/src/context.d.ts new file mode 100644 index 0000000000..ed33fbf33d --- /dev/null +++ b/packages/daemon/src/context.d.ts @@ -0,0 +1,13 @@ +export function makeContextMaker({ controllerForId, provideController }: { + controllerForId: any; + provideController: any; +}): (id: string) => { + id: string; + cancel: (reason: Error, prefix?: string | undefined) => Promise; + cancelled: Promise; + disposed: Promise; + thatDiesIfThisDies: (dependentId: string) => void; + thisDiesIfThatDies: (dependencyId: string) => void; + onCancel: (hook: () => void) => void; +}; +//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/context.d.ts.map b/packages/daemon/src/context.d.ts.map new file mode 100644 index 0000000000..a750ea594c --- /dev/null +++ b/packages/daemon/src/context.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["context.js"],"names":[],"mappings":"AAIO;;;SAEM,MAAM;;qBAmBJ,KAAK;;;sCAuBL,MAAM;uCASN,MAAM;qBAQN,MAAM,IAAI;EAmBxB"} \ No newline at end of file diff --git a/packages/daemon/src/daemon-node-powers.d.ts b/packages/daemon/src/daemon-node-powers.d.ts new file mode 100644 index 0000000000..4ea8c82731 --- /dev/null +++ b/packages/daemon/src/daemon-node-powers.d.ts @@ -0,0 +1,38 @@ +export function makeSocketPowers({ net }: { + net: typeof import('net'); +}): import('./types.js').SocketPowers; +export function makeNetworkPowers({ net }: { + net: typeof import('net'); +}): import('./types.js').NetworkPowers; +export function makeFilePowers({ fs, path: fspath }: { + fs: any; + path: any; +}): { + makeFileReader: (path: string) => import("@endo/stream").Reader; + makeFileWriter: (path: string) => import('@endo/stream').Writer; + writeFileText: (path: string, text: string) => Promise; + readFileText: (path: string) => Promise; + maybeReadFileText: (path: string) => Promise; + readDirectory: (path: string) => Promise; + makePath: (path: string) => Promise; + joinPath: (...components: any[]) => any; + removePath: (path: string) => Promise; + renamePath: (source: any, target: any) => Promise; +}; +export function makeCryptoPowers(crypto: typeof import('crypto')): import('./types.js').CryptoPowers; +export function makeDaemonicPersistencePowers(filePowers: import('./types.js').FilePowers, cryptoPowers: import('./types.js').CryptoPowers, locator: import('./types.js').Locator, includeWebPageBundler?: boolean | undefined): import('./types.js').DaemonicPersistencePowers; +export function makeDaemonicControlPowers(locator: any, fileURLToPath: any, filePowers: any, fs: any, popen: any): { + makeWorker: (workerId: string, daemonWorkerFacet: import('./types.js').DaemonWorkerFacet, cancelled: Promise) => Promise<{ + workerTerminated: Promise; + workerDaemonFacet: PromiseLike; + }>; +}; +export function makeDaemonicPowers({ locator, fs, popen, url, filePowers, cryptoPowers, }: { + locator: import('./types.js').Locator; + fs: typeof import('fs'); + popen: typeof import('child_process'); + url: typeof import('url'); + filePowers: import('./types.js').FilePowers; + cryptoPowers: import('./types.js').CryptoPowers; +}): import('./types.js').DaemonicPowers; +//# sourceMappingURL=daemon-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/daemon-node-powers.d.ts.map b/packages/daemon/src/daemon-node-powers.d.ts.map new file mode 100644 index 0000000000..8fa7c8b9b1 --- /dev/null +++ b/packages/daemon/src/daemon-node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"daemon-node-powers.d.ts","sourceRoot":"","sources":["daemon-node-powers.js"],"names":[],"mappings":"AAqBO;IAHkC,GAAG,EAAjC,cAAc,KAAK,CAAC;IAClB,OAAO,YAAY,EAAE,YAAY,CA+F7C;AAOM;IAHkC,GAAG,EAAjC,cAAc,KAAK,CAAC;IAClB,OAAO,YAAY,EAAE,aAAa,CAyC9C;AAEM;;;;2BAIM,MAAM;2BAQN,MAAM,KACJ,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC;0BAQ3C,MAAM,QACN,MAAM;yBASN,MAAM;8BAON,MAAM;0BAcN,MAAM;qBAON,MAAM;;uBAON,MAAM;;EA4BlB;AAMM,yCAHI,cAAc,QAAQ,CAAC,GACrB,OAAO,YAAY,EAAE,YAAY,CA2B7C;AASM,0DANI,OAAO,YAAY,EAAE,UAAU,gBAC/B,OAAO,YAAY,EAAE,YAAY,WACjC,OAAO,YAAY,EAAE,OAAO,gDAE1B,OAAO,YAAY,EAAE,yBAAyB,CA2I1D;AAEM;2BAYM,MAAM,qBACN,OAAO,YAAY,EAAE,iBAAiB,aACtC,QAAQ,KAAK,CAAC;;;;EA6F1B;AAYM;IARuC,OAAO,EAA1C,OAAO,YAAY,EAAE,OAAO;IACF,EAAE,EAA5B,cAAc,IAAI,CAAC;IACkB,KAAK,EAA1C,cAAc,eAAe,CAAC;IACH,GAAG,EAA9B,cAAc,KAAK,CAAC;IACkB,UAAU,EAAhD,OAAO,YAAY,EAAE,UAAU;IACS,YAAY,EAApD,OAAO,YAAY,EAAE,YAAY;IAC/B,OAAO,YAAY,EAAE,cAAc,CAgC/C"} \ No newline at end of file diff --git a/packages/daemon/src/daemon-node.d.ts b/packages/daemon/src/daemon-node.d.ts new file mode 100644 index 0000000000..fd05f5eddb --- /dev/null +++ b/packages/daemon/src/daemon-node.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=daemon-node.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/daemon-node.d.ts.map b/packages/daemon/src/daemon-node.d.ts.map new file mode 100644 index 0000000000..c37030e6d7 --- /dev/null +++ b/packages/daemon/src/daemon-node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"daemon-node.d.ts","sourceRoot":"","sources":["daemon-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/daemon.d.ts b/packages/daemon/src/daemon.d.ts new file mode 100644 index 0000000000..73a71178d2 --- /dev/null +++ b/packages/daemon/src/daemon.d.ts @@ -0,0 +1,29 @@ +export function makeDaemon(powers: import('./types.js').DaemonicPowers, daemonLabel: string, cancel: (error: Error) => void, cancelled: Promise, specials?: import("./types.js").Specials | undefined): Promise<{ + endoBootstrap: import("@endo/eventual-send").DataOnly<{ + ping: () => Promise; + terminate: () => Promise; + host: () => Promise; + leastAuthority: () => Promise; + gateway: () => Promise; + reviveNetworks: () => Promise; + addPeerInfo: (peerInfo: import("./types.js").PeerInfo) => Promise; + }> & import("@endo/eventual-send").RemotableBrand Promise; + terminate: () => Promise; + host: () => Promise; + leastAuthority: () => Promise; + gateway: () => Promise; + reviveNetworks: () => Promise; + addPeerInfo: (peerInfo: import("./types.js").PeerInfo) => Promise; + }>, { + ping: () => Promise; + terminate: () => Promise; + host: () => Promise; + leastAuthority: () => Promise; + gateway: () => Promise; + reviveNetworks: () => Promise; + addPeerInfo: (peerInfo: import("./types.js").PeerInfo) => Promise; + }>; + cancelGracePeriod: (reason: any) => void; +}>; +//# sourceMappingURL=daemon.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/daemon.d.ts.map b/packages/daemon/src/daemon.d.ts.map new file mode 100644 index 0000000000..e626fdb131 --- /dev/null +++ b/packages/daemon/src/daemon.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["daemon.js"],"names":[],"mappings":"AAgqDO,mCANI,OAAO,YAAY,EAAE,cAAc,eACnC,MAAM,kBACE,KAAK,KAAK,IAAI,aACtB,QAAQ,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCxB"} \ No newline at end of file diff --git a/packages/daemon/src/deferred-tasks.d.ts b/packages/daemon/src/deferred-tasks.d.ts new file mode 100644 index 0000000000..f99771c731 --- /dev/null +++ b/packages/daemon/src/deferred-tasks.d.ts @@ -0,0 +1,2 @@ +export function makeDeferredTasks(): import('./types.js').DeferredTasks; +//# sourceMappingURL=deferred-tasks.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/deferred-tasks.d.ts.map b/packages/daemon/src/deferred-tasks.d.ts.map new file mode 100644 index 0000000000..d08d5e2dd7 --- /dev/null +++ b/packages/daemon/src/deferred-tasks.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deferred-tasks.d.ts","sourceRoot":"","sources":["deferred-tasks.js"],"names":[],"mappings":"AAGO,qCAFM,OAAO,YAAY,EAAE,aAAa,CAAC,GAAG,CAAC,CAcnD"} \ No newline at end of file diff --git a/packages/daemon/src/directory.d.ts b/packages/daemon/src/directory.d.ts new file mode 100644 index 0000000000..ac902ac951 --- /dev/null +++ b/packages/daemon/src/directory.d.ts @@ -0,0 +1,41 @@ +export function makeDirectoryMaker({ provide, getIdForRef, formulateDirectory, }: { + provide: import('./types.js').DaemonCore['provide']; + getIdForRef: import('./types.js').DaemonCore['getIdForRef']; + formulateDirectory: import('./types.js').DaemonCore['formulateDirectory']; +}): { + makeIdentifiedDirectory: ({ petStoreId, context }: { + petStoreId: string; + context: import('./types.js').Context; + }) => Promise<{ + external: { + followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + makeDirectory(petName: string): Promise; + has(...petNamePath: string[]): Promise; + identify(...petNamePath: string[]): Promise; + list(...petNamePath: string[]): Promise; + listIdentifiers(...petNamePath: string[]): Promise; + lookup(...petNamePath: string[]): Promise; + reverseLookup(value: unknown): string[]; + write(petNamePath: string[], id: any): Promise; + remove(...petNamePath: string[]): Promise; + move(fromPetName: string[], toPetName: string[]): Promise; + copy(fromPetName: string[], toPetName: string[]): Promise; + } & import("@endo/eventual-send").RemotableBrand<{}, { + followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + makeDirectory(petName: string): Promise; + has(...petNamePath: string[]): Promise; + identify(...petNamePath: string[]): Promise; + list(...petNamePath: string[]): Promise; + listIdentifiers(...petNamePath: string[]): Promise; + lookup(...petNamePath: string[]): Promise; + reverseLookup(value: unknown): string[]; + write(petNamePath: string[], id: any): Promise; + remove(...petNamePath: string[]): Promise; + move(fromPetName: string[], toPetName: string[]): Promise; + copy(fromPetName: string[], toPetName: string[]): Promise; + }>; + internal: {}; + }>; + makeDirectoryNode: import("./types.js").MakeDirectoryNode; +}; +//# sourceMappingURL=directory.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/directory.d.ts.map b/packages/daemon/src/directory.d.ts.map new file mode 100644 index 0000000000..063e27d301 --- /dev/null +++ b/packages/daemon/src/directory.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["directory.js"],"names":[],"mappings":"AAaO;IAJqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACW,WAAW,EAAhE,OAAO,YAAY,EAAE,UAAU,CAAC,aAAa,CAAC;IACc,kBAAkB,EAA9E,OAAO,YAAY,EAAE,UAAU,CAAC,oBAAoB,CAAC;;;QAuMtC,UAAU,EAAvB,MAAM;QAC6B,OAAO,EAA1C,OAAO,YAAY,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxC"} \ No newline at end of file diff --git a/packages/daemon/src/formula-identifier.d.ts b/packages/daemon/src/formula-identifier.d.ts new file mode 100644 index 0000000000..b014823fc7 --- /dev/null +++ b/packages/daemon/src/formula-identifier.d.ts @@ -0,0 +1,4 @@ +export function assertValidId(id: string, petName?: string | undefined): void; +export function parseId(id: string): import("./types").IdRecord; +export function formatId({ number, node }: import("./types").IdRecord): string; +//# sourceMappingURL=formula-identifier.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/formula-identifier.d.ts.map b/packages/daemon/src/formula-identifier.d.ts.map new file mode 100644 index 0000000000..a5d0d15d5b --- /dev/null +++ b/packages/daemon/src/formula-identifier.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"formula-identifier.d.ts","sourceRoot":"","sources":["formula-identifier.js"],"names":[],"mappings":"AAWO,kCAJI,MAAM,iCAEJ,IAAI,CAUhB;AAMM,4BAHI,MAAM,GACJ,OAAO,SAAS,EAAE,QAAQ,CAkBtC;AAMM,2CAHI,OAAO,SAAS,EAAE,QAAQ,GACxB,MAAM,CAMlB"} \ No newline at end of file diff --git a/packages/daemon/src/guest.d.ts b/packages/daemon/src/guest.d.ts new file mode 100644 index 0000000000..7a8de7e153 --- /dev/null +++ b/packages/daemon/src/guest.d.ts @@ -0,0 +1,56 @@ +export function makeGuestMaker({ provide, provideControllerAndResolveHandle, makeMailbox, makeDirectoryNode, }: { + provide: import('./types.js').DaemonCore['provide']; + provideControllerAndResolveHandle: import('./types.js').DaemonCore['provideControllerAndResolveHandle']; + makeMailbox: import('./types.js').MakeMailbox; + makeDirectoryNode: import('./types.js').MakeDirectoryNode; +}): (guestId: string, hostHandleId: string, petStoreId: string, mainWorkerId: string, context: import('./types.js').Context) => Promise<{ + external: { + followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + listMessages: () => Promise; + resolve: (messageNumber: number, resolutionName: string) => Promise; + reject: (messageNumber: number, message?: string | undefined) => Promise; + adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; + dismiss: (messageNumber: number) => Promise; + request: (recipientName: string, what: string, responseName: string) => Promise; + send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; + makeDirectory(petName: string): Promise; + has(...petNamePath: string[]): Promise; + identify(...petNamePath: string[]): Promise; + list(...petNamePath: string[]): Promise; + listIdentifiers(...petNamePath: string[]): Promise; + lookup(...petNamePath: string[]): Promise; + reverseLookup(value: unknown): string[]; + write(petNamePath: string[], id: any): Promise; + remove(...petNamePath: string[]): Promise; + move(fromPetName: string[], toPetName: string[]): Promise; + copy(fromPetName: string[], toPetName: string[]): Promise; + } & import("@endo/eventual-send").RemotableBrand<{}, { + followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + listMessages: () => Promise; + resolve: (messageNumber: number, resolutionName: string) => Promise; + reject: (messageNumber: number, message?: string | undefined) => Promise; + adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; + dismiss: (messageNumber: number) => Promise; + request: (recipientName: string, what: string, responseName: string) => Promise; + send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; + makeDirectory(petName: string): Promise; + has(...petNamePath: string[]): Promise; + identify(...petNamePath: string[]): Promise; + list(...petNamePath: string[]): Promise; + listIdentifiers(...petNamePath: string[]): Promise; + lookup(...petNamePath: string[]): Promise; + reverseLookup(value: unknown): string[]; + write(petNamePath: string[], id: any): Promise; + remove(...petNamePath: string[]): Promise; + move(fromPetName: string[], toPetName: string[]): Promise; + copy(fromPetName: string[], toPetName: string[]): Promise; + }>; + internal: { + receive: (senderId: string, strings: string[], edgeNames: string[], ids: string[], receiverId: string) => void; + respond: (what: string, responseName: string, senderId: string, senderPetStore: import("./types.js").PetStore, recipientId?: string | undefined) => Promise; + petStore: import("./types.js").PetStore; + }; +}>; +//# sourceMappingURL=guest.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/guest.d.ts.map b/packages/daemon/src/guest.d.ts.map new file mode 100644 index 0000000000..07e24662c3 --- /dev/null +++ b/packages/daemon/src/guest.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"guest.d.ts","sourceRoot":"","sources":["guest.js"],"names":[],"mappings":"AAaO;IALqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACiC,iCAAiC,EAA5G,OAAO,YAAY,EAAE,UAAU,CAAC,mCAAmC,CAAC;IAC7B,WAAW,EAAlD,OAAO,YAAY,EAAE,WAAW;IACa,iBAAiB,EAA9D,OAAO,YAAY,EAAE,iBAAiB;cASpC,MAAM,gBACN,MAAM,cACN,MAAM,gBACN,MAAM,WACN,OAAO,YAAY,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2GxC"} \ No newline at end of file diff --git a/packages/daemon/src/host.d.ts b/packages/daemon/src/host.d.ts new file mode 100644 index 0000000000..a8971897a7 --- /dev/null +++ b/packages/daemon/src/host.d.ts @@ -0,0 +1,92 @@ +export function makeHostMaker({ provide, provideController, cancelValue, formulateWorker, formulateHost, formulateGuest, formulateEval, formulateUnconfined, formulateBundle, formulateReadableBlob, getAllNetworkAddresses, makeMailbox, makeDirectoryNode, ownNodeIdentifier, }: { + provide: import('./types.js').DaemonCore['provide']; + provideController: import('./types.js').DaemonCore['provideController']; + cancelValue: import('./types.js').DaemonCore['cancelValue']; + formulateWorker: import('./types.js').DaemonCore['formulateWorker']; + formulateHost: import('./types.js').DaemonCore['formulateHost']; + formulateGuest: import('./types.js').DaemonCore['formulateGuest']; + formulateEval: import('./types.js').DaemonCore['formulateEval']; + formulateUnconfined: import('./types.js').DaemonCore['formulateUnconfined']; + formulateBundle: import('./types.js').DaemonCore['formulateBundle']; + formulateReadableBlob: import('./types.js').DaemonCore['formulateReadableBlob']; + getAllNetworkAddresses: import('./types.js').DaemonCore['getAllNetworkAddresses']; + makeMailbox: import('./types.js').MakeMailbox; + makeDirectoryNode: import('./types.js').MakeDirectoryNode; + ownNodeIdentifier: string; +}): (hostId: string, storeId: string, inspectorId: string, mainWorkerId: string, endoId: string, networksDirectoryId: string, leastAuthorityId: string, platformNames: { + [name: string]: string; +}, context: import('./types.js').Context) => Promise<{ + external: { + followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + listMessages: () => Promise; + resolve: (messageNumber: number, resolutionName: string) => Promise; + reject: (messageNumber: number, message?: string | undefined) => Promise; + adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; + dismiss: (messageNumber: number) => Promise; + request: (recipientName: string, what: string, responseName: string) => Promise; + send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; + store(readerRef: import("@endo/eventual-send").ERef>, petName: string): Promise; + provideGuest(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; + provideHost(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; + makeDirectory(petName: string): Promise; + /** @type {import('./types.js').EndoHost['cancel']} */ + provideWorker(petName: string): Promise; + evaluate(workerPetName: string | undefined, source: string, codeNames: string[], petNames: string[], resultName?: string | undefined): Promise; + makeUnconfined(workerName: string, specifier: string, powersName: string, resultName?: string | undefined): Promise; + makeBundle(workerPetName: string | undefined, bundleName: string, powersName: string, resultName?: string | undefined): Promise; + cancel(petName: string, reason: Error): Promise; + gateway(): Promise; + getPeerInfo(): Promise; + addPeerInfo(peerInfo: import("./types.js").PeerInfo): Promise; /** @type {import('./types.js').EndoHost['getPeerInfo']} */ + has(...petNamePath: string[]): Promise; + identify(...petNamePath: string[]): Promise; + list(...petNamePath: string[]): Promise; + listIdentifiers(...petNamePath: string[]): Promise; + lookup(...petNamePath: string[]): Promise; + reverseLookup(value: unknown): string[]; + write(petNamePath: string[], id: any): Promise; + remove(...petNamePath: string[]): Promise; + move(fromPetName: string[], toPetName: string[]): Promise; + copy(fromPetName: string[], toPetName: string[]): Promise; + } & import("@endo/eventual-send").RemotableBrand<{}, { + followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; + listMessages: () => Promise; + resolve: (messageNumber: number, resolutionName: string) => Promise; + reject: (messageNumber: number, message?: string | undefined) => Promise; + adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; + dismiss: (messageNumber: number) => Promise; + request: (recipientName: string, what: string, responseName: string) => Promise; + send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; + store(readerRef: import("@endo/eventual-send").ERef>, petName: string): Promise; + provideGuest(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; + provideHost(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; + makeDirectory(petName: string): Promise; + /** @type {import('./types.js').EndoHost['cancel']} */ + provideWorker(petName: string): Promise; + evaluate(workerPetName: string | undefined, source: string, codeNames: string[], petNames: string[], resultName?: string | undefined): Promise; + makeUnconfined(workerName: string, specifier: string, powersName: string, resultName?: string | undefined): Promise; + makeBundle(workerPetName: string | undefined, bundleName: string, powersName: string, resultName?: string | undefined): Promise; + cancel(petName: string, reason: Error): Promise; + gateway(): Promise; + getPeerInfo(): Promise; + addPeerInfo(peerInfo: import("./types.js").PeerInfo): Promise; /** @type {import('./types.js').EndoHost['getPeerInfo']} */ + has(...petNamePath: string[]): Promise; + identify(...petNamePath: string[]): Promise; + list(...petNamePath: string[]): Promise; + listIdentifiers(...petNamePath: string[]): Promise; + lookup(...petNamePath: string[]): Promise; + reverseLookup(value: unknown): string[]; + write(petNamePath: string[], id: any): Promise; + remove(...petNamePath: string[]): Promise; + move(fromPetName: string[], toPetName: string[]): Promise; + copy(fromPetName: string[], toPetName: string[]): Promise; + }>; + internal: { + receive: (senderId: string, strings: string[], edgeNames: string[], ids: string[], receiverId: string) => void; + respond: (what: string, responseName: string, senderId: string, senderPetStore: import("./types.js").PetStore, recipientId?: string | undefined) => Promise; + petStore: import("./types.js").PetStore; + }; +}>; +//# sourceMappingURL=host.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/host.d.ts.map b/packages/daemon/src/host.d.ts.map new file mode 100644 index 0000000000..17ebd641f3 --- /dev/null +++ b/packages/daemon/src/host.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["host.js"],"names":[],"mappings":"AAgCO;IAfqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACiB,iBAAiB,EAA5E,OAAO,YAAY,EAAE,UAAU,CAAC,mBAAmB,CAAC;IACC,WAAW,EAAhE,OAAO,YAAY,EAAE,UAAU,CAAC,aAAa,CAAC;IACW,eAAe,EAAxE,OAAO,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACK,aAAa,EAApE,OAAO,YAAY,EAAE,UAAU,CAAC,eAAe,CAAC;IACQ,cAAc,EAAtE,OAAO,YAAY,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACM,aAAa,EAApE,OAAO,YAAY,EAAE,UAAU,CAAC,eAAe,CAAC;IACa,mBAAmB,EAAhF,OAAO,YAAY,EAAE,UAAU,CAAC,qBAAqB,CAAC;IACG,eAAe,EAAxE,OAAO,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACa,qBAAqB,EAApF,OAAO,YAAY,EAAE,UAAU,CAAC,uBAAuB,CAAC;IACQ,sBAAsB,EAAtF,OAAO,YAAY,EAAE,UAAU,CAAC,wBAAwB,CAAC;IAClB,WAAW,EAAlD,OAAO,YAAY,EAAE,WAAW;IACa,iBAAiB,EAA9D,OAAO,YAAY,EAAE,iBAAiB;IACzB,iBAAiB,EAA9B,MAAM;aAmBJ,MAAM,WACN,MAAM,eACN,MAAM,gBACN,MAAM,UACN,MAAM,uBACN,MAAM,oBACN,MAAM;;YAEN,OAAO,YAAY,EAAE,OAAO;;;;;;;;;;;;;;;QA8WrC,sDAAsD;;;;;;;;6EAqBtD,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;QArB3D,sDAAsD;;;;;;;;6EAqBtD,2DAA2D;;;;;;;;;;;;;;;;;GAuF9D"} \ No newline at end of file diff --git a/packages/daemon/src/mail.d.ts b/packages/daemon/src/mail.d.ts new file mode 100644 index 0000000000..b77e7626fc --- /dev/null +++ b/packages/daemon/src/mail.d.ts @@ -0,0 +1,5 @@ +export function makeMailboxMaker({ provide, provideControllerAndResolveHandle, }: { + provide: import('./types.js').DaemonCore['provide']; + provideControllerAndResolveHandle: import('./types.js').DaemonCore['provideControllerAndResolveHandle']; +}): import('./types.js').MakeMailbox; +//# sourceMappingURL=mail.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/mail.d.ts.map b/packages/daemon/src/mail.d.ts.map new file mode 100644 index 0000000000..585a70233a --- /dev/null +++ b/packages/daemon/src/mail.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["mail.js"],"names":[],"mappings":"AAcO;IAJqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACiC,iCAAiC,EAA5G,OAAO,YAAY,EAAE,UAAU,CAAC,mCAAmC,CAAC;IAClE,OAAO,YAAY,EAAE,WAAW,CAia5C"} \ No newline at end of file diff --git a/packages/daemon/src/networks/loopback.d.ts b/packages/daemon/src/networks/loopback.d.ts new file mode 100644 index 0000000000..7c50cc4a6e --- /dev/null +++ b/packages/daemon/src/networks/loopback.d.ts @@ -0,0 +1,4 @@ +export function makeLoopbackNetwork({ provide }: { + provide: import('../types.js').DaemonCore['provide']; +}): import('@endo/far').FarRef; +//# sourceMappingURL=loopback.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/networks/loopback.d.ts.map b/packages/daemon/src/networks/loopback.d.ts.map new file mode 100644 index 0000000000..a55728a5e2 --- /dev/null +++ b/packages/daemon/src/networks/loopback.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"loopback.d.ts","sourceRoot":"","sources":["loopback.js"],"names":[],"mappings":"AAQO;IAHsD,OAAO,EAAzD,OAAO,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC;IACzC,OAAO,WAAW,EAAE,MAAM,CAAC,OAAO,aAAa,EAAE,WAAW,CAAC,CAkBzE"} \ No newline at end of file diff --git a/packages/daemon/src/networks/tcp-netstring.d.ts b/packages/daemon/src/networks/tcp-netstring.d.ts new file mode 100644 index 0000000000..3406a61b51 --- /dev/null +++ b/packages/daemon/src/networks/tcp-netstring.d.ts @@ -0,0 +1,10 @@ +export function make(powers: any, context: any): Promise<{ + addresses: () => string[]; + supports: (address: any) => boolean; + connect: (address: any, connectionContext: any) => Promise; +} & import("@endo/eventual-send").RemotableBrand<{}, { + addresses: () => string[]; + supports: (address: any) => boolean; + connect: (address: any, connectionContext: any) => Promise; +}>>; +//# sourceMappingURL=tcp-netstring.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/networks/tcp-netstring.d.ts.map b/packages/daemon/src/networks/tcp-netstring.d.ts.map new file mode 100644 index 0000000000..73ccda4e5e --- /dev/null +++ b/packages/daemon/src/networks/tcp-netstring.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tcp-netstring.d.ts","sourceRoot":"","sources":["tcp-netstring.js"],"names":[],"mappings":"AAeO;;;;;;;;IAiKN"} \ No newline at end of file diff --git a/packages/daemon/src/pet-name.d.ts b/packages/daemon/src/pet-name.d.ts new file mode 100644 index 0000000000..8bee65dbc8 --- /dev/null +++ b/packages/daemon/src/pet-name.d.ts @@ -0,0 +1,3 @@ +export function assertPetName(petName: string): void; +export function petNamePathFrom(petNameOrPetNamePath: string | string[]): string[]; +//# sourceMappingURL=pet-name.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pet-name.d.ts.map b/packages/daemon/src/pet-name.d.ts.map new file mode 100644 index 0000000000..6ab5a8d334 --- /dev/null +++ b/packages/daemon/src/pet-name.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pet-name.d.ts","sourceRoot":"","sources":["pet-name.js"],"names":[],"mappings":"AASO,uCAFI,MAAM,QAMhB;AAKM,sDAFI,MAAM,GAAG,MAAM,EAAE,YAKF"} \ No newline at end of file diff --git a/packages/daemon/src/pet-sitter.d.ts b/packages/daemon/src/pet-sitter.d.ts new file mode 100644 index 0000000000..236d17686c --- /dev/null +++ b/packages/daemon/src/pet-sitter.d.ts @@ -0,0 +1,2 @@ +export function makePetSitter(petStore: import('./types.js').PetStore, specialNames: Record): import('./types.js').PetStore; +//# sourceMappingURL=pet-sitter.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pet-sitter.d.ts.map b/packages/daemon/src/pet-sitter.d.ts.map new file mode 100644 index 0000000000..e2ed861072 --- /dev/null +++ b/packages/daemon/src/pet-sitter.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pet-sitter.d.ts","sourceRoot":"","sources":["pet-sitter.js"],"names":[],"mappings":"AAWO,wCAJI,OAAO,YAAY,EAAE,QAAQ,gBAC7B,OAAO,MAAM,EAAC,MAAM,CAAC,GACnB,OAAO,YAAY,EAAE,QAAQ,CAqEzC"} \ No newline at end of file diff --git a/packages/daemon/src/pet-store.d.ts b/packages/daemon/src/pet-store.d.ts new file mode 100644 index 0000000000..7e84d4c1ea --- /dev/null +++ b/packages/daemon/src/pet-store.d.ts @@ -0,0 +1,4 @@ +export function makePetStoreMaker(filePowers: import('./types.js').FilePowers, locator: import('./types.js').Locator): { + makeIdentifiedPetStore: (id: string, assertValidName: (name: string) => void) => Promise; +}; +//# sourceMappingURL=pet-store.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pet-store.d.ts.map b/packages/daemon/src/pet-store.d.ts.map new file mode 100644 index 0000000000..6e7ecb9870 --- /dev/null +++ b/packages/daemon/src/pet-store.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pet-store.d.ts","sourceRoot":"","sources":["pet-store.js"],"names":[],"mappings":"AAaO,8CAHI,OAAO,YAAY,EAAE,UAAU,WAC/B,OAAO,YAAY,EAAE,OAAO;iCAuN1B,MAAM,0BACC,MAAM,KAAK,IAAI,KACpB,QAAQ,OAAO,YAAY,EAAE,QAAQ,CAAC;EAoBpD"} \ No newline at end of file diff --git a/packages/daemon/src/pubsub.d.ts b/packages/daemon/src/pubsub.d.ts new file mode 100644 index 0000000000..9c2aac36d4 --- /dev/null +++ b/packages/daemon/src/pubsub.d.ts @@ -0,0 +1,18 @@ +export function makeNullQueue(value: TValue): import("@endo/stream").AsyncQueue; +export const nullIteratorQueue: import("@endo/stream").AsyncQueue<{ + value: undefined; + done: boolean; +}, unknown>; +export function makeChangePubSub(): { + sink: { + /** + * @param {TValue} value + */ + put: (value: TValue) => void; + }; + makeSpring: () => { + get: () => Promise; + }; +}; +export function makeChangeTopic(): import("./types.js").Topic; +//# sourceMappingURL=pubsub.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pubsub.d.ts.map b/packages/daemon/src/pubsub.d.ts.map new file mode 100644 index 0000000000..a8a1d50a5d --- /dev/null +++ b/packages/daemon/src/pubsub.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pubsub.d.ts","sourceRoot":"","sources":["pubsub.js"],"names":[],"mappings":"AAeO,yGAIH;AAEJ;;;YAEE;AAKK;;QAKH;;WAEG;;;;;;EAuBN;AAOM,+GAON"} \ No newline at end of file diff --git a/packages/daemon/src/reader-ref.d.ts b/packages/daemon/src/reader-ref.d.ts new file mode 100644 index 0000000000..fe565a399f --- /dev/null +++ b/packages/daemon/src/reader-ref.d.ts @@ -0,0 +1,4 @@ +export function asyncIterate(iterable: import("./types").SomehowAsyncIterable): import("@endo/stream").Reader; +export function makeIteratorRef(iterable: import("./types").SomehowAsyncIterable): import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; +export function makeReaderRef(readable: import('./types').SomehowAsyncIterable): import('@endo/far').FarRef>; +//# sourceMappingURL=reader-ref.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/reader-ref.d.ts.map b/packages/daemon/src/reader-ref.d.ts.map new file mode 100644 index 0000000000..cd0564b91b --- /dev/null +++ b/packages/daemon/src/reader-ref.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader-ref.d.ts","sourceRoot":"","sources":["reader-ref.js"],"names":[],"mappings":"AAcO,kIAUN;AAOM,sPA4BN;AAMM,wCAHI,OAAO,SAAS,EAAE,oBAAoB,CAAC,UAAU,CAAC,GAChD,OAAO,WAAW,EAAE,MAAM,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAGZ"} \ No newline at end of file diff --git a/packages/daemon/src/ref-reader.d.ts b/packages/daemon/src/ref-reader.d.ts new file mode 100644 index 0000000000..7120462b5a --- /dev/null +++ b/packages/daemon/src/ref-reader.d.ts @@ -0,0 +1,11 @@ +export function makeRefIterator(iteratorRef: import("@endo/far").ERef>): { + /** @param {[] | [TNext]} args */ + next: (...args: [] | [TNext]) => Promise>; + /** @param {[] | [TReturn]} args */ + return: (...args: [] | [TReturn]) => Promise>; + /** @param {any} error */ + throw: (error: any) => Promise>; + [Symbol.asyncIterator]: () => any; +}; +export function makeRefReader(readerRef: import('@endo/far').ERef>): AsyncIterableIterator; +//# sourceMappingURL=ref-reader.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/ref-reader.d.ts.map b/packages/daemon/src/ref-reader.d.ts.map new file mode 100644 index 0000000000..c01a5d0a37 --- /dev/null +++ b/packages/daemon/src/ref-reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ref-reader.d.ts","sourceRoot":"","sources":["ref-reader.js"],"names":[],"mappings":"AAYO;IAEH,iCAAiC;;IAEjC,mCAAmC;;IAEnC,yBAAyB;mBAAb,GAAG;;EAKlB;AAMM,yCAHI,OAAO,WAAW,EAAE,IAAI,CAAC,cAAc,MAAM,CAAC,CAAC,GAC7C,sBAAsB,UAAU,CAAC,CAGO"} \ No newline at end of file diff --git a/packages/daemon/src/serial-jobs.d.ts b/packages/daemon/src/serial-jobs.d.ts new file mode 100644 index 0000000000..f4c1f334ac --- /dev/null +++ b/packages/daemon/src/serial-jobs.d.ts @@ -0,0 +1,2 @@ +export function makeSerialJobs(): import('./types.js').SerialJobs; +//# sourceMappingURL=serial-jobs.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/serial-jobs.d.ts.map b/packages/daemon/src/serial-jobs.d.ts.map new file mode 100644 index 0000000000..366d4b6bda --- /dev/null +++ b/packages/daemon/src/serial-jobs.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"serial-jobs.d.ts","sourceRoot":"","sources":["serial-jobs.js"],"names":[],"mappings":"AAKO,kCAFM,OAAO,YAAY,EAAE,UAAU,CAuB3C"} \ No newline at end of file diff --git a/packages/daemon/src/serve-private-path.d.ts b/packages/daemon/src/serve-private-path.d.ts new file mode 100644 index 0000000000..46352e7ccf --- /dev/null +++ b/packages/daemon/src/serve-private-path.d.ts @@ -0,0 +1,10 @@ +export function servePrivatePath(sockPath: any, endoBootstrap: any, { servePath, connectionNumbers, cancelled, exitWithError }: { + servePath: any; + connectionNumbers: any; + cancelled: any; + exitWithError: any; +}): { + started: Promise; + stopped: Promise; +}; +//# sourceMappingURL=serve-private-path.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/serve-private-path.d.ts.map b/packages/daemon/src/serve-private-path.d.ts.map new file mode 100644 index 0000000000..eb76d92288 --- /dev/null +++ b/packages/daemon/src/serve-private-path.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"serve-private-path.d.ts","sourceRoot":"","sources":["serve-private-path.js"],"names":[],"mappings":"AAMO;;;;;;;;EAyDN"} \ No newline at end of file diff --git a/packages/daemon/src/serve-private-port-http.d.ts b/packages/daemon/src/serve-private-port-http.d.ts new file mode 100644 index 0000000000..6930ec8c23 --- /dev/null +++ b/packages/daemon/src/serve-private-port-http.d.ts @@ -0,0 +1,10 @@ +export function servePrivatePortHttp(requestedWebletPort: any, endoBootstrap: any, { servePortHttp, connectionNumbers, cancelled, exitWithError }: { + servePortHttp: any; + connectionNumbers: any; + cancelled: any; + exitWithError: any; +}): { + started: any; + stopped: any; +}; +//# sourceMappingURL=serve-private-port-http.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/serve-private-port-http.d.ts.map b/packages/daemon/src/serve-private-port-http.d.ts.map new file mode 100644 index 0000000000..aa50964010 --- /dev/null +++ b/packages/daemon/src/serve-private-port-http.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"serve-private-port-http.d.ts","sourceRoot":"","sources":["serve-private-port-http.js"],"names":[],"mappings":"AAYO;;;;;;;;EAwIN"} \ No newline at end of file diff --git a/packages/daemon/src/weak-multimap.d.ts b/packages/daemon/src/weak-multimap.d.ts new file mode 100644 index 0000000000..5af9315cde --- /dev/null +++ b/packages/daemon/src/weak-multimap.d.ts @@ -0,0 +1,2 @@ +export function makeWeakMultimap(): import('./types.js').WeakMultimap; +//# sourceMappingURL=weak-multimap.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/weak-multimap.d.ts.map b/packages/daemon/src/weak-multimap.d.ts.map new file mode 100644 index 0000000000..3a87951823 --- /dev/null +++ b/packages/daemon/src/weak-multimap.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"weak-multimap.d.ts","sourceRoot":"","sources":["weak-multimap.js"],"names":[],"mappings":"AAGO,oCAFM,OAAO,YAAY,EAAE,YAAY,CAAC,OAAO,EAAE,GAAG,CAAC,CAiC3D"} \ No newline at end of file diff --git a/packages/daemon/src/web-page.d.ts b/packages/daemon/src/web-page.d.ts new file mode 100644 index 0000000000..4681086707 --- /dev/null +++ b/packages/daemon/src/web-page.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=web-page.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/web-page.d.ts.map b/packages/daemon/src/web-page.d.ts.map new file mode 100644 index 0000000000..b331ca3e9a --- /dev/null +++ b/packages/daemon/src/web-page.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"web-page.d.ts","sourceRoot":"","sources":["web-page.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/web-server-node-powers.d.ts b/packages/daemon/src/web-server-node-powers.d.ts new file mode 100644 index 0000000000..0c4367d32e --- /dev/null +++ b/packages/daemon/src/web-server-node-powers.d.ts @@ -0,0 +1,13 @@ +export function makeHttpPowers({ http, ws }: { + ws: typeof import('ws'); + http: typeof import('http'); +}): { + servePortHttp: ({ port, host, respond, connect, cancelled, }: { + port: number; + host: string; + respond?: import("./types.js").HttpRespond | undefined; + connect?: import("./types.js").HttpConnect | undefined; + cancelled: Promise; + }) => Promise; +}; +//# sourceMappingURL=web-server-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/web-server-node-powers.d.ts.map b/packages/daemon/src/web-server-node-powers.d.ts.map new file mode 100644 index 0000000000..8265178a1c --- /dev/null +++ b/packages/daemon/src/web-server-node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"web-server-node-powers.d.ts","sourceRoot":"","sources":["web-server-node-powers.js"],"names":[],"mappings":"AAWO;IAHiC,EAAE,EAA/B,cAAc,IAAI,CAAC;IACY,IAAI,EAAnC,cAAc,MAAM,CAAC;;;QASN,IAAI,EAAjB,MAAM;QACO,IAAI,EAAjB,MAAM;QACkC,OAAO;QACP,OAAO;QAC1B,SAAS,EAA9B,QAAQ,KAAK,CAAC;;EA8J1B"} \ No newline at end of file diff --git a/packages/daemon/src/web-server-node.d.ts b/packages/daemon/src/web-server-node.d.ts new file mode 100644 index 0000000000..1184e8e9a6 --- /dev/null +++ b/packages/daemon/src/web-server-node.d.ts @@ -0,0 +1,18 @@ +export function make(_powers: unknown, context: import('./types.js').FarContext): Promise<{ + makeWeblet: (webletBundle: unknown, webletPowers: unknown, requestedPort: number, webletId: string, webletCancelled: Promise) => { + getLocation(): Promise; + stopped: () => Promise; + } & import("@endo/eventual-send").RemotableBrand<{}, { + getLocation(): Promise; + stopped: () => Promise; + }>; +} & import("@endo/eventual-send").RemotableBrand<{}, { + makeWeblet: (webletBundle: unknown, webletPowers: unknown, requestedPort: number, webletId: string, webletCancelled: Promise) => { + getLocation(): Promise; + stopped: () => Promise; + } & import("@endo/eventual-send").RemotableBrand<{}, { + getLocation(): Promise; + stopped: () => Promise; + }>; +}>>; +//# sourceMappingURL=web-server-node.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/web-server-node.d.ts.map b/packages/daemon/src/web-server-node.d.ts.map new file mode 100644 index 0000000000..65a82c3b7a --- /dev/null +++ b/packages/daemon/src/web-server-node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"web-server-node.d.ts","sourceRoot":"","sources":["web-server-node.js"],"names":[],"mappings":"AA8BO,8BAHI,OAAO,WACP,OAAO,YAAY,EAAE,UAAU;+BA0B7B,OAAO,gBACP,OAAO,iBACP,MAAM,YACN,MAAM,mBACN,QAAQ,KAAK,CAAC;;;;;;;;+BAJd,OAAO,gBACP,OAAO,iBACP,MAAM,YACN,MAAM,mBACN,QAAQ,KAAK,CAAC;;;;;;;IAsI1B"} \ No newline at end of file diff --git a/packages/daemon/src/worker-node-powers.d.ts b/packages/daemon/src/worker-node-powers.d.ts new file mode 100644 index 0000000000..f099aad30a --- /dev/null +++ b/packages/daemon/src/worker-node-powers.d.ts @@ -0,0 +1,5 @@ +export function makePowers({ fs, url }: { + fs: typeof import('fs'); + url: typeof import('url'); +}): import('./types.js').MignonicPowers; +//# sourceMappingURL=worker-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/worker-node-powers.d.ts.map b/packages/daemon/src/worker-node-powers.d.ts.map new file mode 100644 index 0000000000..4ac93714fa --- /dev/null +++ b/packages/daemon/src/worker-node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"worker-node-powers.d.ts","sourceRoot":"","sources":["worker-node-powers.js"],"names":[],"mappings":"AAUO;IAJiC,EAAE,EAA/B,cAAc,IAAI,CAAC;IACW,GAAG,EAAjC,cAAc,KAAK,CAAC;IAClB,OAAO,YAAY,EAAE,cAAc,CAmB/C"} \ No newline at end of file diff --git a/packages/daemon/src/worker-node.d.ts b/packages/daemon/src/worker-node.d.ts new file mode 100644 index 0000000000..be6abde3d6 --- /dev/null +++ b/packages/daemon/src/worker-node.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=worker-node.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/worker-node.d.ts.map b/packages/daemon/src/worker-node.d.ts.map new file mode 100644 index 0000000000..928baae12c --- /dev/null +++ b/packages/daemon/src/worker-node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"worker-node.d.ts","sourceRoot":"","sources":["worker-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/worker.d.ts b/packages/daemon/src/worker.d.ts new file mode 100644 index 0000000000..f71d10ba59 --- /dev/null +++ b/packages/daemon/src/worker.d.ts @@ -0,0 +1,96 @@ +export function makeWorkerFacet({ cancel }: { + cancel: (error: Error) => void; +}): { + terminate: () => Promise; + /** + * @param {string} source + * @param {Array} names + * @param {Array} values + * @param {string} $id + * @param {Promise} $cancelled + */ + evaluate: (source: string, names: Array, values: Array, $id: string, $cancelled: Promise) => Promise; + /** + * @param {string} specifier + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; + /** + * @param {import('@endo/eventual-send').ERef} readableP + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeBundle: (readableP: import('@endo/eventual-send').ERef, powersP: Promise, contextP: Promise) => Promise; +} & import("@endo/eventual-send").RemotableBrand<{}, { + terminate: () => Promise; + /** + * @param {string} source + * @param {Array} names + * @param {Array} values + * @param {string} $id + * @param {Promise} $cancelled + */ + evaluate: (source: string, names: Array, values: Array, $id: string, $cancelled: Promise) => Promise; + /** + * @param {string} specifier + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; + /** + * @param {import('@endo/eventual-send').ERef} readableP + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeBundle: (readableP: import('@endo/eventual-send').ERef, powersP: Promise, contextP: Promise) => Promise; +}>; +export function main(powers: import('./types.js').MignonicPowers, locator: import('./types.js').Locator, uuid: string, pid: number | undefined, cancel: (error: Error) => void, cancelled: Promise): Promise; +export type WorkerBootstrap = ReturnType<({ cancel }: { + cancel: (error: Error) => void; +}) => { + terminate: () => Promise; + /** + * @param {string} source + * @param {Array} names + * @param {Array} values + * @param {string} $id + * @param {Promise} $cancelled + */ + evaluate: (source: string, names: string[], values: unknown[], $id: string, $cancelled: Promise) => Promise; + /** + * @param {string} specifier + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; + /** + * @param {import('@endo/eventual-send').ERef} readableP + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeBundle: (readableP: import("@endo/eventual-send").ERef, powersP: Promise, contextP: Promise) => Promise; +} & import("@endo/eventual-send").RemotableBrand<{}, { + terminate: () => Promise; + /** + * @param {string} source + * @param {Array} names + * @param {Array} values + * @param {string} $id + * @param {Promise} $cancelled + */ + evaluate: (source: string, names: string[], values: unknown[], $id: string, $cancelled: Promise) => Promise; + /** + * @param {string} specifier + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; + /** + * @param {import('@endo/eventual-send').ERef} readableP + * @param {Promise} powersP + * @param {Promise} contextP + */ + makeBundle: (readableP: import("@endo/eventual-send").ERef, powersP: Promise, contextP: Promise) => Promise; +}>>; +//# sourceMappingURL=worker.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/worker.d.ts.map b/packages/daemon/src/worker.d.ts.map new file mode 100644 index 0000000000..4b8cc4c841 --- /dev/null +++ b/packages/daemon/src/worker.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["worker.js"],"names":[],"mappings":"AAuCO;oBAFY,KAAK,KAAK,IAAI;;;IAS7B;;;;;;OAMG;uBALQ,MAAM,SACN,MAAM,MAAM,CAAC,UACb,MAAM,OAAO,CAAC,OACd,MAAM,cACN,QAAQ,KAAK,CAAC;IAgBzB;;;;OAIG;gCAHQ,MAAM,WACN,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;IAW3B;;;;OAIG;4BAHQ,OAAO,qBAAqB,EAAE,IAAI,CAAC,OAAO,YAAY,EAAE,YAAY,CAAC,WACrE,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;;;IAtC3B;;;;;;OAMG;uBALQ,MAAM,SACN,MAAM,MAAM,CAAC,UACb,MAAM,OAAO,CAAC,OACd,MAAM,cACN,QAAQ,KAAK,CAAC;IAgBzB;;;;OAIG;gCAHQ,MAAM,WACN,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;IAW3B;;;;OAIG;4BAHQ,OAAO,qBAAqB,EAAE,IAAI,CAAC,OAAO,YAAY,EAAE,YAAY,CAAC,WACrE,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;GAe9B;AAUM,6BAPI,OAAO,YAAY,EAAE,cAAc,WACnC,OAAO,YAAY,EAAE,OAAO,QAC5B,MAAM,OACN,MAAM,GAAG,SAAS,kBACV,KAAK,KAAK,IAAI,aACtB,QAAQ,KAAK,CAAC,iBAuBxB;8BAlGY;;;;IAcT;;;;;;OAMG;;IAeH;;;;OAIG;;IAUH;;;;OAIG;;;;IAvCH;;;;;;OAMG;;IAeH;;;;OAIG;;IAUH;;;;OAIG;;GArDiC"} \ No newline at end of file diff --git a/packages/env-options/index.d.ts b/packages/env-options/index.d.ts new file mode 100644 index 0000000000..7c2b818d2f --- /dev/null +++ b/packages/env-options/index.d.ts @@ -0,0 +1,2 @@ +export * from "./src/env-options.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/env-options/index.d.ts.map b/packages/env-options/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/env-options/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/env-options/src/env-options.d.ts b/packages/env-options/src/env-options.d.ts new file mode 100644 index 0000000000..ac087e4b7d --- /dev/null +++ b/packages/env-options/src/env-options.d.ts @@ -0,0 +1,24 @@ +export function makeEnvironmentCaptor(aGlobal: object, dropNames?: boolean | undefined): Readonly<{ + getEnvironmentOption: (optionName: string, defaultSetting: string, optOtherValues?: string[] | undefined) => string; + getEnvironmentOptionsList: (optionName: string) => string[]; + environmentOptionsListHas: (optionName: any, element: any) => any; + getCapturedEnvironmentOptionNames: () => readonly any[]; +}>; +/** + * Gets an environment option by name and returns the option value or the + * given default. + * + * @param {string} optionName + * @param {string} defaultSetting + * @param {string[]} [optOtherValues] + * If provided, the option value must be included or match `defaultSetting`. + * @returns {string} + */ +export function getEnvironmentOption(optionName: string, defaultSetting: string, optOtherValues?: string[] | undefined): string; +/** + * @param {string} optionName + * @returns {string[]} + */ +export function getEnvironmentOptionsList(optionName: string): string[]; +export function environmentOptionsListHas(optionName: any, element: any): any; +//# sourceMappingURL=env-options.d.ts.map \ No newline at end of file diff --git a/packages/env-options/src/env-options.d.ts.map b/packages/env-options/src/env-options.d.ts.map new file mode 100644 index 0000000000..0c3ef73bba --- /dev/null +++ b/packages/env-options/src/env-options.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"env-options.d.ts","sourceRoot":"","sources":["env-options.js"],"names":[],"mappings":"AA6CO,+CAJI,MAAM;uCAWJ,MAAM,kBACN,MAAM,4CAGJ,MAAM;4CA8CR,MAAM,KACJ,MAAM,EAAE;;;GAsBtB;AA7EC;;;;;;;;;GASG;AACH,iDANW,MAAM,kBACN,MAAM,0CAGJ,MAAM,CA0ClB;AAGD;;;GAGG;AACH,sDAHW,MAAM,GACJ,MAAM,EAAE,CAKpB;AAGD,8EAC+D"} \ No newline at end of file diff --git a/packages/errors/index.d.ts b/packages/errors/index.d.ts new file mode 100644 index 0000000000..0ed2a2a007 --- /dev/null +++ b/packages/errors/index.d.ts @@ -0,0 +1,10 @@ +/** @type {import("ses").AssertionFunctions } */ +export const assert: import("ses").AssertionFunctions; +declare const bareOrQuote: (payload: any, spaces?: string | number | undefined) => import("ses").ToStringable; +export const makeError: (details?: import("ses").Details | undefined, errConstructor?: import("ses").GenericErrorConstructor | undefined, options?: import("ses").AssertMakeErrorOptions | undefined) => Error; +export const note: (error: Error, details: import("ses").Details) => void; +export const quote: (payload: any, spaces?: string | number | undefined) => import("ses").ToStringable; +export const redacted: (template: string[] | TemplateStringsArray, ...args: any) => import("ses").DetailsToken; +export const throwRedacted: (template: string[] | TemplateStringsArray, ...args: any) => never; +export { bareOrQuote as bare, bareOrQuote as b, quote as q, redacted as X, throwRedacted as Fail, note as annotateError }; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/errors/index.d.ts.map b/packages/errors/index.d.ts.map new file mode 100644 index 0000000000..1cd98b43b5 --- /dev/null +++ b/packages/errors/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AA4DA,gDAAgD;AAEhD,qBAFW,OAAO,KAAK,EAAE,kBAAkB,CAGe;AAM1D,8GAAkC"} \ No newline at end of file diff --git a/packages/evasive-transform/index.d.ts b/packages/evasive-transform/index.d.ts new file mode 100644 index 0000000000..02b27af261 --- /dev/null +++ b/packages/evasive-transform/index.d.ts @@ -0,0 +1,2 @@ +export * from "./src/index.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/index.d.ts.map b/packages/evasive-transform/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/evasive-transform/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/evasive-transform/src/generate.d.ts b/packages/evasive-transform/src/generate.d.ts new file mode 100644 index 0000000000..d935c36c06 --- /dev/null +++ b/packages/evasive-transform/src/generate.d.ts @@ -0,0 +1,76 @@ +/** + * Options for {@link generateCode} with source map + * + * @typedef GenerateAstOptionsWithSourceMap + * @property {string} sourceUrl - If present, we will generate a source map + * @internal + */ +/** + * Options for {@link generateCode} (no source map generated) + * + * @typedef GenerateAstOptionsWithoutSourceMap + * @property {undefined} sourceUrl - This should be undefined or otherwise not provided + * @internal + */ +/** + * The result of {@link generate}; depends on whether a `sourceUrl` was + * provided to the options. + * + * @template {string|undefined} [SourceUrl=undefined] + * @typedef {{code: string, map: SourceUrl extends string ? import('source-map').RawSourceMap : never}} TransformedResult + * @internal + */ +/** + * Generates new code from a Babel AST; returns code and source map + * + * @callback GenerateAstWithSourceMap + * @param {import('@babel/types').File} ast - Babel "File" AST + * @param {GenerateAstOptionsWithSourceMap} options - Options for the transform + * @returns {TransformedResult} + * @internal + */ +/** + * Generates new code from a Babel AST; returns code only + * + * @callback GenerateAstWithoutSourceMap + * @param {import('@babel/types').File} ast - Babel "File" AST + * @param {GenerateAstOptionsWithoutSourceMap} [options] - Options for the transform + * @returns {TransformedResult} + * @internal + */ +export const generate: GenerateAstWithSourceMap & GenerateAstWithoutSourceMap; +/** + * Options for {@link generateCode } with source map + */ +export type GenerateAstOptionsWithSourceMap = { + /** + * - If present, we will generate a source map + */ + sourceUrl: string; +}; +/** + * Options for {@link generateCode } (no source map generated) + */ +export type GenerateAstOptionsWithoutSourceMap = { + /** + * - This should be undefined or otherwise not provided + */ + sourceUrl: undefined; +}; +/** + * The result of {@link generate }; depends on whether a `sourceUrl` was + * provided to the options. + */ +export type TransformedResult = { + code: string; + map: SourceUrl extends string ? import('source-map').RawSourceMap : never; +}; +/** + * Generates new code from a Babel AST; returns code and source map + */ +export type GenerateAstWithSourceMap = (ast: import('@babel/types').File, options: GenerateAstOptionsWithSourceMap) => TransformedResult; +/** + * Generates new code from a Babel AST; returns code only + */ +export type GenerateAstWithoutSourceMap = (ast: import('@babel/types').File, options?: GenerateAstOptionsWithoutSourceMap | undefined) => TransformedResult; +//# sourceMappingURL=generate.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/generate.d.ts.map b/packages/evasive-transform/src/generate.d.ts.map new file mode 100644 index 0000000000..039efcb719 --- /dev/null +++ b/packages/evasive-transform/src/generate.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["generate.js"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH,8EAuBI;;;;;;;;eA/DU,MAAM;;;;;;;;;eAQN,SAAS;;;;;;kFASV;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,SAAS,SAAS,MAAM,GAAG,OAAO,YAAY,EAAE,YAAY,GAAG,KAAK,CAAA;CAAC;;;;6CAQ3F,OAAO,cAAc,EAAE,IAAI,WAC3B,+BAA+B,KAC7B,kBAAkB,MAAM,CAAC;;;;gDAQ3B,OAAO,cAAc,EAAE,IAAI,+DAEzB,kBAAkB,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/evasive-transform/src/index.d.ts b/packages/evasive-transform/src/index.d.ts new file mode 100644 index 0000000000..f72d5a70b6 --- /dev/null +++ b/packages/evasive-transform/src/index.d.ts @@ -0,0 +1,48 @@ +/** + * Options for {@link evadeCensor} + * + * @typedef EvadeCensorOptions + * @property {string|import('source-map').RawSourceMap} [sourceMap] - Original source map in JSON string or object form + * @property {string} [sourceUrl] - URL or filepath of the original source in `code` + * @property {boolean} [useLocationUnmap] - Enable location unmapping. Only applies if `sourceMap` was provided + * @property {import('./parse-ast.js').SourceType} [sourceType] - Module source type + * @public + */ +/** + * Apply SES censorship evasion transforms on the given code `source` + * + * If the `sourceUrl` option is provided, the `map` property of the fulfillment + * value will be a source map object; otherwise it will be `undefined`. + * + * If the `sourceMap` option is _not_ provided, the `useLocationUnmap` option + * will have no effect. + * + * @template {EvadeCensorOptions} T + * @param {string} source - Source code to transform + * @param {T} [options] - Options for the transform + * @returns {Promise>} Object containing new code and optionally source map object (ready for stringification) + * @public + */ +export function evadeCensor(source: string, options?: T | undefined): Promise>; +/** + * Options for {@link evadeCensor } + */ +export type EvadeCensorOptions = { + /** + * - Original source map in JSON string or object form + */ + sourceMap?: string | import("source-map").RawSourceMap | undefined; + /** + * - URL or filepath of the original source in `code` + */ + sourceUrl?: string | undefined; + /** + * - Enable location unmapping. Only applies if `sourceMap` was provided + */ + useLocationUnmap?: boolean | undefined; + /** + * - Module source type + */ + sourceType?: import("./parse-ast.js").SourceType | undefined; +}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/index.d.ts.map b/packages/evasive-transform/src/index.d.ts.map new file mode 100644 index 0000000000..5f83e43f9c --- /dev/null +++ b/packages/evasive-transform/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;;GAcG;AACH,kEALW,MAAM,+FAgChB"} \ No newline at end of file diff --git a/packages/evasive-transform/src/location-unmapper.d.ts b/packages/evasive-transform/src/location-unmapper.d.ts new file mode 100644 index 0000000000..f46befba1a --- /dev/null +++ b/packages/evasive-transform/src/location-unmapper.d.ts @@ -0,0 +1,22 @@ +/** + * A function which modifies an AST Node's source location + * + * @callback LocationUnmapper + * @param {import('@babel/types').SourceLocation|null} [loc] + * @returns {void} + * @internal + */ +/** + * Creates a {@link LocationUnmapper} function + * + * @internal + * @param {string} sourceMap - Source map + * @param {import('@babel/types').File} ast - AST as created by Babel + * @returns {Promise} + */ +export function makeLocationUnmapper(sourceMap: string, ast: import('@babel/types').File): Promise; +/** + * A function which modifies an AST Node's source location + */ +export type LocationUnmapper = (loc?: import("@babel/types").SourceLocation | null | undefined) => void; +//# sourceMappingURL=location-unmapper.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/location-unmapper.d.ts.map b/packages/evasive-transform/src/location-unmapper.d.ts.map new file mode 100644 index 0000000000..5daf16ce2e --- /dev/null +++ b/packages/evasive-transform/src/location-unmapper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"location-unmapper.d.ts","sourceRoot":"","sources":["location-unmapper.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AAEH;;;;;;;GAOG;AACH,gDAJW,MAAM,OACN,OAAO,cAAc,EAAE,IAAI,GACzB,QAAQ,gBAAgB,CAAC,CAyDrC;;;;mGAnEY,IAAI"} \ No newline at end of file diff --git a/packages/evasive-transform/src/parse-ast.d.ts b/packages/evasive-transform/src/parse-ast.d.ts new file mode 100644 index 0000000000..4aa484accd --- /dev/null +++ b/packages/evasive-transform/src/parse-ast.d.ts @@ -0,0 +1,39 @@ +/** + * This is the same type as `@babel/parser`'s `ParserOptions['sourceType']`, but + * re-implemented here for decoupling purposes. + * + * Still, this is likely Babel-specific. + * + * @typedef {'module'|'script'|'unambiguous'} SourceType + * @public + */ +/** + * Options for {@link parseAst}. + * + * @typedef ParseAstOptions + * @property {SourceType} [sourceType] + * @internal + */ +/** + * Adapter for parsing an AST. + * + * @param {string} source - Source code + * @param {ParseAstOptions} [opts] - Options for underlying parser + * @internal + */ +export function parseAst(source: string, opts?: ParseAstOptions | undefined): babelParser.ParseResult; +/** + * This is the same type as `@babel/parser`'s `ParserOptions['sourceType']`, but + * re-implemented here for decoupling purposes. + * + * Still, this is likely Babel-specific. + */ +export type SourceType = 'module' | 'script' | 'unambiguous'; +/** + * Options for {@link parseAst }. + */ +export type ParseAstOptions = { + sourceType?: SourceType | undefined; +}; +import * as babelParser from '@babel/parser'; +//# sourceMappingURL=parse-ast.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/parse-ast.d.ts.map b/packages/evasive-transform/src/parse-ast.d.ts.map new file mode 100644 index 0000000000..493ee6f318 --- /dev/null +++ b/packages/evasive-transform/src/parse-ast.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"parse-ast.d.ts","sourceRoot":"","sources":["parse-ast.js"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,iCAJW,MAAM,4FAOhB;;;;;;;yBAtBY,QAAQ,GAAC,QAAQ,GAAC,aAAa;;;;;;;6BAVf,eAAe"} \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-ast.d.ts b/packages/evasive-transform/src/transform-ast.d.ts new file mode 100644 index 0000000000..ed23caf58a --- /dev/null +++ b/packages/evasive-transform/src/transform-ast.d.ts @@ -0,0 +1,72 @@ +/** + * Options for {@link transformAst} + * + * @internal + * @typedef {TransformAstOptionsWithLocationUnmap | TransformAstOptionsWithoutSourceMap} TransformAstOptions + */ +/** + * Options for {@link transformAst} + * + * If `useLocationUnmap` is not `true`, `sourceMap` is unused. + * + * @internal + * @typedef TransformAstOptionsWithoutSourceMap + * @property {false} [useLocationUnmap] - Enable location unmapping + * @property {string} [sourceMap] - Original source map + */ +/** + * Options for {@link transformAst} + * + * If `useLocationUnmap` is `true`, then `sourceMap` must also be present. + * + * @internal + * @typedef TransformAstOptionsWithLocationUnmap + * @property {true} useLocationUnmap - Enable location unmapping + * @property {string} sourceMap - Original source map + */ +/** + * Performs transformations on the given AST + * + * This function mutates `ast`. + * + * @internal + * @param {import('@babel/types').File} ast - AST, as generated by Babel + * @param {TransformAstOptions} [opts] + * @returns {Promise} + */ +export function transformAst(ast: import('@babel/types').File, { sourceMap, useLocationUnmap }?: TransformAstOptions | undefined): Promise; +/** + * Options for {@link transformAst } + */ +export type TransformAstOptions = TransformAstOptionsWithLocationUnmap | TransformAstOptionsWithoutSourceMap; +/** + * Options for {@link transformAst } + * + * If `useLocationUnmap` is not `true`, `sourceMap` is unused. + */ +export type TransformAstOptionsWithoutSourceMap = { + /** + * - Enable location unmapping + */ + useLocationUnmap?: false | undefined; + /** + * - Original source map + */ + sourceMap?: string | undefined; +}; +/** + * Options for {@link transformAst } + * + * If `useLocationUnmap` is `true`, then `sourceMap` must also be present. + */ +export type TransformAstOptionsWithLocationUnmap = { + /** + * - Enable location unmapping + */ + useLocationUnmap: true; + /** + * - Original source map + */ + sourceMap: string; +}; +//# sourceMappingURL=transform-ast.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-ast.d.ts.map b/packages/evasive-transform/src/transform-ast.d.ts.map new file mode 100644 index 0000000000..8572214b51 --- /dev/null +++ b/packages/evasive-transform/src/transform-ast.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transform-ast.d.ts","sourceRoot":"","sources":["transform-ast.js"],"names":[],"mappings":"AAoBA;;;;;GAKG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH,kCAJW,OAAO,cAAc,EAAE,IAAI,sEAEzB,QAAQ,IAAI,CAAC,CAqCzB;;;;kCAtEY,oCAAoC,GAAG,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;sBAqBzE,IAAI;;;;eACJ,MAAM"} \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-comment.d.ts b/packages/evasive-transform/src/transform-comment.d.ts new file mode 100644 index 0000000000..0ba257b001 --- /dev/null +++ b/packages/evasive-transform/src/transform-comment.d.ts @@ -0,0 +1,10 @@ +/** + * Rewrites a Comment Node to avoid triggering SES restrictions. + * + * Apparently coerces all comments to block comments. + * + * @param {import('@babel/types').Comment} node + * @param {import('./location-unmapper.js').LocationUnmapper} [unmapLoc] + */ +export function transformComment(node: import('@babel/types').Comment, unmapLoc?: import("./location-unmapper.js").LocationUnmapper | undefined): void; +//# sourceMappingURL=transform-comment.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-comment.d.ts.map b/packages/evasive-transform/src/transform-comment.d.ts.map new file mode 100644 index 0000000000..115ed538de --- /dev/null +++ b/packages/evasive-transform/src/transform-comment.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transform-comment.d.ts","sourceRoot":"","sources":["transform-comment.js"],"names":[],"mappings":"AAsBA;;;;;;;GAOG;AACH,uCAHW,OAAO,cAAc,EAAE,OAAO,kFAoBxC"} \ No newline at end of file diff --git a/packages/eventual-send/shim.d.ts b/packages/eventual-send/shim.d.ts new file mode 100644 index 0000000000..e30ed92ed1 --- /dev/null +++ b/packages/eventual-send/shim.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=shim.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/shim.d.ts.map b/packages/eventual-send/shim.d.ts.map new file mode 100644 index 0000000000..52ccee7578 --- /dev/null +++ b/packages/eventual-send/shim.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["shim.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/eventual-send/src/E.d.ts b/packages/eventual-send/src/E.d.ts new file mode 100644 index 0000000000..ff51bf806b --- /dev/null +++ b/packages/eventual-send/src/E.d.ts @@ -0,0 +1,158 @@ +export default makeE; +export type EProxy = ReturnType<(HandledPromise: { + new (executor: import("./handled-promise.js").HandledExecutor, unfulfilledHandler?: import("./handled-promise.js").Handler> | undefined): Promise; + prototype: Promise; +} & PromiseConstructor & import("./handled-promise.js").HandledPromiseStaticMethods) => ((x: T) => ECallableOrMethods>) & { + /** + * E.get(x) returns a proxy on which you can get arbitrary properties. + * Each of these properties returns a promise for the property. The promise + * value will be the property fetched from whatever 'x' designates (or + * resolves to) in a future turn, not this one. + * + * @template T + * @param {T} x target for property get + * @returns {EGetters>} property get proxy + * @readonly + */ + readonly get: (x: T_1) => EGetters>; + /** + * E.resolve(x) converts x to a handled promise. It is + * shorthand for HandledPromise.resolve(x) + * + * @template T + * @param {T} x value to convert to a handled promise + * @returns {Promise>} handled promise for x + * @readonly + */ + readonly resolve: { + (): Promise; + (value: T_2): Promise>; + (value: T_3 | PromiseLike): Promise>; + }; + /** + * E.sendOnly returns a proxy similar to E, but for which the results + * are ignored (undefined is returned). + * + * @template T + * @param {T} x target for method/function call + * @returns {ESendOnlyCallableOrMethods>} method/function call proxy + * @readonly + */ + readonly sendOnly: (x: T_4) => ESendOnlyCallableOrMethods>; + /** + * E.when(x, res, rej) is equivalent to + * HandledPromise.resolve(x).then(res, rej) + * + * @template T + * @template [U = T] + * @param {T|PromiseLike} x value to convert to a handled promise + * @param {(value: T) => ERef} [onfulfilled] + * @param {(reason: any) => ERef} [onrejected] + * @returns {Promise} + * @readonly + */ + readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => ERef) | undefined, onrejected?: ((reason: any) => ERef) | undefined) => Promise; +}>; +/** + * Creates a type that accepts both near and marshalled references that were + * returned from `Remotable` or `Far`, and also promises for such references. + */ +export type FarRef> = ERef>; +/** + * `DataOnly` means to return a record type `T2` consisting only of + * properties that are *not* functions. + */ +export type DataOnly = Omit>; +export type ERef = PromiseLike | T; +export type ECallable = ReturnType extends PromiseLike ? T : (...args: Parameters) => Promise>>; +export type EMethods = { readonly [P in keyof T]: T[P] extends import("./types").Callable ? ECallable : never; }; +export type EGetters = { readonly [P in keyof T]: T[P] extends PromiseLike ? T[P] : Promise>; }; +export type ESendOnlyCallable = (...args: Parameters) => Promise; +export type ESendOnlyMethods = { readonly [P in keyof T]: T[P] extends import("./types").Callable ? ESendOnlyCallable : never; }; +export type ESendOnlyCallableOrMethods = (T extends import('./types').Callable ? ESendOnlyCallable & ESendOnlyMethods> : ESendOnlyMethods>); +export type ECallableOrMethods = (T extends import('./types').Callable ? ECallable & EMethods> : EMethods>); +/** + * Return a union of property names/symbols/numbers P for which the record element T[P]'s type extends U. + * + * Given const x = { a: 123, b: 'hello', c: 42, 49: () => {}, 53: 67 }, + * + * FilteredKeys is the type 'a' | 'c' | 53. + * FilteredKeys is the type 'b'. + * FilteredKeys is the type 'c' | 53. + * FilteredKeys is the type never. + */ +export type FilteredKeys = { [P in keyof T]: T[P] extends U ? P : never; }[keyof T]; +/** + * `PickCallable` means to return a single root callable or a record type + * consisting only of properties that are functions. + */ +export type PickCallable = T extends import("./types").Callable ? (...args: Parameters) => ReturnType : Pick>; +/** + * `RemoteFunctions` means to return the functions and properties that are remotely callable. + */ +export type RemoteFunctions = T extends import("./types").RemotableBrand ? PickCallable : Awaited extends import("./types").RemotableBrand ? PickCallable : T extends PromiseLike ? Awaited : T; +export type LocalRecord = T extends import("./types").RemotableBrand ? L : Awaited extends import("./types").RemotableBrand ? L_1 : T extends PromiseLike ? Awaited : T; +export type EPromiseKit = { + promise: Promise; + settler: import('./types').Settler; +}; +/** + * Type for an object that must only be invoked with E. It supports a given + * interface but declares all the functions as asyncable. + */ +export type EOnly = T extends import("./types").Callable ? (...args: Parameters) => ERef>>> : T extends Record ? { [K in keyof T]: T[K] extends import("./types").Callable ? (...args: Parameters) => ERef>>> : T[K]; } : T; +/** + * @param {import('./types').HandledPromiseConstructor} HandledPromise + */ +declare function makeE(HandledPromise: import('./types').HandledPromiseConstructor): ((x: T) => ECallableOrMethods>) & { + /** + * E.get(x) returns a proxy on which you can get arbitrary properties. + * Each of these properties returns a promise for the property. The promise + * value will be the property fetched from whatever 'x' designates (or + * resolves to) in a future turn, not this one. + * + * @template T + * @param {T} x target for property get + * @returns {EGetters>} property get proxy + * @readonly + */ + readonly get: (x: T_1) => EGetters>; + /** + * E.resolve(x) converts x to a handled promise. It is + * shorthand for HandledPromise.resolve(x) + * + * @template T + * @param {T} x value to convert to a handled promise + * @returns {Promise>} handled promise for x + * @readonly + */ + readonly resolve: { + (): Promise; + (value: T_2): Promise>; + (value: T_3 | PromiseLike): Promise>; + }; + /** + * E.sendOnly returns a proxy similar to E, but for which the results + * are ignored (undefined is returned). + * + * @template T + * @param {T} x target for method/function call + * @returns {ESendOnlyCallableOrMethods>} method/function call proxy + * @readonly + */ + readonly sendOnly: (x: T_4) => ESendOnlyCallableOrMethods>; + /** + * E.when(x, res, rej) is equivalent to + * HandledPromise.resolve(x).then(res, rej) + * + * @template T + * @template [U = T] + * @param {T|PromiseLike} x value to convert to a handled promise + * @param {(value: T) => ERef} [onfulfilled] + * @param {(reason: any) => ERef} [onrejected] + * @returns {Promise} + * @readonly + */ + readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => ERef) | undefined, onrejected?: ((reason: any) => ERef) | undefined) => Promise; +}; +//# sourceMappingURL=E.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/E.d.ts.map b/packages/eventual-send/src/E.d.ts.map new file mode 100644 index 0000000000..2396e9aa40 --- /dev/null +++ b/packages/eventual-send/src/E.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"E.d.ts","sourceRoot":"","sources":["E.js"],"names":[],"mappings":";qBAoPc;;;;IAhEN;;;;;;;;;;OAUG;;IAMH;;;;;;;;OAQG;;;;;;IAGH;;;;;;;;OAQG;;IAMH;;;;;;;;;;;OAWG;;EAYoB;;;;;yDAQlB,KAAK,KAAK,GAAG,OAAO,SAAS,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;;;;;0BAQ9D,KAAK,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,SAAS,EAAE,QAAQ,CAAC,CAAC;sBAMpD,YAAY,CAAC,CAAC,GAAG,CAAC;yHAQZ,WAAW,CAAC,CAAC,KAAK,QAAQ,QAAQ,WAAW,CAAC,CAAC,CAAC,CAAC;;;gFAwB7C,WAAW,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC;;4CAczC,CACZ,CAAK,SAAS,OAAO,SAAS,EAAE,QAAQ,GAChC,kBAAkB,CAAC,CAAC,GAAG,iBAAiB,SAAS,CAAC,CAAC,CAAC,GACpD,iBAAiB,SAAS,CAAC,CAAC,CAAC,CAClC;oCAKS,CACZ,CAAK,SAAS,OAAO,SAAS,EAAE,QAAQ,GAChC,UAAU,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,GACpC,SAAS,SAAS,CAAC,CAAC,CAAC,CAC1B;;;;;;;;;;;;;;;;+EAyBe,WAAW,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC;;;;;;uCAmCrC;IACZ,OAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IACxB,OAAW,EAAE,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACvC;;;;;wEAUe,WAAW,CAAC,CAAC,KAAK,KAAK,QAAQ,MAAM,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AA3OxE;;GAEG;AACH,uCAFW,OAAO,SAAS,EAAE,yBAAyB;IAgB9C;;;;;;;;;;OAUG;;IAMH;;;;;;;;OAQG;;;;;;IAGH;;;;;;;;OAQG;;IAMH;;;;;;;;;;;OAWG;yIAHiB,GAAG;EAW9B"} \ No newline at end of file diff --git a/packages/eventual-send/src/exports.test-d.d.ts b/packages/eventual-send/src/exports.test-d.d.ts new file mode 100644 index 0000000000..612e558c43 --- /dev/null +++ b/packages/eventual-send/src/exports.test-d.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=exports.test-d.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/exports.test-d.d.ts.map b/packages/eventual-send/src/exports.test-d.d.ts.map new file mode 100644 index 0000000000..9543b61cd5 --- /dev/null +++ b/packages/eventual-send/src/exports.test-d.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"exports.test-d.d.ts","sourceRoot":"","sources":["exports.test-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/eventual-send/src/handled-promise.d.ts b/packages/eventual-send/src/handled-promise.d.ts new file mode 100644 index 0000000000..c659f9da8a --- /dev/null +++ b/packages/eventual-send/src/handled-promise.d.ts @@ -0,0 +1,35 @@ +export function makeHandledPromise(): { + new (executor: HandledExecutor, unfulfilledHandler?: Handler>): Promise; + prototype: Promise; +} & PromiseConstructor & HandledPromiseStaticMethods; +export type Handler = { + get?(p: T, name: PropertyKey, returnedP?: Promise): unknown; + getSendOnly?(p: T, name: PropertyKey): void; + applyFunction?(p: T, args: unknown[], returnedP?: Promise): unknown; + applyFunctionSendOnly?(p: T, args: unknown[]): void; + applyMethod?(p: T, name: PropertyKey | undefined, args: unknown[], returnedP?: Promise): unknown; + applyMethodSendOnly?(p: T, name: PropertyKey | undefined, args: unknown[]): void; +}; +export type ResolveWithPresenceOptionsBag = { + proxy?: { + handler: ProxyHandler; + target: unknown; + revokerCallback?(revoker: () => void): void; + } | undefined; +}; +export type HandledExecutor = (resolveHandled: (value?: R) => void, rejectHandled: (reason?: unknown) => void, resolveWithPresence: (presenceHandler: Handler<{}>, options?: ResolveWithPresenceOptionsBag<{}>) => object) => void; +export type Settler = { + resolve(value?: R): void; + reject(reason: unknown): void; + resolveWithPresence(presenceHandler?: Handler<{}>, options?: ResolveWithPresenceOptionsBag<{}>): object; +}; +export type HandledPromiseStaticMethods = { + applyFunction(target: unknown, args: unknown[]): Promise; + applyFunctionSendOnly(target: unknown, args: unknown[]): void; + applyMethod(target: unknown, prop: PropertyKey | undefined, args: unknown[]): Promise; + applyMethodSendOnly(target: unknown, prop: PropertyKey, args: unknown[]): void; + get(target: unknown, prop: PropertyKey): Promise; + getSendOnly(target: unknown, prop: PropertyKey): void; +}; +export type HandledPromiseConstructor = ReturnType; +//# sourceMappingURL=handled-promise.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/handled-promise.d.ts.map b/packages/eventual-send/src/handled-promise.d.ts.map new file mode 100644 index 0000000000..f94bd8882b --- /dev/null +++ b/packages/eventual-send/src/handled-promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"handled-promise.d.ts","sourceRoot":"","sources":["handled-promise.js"],"names":[],"mappings":"AAyDO;+DAsIqE,QAAQ,QAAQ,OAAO,CAAC,CAAC;eAA0B,QAAQ,OAAO,CAAC;qDAoY9I;;YAKY,CAAC,QAAQ,WAAW,cAAc,QAAQ,OAAO,CAAC,GAAG,OAAO;oBACpD,CAAC,QAAQ,WAAW,GAAG,IAAI;sBACzB,CAAC,QAAQ,OAAO,EAAE,cAAc,QAAQ,OAAO,CAAC,GAAG,OAAO;8BAClD,CAAC,QAAQ,OAAO,EAAE,GAAG,IAAI;oBACnC,CAAC,QAAQ,WAAW,GAAG,SAAS,QAAQ,OAAO,EAAE,cAAc,QAAQ,OAAO,CAAC,GAAG,OAAO;4BACjF,CAAC,QAAQ,WAAW,GAAG,SAAS,QAAQ,OAAO,EAAE,GAAG,IAAI;;;;iBAQrE,aAAa,CAAC,CAAC;gBAChB,OAAO;kCACW,MAAM,IAAI,GAAG,IAAI;;;qEAQpB,CAAC,KAAK,IAAI,2BACV,OAAO,KAAK,IAAI,yCACF,QAAQ,EAAE,CAAC,YAAY,8BAA8B,EAAE,CAAC,KAAK,MAAM,KACvG,IAAI;;oBAMS,CAAC,GAAG,IAAI;mBACT,OAAO,GAAG,IAAI;0CACS,QAAQ,EAAE,CAAC,YAAY,8BAA8B,EAAE,CAAC,GAAG,MAAM;;;0BAMjF,OAAO,QAAQ,OAAO,EAAE,GAAG,QAAQ,OAAO,CAAC;kCACnC,OAAO,QAAQ,OAAO,EAAE,GAAG,IAAI;wBACzC,OAAO,QAAQ,WAAW,GAAG,SAAS,QAAQ,OAAO,EAAE,GAAG,QAAQ,OAAO,CAAC;gCAClE,OAAO,QAAQ,WAAW,QAAQ,OAAO,EAAE,GAAG,IAAI;gBAClE,OAAO,QAAQ,WAAW,GAAG,QAAQ,OAAO,CAAC;wBACrC,OAAO,QAAQ,WAAW,GAAG,IAAI;;wCAI5C,WAAW,yBAAyB,CAAC"} \ No newline at end of file diff --git a/packages/eventual-send/src/local.d.ts b/packages/eventual-send/src/local.d.ts new file mode 100644 index 0000000000..1b896c46ac --- /dev/null +++ b/packages/eventual-send/src/local.d.ts @@ -0,0 +1,5 @@ +export function getMethodNames(val: any): (string | symbol)[]; +export function localApplyFunction(recipient: any, args: any): any; +export function localApplyMethod(recipient: any, methodName: any, args: any): any; +export function localGet(t: any, key: any): any; +//# sourceMappingURL=local.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/local.d.ts.map b/packages/eventual-send/src/local.d.ts.map new file mode 100644 index 0000000000..6b44f6eaf2 --- /dev/null +++ b/packages/eventual-send/src/local.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["local.js"],"names":[],"mappings":"AA8CO,oCAHI,GAAG,GACD,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,CAqB7B;AAKM,mEAkBN;AAEM,kFAqCN;AAEM,gDAAmC"} \ No newline at end of file diff --git a/packages/eventual-send/src/message-breakpoints.d.ts b/packages/eventual-send/src/message-breakpoints.d.ts new file mode 100644 index 0000000000..5998338c85 --- /dev/null +++ b/packages/eventual-send/src/message-breakpoints.d.ts @@ -0,0 +1,44 @@ +export function makeMessageBreakpointTester(optionName: string): MessageBreakpointTester | undefined; +/** + * A star `'*'` matches any recipient. Otherwise, the string is + * matched against the value of a recipient's `@@toStringTag` + * after stripping out any leading `'Alleged: '` or `'DebugName: '` + * prefix. For objects defined with `Far` this is the first argument, + * known as the `farName`. For exos, this is the tag. + */ +export type MatchStringTag = string | '*'; +/** + * A star `'*'` matches any method name. Otherwise, the string is + * matched against the method name. Currently, this is only an exact match. + * However, beware that we may introduce a string syntax for + * symbol method names. + */ +export type MatchMethodName = string | '*'; +/** + * A star `'*'` will always breakpoint. Otherwise, the string + * must be a non-negative integer. Once that is zero, always breakpoint. + * Otherwise decrement by one each time it matches until it reaches zero. + * In other words, the countdown represents the number of + * breakpoint occurrences to skip before actually breakpointing. + */ +export type MatchCountdown = number | '*'; +/** + * This is the external JSON representation, in which + * - the outer property name is the class-like tag or '*', + * - the inner property name is the method name or '*', + * - the value is a non-negative integer countdown or '*'. + */ +export type MessageBreakpoints = Record>; +/** + * This is the internal JSON representation, in which + * - the outer property name is the method name or '*', + * - the inner property name is the class-like tag or '*', + * - the value is a non-negative integer countdown or '*'. + */ +export type BreakpointTable = Record>; +export type MessageBreakpointTester = { + getBreakpoints: () => MessageBreakpoints; + setBreakpoints: (newBreakpoints?: MessageBreakpoints) => void; + shouldBreakpoint: (recipient: object, methodName: string | symbol | undefined) => boolean; +}; +//# sourceMappingURL=message-breakpoints.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/message-breakpoints.d.ts.map b/packages/eventual-send/src/message-breakpoints.d.ts.map new file mode 100644 index 0000000000..db4499a5f4 --- /dev/null +++ b/packages/eventual-send/src/message-breakpoints.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"message-breakpoints.d.ts","sourceRoot":"","sources":["message-breakpoints.js"],"names":[],"mappings":"AAyFO,wDAHI,MAAM,GACJ,uBAAuB,GAAG,SAAS,CA0F/C;;;;;;;;6BA1KY,MAAM,GAAG,GAAG;;;;;;;8BAQZ,MAAM,GAAG,GAAG;;;;;;;;6BAOZ,MAAM,GAAG,GAAG;;;;;;;iCAcZ,OAAO,cAAc,EAAE,OAAO,eAAe,EAAE,cAAc,CAAC,CAAC;;;;;;;8BAS/D,OAAO,eAAe,EAAE,OAAO,cAAc,EAAE,cAAc,CAAC,CAAC;;oBAK9D,MAAM,kBAAkB;sCACN,kBAAkB,KAAK,IAAI;kCAE3C,MAAM,cACL,MAAM,GAAG,MAAM,GAAG,SAAS,KACpC,OAAO"} \ No newline at end of file diff --git a/packages/eventual-send/src/no-shim.d.ts b/packages/eventual-send/src/no-shim.d.ts new file mode 100644 index 0000000000..a7f35be97c --- /dev/null +++ b/packages/eventual-send/src/no-shim.d.ts @@ -0,0 +1,17 @@ +export const E: ((x: T) => import("./E.js").ECallableOrMethods>) & { + readonly get: (x: T_1) => import("./E.js").EGetters>; + readonly resolve: { + (): Promise; + (value: T_2): Promise>; + (value: T_3 | PromiseLike): Promise>; + }; + readonly sendOnly: (x: T_4) => import("./E.js").ESendOnlyCallableOrMethods>; + readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => import("./E.js").ERef) | undefined, onrejected?: ((reason: any) => import("./E.js").ERef) | undefined) => Promise; +}; +export { hp as HandledPromise }; +export * from "./exports.js"; +declare const hp: { + new (executor: import("./handled-promise.js").HandledExecutor, unfulfilledHandler?: import("./handled-promise.js").Handler> | undefined): Promise; + prototype: Promise; +} & PromiseConstructor & import("./handled-promise.js").HandledPromiseStaticMethods; +//# sourceMappingURL=no-shim.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/no-shim.d.ts.map b/packages/eventual-send/src/no-shim.d.ts.map new file mode 100644 index 0000000000..65a5f02fca --- /dev/null +++ b/packages/eventual-send/src/no-shim.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"no-shim.d.ts","sourceRoot":"","sources":["no-shim.js"],"names":[],"mappings":"AAGA;;;;;;;;;EAA2B;;;AAD3B;;;oFAA0B"} \ No newline at end of file diff --git a/packages/eventual-send/src/postponed.d.ts b/packages/eventual-send/src/postponed.d.ts new file mode 100644 index 0000000000..2a849fd60c --- /dev/null +++ b/packages/eventual-send/src/postponed.d.ts @@ -0,0 +1,2 @@ +export function makePostponedHandler(HandledPromise: import('./types').HandledPromiseConstructor): [Required>, () => void]; +//# sourceMappingURL=postponed.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/postponed.d.ts.map b/packages/eventual-send/src/postponed.d.ts.map new file mode 100644 index 0000000000..a026f6a74b --- /dev/null +++ b/packages/eventual-send/src/postponed.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"postponed.d.ts","sourceRoot":"","sources":["postponed.js"],"names":[],"mappings":"AASO,qDAHI,OAAO,SAAS,EAAE,yBAAyB,GACzC,CAAC,SAAS,OAAO,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAsClE"} \ No newline at end of file diff --git a/packages/eventual-send/src/track-turns.d.ts b/packages/eventual-send/src/track-turns.d.ts new file mode 100644 index 0000000000..dca27cad95 --- /dev/null +++ b/packages/eventual-send/src/track-turns.d.ts @@ -0,0 +1,7 @@ +export function trackTurns(funcs: T): T; +/** + * An optional function that is not this-sensitive, expected to be called at + * bottom of stack to start a new turn. + */ +export type TurnStarterFn = ((...args: any[]) => any) | undefined; +//# sourceMappingURL=track-turns.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/track-turns.d.ts.map b/packages/eventual-send/src/track-turns.d.ts.map new file mode 100644 index 0000000000..ec06f7573f --- /dev/null +++ b/packages/eventual-send/src/track-turns.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"track-turns.d.ts","sourceRoot":"","sources":["track-turns.js"],"names":[],"mappings":"AAwFO,mEAiBN;;;;;uCAMuB,GAAG,EAAE,KAAK,GAAG"} \ No newline at end of file diff --git a/packages/eventual-send/test/get-hp.d.ts b/packages/eventual-send/test/get-hp.d.ts new file mode 100644 index 0000000000..bc6a2c39f7 --- /dev/null +++ b/packages/eventual-send/test/get-hp.d.ts @@ -0,0 +1,15 @@ +export const HandledPromise: { + new (executor: import("../src/handled-promise.js").HandledExecutor, unfulfilledHandler?: import("../src/handled-promise.js").Handler> | undefined): Promise; + prototype: Promise; +} & PromiseConstructor & import("../src/handled-promise.js").HandledPromiseStaticMethods; +export const E: ((x: T) => import("../src/E.js").ECallableOrMethods>) & { + readonly get: (x: T_1) => import("../src/E.js").EGetters>; + readonly resolve: { + (): Promise; + (value: T_2): Promise>; + (value: T_3 | PromiseLike): Promise>; + }; + readonly sendOnly: (x: T_4) => import("../src/E.js").ESendOnlyCallableOrMethods>; + readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => import("../src/E.js").ERef) | undefined, onrejected?: ((reason: any) => import("../src/E.js").ERef) | undefined) => Promise; +}; +//# sourceMappingURL=get-hp.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/test/get-hp.d.ts.map b/packages/eventual-send/test/get-hp.d.ts.map new file mode 100644 index 0000000000..da422b6ab8 --- /dev/null +++ b/packages/eventual-send/test/get-hp.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"get-hp.d.ts","sourceRoot":"","sources":["get-hp.js"],"names":[],"mappings":"AAGA;;;yFAAmD;AACnD;;;;;;;;;EAAuC"} \ No newline at end of file diff --git a/packages/eventual-send/utils.d.ts b/packages/eventual-send/utils.d.ts new file mode 100644 index 0000000000..f1ce792601 --- /dev/null +++ b/packages/eventual-send/utils.d.ts @@ -0,0 +1,3 @@ +export { getMethodNames } from "./src/local.js"; +export { makeMessageBreakpointTester } from "./src/message-breakpoints.js"; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/utils.d.ts.map b/packages/eventual-send/utils.d.ts.map new file mode 100644 index 0000000000..a060273e33 --- /dev/null +++ b/packages/eventual-send/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/exo/index.d.ts b/packages/exo/index.d.ts new file mode 100644 index 0000000000..bd4c7ed120 --- /dev/null +++ b/packages/exo/index.d.ts @@ -0,0 +1,3 @@ +export { GET_INTERFACE_GUARD } from "./src/get-interface.js"; +export { initEmpty, defineExoClass, defineExoClassKit, makeExo } from "./src/exo-makers.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/exo/index.d.ts.map b/packages/exo/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/exo/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/exo/src/exo-makers.d.ts b/packages/exo/src/exo-makers.d.ts new file mode 100644 index 0000000000..7c57da74dd --- /dev/null +++ b/packages/exo/src/exo-makers.d.ts @@ -0,0 +1,102 @@ +export function initEmpty(): {}; +export function defineExoClass any, M extends import("./exo-tools.js").Methods>(tag: string, interfaceGuard: import("@endo/patterns").InterfaceGuard<{ [K in keyof M]: import("@endo/patterns").MethodGuard; }> | undefined, init: I, methods: M & ThisType<{ + self: Guarded; + state: ReturnType; +}>, options?: FarClassOptions, any> | undefined): (...args: Parameters) => Guarded; +export function defineExoClassKit any, F extends Record>(tag: string, interfaceGuardKit: { [K in keyof F]: import("@endo/patterns").InterfaceGuard<{ [M in keyof F[K]]: import("@endo/patterns").MethodGuard; }>; } | undefined, init: I, methodsKit: F & { [K_1 in keyof F]: ThisType<{ + facets: GuardedKit; + state: ReturnType; +}>; }, options?: FarClassOptions, GuardedKit> | undefined): (...args: Parameters) => GuardedKit; +export function makeExo(tag: string, interfaceGuard: import("@endo/patterns").InterfaceGuard<{ [M in keyof T]: import("@endo/patterns").MethodGuard; }> | undefined, methods: T, options?: FarClassOptions, any> | undefined): Guarded; +export type FacetName = import('./exo-tools.js').FacetName; +export type Methods = import('./exo-tools.js').Methods; +export type ClassContext = import('./exo-tools.js').ClassContext; +export type KitContext = any> = import('./exo-tools.js').KitContext; +/** + * It looks like a copyRecord pattern, but the interpretation is different. + * Each property is distinct, is checked and changed separately. + */ +export type StateShape = { + [name: string]: any; +}; +/** + * Template for function-valued options for exo class or exo class kit + * definitions, for receiving powers back at definition time. For example, + * ```js + * let amplify; + * const makeFoo = defineExoClassKit( + * tag, + * interfaceGuardKit, + * initFn, + * behaviorKit, + * { + * receiveAmplifier(a) { amplify = a; }, + * }, + * ); + * ``` + * uses the `receiveAmplifier` option to receive, during the + * definition of this exo class kit, the power to amplify a facet of the kit. + */ +export type ReceivePower

= (power: P) => void; +/** + * The power to amplify a facet instance of the associated exo class kit + * into the record of all facets of this facet instance's cohort. + */ +export type Amplify = (exoFacet: any) => F; +/** + * The power to test if a value is an instance of the + * associated exo class, or a facet instance of the + * associated exo class kit. In the later case, if a `facetName` is provided, + * then it tests only whether the argument is a facet instance of that + * facet of the associated exo class kit. + */ +export type IsInstance = (exo: any, facetName?: string | undefined) => boolean; +/** + * Currently, this one options type is used both for regular exo classes + * as well as exo class kits. However, we may split these into distinct types + * in the future, as not all options make sense for both uses. + */ +export type FarClassOptions = { + /** + * If provided, the `finish` function is called after the instance has been + * initialized and registered, but before it is returned. Try to avoid using + * `finish` if you can, as we think we'd like to deprecate and retire it. + * OTOH, if you encounter a compelling need, please let us know so we can + * revise our plans. + */ + finish?: ((context: C) => void) | undefined; + /** + * If provided, it must be a RecordPattern, i.e., a CopyRecord which is also + * a Pattern. It thus has an exactly defined set of property names and + * a Pattern as the value of each property. This is supposed to be an invariant + * on the properties of an instance state record. + * TODO Though note that only the virtual and durable exos currently + * enforce the `stateShape` invariant. The heap exos defined in this + * package currently ignore `stateShape`, but will enforce this in the future. + */ + stateShape?: StateShape | undefined; + /** + * If a `receiveAmplifier` function is provided, it will be called during + * definition of the exo class kit with an `Amplify` function. If called + * during the definition of a normal exo or exo class, it will throw, since + * only exo kits can be amplified. + * An `Amplify` function is a function that takes a facet instance of + * this class kit as an argument, in which case it will return the facets + * record, giving access to all the facet instances of the same cohort. + */ + receiveAmplifier?: ReceivePower> | undefined; + /** + * If a `receiveInstanceTester` function is provided, it will be called + * during the definition of the exo class or exo class kit with an + * `IsInstance` function. The first argument of `IsInstance` + * is the value to be tested. When it may be a facet instance of an + * exo class kit, the optional second argument, if provided, is + * a `facetName`. In that case, the function tests only if the first + * argument is an instance of that facet of the associated exo class kit. + */ + receiveInstanceTester?: ReceivePower | undefined; +}; +export type Farable = M & import('@endo/eventual-send').RemotableBrand<{}, M>; +export type Guarded = Farable>; +export type GuardedKit> = { [K in keyof F]: Guarded; }; +//# sourceMappingURL=exo-makers.d.ts.map \ No newline at end of file diff --git a/packages/exo/src/exo-makers.d.ts.map b/packages/exo/src/exo-makers.d.ts.map new file mode 100644 index 0000000000..47331fc5b2 --- /dev/null +++ b/packages/exo/src/exo-makers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"exo-makers.d.ts","sourceRoot":"","sources":["exo-makers.js"],"names":[],"mappings":"AA0CO,6BAFM,EAAE,CAE2B;AA+InC,mDAXiB,GAAG,EAAE,KAAK,GAAG,mDAE1B,MAAM;;;8GAmEhB;AAkBM,sDAdiB,GAAG,EAAE,KAAK,GAAG,mEAE1B,MAAM;;;4HA8FhB;AAaM,yEARI,MAAM,4NAiBhB;wBAhUY,OAAO,gBAAgB,EAAE,SAAS;sBAClC,OAAO,gBAAgB,EAAE,OAAO;sFAMhC,OAAO,gBAAgB,EAAE,YAAY;oGAMrC,OAAO,gBAAgB,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;sDA4B3B,CAAC,KAAK,IAAI;;;;;0DASpB,GAAG,KACD,CAAC;;;;;;;;+BAWH,GAAG,qCAED,OAAO;;;;;;;;;;;;;;wBAcI,CAAC,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAqCrB,CAAC,GAAG,OAAO,qBAAqB,EAAE,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC;kEAKvD,QAAQ,CAAC,GAAG,OAAO,oBAAoB,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/exo/src/exo-tools.d.ts b/packages/exo/src/exo-tools.d.ts new file mode 100644 index 0000000000..58d5d0ce1f --- /dev/null +++ b/packages/exo/src/exo-tools.d.ts @@ -0,0 +1,27 @@ +export function defendPrototype>(tag: string, contextProvider: ContextProvider, behaviorMethods: T, thisfulMethods?: boolean | undefined, interfaceGuard?: InterfaceGuard<{ [M in keyof T]: import("@endo/patterns").MethodGuard; }> | undefined): T & import("./get-interface.js").GetInterfaceGuard & import("@endo/eventual-send").RemotableBrand<{}, T & import("./get-interface.js").GetInterfaceGuard>; +export function defendPrototypeKit>(tag: string, contextProviderKit: { [K in keyof F]: KitContextProvider; }, behaviorMethodsKit: F, thisfulMethods?: boolean | undefined, interfaceGuardKit?: { [K_1 in keyof F]: InterfaceGuard>; } | undefined): Record & import("@endo/eventual-send").RemotableBrand<{}, F[keyof F] & import("./get-interface.js").GetInterfaceGuard>>; +export type Method = import('@endo/patterns').Method; +export type MethodGuard = import('@endo/patterns').MethodGuard; +export type MethodGuardPayload = import('@endo/patterns').MethodGuardPayload; +export type InterfaceGuard = Record> = import('@endo/patterns').InterfaceGuard; +export type MatchConfig = { + declaredLen: number; + hasRestArgGuard: boolean; + restArgGuardIsRaw: boolean; + paramsPattern: import('@endo/patterns').Pattern; + redactedIndices: number[]; +}; +export type FacetName = string; +export type Methods = Record; +export type ClassContext = { + state: S; + self: M; +}; +export type KitContext = any> = { + state: S; + facets: F; +}; +export type ClassContextProvider = (representative: any) => ClassContext | undefined; +export type KitContextProvider = (facet: any) => KitContext | undefined; +export type ContextProvider = ClassContextProvider | KitContextProvider; +//# sourceMappingURL=exo-tools.d.ts.map \ No newline at end of file diff --git a/packages/exo/src/exo-tools.d.ts.map b/packages/exo/src/exo-tools.d.ts.map new file mode 100644 index 0000000000..f04a60f223 --- /dev/null +++ b/packages/exo/src/exo-tools.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"exo-tools.d.ts","sourceRoot":"","sources":["exo-tools.js"],"names":[],"mappings":"AA4YO,sFANI,MAAM,mBACN,eAAe,qUA4FzB;AAWM,2EANI,MAAM,qdAyChB;qBA/fa,OAAO,gBAAgB,EAAE,MAAM;0BAC/B,OAAO,gBAAgB,EAAE,WAAW;iCACpC,OAAO,gBAAgB,EAAE,kBAAkB;8JAG5C,OAAO,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAC;;iBAyBzC,MAAM;qBACN,OAAO;uBACP,OAAO;mBACP,OAAO,gBAAgB,EAAE,OAAO;qBAChC,MAAM,EAAE;;wBAmOT,MAAM;sBAIN,OAAO,WAAW,EAAE,gBAAgB,CAAC;6DAMrC;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,CAAA;CAAE;2EAMrB;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE;oDAKf,GAAG,KAChB,YAAY,GAAG,SAAS;yCAIX,GAAG,KAAK,UAAU,GAAG,SAAS;8BAIrC,oBAAoB,GAAG,kBAAkB"} \ No newline at end of file diff --git a/packages/exo/src/get-interface.d.ts b/packages/exo/src/get-interface.d.ts new file mode 100644 index 0000000000..1062b609f1 --- /dev/null +++ b/packages/exo/src/get-interface.d.ts @@ -0,0 +1,18 @@ +/** + * The name of the automatically added default meta-method for + * obtaining an exo's interface, if it has one. + * + * Intended to be similar to `GET_METHOD_NAMES` from `@endo/pass-style`. + * + * TODO Name to be bikeshed. Perhaps even whether it is a + * string or symbol to be bikeshed. See + * https://github.com/endojs/endo/pull/1809#discussion_r1388052454 + * + * TODO Beware that an exo's interface can change across an upgrade, + * so remotes that cache it can become stale. + */ +export const GET_INTERFACE_GUARD: "__getInterfaceGuard__"; +export type GetInterfaceGuard> = { + __getInterfaceGuard__?: (() => import("@endo/patterns").InterfaceGuard<{ [K in keyof M]: import("@endo/patterns").MethodGuard; }> | undefined) | undefined; +}; +//# sourceMappingURL=get-interface.d.ts.map \ No newline at end of file diff --git a/packages/exo/src/get-interface.d.ts.map b/packages/exo/src/get-interface.d.ts.map new file mode 100644 index 0000000000..0d74546f64 --- /dev/null +++ b/packages/exo/src/get-interface.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"get-interface.d.ts","sourceRoot":"","sources":["get-interface.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,0DAA2D"} \ No newline at end of file diff --git a/packages/exo/tools.d.ts b/packages/exo/tools.d.ts new file mode 100644 index 0000000000..0537b0b5c8 --- /dev/null +++ b/packages/exo/tools.d.ts @@ -0,0 +1,2 @@ +export { defendPrototype, defendPrototypeKit } from "./src/exo-tools.js"; +//# sourceMappingURL=tools.d.ts.map \ No newline at end of file diff --git a/packages/exo/tools.d.ts.map b/packages/exo/tools.d.ts.map new file mode 100644 index 0000000000..cff53fc89f --- /dev/null +++ b/packages/exo/tools.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/far/src/index.d.ts b/packages/far/src/index.d.ts new file mode 100644 index 0000000000..4ddb696a1e --- /dev/null +++ b/packages/far/src/index.d.ts @@ -0,0 +1,23 @@ +export { E } from "@endo/eventual-send"; +/** + * Declare an object that is potentially a far reference of type Primary whose + * auxilliary data has type Local. This should be used only for consumers of + * Far objects in arguments and declarations; the only creators of Far objects + * are distributed object creator components like the `Far` or `Remotable` + * functions. + */ +export type FarRef> = import('@endo/eventual-send').FarRef; +/** + * Declare that `T` may or may not be a Promise. This should be used only for + * consumers of arguments and declarations; return values should specifically be + * `Promise` or `T` itself. + */ +export type ERef = import('@endo/eventual-send').ERef; +/** + * Declare a near object that must only be invoked with E, even locally. It + * supports the `T` interface but additionally permits `T`'s methods to return + * `PromiseLike`s even if `T` declares them as only synchronous. + */ +export type EOnly = import('@endo/eventual-send').EOnly; +export { Far, getInterfaceOf, passStyleOf } from "@endo/pass-style"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/far/src/index.d.ts.map b/packages/far/src/index.d.ts.map new file mode 100644 index 0000000000..892db42def --- /dev/null +++ b/packages/far/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;;;;;;uFAMa,OAAO,qBAAqB,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC;;;;;;sBAUpD,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC;;;;;;uBAQrC,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/import-bundle/source-map-node-powers.d.ts b/packages/import-bundle/source-map-node-powers.d.ts new file mode 100644 index 0000000000..dbbd852ea3 --- /dev/null +++ b/packages/import-bundle/source-map-node-powers.d.ts @@ -0,0 +1,2 @@ +export * from "./src/source-map-node-powers.js"; +//# sourceMappingURL=source-map-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/source-map-node-powers.d.ts.map b/packages/import-bundle/source-map-node-powers.d.ts.map new file mode 100644 index 0000000000..98c43b4996 --- /dev/null +++ b/packages/import-bundle/source-map-node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-map-node-powers.d.ts","sourceRoot":"","sources":["source-map-node-powers.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/import-bundle/source-map-node.d.ts b/packages/import-bundle/source-map-node.d.ts new file mode 100644 index 0000000000..5b56377afd --- /dev/null +++ b/packages/import-bundle/source-map-node.d.ts @@ -0,0 +1,2 @@ +export * from "./src/source-map-node.js"; +//# sourceMappingURL=source-map-node.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/source-map-node.d.ts.map b/packages/import-bundle/source-map-node.d.ts.map new file mode 100644 index 0000000000..78ff609023 --- /dev/null +++ b/packages/import-bundle/source-map-node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-map-node.d.ts","sourceRoot":"","sources":["source-map-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/import-bundle/src/compartment-wrapper.d.ts b/packages/import-bundle/src/compartment-wrapper.d.ts new file mode 100644 index 0000000000..acfd8e51e4 --- /dev/null +++ b/packages/import-bundle/src/compartment-wrapper.d.ts @@ -0,0 +1,5 @@ +export function wrapInescapableCompartment(OldCompartment: any, inescapableTransforms: any, inescapableGlobalProperties: any): { + (endowments: any, modules: any, oldOptions?: {}): any; + prototype: any; +}; +//# sourceMappingURL=compartment-wrapper.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/compartment-wrapper.d.ts.map b/packages/import-bundle/src/compartment-wrapper.d.ts.map new file mode 100644 index 0000000000..ba70c2db78 --- /dev/null +++ b/packages/import-bundle/src/compartment-wrapper.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"compartment-wrapper.d.ts","sourceRoot":"","sources":["compartment-wrapper.js"],"names":[],"mappings":"AAAA;;;EAkEC"} \ No newline at end of file diff --git a/packages/import-bundle/src/index.d.ts b/packages/import-bundle/src/index.d.ts new file mode 100644 index 0000000000..5955eb9f43 --- /dev/null +++ b/packages/import-bundle/src/index.d.ts @@ -0,0 +1,2 @@ +export function importBundle(bundle: any, options?: {}, powers?: {}): Promise; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/index.d.ts.map b/packages/import-bundle/src/index.d.ts.map new file mode 100644 index 0000000000..39678d02ef --- /dev/null +++ b/packages/import-bundle/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAeA,mFA+FC"} \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node-powers.d.ts b/packages/import-bundle/src/source-map-node-powers.d.ts new file mode 100644 index 0000000000..6266c02817 --- /dev/null +++ b/packages/import-bundle/src/source-map-node-powers.d.ts @@ -0,0 +1,12 @@ +export function makeEndoSourceMapLocator(powers: { + url: typeof import('node:url'); + os: typeof import('node:os'); + process: Process; +}): ({ sha512 }: { + sha512: string; +}) => string; +export type Process = { + env: Record; + platform: string; +}; +//# sourceMappingURL=source-map-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node-powers.d.ts.map b/packages/import-bundle/src/source-map-node-powers.d.ts.map new file mode 100644 index 0000000000..a3aa048c2b --- /dev/null +++ b/packages/import-bundle/src/source-map-node-powers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-map-node-powers.d.ts","sourceRoot":"","sources":["source-map-node-powers.js"],"names":[],"mappings":"AAcO;IAJsC,GAAG,EAArC,cAAc,UAAU,CAAC;IACQ,EAAE,EAAnC,cAAc,SAAS,CAAC;IACR,OAAO,EAAvB,OAAO;;IAaW,MAAM,EAAtB,MAAM;aASlB;;SA9Ba,OAAO,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;cAClC,MAAM"} \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node.d.ts b/packages/import-bundle/src/source-map-node.d.ts new file mode 100644 index 0000000000..037c8e07ef --- /dev/null +++ b/packages/import-bundle/src/source-map-node.d.ts @@ -0,0 +1,4 @@ +export const computeSourceMapLocation: ({ sha512 }: { + sha512: string; +}) => string; +//# sourceMappingURL=source-map-node.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node.d.ts.map b/packages/import-bundle/src/source-map-node.d.ts.map new file mode 100644 index 0000000000..1e66bbf20f --- /dev/null +++ b/packages/import-bundle/src/source-map-node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"source-map-node.d.ts","sourceRoot":"","sources":["source-map-node.js"],"names":[],"mappings":"AAKA;;aAIG"} \ No newline at end of file diff --git a/packages/init/debug.d.ts b/packages/init/debug.d.ts new file mode 100644 index 0000000000..cb377b94cb --- /dev/null +++ b/packages/init/debug.d.ts @@ -0,0 +1,2 @@ +export * from "@endo/lockdown/commit-debug.js"; +//# sourceMappingURL=debug.d.ts.map \ No newline at end of file diff --git a/packages/init/debug.d.ts.map b/packages/init/debug.d.ts.map new file mode 100644 index 0000000000..abe2434c3a --- /dev/null +++ b/packages/init/debug.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["debug.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/index.d.ts b/packages/init/index.d.ts new file mode 100644 index 0000000000..1a8fb2067e --- /dev/null +++ b/packages/init/index.d.ts @@ -0,0 +1,2 @@ +export * from "@endo/lockdown/commit.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/init/index.d.ts.map b/packages/init/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/init/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/legacy.d.ts b/packages/init/legacy.d.ts new file mode 100644 index 0000000000..b6c5edb903 --- /dev/null +++ b/packages/init/legacy.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=legacy.d.ts.map \ No newline at end of file diff --git a/packages/init/legacy.d.ts.map b/packages/init/legacy.d.ts.map new file mode 100644 index 0000000000..0c38f4caf9 --- /dev/null +++ b/packages/init/legacy.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["legacy.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/pre-bundle-source.d.ts b/packages/init/pre-bundle-source.d.ts new file mode 100644 index 0000000000..3efda1a348 --- /dev/null +++ b/packages/init/pre-bundle-source.d.ts @@ -0,0 +1,2 @@ +export * from "@endo/init/pre.js"; +//# sourceMappingURL=pre-bundle-source.d.ts.map \ No newline at end of file diff --git a/packages/init/pre-bundle-source.d.ts.map b/packages/init/pre-bundle-source.d.ts.map new file mode 100644 index 0000000000..0a1f81e79b --- /dev/null +++ b/packages/init/pre-bundle-source.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pre-bundle-source.d.ts","sourceRoot":"","sources":["pre-bundle-source.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/pre-remoting.d.ts b/packages/init/pre-remoting.d.ts new file mode 100644 index 0000000000..2e0b29e690 --- /dev/null +++ b/packages/init/pre-remoting.d.ts @@ -0,0 +1,3 @@ +export * from "@endo/init/pre.js"; +export * from "@endo/eventual-send/shim.js"; +//# sourceMappingURL=pre-remoting.d.ts.map \ No newline at end of file diff --git a/packages/init/pre-remoting.d.ts.map b/packages/init/pre-remoting.d.ts.map new file mode 100644 index 0000000000..b6608cea59 --- /dev/null +++ b/packages/init/pre-remoting.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pre-remoting.d.ts","sourceRoot":"","sources":["pre-remoting.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/pre.d.ts b/packages/init/pre.d.ts new file mode 100644 index 0000000000..138608b726 --- /dev/null +++ b/packages/init/pre.d.ts @@ -0,0 +1,2 @@ +export * from "@endo/lockdown"; +//# sourceMappingURL=pre.d.ts.map \ No newline at end of file diff --git a/packages/init/pre.d.ts.map b/packages/init/pre.d.ts.map new file mode 100644 index 0000000000..900356edbb --- /dev/null +++ b/packages/init/pre.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pre.d.ts","sourceRoot":"","sources":["pre.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/src/node-async-local-storage-patch.d.ts b/packages/init/src/node-async-local-storage-patch.d.ts new file mode 100644 index 0000000000..061b825b2a --- /dev/null +++ b/packages/init/src/node-async-local-storage-patch.d.ts @@ -0,0 +1,16 @@ +/// +export type AsyncLocalStorageInternal = { + enabled: boolean; + _propagate: typeof _propagate; + _enable: (this: AsyncLocalStorage) => void; +}; +/** + * @this {AsyncLocalStorage & AsyncLocalStorageInternal} + * @param {object} resource + * @param {object} triggerResource + * @param {string} [type] + */ +declare function _propagate(this: AsyncLocalStorage & AsyncLocalStorageInternal, resource: object, triggerResource: object, type?: string | undefined): void; +import { AsyncLocalStorage } from 'node:async_hooks'; +export {}; +//# sourceMappingURL=node-async-local-storage-patch.d.ts.map \ No newline at end of file diff --git a/packages/init/src/node-async-local-storage-patch.d.ts.map b/packages/init/src/node-async-local-storage-patch.d.ts.map new file mode 100644 index 0000000000..889d9c5a0b --- /dev/null +++ b/packages/init/src/node-async-local-storage-patch.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-async-local-storage-patch.d.ts","sourceRoot":"","sources":["node-async-local-storage-patch.js"],"names":[],"mappings":";;aAec,OAAO;gBACP,iBAAiB;+CACY,IAAI;;AAa/C;;;;;GAKG;AACH,gGAJW,MAAM,mBACN,MAAM,mCAQhB;kCAvCyD,kBAAkB"} \ No newline at end of file diff --git a/packages/init/src/node-async_hooks-patch.d.ts b/packages/init/src/node-async_hooks-patch.d.ts new file mode 100644 index 0000000000..6e8f03429f --- /dev/null +++ b/packages/init/src/node-async_hooks-patch.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=node-async_hooks-patch.d.ts.map \ No newline at end of file diff --git a/packages/init/src/node-async_hooks-patch.d.ts.map b/packages/init/src/node-async_hooks-patch.d.ts.map new file mode 100644 index 0000000000..6f9f710cf2 --- /dev/null +++ b/packages/init/src/node-async_hooks-patch.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-async_hooks-patch.d.ts","sourceRoot":"","sources":["node-async_hooks-patch.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/src/node-async_hooks.d.ts b/packages/init/src/node-async_hooks.d.ts new file mode 100644 index 0000000000..6236e2d2e1 --- /dev/null +++ b/packages/init/src/node-async_hooks.d.ts @@ -0,0 +1,4 @@ +export function setup({ withDestroy }?: { + withDestroy?: boolean | undefined; +}): void; +//# sourceMappingURL=node-async_hooks.d.ts.map \ No newline at end of file diff --git a/packages/init/src/node-async_hooks.d.ts.map b/packages/init/src/node-async_hooks.d.ts.map new file mode 100644 index 0000000000..6e8a9ebe66 --- /dev/null +++ b/packages/init/src/node-async_hooks.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"node-async_hooks.d.ts","sourceRoot":"","sources":["node-async_hooks.js"],"names":[],"mappings":"AAuMO;;SAwCN"} \ No newline at end of file diff --git a/packages/init/src/pre-node.d.ts b/packages/init/src/pre-node.d.ts new file mode 100644 index 0000000000..0e6b9ec99e --- /dev/null +++ b/packages/init/src/pre-node.d.ts @@ -0,0 +1,2 @@ +export * from "../pre.js"; +//# sourceMappingURL=pre-node.d.ts.map \ No newline at end of file diff --git a/packages/init/src/pre-node.d.ts.map b/packages/init/src/pre-node.d.ts.map new file mode 100644 index 0000000000..82b44d7a1f --- /dev/null +++ b/packages/init/src/pre-node.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"pre-node.d.ts","sourceRoot":"","sources":["pre-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/unsafe-fast.d.ts b/packages/init/unsafe-fast.d.ts new file mode 100644 index 0000000000..d93c44139b --- /dev/null +++ b/packages/init/unsafe-fast.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=unsafe-fast.d.ts.map \ No newline at end of file diff --git a/packages/init/unsafe-fast.d.ts.map b/packages/init/unsafe-fast.d.ts.map new file mode 100644 index 0000000000..bc14ea1e05 --- /dev/null +++ b/packages/init/unsafe-fast.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"unsafe-fast.d.ts","sourceRoot":"","sources":["unsafe-fast.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/lp32/index.d.ts b/packages/lp32/index.d.ts new file mode 100644 index 0000000000..b57d944eb9 --- /dev/null +++ b/packages/lp32/index.d.ts @@ -0,0 +1,3 @@ +export { makeLp32Reader } from "./reader.js"; +export { makeLp32Writer } from "./writer.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/lp32/index.d.ts.map b/packages/lp32/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/lp32/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/lp32/reader.d.ts b/packages/lp32/reader.d.ts new file mode 100644 index 0000000000..5859afbf97 --- /dev/null +++ b/packages/lp32/reader.d.ts @@ -0,0 +1,5 @@ +export function makeLp32Reader(reader: Iterable | AsyncIterable, opts?: { + name?: string | undefined; + capacity?: number | undefined; +} | undefined): import('@endo/stream').Reader; +//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/lp32/reader.d.ts.map b/packages/lp32/reader.d.ts.map new file mode 100644 index 0000000000..917a5c2dd1 --- /dev/null +++ b/packages/lp32/reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AAiFO,uCANI,SAAS,UAAU,CAAC,GAAG,cAAc,UAAU,CAAC;WAEhD,MAAM;eACN,MAAM;gBACJ,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,CAI3D"} \ No newline at end of file diff --git a/packages/lp32/src/host-endian.d.ts b/packages/lp32/src/host-endian.d.ts new file mode 100644 index 0000000000..e74c0db1d0 --- /dev/null +++ b/packages/lp32/src/host-endian.d.ts @@ -0,0 +1,2 @@ +export const hostIsLittleEndian: boolean; +//# sourceMappingURL=host-endian.d.ts.map \ No newline at end of file diff --git a/packages/lp32/src/host-endian.d.ts.map b/packages/lp32/src/host-endian.d.ts.map new file mode 100644 index 0000000000..644ba06d4a --- /dev/null +++ b/packages/lp32/src/host-endian.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"host-endian.d.ts","sourceRoot":"","sources":["host-endian.js"],"names":[],"mappings":"AAQA,yCAAuD"} \ No newline at end of file diff --git a/packages/lp32/writer.d.ts b/packages/lp32/writer.d.ts new file mode 100644 index 0000000000..cc89e96ca4 --- /dev/null +++ b/packages/lp32/writer.d.ts @@ -0,0 +1,6 @@ +export function makeLp32Writer(output: import('@endo/stream').Writer, { name, maxMessageLength, littleEndian, }?: { + maxMessageLength?: number | undefined; + name?: string | undefined; + littleEndian?: boolean | undefined; +}): import('@endo/stream').Writer; +//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/lp32/writer.d.ts.map b/packages/lp32/writer.d.ts.map new file mode 100644 index 0000000000..cf0e99c115 --- /dev/null +++ b/packages/lp32/writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAcO,uCAPI,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC;IAEtC,gBAAgB;IAChB,IAAI;IACH,YAAY;IACzB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAmChE"} \ No newline at end of file diff --git a/packages/marshal/index.d.ts b/packages/marshal/index.d.ts new file mode 100644 index 0000000000..2d06fae52b --- /dev/null +++ b/packages/marshal/index.d.ts @@ -0,0 +1,10 @@ +export { deeplyFulfilled } from "./src/deeplyFulfilled.js"; +export { QCLASS } from "./src/encodeToCapData.js"; +export { makeMarshal } from "./src/marshal.js"; +export { decodeToJustin } from "./src/marshal-justin.js"; +export * from "./src/types.js"; +export * from "@endo/pass-style"; +export { stringify, parse } from "./src/marshal-stringify.js"; +export { makePassableKit, makeEncodePassable, makeDecodePassable, isEncodedRemotable, zeroPad, recordNames, recordValues } from "./src/encodePassable.js"; +export { trivialComparator, assertRankSorted, compareRank, isRankSorted, sortByRank, compareAntiRank, makeFullOrderComparatorKit, getPassStyleCover, intersectRankCovers, unionRankCovers } from "./src/rankOrder.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/marshal/index.d.ts.map b/packages/marshal/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/marshal/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/marshal/src/deeplyFulfilled.d.ts b/packages/marshal/src/deeplyFulfilled.d.ts new file mode 100644 index 0000000000..af0a1531e7 --- /dev/null +++ b/packages/marshal/src/deeplyFulfilled.d.ts @@ -0,0 +1,4 @@ +export function deeplyFulfilled(val: Passable): Promise; +export type Passable = import('@endo/pass-style').Passable; +export type ERef = import('@endo/eventual-send').ERef; +//# sourceMappingURL=deeplyFulfilled.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/deeplyFulfilled.d.ts.map b/packages/marshal/src/deeplyFulfilled.d.ts.map new file mode 100644 index 0000000000..c27d1a31d6 --- /dev/null +++ b/packages/marshal/src/deeplyFulfilled.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"deeplyFulfilled.d.ts","sourceRoot":"","sources":["deeplyFulfilled.js"],"names":[],"mappings":"AA4CO,qCAHI,QAAQ,GACN,QAAQ,QAAQ,CAAC,CAyC7B;uBA7Ea,OAAO,kBAAkB,EAAE,QAAQ;sBACvB,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/marshal/src/dot-membrane.d.ts b/packages/marshal/src/dot-membrane.d.ts new file mode 100644 index 0000000000..e7c2079a86 --- /dev/null +++ b/packages/marshal/src/dot-membrane.d.ts @@ -0,0 +1,5 @@ +export function makeDotMembraneKit(target: any): { + proxy: any; + revoke: (reasonString: any) => void; +}; +//# sourceMappingURL=dot-membrane.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/dot-membrane.d.ts.map b/packages/marshal/src/dot-membrane.d.ts.map new file mode 100644 index 0000000000..4793fb9671 --- /dev/null +++ b/packages/marshal/src/dot-membrane.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"dot-membrane.d.ts","sourceRoot":"","sources":["dot-membrane.js"],"names":[],"mappings":"AAiJO;;;EAMN"} \ No newline at end of file diff --git a/packages/marshal/src/encodePassable.d.ts b/packages/marshal/src/encodePassable.d.ts new file mode 100644 index 0000000000..f72b9c76f0 --- /dev/null +++ b/packages/marshal/src/encodePassable.d.ts @@ -0,0 +1,48 @@ +export function recordNames(record: CopyRecord): string[]; +export function recordValues(record: CopyRecord, names: string[]): T[]; +export function zeroPad(n: unknown, size: number): string; +export function makePassableKit(options?: (EncodeOptions & DecodeOptions) | undefined): PassableKit; +export function makeEncodePassable(encodeOptions?: EncodeOptions | undefined): PassableKit['encodePassable']; +export function makeDecodePassable(decodeOptions?: DecodeOptions | undefined): PassableKit['decodePassable']; +export function isEncodedRemotable(encoded: any): boolean; +/** + * @type {Record} + * The single prefix characters to be used for each PassStyle category. + * `bigint` is a two-character string because each of those characters + * individually is a valid bigint prefix (`n` for "negative" and `p` for + * "positive"), and copyArray is a two-character string because one encoding + * prefixes arrays with `[` while the other uses `^` (which is prohibited from + * appearing in an encoded string). + * The ordering of these prefixes is the same as the rankOrdering of their + * respective PassStyles, and rankOrder.js imports the table for this purpose. + * + * In addition, `|` is the remotable->ordinal mapping prefix: + * This is not used in covers but it is + * reserved from the same set of strings. Note that the prefix is > any + * prefix used by any cover so that ordinal mapping keys are always outside + * the range of valid collection entry keys. + */ +export const passStylePrefixes: Record; +export type PassStyle = import('@endo/pass-style').PassStyle; +export type Passable = import('@endo/pass-style').Passable; +export type Remotable = import('@endo/pass-style').RemotableObject; +export type CopyRecord = import('@endo/pass-style').CopyRecord; +export type RankCover = import('./types.js').RankCover; +export type EncodeOptions = { + encodeRemotable?: ((remotable: Remotable, encodeRecur: (p: Passable) => string) => string) | undefined; + encodePromise?: ((promise: Promise, encodeRecur: (p: Passable) => string) => string) | undefined; + encodeError?: ((error: Error, encodeRecur: (p: Passable) => string) => string) | undefined; + format?: "legacyOrdered" | "compactOrdered" | undefined; +}; +export type DecodeOptions = { + decodeRemotable?: ((encodedRemotable: string, decodeRecur: (e: string) => Passable) => Remotable) | undefined; + decodePromise?: ((encodedPromise: string, decodeRecur: (e: string) => Passable) => Promise) | undefined; + decodeError?: ((encodedError: string, decodeRecur: (e: string) => Passable) => Error) | undefined; +}; +export type PassableKit = { + encodePassable: ReturnType<(encodeStringSuffix: (str: string) => string, encodeArray: (arr: unknown[], encodeRecur: (p: any) => string) => string, options: Required & { + verifyEncoding?: ((encoded: string, label: string) => void) | undefined; + }) => (p: any) => string>; + decodePassable: ReturnType<(decodeStringSuffix: (encoded: string) => string, decodeArray: (encoded: string, decodeRecur: (e: string) => any, skip?: number | undefined) => unknown[], options: Required) => (encoded: string, skip?: number | undefined) => any>; +}; +//# sourceMappingURL=encodePassable.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/encodePassable.d.ts.map b/packages/marshal/src/encodePassable.d.ts.map new file mode 100644 index 0000000000..d80eca24fb --- /dev/null +++ b/packages/marshal/src/encodePassable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encodePassable.d.ts","sourceRoot":"","sources":["encodePassable.js"],"names":[],"mappings":"AAiDO,uDAFM,MAAM,EAAE,CAQ+C;AAY7D,8DAHI,MAAM,EAAE,OAIsB;AAYlC,2BAJI,OAAO,QACP,MAAM,GACJ,MAAM,CAQlB;AAspBM,wFAFM,WAAW,CA8EvB;AAOM,+EAFM,WAAW,CAAC,gBAAgB,CAAC,CAKzC;AAOM,+EAFM,WAAW,CAAC,gBAAgB,CAAC,CAKzC;AAGM,0DAA+D;AAKtE;;;;;;;;;;;;;;;;GAgBG;AACH,gCAhBU,OAAO,SAAS,EAAE,MAAM,CAAC,CA8BjC;wBAx2BY,OAAO,kBAAkB,EAAE,SAAS;uBACpC,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,eAAe;kDAG3C,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;wBAEvC,OAAO,YAAY,EAAE,SAAS;;mCAihB5B,SAAS,mBACH,QAAQ,KAAK,MAAM,KACjC,MAAM;8DAGQ,QAAQ,KAAK,MAAM,KACjC,MAAM;2BAEF,KAAK,mBACK,QAAQ,KAAK,MAAM,KACjC,MAAM;;;;0CA6FS,MAAM,mBACP,MAAM,KAAK,QAAQ,KACjC,SAAS;sCAEI,MAAM,mBACL,MAAM,KAAK,QAAQ;kCAGtB,MAAM,mBACH,MAAM,KAAK,QAAQ,KACjC,KAAK;;;oBAgFC;;6BAA2B;oBAC3B,+PAA2B"} \ No newline at end of file diff --git a/packages/marshal/src/encodeToCapData.d.ts b/packages/marshal/src/encodeToCapData.d.ts new file mode 100644 index 0000000000..6631e3320b --- /dev/null +++ b/packages/marshal/src/encodeToCapData.d.ts @@ -0,0 +1,22 @@ +export function makeEncodeToCapData(encodeOptions?: EncodeToCapDataOptions | undefined): (passable: Passable) => Encoding; +export function makeDecodeFromCapData(decodeOptions?: DecodeOptions | undefined): (encoded: Encoding) => Passable; +export type Passable = import('@endo/pass-style').Passable; +export type Encoding = import('./types.js').Encoding; +export type Remotable = typeof import("@endo/pass-style").Remotable; +export type EncodingUnion = import('./types.js').EncodingUnion; +export type EncodeToCapDataOptions = { + encodeRemotableToCapData?: ((remotable: Remotable, encodeRecur: (p: Passable) => Encoding) => Encoding) | undefined; + encodePromiseToCapData?: ((promise: Promise, encodeRecur: (p: Passable) => Encoding) => Encoding) | undefined; + encodeErrorToCapData?: ((error: Error, encodeRecur: (p: Passable) => Encoding) => Encoding) | undefined; +}; +export type DecodeOptions = { + decodeRemotableFromCapData?: ((encodedRemotable: Encoding, decodeRecur: (e: Encoding) => Passable) => (Promise | Remotable)) | undefined; + decodePromiseFromCapData?: ((encodedPromise: Encoding, decodeRecur: (e: Encoding) => Passable) => (Promise | Remotable)) | undefined; + decodeErrorFromCapData?: ((encodedError: Encoding, decodeRecur: (e: Encoding) => Passable) => Error) | undefined; +}; +/** + * Special property name that indicates an encoding that needs special + * decoding. + */ +export const QCLASS: "@qclass"; +//# sourceMappingURL=encodeToCapData.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/encodeToCapData.d.ts.map b/packages/marshal/src/encodeToCapData.d.ts.map new file mode 100644 index 0000000000..dad1173974 --- /dev/null +++ b/packages/marshal/src/encodeToCapData.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encodeToCapData.d.ts","sourceRoot":"","sources":["encodeToCapData.js"],"names":[],"mappings":"AAuFO,oGAFiB,QAAQ,KAAK,QAAQ,CAkL5C;AAqCM,4FAFgB,QAAQ,KAAK,QAAQ,CA+I3C;uBApaa,OAAO,kBAAkB,EAAE,QAAQ;uBACnC,OAAO,YAAY,EAAE,QAAQ;;4BAE7B,OAAO,YAAY,EAAE,aAAa;;4CAwChC,SAAS,mBACH,QAAQ,KAAK,QAAQ,KACnC,QAAQ;uEAGM,QAAQ,KAAK,QAAQ,KACnC,QAAQ;oCAEJ,KAAK,mBACK,QAAQ,KAAK,QAAQ,KACnC,QAAQ;;;qDAmMO,QAAQ,mBACT,QAAQ,KAAK,QAAQ,KACnC,CAAC,eAAQ,SAAS,CAAC;iDAEN,QAAQ,mBACP,QAAQ,KAAK,QAAQ,KACnC,CAAC,eAAQ,SAAS,CAAC;6CAER,QAAQ,mBACL,QAAQ,KAAK,QAAQ,KACnC,KAAK;;AAlPb;;;GAGG;AACH,+BAAyB"} \ No newline at end of file diff --git a/packages/marshal/src/encodeToSmallcaps.d.ts b/packages/marshal/src/encodeToSmallcaps.d.ts new file mode 100644 index 0000000000..5a29270617 --- /dev/null +++ b/packages/marshal/src/encodeToSmallcaps.d.ts @@ -0,0 +1,17 @@ +export function makeEncodeToSmallcaps(encodeOptions?: EncodeToSmallcapsOptions | undefined): (passable: Passable) => SmallcapsEncoding; +export function makeDecodeFromSmallcaps(decodeOptions?: DecodeFromSmallcapsOptions | undefined): (encoded: SmallcapsEncoding) => Passable; +export type Passable = import('@endo/pass-style').Passable; +export type Remotable = typeof import("@endo/pass-style").Remotable; +export type SmallcapsEncoding = any; +export type SmallcapsEncodingUnion = any; +export type EncodeToSmallcapsOptions = { + encodeRemotableToSmallcaps?: ((remotable: Remotable, encodeRecur: (p: Passable) => SmallcapsEncoding) => SmallcapsEncoding) | undefined; + encodePromiseToSmallcaps?: ((promise: Promise, encodeRecur: (p: Passable) => SmallcapsEncoding) => SmallcapsEncoding) | undefined; + encodeErrorToSmallcaps?: ((error: Error, encodeRecur: (p: Passable) => SmallcapsEncoding) => SmallcapsEncoding) | undefined; +}; +export type DecodeFromSmallcapsOptions = { + decodeRemotableFromSmallcaps?: ((encodedRemotable: SmallcapsEncoding, decodeRecur: (e: SmallcapsEncoding) => Passable) => Remotable) | undefined; + decodePromiseFromSmallcaps?: ((encodedPromise: SmallcapsEncoding, decodeRecur: (e: SmallcapsEncoding) => Passable) => Promise) | undefined; + decodeErrorFromSmallcaps?: ((encodedError: SmallcapsEncoding, decodeRecur: (e: SmallcapsEncoding) => Passable) => Error) | undefined; +}; +//# sourceMappingURL=encodeToSmallcaps.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/encodeToSmallcaps.d.ts.map b/packages/marshal/src/encodeToSmallcaps.d.ts.map new file mode 100644 index 0000000000..550b5fcefd --- /dev/null +++ b/packages/marshal/src/encodeToSmallcaps.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encodeToSmallcaps.d.ts","sourceRoot":"","sources":["encodeToSmallcaps.js"],"names":[],"mappings":"AAuHO,wGAFiB,QAAQ,KAAK,iBAAiB,CAgLrD;AA8BM,2GAFgB,iBAAiB,KAAK,QAAQ,CAoJpD;uBAjca,OAAO,kBAAkB,EAAE,QAAQ;;gCAInC,GAAG;qCACH,GAAG;;8CAkED,SAAS,mBACH,QAAQ,KAAK,iBAAiB,KAC5C,iBAAiB;yEAGH,QAAQ,KAAK,iBAAiB,KAC5C,iBAAiB;sCAEb,KAAK,mBACK,QAAQ,KAAK,iBAAiB,KAC5C,iBAAiB;;;uDAsMF,iBAAiB,mBAClB,iBAAiB,KAAK,QAAQ,KAC5C,SAAS;mDAEI,iBAAiB,mBAChB,iBAAiB,KAAK,QAAQ;+CAGjC,iBAAiB,mBACd,iBAAiB,KAAK,QAAQ,KAC5C,KAAK"} \ No newline at end of file diff --git a/packages/marshal/src/marshal-justin.d.ts b/packages/marshal/src/marshal-justin.d.ts new file mode 100644 index 0000000000..6a9160a821 --- /dev/null +++ b/packages/marshal/src/marshal-justin.d.ts @@ -0,0 +1,17 @@ +export type Encoding = import('./types.js').Encoding; +export type CapData = import('./types.js').CapData; +export type Indenter = { + open: (openBracket: string) => number; + line: () => number; + next: (token: string) => number; + close: (closeBracket: string) => number; + done: () => string; +}; +/** + * @param {Encoding} encoding + * @param {boolean=} shouldIndent + * @param {any[]} [slots] + * @returns {string} + */ +export function decodeToJustin(encoding: Encoding, shouldIndent?: boolean | undefined, slots?: any[] | undefined): string; +//# sourceMappingURL=marshal-justin.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/marshal-justin.d.ts.map b/packages/marshal/src/marshal-justin.d.ts.map new file mode 100644 index 0000000000..066a5a4c5f --- /dev/null +++ b/packages/marshal/src/marshal-justin.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"marshal-justin.d.ts","sourceRoot":"","sources":["marshal-justin.js"],"names":[],"mappings":"uBAWc,OAAO,YAAY,EAAE,QAAQ;yBACjB,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;;wBAQ7B,MAAM,KAAK,MAAM;UAC/B,MAAM,MAAM;kBACJ,MAAM,KAAK,MAAM;0BACV,MAAM,KAAK,MAAM;UAChC,MAAM,MAAM;;AAiG1B;;;;;GAKG;AACH,yCALW,QAAQ,iBACR,OAAO,0CAEL,MAAM,CAgUlB"} \ No newline at end of file diff --git a/packages/marshal/src/marshal-stringify.d.ts b/packages/marshal/src/marshal-stringify.d.ts new file mode 100644 index 0000000000..a40b4ff8b9 --- /dev/null +++ b/packages/marshal/src/marshal-stringify.d.ts @@ -0,0 +1,12 @@ +export type Passable = import('@endo/pass-style').Passable; +/** + * @param {Passable} val + * @returns {string} + */ +export function stringify(val: Passable): string; +/** + * @param {string} str + * @returns {Passable} + */ +export function parse(str: string): Passable; +//# sourceMappingURL=marshal-stringify.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/marshal-stringify.d.ts.map b/packages/marshal/src/marshal-stringify.d.ts.map new file mode 100644 index 0000000000..c89a6656ac --- /dev/null +++ b/packages/marshal/src/marshal-stringify.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"marshal-stringify.d.ts","sourceRoot":"","sources":["marshal-stringify.js"],"names":[],"mappings":"uBAKc,OAAO,kBAAkB,EAAE,QAAQ;AAgCjD;;;GAGG;AACH,+BAHW,QAAQ,GACN,MAAM,CAEyB;AAG5C;;;GAGG;AACH,2BAHW,MAAM,GACJ,QAAQ,CAQlB"} \ No newline at end of file diff --git a/packages/marshal/src/marshal.d.ts b/packages/marshal/src/marshal.d.ts new file mode 100644 index 0000000000..34f7c98e58 --- /dev/null +++ b/packages/marshal/src/marshal.d.ts @@ -0,0 +1,18 @@ +export function makeMarshal(convertValToSlot?: ConvertValToSlot | undefined, convertSlotToVal?: ConvertSlotToVal | undefined, { errorTagging, marshalName, errorIdNum, marshalSaveError, serializeBodyFormat, }?: MakeMarshalOptions): { + toCapData: ToCapData; + fromCapData: FromCapData; + /** @deprecated use toCapData */ + serialize: ToCapData; + /** @deprecated use fromCapData */ + unserialize: FromCapData; +}; +export type MakeMarshalOptions = import('./types.js').MakeMarshalOptions; +export type ConvertSlotToVal = import('./types.js').ConvertSlotToVal; +export type ConvertValToSlot = import('./types.js').ConvertValToSlot; +export type ToCapData = import('./types.js').ToCapData; +export type FromCapData = import('./types.js').FromCapData; +export type Passable = import('@endo/pass-style').Passable; +export type InterfaceSpec = import('@endo/pass-style').InterfaceSpec; +export type Encoding = import('./types.js').Encoding; +export type Remotable = import('@endo/pass-style').RemotableObject; +//# sourceMappingURL=marshal.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/marshal.d.ts.map b/packages/marshal/src/marshal.d.ts.map new file mode 100644 index 0000000000..9ae5013338 --- /dev/null +++ b/packages/marshal/src/marshal.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"marshal.d.ts","sourceRoot":"","sources":["marshal.js"],"names":[],"mappings":"AAgDO,oOAFI,kBAAkB;;;IA2WzB,gCAAgC;;IAEhC,kCAAkC;;EAGrC;iCAvYa,OAAO,YAAY,EAAE,kBAAkB;qCACxB,OAAO,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC;qCAC3C,OAAO,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC;8BAC3C,OAAO,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC;gCACpC,OAAO,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC;uBACrD,OAAO,kBAAkB,EAAE,QAAQ;4BACnC,OAAO,kBAAkB,EAAE,aAAa;uBACxC,OAAO,YAAY,EAAE,QAAQ;wBAC7B,OAAO,kBAAkB,EAAE,eAAe"} \ No newline at end of file diff --git a/packages/marshal/src/rankOrder.d.ts b/packages/marshal/src/rankOrder.d.ts new file mode 100644 index 0000000000..a6f4112021 --- /dev/null +++ b/packages/marshal/src/rankOrder.d.ts @@ -0,0 +1,36 @@ +export function trivialComparator(left: any, right: any): 1 | -1 | 0; +export function getPassStyleCover(passStyle: PassStyle): import("./types.js").RankCover; +export function makeComparatorKit(compareRemotables?: RankCompare | undefined): RankComparatorKit; +export function comparatorMirrorImage(comparator: RankCompare): RankCompare | undefined; +export function isRankSorted(passables: Passable[], compare: RankCompare): boolean; +export function assertRankSorted(sorted: Passable[], compare: RankCompare): true; +export function sortByRank(passables: Iterable, compare: RankCompare): Passable[]; +export function getIndexCover(sorted: Passable[], compare: RankCompare, [leftKey, rightKey]: import("./types.js").RankCover): IndexCover; +/** @type {RankCover} */ +export const FullRankCover: import("./types.js").RankCover; +export function coveredEntries(sorted: Passable[], [leftIndex, rightIndex]: IndexCover): Iterable<[number, Passable]>; +export function unionRankCovers(compare: RankCompare, covers: import("./types.js").RankCover[]): import("./types.js").RankCover; +export function intersectRankCovers(compare: RankCompare, covers: import("./types.js").RankCover[]): import("./types.js").RankCover; +export const compareRank: import("./types.js").RankCompare; +export const compareAntiRank: import("./types.js").RankCompare; +export function makeFullOrderComparatorKit(longLived?: boolean | undefined): FullComparatorKit; +export type Passable = import('@endo/pass-style').Passable; +export type PassStyle = import('@endo/pass-style').PassStyle; +export type RankCover = import('./types.js').RankCover; +export type RankComparison = import('./types.js').RankComparison; +export type RankCompare = import('./types.js').RankCompare; +export type FullCompare = import('./types.js').FullCompare; +export type RankComparatorKit = { + comparator: RankCompare; + antiComparator: RankCompare; +}; +export type FullComparatorKit = { + comparator: FullCompare; + antiComparator: FullCompare; +}; +export type IndexCover = [number, number]; +export type PassStyleRanksRecord = Record; +//# sourceMappingURL=rankOrder.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/rankOrder.d.ts.map b/packages/marshal/src/rankOrder.d.ts.map new file mode 100644 index 0000000000..1903063fee --- /dev/null +++ b/packages/marshal/src/rankOrder.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"rankOrder.d.ts","sourceRoot":"","sources":["rankOrder.js"],"names":[],"mappings":"AAgDO,qEAEqC;AAyCrC,6CAHI,SAAS,kCAGyD;AAqBtE,sDAPI,WAAW,eAKT,iBAAiB,CA+H7B;AAKM,kDAHI,WAAW,GACT,WAAW,aAGgB;AAOjC,wCAJI,QAAQ,EAAE,WACV,WAAW,GACT,OAAO,CAgBnB;AAOM,yCAHI,QAAQ,EAAE,WACV,WAAW,QAMkD;AAiBjE,sCAJI,SAAS,QAAQ,CAAC,WAClB,WAAW,GACT,QAAQ,EAAE,CAmBtB;AAoCM,sCALI,QAAQ,EAAE,WACV,WAAW,mEASrB;AAGD,wBAAwB;AACxB,2DAA+C;AAOxC,uCAJI,QAAQ,EAAE,wCAER,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAqBxC;AAwBM,yCAJI,WAAW,UACX,gCAAW,kCAcrB;AAQM,6CAJI,WAAW,UACX,gCAAW,kCAcrB;;;AA+BM,uDAHI,OAAO,eACL,iBAAiB,CAmB7B;uBA1da,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,SAAS;wBACpC,OAAO,YAAY,EAAE,SAAS;6BAC9B,OAAO,YAAY,EAAE,cAAc;0BACnC,OAAO,YAAY,EAAE,WAAW;0BAChC,OAAO,YAAY,EAAE,WAAW;;gBAMhC,WAAW;oBACX,WAAW;;;gBAKX,WAAW;oBACX,WAAW;;yBAIZ,CAAC,MAAM,EAAE,MAAM,CAAC;mCAuBhB,OAAO,SAAS,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,mBAAW;CAAE,CAAC"} \ No newline at end of file diff --git a/packages/marshal/src/types.d.ts b/packages/marshal/src/types.d.ts new file mode 100644 index 0000000000..b5e928260d --- /dev/null +++ b/packages/marshal/src/types.d.ts @@ -0,0 +1,166 @@ +export type ConvertValToSlot = (val: import("@endo/pass-style").PassableCap) => Slot; +export type ConvertSlotToVal = (slot: Slot, iface?: string | undefined) => import("@endo/pass-style").PassableCap; +export type EncodingClass = { + '@qclass': T; +}; +/** + * Note that the '@@asyncIterator' encoding is deprecated. Use 'symbol' instead. + * + * The 'hilbert' encoding is a reference to the Hilbert Hotel + * of https://www.ias.edu/ideas/2016/pires-hilbert-hotel . + * It represents data that has its own '@qclass' property by separately storing + * the `original` value of that property and + * a `rest` record containing all other properties. + */ +export type EncodingUnion = EncodingClass<'NaN'> | EncodingClass<'undefined'> | EncodingClass<'Infinity'> | EncodingClass<'-Infinity'> | (EncodingClass<'bigint'> & { + digits: string; +}) | EncodingClass<'@@asyncIterator'> | (EncodingClass<'symbol'> & { + name: string; +}) | (EncodingClass<'error'> & { + name: string; + message: string; + errorId?: string; + cause?: Encoding; + errors?: Encoding[]; +}) | (EncodingClass<'slot'> & { + index: number; + iface?: string; +}) | (EncodingClass<'hilbert'> & { + original: Encoding; + rest?: Encoding; +}) | (EncodingClass<'tagged'> & { + tag: string; + payload: Encoding; +}); +export type EncodingElement = boolean | number | null | string | EncodingUnion; +export type TreeOf = T | { + [x: string]: TreeOf; + [x: number]: TreeOf; + [x: symbol]: TreeOf; +}; +/** + * The JSON-representable structure describing the complete shape and + * pass-by-copy data of a Passable (i.e., everything except the contents of its + * PassableCap leafs, which are marshalled into referenced Slots). + * + * '@qclass' is a privileged property name in our encoding scheme, so + * it is disallowed in encoding records and any data that has such a property + * must instead use the 'hilbert' encoding described above. + */ +export type Encoding = TreeOf; +export type CapData = { + /** + * A JSON.stringify of an Encoding + */ + body: string; + slots: Slot[]; +}; +export type ToCapData = (val: any) => CapData; +export type FromCapData = (data: CapData) => any; +export type Marshal = { + /** + * use toCapData + */ + serialize: ToCapData; + /** + * use fromCapData + */ + unserialize: FromCapData; + toCapData: ToCapData; + fromCapData: FromCapData; +}; +export type MakeMarshalOptions = { + /** + * controls whether serialized errors + * also carry tagging information, made from `marshalName` and numbers + * generated (currently by counting) starting at `errorIdNum`. The + * `errorTagging` option defaults to `'on'`. Serialized + * errors are also logged to `marshalSaveError` only if tagging is `'on'`. + */ + errorTagging?: "on" | "off" | undefined; + /** + * Used to identify sent errors. + */ + marshalName?: string | undefined; + /** + * Ascending numbers staring from here + * identify the sending of errors relative to this marshal instance. + */ + errorIdNum?: number | undefined; + /** + * If `errorTagging` is + * `'on'`, then errors serialized by this marshal instance are also + * logged by calling `marshalSaveError` *after* `annotateError` associated + * that error with its errorId. Thus, if `marshalSaveError` in turn logs + * to the normal console, which is the default, then the console will + * show that note showing the associated errorId. + */ + marshalSaveError?: ((err: Error) => void) | undefined; + /** + * Formatting to use in the "body" property in objects returned from + * `serialize`. The body string for each case: + * * 'capdata' - a JSON string, from an encoding of passables + * into JSON, where some values are represented as objects with a + * `'@qclass` property. + * * 'smallcaps' - a JSON string prefixed with `'#'`, which is + * an unambiguous signal since a valid JSON string cannot begin with + * `'#'`. + */ + serializeBodyFormat?: "capdata" | "smallcaps" | undefined; +}; +/** + * RankCover represents the inclusive lower bound and *inclusive* upper bound + * of a string-comparison range that covers all possible encodings for + * a set of values. + */ +export type RankCover = [string, string]; +/** + * The result of a `RankCompare` function that defines a rank-order, i.e., + * a total preorder in which different elements are always comparable but + * can be tied for the same rank. See `RankCompare`. + */ +export type RankComparison = -1 | 0 | 1; +/** + * Returns `-1`, `0`, or `1` depending on whether the rank of `left` + * is respectively before, tied-with, or after the rank of `right`. + * + * This comparison function is valid as argument to + * `Array.prototype.sort`. This is sometimes described as a "total order" + * but, depending on your definitions, this is technically incorrect because + * it may return `0` to indicate that two distinguishable elements such as + * `-0` and `0` are tied (i.e., are in the same equivalence class + * for the purposes of this ordering). If each such equivalence class is + * a *rank* and ranks are disjoint, then this "rank order" is a + * true total order over these ranks. In mathematics this goes by several + * other names such as "total preorder". + * + * This function establishes a total rank order over all passables. + * To do so it makes arbitrary choices, such as that all strings + * are after all numbers. Thus, this order is not intended to be + * used directly as a comparison with useful semantics. However, it must be + * closely enough related to such comparisons to aid in implementing + * lookups based on those comparisons. For example, in order to get a total + * order among ranks, we put `NaN` after all other JavaScript "number" values + * (i.e., IEEE 754 floating-point values). But otherwise, we rank JavaScript + * numbers by signed magnitude, with `0` and `-0` tied. A semantically useful + * ordering would also compare magnitudes, and so agree with the rank ordering + * of all values other than `NaN`. An array sorted by rank would enable range + * queries by magnitude. + */ +export type RankCompare = (left: any, right: any) => RankComparison; +/** + * A `FullCompare` function satisfies all the invariants stated below for + * `RankCompare`'s relation with KeyCompare. + * In addition, its equality is as precise as the `KeyCompare` + * comparison defined below, in that, for all Keys `x` and `y`, + * `FullCompare(x, y) === 0` iff `KeyCompare(x, y) === 0`. + * + * For non-keys a `FullCompare` should be exactly as imprecise as + * `RankCompare`. For example, both will treat all errors as in the same + * equivalence class. Both will treat all promises as in the same + * equivalence class. Both will order taggeds the same way, which is admittedly + * weird, as some taggeds will be considered keys and other taggeds will be + * considered non-keys. + */ +export type FullCompare = RankCompare; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/types.d.ts.map b/packages/marshal/src/types.d.ts.map new file mode 100644 index 0000000000..838f91e3d8 --- /dev/null +++ b/packages/marshal/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"2CAMW,OAAO,kBAAkB,EAAE,WAAW,KACpC,IAAI;4CAMN,IAAI,iCAEF,OAAO,kBAAkB,EAAE,WAAW;+BAKtC;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;4BAIhB,cAAc,KAAK,CAAC,GAChC,cAA0B,WAAW,CAAC,GACtC,cAA0B,UAAU,CAAC,GACrC,cAA0B,WAAW,CAAC,IACtC,cAA0B,QAAQ,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,IACxD,cAA0B,iBAAiB,CAAC,IAC5C,cAA0B,QAAQ,CAAC,GAAG;IAAE,MAAM,MAAM,CAAA;CAAE,KACtD,cAA0B,OAAO,CAAC,GAAG;IAAE,MAAM,MAAM,CAAC;IACpD,OAA8C,EAAE,MAAM,CAAC;IACvD,OAA8C,CAAC,EAAE,MAAM,CAAC;IACxD,KAA4C,CAAC,EAAE,QAAQ,CAAC;IACxD,MAA6C,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC9C,KACb,cAA0B,MAAM,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IACpD,KAA2C,CAAC,EAAE,MAAM,CAAA;CACvC,KACb,cAA0B,SAAS,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAC5D,IAA6C,CAAC,EAAE,QAAQ,CAAA;CAC3C,KACb,cAA0B,QAAQ,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IACpD,OAA+C,EAAE,QAAQ,CAAA;CAC5C,CAAA;8BAaD,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,aAAa;;;;;;;;;;;;;;;uBAShD,OAAO,eAAe,CAAC;;;;;UActB,MAAM;WACN,IAAI,EAAE;;oCAMT,GAAG,KACD,QAAQ,IAAI,CAAC;uCAMf,QAAQ,IAAI,CAAC,KACX,GAAG;;;;;eAMF,UAAU,IAAI,CAAC;;;;iBACf,YAAY,IAAI,CAAC;eACjB,UAAU,IAAI,CAAC;iBACf,YAAY,IAAI,CAAC;;;;;;;;;;;;;;kBAUjB,MAAM;;;;;iBACN,MAAM;;;;;;;;;8BAEA,KAAK,KAAK,IAAI;;;;;;;;;;;;;;;;;;wBAkBrB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;6BAOhB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAiCZ,GAAG,SACH,GAAG,KACD,cAAc;;;;;;;;;;;;;;;0BAId,WAAW"} \ No newline at end of file diff --git a/packages/marshal/src/types.test-d.d.ts b/packages/marshal/src/types.test-d.d.ts new file mode 100644 index 0000000000..4c58f1496e --- /dev/null +++ b/packages/marshal/src/types.test-d.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=types.test-d.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/types.test-d.d.ts.map b/packages/marshal/src/types.test-d.d.ts.map new file mode 100644 index 0000000000..7d1a091fc4 --- /dev/null +++ b/packages/marshal/src/types.test-d.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.test-d.d.ts","sourceRoot":"","sources":["types.test-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/memoize/index.d.ts b/packages/memoize/index.d.ts new file mode 100644 index 0000000000..5e2127c0f4 --- /dev/null +++ b/packages/memoize/index.d.ts @@ -0,0 +1,2 @@ +export * from "./src/memoize.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/memoize/index.d.ts.map b/packages/memoize/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/memoize/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/memoize/src/memoize.d.ts b/packages/memoize/src/memoize.d.ts new file mode 100644 index 0000000000..24f42445e6 --- /dev/null +++ b/packages/memoize/src/memoize.d.ts @@ -0,0 +1,2 @@ +export function memoize(fn: (arg: A) => R): (arg: A) => R; +//# sourceMappingURL=memoize.d.ts.map \ No newline at end of file diff --git a/packages/memoize/src/memoize.d.ts.map b/packages/memoize/src/memoize.d.ts.map new file mode 100644 index 0000000000..a33f4a4020 --- /dev/null +++ b/packages/memoize/src/memoize.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["memoize.js"],"names":[],"mappings":"AAeO,2EAWN"} \ No newline at end of file diff --git a/packages/nat/src/index.d.ts b/packages/nat/src/index.d.ts new file mode 100644 index 0000000000..20bc78cda4 --- /dev/null +++ b/packages/nat/src/index.d.ts @@ -0,0 +1,30 @@ +/** + * Is `allegedNum` a number in the [contiguous range of exactly and + * unambiguously + * representable](https://esdiscuss.org/topic/more-numeric-constants-please-especially-epsilon#content-14) + * natural numbers (non-negative integers)? + * + * To qualify `allegedNum` must either be a + * non-negative `bigint`, or a non-negative `number` representing an integer + * within range of [integers safely representable in + * floating point](https://tc39.es/ecma262/#sec-number.issafeinteger). + * + * @param {unknown} allegedNum + * @returns {boolean} + */ +export function isNat(allegedNum: unknown): boolean; +/** + * If `allegedNumber` passes the `isNat` test, then return it as a bigint. + * Otherwise throw an appropriate error. + * + * If `allegedNum` is neither a bigint nor a number, `Nat` throws a `TypeError`. + * Otherwise, if it is not a [safely + * representable](https://esdiscuss.org/topic/more-numeric-constants-please-especially-epsilon#content-14) + * non-negative integer, `Nat` throws a `RangeError`. + * Otherwise, it is converted to a bigint if necessary and returned. + * + * @param {unknown} allegedNum + * @returns {bigint} + */ +export function Nat(allegedNum: unknown): bigint; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/nat/src/index.d.ts.map b/packages/nat/src/index.d.ts.map new file mode 100644 index 0000000000..a663f873a3 --- /dev/null +++ b/packages/nat/src/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AACH,kCAHW,OAAO,GACL,OAAO,CAWnB;AAED;;;;;;;;;;;;GAYG;AACH,gCAHW,OAAO,GACL,MAAM,CAuBlB"} \ No newline at end of file diff --git a/packages/netstring/index.d.ts b/packages/netstring/index.d.ts new file mode 100644 index 0000000000..4c0c16eebb --- /dev/null +++ b/packages/netstring/index.d.ts @@ -0,0 +1,3 @@ +export { makeNetstringReader, netstringReader } from "./reader.js"; +export { makeNetstringWriter, netstringWriter } from "./writer.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/netstring/index.d.ts.map b/packages/netstring/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/netstring/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/netstring/reader.d.ts b/packages/netstring/reader.d.ts new file mode 100644 index 0000000000..e1fff937c2 --- /dev/null +++ b/packages/netstring/reader.d.ts @@ -0,0 +1,6 @@ +export function makeNetstringReader(input: Iterable | AsyncIterable, opts?: { + name?: string | undefined; + maxMessageLength?: number | undefined; +} | undefined): import('@endo/stream').Reader; +export function netstringReader(input: Iterable | AsyncIterable, name?: string | undefined, _capacity?: number | undefined): import('@endo/stream').Stream; +//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/netstring/reader.d.ts.map b/packages/netstring/reader.d.ts.map new file mode 100644 index 0000000000..7414949146 --- /dev/null +++ b/packages/netstring/reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AA+IO,2CANI,SAAS,UAAU,CAAC,GAAG,cAAc,UAAU,CAAC;;;gBAI9C,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAIhE;AAUM,uCALI,SAAS,UAAU,CAAC,GAAG,cAAc,UAAU,CAAC,SAChD,MAAM,0BACN,MAAM,eACJ,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAQhE"} \ No newline at end of file diff --git a/packages/netstring/writer.d.ts b/packages/netstring/writer.d.ts new file mode 100644 index 0000000000..7c73bcac98 --- /dev/null +++ b/packages/netstring/writer.d.ts @@ -0,0 +1,7 @@ +export function makeNetstringWriter(output: import('@endo/stream').Writer, { chunked }?: { + chunked?: boolean | undefined; +}): import('@endo/stream').Writer; +export function netstringWriter(output: import('@endo/stream').Writer, { chunked }?: { + chunked?: boolean | undefined; +}): import('@endo/stream').Writer; +//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/netstring/writer.d.ts.map b/packages/netstring/writer.d.ts.map new file mode 100644 index 0000000000..82a8afe418 --- /dev/null +++ b/packages/netstring/writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AA4BO,4CALI,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC;IAErC,OAAO;IACpB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE,SAAS,CAAC,CAkE/E;AAhEM,wCALI,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC;IAErC,OAAO;IACpB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE,SAAS,CAAC,CAkE/E"} \ No newline at end of file diff --git a/packages/pass-style/endow.d.ts b/packages/pass-style/endow.d.ts new file mode 100644 index 0000000000..fe84ba4f5b --- /dev/null +++ b/packages/pass-style/endow.d.ts @@ -0,0 +1,2 @@ +export { PassStyleOfEndowmentSymbol } from "./src/passStyleOf.js"; +//# sourceMappingURL=endow.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/endow.d.ts.map b/packages/pass-style/endow.d.ts.map new file mode 100644 index 0000000000..03d1ee56f3 --- /dev/null +++ b/packages/pass-style/endow.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"endow.d.ts","sourceRoot":"","sources":["endow.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/pass-style/index.d.ts b/packages/pass-style/index.d.ts new file mode 100644 index 0000000000..6063f9d32a --- /dev/null +++ b/packages/pass-style/index.d.ts @@ -0,0 +1,12 @@ +export { getInterfaceOf } from "./src/remotable.js"; +export { makeTagged } from "./src/makeTagged.js"; +export * from "./src/types.js"; +export { mapIterable, filterIterable } from "./src/iter-helpers.js"; +export { PASS_STYLE, isObject, assertChecker, getTag, hasOwnPropertyOf } from "./src/passStyle-helpers.js"; +export { getErrorConstructor, isErrorLike } from "./src/error.js"; +export { assertPassableSymbol, isPassableSymbol, nameForPassableSymbol, passableSymbolForName } from "./src/symbol.js"; +export { isWellFormedString, assertWellFormedString, assertPassableString } from "./src/string.js"; +export { passStyleOf, isPassable, assertPassable, isPassableError, assertPassableError, toPassableError } from "./src/passStyleOf.js"; +export { Remotable, Far, ToFarFunction, GET_METHOD_NAMES } from "./src/make-far.js"; +export { assertRecord, assertCopyArray, assertRemotable, isRemotable, isRecord, isCopyArray } from "./src/typeGuards.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/index.d.ts.map b/packages/pass-style/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/pass-style/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/pass-style/src/copyArray.d.ts b/packages/pass-style/src/copyArray.d.ts new file mode 100644 index 0000000000..c739632474 --- /dev/null +++ b/packages/pass-style/src/copyArray.d.ts @@ -0,0 +1,6 @@ +/** + * + * @type {import('./internal-types.js').PassStyleHelper} + */ +export const CopyArrayHelper: import('./internal-types.js').PassStyleHelper; +//# sourceMappingURL=copyArray.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/copyArray.d.ts.map b/packages/pass-style/src/copyArray.d.ts.map new file mode 100644 index 0000000000..c73ac8abc7 --- /dev/null +++ b/packages/pass-style/src/copyArray.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"copyArray.d.ts","sourceRoot":"","sources":["copyArray.js"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,8BAFU,OAAO,qBAAqB,EAAE,eAAe,CAwBpD"} \ No newline at end of file diff --git a/packages/pass-style/src/copyRecord.d.ts b/packages/pass-style/src/copyRecord.d.ts new file mode 100644 index 0000000000..bf026b4d54 --- /dev/null +++ b/packages/pass-style/src/copyRecord.d.ts @@ -0,0 +1,6 @@ +/** + * + * @type {import('./internal-types.js').PassStyleHelper} + */ +export const CopyRecordHelper: import('./internal-types.js').PassStyleHelper; +//# sourceMappingURL=copyRecord.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/copyRecord.d.ts.map b/packages/pass-style/src/copyRecord.d.ts.map new file mode 100644 index 0000000000..1ff2524b89 --- /dev/null +++ b/packages/pass-style/src/copyRecord.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"copyRecord.d.ts","sourceRoot":"","sources":["copyRecord.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,+BAFU,OAAO,qBAAqB,EAAE,eAAe,CAqCpD"} \ No newline at end of file diff --git a/packages/pass-style/src/error.d.ts b/packages/pass-style/src/error.d.ts new file mode 100644 index 0000000000..caa4936a84 --- /dev/null +++ b/packages/pass-style/src/error.d.ts @@ -0,0 +1,11 @@ +export function getErrorConstructor(name: string): import('ses').GenericErrorConstructor | undefined; +export function isErrorLike(candidate: unknown): boolean; +export function checkRecursivelyPassableErrorPropertyDesc(propName: string, desc: PropertyDescriptor, passStyleOfRecur: import('./internal-types.js').PassStyleOf, check?: import("./types.js").Checker | undefined): boolean; +export function checkRecursivelyPassableError(candidate: unknown, passStyleOfRecur: import('./internal-types.js').PassStyleOf, check?: import("./types.js").Checker | undefined): boolean; +/** + * @type {PassStyleHelper} + */ +export const ErrorHelper: PassStyleHelper; +export type PassStyleHelper = import('./internal-types.js').PassStyleHelper; +export type Checker = import('./types.js').Checker; +//# sourceMappingURL=error.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/error.d.ts.map b/packages/pass-style/src/error.d.ts.map new file mode 100644 index 0000000000..eeb4431349 --- /dev/null +++ b/packages/pass-style/src/error.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["error.js"],"names":[],"mappings":"AA+CO,0CAHI,MAAM,GACJ,OAAO,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAEQ;AAqC/D,uCAHI,OAAO,GACL,OAAO,CAE6C;AAU1D,oEANI,MAAM,QACN,kBAAkB,oBAClB,OAAO,qBAAqB,EAAE,WAAW,qDAEvC,OAAO,CA8DnB;AASM,yDALI,OAAO,oBACP,OAAO,qBAAqB,EAAE,WAAW,qDAEvC,OAAO,CAoCnB;AAGD;;GAEG;AACH,0BAFU,eAAe,CAStB;8BA7MW,OAAO,qBAAqB,EAAE,eAAe;sBAC7C,OAAO,YAAY,EAAE,OAAO"} \ No newline at end of file diff --git a/packages/pass-style/src/internal-types.d.ts b/packages/pass-style/src/internal-types.d.ts new file mode 100644 index 0000000000..ff6a97fede --- /dev/null +++ b/packages/pass-style/src/internal-types.d.ts @@ -0,0 +1,26 @@ +export type Checker = import('./types.js').Checker; +export type PassStyle = import('./types.js').PassStyle; +export type PassStyleOf = import('./types.js').PassStyleOf; +/** + * The PassStyleHelper are only used to make a `passStyleOf` function. + * Thus, it should not depend on an ambient one. Rather, each helper should be + * pure, and get its `passStyleOf` or similar function from its caller. + * + * For those methods that have a last `passStyleOf` or `passStyleOfRecur`, + * they must defend against the other arguments being malicious, but may + * *assume* that `passStyleOfRecur` does what it is supposed to do. + * Each such method is not trying to defend itself against a malicious + * `passStyleOfRecur`, though it may defend against some accidents. + */ +export type PassStyleHelper = { + styleName: PassStyle; + /** + * If `canBeValid` returns true, then the candidate would + * definitely not be valid for any of the other helpers. + * `assertValid` still needs to be called to determine if it + * actually is valid. + */ + canBeValid: (candidate: any, check?: Checker) => boolean; + assertValid: (candidate: any, passStyleOfRecur: PassStyleOf) => void; +}; +//# sourceMappingURL=internal-types.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/internal-types.d.ts.map b/packages/pass-style/src/internal-types.d.ts.map new file mode 100644 index 0000000000..f9b9114d61 --- /dev/null +++ b/packages/pass-style/src/internal-types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":"sBAEc,OAAO,YAAY,EAAE,OAAO;wBAC5B,OAAO,YAAY,EAAE,SAAS;0BAC9B,OAAO,YAAY,EAAE,WAAW;;;;;;;;;;;;;eAchC,SAAS;;;;;;;4BACG,GAAG,UAAU,OAAO,KAAK,OAAO;6BAKhC,GAAG,oBACI,WAAW,KACzB,IAAI"} \ No newline at end of file diff --git a/packages/pass-style/src/iter-helpers.d.ts b/packages/pass-style/src/iter-helpers.d.ts new file mode 100644 index 0000000000..b82d00f6ff --- /dev/null +++ b/packages/pass-style/src/iter-helpers.d.ts @@ -0,0 +1,3 @@ +export function mapIterable(baseIterable: Iterable, func: (value: T) => U): Iterable; +export function filterIterable(baseIterable: Iterable, pred: (value: T) => boolean): Iterable; +//# sourceMappingURL=iter-helpers.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/iter-helpers.d.ts.map b/packages/pass-style/src/iter-helpers.d.ts.map new file mode 100644 index 0000000000..8c2110db6c --- /dev/null +++ b/packages/pass-style/src/iter-helpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"iter-helpers.d.ts","sourceRoot":"","sources":["iter-helpers.js"],"names":[],"mappings":"AAaO,iGAaH;AAcG,iFAHkB,OAAO,eAoB5B"} \ No newline at end of file diff --git a/packages/pass-style/src/make-far.d.ts b/packages/pass-style/src/make-far.d.ts new file mode 100644 index 0000000000..3683024646 --- /dev/null +++ b/packages/pass-style/src/make-far.d.ts @@ -0,0 +1,21 @@ +export function Remotable(iface?: string | undefined, props?: undefined, remotable?: T | undefined): T & import("@endo/eventual-send").RemotableBrand<{}, T>; +/** + * The name of the automatically added default meta-method for obtaining a + * list of all methods of an object declared with `Far`, or an object that + * inherits from an object declared with `Far`. + * + * Modeled on `GET_INTERFACE_GUARD` from `@endo/exo`. + * + * TODO Name to be bikeshed. Perhaps even whether it is a + * string or symbol to be bikeshed. See + * https://github.com/endojs/endo/pull/1809#discussion_r1388052454 + * + * HAZARD: Beware that an exo's interface can change across an upgrade, + * so remotes that cache it can become stale. + */ +export const GET_METHOD_NAMES: "__getMethodNames__"; +export function Far(farName: string, remotable?: T | undefined): T & import("@endo/eventual-send").RemotableBrand<{}, T>; +export function ToFarFunction(farName: string, func: (...args: any[]) => any): (...args: any[]) => any; +export type InterfaceSpec = import('./types.js').InterfaceSpec; +export type RemotableBrand = import('@endo/eventual-send').RemotableBrand; +//# sourceMappingURL=make-far.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/make-far.d.ts.map b/packages/pass-style/src/make-far.d.ts.map new file mode 100644 index 0000000000..e40a8b1087 --- /dev/null +++ b/packages/pass-style/src/make-far.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"make-far.d.ts","sourceRoot":"","sources":["make-far.js"],"names":[],"mappings":"AA8EO,4EALI,SAAS,sFAsDnB;AAGD;;;;;;;;;;;;;GAaG;AACH,oDAAqD;AAiC9C,2CAJI,MAAM,sFAiBhB;AAeM,uCAJI,MAAM,kBAEI,GAAG,EAAE,KAAK,GAAG,aAAb,GAAG,EAAE,KAAK,GAAG,CAOjC;4BA3Ma,OAAO,YAAY,EAAE,aAAa;mCACpB,OAAO,qBAAqB,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/pass-style/src/makeTagged.d.ts b/packages/pass-style/src/makeTagged.d.ts new file mode 100644 index 0000000000..d34ae7cfe1 --- /dev/null +++ b/packages/pass-style/src/makeTagged.d.ts @@ -0,0 +1,2 @@ +export function makeTagged(tag: any, payload: any): any; +//# sourceMappingURL=makeTagged.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/makeTagged.d.ts.map b/packages/pass-style/src/makeTagged.d.ts.map new file mode 100644 index 0000000000..765a684274 --- /dev/null +++ b/packages/pass-style/src/makeTagged.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"makeTagged.d.ts","sourceRoot":"","sources":["makeTagged.js"],"names":[],"mappings":"AAQO,wDAWN"} \ No newline at end of file diff --git a/packages/pass-style/src/passStyle-helpers.d.ts b/packages/pass-style/src/passStyle-helpers.d.ts new file mode 100644 index 0000000000..b8fd6faa82 --- /dev/null +++ b/packages/pass-style/src/passStyle-helpers.d.ts @@ -0,0 +1,38 @@ +export function hasOwnPropertyOf(obj: any, prop: any): any; +export function isObject(val: any): boolean; +export function isTypedArray(object: unknown): boolean; +export const PASS_STYLE: unique symbol; +export function canBeMethod(func: any): boolean; +/** + * Below we have a series of predicate functions and their (curried) assertion + * functions. The semantics of the assertion function is just to assert that + * the corresponding predicate function would have returned true. But it + * reproduces the internal tests so failures can give a better error message. + * + * @type {Checker} + */ +export const assertChecker: Checker; +export function checkNormalProperty(candidate: object, propertyName: string | number | symbol, shouldBeEnumerable: boolean, check?: import("./types.js").Checker | undefined): boolean; +export function getTag(tagRecord: any): any; +export function checkPassStyle(obj: any, expectedPassStyle: any, check: any): any; +/** + * @param {{ [PASS_STYLE]: string }} tagRecord + * @param {PassStyle} passStyle + * @param {Checker} [check] + * @returns {boolean} + */ +export function checkTagRecord(tagRecord: { + [PASS_STYLE]: string; +}, passStyle: PassStyle, check?: import("./types.js").Checker | undefined): boolean; +/** + * @param {{ [PASS_STYLE]: string }} tagRecord + * @param {PassStyle} passStyle + * @param {Checker} [check] + * @returns {boolean} + */ +export function checkFunctionTagRecord(tagRecord: { + [PASS_STYLE]: string; +}, passStyle: PassStyle, check?: import("./types.js").Checker | undefined): boolean; +export type Checker = import('./types.js').Checker; +export type PassStyle = import('./types.js').PassStyle; +//# sourceMappingURL=passStyle-helpers.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/passStyle-helpers.d.ts.map b/packages/pass-style/src/passStyle-helpers.d.ts.map new file mode 100644 index 0000000000..74edaecc2b --- /dev/null +++ b/packages/pass-style/src/passStyle-helpers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"passStyle-helpers.d.ts","sourceRoot":"","sources":["passStyle-helpers.js"],"names":[],"mappings":"AA4BO,2DACmC;AAGnC,4CAA2C;AAQ3C,qCAFI,OAAO,WAMjB;AAGD,uCAAkD;AAe3C,kCAHI,GAAG,GACD,OAAO,CAGiC;AAGrD;;;;;;;GAOG;AACH,4BAFU,OAAO,CAKf;AAYK,+CANI,MAAM,gBACN,MAAM,GAAC,MAAM,GAAC,MAAM,sBACpB,OAAO,qDAEL,OAAO,CA+BnB;AAGM,4CAAyD;AAGzD,kFAQN;AAIC;;;;;GAKG;AACH,0CALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAmBnB;AAvBD;;;;;GAKG;AACH,kDALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAmBnB;sBA7JW,OAAO,YAAY,EAAE,OAAO;wBAC5B,OAAO,YAAY,EAAE,SAAS"} \ No newline at end of file diff --git a/packages/pass-style/src/passStyleOf.d.ts b/packages/pass-style/src/passStyleOf.d.ts new file mode 100644 index 0000000000..61b7d7e734 --- /dev/null +++ b/packages/pass-style/src/passStyleOf.d.ts @@ -0,0 +1,29 @@ +export const PassStyleOfEndowmentSymbol: unique symbol; +/** + * If there is already a PassStyleOfEndowmentSymbol property on the global, + * then presumably it was endowed for us by liveslots with a `passStyleOf` + * function, so we should use and export that one instead. + * Other software may have left it for us here, + * but it would require write access to our global, or the ability to + * provide endowments to our global, both of which seems adequate as a test of + * whether it is authorized to serve the same role as liveslots. + * + * NOTE HAZARD: This use by liveslots does rely on `passStyleOf` being + * deterministic. If it is not, then in a liveslot-like virtualized + * environment, it can be used to detect GC. + * + * @type {PassStyleOf} + */ +export const passStyleOf: PassStyleOf; +export function assertPassable(val: any): void; +export function isPassable(specimen: any): specimen is any; +export function isPassableError(err: unknown): err is Error; +export function assertPassableError(err: unknown): asserts err is Error; +export function toPassableError(err: Error): Error; +export type PassStyleHelper = import('./internal-types.js').PassStyleHelper; +export type Passable = import('./types.js').Passable; +export type PassStyle = import('./types.js').PassStyle; +export type PassStyleOf = import('./types.js').PassStyleOf; +export type PrimitiveStyle = import('./types.js').PrimitiveStyle; +export type HelperPassStyle = Exclude; +//# sourceMappingURL=passStyleOf.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/passStyleOf.d.ts.map b/packages/pass-style/src/passStyleOf.d.ts.map new file mode 100644 index 0000000000..af46b15aa3 --- /dev/null +++ b/packages/pass-style/src/passStyleOf.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"passStyleOf.d.ts","sourceRoot":"","sources":["passStyleOf.js"],"names":[],"mappings":"AA8MA,uDAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACH,0BAFU,WAAW,CAUhB;AAEE,+CAEN;AAmBM,qCAHI,GAAG,mBAWb;AA8BM,qCAHI,OAAO,gBAI+B;AAM1C,yCAHI,OAAO,wBAKjB;AASM,qCAHI,KAAK,GACH,KAAK,CAiCjB;8BAzTa,OAAO,qBAAqB,EAAE,eAAe;uBAC7C,OAAO,YAAY,EAAE,QAAQ;wBAC7B,OAAO,YAAY,EAAE,SAAS;0BAC9B,OAAO,YAAY,EAAE,WAAW;6BAChC,OAAO,YAAY,EAAE,cAAc;8BAEnC,QAAQ,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/pass-style/src/remotable.d.ts b/packages/pass-style/src/remotable.d.ts new file mode 100644 index 0000000000..a68476f71c --- /dev/null +++ b/packages/pass-style/src/remotable.d.ts @@ -0,0 +1,14 @@ +export function assertIface(iface: InterfaceSpec): boolean; +/** @type {MarshalGetInterfaceOf} */ +export const getInterfaceOf: MarshalGetInterfaceOf; +/** + * + * @type {PassStyleHelper} + */ +export const RemotableHelper: PassStyleHelper; +export type Checker = import('./types.js').Checker; +export type InterfaceSpec = import('./types.js').InterfaceSpec; +export type MarshalGetInterfaceOf = import('./types.js').MarshalGetInterfaceOf; +export type PassStyleHelper = import('./internal-types.js').PassStyleHelper; +export type Remotable = import('./types.js').RemotableObject; +//# sourceMappingURL=remotable.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/remotable.d.ts.map b/packages/pass-style/src/remotable.d.ts.map new file mode 100644 index 0000000000..d8b218f9dc --- /dev/null +++ b/packages/pass-style/src/remotable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"remotable.d.ts","sourceRoot":"","sources":["remotable.js"],"names":[],"mappings":"AA4DO,mCAFI,aAAa,WAE4C;AAwGpE,oCAAoC;AACpC,6BADW,qBAAqB,CAU9B;AAGF;;;GAGG;AACH,8BAFU,eAAe,CA0EtB;sBA/OW,OAAO,YAAY,EAAE,OAAO;4BAC5B,OAAO,YAAY,EAAE,aAAa;oCAClC,OAAO,YAAY,EAAE,qBAAqB;8BAC1C,OAAO,qBAAqB,EAAE,eAAe;wBAC7C,OAAO,YAAY,EAAE,eAAe"} \ No newline at end of file diff --git a/packages/pass-style/src/safe-promise.d.ts b/packages/pass-style/src/safe-promise.d.ts new file mode 100644 index 0000000000..0d96af3d0f --- /dev/null +++ b/packages/pass-style/src/safe-promise.d.ts @@ -0,0 +1,4 @@ +export function isSafePromise(pr: unknown): pr is Promise; +export function assertSafePromise(pr: any): boolean; +export type Checker = import('./types.js').Checker; +//# sourceMappingURL=safe-promise.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/safe-promise.d.ts.map b/packages/pass-style/src/safe-promise.d.ts.map new file mode 100644 index 0000000000..c75f72a6ff --- /dev/null +++ b/packages/pass-style/src/safe-promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"safe-promise.d.ts","sourceRoot":"","sources":["safe-promise.js"],"names":[],"mappings":"AAqJO,kCAHI,OAAO,sBAG6C;AAGxD,oDAAmE;sBAlJ5D,OAAO,YAAY,EAAE,OAAO"} \ No newline at end of file diff --git a/packages/pass-style/src/string.d.ts b/packages/pass-style/src/string.d.ts new file mode 100644 index 0000000000..3a5f59bafe --- /dev/null +++ b/packages/pass-style/src/string.d.ts @@ -0,0 +1,4 @@ +export function isWellFormedString(str: any): any; +export function assertWellFormedString(str: unknown): asserts str is string; +export function assertPassableString(str: unknown): asserts str is string; +//# sourceMappingURL=string.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/string.d.ts.map b/packages/pass-style/src/string.d.ts.map new file mode 100644 index 0000000000..b55bdef895 --- /dev/null +++ b/packages/pass-style/src/string.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["string.js"],"names":[],"mappings":"AAyBI,kDAAoD;AA4BjD,4CAHI,OAAO,yBAKjB;AA4BM,0CAHK,OAAO,yBAMlB"} \ No newline at end of file diff --git a/packages/pass-style/src/symbol.d.ts b/packages/pass-style/src/symbol.d.ts new file mode 100644 index 0000000000..b7096a335a --- /dev/null +++ b/packages/pass-style/src/symbol.d.ts @@ -0,0 +1,5 @@ +export function isPassableSymbol(sym: any): boolean; +export function assertPassableSymbol(sym: any): true; +export function nameForPassableSymbol(sym: symbol): string | undefined; +export function passableSymbolForName(name: string): symbol | undefined; +//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/symbol.d.ts.map b/packages/pass-style/src/symbol.d.ts.map new file mode 100644 index 0000000000..0092058efe --- /dev/null +++ b/packages/pass-style/src/symbol.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["symbol.js"],"names":[],"mappings":"AAgCO,sCAHI,GAAG,GACD,OAAO,CAIuD;AAGpE,qDAEsE;AAwBtE,2CAHI,MAAM,GACJ,MAAM,aAWlB;AAyBM,4CAHI,MAAM,GACJ,MAAM,aAoBlB"} \ No newline at end of file diff --git a/packages/pass-style/src/tagged.d.ts b/packages/pass-style/src/tagged.d.ts new file mode 100644 index 0000000000..fe554c0ece --- /dev/null +++ b/packages/pass-style/src/tagged.d.ts @@ -0,0 +1,6 @@ +/** + * + * @type {import('./internal-types.js').PassStyleHelper} + */ +export const TaggedHelper: import('./internal-types.js').PassStyleHelper; +//# sourceMappingURL=tagged.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/tagged.d.ts.map b/packages/pass-style/src/tagged.d.ts.map new file mode 100644 index 0000000000..d5b96f8dae --- /dev/null +++ b/packages/pass-style/src/tagged.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tagged.d.ts","sourceRoot":"","sources":["tagged.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH,2BAFU,OAAO,qBAAqB,EAAE,eAAe,CA6BpD"} \ No newline at end of file diff --git a/packages/pass-style/src/typeGuards.d.ts b/packages/pass-style/src/typeGuards.d.ts new file mode 100644 index 0000000000..6b6a0b66e6 --- /dev/null +++ b/packages/pass-style/src/typeGuards.d.ts @@ -0,0 +1,65 @@ +export type Passable = import('./types.js').Passable; +export type CopyArray = import('./types.js').CopyArray; +export type CopyRecord = import('./types.js').CopyRecord; +export type Remotable = import('./types.js').RemotableObject; +export type AssertArray = (array: Passable, optNameOfArray?: string | undefined) => asserts array is CopyArray; +export type AssertRecord = (record: Passable, optNameOfRecord?: string | undefined) => asserts record is CopyRecord; +export type AssertRemotable = (remotable: Passable, optNameOfRemotable?: string | undefined) => asserts remotable is any; +/** + * @callback AssertRecord + * @param {Passable} record + * @param {string=} optNameOfRecord + * @returns {asserts record is CopyRecord} + */ +/** @type {AssertRecord} */ +export const assertRecord: AssertRecord; +/** + * @callback AssertArray + * @param {Passable} array + * @param {string=} optNameOfArray + * @returns {asserts array is CopyArray} + */ +/** @type {AssertArray} */ +export const assertCopyArray: AssertArray; +/** + * @callback AssertRemotable + * @param {Passable} remotable + * @param {string=} optNameOfRemotable + * @returns {asserts remotable is Remotable} + */ +/** @type {AssertRemotable} */ +export const assertRemotable: AssertRemotable; +/** + * Check whether the argument is a remotable. + * + * @param {Passable} remotable + * @returns {remotable is Remotable} + */ +export function isRemotable(remotable: Passable): remotable is any; +/** + * Check whether the argument is a pass-by-copy record, AKA a + * "copyRecord" in @endo/marshal terms + * + * @param {Passable} record + * @returns {record is CopyRecord} + */ +export function isRecord(record: Passable): record is CopyRecord; +/** @typedef {import('./types.js').Passable} Passable */ +/** + * @template {Passable} [T=Passable] + * @typedef {import('./types.js').CopyArray} CopyArray + */ +/** + * @template {Passable} [T=Passable] + * @typedef {import('./types.js').CopyRecord} CopyRecord + */ +/** @typedef {import('./types.js').RemotableObject} Remotable */ +/** + * Check whether the argument is a pass-by-copy array, AKA a "copyArray" + * in @endo/marshal terms + * + * @param {Passable} arr + * @returns {arr is CopyArray} + */ +export function isCopyArray(arr: Passable): arr is CopyArray; +//# sourceMappingURL=typeGuards.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/typeGuards.d.ts.map b/packages/pass-style/src/typeGuards.d.ts.map new file mode 100644 index 0000000000..2d0b8c9d03 --- /dev/null +++ b/packages/pass-style/src/typeGuards.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"uBAGc,OAAO,YAAY,EAAE,QAAQ;iDAG9B,OAAO,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;kDAIjC,OAAO,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;wBAEjC,OAAO,YAAY,EAAE,eAAe;kCAiCvC,QAAQ,mBACR,MAAM;oCAgBN,QAAQ,oBACR,MAAM;0CAgBN,QAAQ,uBACR,MAAM;AApBjB;;;;;GAKG;AAEH,2BAA2B;AAC3B,2BADW,YAAY,CAOrB;AA/BF;;;;;GAKG;AAEH,0BAA0B;AAC1B,8BADW,WAAW,CAOpB;AAoBF;;;;;GAKG;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAUxB;AA5DF;;;;;GAKG;AACH,uCAHW,QAAQ,oBAGoD;AAhBvE;;;;;;GAMG;AACH,iCAHW,QAAQ,6BAG4C;AA5B/D,wDAAwD;AACxD;;;GAGG;AACH;;;GAGG;AACH,gEAAgE;AAEhE;;;;;;GAMG;AACH,iCAHW,QAAQ,yBAGwC"} \ No newline at end of file diff --git a/packages/pass-style/src/types.d.ts b/packages/pass-style/src/types.d.ts new file mode 100644 index 0000000000..1668052b2f --- /dev/null +++ b/packages/pass-style/src/types.d.ts @@ -0,0 +1,114 @@ +export type PrimitiveStyle = 'undefined' | 'null' | 'boolean' | 'number' | 'bigint' | 'string' | 'symbol'; +export type PassStyle = PrimitiveStyle | 'copyRecord' | 'copyArray' | 'tagged' | 'remotable' | 'error' | 'promise'; +/** + * A Passable is acyclic data that can be marshalled. It must be hardened to + * remain + * stable (even if some components are proxies; see PureData restriction below), + * and is classified by PassStyle: + * * Atomic primitive values have a PrimitiveStyle (PassStyle + * 'undefined' | 'null' | 'boolean' | 'number' | 'bigint' + * | 'string' | 'symbol'). + * * Containers aggregate other Passables into + * * sequences as CopyArrays (PassStyle 'copyArray'), or + * * string-keyed dictionaries as CopyRecords (PassStyle 'copyRecord'), or + * * higher-level types as CopyTaggeds (PassStyle 'tagged'). + * * PassableCaps (PassStyle 'remotable' | 'promise') expose local values to + * remote interaction. + * * As a special case to support system observability, error objects are + * Passable (PassStyle 'error'). + * + * A Passable is essentially a pass-by-copy superstructure with a + * pass-by-reference + * exit point at the site of each PassableCap (which marshalling represents + * using 'slots'). + */ +export type Passable = any; +export type PassStyleOf = (passable: Passable) => PassStyle; +/** + * A Passable is PureData when its entire data structure is free of PassableCaps + * (remotables and promises) and error objects. + * PureData is an arbitrary composition of primitive values into CopyArray + * and/or + * CopyRecord and/or CopyTagged containers (or a single primitive value with no + * container), and is fully pass-by-copy. + * + * This restriction assures absence of side effects and interleaving risks *given* + * that none of the containers can be a Proxy instance. + * TODO SECURITY BUG we plan to enforce this, giving PureData the same security + * properties as the proposed + * [Records and Tuples](https://github.com/tc39/proposal-record-tuple). + * + * Given this (currently counter-factual) assumption, a PureData value cannot + * be used as a communications channel, + * and can therefore be safely shared with subgraphs that should not be able + * to communicate with each other. + * Without that assumption, such a guarantee requires a marshal-unmarshal round + * trip (as exists between vats) to produce data structures disconnected from + * any potential proxies. + */ +export type PureData = Passable; +/** + * An object marked as remotely accessible using the `Far` or `Remotable` + * functions, or a local presence representing such a remote object. + */ +export type RemotableObject = Passable; +/** + * The authority-bearing leaves of a Passable's pass-by-copy superstructure. + */ +export type PassableCap = Promise | RemotableObject; +/** + * A Passable sequence of Passable values. + */ +export type CopyArray = T[]; +/** + * A Passable dictionary in which each key is a string and each value is Passable. + */ +export type CopyRecord = Record; +/** + * A Passable "tagged record" with semantics specific to the tag identified in + * the `[Symbol.toStringTag]` property (such as 'copySet', 'copyBag', + * or 'copyMap'). + * It must have a property with key equal to the `PASS_STYLE` export and + * value 'tagged' + * and no other properties except `[Symbol.toStringTag]` and `payload`. + * + * TODO + * But TypeScript complains about a declaration like `[PASS_STYLE]: 'tagged'` + * because importing packages do not know what `PASS_STYLE` is, + * so we appease it with a looser but less accurate definition + * using symbol index properties and `| string`. + */ +export type CopyTagged = { + [passStyle: symbol]: string; + payload: Payload; + [Symbol.toStringTag]: Tag; +}; +/** + * This is an interface specification. + * For now, it is just a string, but will eventually be `PureData`. Either + * way, it must remain pure, so that it can be safely shared by subgraphs that + * are not supposed to be able to communicate. + */ +export type InterfaceSpec = string; +/** + * Simple semantics, just tell what interface (or undefined) a remotable has. + */ +export type MarshalGetInterfaceOf = (maybeRemotable: any) => InterfaceSpec | undefined; +/** + * Internal to a useful pattern for writing checking logic + * (a "checkFoo" function) that can be used to implement a predicate + * (an "isFoo" function) or a validator (an "assertFoo" function). + * + * * A predicate ideally only returns `true` or `false` and rarely throws. + * * A validator throws an informative diagnostic when the predicate + * would have returned `false`, and simply returns `undefined` normally + * when the predicate would have returned `true`. + * * The internal checking function that they share is parameterized by a + * `Checker` that determines how to proceed with a failure condition. + * Predicates pass in an identity function as checker. Validators + * pass in `assertChecker` which is a trivial wrapper around `assert`. + * + * See the various uses for good examples. + */ +export type Checker = (cond: boolean, details?: import("ses").Details | undefined) => boolean; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/types.d.ts.map b/packages/pass-style/src/types.d.ts.map new file mode 100644 index 0000000000..f848131aa8 --- /dev/null +++ b/packages/pass-style/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"6BAGc,WAAW,GAAG,MAAM,GACjC,SAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ;wBAK5C,cAAc,GAC3B,YAAgB,GAAG,WAAW,GAAG,QAAQ,GACzC,WAAe,GACf,OAAW,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;uBAQX,GAAG;qCA0BL,QAAQ,KACN,SAAS;;;;;;;;;;;;;;;;;;;;;;;uBAIT,QAAQ;;;;;8BAyBR,QAAQ;;;;0BAOR,eAAU,eAAe;;;;iDAOzB,CAAC,EAAE;;;;kDAOH,OAAO,MAAM,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;aAUhB,OAAO;0BADM,GAAG;;;;;;;;4BAoBjB,MAAM;;;;qDAUR,GAAG,KACD,aAAa,GAAC,SAAS;;;;;;;;;;;;;;;;;6BAoBzB,OAAO,kDAEL,OAAO"} \ No newline at end of file diff --git a/packages/pass-style/tools.d.ts b/packages/pass-style/tools.d.ts new file mode 100644 index 0000000000..080c9218f1 --- /dev/null +++ b/packages/pass-style/tools.d.ts @@ -0,0 +1,2 @@ +export { exampleAlice, exampleBob, exampleCarol, arbString, arbLeaf, arbPassable } from "./tools/arb-passable.js"; +//# sourceMappingURL=tools.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/tools.d.ts.map b/packages/pass-style/tools.d.ts.map new file mode 100644 index 0000000000..cff53fc89f --- /dev/null +++ b/packages/pass-style/tools.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/pass-style/tools/arb-passable.d.ts b/packages/pass-style/tools/arb-passable.d.ts new file mode 100644 index 0000000000..0de87dbc03 --- /dev/null +++ b/packages/pass-style/tools/arb-passable.d.ts @@ -0,0 +1,17 @@ +/** + * The only elements with identity. Everything else should be equal + * by contents. + */ +export const exampleAlice: import("@endo/eventual-send").RemotableBrand<{}, {}>; +export const exampleBob: import("@endo/eventual-send").RemotableBrand<{}, {}>; +export const exampleCarol: import("@endo/eventual-send").RemotableBrand<{}, {}>; +export const arbString: fc.Arbitrary; +export const arbLeaf: fc.Arbitrary | import("@endo/eventual-send").RemotableBrand<{}, {}> | { + [x: string]: any; +} | null | undefined>; +/** + * A factory for arbitrary passables + */ +export const arbPassable: fc.Arbitrary; +import { fc } from '@fast-check/ava'; +//# sourceMappingURL=arb-passable.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/tools/arb-passable.d.ts.map b/packages/pass-style/tools/arb-passable.d.ts.map new file mode 100644 index 0000000000..bb84692da9 --- /dev/null +++ b/packages/pass-style/tools/arb-passable.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"arb-passable.d.ts","sourceRoot":"","sources":["arb-passable.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,gFAA6C;AAC7C,8EAAyC;AACzC,gFAA6C;AAE7C,6CAAuE;AAEvE;;sBAoBE;AAsEF;;GAEG;AACH,4CAAsD;mBA3GnC,iBAAiB"} \ No newline at end of file diff --git a/packages/patterns/index.d.ts b/packages/patterns/index.d.ts new file mode 100644 index 0000000000..b44325a184 --- /dev/null +++ b/packages/patterns/index.d.ts @@ -0,0 +1,12 @@ +export { coerceToElements } from "./src/keys/copySet.js"; +export { coerceToBagEntries } from "./src/keys/copyBag.js"; +export * from "./src/types.js"; +export { listDifference } from "@endo/common/list-difference.js"; +export { objectMap } from "@endo/common/object-map.js"; +export { isKey, assertKey, assertScalarKey, isCopySet, assertCopySet, makeCopySet, getCopySetKeys, isCopyBag, assertCopyBag, makeCopyBag, makeCopyBagFromElements, getCopyBagEntries, isCopyMap, assertCopyMap, makeCopyMap, getCopyMapEntries } from "./src/keys/checkKey.js"; +export { bagCompare, setCompare, compareKeys, keyLT, keyLTE, keyEQ, keyGTE, keyGT } from "./src/keys/compareKeys.js"; +export { elementsIsSuperset, elementsIsDisjoint, elementsCompare, elementsUnion, elementsDisjointUnion, elementsIntersection, elementsDisjointSubtract, setIsSuperset, setIsDisjoint, setUnion, setDisjointUnion, setIntersection, setDisjointSubtract } from "./src/keys/merge-set-operators.js"; +export { bagIsSuperbag, bagUnion, bagIntersection, bagDisjointSubtract } from "./src/keys/merge-bag-operators.js"; +export { M, getRankCover, isPattern, assertPattern, matches, mustMatch, isAwaitArgGuard, assertAwaitArgGuard, isRawGuard, assertRawGuard, assertMethodGuard, assertInterfaceGuard, kindOf } from "./src/patterns/patternMatchers.js"; +export { getAwaitArgGuardPayload, getMethodGuardPayload, getInterfaceGuardPayload, getInterfaceMethodKeys } from "./src/patterns/getGuardPayloads.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/patterns/index.d.ts.map b/packages/patterns/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/patterns/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/patterns/src/keys/checkKey.d.ts b/packages/patterns/src/keys/checkKey.d.ts new file mode 100644 index 0000000000..2a7c0cd20d --- /dev/null +++ b/packages/patterns/src/keys/checkKey.d.ts @@ -0,0 +1,84 @@ +export function isPrimitiveKey(val: Passable): boolean; +export function assertPrimitiveKey(val: Passable): void; +export function checkScalarKey(val: Passable, check: Checker): boolean; +export function isScalarKey(val: Passable): boolean; +export function assertScalarKey(val: Passable): void; +export function checkKey(val: Passable, check: Checker): boolean; +export function isKey(val: Passable): boolean; +export function assertKey(val: Key): void; +export function checkCopySet(s: Passable, check: Checker): boolean; +/** + * @callback IsCopySet + * @param {Passable} s + * @returns {s is CopySet} + */ +/** @type {IsCopySet} */ +export const isCopySet: IsCopySet; +/** + * @callback AssertCopySet + * @param {Passable} s + * @returns {asserts s is CopySet} + */ +/** @type {AssertCopySet} */ +export const assertCopySet: AssertCopySet; +export function getCopySetKeys(s: CopySet): K[]; +export function everyCopySetKey(s: CopySet, fn: (key: K, index: number) => boolean): boolean; +export function makeCopySet(elementIter: Iterable): CopySet; +export function checkCopyBag(b: Passable, check: Checker): boolean; +/** + * @callback IsCopyBag + * @param {Passable} b + * @returns {b is CopyBag} + */ +/** @type {IsCopyBag} */ +export const isCopyBag: IsCopyBag; +/** + * @callback AssertCopyBag + * @param {Passable} b + * @returns {asserts b is CopyBag} + */ +/** @type {AssertCopyBag} */ +export const assertCopyBag: AssertCopyBag; +export function getCopyBagEntries(b: CopyBag): [K, bigint][]; +export function everyCopyBagEntry(b: CopyBag, fn: (entry: [K, bigint], index: number) => boolean): boolean; +export function makeCopyBag(bagEntryIter: Iterable<[K, bigint]>): CopyBag; +export function makeCopyBagFromElements(elementIter: Iterable): CopyBag; +export function checkCopyMap(m: Passable, check: Checker): boolean; +/** + * @callback IsCopyMap + * @param {Passable} m + * @returns {m is CopyMap} + */ +/** @type {IsCopyMap} */ +export const isCopyMap: IsCopyMap; +/** + * @callback AssertCopyMap + * @param {Passable} m + * @returns {asserts m is CopyMap} + */ +/** @type {AssertCopyMap} */ +export const assertCopyMap: AssertCopyMap; +export function getCopyMapKeys(m: CopyMap): K[]; +export function getCopyMapValues(m: CopyMap): V[]; +export function getCopyMapEntryArray(m: CopyMap): [K, V][]; +export function getCopyMapEntries(m: CopyMap): Iterable<[K, V]>; +export function everyCopyMapKey(m: CopyMap, fn: (key: K, index: number) => boolean): boolean; +export function everyCopyMapValue(m: CopyMap, fn: (value: V, index: number) => boolean): boolean; +export function copyMapKeySet(m: CopyMap): CopySet; +export function makeCopyMap(entries: Iterable<[K, V]>): CopyMap; +export type Checker = import('@endo/marshal').Checker; +export type Passable = import('@endo/pass-style').Passable; +export type KeyComparison = import('../types').KeyComparison; +export type Key = import('../types').Key; +export type CopyBag = import('../types').CopyBag; +export type CopySet = import('../types').CopySet; +export type CopyMap = import('../types').CopyMap; +export type KeyCompare = import('../types').KeyCompare; +export type FullCompare = import('../types').FullCompare; +export type IsCopySet = (s: Passable) => s is CopySet; +export type AssertCopySet = (s: Passable) => asserts s is CopySet; +export type IsCopyBag = (b: Passable) => b is CopyBag; +export type AssertCopyBag = (b: Passable) => asserts b is CopyBag; +export type IsCopyMap = (m: Passable) => m is CopyMap; +export type AssertCopyMap = (m: Passable) => asserts m is CopyMap; +//# sourceMappingURL=checkKey.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/checkKey.d.ts.map b/packages/patterns/src/keys/checkKey.d.ts.map new file mode 100644 index 0000000000..ed62825c62 --- /dev/null +++ b/packages/patterns/src/keys/checkKey.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"checkKey.d.ts","sourceRoot":"","sources":["checkKey.js"],"names":[],"mappings":"AAwDO,oCAHI,QAAQ,GACN,OAAO,CAEqD;AAOlE,wCAHI,QAAQ,GACN,IAAI,CAIhB;AAQM,oCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAWnB;AAMM,iCAHI,QAAQ,GACN,OAAO,CAE+C;AAO5D,qCAHI,QAAQ,GACN,IAAI,CAIhB;AAaM,8BAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAsBnB;AAOM,2BAHI,QAAQ,GACN,OAAO,CAEmC;AAMhD,+BAFI,GAAG,QAIb;AAgBM,gCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAenB;AAGD;;;;GAIG;AAEH,wBAAwB;AACxB,wBADW,SAAS,CACwC;AAG5D;;;;GAIG;AAEH,4BAA4B;AAC5B,4BADW,aAAa,CAGtB;AAQK,sDAGN;AASM,sEAHoB,MAAM,KAAK,OAAO,GAChC,OAAO,CAGqC;AAQlD,qEAIN;AAgBM,gCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAenB;AAGD;;;;GAIG;AAEH,wBAAwB;AACxB,wBADW,SAAS,CACwC;AAG5D;;;;GAIG;AAEH,4BAA4B;AAC5B,4BADW,aAAa,CAGtB;AAQK,mEAGN;AASM,oFAHgC,MAAM,KAAK,OAAO,GAC5C,OAAO,CAG4C;AAQzD,gFAIN;AAQM,iFAiBN;AAgBM,gCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAiCnB;AAGD;;;;GAIG;AAEH,wBAAwB;AACxB,wBADW,SAAS,CACwC;AAG5D;;;;GAIG;AAEH,4BAA4B;AAC5B,4BADW,aAAa,CAGtB;AASK,4FAGN;AASM,8FAGN;AAWM,uGAMN;AASM,4GAyBN;AAUM,4GAHoB,MAAM,KAAK,OAAO,GAChC,OAAO,CAGqC;AAUlD,gHAHsB,MAAM,KAAK,OAAO,GAClC,OAAO,CAG2C;AASxD,kGAEgC;AAShC,4GAeN;sBArgBa,OAAO,eAAe,EAAE,OAAO;uBAC/B,OAAO,kBAAkB,EAAE,QAAQ;4BACnC,OAAO,UAAU,EAAE,aAAa;kBAChC,OAAO,UAAU,EAAE,GAAG;+CACE,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;+CAC7B,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;wEACK,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;yBAC1F,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW;4BAqJjC,QAAQ;gCAUR,QAAQ;4BA0ER,QAAQ;gCAUR,QAAQ;4BAqHR,QAAQ;gCAUR,QAAQ"} \ No newline at end of file diff --git a/packages/patterns/src/keys/compareKeys.d.ts b/packages/patterns/src/keys/compareKeys.d.ts new file mode 100644 index 0000000000..30eddef114 --- /dev/null +++ b/packages/patterns/src/keys/compareKeys.d.ts @@ -0,0 +1,11 @@ +export function setCompare(left: CopySet, right: CopySet): number; +export function bagCompare(left: import("./checkKey.js").CopyBag, right: import("./checkKey.js").CopyBag): number; +/** @type {import('../types').KeyCompare} */ +export const compareKeys: import('../types').KeyCompare; +export function keyLT(left: any, right: any): boolean; +export function keyLTE(left: any, right: any): boolean; +export function keyEQ(left: any, right: any): boolean; +export function keyGTE(left: any, right: any): boolean; +export function keyGT(left: any, right: any): boolean; +export type CopySet = import('../types').CopySet; +//# sourceMappingURL=compareKeys.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/compareKeys.d.ts.map b/packages/patterns/src/keys/compareKeys.d.ts.map new file mode 100644 index 0000000000..235da4a57a --- /dev/null +++ b/packages/patterns/src/keys/compareKeys.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"compareKeys.d.ts","sourceRoot":"","sources":["compareKeys.js"],"names":[],"mappings":"AA8LS,2FACc;AADd,2HACc;AAvGvB,4CAA4C;AAC5C,0BADW,OAAO,UAAU,EAAE,UAAU,CAkItC;AAGK,sDAA2D;AAG3D,uDAA6D;AAG7D,sDAA6D;AAG7D,uDAA6D;AAG7D,sDAA2D;+CAtNgB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/patterns/src/keys/copyBag.d.ts b/packages/patterns/src/keys/copyBag.d.ts new file mode 100644 index 0000000000..98f236cc76 --- /dev/null +++ b/packages/patterns/src/keys/copyBag.d.ts @@ -0,0 +1,11 @@ +export function assertNoDuplicateKeys(bagEntries: [T, bigint][], fullCompare?: import("@endo/marshal").RankCompare | undefined): void; +export function checkBagEntries(bagEntries: [Passable, bigint][], check: Checker): boolean; +export function assertBagEntries(bagEntries: [Passable, bigint][]): asserts bagEntries is [any, bigint][]; +export function coerceToBagEntries(bagEntriesList: any): [any, bigint][]; +export function makeBagOfEntries(bagEntryIter: Iterable<[K, bigint]>): CopyBag; +export type CopyBag = import('../types').CopyBag; +export type Key = import('../types').Key; +export type FullCompare = import('../types').FullCompare; +export type Checker = import('@endo/marshal').Checker; +export type Passable = import('@endo/pass-style').Passable; +//# sourceMappingURL=copyBag.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/copyBag.d.ts.map b/packages/patterns/src/keys/copyBag.d.ts.map new file mode 100644 index 0000000000..f006741aec --- /dev/null +++ b/packages/patterns/src/keys/copyBag.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"copyBag.d.ts","sourceRoot":"","sources":["copyBag.js"],"names":[],"mappings":"AA8DO,oIAFM,IAAI,CAIhB;AAOM,4CAJI,CAAC,QAAQ,EAAC,MAAM,CAAC,EAAE,SACnB,OAAO,GACL,OAAO,CAkCnB;AAQM,6CAHI,CAAC,QAAQ,EAAC,MAAM,CAAC,EAAE,yCAK7B;AAGM,yEAIN;AAQM,qFACkD;+CAnHnB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;kBACrD,OAAO,UAAU,EAAE,GAAG;0BACtB,OAAO,UAAU,EAAE,WAAW;sBAC9B,OAAO,eAAe,EAAE,OAAO;uBAC/B,OAAO,kBAAkB,EAAE,QAAQ"} \ No newline at end of file diff --git a/packages/patterns/src/keys/copySet.d.ts b/packages/patterns/src/keys/copySet.d.ts new file mode 100644 index 0000000000..dc185dcbe0 --- /dev/null +++ b/packages/patterns/src/keys/copySet.d.ts @@ -0,0 +1,11 @@ +export function assertNoDuplicates(elements: T[], fullCompare?: import("@endo/marshal").RankCompare | undefined): void; +export function checkElements(elements: Passable[], check: Checker): boolean; +export function assertElements(elements: any): void; +export function coerceToElements(elementsList: any): any[]; +export function makeSetOfElements(elementIter: Iterable): CopySet; +export type CopySet = import('../types').CopySet; +export type Key = import('../types').Key; +export type FullCompare = import('../types').FullCompare; +export type Checker = import('@endo/marshal').Checker; +export type Passable = import('@endo/pass-style').Passable; +//# sourceMappingURL=copySet.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/copySet.d.ts.map b/packages/patterns/src/keys/copySet.d.ts.map new file mode 100644 index 0000000000..1bbb206116 --- /dev/null +++ b/packages/patterns/src/keys/copySet.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"copySet.d.ts","sourceRoot":"","sources":["copySet.js"],"names":[],"mappings":"AA2DO,qHAFM,IAAI,CAIhB;AAOM,wCAJI,QAAQ,EAAE,SACV,OAAO,GACL,OAAO,CAgBnB;AAGM,oDAEN;AAGM,2DAIN;AAQM,2EAC+C;+CAzFhB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;kBACrD,OAAO,UAAU,EAAE,GAAG;0BACtB,OAAO,UAAU,EAAE,WAAW;sBAC9B,OAAO,eAAe,EAAE,OAAO;uBAC/B,OAAO,kBAAkB,EAAE,QAAQ"} \ No newline at end of file diff --git a/packages/patterns/src/keys/keycollection-operators.d.ts b/packages/patterns/src/keys/keycollection-operators.d.ts new file mode 100644 index 0000000000..87e464226d --- /dev/null +++ b/packages/patterns/src/keys/keycollection-operators.d.ts @@ -0,0 +1,8 @@ +export function generateCollectionPairEntries(c1: C, c2: C, getEntries: (collection: C) => [any, V][], absentValue: any): IterableIterator<[any, any, any]>; +export function makeCompareCollection(getEntries: (collection: C) => [any, V][], absentValue: any, compareValues: KeyCompare): (left: C, right: C) => KeyComparison; +export type RankCompare = import('@endo/marshal').RankCompare; +export type KeyComparison = import('../types').KeyComparison; +export type KeyCompare = import('../types').KeyCompare; +export type FullCompare = import('../types').FullCompare; +export type KeyCollection = import('../types').KeyCollection; +//# sourceMappingURL=keycollection-operators.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/keycollection-operators.d.ts.map b/packages/patterns/src/keys/keycollection-operators.d.ts.map new file mode 100644 index 0000000000..640cae7a88 --- /dev/null +++ b/packages/patterns/src/keys/keycollection-operators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"keycollection-operators.d.ts","sourceRoot":"","sources":["keycollection-operators.js"],"names":[],"mappings":"AAwFO,uKAHI,GAAG,qCAqEb;AA+BM,iJAJI,GAAG,iBACH,UAAU,0BACe,aAAa,CAmC7C;0BAhNU,OAAO,eAAe,EAAE,WAAW;4BACnC,OAAO,UAAU,EAAE,aAAa;yBAChC,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa"} \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-bag-operators.d.ts b/packages/patterns/src/keys/merge-bag-operators.d.ts new file mode 100644 index 0000000000..891b2a277e --- /dev/null +++ b/packages/patterns/src/keys/merge-bag-operators.d.ts @@ -0,0 +1,9 @@ +export function bagIsSuperbag(xbag: any, ybag: any): any; +export function bagIsDisjoint(xbag: any, ybag: any): any; +export function bagUnion(xbag: any, ybag: any): import("./copyBag.js").CopyBag; +export function bagIntersection(xbag: any, ybag: any): import("./copyBag.js").CopyBag; +export function bagDisjointSubtract(xbag: any, ybag: any): import("./copyBag.js").CopyBag; +export type KeyComparison = import('../types').KeyComparison; +export type FullCompare = import('../types').FullCompare; +export type RankCompare = import('@endo/marshal').RankCompare; +//# sourceMappingURL=merge-bag-operators.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-bag-operators.d.ts.map b/packages/patterns/src/keys/merge-bag-operators.d.ts.map new file mode 100644 index 0000000000..1363689737 --- /dev/null +++ b/packages/patterns/src/keys/merge-bag-operators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"merge-bag-operators.d.ts","sourceRoot":"","sources":["merge-bag-operators.js"],"names":[],"mappings":"AAsRkC,yDACQ;AADR,yDACQ;AAEX,oFAC6B;AAD7B,2FAC6B;AAD7B,+FAC6B;4BAjR9C,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;0BAC9B,OAAO,eAAe,EAAE,WAAW"} \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-set-operators.d.ts b/packages/patterns/src/keys/merge-set-operators.d.ts new file mode 100644 index 0000000000..8fd9cc90c8 --- /dev/null +++ b/packages/patterns/src/keys/merge-set-operators.d.ts @@ -0,0 +1,17 @@ +export function elementsIsSuperset(xelements: any, yelements: any): any; +export function elementsIsDisjoint(xelements: any, yelements: any): any; +export function elementsCompare(xelements: any, yelements: any): any; +export function elementsUnion(xelements: any, yelements: any): any; +export function elementsDisjointUnion(xelements: any, yelements: any): any; +export function elementsIntersection(xelements: any, yelements: any): any; +export function elementsDisjointSubtract(xelements: any, yelements: any): any; +export function setIsSuperset(xset: any, yset: any): any; +export function setIsDisjoint(xset: any, yset: any): any; +export function setUnion(xset: any, yset: any): import("./copySet.js").CopySet; +export function setDisjointUnion(xset: any, yset: any): import("./copySet.js").CopySet; +export function setIntersection(xset: any, yset: any): import("./copySet.js").CopySet; +export function setDisjointSubtract(xset: any, yset: any): import("./copySet.js").CopySet; +export type KeyComparison = import('../types').KeyComparison; +export type FullCompare = import('../types').FullCompare; +export type RankCompare = import('@endo/marshal').RankCompare; +//# sourceMappingURL=merge-set-operators.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-set-operators.d.ts.map b/packages/patterns/src/keys/merge-set-operators.d.ts.map new file mode 100644 index 0000000000..814d5e83a9 --- /dev/null +++ b/packages/patterns/src/keys/merge-set-operators.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"merge-set-operators.d.ts","sourceRoot":"","sources":["merge-set-operators.js"],"names":[],"mappings":"AA6S2B,wEACU;AADV,wEACU;AADV,qEACU;AADV,mEACU;AADV,2EACU;AADV,0EACU;AADV,8EACU;AAUL,yDACQ;AADR,yDACQ;AAEX,oFAC8B;AAD9B,4FAC8B;AAD9B,2FAC8B;AAD9B,+FAC8B;4BAnT7C,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;0BAC9B,OAAO,eAAe,EAAE,WAAW"} \ No newline at end of file diff --git a/packages/patterns/src/patterns/getGuardPayloads.d.ts b/packages/patterns/src/patterns/getGuardPayloads.d.ts new file mode 100644 index 0000000000..b93c41a0a2 --- /dev/null +++ b/packages/patterns/src/patterns/getGuardPayloads.d.ts @@ -0,0 +1,5 @@ +export function getAwaitArgGuardPayload(awaitArgGuard: import('./types.js').AwaitArgGuard): import('./types.js').AwaitArgGuardPayload; +export function getMethodGuardPayload(methodGuard: import('./types.js').MethodGuard): import('./types.js').MethodGuardPayload; +export function getInterfaceGuardPayload = Record>(interfaceGuard: import("./types.js").InterfaceGuard): import("./types.js").InterfaceGuardPayload; +export function getInterfaceMethodKeys(interfaceGuard: import('./types.js').InterfaceGuard): (string | symbol)[]; +//# sourceMappingURL=getGuardPayloads.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/patterns/getGuardPayloads.d.ts.map b/packages/patterns/src/patterns/getGuardPayloads.d.ts.map new file mode 100644 index 0000000000..1744a139f9 --- /dev/null +++ b/packages/patterns/src/patterns/getGuardPayloads.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"getGuardPayloads.d.ts","sourceRoot":"","sources":["getGuardPayloads.js"],"names":[],"mappings":"AA+DO,uDAHI,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,YAAY,EAAE,oBAAoB,CAWrD;AA2EM,mDAHI,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,YAAY,EAAE,kBAAkB,CAsCnD;AAyDM,yQAoBN;AASM,uDAHI,OAAO,YAAY,EAAE,cAAc,GACjC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAY/B"} \ No newline at end of file diff --git a/packages/patterns/src/patterns/patternMatchers.d.ts b/packages/patterns/src/patterns/patternMatchers.d.ts new file mode 100644 index 0000000000..113efa6825 --- /dev/null +++ b/packages/patterns/src/patterns/patternMatchers.d.ts @@ -0,0 +1,35 @@ +export namespace defaultLimits { + let decimalDigitsLimit: number; + let stringLengthLimit: number; + let symbolNameLengthLimit: number; + let numPropertiesLimit: number; + let propertyNameLengthLimit: number; + let arrayLengthLimit: number; + let numSetElementsLimit: number; + let numUniqueBagElementsLimit: number; + let numMapEntriesLimit: number; +} +export const checkMatches: (specimen: any, patt: any, check: import("@endo/marshal").Checker, label?: string | number | undefined) => boolean; +export const matches: (specimen: any, patt: any) => boolean; +export const mustMatch: (specimen: any, patt: any, label?: string | number | undefined) => void; +export const assertPattern: (patt: any) => void; +export const isPattern: (patt: any) => boolean; +export const getRankCover: import("./types.js").GetRankCover; +export const M: import("./types.js").MatcherNamespace; +export const kindOf: (specimen: any, check?: import("@endo/marshal").Checker | undefined) => import("./types.js").Kind | undefined; +export const AwaitArgGuardShape: import("../types.js").Matcher; +export function isAwaitArgGuard(specimen: any): specimen is import("./types.js").AwaitArgGuard; +export function assertAwaitArgGuard(specimen: any): asserts specimen is import("./types.js").AwaitArgGuard; +export const RawGuardShape: import("../types.js").Matcher; +export function isRawGuard(specimen: any): boolean; +export function assertRawGuard(specimen: any): void; +export const SyncValueGuardShape: import("../types.js").Matcher; +export const SyncValueGuardListShape: import("../types.js").Matcher; +export const ArgGuardListShape: import("../types.js").Matcher; +export const MethodGuardPayloadShape: import("../types.js").Matcher; +export const MethodGuardShape: import("../types.js").Matcher; +export function assertMethodGuard(specimen: any): asserts specimen is import("./types.js").MethodGuard; +export const InterfaceGuardPayloadShape: import("../types.js").Matcher; +export const InterfaceGuardShape: import("../types.js").Matcher; +export function assertInterfaceGuard(specimen: any): asserts specimen is import("./types.js").InterfaceGuard>; +//# sourceMappingURL=patternMatchers.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/patterns/patternMatchers.d.ts.map b/packages/patterns/src/patterns/patternMatchers.d.ts.map new file mode 100644 index 0000000000..ecefe769bf --- /dev/null +++ b/packages/patterns/src/patterns/patternMatchers.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"patternMatchers.d.ts","sourceRoot":"","sources":["patternMatchers.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AA0uDA,+DAAgE;AAMzD,0CAHI,GAAG,kDAIyB;AAOhC,8CAHI,GAAG,0DAKb;AAoBD,0DAAsD;AAE/C,mDAA+D;AAE/D,oDACyC;AAUhD,gEAAoE;AAEpE,oEAAsE;AAGtE,8DAA0D;AAkB1D,oEAGE;AAEF,6DAA4D;AAMrD,4CAHI,GAAG,wDAKb;AA+CD,uEAUE;AAEF,gEAAkE;AAM3D,+CAHI,GAAG,kHAKb"} \ No newline at end of file diff --git a/packages/patterns/src/patterns/types.d.ts b/packages/patterns/src/patterns/types.d.ts new file mode 100644 index 0000000000..b27e0bc3c7 --- /dev/null +++ b/packages/patterns/src/patterns/types.d.ts @@ -0,0 +1,68 @@ +export type Passable = import('@endo/pass-style').Passable; +export type PassStyle = import('@endo/pass-style').PassStyle; +export type CopyTagged = import('@endo/pass-style').CopyTagged; +export type CopyRecord = import('@endo/pass-style').CopyRecord; +export type CopyArray = import('@endo/pass-style').CopyArray; +export type Checker = import('@endo/pass-style').Checker; +export type RankCompare = import('@endo/marshal').RankCompare; +export type RankCover = import('@endo/marshal').RankCover; +export type AwaitArgGuardPayload = import('../types.js').AwaitArgGuardPayload; +export type AwaitArgGuard = import('../types.js').AwaitArgGuard; +export type RawGuard = import('../types.js').RawGuard; +export type ArgGuard = import('../types.js').ArgGuard; +export type MethodGuardPayload = import('../types.js').MethodGuardPayload; +export type SyncValueGuard = import('../types.js').SyncValueGuard; +export type MethodGuard = import('../types.js').MethodGuard; +export type InterfaceGuardPayload = Record> = import('../types.js').InterfaceGuardPayload; +export type InterfaceGuard = Record> = import('../types.js').InterfaceGuard; +export type MethodGuardMaker = import('../types.js').MethodGuardMaker; +export type MatcherNamespace = import('../types').MatcherNamespace; +export type Key = import('../types').Key; +export type Pattern = import('../types').Pattern; +export type CheckPattern = import('../types').CheckPattern; +export type Limits = import('../types').Limits; +export type AllLimits = import('../types').AllLimits; +export type GetRankCover = import('../types').GetRankCover; +/** + * It is either a PassStyle other than 'tagged', or, if the underlying + * PassStyle is 'tagged', then the `getTag` value for tags that are + * recognized at the + */ +export type Kind = Exclude | 'copySet' | 'copyBag' | 'copyMap' | `match:${any}` | `guard:${any}`; +/** + * This factors out only the parts specific to each kind of Matcher. It is + * encapsulated, and its methods can make the stated unchecked assumptions + * enforced by the common calling logic. + */ +export type MatchHelper = { + /** + * Reports whether `allegedPayload` is valid as the payload of a CopyTagged + * whose tag corresponds with this MatchHelper's Matchers. + */ + checkIsWellFormed: (allegedPayload: Passable, check: Checker) => boolean; + /** + * Assuming validity of `matcherPayload` as the payload of a Matcher corresponding + * with this MatchHelper, reports whether `specimen` is matched by that Matcher. + */ + checkMatches: (specimen: Passable, matcherPayload: Passable, check: Checker) => boolean; + /** + * Assumes this is the payload of a CopyTagged with the corresponding + * matchTag. Return a RankCover to bound from below and above, + * in rank order, all possible Passables that would match this Matcher. + * The left element must be before or the same rank as any possible + * matching specimen. The right element must be after or the same + * rank as any possible matching specimen. + */ + getRankCover: import('../types').GetRankCover; +}; +export type PatternKit = { + checkMatches: (specimen: Passable, patt: Passable, check: Checker, label?: string | number) => boolean; + matches: (specimen: Passable, patt: Pattern) => boolean; + mustMatch: (specimen: Passable, patt: Pattern, label?: string | number) => void; + assertPattern: (patt: Pattern) => void; + isPattern: (patt: Passable) => boolean; + getRankCover: GetRankCover; + M: MatcherNamespace; + kindOf: (specimen: Passable, check?: Checker) => Kind | undefined; +}; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/patterns/types.d.ts.map b/packages/patterns/src/patterns/types.d.ts.map new file mode 100644 index 0000000000..72b558ef36 --- /dev/null +++ b/packages/patterns/src/patterns/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"uBAIc,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,SAAS;qFAIrC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAG,EAAC,OAAO,CAAC;kDAIlD,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;iDAIxC,OAAO,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;sBAEtC,OAAO,kBAAkB,EAAE,OAAO;0BAClC,OAAO,eAAe,EAAE,WAAW;wBACnC,OAAO,eAAe,EAAE,SAAS;mCAEjC,OAAO,aAAa,EAAE,oBAAoB;4BAC1C,OAAO,aAAa,EAAE,aAAa;uBACnC,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;iCAC9B,OAAO,aAAa,EAAE,kBAAkB;6BACxC,OAAO,aAAa,EAAE,cAAc;0BACpC,OAAO,aAAa,EAAE,WAAW;+JAGlC,OAAO,aAAa,EAAE,qBAAqB,CAAC,CAAC,CAAC;wJAI9C,OAAO,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;+BAEtC,OAAO,aAAa,EAAE,gBAAgB;+BAEtC,OAAO,UAAU,EAAE,gBAAgB;kBACnC,OAAO,UAAU,EAAE,GAAG;sBACtB,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;qBAC/B,OAAO,UAAU,EAAE,MAAM;wBACzB,OAAO,UAAU,EAAE,SAAS;2BAC5B,OAAO,UAAU,EAAE,YAAY;;;;;;mBAGhC,QAAQ,SAAS,EAAE,QAAQ,CAAC,GACxC,SAAa,GAAG,SAAS,GAAG,SAAS,GACrC,SAAa,GAAG,EAAE,GAAG,SAAS,GAAG,EAAE;;;;;;;;;;;wCAeL,QAAQ,SACjB,OAAO,KACrB,OAAO;;;;;6BAIU,QAAQ,kBACF,QAAQ,SACjB,OAAO,KACrB,OAAO;;;;;;;;;kBAID,OAAO,UAAU,EAAE,YAAY;;;6BAWpB,QAAQ,QACZ,QAAQ,SACP,OAAO,UACN,MAAM,GAAC,MAAM,KAC5B,OAAO;wBACU,QAAQ,QAAQ,OAAO,KAAK,OAAO;0BACnC,QAAQ,QAAQ,OAAO,UAAU,MAAM,GAAC,MAAM,KAAK,IAAI;0BAC3D,OAAO,KAAK,IAAI;sBAChB,QAAQ,KAAK,OAAO;kBAC3B,YAAY;OACZ,gBAAgB;uBACL,QAAQ,UAAU,OAAO,KAAK,IAAI,GAAG,SAAS"} \ No newline at end of file diff --git a/packages/patterns/src/types.d.ts b/packages/patterns/src/types.d.ts new file mode 100644 index 0000000000..35c313492e --- /dev/null +++ b/packages/patterns/src/types.d.ts @@ -0,0 +1,541 @@ +export type Passable = import('@endo/pass-style').Passable; +export type PassStyle = import('@endo/pass-style').PassStyle; +export type CopyTagged = import('@endo/pass-style').CopyTagged; +export type CopyRecord = import('@endo/pass-style').CopyRecord; +export type CopyArray = import('@endo/pass-style').CopyArray; +export type Checker = import('@endo/pass-style').Checker; +export type RankCompare = import('@endo/marshal').RankCompare; +export type RankCover = import('@endo/marshal').RankCover; +/** + * Keys are Passable arbitrarily-nested pass-by-copy containers + * (CopyArray, CopyRecord, CopySet, CopyBag, CopyMap) in which every + * non-container leaf is either a Passable primitive value or a Remotable (a + * remotely-accessible object or presence for a remote object), or such leaves + * in isolation with no container. + * + * Keys are so named because they can be used as keys in CopyMaps and + * [agoric-sdk Stores](https://github.com/Agoric/agoric-sdk/blob/master/packages/store/docs/store-taxonomy.md), + * and as elements in CopySets and CopyBags. + * + * Keys cannot contain promises or errors, as these do not have useful + * distributed equality semantics. Keys also cannot contain any CopyTagged + * except for those recognized as CopySets, CopyBags, and CopyMaps. + * + * Be aware that we may recognize more CopyTaggeds over time, including + * CopyTaggeds recognized as Keys. + * + * Distributed equality is location independent. + * The same two Keys, passed to another location, will be `keyEQ` there iff + * they are `keyEQ` here. (`keyEQ` tests equality according to the + * key distributed equality semantics.) + */ +export type Key = Passable; +export type GetRankCover = (payload: Passable, encodePassable: KeyToDBKey) => import("@endo/marshal").RankCover; +export type KeyToDBKey = (key: Key) => string; +/** + * Patterns are Passable arbitrarily-nested pass-by-copy containers + * (CopyArray, CopyRecord, CopySet, CopyBag, CopyMap) in which every + * non-container leaf is either a Key or a Matcher, or such leaves in isolation + * with no container. + * + * A Pattern acts as a declarative total predicate over Passables, where each + * Passable is either matched or not matched by it. Every Key is also a Pattern + * that matches only "itself", i.e., Keys that are `keyEQ` to it according to + * the key distributed equality semantics. + * + * Patterns cannot contain promises or errors, as these do + * not have useful distributed equality or matching semantics. Likewise, + * no Pattern can distinguish among promises, or distinguish among errors. + * Patterns also cannot contain any CopyTaggeds except for those recognized as + * CopySets, CopyBags, CopyMaps, or Matchers. + * + * Be aware that we may recognize more CopyTaggeds over time, including + * CopyTaggeds recognized as Patterns. + * + * Whether a Passable is matched by a given Pattern is location independent. + * If a given Passable and Pattern are passed to another location, + * the Passable will be matched by the Pattern there iff the Passable is matched + * by the Pattern here. + * + * Patterns are often used in a type-like manner, to represent the category + * of Passables that the Pattern is intended* to match. To keep this + * distinction clear, we often use the suffix "Shape" rather than "Pattern" + * to avoid confusion when the Pattern itself represents + * some category of Pattern. For example, an "AmountShape" represents the + * category of Amounts. And "AmountPatternShape" represents the + * category of Patterns over Amounts. + * + * * We say "intended" above because Patterns, in order to be declarative + * and Passable, cannot have the generality of predicates written in a + * Turing-universal programming language. Rather, to represent the category of + * things intended to be a Foo, a FooShape should reliably + * accept all Foos and reject only non-Foos. However, a FooShape may also accept + * non-Foos that "look like" or "have the same shape as" genuine Foos. + * An accurate predicate for e.g. input validation would need to supplement the + * Pattern check with code to detect the residual cases. + * We hope the "Shape" metaphor helps remind us of this type-like imprecision + * of Patterns. + */ +export type Pattern = Passable; +/** + * A Passable collection of Keys that are all mutually distinguishable + * according to the key distributed equality semantics exposed by `keyEQ`. + */ +export type CopySet = CopyTagged<'copySet', K[]>; +/** + * A Passable collection of entries with Keys that are all mutually distinguishable + * according to the key distributed equality semantics exposed by `keyEQ`, + * each with a corresponding positive cardinality. + */ +export type CopyBag = CopyTagged<'copyBag', [K, bigint][]>; +/** + * A Passable collection of entries with Keys that are all mutually distinguishable + * according to the key distributed equality semantics exposed by `keyEQ`, + * each with a corresponding Passable value. + */ +export type CopyMap = CopyTagged<'copyMap', { + keys: K[]; + values: V[]; +}>; +/** + * CopySet, CopyBag, and CopyMap all store Keys in reverse rankOrder, + * which supports generalized utilities. + */ +export type KeyCollection = CopySet | CopyBag | CopyMap; +/** + * A Pattern representing the predicate characterizing a category of Passables, + * such as strings or 8-bit unsigned integer numbers or CopyArrays of Remotables. + */ +export type Matcher = CopyTagged<`match:${string}`, Passable>; +/** + * A `FullCompare` function satisfies all the invariants stated below for + * `RankCompare`'s relation with KeyCompare. + * In addition, its equality is as precise as the `KeyCompare` + * comparison defined below, in that, for all Keys `x` and `y`, + * `FullCompare(x, y) === 0` iff `KeyCompare(x, y) === 0`. + * + * For non-Key inputs, a `FullCompare` should be exactly as imprecise as + * `RankCompare`. For example, both will treat all errors as in the same + * equivalence class. Both will treat all promises as in the same + * equivalence class. Both will order tagged records the same way, which is + * admittedly weird because some (such as CopySets, CopyBags, and CopyMaps) + * will be considered Keys while others will be considered non-Keys. + */ +export type FullCompare = RankCompare; +export type RankComparatorKit = { + comparator: RankCompare; + antiComparator: RankCompare; +}; +export type FullComparatorKit = { + comparator: FullCompare; + antiComparator: FullCompare; +}; +/** + * The result of a `KeyCompare` function that defines a meaningful + * and meaningfully precise partial order of Key values. See `KeyCompare`. + */ +export type KeyComparison = -1 | 0 | 1 | number; +/** + * `compareKeys` implements a partial order over Keys --- it defines relative + * position between two Keys but leaves some pairs incomparable (for example, + * subsets over sets is a partial order in which {} precedes {x} and {y}, which + * are mutually incomparable but both precede {x, y}). As with the rank ordering + * produced by `compareRank`, -1, 0, and 1 respectively mean "less than", + * "equivalent to", and "greater than". NaN means "incomparable" --- the first + * key is not less, equivalent, or greater than the second. + * + * By using NaN for "incomparable", the normal equivalence for using + * the return value in a comparison is preserved. + * `compareKeys(left, right) >= 0` iff `left` is greater than or + * equivalent to `right` in the partial ordering. + * + * Key order (a partial order) and rank order (a total preorder) are + * co-designed to support efficient range search for Key-based queries + * (@see {@link ../README.md#rank-order-and-key-order}). + */ +export type KeyCompare = (left: Key, right: Key) => KeyComparison; +export type CheckPattern = (allegedPattern: Passable, check: Checker) => boolean; +export type AllLimits = { + decimalDigitsLimit: number; + stringLengthLimit: number; + symbolNameLengthLimit: number; + numPropertiesLimit: number; + propertyNameLengthLimit: number; + arrayLengthLimit: number; + numSetElementsLimit: number; + numUniqueBagElementsLimit: number; + numMapEntriesLimit: number; +}; +export type Limits = Partial; +export type PatternMatchers = { + /** + * Matches any Passable. + */ + any: () => Matcher; + /** + * Matches against the intersection of all sub-Patterns. + */ + and: (...subPatts: Pattern[]) => Matcher; + /** + * Matches against the union of all sub-Patterns + * (requiring a successful match against at least one). + */ + or: (...subPatts: Pattern[]) => Matcher; + /** + * Matches against the negation of the sub-Pattern. + */ + not: (subPatt: Pattern) => Matcher; + /** + * Matches any Passable primitive value or Remotable. + * All matched values are Keys. + */ + scalar: () => Matcher; + /** + * Matches any value that can be a key in a CopyMap + * or an element in a CopySet or CopyBag. + * All matched values are also valid Patterns that match only themselves. + */ + key: () => Matcher; + /** + * Matches any Pattern that can be used to characterize Passables. + * A Pattern cannot contain promises or errors, + * as these are not stable enough to usefully match. + */ + pattern: () => Matcher; + /** + * When `kind` specifies a PassStyle other than "tagged", + * matches any value having that PassStyle. + * Otherwise, when `kind` specifies a known tagged record tag + * (such as 'copySet', 'copyBag', 'copyMap', or 'match:scalar'), + * matches any CopyTagged with that tag and a valid tag-specific payload. + * Otherwise, does not match any value. + * TODO: Reject attempts to create a kind matcher with unknown `kind`? + */ + kind: (kind: PassStyle | string) => Matcher; + /** + * For matching an arbitrary Passable Tagged object, whether it has a + * recognized kind or not. If `tagPatt` is omitted, it defaults to + * `M.string()`. If `payloadPatt` is omitted, it defaults to + * `M.any()`. + */ + tagged: (tagPatt?: Pattern, payloadPatt?: Pattern) => Matcher; + /** + * Matches `true` or `false`. + */ + boolean: () => Matcher; + /** + * Matches any floating point number, + * including `NaN` and either signed Infinity. + */ + number: () => Matcher; + /** + * Matches any bigint, subject to limits. + */ + bigint: (limits?: Limits) => Matcher; + /** + * Matches any non-negative bigint, subject to limits. + */ + nat: (limits?: Limits) => Matcher; + /** + * Matches any string, subject to limits. + */ + string: (limits?: Limits) => Matcher; + /** + * Matches any registered or well-known symbol, + * subject to limits. + */ + symbol: (limits?: Limits) => Matcher; + /** + * Matches any CopyRecord, subject to limits. + */ + record: (limits?: Limits) => Matcher; + /** + * Matches any CopyArray, subject to limits. + */ + array: (limits?: Limits) => Matcher; + /** + * Matches any CopySet, subject to limits. + */ + set: (limits?: Limits) => Matcher; + /** + * Matches any CopyBag, subject to limits. + */ + bag: (limits?: Limits) => Matcher; + /** + * Matches any CopyMap, subject to limits. + */ + map: (limits?: Limits) => Matcher; + /** + * Matches a far object or its remote presence. + * The optional `label` is purely for diagnostic purposes and does not + * add any constraints. + */ + remotable: (label?: string) => Matcher; + /** + * Matches any error object. + * Error objects are Passable, but are neither Keys nor Patterns. + * They do not have a useful identity. + */ + error: () => Matcher; + /** + * Matches any promise object. + * Promises are Passable, but are neither Keys nor Patterns. + * They do not have a useful identity. + */ + promise: () => Matcher; + /** + * Matches the exact value `undefined`. + * All keys including `undefined` are already valid Patterns and + * so can validly represent themselves. + * But optional Pattern arguments `(patt = undefined) => ...` + * treat explicit `undefined` as omission of the argument. + * Thus, when a passed Pattern does not also need to be a Key, + * we recommend passing `M.undefined()` rather than `undefined`. + */ + undefined: () => Matcher; + /** + * Returns `null`, which matches only itself. + */ + null: () => null; + /** + * Matches any value that compareKeys reports as less than rightOperand. + */ + lt: (rightOperand: Key) => Matcher; + /** + * Matches any value that compareKeys reports as less than or equal to + * rightOperand. + */ + lte: (rightOperand: Key) => Matcher; + /** + * Matches any value that is equal to key. + */ + eq: (key: Key) => Matcher; + /** + * Matches any value that is not equal to key. + */ + neq: (key: Key) => Matcher; + /** + * Matches any value that compareKeys reports as greater than or equal + * to rightOperand. + */ + gte: (rightOperand: Key) => Matcher; + /** + * Matches any value that compareKeys reports as greater than + * rightOperand. + */ + gt: (rightOperand: Key) => Matcher; + /** + * Matches any CopyArray whose elements are all matched by `subPatt` + * if defined, subject to limits. + */ + arrayOf: (subPatt?: Pattern, limits?: Limits) => Matcher; + /** + * Matches any CopyRecord whose keys are all matched by `keyPatt` + * if defined and values are all matched by `valuePatt` if defined, + * subject to limits. + */ + recordOf: (keyPatt?: Pattern, valuePatt?: Pattern, limits?: Limits) => Matcher; + /** + * Matches any CopySet whose elements are all matched by `keyPatt` + * if defined, subject to limits. + */ + setOf: (keyPatt?: Pattern, limits?: Limits) => Matcher; + /** + * Matches any CopyBag whose elements are all matched by `keyPatt` + * if defined and the cardinality of each is matched by `countPatt` + * if defined, subject to limits. + * `countPatt` is expected to rarely be useful, + * but is provided to minimize surprise. + */ + bagOf: (keyPatt?: Pattern, countPatt?: Pattern, limits?: Limits) => Matcher; + /** + * Matches any CopyMap whose keys are all matched by `keyPatt` if defined + * and values are all matched by `valuePatt` if defined, + * subject to limits. + */ + mapOf: (keyPatt?: Pattern, valuePatt?: Pattern, limits?: Limits) => Matcher; + /** + * Matches any array --- typically an arguments list --- consisting of + * - an initial portion matched by `required`, and + * - a middle portion of length up to the length of `optional` that is + * matched by the equal-length prefix of `optional` if `optional` is + * defined, and + * - a remainder that is matched by `rest` if `rest` is defined. + * The array must be at least as long as `required` + * but its remainder can be arbitrarily short. + * Any array elements beyond the summed length of `required` and `optional` + * are collected and matched against `rest`. + */ + splitArray: (required: Pattern[], optional?: Pattern[], rest?: Pattern) => Matcher; + /** + * Matches any CopyRecord that can be split into component CopyRecords + * as follows: + * - all properties corresponding with a property of `required` + * - all properties corresponding with a property of `optional` + * but not corresponding with a property of `required` + * - all other properties + * where the first component is matched by `required`, + * the second component is matched by the subset of `optional` + * corresponding with its properties if `optional` is defined, and + * the third component is matched by `rest` if defined. + * The CopyRecord must have all properties that appear on `required`, + * but may omit properties that appear on `optional`. + */ + splitRecord: (required: CopyRecord, optional?: CopyRecord, rest?: Pattern) => Matcher; + /** + * Deprecated. Use `M.splitArray` or `M.splitRecord` instead. + * An array or record is split into the first part that is matched by + * `basePatt`, and the remainder, which is matched against `rest` if present. + */ + split: (basePatt: CopyRecord | CopyArray, rest?: Pattern) => Matcher; + /** + * Deprecated. Use `M.splitArray` or `M.splitRecord` instead. + * An array or record is split into the first part that is matched by + * `basePatt`, and the remainder, which is matched against `rest` if present. + * `M.partial` differs from `M.split` in the handling of data that is + * described in `basePatt` but absent in a provided specimen: + * - For a CopyRecord, `M.partial` ignores properties of `basePatt` + * that are not present on the specimen. + * - For a CopyArray, `M.partial` ignores elements of `basePatt` + * at indices beyond the maximum index of the specimen. + */ + partial: (basePatt: CopyRecord | CopyArray, rest?: Pattern) => Matcher; + /** + * Matches any Passable that is either matched by `subPatt` or is a promise object. + * Note that validation is immediate, so (unlike the TypeScript ERef + * type) `M.eref` matches a promise object whose fulfillment value is + * _not_ matched by `subPatt`. + * For describing a top-level parameter, + * `M.callWhen(..., M.await(p), ...)` is preferred over `M.call(..., M.eref(p), ...)` + * because the former always checks against the sub-Pattern (awaiting fulfillment + * if necessary) while the latter bypasses such checks when the relevant argument + * is a promise. + */ + eref: (subPatt: Pattern) => Pattern; + /** + * Matches any Passable that is matched by `subPatt` or is the exact value `undefined`. + */ + opt: (subPatt: Pattern) => Pattern; +}; +export type DefaultGuardType = undefined | 'passable' | 'raw'; +export type MakeInterfaceGuardStrict = >(interfaceName: string, methodGuards: M, options: { + defaultGuards?: undefined; + sloppy?: false; +}) => InterfaceGuard; +export type MakeInterfaceGuardSloppy = (interfaceName: string, methodGuards: any, options: { + defaultGuards?: 'passable' | 'raw'; + sloppy?: true; +}) => InterfaceGuard; +export type MakeInterfaceGuardGeneral = >(interfaceName: string, methodGuards: M, options?: { + defaultGuards?: DefaultGuardType; + sloppy?: boolean; +}) => InterfaceGuard; +export type MakeInterfaceGuard = MakeInterfaceGuardStrict & MakeInterfaceGuardSloppy & MakeInterfaceGuardGeneral; +export type GuardMakers = { + /** + * Guard the interface of an exo object + */ + interface: MakeInterfaceGuard; + /** + * Guard a synchronous call. Arguments not guarded by `M.raw()` are + * automatically hardened and must be at least Passable. + */ + call: (...argPatterns: SyncValueGuard[]) => MethodGuardMaker; + /** + * Guard an async call. Arguments not guarded by `M.raw()` are automatically + * hardened and must be at least Passable. + */ + callWhen: (...argGuards: ArgGuard[]) => MethodGuardMaker; + /** + * Guard a positional parameter in `M.callWhen`, awaiting it and matching its + * fulfillment against the provided pattern. + * For example, `M.callWhen(M.await(M.nat())).returns()` will await the first + * argument, check that its fulfillment satisfies `M.nat()`, and only then call + * the guarded method with that fulfillment. If the argument is a non-promise + * value that already satisfies `M.nat()`, then the result of `await`ing it will + * still pass, and `M.callWhen` will still delay the guarded method call to a + * future turn. + * If the argument is a promise that rejects rather than fulfills, or if its + * fulfillment does not satisfy the nested pattern, then the call is rejected + * without ever invoking the guarded method. + * + * Any `AwaitArgGuard` may not appear as a rest pattern or a result pattern, + * only a top-level single parameter pattern. + */ + await: (argPattern: Pattern) => AwaitArgGuard; + /** + * In parameter position, pass this argument through without any hardening or checking. + * In rest position, pass the rest of the arguments through without any hardening or checking. + * In return position, return the result without any hardening or checking. + */ + raw: () => RawGuard; +}; +export type MatcherNamespace = PatternMatchers & GuardMakers; +export type Method = (...args: any[]) => any; +export type InterfaceGuardPayload = Record> = { + interfaceName: string; + methodGuards: Omit & Partial<{ [K in Extract]: never; }>; + symbolMethodGuards?: CopyMap, T[Extract]> | undefined; + defaultGuards?: DefaultGuardType; + sloppy?: boolean | undefined; +}; +export type InterfaceGuard = Record> = CopyTagged<'guard:interfaceGuard', InterfaceGuardPayload>; +/** + * A method name and parameter/return signature like: + * ```js + * foo(a, b, c = d, ...e) => f + * ``` + * should be guarded by something like: + * ```js + * { + * ...otherMethodGuards, + * foo: M.call(AShape, BShape).optional(CShape).rest(EShape).returns(FShape), + * } + * ``` + * /** + */ +export type MethodGuardMaker = MethodGuardOptional & MethodGuardRestReturns; +export type MethodGuardReturns = { + /** + * Arguments have been specified, now finish by creating a `MethodGuard`. + * If the return guard is not `M.raw()`, the return value is automatically + * hardened and must be Passable. + */ + returns: (returnGuard?: SyncValueGuard) => MethodGuard; +}; +export type MethodGuardRest = { + /** + * If the rest argument guard is not `M.raw()`, all rest arguments are + * automatically hardened and must be Passable. + */ + rest: (restArgGuard: SyncValueGuard) => MethodGuardReturns; +}; +/** + * Mandatory and optional arguments have been specified, now specify `rest`, or + * finish with `returns`. + */ +export type MethodGuardRestReturns = MethodGuardRest & MethodGuardReturns; +export type MethodGuardOptional = { + /** + * Optional arguments not guarded with `M.raw()` are automatically hardened and + * must be Passable. + */ + optional: (...optArgGuards: ArgGuard[]) => MethodGuardRestReturns; +}; +export type MethodGuardPayload = { + callKind: 'sync' | 'async'; + argGuards: ArgGuard[]; + optionalArgGuards?: ArgGuard[]; + restArgGuard?: SyncValueGuard; + returnGuard: SyncValueGuard; +}; +export type MethodGuard = CopyTagged<'guard:methodGuard', MethodGuardPayload>; +export type AwaitArgGuardPayload = { + argGuard: Pattern; +}; +export type AwaitArgGuard = CopyTagged<'guard:awaitArgGuard', AwaitArgGuardPayload>; +export type RawGuardPayload = {}; +export type RawGuard = CopyTagged<'guard:rawGuard', RawGuardPayload>; +export type SyncValueGuard = RawGuard | Pattern; +export type ArgGuard = AwaitArgGuard | RawGuard | Pattern; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/types.d.ts.map b/packages/patterns/src/types.d.ts.map new file mode 100644 index 0000000000..893353c307 --- /dev/null +++ b/packages/patterns/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"uBAIc,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,SAAS;qFAIrC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAG,EAAC,OAAO,CAAC;kDAIlD,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;iDAIxC,OAAO,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;sBAEtC,OAAO,kBAAkB,EAAE,OAAO;0BAClC,OAAO,eAAe,EAAE,WAAW;wBACnC,OAAO,eAAe,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;kBAGlC,QAAQ;qCA2BV,QAAQ,kBACR,UAAU;+BAMV,GAAG,KACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAIN,QAAQ;;;;;+CAkDR,WAAW,SAAS,EAAE,CAAC,EAAE,CAAC;;;;;;+CAQ1B,WAAW,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;;;;;;wEAUpC,WAAW,SAAS,EAAE;IAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,MAAM,EAAE,CAAC,EAAE,CAAA;CAAE,CAAC;;;;;4BAQjD,OAAO,GAAG,OAAO,GAAG,OAAO;;;;;sBAQ3B,WAAW,SAAS,MAAM,EAAE,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;0BAOvC,WAAW;;gBAiBV,WAAW;oBACX,WAAW;;;gBAKX,WAAW;oBACX,WAAW;;;;;;4BAIZ,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,SAAM;;;;;;;;;;;;;;;;;;;gCAwBlB,GAAG,SACH,GAAG,KACD,aAAa;4CAKf,QAAQ,SACR,OAAO,KACL,OAAO;;wBAKN,MAAM;uBACN,MAAM;2BACN,MAAM;wBACN,MAAM;6BACN,MAAM;sBACN,MAAM;yBACN,MAAM;+BACN,MAAM;wBACN,MAAM;;qBAIP,QAAQ,SAAS,CAAC;;;;;SAMjB,MAAM,OAAO;;;;uBAGC,OAAO,EAAE,KAAK,OAAO;;;;;sBAGrB,OAAO,EAAE,KAAK,OAAO;;;;mBAIzB,OAAO,KAAK,OAAO;;;;;YAG7B,MAAM,OAAO;;;;;;SAIb,MAAM,OAAO;;;;;;aAKb,MAAM,OAAO;;;;;;;;;;iBAKN,SAAS,GAAG,MAAM,KAAK,OAAO;;;;;;;uBAS1B,OAAO,gBAAgB,OAAO,KAAK,OAAO;;;;aAMrD,MAAM,OAAO;;;;;YAGb,MAAM,OAAO;;;;sBAIH,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;sBAGlB,MAAM,KAAK,OAAO;;;;;sBAGlB,MAAM,KAAK,OAAO;;;;sBAIlB,MAAM,KAAK,OAAO;;;;qBAGlB,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;;;wBAGnB,MAAM,KAAK,OAAO;;;;;;WAK3B,MAAM,OAAO;;;;;;aAKb,MAAM,OAAO;;;;;;;;;;eAKb,MAAM,OAAO;;;;UASb,MAAM,IAAI;;;;uBAGK,GAAG,KAAK,OAAO;;;;;wBAGf,GAAG,KAAK,OAAO;;;;cAIxB,GAAG,KAAK,OAAO;;;;eAGf,GAAG,KAAK,OAAO;;;;;wBAGN,GAAG,KAAK,OAAO;;;;;uBAIf,GAAG,KAAK,OAAO;;;;;wBAInB,OAAO,WAAW,MAAM,KAAK,OAAO;;;;;;yBAIpC,OAAO,cACL,OAAO,WACV,MAAM,KACtB,OAAO;;;;;sBAKU,OAAO,WAAW,MAAM,KAAK,OAAO;;;;;;;;sBAIpC,OAAO,cACL,OAAO,WACV,MAAM,KACtB,OAAO;;;;;;sBAOU,OAAO,cACL,OAAO,WACV,MAAM,KACtB,OAAO;;;;;;;;;;;;;2BAKU,OAAO,EAAE,aACR,OAAO,EAAE,SACb,OAAO,KACrB,OAAO;;;;;;;;;;;;;;;4BAYU,WAAW,OAAO,CAAC,aAClB,WAAW,OAAO,CAAC,SACvB,OAAO,KACrB,OAAO;;;;;;sBAcU,eAAa,GAAG,cAAY,SAC/B,OAAO,KACrB,OAAO;;;;;;;;;;;;wBAKU,eAAa,GAAG,cAAY,SAC/B,OAAO,KACrB,OAAO;;;;;;;;;;;;oBAWS,OAAO,KAAK,OAAO;;;;mBAWnB,OAAO,KAAK,OAAO;;+BAK9B,SAAS,GAAG,UAAU,GAAG,KAAK;mGAKvB,MAAM,4BAEZ;IAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE;uDAKtC,MAAM,gBACP,GAAG,WACR;IAAC,aAAa,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;IAAC,MAAM,CAAC,EAAE,IAAI,CAAA;CAAE,KAAK,eAAe,GAAG,CAAC;oGAKtE,MAAM,6BAEX;IAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAC;iCAGrD,wBAAwB,GAAG,wBAAwB,GAAG,yBAAyB;;;;;eAK/E,kBAAkB;;;;;2BAGD,cAAc,EAAE,KAAK,gBAAgB;;;;;6BAIvC,QAAQ,EAAE,KAAK,gBAAgB;;;;;;;;;;;;;;;;;wBAIjC,OAAO,KAAK,aAAa;;;;;;SAgBtC,MAAM,QAAQ;;+BAOf,eAAe,GAAG,WAAW;+BAGlB,GAAG,EAAE,KAAK,GAAG;;mBAKjB,MAAM;;;oBAKL,gBAAgB;;;4GAOxB,WAAW,sBAAsB,EAAE,sBAAsB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;+BAI5D,mBAAmB,GAAG,sBAAsB;;;;;;;4BAc5B,cAAc,KAAK,WAAW;;;;;;;yBAO9B,cAAc,KAAK,kBAAkB;;;;;;qCAKrD,eAAe,GAAG,kBAAkB;;;;;;gCAMjB,QAAQ,EAAE,KAAK,sBAAsB;;iCAMxD;IACZ,QAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/B,SAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,iBAAqB,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnC,YAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,WAAe,EAAE,cAAc,CAAC;CAC7B;0BAIS,WAAW,mBAAmB,EAAE,kBAAkB,CAAC;mCAInD;IACZ,QAAY,EAAE,OAAO,CAAA;CAClB;4BAIS,WAAW,qBAAqB,EAAE,oBAAoB,CAAC;8BAIvD,EAAE;uBAIF,WAAW,gBAAgB,EAAE,eAAe,CAAC;6BAG5C,QAAQ,GAAG,OAAO;uBAElB,aAAa,GAAG,QAAQ,GAAG,OAAO"} \ No newline at end of file diff --git a/packages/promise-kit/index.d.ts b/packages/promise-kit/index.d.ts new file mode 100644 index 0000000000..afe881725d --- /dev/null +++ b/packages/promise-kit/index.d.ts @@ -0,0 +1,24 @@ +/** + * makePromiseKit() builds a Promise object, and returns a record + * containing the promise itself, as well as separate facets for resolving + * and rejecting it. + * + * @template T + * @returns {import('./src/types.js').PromiseKit} + */ +export function makePromiseKit(): import("./src/types.js").PromiseKit; +/** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * + * Unlike `Promise.race` it cleans up after itself so a non-resolved value doesn't hold onto + * the result promise. + * + * @template T + * @param {Iterable} values An iterable of Promises. + * @returns {Promise>} A new Promise. + */ +export function racePromises(values: Iterable): Promise>; +export * from "./src/is-promise.js"; +export * from "./src/types.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/index.d.ts.map b/packages/promise-kit/index.d.ts.map new file mode 100644 index 0000000000..db154aa294 --- /dev/null +++ b/packages/promise-kit/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AACH,4EAMC;AAOD;;;;;;;;;;GAUG;AACH,0EAEC"} \ No newline at end of file diff --git a/packages/promise-kit/shim.d.ts b/packages/promise-kit/shim.d.ts new file mode 100644 index 0000000000..e30ed92ed1 --- /dev/null +++ b/packages/promise-kit/shim.d.ts @@ -0,0 +1,2 @@ +export {}; +//# sourceMappingURL=shim.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/shim.d.ts.map b/packages/promise-kit/shim.d.ts.map new file mode 100644 index 0000000000..52ccee7578 --- /dev/null +++ b/packages/promise-kit/shim.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["shim.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/promise-kit/src/is-promise.d.ts b/packages/promise-kit/src/is-promise.d.ts new file mode 100644 index 0000000000..6ddc2555d8 --- /dev/null +++ b/packages/promise-kit/src/is-promise.d.ts @@ -0,0 +1,8 @@ +/** + * Determine if the argument is a Promise. + * + * @param {unknown} maybePromise The value to examine + * @returns {maybePromise is Promise} Whether it is a promise + */ +export function isPromise(maybePromise: unknown): maybePromise is Promise; +//# sourceMappingURL=is-promise.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/is-promise.d.ts.map b/packages/promise-kit/src/is-promise.d.ts.map new file mode 100644 index 0000000000..cd7fbef4b2 --- /dev/null +++ b/packages/promise-kit/src/is-promise.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"is-promise.d.ts","sourceRoot":"","sources":["is-promise.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wCAHW,OAAO,gCAKjB"} \ No newline at end of file diff --git a/packages/promise-kit/src/memo-race.d.ts b/packages/promise-kit/src/memo-race.d.ts new file mode 100644 index 0000000000..1c1567a842 --- /dev/null +++ b/packages/promise-kit/src/memo-race.d.ts @@ -0,0 +1,27 @@ +export { race as memoRace }; +export type Deferred = { + resolve: (value?: import("./types.js").ERef) => void; + reject: (err?: any) => void; +}; +export type PromiseMemoRecord = never | { + settled: false; + deferreds: Set; +} | { + settled: true; + deferreds?: undefined; +}; +/** + * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved + * or rejected. + * + * Unlike `Promise.race` it cleans up after itself so a non-resolved value doesn't hold onto + * the result promise. + * + * @template T + * @template {PromiseConstructor} [P=PromiseConstructor] + * @this {P} + * @param {Iterable} values An iterable of Promises. + * @returns {Promise>} A new Promise. + */ +declare function race(this: P, values: Iterable): Promise>; +//# sourceMappingURL=memo-race.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/memo-race.d.ts.map b/packages/promise-kit/src/memo-race.d.ts.map new file mode 100644 index 0000000000..0395ebbfe1 --- /dev/null +++ b/packages/promise-kit/src/memo-race.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"memo-race.d.ts","sourceRoot":"","sources":["memo-race.js"],"names":[],"mappings":";;sBAmCuB,OAAO,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,KAAM,IAAI;mBACxC,GAAG,KAAM,IAAI;;gCAIpB,KAAK,GACb;IAAC,OAAO,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,IAAI,QAAQ,CAAC,CAAA;CAAC,GAC1C;IAAC,OAAO,EAAE,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAA;CAAC;AAgE1C;;;;;;;;;;;;GAYG;AACH,+HA8BC"} \ No newline at end of file diff --git a/packages/promise-kit/src/promise-executor-kit.d.ts b/packages/promise-kit/src/promise-executor-kit.d.ts new file mode 100644 index 0000000000..108e97d5fe --- /dev/null +++ b/packages/promise-kit/src/promise-executor-kit.d.ts @@ -0,0 +1,8 @@ +export function makeReleasingExecutorKit(): Pick, "resolve" | "reject"> & { + executor: PromiseExecutor; +}; +/** + * The promise executor + */ +export type PromiseExecutor = (resolve: (value: import('./types.js').ERef) => void, reject: (reason: any) => void) => any; +//# sourceMappingURL=promise-executor-kit.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/promise-executor-kit.d.ts.map b/packages/promise-kit/src/promise-executor-kit.d.ts.map new file mode 100644 index 0000000000..3eaa171996 --- /dev/null +++ b/packages/promise-kit/src/promise-executor-kit.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"promise-executor-kit.d.ts","sourceRoot":"","sources":["promise-executor-kit.js"],"names":[],"mappings":"AAiBO;;EAmCN;;;;mDA/CkB,OAAO,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,mBACpC,GAAG,KAAK,IAAI"} \ No newline at end of file diff --git a/packages/promise-kit/src/types.d.ts b/packages/promise-kit/src/types.d.ts new file mode 100644 index 0000000000..5ec43e22e5 --- /dev/null +++ b/packages/promise-kit/src/types.d.ts @@ -0,0 +1,20 @@ +/** + * A reified Promise + */ +export type PromiseKit = { + resolve: (value: ERef) => void; + reject: (reason: any) => void; + promise: Promise; +}; +/** + * PromiseRecord is deprecated in favor of PromiseKit. + */ +export type PromiseRecord = PromiseKit; +/** + * A reference of some kind for to an object of type T. It may be a direct + * reference to a local T. It may be a local presence for a remote T. It may + * be a promise for a local or remote T. Or it may even be a thenable + * (a promise-like non-promise with a "then" method) for a T. + */ +export type ERef = T | PromiseLike; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/types.d.ts.map b/packages/promise-kit/src/types.d.ts.map new file mode 100644 index 0000000000..aeb6ffeed3 --- /dev/null +++ b/packages/promise-kit/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;qBAGsB,KAAK,CAAC,CAAC,KAAK,IAAI;qBACf,GAAG,KAAK,IAAI;aACrB,QAAQ,CAAC,CAAC;;;;;+BAOX,WAAW,CAAC,CAAC;;;;;;;sBAKb,CAAC,GAAG,YAAY,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/ses-ava/exported.d.ts b/packages/ses-ava/exported.d.ts new file mode 100644 index 0000000000..bfd73b6bbb --- /dev/null +++ b/packages/ses-ava/exported.d.ts @@ -0,0 +1 @@ +//# sourceMappingURL=exported.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/exported.d.ts.map b/packages/ses-ava/exported.d.ts.map new file mode 100644 index 0000000000..7ed62d8ff5 --- /dev/null +++ b/packages/ses-ava/exported.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"exported.d.ts","sourceRoot":"","sources":["exported.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/ses-ava/index.d.ts b/packages/ses-ava/index.d.ts new file mode 100644 index 0000000000..1a75211b5d --- /dev/null +++ b/packages/ses-ava/index.d.ts @@ -0,0 +1,2 @@ +export { wrapTest } from "./src/ses-ava-test.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/index.d.ts.map b/packages/ses-ava/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/ses-ava/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/ses-ava/prepare-endo.d.ts b/packages/ses-ava/prepare-endo.d.ts new file mode 100644 index 0000000000..f5c6042c49 --- /dev/null +++ b/packages/ses-ava/prepare-endo.d.ts @@ -0,0 +1,5 @@ +export { test as default }; +/** @type {typeof rawTest} */ +declare const test: typeof rawTest; +import rawTest from 'ava'; +//# sourceMappingURL=prepare-endo.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/prepare-endo.d.ts.map b/packages/ses-ava/prepare-endo.d.ts.map new file mode 100644 index 0000000000..e9cb3faa88 --- /dev/null +++ b/packages/ses-ava/prepare-endo.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"prepare-endo.d.ts","sourceRoot":"","sources":["prepare-endo.js"],"names":[],"mappings":";AAsBA,6BAA6B;AAC7B,oBADW,cAAc,CACM;oBAjBX,KAAK"} \ No newline at end of file diff --git a/packages/ses-ava/src/ses-ava-test.d.ts b/packages/ses-ava/src/ses-ava-test.d.ts new file mode 100644 index 0000000000..56972e508a --- /dev/null +++ b/packages/ses-ava/src/ses-ava-test.d.ts @@ -0,0 +1,44 @@ +/** + * TODO For some reason, the following declaration (with "at-" as "@") + * doesn't work well for either TS or typedoc. For TS it seems to type + * `VirtualConsole` as `any` in a vscode hover. For typedoc it results in + * errors. + * + * at-typedef {import('ses/console-tools.js').VirtualConsole} VirtualConsole + * + * so instead, for now, we just declare it as `any`. TODO is to repair this. + */ +export type VirtualConsole = any; +/** + * The ava `test` function takes a callback argument of the form + * `t => {...}` or `async t => {...}`. + * If the outcome of this function indicates an error, either + * by throwing or by eventually rejecting a returned promise, ava does its + * own console-like display of this error and its stacktrace. + * However, it does not use the SES `console` and so misses out on features + * such as unredaction. + * + * To use this package, a test file replaces the line + * ```js + * import test from 'ava'; + * ``` + * with + * ```js + * import { wrapTest } from '@endo/ses-ava'; + * import rawTest from 'ava'; + * + * const test = wrapTest(rawTest); + * ``` + * Then the calls to `test` in the rest of the test file will act like they + * used to, except that, if a test fails because the test function (the + * callback argument to `test`) throws or returns a promise + * that eventually rejects, the error is first sent to the logger + * (which defaults to using the SES-aware `console.error`) + * before propagating into `rawTest`. + * + * @template {import('ava').TestFn} [T=import('ava').TestFn] ava `test` + * @param {T} avaTest + * @returns {T} + */ +export function wrapTest = import("ava").TestFn>(avaTest: T): T; +//# sourceMappingURL=ses-ava-test.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/src/ses-ava-test.d.ts.map b/packages/ses-ava/src/ses-ava-test.d.ts.map new file mode 100644 index 0000000000..545e1cfa99 --- /dev/null +++ b/packages/ses-ava/src/ses-ava-test.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"ses-ava-test.d.ts","sourceRoot":"","sources":["ses-ava-test.js"],"names":[],"mappings":";;;;;;;;;;6BA4Ca,GAAG;AAiNhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iHAYC"} \ No newline at end of file diff --git a/packages/skel/index.d.ts b/packages/skel/index.d.ts new file mode 100644 index 0000000000..f36479a733 --- /dev/null +++ b/packages/skel/index.d.ts @@ -0,0 +1 @@ +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/skel/index.d.ts.map b/packages/skel/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/skel/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/static-module-record/index.d.ts b/packages/static-module-record/index.d.ts new file mode 100644 index 0000000000..5122a0d354 --- /dev/null +++ b/packages/static-module-record/index.d.ts @@ -0,0 +1,2 @@ +export { StaticModuleRecord } from "./src/static-module-record.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/index.d.ts.map b/packages/static-module-record/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/static-module-record/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/static-module-record/src/babelPlugin.d.ts b/packages/static-module-record/src/babelPlugin.d.ts new file mode 100644 index 0000000000..cb08639d90 --- /dev/null +++ b/packages/static-module-record/src/babelPlugin.d.ts @@ -0,0 +1,56 @@ +export default makeModulePlugins; +declare function makeModulePlugins(options: any): { + analyzePlugin: ({ types: t }: { + types: any; + }) => { + visitor: { + ImportDeclaration(path: any): void; + ExportDefaultDeclaration(path: any): void; + ClassDeclaration(path: any): void; + FunctionDeclaration(path: any): void; + VariableDeclaration(path: any): void; + ExportAllDeclaration(path: any): void; + ExportNamedDeclaration(path: any): void; + Identifier(path: any): void; + CallExpression(path: any): void; + }; + } | { + visitor: { + MetaProperty(path: any): void; + ImportDeclaration(path: any): void; + ExportDefaultDeclaration(path: any): void; + ClassDeclaration(path: any): void; + FunctionDeclaration(path: any): void; + VariableDeclaration(path: any): void; + ExportAllDeclaration(path: any): void; + ExportNamedDeclaration(path: any): void; + }; + }; + transformPlugin: ({ types: t }: { + types: any; + }) => { + visitor: { + ImportDeclaration(path: any): void; + ExportDefaultDeclaration(path: any): void; + ClassDeclaration(path: any): void; + FunctionDeclaration(path: any): void; + VariableDeclaration(path: any): void; + ExportAllDeclaration(path: any): void; + ExportNamedDeclaration(path: any): void; + Identifier(path: any): void; + CallExpression(path: any): void; + }; + } | { + visitor: { + MetaProperty(path: any): void; + ImportDeclaration(path: any): void; + ExportDefaultDeclaration(path: any): void; + ClassDeclaration(path: any): void; + FunctionDeclaration(path: any): void; + VariableDeclaration(path: any): void; + ExportAllDeclaration(path: any): void; + ExportNamedDeclaration(path: any): void; + }; + }; +}; +//# sourceMappingURL=babelPlugin.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/babelPlugin.d.ts.map b/packages/static-module-record/src/babelPlugin.d.ts.map new file mode 100644 index 0000000000..473ff492ee --- /dev/null +++ b/packages/static-module-record/src/babelPlugin.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"babelPlugin.d.ts","sourceRoot":"","sources":["babelPlugin.js"],"names":[],"mappings":";AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6kBC"} \ No newline at end of file diff --git a/packages/static-module-record/src/hidden.d.ts b/packages/static-module-record/src/hidden.d.ts new file mode 100644 index 0000000000..c5ea9835a6 --- /dev/null +++ b/packages/static-module-record/src/hidden.d.ts @@ -0,0 +1,11 @@ +export const HIDDEN_PREFIX: "$h‍_"; +export const HIDDEN_CONST_VAR_PREFIX: "$c‍_"; +export const HIDDEN_A: "$h‍_a"; +export const HIDDEN_IMPORT: "$h‍_import"; +export const HIDDEN_IMPORT_SELF: "$h‍_importSelf"; +export const HIDDEN_IMPORTS: "$h‍_imports"; +export const HIDDEN_ONCE: "$h‍_once"; +export const HIDDEN_META: "$h‍____meta"; +export const HIDDEN_LIVE: "$h‍_live"; +export const HIDDEN_IDENTIFIERS: string[]; +//# sourceMappingURL=hidden.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/hidden.d.ts.map b/packages/static-module-record/src/hidden.d.ts.map new file mode 100644 index 0000000000..9b5b8b4880 --- /dev/null +++ b/packages/static-module-record/src/hidden.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"hidden.d.ts","sourceRoot":"","sources":["hidden.js"],"names":[],"mappings":"AAAA,mCAAyC;AACzC,6CAAmD;AACnD,+BAA4C;AAC5C,yCAAsD;AACtD,kDAA+D;AAC/D,2CAAwD;AACxD,qCAAkD;AAGlD,wCAAqD;AACrD,qCAAkD;AAClD,0CAQE"} \ No newline at end of file diff --git a/packages/static-module-record/src/static-module-record.d.ts b/packages/static-module-record/src/static-module-record.d.ts new file mode 100644 index 0000000000..232d5b8fae --- /dev/null +++ b/packages/static-module-record/src/static-module-record.d.ts @@ -0,0 +1,80 @@ +/** + * @typedef {object} SourceMapHookDetails + * @property {string} compartment + * @property {string} module + * @property {string} location + * @property {string} sha512 + */ +/** + * @callback SourceMapHook + * @param {string} sourceMap + * @param {SourceMapHookDetails} details + */ +/** + * @typedef {object} Options + * @property {string} [sourceUrl] + * @property {string} [sourceMap] + * @property {string} [sourceMapUrl] + * @property {SourceMapHook} [sourceMapHook] + */ +/** + * StaticModuleRecord captures the effort of parsing and analyzing module text + * so a cache of StaticModuleRecords may be shared by multiple Compartments. + * + * @class + * @param {string} source + * @param {string | Options} [opts] + */ +export function StaticModuleRecord(source: string, opts?: string | Options | undefined): void; +export class StaticModuleRecord { + /** + * @typedef {object} SourceMapHookDetails + * @property {string} compartment + * @property {string} module + * @property {string} location + * @property {string} sha512 + */ + /** + * @callback SourceMapHook + * @param {string} sourceMap + * @param {SourceMapHookDetails} details + */ + /** + * @typedef {object} Options + * @property {string} [sourceUrl] + * @property {string} [sourceMap] + * @property {string} [sourceMapUrl] + * @property {SourceMapHook} [sourceMapHook] + */ + /** + * StaticModuleRecord captures the effort of parsing and analyzing module text + * so a cache of StaticModuleRecords may be shared by multiple Compartments. + * + * @class + * @param {string} source + * @param {string | Options} [opts] + */ + constructor(source: string, opts?: string | Options | undefined); + imports: string[]; + exports: any[]; + reexports: never[]; + __syncModuleProgram__: string; + __liveExportMap__: any; + __reexportMap__: any; + __fixedExportMap__: any; + __needsImportMeta__: boolean; +} +export type SourceMapHookDetails = { + compartment: string; + module: string; + location: string; + sha512: string; +}; +export type SourceMapHook = (sourceMap: string, details: SourceMapHookDetails) => any; +export type Options = { + sourceUrl?: string | undefined; + sourceMap?: string | undefined; + sourceMapUrl?: string | undefined; + sourceMapHook?: SourceMapHook | undefined; +}; +//# sourceMappingURL=static-module-record.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/static-module-record.d.ts.map b/packages/static-module-record/src/static-module-record.d.ts.map new file mode 100644 index 0000000000..333ece0101 --- /dev/null +++ b/packages/static-module-record/src/static-module-record.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"static-module-record.d.ts","sourceRoot":"","sources":["static-module-record.js"],"names":[],"mappings":"AAmCA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AAKH;;;;;;;GAOG;AACH,2CAHW,MAAM,6CAoChB;;IAlED;;;;;;OAMG;IAEH;;;;OAIG;IAEH;;;;;;OAMG;IAKH;;;;;;;OAOG;IACH,oBAHW,MAAM,uCAoChB;IAfC,kBAAyC;IACzC,eAMC;IACD,mBAA+C;IAC/C,8BAA0C;IAC1C,uBAAsC;IACtC,qBAAkC;IAClC,wBAAwC;IACxC,6BAA0C;;;iBA9D9B,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;wCAKT,MAAM,WACN,oBAAoB"} \ No newline at end of file diff --git a/packages/static-module-record/src/transform-analyze.d.ts b/packages/static-module-record/src/transform-analyze.d.ts new file mode 100644 index 0000000000..1e1c13ef7f --- /dev/null +++ b/packages/static-module-record/src/transform-analyze.d.ts @@ -0,0 +1,13 @@ +export function makeModuleAnalyzer(babel: any): (moduleSource: string, { sourceUrl, sourceMapUrl, sourceMap, sourceMapHook }?: import('./static-module-record.js').Options) => Readonly<{ + exportAlls: readonly never[]; + imports: any; + liveExportMap: any; + fixedExportMap: any; + reexportMap: any; + needsImportMeta: boolean; + functorSource: string; +}>; +export function makeModuleTransformer(babel: any, importer: any): { + rewrite(ss: any): any; +}; +//# sourceMappingURL=transform-analyze.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/transform-analyze.d.ts.map b/packages/static-module-record/src/transform-analyze.d.ts.map new file mode 100644 index 0000000000..666de4a1b8 --- /dev/null +++ b/packages/static-module-record/src/transform-analyze.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transform-analyze.d.ts","sourceRoot":"","sources":["transform-analyze.js"],"names":[],"mappings":"AA6HO,+DAlHM,MAAM,0DACN,OAAO,2BAA2B,EAAE,OAAO;;;;;;;;GAoHvD;AAEM;;EA6DN"} \ No newline at end of file diff --git a/packages/static-module-record/src/transformSource.d.ts b/packages/static-module-record/src/transformSource.d.ts new file mode 100644 index 0000000000..f70d9c6b5b --- /dev/null +++ b/packages/static-module-record/src/transformSource.d.ts @@ -0,0 +1,2 @@ +export function makeTransformSource(makeModulePlugins: any, babel?: null): (source: any, sourceOptions?: {}) => any; +//# sourceMappingURL=transformSource.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/transformSource.d.ts.map b/packages/static-module-record/src/transformSource.d.ts.map new file mode 100644 index 0000000000..12492db6f0 --- /dev/null +++ b/packages/static-module-record/src/transformSource.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"transformSource.d.ts","sourceRoot":"","sources":["transformSource.js"],"names":[],"mappings":"AAeO,oHA0CN"} \ No newline at end of file diff --git a/packages/stream-node/index.d.ts b/packages/stream-node/index.d.ts new file mode 100644 index 0000000000..72b58ed5c7 --- /dev/null +++ b/packages/stream-node/index.d.ts @@ -0,0 +1,3 @@ +export { makeNodeReader } from "./reader.js"; +export { makeNodeWriter } from "./writer.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/stream-node/index.d.ts.map b/packages/stream-node/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/stream-node/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/stream-node/reader.d.ts b/packages/stream-node/reader.d.ts new file mode 100644 index 0000000000..89518e4b9a --- /dev/null +++ b/packages/stream-node/reader.d.ts @@ -0,0 +1,2 @@ +export function makeNodeReader(input: import('stream').Readable): import('@endo/stream').Reader; +//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/stream-node/reader.d.ts.map b/packages/stream-node/reader.d.ts.map new file mode 100644 index 0000000000..fefbc3e688 --- /dev/null +++ b/packages/stream-node/reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AAgBO,sCAHI,OAAO,QAAQ,EAAE,QAAQ,GACvB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,CAuCrD"} \ No newline at end of file diff --git a/packages/stream-node/writer.d.ts b/packages/stream-node/writer.d.ts new file mode 100644 index 0000000000..d3935b0c09 --- /dev/null +++ b/packages/stream-node/writer.d.ts @@ -0,0 +1,2 @@ +export function makeNodeWriter(writer: import('stream').Writable): import('@endo/stream').Writer; +//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/stream-node/writer.d.ts.map b/packages/stream-node/writer.d.ts.map new file mode 100644 index 0000000000..21c6b0f704 --- /dev/null +++ b/packages/stream-node/writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAoBO,uCAHI,OAAO,QAAQ,EAAE,QAAQ,GACvB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,CA0ErD"} \ No newline at end of file diff --git a/packages/stream/index.d.ts b/packages/stream/index.d.ts new file mode 100644 index 0000000000..2243ec4ed6 --- /dev/null +++ b/packages/stream/index.d.ts @@ -0,0 +1,48 @@ +export function makeQueue(): import("./types.js").AsyncQueue; +export function makeStream(acks: import("./types.js").AsyncSpring>, data: import("./types.js").AsyncSink>): { + /** + * @param {TWrite} value + */ + next(value: TWrite): Promise>; + /** + * @param {TWriteReturn} value + */ + return(value: TWriteReturn): Promise>; + /** + * @param {Error} error + */ + throw(error: Error): Promise>; + [Symbol.asyncIterator](): any; +}; +export function makePipe(): { + /** + * @param {TWrite} value + */ + next(value: any): Promise>; + /** + * @param {TWriteReturn} value + */ + return(value: any): Promise>; + /** + * @param {Error} error + */ + throw(error: Error): Promise>; + [Symbol.asyncIterator](): any; +}[]; +export function pump(writer: import("./types.js").Stream, reader: import("./types.js").Stream, primer: TWrite): Promise; +export function prime(generator: AsyncGenerator, primer: TWrite): { + /** @param {TWrite} value */ + next(value: TWrite): Promise>; + /** @param {TReturn} value */ + return(value: TReturn): Promise>; + /** @param {Error} error */ + throw(error: Error): Promise>; +}; +export function mapReader(reader: import("./types.js").Reader, transform: (value: TIn) => TOut): import("./types.js").Reader; +export function mapWriter(writer: import("./types.js").Writer, transform: (value: TIn) => TOut): import("./types.js").Writer; +export type PromiseKit = { + resolve(value?: T | Promise): void; + reject(error: Error): void; + promise: Promise; +}; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/stream/index.d.ts.map b/packages/stream/index.d.ts.map new file mode 100644 index 0000000000..2aa9c4d2c2 --- /dev/null +++ b/packages/stream/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAkCO,sEAcN;AAWM;IAEH;;OAEG;;IAOH;;OAEG;;IAKH;;OAEG;iBADQ,KAAK;;EAWnB;AAMM;IAlCH;;OAEG;;IAOH;;OAEG;;IAKH;;OAEG;iBADQ,KAAK;;IAuBnB;AAYM,iQAmCN;AAUM;IAMH,4BAA4B;;IAU5B,6BAA6B;;IAU7B,2BAA2B;iBAAf,KAAK;EAYpB;AAUM,yKASN;AAUM,yKAyBN;;oBAvOoB,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI;kBACvB,KAAK,GAAG,IAAI;aACjB,QAAQ,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/syrup/decode.d.ts b/packages/syrup/decode.d.ts new file mode 100644 index 0000000000..0be16ee058 --- /dev/null +++ b/packages/syrup/decode.d.ts @@ -0,0 +1,2 @@ +export { decodeSyrup } from "./src/decode.js"; +//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/decode.d.ts.map b/packages/syrup/decode.d.ts.map new file mode 100644 index 0000000000..857a2f9a25 --- /dev/null +++ b/packages/syrup/decode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/syrup/encode.d.ts b/packages/syrup/encode.d.ts new file mode 100644 index 0000000000..b2081d2e96 --- /dev/null +++ b/packages/syrup/encode.d.ts @@ -0,0 +1,2 @@ +export { encodeSyrup } from "./src/encode.js"; +//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/encode.d.ts.map b/packages/syrup/encode.d.ts.map new file mode 100644 index 0000000000..6d6d25d222 --- /dev/null +++ b/packages/syrup/encode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/syrup/index.d.ts b/packages/syrup/index.d.ts new file mode 100644 index 0000000000..df269f0b37 --- /dev/null +++ b/packages/syrup/index.d.ts @@ -0,0 +1,3 @@ +export { encodeSyrup } from "./src/encode.js"; +export { decodeSyrup } from "./src/decode.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/syrup/index.d.ts.map b/packages/syrup/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/syrup/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/syrup/src/compare.d.ts b/packages/syrup/src/compare.d.ts new file mode 100644 index 0000000000..03e5483461 --- /dev/null +++ b/packages/syrup/src/compare.d.ts @@ -0,0 +1,10 @@ +/** + * @param {Uint8Array} left + * @param {Uint8Array} right + * @param {number} leftStart + * @param {number} leftEnd + * @param {number} rightStart + * @param {number} rightEnd + */ +export function compareByteArrays(left: Uint8Array, right: Uint8Array, leftStart: number, leftEnd: number, rightStart: number, rightEnd: number): number; +//# sourceMappingURL=compare.d.ts.map \ No newline at end of file diff --git a/packages/syrup/src/compare.d.ts.map b/packages/syrup/src/compare.d.ts.map new file mode 100644 index 0000000000..7530c3c31e --- /dev/null +++ b/packages/syrup/src/compare.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["compare.js"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wCAPW,UAAU,SACV,UAAU,aACV,MAAM,WACN,MAAM,cACN,MAAM,YACN,MAAM,UAoEhB"} \ No newline at end of file diff --git a/packages/syrup/src/decode.d.ts b/packages/syrup/src/decode.d.ts new file mode 100644 index 0000000000..dc578b37cd --- /dev/null +++ b/packages/syrup/src/decode.d.ts @@ -0,0 +1,13 @@ +/** + * @param {Uint8Array} bytes + * @param {object} options + * @param {string} [options.name] + * @param {number} [options.start] + * @param {number} [options.end] + */ +export function decodeSyrup(bytes: Uint8Array, options?: { + name?: string | undefined; + start?: number | undefined; + end?: number | undefined; +}): any; +//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/src/decode.d.ts.map b/packages/syrup/src/decode.d.ts.map new file mode 100644 index 0000000000..2f2cd7c0ad --- /dev/null +++ b/packages/syrup/src/decode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":"AA+VA;;;;;;GAMG;AACH,mCANW,UAAU;IAEO,IAAI;IACJ,KAAK;IACL,GAAG;QAgB9B"} \ No newline at end of file diff --git a/packages/syrup/src/encode.d.ts b/packages/syrup/src/encode.d.ts new file mode 100644 index 0000000000..1ee65a9372 --- /dev/null +++ b/packages/syrup/src/encode.d.ts @@ -0,0 +1,16 @@ +/** + * @param {any} value + * @param {object} [options] + * @param {number} [options.length] A guess at the length. If provided, must be + * greater than zero. + * @returns {Uint8Array} + */ +export function encodeSyrup(value: any, options?: { + length?: number | undefined; +} | undefined): Uint8Array; +export type Buffer = { + bytes: Uint8Array; + data: DataView; + length: number; +}; +//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/src/encode.d.ts.map b/packages/syrup/src/encode.d.ts.map new file mode 100644 index 0000000000..8c45203736 --- /dev/null +++ b/packages/syrup/src/encode.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":"AA0OA;;;;;;GAMG;AACH,mCANW,GAAG;;gBAID,UAAU,CAUtB;;WAnOa,UAAU;UACV,QAAQ;YACR,MAAM"} \ No newline at end of file diff --git a/packages/where/index.d.ts b/packages/where/index.d.ts new file mode 100644 index 0000000000..7f0aefb008 --- /dev/null +++ b/packages/where/index.d.ts @@ -0,0 +1,32 @@ +/** + * Returns the most suitable path for Endo state with this platform and + * environment. + * Endo uses the state directory for saved files including applications, + * durable capabilities, and the user's pet names for them. + * Endo also logs here, per XDG's preference to persist logs even when caches + * are purged. + * + * @type {typeof import('./types.js').whereEndoState} + */ +export const whereEndoState: typeof import('./types.js').whereEndoState; +/** + * Returns the most suitable location for storing state that ideally does not + * persist between restarts or reboots, specifically PID files. + * + * @type {typeof import('./types.js').whereEndoEphemeralState} + */ +export const whereEndoEphemeralState: typeof import('./types.js').whereEndoEphemeralState; +/** + * Returns the most suitable path for the Endo UNIX domain socket or Windows + * named pipe. + * + * @type {typeof import('./types.js').whereEndoSock} + */ +export const whereEndoSock: typeof import('./types.js').whereEndoSock; +/** + * Returns the most suitable path for Endo caches. + * + * @type {typeof import('./types.js').whereEndoCache} + */ +export const whereEndoCache: typeof import('./types.js').whereEndoCache; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/where/index.d.ts.map b/packages/where/index.d.ts.map new file mode 100644 index 0000000000..599ad75140 --- /dev/null +++ b/packages/where/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AA6BA;;;;;;;;;GASG;AACH,6BAFU,cAAc,YAAY,EAAE,cAAc,CAelD;AAEF;;;;;GAKG;AACH,sCAFU,cAAc,YAAY,EAAE,uBAAuB,CAW3D;AAEF;;;;;GAKG;AACH,4BAFU,cAAc,YAAY,EAAE,aAAa,CAqBjD;AAEF;;;;GAIG;AACH,6BAFU,cAAc,YAAY,EAAE,cAAc,CAalD"} \ No newline at end of file diff --git a/packages/zip/index.d.ts b/packages/zip/index.d.ts new file mode 100644 index 0000000000..ab1825e2b2 --- /dev/null +++ b/packages/zip/index.d.ts @@ -0,0 +1,4 @@ +export * from "./src/types.js"; +export { ZipReader, readZip } from "./src/reader.js"; +export { ZipWriter, writeZip } from "./src/writer.js"; +//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/zip/index.d.ts.map b/packages/zip/index.d.ts.map new file mode 100644 index 0000000000..ca7a93a9a2 --- /dev/null +++ b/packages/zip/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/zip/reader.d.ts b/packages/zip/reader.d.ts new file mode 100644 index 0000000000..57b23caa78 --- /dev/null +++ b/packages/zip/reader.d.ts @@ -0,0 +1,2 @@ +export { ZipReader } from "./src/reader.js"; +//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/reader.d.ts.map b/packages/zip/reader.d.ts.map new file mode 100644 index 0000000000..ffa5648d0c --- /dev/null +++ b/packages/zip/reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/zip/src/buffer-reader.d.ts b/packages/zip/src/buffer-reader.d.ts new file mode 100644 index 0000000000..3a9e130ed0 --- /dev/null +++ b/packages/zip/src/buffer-reader.d.ts @@ -0,0 +1,112 @@ +export class BufferReader { + /** + * @param {ArrayBuffer} buffer + */ + constructor(buffer: ArrayBuffer); + /** + * @returns {number} + */ + get length(): number; + /** + * @param {number} index + */ + set index(index: number); + /** + * @returns {number} + */ + get index(): number; + /** + * @param {number} offset + */ + set offset(offset: number); + /** + * @param {number} index + * @returns {boolean} whether the read head can move to the given absolute + * index. + */ + canSeek(index: number): boolean; + /** + * @param {number} index the index to check. + * @throws {Error} an Error if the index is out of bounds. + */ + assertCanSeek(index: number): void; + /** + * @param {number} index + * @returns {number} prior index + */ + seek(index: number): number; + /** + * @param {number} size + * @returns {Uint8Array} + */ + peek(size: number): Uint8Array; + /** + * @param {number} offset + */ + canRead(offset: number): boolean; + /** + * Check that the offset will not go too far. + * + * @param {number} offset the additional offset to check. + * @throws {Error} an Error if the offset is out of bounds. + */ + assertCanRead(offset: number): void; + /** + * Get raw data without conversion, bytes. + * + * @param {number} size the number of bytes to read. + * @returns {Uint8Array} the raw data. + */ + read(size: number): Uint8Array; + /** + * @returns {number} + */ + readUint8(): number; + /** + * @returns {number} + * @param {boolean=} littleEndian + */ + readUint16(littleEndian?: boolean | undefined): number; + /** + * @returns {number} + * @param {boolean=} littleEndian + */ + readUint32(littleEndian?: boolean | undefined): number; + /** + * @param {number} index + * @returns {number} + */ + byteAt(index: number): number; + /** + * @param {number} offset + */ + skip(offset: number): void; + /** + * @param {Uint8Array} expected + * @returns {boolean} + */ + expect(expected: Uint8Array): boolean; + /** + * @param {number} index + * @param {Uint8Array} expected + * @returns {boolean} + */ + matchAt(index: number, expected: Uint8Array): boolean; + /** + * @param {Uint8Array} expected + */ + assert(expected: Uint8Array): void; + /** + * @param {Uint8Array} expected + * @returns {number} + */ + findLast(expected: Uint8Array): number; +} +export type BufferReaderState = { + bytes: Uint8Array; + data: DataView; + length: number; + index: number; + offset: number; +}; +//# sourceMappingURL=buffer-reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/buffer-reader.d.ts.map b/packages/zip/src/buffer-reader.d.ts.map new file mode 100644 index 0000000000..7cff920ea7 --- /dev/null +++ b/packages/zip/src/buffer-reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"buffer-reader.d.ts","sourceRoot":"","sources":["buffer-reader.js"],"names":[],"mappings":"AAoBA;IACE;;OAEG;IACH,oBAFW,WAAW,EAYrB;IAED;;OAEG;IACH,qBAEC;IASD;;OAEG;IACH,yBAEC;IAZD;;OAEG;IACH,oBAEC;IASD;;OAEG;IACH,2BAUC;IAED;;;;OAIG;IACH,eAJW,MAAM,GACJ,OAAO,CAMnB;IAED;;;OAGG;IACH,qBAHW,MAAM,QAUhB;IAED;;;OAGG;IACH,YAHW,MAAM,GACJ,MAAM,CAQlB;IAED;;;OAGG;IACH,WAHW,MAAM,GACJ,UAAU,CAetB;IAED;;OAEG;IACH,gBAFW,MAAM,WAKhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,WAHW,MAAM,GACJ,UAAU,CAQtB;IAED;;OAEG;IACH,aAFa,MAAM,CASlB;IAED;;;OAGG;IACH,0BAFW,OAAO,eADL,MAAM,CAUlB;IAED;;;OAGG;IACH,0BAFW,OAAO,eADL,MAAM,CAUlB;IAED;;;OAGG;IACH,cAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;OAEG;IACH,aAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,iBAHW,UAAU,GACR,OAAO,CASnB;IAED;;;;OAIG;IACH,eAJW,MAAM,YACN,UAAU,GACR,OAAO,CAanB;IAED;;OAEG;IACH,iBAFW,UAAU,QAWpB;IAED;;;OAGG;IACH,mBAHW,UAAU,GACR,MAAM,CASlB;CACF;;WAxQa,UAAU;UACV,QAAQ;YACR,MAAM;WACN,MAAM;YACN,MAAM"} \ No newline at end of file diff --git a/packages/zip/src/buffer-writer.d.ts b/packages/zip/src/buffer-writer.d.ts new file mode 100644 index 0000000000..0556922076 --- /dev/null +++ b/packages/zip/src/buffer-writer.d.ts @@ -0,0 +1,66 @@ +export class BufferWriter { + /** + * @param {number=} capacity + */ + constructor(capacity?: number | undefined); + /** + * @returns {number} + */ + get length(): number; + /** + * @param {number} index + */ + set index(index: number); + /** + * @returns {number} + */ + get index(): number; + /** + * @param {number} required + */ + ensureCanSeek(required: number): void; + /** + * @param {number} index + */ + seek(index: number): void; + /** + * @param {number} size + */ + ensureCanWrite(size: number): void; + /** + * @param {Uint8Array} bytes + */ + write(bytes: Uint8Array): void; + /** + * @param {number} start + * @param {number} end + */ + writeCopy(start: number, end: number): void; + /** + * @param {number} value + */ + writeUint8(value: number): void; + /** + * @param {number} value + * @param {boolean=} littleEndian + */ + writeUint16(value: number, littleEndian?: boolean | undefined): void; + /** + * @param {number} value + * @param {boolean=} littleEndian + */ + writeUint32(value: number, littleEndian?: boolean | undefined): void; + /** + * @param {number=} begin + * @param {number=} end + * @returns {Uint8Array} + */ + subarray(begin?: number | undefined, end?: number | undefined): Uint8Array; + /** + * @param {number=} begin + * @param {number=} end + * @returns {Uint8Array} + */ + slice(begin?: number | undefined, end?: number | undefined): Uint8Array; +} +//# sourceMappingURL=buffer-writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/buffer-writer.d.ts.map b/packages/zip/src/buffer-writer.d.ts.map new file mode 100644 index 0000000000..387e4409ca --- /dev/null +++ b/packages/zip/src/buffer-writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"buffer-writer.d.ts","sourceRoot":"","sources":["buffer-writer.js"],"names":[],"mappings":"AAgCA;IAsBE;;OAEG;IACH,uBAFW,MAAM,cAYhB;IAlCD;;OAEG;IACH,qBAEC;IASD;;OAEG;IACH,yBAEC;IAZD;;OAEG;IACH,oBAEC;IAwBD;;OAEG;IACH,wBAFW,MAAM,QAehB;IAED;;OAEG;IACH,YAFW,MAAM,QAOhB;IAED;;OAEG;IACH,qBAFW,MAAM,QAMhB;IAED;;OAEG;IACH,aAFW,UAAU,QAQpB;IAED;;;OAGG;IACH,iBAHW,MAAM,OACN,MAAM,QAWhB;IAED;;OAEG;IACH,kBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,mBAHW,MAAM,iBACN,OAAO,oBASjB;IAED;;;OAGG;IACH,mBAHW,MAAM,iBACN,OAAO,oBASjB;IAED;;;;OAIG;IACH,iBAJW,MAAM,oBACN,MAAM,eACJ,UAAU,CAKtB;IAED;;;;OAIG;IACH,cAJW,MAAM,oBACN,MAAM,eACJ,UAAU,CAItB;CACF"} \ No newline at end of file diff --git a/packages/zip/src/compression.d.ts b/packages/zip/src/compression.d.ts new file mode 100644 index 0000000000..92e7775368 --- /dev/null +++ b/packages/zip/src/compression.d.ts @@ -0,0 +1,2 @@ +export const STORE: 0; +//# sourceMappingURL=compression.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/compression.d.ts.map b/packages/zip/src/compression.d.ts.map new file mode 100644 index 0000000000..23080ff4bc --- /dev/null +++ b/packages/zip/src/compression.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["compression.js"],"names":[],"mappings":"AAGA,sBAAuB"} \ No newline at end of file diff --git a/packages/zip/src/crc32.d.ts b/packages/zip/src/crc32.d.ts new file mode 100644 index 0000000000..4c4ffaaeb6 --- /dev/null +++ b/packages/zip/src/crc32.d.ts @@ -0,0 +1,8 @@ +/** + * @param {Uint8Array} bytes + * @param {number} length + * @param {number} index + * @param {number} crc + */ +export function crc32(bytes: Uint8Array, length?: number, index?: number, crc?: number): number; +//# sourceMappingURL=crc32.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/crc32.d.ts.map b/packages/zip/src/crc32.d.ts.map new file mode 100644 index 0000000000..8df6eb53bc --- /dev/null +++ b/packages/zip/src/crc32.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"crc32.d.ts","sourceRoot":"","sources":["crc32.js"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,6BALW,UAAU,WACV,MAAM,UACN,MAAM,QACN,MAAM,UAYhB"} \ No newline at end of file diff --git a/packages/zip/src/format-reader.d.ts b/packages/zip/src/format-reader.d.ts new file mode 100644 index 0000000000..6b37ef4111 --- /dev/null +++ b/packages/zip/src/format-reader.d.ts @@ -0,0 +1,44 @@ +/** + * @param {BufferReader} reader + * @param {string} name + */ +export function readZip(reader: BufferReader, name?: string): Map; +export type ArchiveHeaders = import('./types.js').ArchiveHeaders; +export type CompressedFile = import('./types.js').CompressedFile; +export type UncompressedFile = import('./types.js').UncompressedFile; +export type ArchivedFile = import('./types.js').ArchivedFile; +export type CentralFileRecord = { + name: Uint8Array; + version: number; + madeBy: number; + fileStart: number; + diskNumberStart: number; + internalFileAttributes: number; + externalFileAttributes: number; + comment: Uint8Array; +} & ArchiveHeaders; +export type LocalFileRecord = { + name: Uint8Array; + content: Uint8Array; +} & ArchiveHeaders; +export type CentralDirectoryLocator = { + diskNumber: number; + diskWithCentralDirStart: number; + centralDirectoryRecordsOnThisDisk: number; + centralDirectoryRecords: number; + centralDirectorySize: number; + centralDirectoryOffset: number; + comment: string; +}; +export type BufferReader = { + readonly length: number; + offset: number; + read: (size: number) => Uint8Array; + skip: (size: number) => void; + seek: (index: number) => void; + expect: (bytes: Uint8Array) => boolean; + readUint8: () => number; + readUint16: (littleEndian?: boolean) => number; + readUint32: (littleEndian?: boolean) => number; +}; +//# sourceMappingURL=format-reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/format-reader.d.ts.map b/packages/zip/src/format-reader.d.ts.map new file mode 100644 index 0000000000..5f38ec89fd --- /dev/null +++ b/packages/zip/src/format-reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"format-reader.d.ts","sourceRoot":"","sources":["format-reader.js"],"names":[],"mappings":"AAgcA;;;GAGG;AACH,gCAHW,YAAY,SACZ,MAAM,iBA4BhB;6BA1dY,OAAO,YAAY,EAAE,cAAc;6BACnC,OAAO,YAAY,EAAE,cAAc;+BACnC,OAAO,YAAY,EAAE,gBAAgB;2BACrC,OAAO,YAAY,EAAE,YAAY;gCAEjC;IACZ,MAAU,UAAU,CAAC;IACrB,OAAW,EAAE,MAAM,CAAC;IACpB,MAAU,EAAE,MAAM,CAAC;IACnB,SAAa,EAAE,MAAM,CAAC;IACtB,eAAmB,EAAE,MAAM,CAAC;IAC5B,sBAA0B,EAAE,MAAM,CAAC;IACnC,sBAA0B,EAAE,MAAM,CAAC;IACnC,OAAW,EAAE,UAAU,CAAA;CACpB,GAAG,cAAc;8BAER;IACZ,MAAU,UAAU,CAAC;IACrB,OAAW,EAAE,UAAU,CAAC;CACrB,GAAG,cAAc;sCAER;IACZ,UAAa,EAAE,MAAM,CAAC;IACtB,uBAA0B,EAAE,MAAM,CAAC;IACnC,iCAAoC,EAAE,MAAM,CAAC;IAC7C,uBAA0B,EAAE,MAAM,CAAC;IACnC,oBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAyB,EAAE,MAAM,CAAA;IACjC,OAAU,EAAE,MAAM,CAAA;CACf;;qBAGkB,MAAM;YACf,MAAM;iBACD,MAAM,KAAK,UAAU;iBACrB,MAAM,KAAK,IAAI;kBACd,MAAM,KAAK,IAAI;oBACb,UAAU,KAAK,OAAO;eAC3B,MAAM,MAAM;gCACK,OAAO,KAAK,MAAM;gCAClB,OAAO,KAAK,MAAM"} \ No newline at end of file diff --git a/packages/zip/src/format-writer.d.ts b/packages/zip/src/format-writer.d.ts new file mode 100644 index 0000000000..42753b505c --- /dev/null +++ b/packages/zip/src/format-writer.d.ts @@ -0,0 +1,46 @@ +/** + * @param {BufferWriter} writer + * @param {Array} records + * @param {string} comment + */ +export function writeZipRecords(writer: BufferWriter, records: Array, comment?: string): void; +/** + * @param {BufferWriter} writer + * @param {Array} files + * @param {string} comment + */ +export function writeZip(writer: BufferWriter, files: Array, comment?: string): void; +export type LocalFileLocator = { + fileStart: number; + headerStart: number; + headerEnd: number; +}; +export type FileRecord = { + name: Uint8Array; + centralName: Uint8Array; + madeBy: number; + version: number; + diskNumberStart: number; + internalFileAttributes: number; + externalFileAttributes: number; + content: Uint8Array; + comment: Uint8Array; +} & import('./types.js').ArchiveHeaders; +export type BufferWriter = { + index: number; + readonly length: number; + write: (bytes: Uint8Array) => void; + writeCopy: (start: number, end: number) => void; + writeUint8: (number: number) => void; + writeUint16: (number: number, littleEndian?: boolean) => void; + writeUint32: (number: number, littleEndian?: boolean) => void; +}; +/** + * Computes Zip external file attributes field from a UNIX mode for a file. + * + * @param {number} mode + * @returns {number} + */ +declare function externalFileAttributes(mode: number): number; +export {}; +//# sourceMappingURL=format-writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/format-writer.d.ts.map b/packages/zip/src/format-writer.d.ts.map new file mode 100644 index 0000000000..0788064b37 --- /dev/null +++ b/packages/zip/src/format-writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"format-writer.d.ts","sourceRoot":"","sources":["format-writer.js"],"names":[],"mappings":"AA8IA;;;;GAIG;AACH,wCAJW,YAAY,WACZ,MAAM,UAAU,CAAC,YACjB,MAAM,QA0BhB;AAiFD;;;;GAIG;AACH,iCAJW,YAAY,SACZ,MAAM,OAAO,YAAY,EAAE,YAAY,CAAC,YACxC,MAAM,QAQhB;+BAnQY;IACZ,SAAY,EAAE,MAAM,CAAC;IACrB,WAAc,EAAE,MAAM,CAAC;IACvB,SAAY,EAAE,MAAM,CAAC;CAClB;yBAES;IACZ,MAAU,UAAU,CAAC;IACrB,WAAe,EAAE,UAAU,CAAC;IAC5B,MAAU,EAAE,MAAM,CAAC;IACnB,OAAW,EAAE,MAAM,CAAC;IACpB,eAAmB,EAAE,MAAM,CAAC;IAC5B,sBAA0B,EAAE,MAAM,CAAC;IACnC,wBAA4B,MAAM,CAAC;IACnC,OAAW,EAAE,UAAU,CAAC;IACxB,OAAW,EAAE,UAAU,CAAC;CACrB,GAAG,OAAO,YAAY,EAAE,cAAc;;WAG9B,MAAM;qBACI,MAAM;mBACR,UAAU,KAAK,IAAI;uBACf,MAAM,OAAO,MAAM,KAAK,IAAI;yBAC1B,MAAM,KAAK,IAAI;0BACd,MAAM,iBAAiB,OAAO,KAAK,IAAI;0BACvC,MAAM,iBAAiB,OAAO,KAAK,IAAI;;AAkLlE;;;;;GAKG;AACH,8CAHW,MAAM,GACJ,MAAM,CAIlB"} \ No newline at end of file diff --git a/packages/zip/src/reader.d.ts b/packages/zip/src/reader.d.ts new file mode 100644 index 0000000000..c169abecb5 --- /dev/null +++ b/packages/zip/src/reader.d.ts @@ -0,0 +1,24 @@ +export class ZipReader { + /** + * @param {Uint8Array} data + * @param {object} [options] + * @param {string} [options.name] + */ + constructor(data: Uint8Array, options?: { + name?: string | undefined; + } | undefined); + files: Map; + name: string; + /** + * @param {string} name + * @returns {Uint8Array} + */ + read(name: string): Uint8Array; + /** + * @param {string} name + * @returns {import('./types.js').ArchivedStat=} + */ + stat(name: string): import('./types.js').ArchivedStat | undefined; +} +export function readZip(data: Uint8Array, location: string): Promise; +//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/reader.d.ts.map b/packages/zip/src/reader.d.ts.map new file mode 100644 index 0000000000..9aeef00377 --- /dev/null +++ b/packages/zip/src/reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AAKA;IACE;;;;OAIG;IACH,kBAJW,UAAU;;mBASpB;IAFC,qBAAkC;IAClC,aAAgB;IAGlB;;;OAGG;IACH,WAHW,MAAM,GACJ,UAAU,CAQtB;IAED;;;OAGG;IACH,WAHW,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,aAa7C;CACF;AAOM,8BAJI,UAAU,YACV,MAAM,GACJ,QAAQ,OAAO,YAAY,EAAE,aAAa,CAAC,CAOvD"} \ No newline at end of file diff --git a/packages/zip/src/signature.d.ts b/packages/zip/src/signature.d.ts new file mode 100644 index 0000000000..f3f08eb695 --- /dev/null +++ b/packages/zip/src/signature.d.ts @@ -0,0 +1,7 @@ +export const LOCAL_FILE_HEADER: Uint8Array; +export const CENTRAL_FILE_HEADER: Uint8Array; +export const CENTRAL_DIRECTORY_END: Uint8Array; +export const ZIP64_CENTRAL_DIRECTORY_LOCATOR: Uint8Array; +export const ZIP64_CENTRAL_DIRECTORY_END: Uint8Array; +export const DATA_DESCRIPTOR: Uint8Array; +//# sourceMappingURL=signature.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/signature.d.ts.map b/packages/zip/src/signature.d.ts.map new file mode 100644 index 0000000000..fbd0fc2ba9 --- /dev/null +++ b/packages/zip/src/signature.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["signature.js"],"names":[],"mappings":"AAeA,2CAAiD;AACjD,6CAAmD;AACnD,+CAAqD;AACrD,yDAA+D;AAC/D,qDAA2D;AAC3D,yCAA+C"} \ No newline at end of file diff --git a/packages/zip/src/types.d.ts b/packages/zip/src/types.d.ts new file mode 100644 index 0000000000..8c642e80f4 --- /dev/null +++ b/packages/zip/src/types.d.ts @@ -0,0 +1,48 @@ +export type ArchivedStat = { + mode: number; + date: Date | null; + comment: string; + type: "file" | "directory"; +}; +export type ArchivedFile = { + name: string; + content: Uint8Array; +} & ArchivedStat; +export type UncompressedFile = { + name: Uint8Array; + mode: number; + date: Date | null; + content: Uint8Array; + comment: Uint8Array; +}; +export type CompressedFile = { + name: Uint8Array; + mode: number; + date: Date | null; + crc32: number; + compressionMethod: number; + compressedLength: number; + uncompressedLength: number; + content: Uint8Array; + comment: Uint8Array; +}; +export type ArchiveHeaders = { + versionNeeded: number; + bitFlag: number; + compressionMethod: number; + date: Date | null; + crc32: number; + compressedLength: number; + uncompressedLength: number; +}; +export type ArchiveReader = { + read: ReadFn; +}; +export type ReadFn = (name: string) => Promise; +export type ArchiveWriter = { + write: WriteFn; + snapshot: SnapshotFn; +}; +export type WriteFn = (name: string, bytes: Uint8Array) => Promise; +export type SnapshotFn = () => Promise; +//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/types.d.ts.map b/packages/zip/src/types.d.ts.map new file mode 100644 index 0000000000..277d4bbb7c --- /dev/null +++ b/packages/zip/src/types.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"2BAKa;IACZ,IAAQ,EAAE,MAAM,CAAC;IACjB,IAAQ,EAAE,IAAI,QAAE;IAChB,OAAW,EAAE,MAAM,CAAC;IACpB,IAAQ,EAAE,MAAM,GAAG,WAAW,CAAA;CAC3B;2BAES;IACZ,MAAU,MAAM,CAAC;IACjB,OAAW,EAAE,UAAU,CAAC;CACrB,GAAG,YAAY;+BAEN;IACZ,MAAU,UAAU,CAAC;IACrB,IAAQ,EAAE,MAAM,CAAC;IACjB,IAAQ,EAAE,IAAI,QAAE;IAChB,OAAW,EAAE,UAAU,CAAC;IACxB,OAAW,EAAE,UAAU,CAAC;CACrB;6BAES;IACZ,MAAU,UAAU,CAAC;IACrB,IAAQ,EAAE,MAAM,CAAC;IACjB,IAAQ,EAAE,IAAI,QAAE;IAChB,KAAS,EAAE,MAAM,CAAC;IAClB,iBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAW,EAAE,UAAU,CAAC;IACxB,OAAW,EAAE,UAAU,CAAC;CACrB;6BAES;IACZ,aAAiB,EAAE,MAAM,CAAC;IAC1B,OAAW,EAAE,MAAM,CAAC;IACpB,iBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAQ,EAAE,IAAI,QAAE;IAChB,KAAS,EAAE,MAAM,CAAC;IAClB,gBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAsB,EAAE,MAAM,CAAC;CAC5B;;UAKU,MAAM;;4BAKT,MAAM,KACJ,QAAQ,UAAU,CAAC;;WAKlB,OAAO;cACP,UAAU;;6BAKb,MAAM,SACN,UAAU,KACR,QAAQ,IAAI,CAAC;+BAKb,QAAQ,UAAU,CAAC"} \ No newline at end of file diff --git a/packages/zip/src/writer.d.ts b/packages/zip/src/writer.d.ts new file mode 100644 index 0000000000..63a77ad375 --- /dev/null +++ b/packages/zip/src/writer.d.ts @@ -0,0 +1,33 @@ +export class ZipWriter { + /** + * @param {{ + * date: Date, + * }} options + */ + constructor(options?: { + date: Date; + }); + /** type {Map} */ + files: Map; + date: Date; + /** + * @param {string} name + * @param {Uint8Array} content + * @param {{ + * mode?: number, + * date?: Date, + * comment?: string, + * }} [options] + */ + write(name: string, content: Uint8Array, options?: { + mode?: number | undefined; + date?: Date | undefined; + comment?: string | undefined; + } | undefined): void; + /** + * @returns {Uint8Array} + */ + snapshot(): Uint8Array; +} +export function writeZip(): import('./types.js').ArchiveWriter; +//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/writer.d.ts.map b/packages/zip/src/writer.d.ts.map new file mode 100644 index 0000000000..295f2ae81d --- /dev/null +++ b/packages/zip/src/writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAKA;IACE;;;;OAIG;IACH;cAHW,IAAI;OAQd;IAHC,gCAAgC;IAChC,qBAAsB;IACtB,WAAgB;IAGlB;;;;;;;;OAQG;IACH,YARW,MAAM,WACN,UAAU;;;;yBAmBpB;IAED;;OAEG;IACH,YAFa,UAAU,CAMtB;CACF;AAKM,4BAFM,OAAO,YAAY,EAAE,aAAa,CAW9C"} \ No newline at end of file diff --git a/packages/zip/writer.d.ts b/packages/zip/writer.d.ts new file mode 100644 index 0000000000..130f29f0cb --- /dev/null +++ b/packages/zip/writer.d.ts @@ -0,0 +1,2 @@ +export { ZipWriter } from "./src/writer.js"; +//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/writer.d.ts.map b/packages/zip/writer.d.ts.map new file mode 100644 index 0000000000..dcb591b189 --- /dev/null +++ b/packages/zip/writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":""} \ No newline at end of file From 36384eb5a4bbd11dd3d06a8045d620f8d6569590 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Mar 2024 15:38:18 -0700 Subject: [PATCH 3/4] chore(release): publish - @endo/base64@1.0.3 - @endo/bundle-source@3.2.0 - @endo/captp@4.1.0 - @endo/check-bundle@1.0.5 - @endo/cjs-module-analyzer@1.0.3 - @endo/cli@2.1.0 - @endo/common@1.2.0 - @endo/compartment-mapper@1.1.3 - @endo/daemon@2.1.0 - @endo/env-options@1.1.2 - @endo/errors@1.2.0 - @endo/eslint-plugin@2.1.1 - @endo/evasive-transform@1.1.0 - @endo/eventual-send@1.2.0 - @endo/exo@1.3.0 - @endo/far@1.1.0 - @endo/import-bundle@1.1.0 - @endo/init@1.1.0 - @endo/lockdown@1.0.5 - @endo/lp32@1.1.0 - @endo/marshal@1.4.0 - @endo/memoize@1.1.0 - @endo/nat@5.0.5 - @endo/netstring@1.0.5 - @endo/pass-style@1.3.0 - @endo/patterns@1.3.0 - @endo/promise-kit@1.1.0 - @endo/ses-ava@1.2.0 - ses@1.4.0 - @endo/skel@1.1.0 - @endo/static-module-record@1.1.0 - @endo/stream-node@1.1.0 - @endo/stream-types-test@1.0.5 - @endo/stream@1.2.0 - @endo/syrup@1.0.3 - @endo/test262-runner@0.1.35 - @endo/where@1.0.3 - @endo/zip@1.0.3 --- packages/base64/CHANGELOG.md | 8 ++++ packages/base64/package.json | 2 +- packages/bundle-source/CHANGELOG.md | 16 ++++++++ packages/bundle-source/package.json | 18 ++++----- packages/captp/CHANGELOG.md | 14 +++++++ packages/captp/package.json | 16 ++++---- packages/check-bundle/CHANGELOG.md | 8 ++++ packages/check-bundle/package.json | 14 +++---- packages/cjs-module-analyzer/CHANGELOG.md | 8 ++++ packages/cjs-module-analyzer/package.json | 2 +- packages/cli/CHANGELOG.md | 14 +++++++ packages/cli/package.json | 24 ++++++------ packages/common/CHANGELOG.md | 9 +++++ packages/common/package.json | 12 +++--- packages/compartment-mapper/CHANGELOG.md | 8 ++++ packages/compartment-mapper/package.json | 10 ++--- packages/daemon/CHANGELOG.md | 44 ++++++++++++++++++++++ packages/daemon/package.json | 36 +++++++++--------- packages/env-options/CHANGELOG.md | 8 ++++ packages/env-options/package.json | 2 +- packages/errors/CHANGELOG.md | 9 +++++ packages/errors/package.json | 8 ++-- packages/eslint-plugin/CHANGELOG.md | 8 ++++ packages/eslint-plugin/package.json | 2 +- packages/evasive-transform/CHANGELOG.md | 9 +++++ packages/evasive-transform/package.json | 4 +- packages/eventual-send/CHANGELOG.md | 9 +++++ packages/eventual-send/package.json | 6 +-- packages/exo/CHANGELOG.md | 9 +++++ packages/exo/package.json | 20 +++++----- packages/far/CHANGELOG.md | 9 +++++ packages/far/package.json | 12 +++--- packages/import-bundle/CHANGELOG.md | 9 +++++ packages/import-bundle/package.json | 18 ++++----- packages/init/CHANGELOG.md | 9 +++++ packages/init/package.json | 12 +++--- packages/lockdown/CHANGELOG.md | 8 ++++ packages/lockdown/package.json | 4 +- packages/lp32/CHANGELOG.md | 9 +++++ packages/lp32/package.json | 12 +++--- packages/marshal/CHANGELOG.md | 9 +++++ packages/marshal/package.json | 20 +++++----- packages/memoize/CHANGELOG.md | 9 +++++ packages/memoize/package.json | 8 ++-- packages/nat/CHANGELOG.md | 8 ++++ packages/nat/package.json | 6 +-- packages/netstring/CHANGELOG.md | 8 ++++ packages/netstring/package.json | 10 ++--- packages/pass-style/CHANGELOG.md | 10 +++++ packages/pass-style/package.json | 14 +++---- packages/patterns/CHANGELOG.md | 9 +++++ packages/patterns/package.json | 16 ++++---- packages/promise-kit/CHANGELOG.md | 9 +++++ packages/promise-kit/package.json | 4 +- packages/ses-ava/CHANGELOG.md | 14 +++++++ packages/ses-ava/package.json | 8 ++-- packages/ses/CHANGELOG.md | 10 +++++ packages/ses/package.json | 10 ++--- packages/skel/CHANGELOG.md | 9 +++++ packages/skel/package.json | 6 +-- packages/static-module-record/CHANGELOG.md | 9 +++++ packages/static-module-record/package.json | 4 +- packages/stream-node/CHANGELOG.md | 9 +++++ packages/stream-node/package.json | 12 +++--- packages/stream-types-test/CHANGELOG.md | 8 ++++ packages/stream-types-test/package.json | 6 +-- packages/stream/CHANGELOG.md | 9 +++++ packages/stream/package.json | 12 +++--- packages/syrup/CHANGELOG.md | 8 ++++ packages/syrup/package.json | 2 +- packages/test262-runner/CHANGELOG.md | 8 ++++ packages/test262-runner/package.json | 6 +-- packages/where/CHANGELOG.md | 8 ++++ packages/where/package.json | 2 +- packages/zip/CHANGELOG.md | 8 ++++ packages/zip/package.json | 2 +- 76 files changed, 578 insertions(+), 191 deletions(-) diff --git a/packages/base64/CHANGELOG.md b/packages/base64/CHANGELOG.md index c80b7ae95e..2478e63e56 100644 --- a/packages/base64/CHANGELOG.md +++ b/packages/base64/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.3](https://github.com/endojs/endo/compare/@endo/base64@1.0.2...@endo/base64@1.0.3) (2024-03-20) + +**Note:** Version bump only for package @endo/base64 + + + + + ### [1.0.2](https://github.com/endojs/endo/compare/@endo/base64@1.0.1...@endo/base64@1.0.2) (2024-02-15) diff --git a/packages/base64/package.json b/packages/base64/package.json index 3ccddfb436..df9682dc2f 100644 --- a/packages/base64/package.json +++ b/packages/base64/package.json @@ -1,6 +1,6 @@ { "name": "@endo/base64", - "version": "1.0.2", + "version": "1.0.3", "description": "Transcodes base64", "keywords": [ "base64", diff --git a/packages/bundle-source/CHANGELOG.md b/packages/bundle-source/CHANGELOG.md index ae035ddddd..d3d268f9b7 100644 --- a/packages/bundle-source/CHANGELOG.md +++ b/packages/bundle-source/CHANGELOG.md @@ -3,6 +3,22 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [3.2.0](https://github.com/endojs/endo/compare/@endo/bundle-source@3.1.0...@endo/bundle-source@3.2.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + +### Bug Fixes + +* **bundle-source:** cacheSourceMaps option is optional ([c180049](https://github.com/endojs/endo/commit/c1800491ea20b34c2f073b371f4941c247db7de6)) +* **bundle-source:** Export types properly ([50518da](https://github.com/endojs/endo/commit/50518dafc9e875277161827ae6d74fd627b6acf8)) +* **bundle-source:** Revert breaking export types change ([58e82f0](https://github.com/endojs/endo/commit/58e82f09373464ddcc28dc060813628e7ea5c9d5)) + + + ## [3.1.0](https://github.com/endojs/endo/compare/@endo/bundle-source@3.0.3...@endo/bundle-source@3.1.0) (2024-02-23) diff --git a/packages/bundle-source/package.json b/packages/bundle-source/package.json index 4fcd5cf865..600dfb2095 100644 --- a/packages/bundle-source/package.json +++ b/packages/bundle-source/package.json @@ -1,6 +1,6 @@ { "name": "@endo/bundle-source", - "version": "3.1.0", + "version": "3.2.0", "description": "Create source bundles from ES Modules", "type": "module", "main": "src/index.js", @@ -28,20 +28,20 @@ "lint:types": "tsc" }, "dependencies": { - "@endo/base64": "^1.0.2", - "@endo/compartment-mapper": "^1.1.2", - "@endo/evasive-transform": "^1.0.4", - "@endo/init": "^1.0.4", - "@endo/promise-kit": "^1.0.4", - "@endo/where": "^1.0.2", + "@endo/base64": "^1.0.3", + "@endo/compartment-mapper": "^1.1.3", + "@endo/evasive-transform": "^1.1.0", + "@endo/init": "^1.1.0", + "@endo/promise-kit": "^1.1.0", + "@endo/where": "^1.0.3", "@rollup/plugin-commonjs": "^19.0.0", "@rollup/plugin-node-resolve": "^13.0.0", "acorn": "^8.2.4", "rollup": "^2.79.1" }, "devDependencies": { - "@endo/lockdown": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/lockdown": "^1.0.5", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0", "execa": "^8.0.1" diff --git a/packages/captp/CHANGELOG.md b/packages/captp/CHANGELOG.md index 9cbf3779ad..64e09dd756 100644 --- a/packages/captp/CHANGELOG.md +++ b/packages/captp/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [4.1.0](https://github.com/endojs/endo/compare/@endo/captp@4.0.4...@endo/captp@4.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + +### Bug Fixes + +* **captp:** Teardown worker test ([63a75f7](https://github.com/endojs/endo/commit/63a75f75dc31328b35b7c63e7cd3628fcc465842)) + + + ### [4.0.4](https://github.com/endojs/endo/compare/@endo/captp@4.0.3...@endo/captp@4.0.4) (2024-02-23) **Note:** Version bump only for package @endo/captp diff --git a/packages/captp/package.json b/packages/captp/package.json index 91f2e7500a..3ef96a429b 100644 --- a/packages/captp/package.json +++ b/packages/captp/package.json @@ -1,6 +1,6 @@ { "name": "@endo/captp", - "version": "4.0.4", + "version": "4.1.0", "description": "Capability Transfer Protocol for distributed objects", "type": "module", "keywords": [ @@ -47,17 +47,17 @@ "lint:types": "tsc" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0" }, "dependencies": { - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/marshal": "^1.3.0", - "@endo/nat": "^5.0.4", - "@endo/promise-kit": "^1.0.4" + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/marshal": "^1.4.0", + "@endo/nat": "^5.0.5", + "@endo/promise-kit": "^1.1.0" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/check-bundle/CHANGELOG.md b/packages/check-bundle/CHANGELOG.md index b85e80b3b9..14463f97cb 100644 --- a/packages/check-bundle/CHANGELOG.md +++ b/packages/check-bundle/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.5](https://github.com/endojs/endo/compare/@endo/check-bundle@1.0.4...@endo/check-bundle@1.0.5) (2024-03-20) + +**Note:** Version bump only for package @endo/check-bundle + + + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/check-bundle@1.0.3...@endo/check-bundle@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/check-bundle diff --git a/packages/check-bundle/package.json b/packages/check-bundle/package.json index 35437915b1..60c59b7b07 100644 --- a/packages/check-bundle/package.json +++ b/packages/check-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@endo/check-bundle", - "version": "1.0.4", + "version": "1.0.5", "description": "Checks the integrity of an Endo bundle.", "keywords": [ "endo", @@ -40,14 +40,14 @@ "test:c8": "c8 $C8_OPTIONS ava --config=ava-nesm.config.js" }, "dependencies": { - "@endo/base64": "^1.0.2", - "@endo/compartment-mapper": "^1.1.2", - "@endo/errors": "^1.1.0" + "@endo/base64": "^1.0.3", + "@endo/compartment-mapper": "^1.1.3", + "@endo/errors": "^1.2.0" }, "devDependencies": { - "@endo/bundle-source": "^3.1.0", - "@endo/init": "^1.0.4", - "@endo/zip": "^1.0.2", + "@endo/bundle-source": "^3.2.0", + "@endo/init": "^1.1.0", + "@endo/zip": "^1.0.3", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "c8": "^7.14.0", diff --git a/packages/cjs-module-analyzer/CHANGELOG.md b/packages/cjs-module-analyzer/CHANGELOG.md index 1e01736c0c..75d9ac229c 100644 --- a/packages/cjs-module-analyzer/CHANGELOG.md +++ b/packages/cjs-module-analyzer/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.3](https://github.com/endojs/endo/compare/@endo/cjs-module-analyzer@1.0.2...@endo/cjs-module-analyzer@1.0.3) (2024-03-20) + +**Note:** Version bump only for package @endo/cjs-module-analyzer + + + + + ### [1.0.2](https://github.com/endojs/endo/compare/@endo/cjs-module-analyzer@1.0.1...@endo/cjs-module-analyzer@1.0.2) (2024-02-15) diff --git a/packages/cjs-module-analyzer/package.json b/packages/cjs-module-analyzer/package.json index 51b94b3f37..e1c5db4fce 100644 --- a/packages/cjs-module-analyzer/package.json +++ b/packages/cjs-module-analyzer/package.json @@ -1,6 +1,6 @@ { "name": "@endo/cjs-module-analyzer", - "version": "1.0.2", + "version": "1.0.3", "description": "A JavaScript lexer dedicated to static analysis and transformation of ECMAScript modules.", "keywords": [], "author": "Endo contributors", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 6cb8f3760d..cd0cd0ef4f 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.1.0](https://github.com/endojs/endo/compare/@endo/cli@2.0.0...@endo/cli@2.1.0) (2024-03-20) + + +### Features + +* **cli:** Follow list changes ([c5eb0f1](https://github.com/endojs/endo/commit/c5eb0f113dbd8cc54d067eab97d836f701cbc927)) + + +### Bug Fixes + +* **cli:** Chat demo needs followChanges rename ([3fa3d9b](https://github.com/endojs/endo/commit/3fa3d9b02ec029c3e26ae946dbbe6cf689be4be0)) + + + ## [2.0.0](https://github.com/endojs/endo/compare/@endo/cli@1.0.3...@endo/cli@2.0.0) (2024-02-23) diff --git a/packages/cli/package.json b/packages/cli/package.json index 62cdb43df8..332ab52e74 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@endo/cli", - "version": "2.0.0", + "version": "2.1.0", "private": true, "description": "Endo command line interface", "keywords": [], @@ -31,19 +31,19 @@ "test": "exit 0" }, "dependencies": { - "@endo/bundle-source": "^3.1.0", - "@endo/compartment-mapper": "^1.1.2", - "@endo/daemon": "^2.0.0", - "@endo/eventual-send": "^1.1.2", - "@endo/far": "^1.0.4", - "@endo/import-bundle": "^1.0.4", - "@endo/lockdown": "^1.0.4", - "@endo/promise-kit": "^1.0.4", - "@endo/stream-node": "^1.0.4", - "@endo/where": "^1.0.2", + "@endo/bundle-source": "^3.2.0", + "@endo/compartment-mapper": "^1.1.3", + "@endo/daemon": "^2.1.0", + "@endo/eventual-send": "^1.2.0", + "@endo/far": "^1.1.0", + "@endo/import-bundle": "^1.1.0", + "@endo/lockdown": "^1.0.5", + "@endo/promise-kit": "^1.1.0", + "@endo/stream-node": "^1.1.0", + "@endo/where": "^1.0.3", "commander": "^5.0.0", "open": "^9.1.0", - "ses": "^1.3.0" + "ses": "^1.4.0" }, "devDependencies": { "ava": "^6.1.2", diff --git a/packages/common/CHANGELOG.md b/packages/common/CHANGELOG.md index b1f82a8cd8..25b9fe0c9b 100644 --- a/packages/common/CHANGELOG.md +++ b/packages/common/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.0](https://github.com/endojs/endo/compare/@endo/common@1.1.0...@endo/common@1.2.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ## [1.1.0](https://github.com/endojs/endo/compare/@endo/common@1.0.3...@endo/common@1.1.0) (2024-02-23) diff --git a/packages/common/package.json b/packages/common/package.json index f2ec9785e8..4485d89b73 100644 --- a/packages/common/package.json +++ b/packages/common/package.json @@ -1,6 +1,6 @@ { "name": "@endo/common", - "version": "1.1.0", + "version": "1.2.0", "description": "common low level utilities", "keywords": [], "author": "Endo contributors", @@ -41,13 +41,13 @@ "test:xs": "exit 0" }, "dependencies": { - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/promise-kit": "^1.0.4" + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/promise-kit": "^1.1.0" }, "devDependencies": { - "@endo/lockdown": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/lockdown": "^1.0.5", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0", "tsd": "^0.28.1" diff --git a/packages/compartment-mapper/CHANGELOG.md b/packages/compartment-mapper/CHANGELOG.md index 6d45699c2a..694a2a8a29 100644 --- a/packages/compartment-mapper/CHANGELOG.md +++ b/packages/compartment-mapper/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.1.3](https://github.com/endojs/endo/compare/@endo/compartment-mapper@1.1.2...@endo/compartment-mapper@1.1.3) (2024-03-20) + +**Note:** Version bump only for package @endo/compartment-mapper + + + + + ### [1.1.2](https://github.com/endojs/endo/compare/@endo/compartment-mapper@1.1.1...@endo/compartment-mapper@1.1.2) (2024-02-23) **Note:** Version bump only for package @endo/compartment-mapper diff --git a/packages/compartment-mapper/package.json b/packages/compartment-mapper/package.json index 6559a51f7c..71f012833e 100644 --- a/packages/compartment-mapper/package.json +++ b/packages/compartment-mapper/package.json @@ -1,6 +1,6 @@ { "name": "@endo/compartment-mapper", - "version": "1.1.2", + "version": "1.1.3", "description": "The compartment mapper assembles Node applications in a sandbox", "keywords": [ "node", @@ -47,10 +47,10 @@ "test": "ava" }, "dependencies": { - "@endo/cjs-module-analyzer": "^1.0.2", - "@endo/static-module-record": "^1.0.4", - "@endo/zip": "^1.0.2", - "ses": "^1.3.0" + "@endo/cjs-module-analyzer": "^1.0.3", + "@endo/static-module-record": "^1.1.0", + "@endo/zip": "^1.0.3", + "ses": "^1.4.0" }, "devDependencies": { "ava": "^6.1.2", diff --git a/packages/daemon/CHANGELOG.md b/packages/daemon/CHANGELOG.md index c705510bdc..a37d416b4a 100644 --- a/packages/daemon/CHANGELOG.md +++ b/packages/daemon/CHANGELOG.md @@ -3,6 +3,50 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.1.0](https://github.com/endojs/endo/compare/@endo/daemon@2.0.0...@endo/daemon@2.1.0) (2024-03-20) + + +### Features + +* **daemon:** add directory ([ad171f1](https://github.com/endojs/endo/commit/ad171f12359614f47f41d25ea090fea7fdefca6c)) +* **daemon:** add empty networks dir + peer formula + invite/accept ([b9c8872](https://github.com/endojs/endo/commit/b9c88720dab64694a1e51b4de271e4c80790d5bf)) +* **daemon:** add list and followChanges to NameHub ([9024a5b](https://github.com/endojs/endo/commit/9024a5bb6f856d0ffdc3c98e5b82cd2b05a7d3ca)) +* **daemon:** add loopback network ([53d4120](https://github.com/endojs/endo/commit/53d41206291bc3ddd1216a4117e8591bb6da944c)) +* **daemon:** Create weblet worklet for Node.js ([9b17973](https://github.com/endojs/endo/commit/9b1797376c6a58ded62701c311f34fba7e18c7d8)) +* **daemon:** enhance types for DaemonCore and consumers ([15529d7](https://github.com/endojs/endo/commit/15529d727bdaa3e174467647b83a8ef40c8a9b10)) +* **daemon:** Expose own id to evaluate and make behaviors ([66dbbcf](https://github.com/endojs/endo/commit/66dbbcffb3c13851cba329273c369184f3833162)) +* **daemon:** improve types for Host and Guest ([8ae0178](https://github.com/endojs/endo/commit/8ae01784ef6c1398763ad4be5869463f395554a0)) +* **daemon:** include locationId in formulaId ([cb3e2c5](https://github.com/endojs/endo/commit/cb3e2c54ea52086facd5b00ed079c4f27dd0adde)) +* **daemon:** Inject platform capabilities as formulas ([f0d17a6](https://github.com/endojs/endo/commit/f0d17a6962484e24e5a49d46ad5198c7fcad9b4a)) +* **daemon:** Log node identifier ([05d1566](https://github.com/endojs/endo/commit/05d1566f821873db3845539fa986620b5a18b3cd)) +* **daemon:** NameHubs expose listIdentifiers method ([375c3e9](https://github.com/endojs/endo/commit/375c3e968cc3de0769aaf6ad9f4d2ed3954b0aa0)) +* **daemon:** only provide local values over gateway ([622da83](https://github.com/endojs/endo/commit/622da83c7254ee4890160d806c8368bf35be645c)) +* **daemon:** peer info exchange methods + remote lookup ([b850b6c](https://github.com/endojs/endo/commit/b850b6c864ee4c3db6a4fd35a726d9a1e018dd39)) +* **daemon:** remove listEntries and followEntries in PetStore/Host/Guest ([5512bf6](https://github.com/endojs/endo/commit/5512bf6d530aeef6b929dbdf0f33987972613a3b)) +* **daemon:** rename "location" to "node" ([793adef](https://github.com/endojs/endo/commit/793adefb2eeed5f49443fa841df96239f097dbc3)) +* **daemon:** separate peer and remote formulas ([a1abc36](https://github.com/endojs/endo/commit/a1abc3610cd3facccaa91223e2c5583965cc4d90)) +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + +### Bug Fixes + +* **daemon:** Catch up init dev dependency to adjacent workspace ([1fd5182](https://github.com/endojs/endo/commit/1fd518251895445ff87ad7fcc1121c2b66d45f9b)) +* **daemon:** directory.listIdentifiers is sorted ([d4e4701](https://github.com/endojs/endo/commit/d4e47012a0d70a06eec40fec4f2908ed7563b549)) +* **daemon:** fix identifiedDirectory far interface ([70e5eac](https://github.com/endojs/endo/commit/70e5eac85462b069214c7809fbd67654f8e60222)) +* **daemon:** fix leastAuthority type issue ([c2cdd7f](https://github.com/endojs/endo/commit/c2cdd7f208c479f880fa639c6d4a1e574b31d864)) +* **daemon:** fix loopback network error message format ([01812a2](https://github.com/endojs/endo/commit/01812a282ad1820bbe985ef63845ee1a28dfe6ad)) +* **daemon:** Fix provision of new, unnamed workers ([fb2c255](https://github.com/endojs/endo/commit/fb2c2557464711b95766797ebfbc4531624ee766)), closes [#2139](https://github.com/endojs/endo/issues/2139) +* **daemon:** fix some type issues ([184dc61](https://github.com/endojs/endo/commit/184dc6138a6e3f5ad8f0a871af048d3ed7e23ae3)) +* **daemon:** Handle server response error ([ac44064](https://github.com/endojs/endo/commit/ac440640fb15d15ac1722db7b22d882bd056201e)) +* **daemon:** loopback network should not advertise its address ([cb55c2d](https://github.com/endojs/endo/commit/cb55c2de043930517e03e0dc638bc01f6bb294c9)) +* **daemon:** remove invite/accept and RemoteFormula ([3173724](https://github.com/endojs/endo/commit/31737240e51ffce8a1dbe94b7c31446763ae6b45)) +* **daemon:** remove orphaned remote formula type check ([e08f03e](https://github.com/endojs/endo/commit/e08f03ef11b27d435daaac1e4c5e683e0c3aac37)) +* **daemon:** rename "makeRemote" to "provideRemoteValue" ([f0451bd](https://github.com/endojs/endo/commit/f0451bd3722c74956cfad93c8891a8eb7ec88a7e)) +* **daemon:** rename Gateway and Peer method to "provide" ([9ad0e3c](https://github.com/endojs/endo/commit/9ad0e3cbc5efa3f89cb67703b96fad35062b098d)) +* **daemon:** Specify return type of evaluate ([6026b73](https://github.com/endojs/endo/commit/6026b73b099a4ebcbd6477d3d2fdf2749f738293)) + + + ## [2.0.0](https://github.com/endojs/endo/compare/@endo/daemon@1.0.3...@endo/daemon@2.0.0) (2024-02-23) diff --git a/packages/daemon/package.json b/packages/daemon/package.json index 426d763cc3..ecaa331d24 100644 --- a/packages/daemon/package.json +++ b/packages/daemon/package.json @@ -1,6 +1,6 @@ { "name": "@endo/daemon", - "version": "2.0.0", + "version": "2.1.0", "private": true, "description": "Endo daemon", "keywords": [ @@ -44,27 +44,27 @@ "test:clean": "rm -rf tmp && yarn test" }, "dependencies": { - "@endo/base64": "^1.0.2", - "@endo/captp": "^4.0.4", - "@endo/compartment-mapper": "^1.1.2", - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/far": "^1.0.4", - "@endo/import-bundle": "^1.0.4", - "@endo/init": "^1.0.4", - "@endo/lockdown": "^1.0.4", - "@endo/netstring": "^1.0.4", - "@endo/promise-kit": "^1.0.4", - "@endo/stream": "^1.1.0", - "@endo/stream-node": "^1.0.4", - "@endo/where": "^1.0.2", - "ses": "^1.3.0", + "@endo/base64": "^1.0.3", + "@endo/captp": "^4.1.0", + "@endo/compartment-mapper": "^1.1.3", + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/far": "^1.1.0", + "@endo/import-bundle": "^1.1.0", + "@endo/init": "^1.1.0", + "@endo/lockdown": "^1.0.5", + "@endo/netstring": "^1.0.5", + "@endo/promise-kit": "^1.1.0", + "@endo/stream": "^1.2.0", + "@endo/stream-node": "^1.1.0", + "@endo/where": "^1.0.3", + "ses": "^1.4.0", "ws": "^8.13.0" }, "devDependencies": { - "@endo/bundle-source": "^3.1.0", + "@endo/bundle-source": "^3.2.0", "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "c8": "^7.14.0", diff --git a/packages/env-options/CHANGELOG.md b/packages/env-options/CHANGELOG.md index aca609e997..b57e9d739c 100644 --- a/packages/env-options/CHANGELOG.md +++ b/packages/env-options/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.1.2](https://github.com/endojs/endo/compare/@endo/env-options@1.1.1...@endo/env-options@1.1.2) (2024-03-20) + +**Note:** Version bump only for package @endo/env-options + + + + + ### [1.1.1](https://github.com/endojs/endo/compare/@endo/env-options@1.1.0...@endo/env-options@1.1.1) (2024-02-15) diff --git a/packages/env-options/package.json b/packages/env-options/package.json index 8e691b8e7c..421469990a 100644 --- a/packages/env-options/package.json +++ b/packages/env-options/package.json @@ -1,6 +1,6 @@ { "name": "@endo/env-options", - "version": "1.1.1", + "version": "1.1.2", "private": null, "description": "Reading environment options.", "keywords": [], diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index 4017a48eb6..f666c1a19b 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.0](https://github.com/endojs/endo/compare/@endo/errors@1.1.0...@endo/errors@1.2.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ## [1.1.0](https://github.com/endojs/endo/compare/@endo/errors@1.0.3...@endo/errors@1.1.0) (2024-02-23) diff --git a/packages/errors/package.json b/packages/errors/package.json index d46fa668c1..0e1617c104 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@endo/errors", - "version": "1.1.0", + "version": "1.2.0", "description": "Package exports of the `assert` global", "keywords": [], "author": "Endo contributors", @@ -36,11 +36,11 @@ "test:xs": "exit 0" }, "dependencies": { - "ses": "^1.3.0" + "ses": "^1.4.0" }, "devDependencies": { - "@endo/lockdown": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/lockdown": "^1.0.5", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0", "ses0_18_3": "npm:ses@0.18.3", diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index 210a7856b4..6bc243e2c8 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [2.1.1](https://github.com/endojs/endo/compare/@endo/eslint-plugin@2.1.0...@endo/eslint-plugin@2.1.1) (2024-03-20) + +**Note:** Version bump only for package @endo/eslint-plugin + + + + + ## [2.1.0](https://github.com/endojs/endo/compare/@endo/eslint-plugin@2.0.2...@endo/eslint-plugin@2.1.0) (2024-02-23) diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index fd338f0569..517f7a8838 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@endo/eslint-plugin", - "version": "2.1.0", + "version": "2.1.1", "description": "ESLint plugin for using Endo", "keywords": [ "eslint", diff --git a/packages/evasive-transform/CHANGELOG.md b/packages/evasive-transform/CHANGELOG.md index b8f5231f6e..8010a0de49 100644 --- a/packages/evasive-transform/CHANGELOG.md +++ b/packages/evasive-transform/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/evasive-transform@1.0.4...@endo/evasive-transform@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/evasive-transform@1.0.3...@endo/evasive-transform@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/evasive-transform diff --git a/packages/evasive-transform/package.json b/packages/evasive-transform/package.json index 2c416fafa2..1ce802af53 100644 --- a/packages/evasive-transform/package.json +++ b/packages/evasive-transform/package.json @@ -1,6 +1,6 @@ { "name": "@endo/evasive-transform", - "version": "1.0.4", + "version": "1.1.0", "description": "Source transforms to evade SES censorship", "keywords": [ "ses", @@ -40,7 +40,7 @@ }, "devDependencies": { "@babel/types": "^7.23.6", - "@endo/ses-ava": "^1.1.2", + "@endo/ses-ava": "^1.2.0", "@rollup/plugin-commonjs": "^19.0.0", "@rollup/plugin-node-resolve": "^13.0.0", "@types/babel__generator": "^7.6.7", diff --git a/packages/eventual-send/CHANGELOG.md b/packages/eventual-send/CHANGELOG.md index 7727632ce1..b64b105180 100644 --- a/packages/eventual-send/CHANGELOG.md +++ b/packages/eventual-send/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.0](https://github.com/endojs/endo/compare/@endo/eventual-send@1.1.2...@endo/eventual-send@1.2.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.1.2](https://github.com/endojs/endo/compare/@endo/eventual-send@1.1.1...@endo/eventual-send@1.1.2) (2024-02-23) **Note:** Version bump only for package @endo/eventual-send diff --git a/packages/eventual-send/package.json b/packages/eventual-send/package.json index a78fe4cc49..e0761b3b37 100644 --- a/packages/eventual-send/package.json +++ b/packages/eventual-send/package.json @@ -1,6 +1,6 @@ { "name": "@endo/eventual-send", - "version": "1.1.2", + "version": "1.2.0", "description": "Extend a Promise class to implement the eventual-send API", "type": "module", "main": "src/no-shim.js", @@ -36,10 +36,10 @@ }, "homepage": "https://github.com/endojs/endo#readme", "dependencies": { - "@endo/env-options": "^1.1.1" + "@endo/env-options": "^1.1.2" }, "devDependencies": { - "@endo/lockdown": "^1.0.4", + "@endo/lockdown": "^1.0.5", "ava": "^6.1.2", "c8": "^7.14.0", "tsd": "^0.28.1" diff --git a/packages/exo/CHANGELOG.md b/packages/exo/CHANGELOG.md index d2cb024f22..7fec81ddc4 100644 --- a/packages/exo/CHANGELOG.md +++ b/packages/exo/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.0](https://github.com/endojs/endo/compare/@endo/exo@1.2.1...@endo/exo@1.3.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.2.1](https://github.com/endojs/endo/compare/@endo/exo@1.2.0...@endo/exo@1.2.1) (2024-02-23) **Note:** Version bump only for package @endo/exo diff --git a/packages/exo/package.json b/packages/exo/package.json index a50a21e2b2..a0db43b774 100644 --- a/packages/exo/package.json +++ b/packages/exo/package.json @@ -1,6 +1,6 @@ { "name": "@endo/exo", - "version": "1.2.1", + "version": "1.3.0", "description": "exo: remotable objects protected by interface guards.", "keywords": [], "author": "Endo contributors", @@ -33,17 +33,17 @@ "test": "ava" }, "dependencies": { - "@endo/common": "^1.1.0", - "@endo/env-options": "^1.1.1", - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/far": "^1.0.4", - "@endo/pass-style": "^1.2.0", - "@endo/patterns": "^1.2.0" + "@endo/common": "^1.2.0", + "@endo/env-options": "^1.1.2", + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/far": "^1.1.0", + "@endo/pass-style": "^1.3.0", + "@endo/patterns": "^1.3.0" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/far/CHANGELOG.md b/packages/far/CHANGELOG.md index 6065204228..121bd1d4c5 100644 --- a/packages/far/CHANGELOG.md +++ b/packages/far/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/far@1.0.4...@endo/far@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/far@1.0.3...@endo/far@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/far diff --git a/packages/far/package.json b/packages/far/package.json index e4646061e5..1c9825aff9 100644 --- a/packages/far/package.json +++ b/packages/far/package.json @@ -1,6 +1,6 @@ { "name": "@endo/far", - "version": "1.0.4", + "version": "1.1.0", "description": "Helpers for distributed objects.", "type": "module", "main": "src/index.js", @@ -33,13 +33,13 @@ }, "homepage": "https://github.com/endojs/endo#readme", "dependencies": { - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/pass-style": "^1.2.0" + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/pass-style": "^1.3.0" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0" }, diff --git a/packages/import-bundle/CHANGELOG.md b/packages/import-bundle/CHANGELOG.md index de049f68e9..c72184d598 100644 --- a/packages/import-bundle/CHANGELOG.md +++ b/packages/import-bundle/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/import-bundle@1.0.4...@endo/import-bundle@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/import-bundle@1.0.3...@endo/import-bundle@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/import-bundle diff --git a/packages/import-bundle/package.json b/packages/import-bundle/package.json index 783223c0d0..5598e4033b 100644 --- a/packages/import-bundle/package.json +++ b/packages/import-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@endo/import-bundle", - "version": "1.0.4", + "version": "1.1.0", "description": "load modules created by @endo/bundle-source", "keywords": [], "author": "Endo contributors", @@ -39,16 +39,16 @@ "lint:types": "tsc" }, "dependencies": { - "@endo/base64": "^1.0.2", - "@endo/compartment-mapper": "^1.1.2", - "@endo/errors": "^1.1.0", - "@endo/where": "^1.0.2", - "ses": "^1.3.0" + "@endo/base64": "^1.0.3", + "@endo/compartment-mapper": "^1.1.3", + "@endo/errors": "^1.2.0", + "@endo/where": "^1.0.3", + "ses": "^1.4.0" }, "devDependencies": { - "@endo/bundle-source": "^3.1.0", - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/bundle-source": "^3.2.0", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0" }, diff --git a/packages/init/CHANGELOG.md b/packages/init/CHANGELOG.md index dcad1d484d..c722c93f6b 100644 --- a/packages/init/CHANGELOG.md +++ b/packages/init/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/init@1.0.4...@endo/init@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/init@1.0.3...@endo/init@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/init diff --git a/packages/init/package.json b/packages/init/package.json index ec79ab8740..041d3137d6 100644 --- a/packages/init/package.json +++ b/packages/init/package.json @@ -1,6 +1,6 @@ { "name": "@endo/init", - "version": "1.0.4", + "version": "1.1.0", "description": "Prepare Endo environment on import", "type": "module", "main": "index.js", @@ -29,14 +29,14 @@ "lint:types": "tsc" }, "devDependencies": { - "@endo/compartment-mapper": "^1.1.2", + "@endo/compartment-mapper": "^1.1.3", "ava": "^6.1.2" }, "dependencies": { - "@endo/base64": "^1.0.2", - "@endo/eventual-send": "^1.1.2", - "@endo/lockdown": "^1.0.4", - "@endo/promise-kit": "^1.0.4" + "@endo/base64": "^1.0.3", + "@endo/eventual-send": "^1.2.0", + "@endo/lockdown": "^1.0.5", + "@endo/promise-kit": "^1.1.0" }, "files": [ "LICENSE*", diff --git a/packages/lockdown/CHANGELOG.md b/packages/lockdown/CHANGELOG.md index 0d6cd4760b..dd413942b5 100644 --- a/packages/lockdown/CHANGELOG.md +++ b/packages/lockdown/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.5](https://github.com/endojs/endo/compare/@endo/lockdown@1.0.4...@endo/lockdown@1.0.5) (2024-03-20) + +**Note:** Version bump only for package @endo/lockdown + + + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/lockdown@1.0.3...@endo/lockdown@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/lockdown diff --git a/packages/lockdown/package.json b/packages/lockdown/package.json index ebe36e0f77..880a0c3645 100644 --- a/packages/lockdown/package.json +++ b/packages/lockdown/package.json @@ -1,6 +1,6 @@ { "name": "@endo/lockdown", - "version": "1.0.4", + "version": "1.0.5", "description": "Wrappers for hardening JavaScript for Endo", "type": "module", "main": "pre.js", @@ -21,7 +21,7 @@ "lint": "eslint '**/*.js'" }, "dependencies": { - "ses": "^1.3.0" + "ses": "^1.4.0" }, "files": [ "LICENSE*", diff --git a/packages/lp32/CHANGELOG.md b/packages/lp32/CHANGELOG.md index 1241c27e01..1fe7c62f13 100644 --- a/packages/lp32/CHANGELOG.md +++ b/packages/lp32/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/lp32@1.0.4...@endo/lp32@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/lp32@1.0.3...@endo/lp32@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/lp32 diff --git a/packages/lp32/package.json b/packages/lp32/package.json index 313861dd52..08acb5cbfa 100644 --- a/packages/lp32/package.json +++ b/packages/lp32/package.json @@ -1,6 +1,6 @@ { "name": "@endo/lp32", - "version": "1.0.4", + "version": "1.1.0", "description": "32 bit unsigned host byte order length prefix message streams as async iterators", "keywords": [ "stream", @@ -50,13 +50,13 @@ "test": "ava" }, "dependencies": { - "@endo/errors": "^1.1.0", - "@endo/init": "^1.0.4", - "@endo/stream": "^1.1.0", - "ses": "^1.3.0" + "@endo/errors": "^1.2.0", + "@endo/init": "^1.1.0", + "@endo/stream": "^1.2.0", + "ses": "^1.4.0" }, "devDependencies": { - "@endo/ses-ava": "^1.1.2", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "c8": "^7.14.0", diff --git a/packages/marshal/CHANGELOG.md b/packages/marshal/CHANGELOG.md index a2502e9c48..9ce1c4ee72 100644 --- a/packages/marshal/CHANGELOG.md +++ b/packages/marshal/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.0](https://github.com/endojs/endo/compare/@endo/marshal@1.3.0...@endo/marshal@1.4.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ## [1.3.0](https://github.com/endojs/endo/compare/@endo/marshal@1.2.0...@endo/marshal@1.3.0) (2024-02-23) diff --git a/packages/marshal/package.json b/packages/marshal/package.json index fa181c57fd..dfe2e48d7a 100644 --- a/packages/marshal/package.json +++ b/packages/marshal/package.json @@ -1,6 +1,6 @@ { "name": "@endo/marshal", - "version": "1.3.0", + "version": "1.4.0", "description": "marshal: encoding and deconding of Passable subgraphs", "type": "module", "main": "index.js", @@ -41,17 +41,17 @@ }, "homepage": "https://github.com/endojs/endo#readme", "dependencies": { - "@endo/common": "^1.1.0", - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/nat": "^5.0.4", - "@endo/pass-style": "^1.2.0", - "@endo/promise-kit": "^1.0.4" + "@endo/common": "^1.2.0", + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/nat": "^5.0.5", + "@endo/pass-style": "^1.3.0", + "@endo/promise-kit": "^1.1.0" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/lockdown": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/lockdown": "^1.0.5", + "@endo/ses-ava": "^1.2.0", "@fast-check/ava": "^1.1.5", "ava": "^6.1.2", "c8": "^7.14.0" diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index 72fe11587a..b975e7f8ac 100644 --- a/packages/memoize/CHANGELOG.md +++ b/packages/memoize/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/memoize@1.0.4...@endo/memoize@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/memoize@1.0.3...@endo/memoize@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/memoize diff --git a/packages/memoize/package.json b/packages/memoize/package.json index 4ded374e29..c7b2325e12 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@endo/memoize", - "version": "1.0.4", + "version": "1.1.0", "private": null, "description": "Safe function memoization", "keywords": [], @@ -36,11 +36,11 @@ "test": "ava" }, "dependencies": { - "ses": "^1.3.0" + "ses": "^1.4.0" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/nat/CHANGELOG.md b/packages/nat/CHANGELOG.md index 1023c3b87f..f5e4fa54b4 100644 --- a/packages/nat/CHANGELOG.md +++ b/packages/nat/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [5.0.5](https://github.com/endojs/endo/compare/@endo/nat@5.0.4...@endo/nat@5.0.5) (2024-03-20) + +**Note:** Version bump only for package @endo/nat + + + + + ### [5.0.4](https://github.com/endojs/endo/compare/@endo/nat@5.0.3...@endo/nat@5.0.4) (2024-02-23) **Note:** Version bump only for package @endo/nat diff --git a/packages/nat/package.json b/packages/nat/package.json index 911b1fc1b1..f873a4b83d 100644 --- a/packages/nat/package.json +++ b/packages/nat/package.json @@ -1,6 +1,6 @@ { "name": "@endo/nat", - "version": "5.0.4", + "version": "5.0.5", "description": "Ensures that a number is within the natural numbers (0, 1, 2...) or throws a RangeError", "main": "./src/index.js", "type": "module", @@ -28,14 +28,14 @@ }, "homepage": "https://github.com/endojs/endo#readme", "devDependencies": { - "@endo/compartment-mapper": "^1.1.2", + "@endo/compartment-mapper": "^1.1.3", "ava": "^6.1.2", "eslint": "^8.46.0", "eslint-config-airbnb-base": "^15.0.0", "eslint-config-prettier": "^8.8.0", "eslint-plugin-import": "^2.29.0", "prettier": "^3.0.0", - "ses": "^1.3.0" + "ses": "^1.4.0" }, "directories": { "test": "test" diff --git a/packages/netstring/CHANGELOG.md b/packages/netstring/CHANGELOG.md index f88b3cab81..45ae87cbbd 100644 --- a/packages/netstring/CHANGELOG.md +++ b/packages/netstring/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.5](https://github.com/endojs/endo/compare/@endo/netstring@1.0.4...@endo/netstring@1.0.5) (2024-03-20) + +**Note:** Version bump only for package @endo/netstring + + + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/netstring@1.0.3...@endo/netstring@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/netstring diff --git a/packages/netstring/package.json b/packages/netstring/package.json index bd1cdb79b6..d9b2006f74 100644 --- a/packages/netstring/package.json +++ b/packages/netstring/package.json @@ -1,6 +1,6 @@ { "name": "@endo/netstring", - "version": "1.0.4", + "version": "1.0.5", "description": "Implements a JavaScript async iterator protocol for consuming and producing binary netstrings.", "keywords": [], "author": "Endo contributors", @@ -35,10 +35,10 @@ "test": "ava" }, "dependencies": { - "@endo/init": "^1.0.4", - "@endo/promise-kit": "^1.0.4", - "@endo/stream": "^1.1.0", - "ses": "^1.3.0" + "@endo/init": "^1.1.0", + "@endo/promise-kit": "^1.1.0", + "@endo/stream": "^1.2.0", + "ses": "^1.4.0" }, "devDependencies": { "ava": "^6.1.2", diff --git a/packages/pass-style/CHANGELOG.md b/packages/pass-style/CHANGELOG.md index de4adebd5d..ec7010595b 100644 --- a/packages/pass-style/CHANGELOG.md +++ b/packages/pass-style/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.0](https://github.com/endojs/endo/compare/@endo/pass-style@1.2.0...@endo/pass-style@1.3.0) (2024-03-20) + + +### Features + +* **pass-style:** feature flag: only well-formed strings are passable ([#2002](https://github.com/endojs/endo/issues/2002)) ([bca1e3f](https://github.com/endojs/endo/commit/bca1e3f92d4a37f1b9927c7e6045968beb925964)) +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ## [1.2.0](https://github.com/endojs/endo/compare/@endo/pass-style@1.1.1...@endo/pass-style@1.2.0) (2024-02-23) diff --git a/packages/pass-style/package.json b/packages/pass-style/package.json index ca3989f687..52cd019b9c 100644 --- a/packages/pass-style/package.json +++ b/packages/pass-style/package.json @@ -1,6 +1,6 @@ { "name": "@endo/pass-style", - "version": "1.2.0", + "version": "1.3.0", "description": "pass-style: defines the taxonomy of Passable objects.", "keywords": [], "author": "Endo contributors", @@ -34,15 +34,15 @@ "test": "ava" }, "dependencies": { - "@endo/env-options": "^1.1.1", - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/promise-kit": "^1.0.4", + "@endo/env-options": "^1.1.2", + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/promise-kit": "^1.1.0", "@fast-check/ava": "^1.1.5" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/patterns/CHANGELOG.md b/packages/patterns/CHANGELOG.md index ee404b2860..51a79e6a96 100644 --- a/packages/patterns/CHANGELOG.md +++ b/packages/patterns/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.3.0](https://github.com/endojs/endo/compare/@endo/patterns@1.2.0...@endo/patterns@1.3.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ## [1.2.0](https://github.com/endojs/endo/compare/@endo/patterns@1.1.1...@endo/patterns@1.2.0) (2024-02-23) diff --git a/packages/patterns/package.json b/packages/patterns/package.json index 10fb1be1f2..79787612cb 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -1,6 +1,6 @@ { "name": "@endo/patterns", - "version": "1.2.0", + "version": "1.3.0", "description": "Description forthcoming.", "keywords": [], "author": "Endo contributors", @@ -32,15 +32,15 @@ "test": "ava" }, "dependencies": { - "@endo/common": "^1.1.0", - "@endo/errors": "^1.1.0", - "@endo/eventual-send": "^1.1.2", - "@endo/marshal": "^1.3.0", - "@endo/promise-kit": "^1.0.4" + "@endo/common": "^1.2.0", + "@endo/errors": "^1.2.0", + "@endo/eventual-send": "^1.2.0", + "@endo/marshal": "^1.4.0", + "@endo/promise-kit": "^1.1.0" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/promise-kit/CHANGELOG.md b/packages/promise-kit/CHANGELOG.md index 9ea4a734ae..0795da80ec 100644 --- a/packages/promise-kit/CHANGELOG.md +++ b/packages/promise-kit/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/promise-kit@1.0.4...@endo/promise-kit@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/promise-kit@1.0.3...@endo/promise-kit@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/promise-kit diff --git a/packages/promise-kit/package.json b/packages/promise-kit/package.json index 634069f32f..7ad5e957c8 100644 --- a/packages/promise-kit/package.json +++ b/packages/promise-kit/package.json @@ -1,6 +1,6 @@ { "name": "@endo/promise-kit", - "version": "1.0.4", + "version": "1.1.0", "description": "Helper for making promises", "keywords": [ "promise" @@ -38,7 +38,7 @@ "test:xs": "exit 0" }, "dependencies": { - "ses": "^1.3.0" + "ses": "^1.4.0" }, "devDependencies": { "@types/node": "^16.6.0", diff --git a/packages/ses-ava/CHANGELOG.md b/packages/ses-ava/CHANGELOG.md index 4291ce309c..4fcb062997 100644 --- a/packages/ses-ava/CHANGELOG.md +++ b/packages/ses-ava/CHANGELOG.md @@ -3,6 +3,20 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.0](https://github.com/endojs/endo/compare/@endo/ses-ava@1.1.2...@endo/ses-ava@1.2.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + +### Bug Fixes + +* **ses-ava:** Move ava dep to peer dependencies ([a1a3c3a](https://github.com/endojs/endo/commit/a1a3c3aad63772c26004060ad0e076f9ab302e80)) + + + ### [1.1.2](https://github.com/endojs/endo/compare/@endo/ses-ava@1.1.1...@endo/ses-ava@1.1.2) (2024-02-23) **Note:** Version bump only for package @endo/ses-ava diff --git a/packages/ses-ava/package.json b/packages/ses-ava/package.json index f2a14c4697..585056002c 100644 --- a/packages/ses-ava/package.json +++ b/packages/ses-ava/package.json @@ -1,6 +1,6 @@ { "name": "@endo/ses-ava", - "version": "1.1.2", + "version": "1.2.0", "description": "Virtualize Ava's test to work better under SES.", "keywords": [ "ses", @@ -37,9 +37,9 @@ "test": "ava" }, "dependencies": { - "@endo/env-options": "^1.1.1", - "@endo/init": "^1.0.4", - "ses": "^1.3.0" + "@endo/env-options": "^1.1.2", + "@endo/init": "^1.1.0", + "ses": "^1.4.0" }, "peerDependencies": { "ava": "^5.3.0|^6.1.2" diff --git a/packages/ses/CHANGELOG.md b/packages/ses/CHANGELOG.md index a7c45a65f6..357093a91c 100644 --- a/packages/ses/CHANGELOG.md +++ b/packages/ses/CHANGELOG.md @@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.4.0](https://github.com/endojs/endo/compare/ses@1.3.0...ses@1.4.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) +* **ses:** tolerate omitted species ([#2108](https://github.com/endojs/endo/issues/2108)) ([70c85ef](https://github.com/endojs/endo/commit/70c85ef3796acb579af8651e210f172ee200c364)) + + + ## [1.3.0](https://github.com/endojs/endo/compare/ses@1.2.0...ses@1.3.0) (2024-02-23) diff --git a/packages/ses/package.json b/packages/ses/package.json index fae206fbc8..1e0b4ab02c 100644 --- a/packages/ses/package.json +++ b/packages/ses/package.json @@ -1,6 +1,6 @@ { "name": "ses", - "version": "1.3.0", + "version": "1.4.0", "description": "Hardened JavaScript for Fearless Cooperation", "keywords": [ "lockdown", @@ -66,12 +66,12 @@ "test:platform-compatibility": "node test/package/test.cjs" }, "dependencies": { - "@endo/env-options": "^1.1.1" + "@endo/env-options": "^1.1.2" }, "devDependencies": { - "@endo/compartment-mapper": "^1.1.2", - "@endo/static-module-record": "^1.0.4", - "@endo/test262-runner": "^0.1.34", + "@endo/compartment-mapper": "^1.1.3", + "@endo/static-module-record": "^1.1.0", + "@endo/test262-runner": "^0.1.35", "ava": "^6.1.2", "babel-eslint": "^10.0.3", "c8": "^7.14.0", diff --git a/packages/skel/CHANGELOG.md b/packages/skel/CHANGELOG.md index b1d81e4021..1a60153726 100644 --- a/packages/skel/CHANGELOG.md +++ b/packages/skel/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/skel@1.0.4...@endo/skel@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/skel@1.0.3...@endo/skel@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/skel diff --git a/packages/skel/package.json b/packages/skel/package.json index 3f91f6252c..c7be820949 100644 --- a/packages/skel/package.json +++ b/packages/skel/package.json @@ -1,7 +1,7 @@ { "name": "@endo/skel", "private": true, - "version": "1.0.4", + "version": "1.1.0", "description": null, "keywords": [], "author": "Endo contributors", @@ -36,8 +36,8 @@ "lint:eslint": "eslint '**/*.js'" }, "devDependencies": { - "@endo/lockdown": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/lockdown": "^1.0.5", + "@endo/ses-ava": "^1.2.0", "ava": "^6.1.2", "c8": "^7.14.0", "tsd": "^0.28.1" diff --git a/packages/static-module-record/CHANGELOG.md b/packages/static-module-record/CHANGELOG.md index ef405464e2..2ef7717216 100644 --- a/packages/static-module-record/CHANGELOG.md +++ b/packages/static-module-record/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/static-module-record@1.0.4...@endo/static-module-record@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/static-module-record@1.0.3...@endo/static-module-record@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/static-module-record diff --git a/packages/static-module-record/package.json b/packages/static-module-record/package.json index e360983a76..f93b6294e8 100644 --- a/packages/static-module-record/package.json +++ b/packages/static-module-record/package.json @@ -1,6 +1,6 @@ { "name": "@endo/static-module-record", - "version": "1.0.4", + "version": "1.1.0", "description": "Shim for the SES StaticModuleRecord and module-to-program transformer", "keywords": [ "ses", @@ -41,7 +41,7 @@ "@babel/parser": "^7.23.6", "@babel/traverse": "^7.23.6", "@babel/types": "^7.23.6", - "ses": "^1.3.0" + "ses": "^1.4.0" }, "devDependencies": { "ava": "^6.1.2", diff --git a/packages/stream-node/CHANGELOG.md b/packages/stream-node/CHANGELOG.md index 9f6ebfa969..97bedc7e74 100644 --- a/packages/stream-node/CHANGELOG.md +++ b/packages/stream-node/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.1.0](https://github.com/endojs/endo/compare/@endo/stream-node@1.0.4...@endo/stream-node@1.1.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/stream-node@1.0.3...@endo/stream-node@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/stream-node diff --git a/packages/stream-node/package.json b/packages/stream-node/package.json index 474fe50c44..213b521742 100644 --- a/packages/stream-node/package.json +++ b/packages/stream-node/package.json @@ -1,6 +1,6 @@ { "name": "@endo/stream-node", - "version": "1.0.4", + "version": "1.1.0", "description": "Uint8Array async iterator adapters for Node.js streams", "keywords": [ "stream", @@ -41,13 +41,13 @@ "test": "ava" }, "dependencies": { - "@endo/errors": "^1.1.0", - "@endo/init": "^1.0.4", - "@endo/stream": "^1.1.0", - "ses": "^1.3.0" + "@endo/errors": "^1.2.0", + "@endo/init": "^1.1.0", + "@endo/stream": "^1.2.0", + "ses": "^1.4.0" }, "devDependencies": { - "@endo/ses-ava": "^1.1.2", + "@endo/ses-ava": "^1.2.0", "@typescript-eslint/parser": "^6.18.1", "ava": "^6.1.2", "babel-eslint": "^10.0.3", diff --git a/packages/stream-types-test/CHANGELOG.md b/packages/stream-types-test/CHANGELOG.md index dcc31f016a..44dbd5e59f 100644 --- a/packages/stream-types-test/CHANGELOG.md +++ b/packages/stream-types-test/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.5](https://github.com/endojs/endo/compare/@endo/stream-types-test@1.0.4...@endo/stream-types-test@1.0.5) (2024-03-20) + +**Note:** Version bump only for package @endo/stream-types-test + + + + + ### [1.0.4](https://github.com/endojs/endo/compare/@endo/stream-types-test@1.0.3...@endo/stream-types-test@1.0.4) (2024-02-23) **Note:** Version bump only for package @endo/stream-types-test diff --git a/packages/stream-types-test/package.json b/packages/stream-types-test/package.json index e2a04df262..7a67b8bf07 100644 --- a/packages/stream-types-test/package.json +++ b/packages/stream-types-test/package.json @@ -1,6 +1,6 @@ { "name": "@endo/stream-types-test", - "version": "1.0.4", + "version": "1.0.5", "private": true, "description": "TypeScript validation for Endo stream types.", "keywords": [], @@ -26,8 +26,8 @@ "test": "yarn lint:types" }, "dependencies": { - "@endo/stream": "^1.1.0", - "ses": "^1.3.0" + "@endo/stream": "^1.2.0", + "ses": "^1.4.0" }, "devDependencies": { "babel-eslint": "^10.0.3", diff --git a/packages/stream/CHANGELOG.md b/packages/stream/CHANGELOG.md index 2d8d161b80..f7374ab703 100644 --- a/packages/stream/CHANGELOG.md +++ b/packages/stream/CHANGELOG.md @@ -3,6 +3,15 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [1.2.0](https://github.com/endojs/endo/compare/@endo/stream@1.1.0...@endo/stream@1.2.0) (2024-03-20) + + +### Features + +* **ses-ava:** import test from @endo/ses-ava/prepare-endo.js ([#2133](https://github.com/endojs/endo/issues/2133)) ([9d3a7ce](https://github.com/endojs/endo/commit/9d3a7ce150b6fd6fe7c8c4cc43da411e981731ac)) + + + ## [1.1.0](https://github.com/endojs/endo/compare/@endo/stream@1.0.3...@endo/stream@1.1.0) (2024-02-23) diff --git a/packages/stream/package.json b/packages/stream/package.json index 03a3f6bfce..b8d8701726 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -1,6 +1,6 @@ { "name": "@endo/stream", - "version": "1.1.0", + "version": "1.2.0", "description": "Foundation for async iterators as streams", "keywords": [ "endo", @@ -44,13 +44,13 @@ "test": "ava" }, "dependencies": { - "@endo/eventual-send": "^1.1.2", - "@endo/promise-kit": "^1.0.4", - "ses": "^1.3.0" + "@endo/eventual-send": "^1.2.0", + "@endo/promise-kit": "^1.1.0", + "ses": "^1.4.0" }, "devDependencies": { - "@endo/init": "^1.0.4", - "@endo/ses-ava": "^1.1.2", + "@endo/init": "^1.1.0", + "@endo/ses-ava": "^1.2.0", "@typescript-eslint/parser": "^6.18.1", "ava": "^6.1.2", "babel-eslint": "^10.0.3", diff --git a/packages/syrup/CHANGELOG.md b/packages/syrup/CHANGELOG.md index 8c06be099e..e034364d9b 100644 --- a/packages/syrup/CHANGELOG.md +++ b/packages/syrup/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.3](https://github.com/endojs/endo/compare/@endo/syrup@1.0.2...@endo/syrup@1.0.3) (2024-03-20) + +**Note:** Version bump only for package @endo/syrup + + + + + ### [1.0.2](https://github.com/endojs/endo/compare/@endo/syrup@1.0.1...@endo/syrup@1.0.2) (2024-02-15) diff --git a/packages/syrup/package.json b/packages/syrup/package.json index 451ea66497..e28b2929f1 100644 --- a/packages/syrup/package.json +++ b/packages/syrup/package.json @@ -1,6 +1,6 @@ { "name": "@endo/syrup", - "version": "1.0.2", + "version": "1.0.3", "description": "Syrup is a language-independent binary serialization format for structured object trees", "keywords": [ "syrup", diff --git a/packages/test262-runner/CHANGELOG.md b/packages/test262-runner/CHANGELOG.md index 736fd6d54e..0d2f60df05 100644 --- a/packages/test262-runner/CHANGELOG.md +++ b/packages/test262-runner/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [0.1.35](https://github.com/endojs/endo/compare/@endo/test262-runner@0.1.34...@endo/test262-runner@0.1.35) (2024-03-20) + +**Note:** Version bump only for package @endo/test262-runner + + + + + ### [0.1.34](https://github.com/endojs/endo/compare/@endo/test262-runner@0.1.33...@endo/test262-runner@0.1.34) (2024-02-23) **Note:** Version bump only for package @endo/test262-runner diff --git a/packages/test262-runner/package.json b/packages/test262-runner/package.json index 5371512bf0..3d98931178 100644 --- a/packages/test262-runner/package.json +++ b/packages/test262-runner/package.json @@ -1,6 +1,6 @@ { "name": "@endo/test262-runner", - "version": "0.1.34", + "version": "0.1.35", "private": true, "description": "Hardened JavaScript Test262 Runner", "keywords": [], @@ -31,8 +31,8 @@ "test262:node": "test262-harness --host-type node --host-path node --test262-dir test262 --prelude prelude/node.js 'test262/test/**/*.js' --features-include ses-xs-parity" }, "dependencies": { - "@endo/compartment-mapper": "^1.1.2", - "ses": "^1.3.0", + "@endo/compartment-mapper": "^1.1.3", + "ses": "^1.4.0", "test262-harness": "^10.0.0" }, "devDependencies": { diff --git a/packages/where/CHANGELOG.md b/packages/where/CHANGELOG.md index c52c78dc7c..5b1f8dbe6d 100644 --- a/packages/where/CHANGELOG.md +++ b/packages/where/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.3](https://github.com/endojs/endo/compare/@endo/where@1.0.2...@endo/where@1.0.3) (2024-03-20) + +**Note:** Version bump only for package @endo/where + + + + + ### [1.0.2](https://github.com/endojs/endo/compare/@endo/where@1.0.1...@endo/where@1.0.2) (2024-02-15) diff --git a/packages/where/package.json b/packages/where/package.json index d7830f4188..52ef15d526 100644 --- a/packages/where/package.json +++ b/packages/where/package.json @@ -1,6 +1,6 @@ { "name": "@endo/where", - "version": "1.0.2", + "version": "1.0.3", "description": "Locator for Endo user state, caches, and ephemeral files", "keywords": [], "author": "Endo contributors", diff --git a/packages/zip/CHANGELOG.md b/packages/zip/CHANGELOG.md index ad9e148150..4f5cf7dc9b 100644 --- a/packages/zip/CHANGELOG.md +++ b/packages/zip/CHANGELOG.md @@ -3,6 +3,14 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +### [1.0.3](https://github.com/endojs/endo/compare/@endo/zip@1.0.2...@endo/zip@1.0.3) (2024-03-20) + +**Note:** Version bump only for package @endo/zip + + + + + ### [1.0.2](https://github.com/endojs/endo/compare/@endo/zip@1.0.1...@endo/zip@1.0.2) (2024-02-15) diff --git a/packages/zip/package.json b/packages/zip/package.json index 0b5b54b0ba..028e484fd1 100644 --- a/packages/zip/package.json +++ b/packages/zip/package.json @@ -1,6 +1,6 @@ { "name": "@endo/zip", - "version": "1.0.2", + "version": "1.0.3", "description": "A minimal, synchronous Zip reader and writer", "keywords": [ "zip", From dc7d075b8a7e91b24077362f7edb9cf8d449089e Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Mar 2024 15:39:27 -0700 Subject: [PATCH 4/4] chore: Remove generated types This reverts commit 57d2d0ff767465c828256e17d5d5f39a643b6dcc. --- .vscode/launch.json | 9 - packages/base64/atob.d.ts | 2 - packages/base64/atob.d.ts.map | 1 - packages/base64/btoa.d.ts | 2 - packages/base64/btoa.d.ts.map | 1 - packages/base64/decode.d.ts | 2 - packages/base64/decode.d.ts.map | 1 - packages/base64/encode.d.ts | 2 - packages/base64/encode.d.ts.map | 1 - packages/base64/index.d.ts | 5 - packages/base64/index.d.ts.map | 1 - packages/base64/shim.d.ts | 2 - packages/base64/shim.d.ts.map | 1 - packages/base64/src/common.d.ts | 11 - packages/base64/src/common.d.ts.map | 1 - packages/base64/src/decode.d.ts | 4 - packages/base64/src/decode.d.ts.map | 1 - packages/base64/src/encode.d.ts | 4 - packages/base64/src/encode.d.ts.map | 1 - packages/bundle-source/cache.d.ts | 54 -- packages/bundle-source/cache.d.ts.map | 1 - packages/bundle-source/src/bundle-source.d.ts | 4 - .../bundle-source/src/bundle-source.d.ts.map | 1 - packages/bundle-source/src/fs.d.ts | 50 -- packages/bundle-source/src/fs.d.ts.map | 1 - packages/bundle-source/src/index.d.ts | 4 - packages/bundle-source/src/index.d.ts.map | 1 - packages/bundle-source/src/is-entrypoint.d.ts | 2 - .../bundle-source/src/is-entrypoint.d.ts.map | 1 - packages/bundle-source/src/main.d.ts | 6 - packages/bundle-source/src/main.d.ts.map | 1 - .../src/nested-evaluate-and-get-exports.d.ts | 12 - .../nested-evaluate-and-get-exports.d.ts.map | 1 - packages/bundle-source/src/tool.d.ts | 3 - packages/bundle-source/src/tool.d.ts.map | 1 - packages/bundle-source/src/types.d.ts | 43 -- packages/bundle-source/src/types.d.ts.map | 1 - packages/bundle-source/src/zip-base64.d.ts | 6 - .../bundle-source/src/zip-base64.d.ts.map | 1 - packages/captp/src/atomics.d.ts | 6 - packages/captp/src/atomics.d.ts.map | 1 - packages/captp/src/captp.d.ts | 55 -- packages/captp/src/captp.d.ts.map | 1 - packages/captp/src/finalize.d.ts | 13 - packages/captp/src/finalize.d.ts.map | 1 - packages/captp/src/index.d.ts | 6 - packages/captp/src/index.d.ts.map | 1 - packages/captp/src/loopback.d.ts | 14 - packages/captp/src/loopback.d.ts.map | 1 - packages/captp/src/trap.d.ts | 11 - packages/captp/src/trap.d.ts.map | 1 - packages/captp/src/types.d.ts | 61 -- packages/captp/src/types.d.ts.map | 1 - packages/check-bundle/index.d.ts | 4 - packages/check-bundle/index.d.ts.map | 1 - packages/check-bundle/lite.d.ts | 2 - packages/check-bundle/lite.d.ts.map | 1 - packages/check-bundle/src/json.d.ts | 2 - packages/check-bundle/src/json.d.ts.map | 1 - packages/cjs-module-analyzer/index.d.ts | 11 - packages/cjs-module-analyzer/index.d.ts.map | 1 - packages/cli/src/client.d.ts | 2 - packages/cli/src/client.d.ts.map | 1 - packages/cli/src/commands/adopt.d.ts | 7 - packages/cli/src/commands/adopt.d.ts.map | 1 - packages/cli/src/commands/bundle.d.ts | 7 - packages/cli/src/commands/bundle.d.ts.map | 1 - packages/cli/src/commands/cancel.d.ts | 6 - packages/cli/src/commands/cancel.d.ts.map | 1 - packages/cli/src/commands/cat.d.ts | 5 - packages/cli/src/commands/cat.d.ts.map | 1 - packages/cli/src/commands/dismiss.d.ts | 5 - packages/cli/src/commands/dismiss.d.ts.map | 1 - packages/cli/src/commands/eval.d.ts | 8 - packages/cli/src/commands/eval.d.ts.map | 1 - packages/cli/src/commands/follow.d.ts | 5 - packages/cli/src/commands/follow.d.ts.map | 1 - packages/cli/src/commands/inbox.d.ts | 5 - packages/cli/src/commands/inbox.d.ts.map | 1 - packages/cli/src/commands/install.d.ts | 10 - packages/cli/src/commands/install.d.ts.map | 1 - packages/cli/src/commands/list.d.ts | 6 - packages/cli/src/commands/list.d.ts.map | 1 - packages/cli/src/commands/log.d.ts | 5 - packages/cli/src/commands/log.d.ts.map | 1 - packages/cli/src/commands/make.d.ts | 10 - packages/cli/src/commands/make.d.ts.map | 1 - packages/cli/src/commands/mkguest.d.ts | 6 - packages/cli/src/commands/mkguest.d.ts.map | 1 - packages/cli/src/commands/mkhost.d.ts | 6 - packages/cli/src/commands/mkhost.d.ts.map | 1 - packages/cli/src/commands/open.d.ts | 5 - packages/cli/src/commands/open.d.ts.map | 1 - packages/cli/src/commands/ping.d.ts | 2 - packages/cli/src/commands/ping.d.ts.map | 1 - packages/cli/src/commands/reject.d.ts | 6 - packages/cli/src/commands/reject.d.ts.map | 1 - packages/cli/src/commands/remove.d.ts | 5 - packages/cli/src/commands/remove.d.ts.map | 1 - packages/cli/src/commands/rename.d.ts | 6 - packages/cli/src/commands/rename.d.ts.map | 1 - packages/cli/src/commands/request.d.ts | 7 - packages/cli/src/commands/request.d.ts.map | 1 - packages/cli/src/commands/resolve.d.ts | 6 - packages/cli/src/commands/resolve.d.ts.map | 1 - packages/cli/src/commands/run.d.ts | 9 - packages/cli/src/commands/run.d.ts.map | 1 - packages/cli/src/commands/send.d.ts | 6 - packages/cli/src/commands/send.d.ts.map | 1 - packages/cli/src/commands/show.d.ts | 5 - packages/cli/src/commands/show.d.ts.map | 1 - packages/cli/src/commands/spawn.d.ts | 5 - packages/cli/src/commands/spawn.d.ts.map | 1 - packages/cli/src/commands/store.d.ts | 6 - packages/cli/src/commands/store.d.ts.map | 1 - packages/cli/src/context.d.ts | 15 - packages/cli/src/context.d.ts.map | 1 - packages/cli/src/endo.d.ts | 2 - packages/cli/src/endo.d.ts.map | 1 - packages/cli/src/locator.d.ts | 6 - packages/cli/src/locator.d.ts.map | 1 - packages/cli/src/message-format.d.ts | 2 - packages/cli/src/message-format.d.ts.map | 1 - packages/cli/src/message-parse.d.ts | 6 - packages/cli/src/message-parse.d.ts.map | 1 - packages/cli/src/pet-name.d.ts | 2 - packages/cli/src/pet-name.d.ts.map | 1 - packages/cli/src/prompt.d.ts | 9 - packages/cli/src/prompt.d.ts.map | 1 - packages/cli/src/random.d.ts | 2 - packages/cli/src/random.d.ts.map | 1 - packages/common/apply-labeling-error.d.ts | 2 - packages/common/apply-labeling-error.d.ts.map | 1 - packages/common/from-unique-entries.d.ts | 2 - packages/common/from-unique-entries.d.ts.map | 1 - packages/common/ident-checker.d.ts | 49 -- packages/common/ident-checker.d.ts.map | 1 - packages/common/list-difference.d.ts | 2 - packages/common/list-difference.d.ts.map | 1 - packages/common/make-array-iterator.d.ts | 2 - packages/common/make-array-iterator.d.ts.map | 1 - packages/common/make-iterator.d.ts | 2 - packages/common/make-iterator.d.ts.map | 1 - packages/common/object-map.d.ts | 2 - packages/common/object-map.d.ts.map | 1 - packages/common/object-meta-assign.d.ts | 2 - packages/common/object-meta-assign.d.ts.map | 1 - packages/common/object-meta-map.d.ts | 2 - packages/common/object-meta-map.d.ts.map | 1 - packages/common/throw-labeled.d.ts | 2 - packages/common/throw-labeled.d.ts.map | 1 - packages/compartment-mapper/archive.d.ts | 2 - packages/compartment-mapper/archive.d.ts.map | 1 - packages/compartment-mapper/bundle.d.ts | 2 - packages/compartment-mapper/bundle.d.ts.map | 1 - .../compartment-mapper/import-archive.d.ts | 2 - .../import-archive.d.ts.map | 1 - packages/compartment-mapper/import.d.ts | 2 - packages/compartment-mapper/import.d.ts.map | 1 - packages/compartment-mapper/index.d.ts | 7 - packages/compartment-mapper/index.d.ts.map | 1 - packages/compartment-mapper/node-powers.d.ts | 2 - .../compartment-mapper/node-powers.d.ts.map | 1 - packages/compartment-mapper/src/archive.d.ts | 25 - .../compartment-mapper/src/archive.d.ts.map | 1 - .../compartment-mapper/src/bundle-cjs.d.ts | 19 - .../src/bundle-cjs.d.ts.map | 1 - .../compartment-mapper/src/bundle-mjs.d.ts | 22 - .../src/bundle-mjs.d.ts.map | 1 - packages/compartment-mapper/src/bundle.d.ts | 20 - .../compartment-mapper/src/bundle.d.ts.map | 1 - .../src/compartment-map.d.ts | 5 - .../src/compartment-map.d.ts.map | 1 - .../compartment-mapper/src/extension.d.ts | 2 - .../compartment-mapper/src/extension.d.ts.map | 1 - .../src/import-archive.d.ts | 13 - .../src/import-archive.d.ts.map | 1 - .../compartment-mapper/src/import-hook.d.ts | 29 - .../src/import-hook.d.ts.map | 1 - packages/compartment-mapper/src/import.d.ts | 12 - .../compartment-mapper/src/import.d.ts.map | 1 - .../compartment-mapper/src/infer-exports.d.ts | 9 - .../src/infer-exports.d.ts.map | 1 - packages/compartment-mapper/src/json.d.ts | 2 - packages/compartment-mapper/src/json.d.ts.map | 1 - packages/compartment-mapper/src/link.d.ts | 22 - packages/compartment-mapper/src/link.d.ts.map | 1 - .../src/node-module-specifier.d.ts | 4 - .../src/node-module-specifier.d.ts.map | 1 - .../compartment-mapper/src/node-modules.d.ts | 52 -- .../src/node-modules.d.ts.map | 1 - .../compartment-mapper/src/node-powers.d.ts | 46 -- .../src/node-powers.d.ts.map | 1 - .../src/parse-archive-cjs.d.ts | 5 - .../src/parse-archive-cjs.d.ts.map | 1 - .../src/parse-archive-mjs.d.ts | 5 - .../src/parse-archive-mjs.d.ts.map | 1 - .../compartment-mapper/src/parse-bytes.d.ts | 5 - .../src/parse-bytes.d.ts.map | 1 - .../src/parse-cjs-shared-export-wrapper.d.ts | 21 - .../parse-cjs-shared-export-wrapper.d.ts.map | 1 - .../compartment-mapper/src/parse-cjs.d.ts | 5 - .../compartment-mapper/src/parse-cjs.d.ts.map | 1 - .../compartment-mapper/src/parse-json.d.ts | 5 - .../src/parse-json.d.ts.map | 1 - .../compartment-mapper/src/parse-mjs.d.ts | 5 - .../compartment-mapper/src/parse-mjs.d.ts.map | 1 - .../compartment-mapper/src/parse-pre-cjs.d.ts | 5 - .../src/parse-pre-cjs.d.ts.map | 1 - .../compartment-mapper/src/parse-pre-mjs.d.ts | 5 - .../src/parse-pre-mjs.d.ts.map | 1 - .../compartment-mapper/src/parse-text.d.ts | 5 - .../src/parse-text.d.ts.map | 1 - .../compartment-mapper/src/policy-format.d.ts | 7 - .../src/policy-format.d.ts.map | 1 - packages/compartment-mapper/src/policy.d.ts | 42 -- .../compartment-mapper/src/policy.d.ts.map | 1 - packages/compartment-mapper/src/powers.d.ts | 2 - .../compartment-mapper/src/powers.d.ts.map | 1 - packages/compartment-mapper/src/search.d.ts | 14 - .../compartment-mapper/src/search.d.ts.map | 1 - packages/compartment-mapper/src/types.d.ts | 359 ------------ .../compartment-mapper/src/types.d.ts.map | 1 - packages/compartment-mapper/src/url.d.ts | 2 - packages/compartment-mapper/src/url.d.ts.map | 1 - packages/daemon/index.d.ts | 40 -- packages/daemon/index.d.ts.map | 1 - packages/daemon/reader-ref.d.ts | 2 - packages/daemon/reader-ref.d.ts.map | 1 - packages/daemon/ref-reader.d.ts | 2 - packages/daemon/ref-reader.d.ts.map | 1 - packages/daemon/src/client.d.ts | 5 - packages/daemon/src/client.d.ts.map | 1 - packages/daemon/src/connection.d.ts | 11 - packages/daemon/src/connection.d.ts.map | 1 - packages/daemon/src/context.d.ts | 13 - packages/daemon/src/context.d.ts.map | 1 - packages/daemon/src/daemon-node-powers.d.ts | 38 -- .../daemon/src/daemon-node-powers.d.ts.map | 1 - packages/daemon/src/daemon-node.d.ts | 2 - packages/daemon/src/daemon-node.d.ts.map | 1 - packages/daemon/src/daemon.d.ts | 29 - packages/daemon/src/daemon.d.ts.map | 1 - packages/daemon/src/deferred-tasks.d.ts | 2 - packages/daemon/src/deferred-tasks.d.ts.map | 1 - packages/daemon/src/directory.d.ts | 41 -- packages/daemon/src/directory.d.ts.map | 1 - packages/daemon/src/formula-identifier.d.ts | 4 - .../daemon/src/formula-identifier.d.ts.map | 1 - packages/daemon/src/guest.d.ts | 56 -- packages/daemon/src/guest.d.ts.map | 1 - packages/daemon/src/host.d.ts | 92 --- packages/daemon/src/host.d.ts.map | 1 - packages/daemon/src/mail.d.ts | 5 - packages/daemon/src/mail.d.ts.map | 1 - packages/daemon/src/networks/loopback.d.ts | 4 - .../daemon/src/networks/loopback.d.ts.map | 1 - .../daemon/src/networks/tcp-netstring.d.ts | 10 - .../src/networks/tcp-netstring.d.ts.map | 1 - packages/daemon/src/pet-name.d.ts | 3 - packages/daemon/src/pet-name.d.ts.map | 1 - packages/daemon/src/pet-sitter.d.ts | 2 - packages/daemon/src/pet-sitter.d.ts.map | 1 - packages/daemon/src/pet-store.d.ts | 4 - packages/daemon/src/pet-store.d.ts.map | 1 - packages/daemon/src/pubsub.d.ts | 18 - packages/daemon/src/pubsub.d.ts.map | 1 - packages/daemon/src/reader-ref.d.ts | 4 - packages/daemon/src/reader-ref.d.ts.map | 1 - packages/daemon/src/ref-reader.d.ts | 11 - packages/daemon/src/ref-reader.d.ts.map | 1 - packages/daemon/src/serial-jobs.d.ts | 2 - packages/daemon/src/serial-jobs.d.ts.map | 1 - packages/daemon/src/serve-private-path.d.ts | 10 - .../daemon/src/serve-private-path.d.ts.map | 1 - .../daemon/src/serve-private-port-http.d.ts | 10 - .../src/serve-private-port-http.d.ts.map | 1 - packages/daemon/src/weak-multimap.d.ts | 2 - packages/daemon/src/weak-multimap.d.ts.map | 1 - packages/daemon/src/web-page.d.ts | 2 - packages/daemon/src/web-page.d.ts.map | 1 - .../daemon/src/web-server-node-powers.d.ts | 13 - .../src/web-server-node-powers.d.ts.map | 1 - packages/daemon/src/web-server-node.d.ts | 18 - packages/daemon/src/web-server-node.d.ts.map | 1 - packages/daemon/src/worker-node-powers.d.ts | 5 - .../daemon/src/worker-node-powers.d.ts.map | 1 - packages/daemon/src/worker-node.d.ts | 2 - packages/daemon/src/worker-node.d.ts.map | 1 - packages/daemon/src/worker.d.ts | 96 ---- packages/daemon/src/worker.d.ts.map | 1 - packages/env-options/index.d.ts | 2 - packages/env-options/index.d.ts.map | 1 - packages/env-options/src/env-options.d.ts | 24 - packages/env-options/src/env-options.d.ts.map | 1 - packages/errors/index.d.ts | 10 - packages/errors/index.d.ts.map | 1 - packages/evasive-transform/index.d.ts | 2 - packages/evasive-transform/index.d.ts.map | 1 - packages/evasive-transform/src/generate.d.ts | 76 --- .../evasive-transform/src/generate.d.ts.map | 1 - packages/evasive-transform/src/index.d.ts | 48 -- packages/evasive-transform/src/index.d.ts.map | 1 - .../src/location-unmapper.d.ts | 22 - .../src/location-unmapper.d.ts.map | 1 - packages/evasive-transform/src/parse-ast.d.ts | 39 -- .../evasive-transform/src/parse-ast.d.ts.map | 1 - .../evasive-transform/src/transform-ast.d.ts | 72 --- .../src/transform-ast.d.ts.map | 1 - .../src/transform-comment.d.ts | 10 - .../src/transform-comment.d.ts.map | 1 - packages/eventual-send/shim.d.ts | 2 - packages/eventual-send/shim.d.ts.map | 1 - packages/eventual-send/src/E.d.ts | 158 ----- packages/eventual-send/src/E.d.ts.map | 1 - .../eventual-send/src/exports.test-d.d.ts | 2 - .../eventual-send/src/exports.test-d.d.ts.map | 1 - .../eventual-send/src/handled-promise.d.ts | 35 -- .../src/handled-promise.d.ts.map | 1 - packages/eventual-send/src/local.d.ts | 5 - packages/eventual-send/src/local.d.ts.map | 1 - .../src/message-breakpoints.d.ts | 44 -- .../src/message-breakpoints.d.ts.map | 1 - packages/eventual-send/src/no-shim.d.ts | 17 - packages/eventual-send/src/no-shim.d.ts.map | 1 - packages/eventual-send/src/postponed.d.ts | 2 - packages/eventual-send/src/postponed.d.ts.map | 1 - packages/eventual-send/src/track-turns.d.ts | 7 - .../eventual-send/src/track-turns.d.ts.map | 1 - packages/eventual-send/test/get-hp.d.ts | 15 - packages/eventual-send/test/get-hp.d.ts.map | 1 - packages/eventual-send/utils.d.ts | 3 - packages/eventual-send/utils.d.ts.map | 1 - packages/exo/index.d.ts | 3 - packages/exo/index.d.ts.map | 1 - packages/exo/src/exo-makers.d.ts | 102 ---- packages/exo/src/exo-makers.d.ts.map | 1 - packages/exo/src/exo-tools.d.ts | 27 - packages/exo/src/exo-tools.d.ts.map | 1 - packages/exo/src/get-interface.d.ts | 18 - packages/exo/src/get-interface.d.ts.map | 1 - packages/exo/tools.d.ts | 2 - packages/exo/tools.d.ts.map | 1 - packages/far/src/index.d.ts | 23 - packages/far/src/index.d.ts.map | 1 - .../import-bundle/source-map-node-powers.d.ts | 2 - .../source-map-node-powers.d.ts.map | 1 - packages/import-bundle/source-map-node.d.ts | 2 - .../import-bundle/source-map-node.d.ts.map | 1 - .../src/compartment-wrapper.d.ts | 5 - .../src/compartment-wrapper.d.ts.map | 1 - packages/import-bundle/src/index.d.ts | 2 - packages/import-bundle/src/index.d.ts.map | 1 - .../src/source-map-node-powers.d.ts | 12 - .../src/source-map-node-powers.d.ts.map | 1 - .../import-bundle/src/source-map-node.d.ts | 4 - .../src/source-map-node.d.ts.map | 1 - packages/init/debug.d.ts | 2 - packages/init/debug.d.ts.map | 1 - packages/init/index.d.ts | 2 - packages/init/index.d.ts.map | 1 - packages/init/legacy.d.ts | 2 - packages/init/legacy.d.ts.map | 1 - packages/init/pre-bundle-source.d.ts | 2 - packages/init/pre-bundle-source.d.ts.map | 1 - packages/init/pre-remoting.d.ts | 3 - packages/init/pre-remoting.d.ts.map | 1 - packages/init/pre.d.ts | 2 - packages/init/pre.d.ts.map | 1 - .../src/node-async-local-storage-patch.d.ts | 16 - .../node-async-local-storage-patch.d.ts.map | 1 - packages/init/src/node-async_hooks-patch.d.ts | 2 - .../init/src/node-async_hooks-patch.d.ts.map | 1 - packages/init/src/node-async_hooks.d.ts | 4 - packages/init/src/node-async_hooks.d.ts.map | 1 - packages/init/src/pre-node.d.ts | 2 - packages/init/src/pre-node.d.ts.map | 1 - packages/init/unsafe-fast.d.ts | 2 - packages/init/unsafe-fast.d.ts.map | 1 - packages/lp32/index.d.ts | 3 - packages/lp32/index.d.ts.map | 1 - packages/lp32/reader.d.ts | 5 - packages/lp32/reader.d.ts.map | 1 - packages/lp32/src/host-endian.d.ts | 2 - packages/lp32/src/host-endian.d.ts.map | 1 - packages/lp32/writer.d.ts | 6 - packages/lp32/writer.d.ts.map | 1 - packages/marshal/index.d.ts | 10 - packages/marshal/index.d.ts.map | 1 - packages/marshal/src/deeplyFulfilled.d.ts | 4 - packages/marshal/src/deeplyFulfilled.d.ts.map | 1 - packages/marshal/src/dot-membrane.d.ts | 5 - packages/marshal/src/dot-membrane.d.ts.map | 1 - packages/marshal/src/encodePassable.d.ts | 48 -- packages/marshal/src/encodePassable.d.ts.map | 1 - packages/marshal/src/encodeToCapData.d.ts | 22 - packages/marshal/src/encodeToCapData.d.ts.map | 1 - packages/marshal/src/encodeToSmallcaps.d.ts | 17 - .../marshal/src/encodeToSmallcaps.d.ts.map | 1 - packages/marshal/src/marshal-justin.d.ts | 17 - packages/marshal/src/marshal-justin.d.ts.map | 1 - packages/marshal/src/marshal-stringify.d.ts | 12 - .../marshal/src/marshal-stringify.d.ts.map | 1 - packages/marshal/src/marshal.d.ts | 18 - packages/marshal/src/marshal.d.ts.map | 1 - packages/marshal/src/rankOrder.d.ts | 36 -- packages/marshal/src/rankOrder.d.ts.map | 1 - packages/marshal/src/types.d.ts | 166 ------ packages/marshal/src/types.d.ts.map | 1 - packages/marshal/src/types.test-d.d.ts | 2 - packages/marshal/src/types.test-d.d.ts.map | 1 - packages/memoize/index.d.ts | 2 - packages/memoize/index.d.ts.map | 1 - packages/memoize/src/memoize.d.ts | 2 - packages/memoize/src/memoize.d.ts.map | 1 - packages/nat/src/index.d.ts | 30 - packages/nat/src/index.d.ts.map | 1 - packages/netstring/index.d.ts | 3 - packages/netstring/index.d.ts.map | 1 - packages/netstring/reader.d.ts | 6 - packages/netstring/reader.d.ts.map | 1 - packages/netstring/writer.d.ts | 7 - packages/netstring/writer.d.ts.map | 1 - packages/pass-style/endow.d.ts | 2 - packages/pass-style/endow.d.ts.map | 1 - packages/pass-style/index.d.ts | 12 - packages/pass-style/index.d.ts.map | 1 - packages/pass-style/src/copyArray.d.ts | 6 - packages/pass-style/src/copyArray.d.ts.map | 1 - packages/pass-style/src/copyRecord.d.ts | 6 - packages/pass-style/src/copyRecord.d.ts.map | 1 - packages/pass-style/src/error.d.ts | 11 - packages/pass-style/src/error.d.ts.map | 1 - packages/pass-style/src/internal-types.d.ts | 26 - .../pass-style/src/internal-types.d.ts.map | 1 - packages/pass-style/src/iter-helpers.d.ts | 3 - packages/pass-style/src/iter-helpers.d.ts.map | 1 - packages/pass-style/src/make-far.d.ts | 21 - packages/pass-style/src/make-far.d.ts.map | 1 - packages/pass-style/src/makeTagged.d.ts | 2 - packages/pass-style/src/makeTagged.d.ts.map | 1 - .../pass-style/src/passStyle-helpers.d.ts | 38 -- .../pass-style/src/passStyle-helpers.d.ts.map | 1 - packages/pass-style/src/passStyleOf.d.ts | 29 - packages/pass-style/src/passStyleOf.d.ts.map | 1 - packages/pass-style/src/remotable.d.ts | 14 - packages/pass-style/src/remotable.d.ts.map | 1 - packages/pass-style/src/safe-promise.d.ts | 4 - packages/pass-style/src/safe-promise.d.ts.map | 1 - packages/pass-style/src/string.d.ts | 4 - packages/pass-style/src/string.d.ts.map | 1 - packages/pass-style/src/symbol.d.ts | 5 - packages/pass-style/src/symbol.d.ts.map | 1 - packages/pass-style/src/tagged.d.ts | 6 - packages/pass-style/src/tagged.d.ts.map | 1 - packages/pass-style/src/typeGuards.d.ts | 65 --- packages/pass-style/src/typeGuards.d.ts.map | 1 - packages/pass-style/src/types.d.ts | 114 ---- packages/pass-style/src/types.d.ts.map | 1 - packages/pass-style/tools.d.ts | 2 - packages/pass-style/tools.d.ts.map | 1 - packages/pass-style/tools/arb-passable.d.ts | 17 - .../pass-style/tools/arb-passable.d.ts.map | 1 - packages/patterns/index.d.ts | 12 - packages/patterns/index.d.ts.map | 1 - packages/patterns/src/keys/checkKey.d.ts | 84 --- packages/patterns/src/keys/checkKey.d.ts.map | 1 - packages/patterns/src/keys/compareKeys.d.ts | 11 - .../patterns/src/keys/compareKeys.d.ts.map | 1 - packages/patterns/src/keys/copyBag.d.ts | 11 - packages/patterns/src/keys/copyBag.d.ts.map | 1 - packages/patterns/src/keys/copySet.d.ts | 11 - packages/patterns/src/keys/copySet.d.ts.map | 1 - .../src/keys/keycollection-operators.d.ts | 8 - .../src/keys/keycollection-operators.d.ts.map | 1 - .../src/keys/merge-bag-operators.d.ts | 9 - .../src/keys/merge-bag-operators.d.ts.map | 1 - .../src/keys/merge-set-operators.d.ts | 17 - .../src/keys/merge-set-operators.d.ts.map | 1 - .../src/patterns/getGuardPayloads.d.ts | 5 - .../src/patterns/getGuardPayloads.d.ts.map | 1 - .../src/patterns/patternMatchers.d.ts | 35 -- .../src/patterns/patternMatchers.d.ts.map | 1 - packages/patterns/src/patterns/types.d.ts | 68 --- packages/patterns/src/patterns/types.d.ts.map | 1 - packages/patterns/src/types.d.ts | 541 ------------------ packages/patterns/src/types.d.ts.map | 1 - packages/promise-kit/index.d.ts | 24 - packages/promise-kit/index.d.ts.map | 1 - packages/promise-kit/shim.d.ts | 2 - packages/promise-kit/shim.d.ts.map | 1 - packages/promise-kit/src/is-promise.d.ts | 8 - packages/promise-kit/src/is-promise.d.ts.map | 1 - packages/promise-kit/src/memo-race.d.ts | 27 - packages/promise-kit/src/memo-race.d.ts.map | 1 - .../promise-kit/src/promise-executor-kit.d.ts | 8 - .../src/promise-executor-kit.d.ts.map | 1 - packages/promise-kit/src/types.d.ts | 20 - packages/promise-kit/src/types.d.ts.map | 1 - packages/ses-ava/exported.d.ts | 1 - packages/ses-ava/exported.d.ts.map | 1 - packages/ses-ava/index.d.ts | 2 - packages/ses-ava/index.d.ts.map | 1 - packages/ses-ava/prepare-endo.d.ts | 5 - packages/ses-ava/prepare-endo.d.ts.map | 1 - packages/ses-ava/src/ses-ava-test.d.ts | 44 -- packages/ses-ava/src/ses-ava-test.d.ts.map | 1 - packages/skel/index.d.ts | 1 - packages/skel/index.d.ts.map | 1 - packages/static-module-record/index.d.ts | 2 - packages/static-module-record/index.d.ts.map | 1 - .../static-module-record/src/babelPlugin.d.ts | 56 -- .../src/babelPlugin.d.ts.map | 1 - packages/static-module-record/src/hidden.d.ts | 11 - .../static-module-record/src/hidden.d.ts.map | 1 - .../src/static-module-record.d.ts | 80 --- .../src/static-module-record.d.ts.map | 1 - .../src/transform-analyze.d.ts | 13 - .../src/transform-analyze.d.ts.map | 1 - .../src/transformSource.d.ts | 2 - .../src/transformSource.d.ts.map | 1 - packages/stream-node/index.d.ts | 3 - packages/stream-node/index.d.ts.map | 1 - packages/stream-node/reader.d.ts | 2 - packages/stream-node/reader.d.ts.map | 1 - packages/stream-node/writer.d.ts | 2 - packages/stream-node/writer.d.ts.map | 1 - packages/stream/index.d.ts | 48 -- packages/stream/index.d.ts.map | 1 - packages/syrup/decode.d.ts | 2 - packages/syrup/decode.d.ts.map | 1 - packages/syrup/encode.d.ts | 2 - packages/syrup/encode.d.ts.map | 1 - packages/syrup/index.d.ts | 3 - packages/syrup/index.d.ts.map | 1 - packages/syrup/src/compare.d.ts | 10 - packages/syrup/src/compare.d.ts.map | 1 - packages/syrup/src/decode.d.ts | 13 - packages/syrup/src/decode.d.ts.map | 1 - packages/syrup/src/encode.d.ts | 16 - packages/syrup/src/encode.d.ts.map | 1 - packages/where/index.d.ts | 32 -- packages/where/index.d.ts.map | 1 - packages/zip/index.d.ts | 4 - packages/zip/index.d.ts.map | 1 - packages/zip/reader.d.ts | 2 - packages/zip/reader.d.ts.map | 1 - packages/zip/src/buffer-reader.d.ts | 112 ---- packages/zip/src/buffer-reader.d.ts.map | 1 - packages/zip/src/buffer-writer.d.ts | 66 --- packages/zip/src/buffer-writer.d.ts.map | 1 - packages/zip/src/compression.d.ts | 2 - packages/zip/src/compression.d.ts.map | 1 - packages/zip/src/crc32.d.ts | 8 - packages/zip/src/crc32.d.ts.map | 1 - packages/zip/src/format-reader.d.ts | 44 -- packages/zip/src/format-reader.d.ts.map | 1 - packages/zip/src/format-writer.d.ts | 46 -- packages/zip/src/format-writer.d.ts.map | 1 - packages/zip/src/reader.d.ts | 24 - packages/zip/src/reader.d.ts.map | 1 - packages/zip/src/signature.d.ts | 7 - packages/zip/src/signature.d.ts.map | 1 - packages/zip/src/types.d.ts | 48 -- packages/zip/src/types.d.ts.map | 1 - packages/zip/src/writer.d.ts | 33 -- packages/zip/src/writer.d.ts.map | 1 - packages/zip/writer.d.ts | 2 - packages/zip/writer.d.ts.map | 1 - 569 files changed, 5612 deletions(-) delete mode 100644 .vscode/launch.json delete mode 100644 packages/base64/atob.d.ts delete mode 100644 packages/base64/atob.d.ts.map delete mode 100644 packages/base64/btoa.d.ts delete mode 100644 packages/base64/btoa.d.ts.map delete mode 100644 packages/base64/decode.d.ts delete mode 100644 packages/base64/decode.d.ts.map delete mode 100644 packages/base64/encode.d.ts delete mode 100644 packages/base64/encode.d.ts.map delete mode 100644 packages/base64/index.d.ts delete mode 100644 packages/base64/index.d.ts.map delete mode 100644 packages/base64/shim.d.ts delete mode 100644 packages/base64/shim.d.ts.map delete mode 100644 packages/base64/src/common.d.ts delete mode 100644 packages/base64/src/common.d.ts.map delete mode 100644 packages/base64/src/decode.d.ts delete mode 100644 packages/base64/src/decode.d.ts.map delete mode 100644 packages/base64/src/encode.d.ts delete mode 100644 packages/base64/src/encode.d.ts.map delete mode 100644 packages/bundle-source/cache.d.ts delete mode 100644 packages/bundle-source/cache.d.ts.map delete mode 100644 packages/bundle-source/src/bundle-source.d.ts delete mode 100644 packages/bundle-source/src/bundle-source.d.ts.map delete mode 100644 packages/bundle-source/src/fs.d.ts delete mode 100644 packages/bundle-source/src/fs.d.ts.map delete mode 100644 packages/bundle-source/src/index.d.ts delete mode 100644 packages/bundle-source/src/index.d.ts.map delete mode 100644 packages/bundle-source/src/is-entrypoint.d.ts delete mode 100644 packages/bundle-source/src/is-entrypoint.d.ts.map delete mode 100644 packages/bundle-source/src/main.d.ts delete mode 100644 packages/bundle-source/src/main.d.ts.map delete mode 100644 packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts delete mode 100644 packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map delete mode 100644 packages/bundle-source/src/tool.d.ts delete mode 100644 packages/bundle-source/src/tool.d.ts.map delete mode 100644 packages/bundle-source/src/types.d.ts delete mode 100644 packages/bundle-source/src/types.d.ts.map delete mode 100644 packages/bundle-source/src/zip-base64.d.ts delete mode 100644 packages/bundle-source/src/zip-base64.d.ts.map delete mode 100644 packages/captp/src/atomics.d.ts delete mode 100644 packages/captp/src/atomics.d.ts.map delete mode 100644 packages/captp/src/captp.d.ts delete mode 100644 packages/captp/src/captp.d.ts.map delete mode 100644 packages/captp/src/finalize.d.ts delete mode 100644 packages/captp/src/finalize.d.ts.map delete mode 100644 packages/captp/src/index.d.ts delete mode 100644 packages/captp/src/index.d.ts.map delete mode 100644 packages/captp/src/loopback.d.ts delete mode 100644 packages/captp/src/loopback.d.ts.map delete mode 100644 packages/captp/src/trap.d.ts delete mode 100644 packages/captp/src/trap.d.ts.map delete mode 100644 packages/captp/src/types.d.ts delete mode 100644 packages/captp/src/types.d.ts.map delete mode 100644 packages/check-bundle/index.d.ts delete mode 100644 packages/check-bundle/index.d.ts.map delete mode 100644 packages/check-bundle/lite.d.ts delete mode 100644 packages/check-bundle/lite.d.ts.map delete mode 100644 packages/check-bundle/src/json.d.ts delete mode 100644 packages/check-bundle/src/json.d.ts.map delete mode 100644 packages/cjs-module-analyzer/index.d.ts delete mode 100644 packages/cjs-module-analyzer/index.d.ts.map delete mode 100644 packages/cli/src/client.d.ts delete mode 100644 packages/cli/src/client.d.ts.map delete mode 100644 packages/cli/src/commands/adopt.d.ts delete mode 100644 packages/cli/src/commands/adopt.d.ts.map delete mode 100644 packages/cli/src/commands/bundle.d.ts delete mode 100644 packages/cli/src/commands/bundle.d.ts.map delete mode 100644 packages/cli/src/commands/cancel.d.ts delete mode 100644 packages/cli/src/commands/cancel.d.ts.map delete mode 100644 packages/cli/src/commands/cat.d.ts delete mode 100644 packages/cli/src/commands/cat.d.ts.map delete mode 100644 packages/cli/src/commands/dismiss.d.ts delete mode 100644 packages/cli/src/commands/dismiss.d.ts.map delete mode 100644 packages/cli/src/commands/eval.d.ts delete mode 100644 packages/cli/src/commands/eval.d.ts.map delete mode 100644 packages/cli/src/commands/follow.d.ts delete mode 100644 packages/cli/src/commands/follow.d.ts.map delete mode 100644 packages/cli/src/commands/inbox.d.ts delete mode 100644 packages/cli/src/commands/inbox.d.ts.map delete mode 100644 packages/cli/src/commands/install.d.ts delete mode 100644 packages/cli/src/commands/install.d.ts.map delete mode 100644 packages/cli/src/commands/list.d.ts delete mode 100644 packages/cli/src/commands/list.d.ts.map delete mode 100644 packages/cli/src/commands/log.d.ts delete mode 100644 packages/cli/src/commands/log.d.ts.map delete mode 100644 packages/cli/src/commands/make.d.ts delete mode 100644 packages/cli/src/commands/make.d.ts.map delete mode 100644 packages/cli/src/commands/mkguest.d.ts delete mode 100644 packages/cli/src/commands/mkguest.d.ts.map delete mode 100644 packages/cli/src/commands/mkhost.d.ts delete mode 100644 packages/cli/src/commands/mkhost.d.ts.map delete mode 100644 packages/cli/src/commands/open.d.ts delete mode 100644 packages/cli/src/commands/open.d.ts.map delete mode 100644 packages/cli/src/commands/ping.d.ts delete mode 100644 packages/cli/src/commands/ping.d.ts.map delete mode 100644 packages/cli/src/commands/reject.d.ts delete mode 100644 packages/cli/src/commands/reject.d.ts.map delete mode 100644 packages/cli/src/commands/remove.d.ts delete mode 100644 packages/cli/src/commands/remove.d.ts.map delete mode 100644 packages/cli/src/commands/rename.d.ts delete mode 100644 packages/cli/src/commands/rename.d.ts.map delete mode 100644 packages/cli/src/commands/request.d.ts delete mode 100644 packages/cli/src/commands/request.d.ts.map delete mode 100644 packages/cli/src/commands/resolve.d.ts delete mode 100644 packages/cli/src/commands/resolve.d.ts.map delete mode 100644 packages/cli/src/commands/run.d.ts delete mode 100644 packages/cli/src/commands/run.d.ts.map delete mode 100644 packages/cli/src/commands/send.d.ts delete mode 100644 packages/cli/src/commands/send.d.ts.map delete mode 100644 packages/cli/src/commands/show.d.ts delete mode 100644 packages/cli/src/commands/show.d.ts.map delete mode 100644 packages/cli/src/commands/spawn.d.ts delete mode 100644 packages/cli/src/commands/spawn.d.ts.map delete mode 100644 packages/cli/src/commands/store.d.ts delete mode 100644 packages/cli/src/commands/store.d.ts.map delete mode 100644 packages/cli/src/context.d.ts delete mode 100644 packages/cli/src/context.d.ts.map delete mode 100644 packages/cli/src/endo.d.ts delete mode 100644 packages/cli/src/endo.d.ts.map delete mode 100644 packages/cli/src/locator.d.ts delete mode 100644 packages/cli/src/locator.d.ts.map delete mode 100644 packages/cli/src/message-format.d.ts delete mode 100644 packages/cli/src/message-format.d.ts.map delete mode 100644 packages/cli/src/message-parse.d.ts delete mode 100644 packages/cli/src/message-parse.d.ts.map delete mode 100644 packages/cli/src/pet-name.d.ts delete mode 100644 packages/cli/src/pet-name.d.ts.map delete mode 100644 packages/cli/src/prompt.d.ts delete mode 100644 packages/cli/src/prompt.d.ts.map delete mode 100644 packages/cli/src/random.d.ts delete mode 100644 packages/cli/src/random.d.ts.map delete mode 100644 packages/common/apply-labeling-error.d.ts delete mode 100644 packages/common/apply-labeling-error.d.ts.map delete mode 100644 packages/common/from-unique-entries.d.ts delete mode 100644 packages/common/from-unique-entries.d.ts.map delete mode 100644 packages/common/ident-checker.d.ts delete mode 100644 packages/common/ident-checker.d.ts.map delete mode 100644 packages/common/list-difference.d.ts delete mode 100644 packages/common/list-difference.d.ts.map delete mode 100644 packages/common/make-array-iterator.d.ts delete mode 100644 packages/common/make-array-iterator.d.ts.map delete mode 100644 packages/common/make-iterator.d.ts delete mode 100644 packages/common/make-iterator.d.ts.map delete mode 100644 packages/common/object-map.d.ts delete mode 100644 packages/common/object-map.d.ts.map delete mode 100644 packages/common/object-meta-assign.d.ts delete mode 100644 packages/common/object-meta-assign.d.ts.map delete mode 100644 packages/common/object-meta-map.d.ts delete mode 100644 packages/common/object-meta-map.d.ts.map delete mode 100644 packages/common/throw-labeled.d.ts delete mode 100644 packages/common/throw-labeled.d.ts.map delete mode 100644 packages/compartment-mapper/archive.d.ts delete mode 100644 packages/compartment-mapper/archive.d.ts.map delete mode 100644 packages/compartment-mapper/bundle.d.ts delete mode 100644 packages/compartment-mapper/bundle.d.ts.map delete mode 100644 packages/compartment-mapper/import-archive.d.ts delete mode 100644 packages/compartment-mapper/import-archive.d.ts.map delete mode 100644 packages/compartment-mapper/import.d.ts delete mode 100644 packages/compartment-mapper/import.d.ts.map delete mode 100644 packages/compartment-mapper/index.d.ts delete mode 100644 packages/compartment-mapper/index.d.ts.map delete mode 100644 packages/compartment-mapper/node-powers.d.ts delete mode 100644 packages/compartment-mapper/node-powers.d.ts.map delete mode 100644 packages/compartment-mapper/src/archive.d.ts delete mode 100644 packages/compartment-mapper/src/archive.d.ts.map delete mode 100644 packages/compartment-mapper/src/bundle-cjs.d.ts delete mode 100644 packages/compartment-mapper/src/bundle-cjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/bundle-mjs.d.ts delete mode 100644 packages/compartment-mapper/src/bundle-mjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/bundle.d.ts delete mode 100644 packages/compartment-mapper/src/bundle.d.ts.map delete mode 100644 packages/compartment-mapper/src/compartment-map.d.ts delete mode 100644 packages/compartment-mapper/src/compartment-map.d.ts.map delete mode 100644 packages/compartment-mapper/src/extension.d.ts delete mode 100644 packages/compartment-mapper/src/extension.d.ts.map delete mode 100644 packages/compartment-mapper/src/import-archive.d.ts delete mode 100644 packages/compartment-mapper/src/import-archive.d.ts.map delete mode 100644 packages/compartment-mapper/src/import-hook.d.ts delete mode 100644 packages/compartment-mapper/src/import-hook.d.ts.map delete mode 100644 packages/compartment-mapper/src/import.d.ts delete mode 100644 packages/compartment-mapper/src/import.d.ts.map delete mode 100644 packages/compartment-mapper/src/infer-exports.d.ts delete mode 100644 packages/compartment-mapper/src/infer-exports.d.ts.map delete mode 100644 packages/compartment-mapper/src/json.d.ts delete mode 100644 packages/compartment-mapper/src/json.d.ts.map delete mode 100644 packages/compartment-mapper/src/link.d.ts delete mode 100644 packages/compartment-mapper/src/link.d.ts.map delete mode 100644 packages/compartment-mapper/src/node-module-specifier.d.ts delete mode 100644 packages/compartment-mapper/src/node-module-specifier.d.ts.map delete mode 100644 packages/compartment-mapper/src/node-modules.d.ts delete mode 100644 packages/compartment-mapper/src/node-modules.d.ts.map delete mode 100644 packages/compartment-mapper/src/node-powers.d.ts delete mode 100644 packages/compartment-mapper/src/node-powers.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-archive-cjs.d.ts delete mode 100644 packages/compartment-mapper/src/parse-archive-cjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-archive-mjs.d.ts delete mode 100644 packages/compartment-mapper/src/parse-archive-mjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-bytes.d.ts delete mode 100644 packages/compartment-mapper/src/parse-bytes.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts delete mode 100644 packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-cjs.d.ts delete mode 100644 packages/compartment-mapper/src/parse-cjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-json.d.ts delete mode 100644 packages/compartment-mapper/src/parse-json.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-mjs.d.ts delete mode 100644 packages/compartment-mapper/src/parse-mjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-pre-cjs.d.ts delete mode 100644 packages/compartment-mapper/src/parse-pre-cjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-pre-mjs.d.ts delete mode 100644 packages/compartment-mapper/src/parse-pre-mjs.d.ts.map delete mode 100644 packages/compartment-mapper/src/parse-text.d.ts delete mode 100644 packages/compartment-mapper/src/parse-text.d.ts.map delete mode 100644 packages/compartment-mapper/src/policy-format.d.ts delete mode 100644 packages/compartment-mapper/src/policy-format.d.ts.map delete mode 100644 packages/compartment-mapper/src/policy.d.ts delete mode 100644 packages/compartment-mapper/src/policy.d.ts.map delete mode 100644 packages/compartment-mapper/src/powers.d.ts delete mode 100644 packages/compartment-mapper/src/powers.d.ts.map delete mode 100644 packages/compartment-mapper/src/search.d.ts delete mode 100644 packages/compartment-mapper/src/search.d.ts.map delete mode 100644 packages/compartment-mapper/src/types.d.ts delete mode 100644 packages/compartment-mapper/src/types.d.ts.map delete mode 100644 packages/compartment-mapper/src/url.d.ts delete mode 100644 packages/compartment-mapper/src/url.d.ts.map delete mode 100644 packages/daemon/index.d.ts delete mode 100644 packages/daemon/index.d.ts.map delete mode 100644 packages/daemon/reader-ref.d.ts delete mode 100644 packages/daemon/reader-ref.d.ts.map delete mode 100644 packages/daemon/ref-reader.d.ts delete mode 100644 packages/daemon/ref-reader.d.ts.map delete mode 100644 packages/daemon/src/client.d.ts delete mode 100644 packages/daemon/src/client.d.ts.map delete mode 100644 packages/daemon/src/connection.d.ts delete mode 100644 packages/daemon/src/connection.d.ts.map delete mode 100644 packages/daemon/src/context.d.ts delete mode 100644 packages/daemon/src/context.d.ts.map delete mode 100644 packages/daemon/src/daemon-node-powers.d.ts delete mode 100644 packages/daemon/src/daemon-node-powers.d.ts.map delete mode 100644 packages/daemon/src/daemon-node.d.ts delete mode 100644 packages/daemon/src/daemon-node.d.ts.map delete mode 100644 packages/daemon/src/daemon.d.ts delete mode 100644 packages/daemon/src/daemon.d.ts.map delete mode 100644 packages/daemon/src/deferred-tasks.d.ts delete mode 100644 packages/daemon/src/deferred-tasks.d.ts.map delete mode 100644 packages/daemon/src/directory.d.ts delete mode 100644 packages/daemon/src/directory.d.ts.map delete mode 100644 packages/daemon/src/formula-identifier.d.ts delete mode 100644 packages/daemon/src/formula-identifier.d.ts.map delete mode 100644 packages/daemon/src/guest.d.ts delete mode 100644 packages/daemon/src/guest.d.ts.map delete mode 100644 packages/daemon/src/host.d.ts delete mode 100644 packages/daemon/src/host.d.ts.map delete mode 100644 packages/daemon/src/mail.d.ts delete mode 100644 packages/daemon/src/mail.d.ts.map delete mode 100644 packages/daemon/src/networks/loopback.d.ts delete mode 100644 packages/daemon/src/networks/loopback.d.ts.map delete mode 100644 packages/daemon/src/networks/tcp-netstring.d.ts delete mode 100644 packages/daemon/src/networks/tcp-netstring.d.ts.map delete mode 100644 packages/daemon/src/pet-name.d.ts delete mode 100644 packages/daemon/src/pet-name.d.ts.map delete mode 100644 packages/daemon/src/pet-sitter.d.ts delete mode 100644 packages/daemon/src/pet-sitter.d.ts.map delete mode 100644 packages/daemon/src/pet-store.d.ts delete mode 100644 packages/daemon/src/pet-store.d.ts.map delete mode 100644 packages/daemon/src/pubsub.d.ts delete mode 100644 packages/daemon/src/pubsub.d.ts.map delete mode 100644 packages/daemon/src/reader-ref.d.ts delete mode 100644 packages/daemon/src/reader-ref.d.ts.map delete mode 100644 packages/daemon/src/ref-reader.d.ts delete mode 100644 packages/daemon/src/ref-reader.d.ts.map delete mode 100644 packages/daemon/src/serial-jobs.d.ts delete mode 100644 packages/daemon/src/serial-jobs.d.ts.map delete mode 100644 packages/daemon/src/serve-private-path.d.ts delete mode 100644 packages/daemon/src/serve-private-path.d.ts.map delete mode 100644 packages/daemon/src/serve-private-port-http.d.ts delete mode 100644 packages/daemon/src/serve-private-port-http.d.ts.map delete mode 100644 packages/daemon/src/weak-multimap.d.ts delete mode 100644 packages/daemon/src/weak-multimap.d.ts.map delete mode 100644 packages/daemon/src/web-page.d.ts delete mode 100644 packages/daemon/src/web-page.d.ts.map delete mode 100644 packages/daemon/src/web-server-node-powers.d.ts delete mode 100644 packages/daemon/src/web-server-node-powers.d.ts.map delete mode 100644 packages/daemon/src/web-server-node.d.ts delete mode 100644 packages/daemon/src/web-server-node.d.ts.map delete mode 100644 packages/daemon/src/worker-node-powers.d.ts delete mode 100644 packages/daemon/src/worker-node-powers.d.ts.map delete mode 100644 packages/daemon/src/worker-node.d.ts delete mode 100644 packages/daemon/src/worker-node.d.ts.map delete mode 100644 packages/daemon/src/worker.d.ts delete mode 100644 packages/daemon/src/worker.d.ts.map delete mode 100644 packages/env-options/index.d.ts delete mode 100644 packages/env-options/index.d.ts.map delete mode 100644 packages/env-options/src/env-options.d.ts delete mode 100644 packages/env-options/src/env-options.d.ts.map delete mode 100644 packages/errors/index.d.ts delete mode 100644 packages/errors/index.d.ts.map delete mode 100644 packages/evasive-transform/index.d.ts delete mode 100644 packages/evasive-transform/index.d.ts.map delete mode 100644 packages/evasive-transform/src/generate.d.ts delete mode 100644 packages/evasive-transform/src/generate.d.ts.map delete mode 100644 packages/evasive-transform/src/index.d.ts delete mode 100644 packages/evasive-transform/src/index.d.ts.map delete mode 100644 packages/evasive-transform/src/location-unmapper.d.ts delete mode 100644 packages/evasive-transform/src/location-unmapper.d.ts.map delete mode 100644 packages/evasive-transform/src/parse-ast.d.ts delete mode 100644 packages/evasive-transform/src/parse-ast.d.ts.map delete mode 100644 packages/evasive-transform/src/transform-ast.d.ts delete mode 100644 packages/evasive-transform/src/transform-ast.d.ts.map delete mode 100644 packages/evasive-transform/src/transform-comment.d.ts delete mode 100644 packages/evasive-transform/src/transform-comment.d.ts.map delete mode 100644 packages/eventual-send/shim.d.ts delete mode 100644 packages/eventual-send/shim.d.ts.map delete mode 100644 packages/eventual-send/src/E.d.ts delete mode 100644 packages/eventual-send/src/E.d.ts.map delete mode 100644 packages/eventual-send/src/exports.test-d.d.ts delete mode 100644 packages/eventual-send/src/exports.test-d.d.ts.map delete mode 100644 packages/eventual-send/src/handled-promise.d.ts delete mode 100644 packages/eventual-send/src/handled-promise.d.ts.map delete mode 100644 packages/eventual-send/src/local.d.ts delete mode 100644 packages/eventual-send/src/local.d.ts.map delete mode 100644 packages/eventual-send/src/message-breakpoints.d.ts delete mode 100644 packages/eventual-send/src/message-breakpoints.d.ts.map delete mode 100644 packages/eventual-send/src/no-shim.d.ts delete mode 100644 packages/eventual-send/src/no-shim.d.ts.map delete mode 100644 packages/eventual-send/src/postponed.d.ts delete mode 100644 packages/eventual-send/src/postponed.d.ts.map delete mode 100644 packages/eventual-send/src/track-turns.d.ts delete mode 100644 packages/eventual-send/src/track-turns.d.ts.map delete mode 100644 packages/eventual-send/test/get-hp.d.ts delete mode 100644 packages/eventual-send/test/get-hp.d.ts.map delete mode 100644 packages/eventual-send/utils.d.ts delete mode 100644 packages/eventual-send/utils.d.ts.map delete mode 100644 packages/exo/index.d.ts delete mode 100644 packages/exo/index.d.ts.map delete mode 100644 packages/exo/src/exo-makers.d.ts delete mode 100644 packages/exo/src/exo-makers.d.ts.map delete mode 100644 packages/exo/src/exo-tools.d.ts delete mode 100644 packages/exo/src/exo-tools.d.ts.map delete mode 100644 packages/exo/src/get-interface.d.ts delete mode 100644 packages/exo/src/get-interface.d.ts.map delete mode 100644 packages/exo/tools.d.ts delete mode 100644 packages/exo/tools.d.ts.map delete mode 100644 packages/far/src/index.d.ts delete mode 100644 packages/far/src/index.d.ts.map delete mode 100644 packages/import-bundle/source-map-node-powers.d.ts delete mode 100644 packages/import-bundle/source-map-node-powers.d.ts.map delete mode 100644 packages/import-bundle/source-map-node.d.ts delete mode 100644 packages/import-bundle/source-map-node.d.ts.map delete mode 100644 packages/import-bundle/src/compartment-wrapper.d.ts delete mode 100644 packages/import-bundle/src/compartment-wrapper.d.ts.map delete mode 100644 packages/import-bundle/src/index.d.ts delete mode 100644 packages/import-bundle/src/index.d.ts.map delete mode 100644 packages/import-bundle/src/source-map-node-powers.d.ts delete mode 100644 packages/import-bundle/src/source-map-node-powers.d.ts.map delete mode 100644 packages/import-bundle/src/source-map-node.d.ts delete mode 100644 packages/import-bundle/src/source-map-node.d.ts.map delete mode 100644 packages/init/debug.d.ts delete mode 100644 packages/init/debug.d.ts.map delete mode 100644 packages/init/index.d.ts delete mode 100644 packages/init/index.d.ts.map delete mode 100644 packages/init/legacy.d.ts delete mode 100644 packages/init/legacy.d.ts.map delete mode 100644 packages/init/pre-bundle-source.d.ts delete mode 100644 packages/init/pre-bundle-source.d.ts.map delete mode 100644 packages/init/pre-remoting.d.ts delete mode 100644 packages/init/pre-remoting.d.ts.map delete mode 100644 packages/init/pre.d.ts delete mode 100644 packages/init/pre.d.ts.map delete mode 100644 packages/init/src/node-async-local-storage-patch.d.ts delete mode 100644 packages/init/src/node-async-local-storage-patch.d.ts.map delete mode 100644 packages/init/src/node-async_hooks-patch.d.ts delete mode 100644 packages/init/src/node-async_hooks-patch.d.ts.map delete mode 100644 packages/init/src/node-async_hooks.d.ts delete mode 100644 packages/init/src/node-async_hooks.d.ts.map delete mode 100644 packages/init/src/pre-node.d.ts delete mode 100644 packages/init/src/pre-node.d.ts.map delete mode 100644 packages/init/unsafe-fast.d.ts delete mode 100644 packages/init/unsafe-fast.d.ts.map delete mode 100644 packages/lp32/index.d.ts delete mode 100644 packages/lp32/index.d.ts.map delete mode 100644 packages/lp32/reader.d.ts delete mode 100644 packages/lp32/reader.d.ts.map delete mode 100644 packages/lp32/src/host-endian.d.ts delete mode 100644 packages/lp32/src/host-endian.d.ts.map delete mode 100644 packages/lp32/writer.d.ts delete mode 100644 packages/lp32/writer.d.ts.map delete mode 100644 packages/marshal/index.d.ts delete mode 100644 packages/marshal/index.d.ts.map delete mode 100644 packages/marshal/src/deeplyFulfilled.d.ts delete mode 100644 packages/marshal/src/deeplyFulfilled.d.ts.map delete mode 100644 packages/marshal/src/dot-membrane.d.ts delete mode 100644 packages/marshal/src/dot-membrane.d.ts.map delete mode 100644 packages/marshal/src/encodePassable.d.ts delete mode 100644 packages/marshal/src/encodePassable.d.ts.map delete mode 100644 packages/marshal/src/encodeToCapData.d.ts delete mode 100644 packages/marshal/src/encodeToCapData.d.ts.map delete mode 100644 packages/marshal/src/encodeToSmallcaps.d.ts delete mode 100644 packages/marshal/src/encodeToSmallcaps.d.ts.map delete mode 100644 packages/marshal/src/marshal-justin.d.ts delete mode 100644 packages/marshal/src/marshal-justin.d.ts.map delete mode 100644 packages/marshal/src/marshal-stringify.d.ts delete mode 100644 packages/marshal/src/marshal-stringify.d.ts.map delete mode 100644 packages/marshal/src/marshal.d.ts delete mode 100644 packages/marshal/src/marshal.d.ts.map delete mode 100644 packages/marshal/src/rankOrder.d.ts delete mode 100644 packages/marshal/src/rankOrder.d.ts.map delete mode 100644 packages/marshal/src/types.d.ts delete mode 100644 packages/marshal/src/types.d.ts.map delete mode 100644 packages/marshal/src/types.test-d.d.ts delete mode 100644 packages/marshal/src/types.test-d.d.ts.map delete mode 100644 packages/memoize/index.d.ts delete mode 100644 packages/memoize/index.d.ts.map delete mode 100644 packages/memoize/src/memoize.d.ts delete mode 100644 packages/memoize/src/memoize.d.ts.map delete mode 100644 packages/nat/src/index.d.ts delete mode 100644 packages/nat/src/index.d.ts.map delete mode 100644 packages/netstring/index.d.ts delete mode 100644 packages/netstring/index.d.ts.map delete mode 100644 packages/netstring/reader.d.ts delete mode 100644 packages/netstring/reader.d.ts.map delete mode 100644 packages/netstring/writer.d.ts delete mode 100644 packages/netstring/writer.d.ts.map delete mode 100644 packages/pass-style/endow.d.ts delete mode 100644 packages/pass-style/endow.d.ts.map delete mode 100644 packages/pass-style/index.d.ts delete mode 100644 packages/pass-style/index.d.ts.map delete mode 100644 packages/pass-style/src/copyArray.d.ts delete mode 100644 packages/pass-style/src/copyArray.d.ts.map delete mode 100644 packages/pass-style/src/copyRecord.d.ts delete mode 100644 packages/pass-style/src/copyRecord.d.ts.map delete mode 100644 packages/pass-style/src/error.d.ts delete mode 100644 packages/pass-style/src/error.d.ts.map delete mode 100644 packages/pass-style/src/internal-types.d.ts delete mode 100644 packages/pass-style/src/internal-types.d.ts.map delete mode 100644 packages/pass-style/src/iter-helpers.d.ts delete mode 100644 packages/pass-style/src/iter-helpers.d.ts.map delete mode 100644 packages/pass-style/src/make-far.d.ts delete mode 100644 packages/pass-style/src/make-far.d.ts.map delete mode 100644 packages/pass-style/src/makeTagged.d.ts delete mode 100644 packages/pass-style/src/makeTagged.d.ts.map delete mode 100644 packages/pass-style/src/passStyle-helpers.d.ts delete mode 100644 packages/pass-style/src/passStyle-helpers.d.ts.map delete mode 100644 packages/pass-style/src/passStyleOf.d.ts delete mode 100644 packages/pass-style/src/passStyleOf.d.ts.map delete mode 100644 packages/pass-style/src/remotable.d.ts delete mode 100644 packages/pass-style/src/remotable.d.ts.map delete mode 100644 packages/pass-style/src/safe-promise.d.ts delete mode 100644 packages/pass-style/src/safe-promise.d.ts.map delete mode 100644 packages/pass-style/src/string.d.ts delete mode 100644 packages/pass-style/src/string.d.ts.map delete mode 100644 packages/pass-style/src/symbol.d.ts delete mode 100644 packages/pass-style/src/symbol.d.ts.map delete mode 100644 packages/pass-style/src/tagged.d.ts delete mode 100644 packages/pass-style/src/tagged.d.ts.map delete mode 100644 packages/pass-style/src/typeGuards.d.ts delete mode 100644 packages/pass-style/src/typeGuards.d.ts.map delete mode 100644 packages/pass-style/src/types.d.ts delete mode 100644 packages/pass-style/src/types.d.ts.map delete mode 100644 packages/pass-style/tools.d.ts delete mode 100644 packages/pass-style/tools.d.ts.map delete mode 100644 packages/pass-style/tools/arb-passable.d.ts delete mode 100644 packages/pass-style/tools/arb-passable.d.ts.map delete mode 100644 packages/patterns/index.d.ts delete mode 100644 packages/patterns/index.d.ts.map delete mode 100644 packages/patterns/src/keys/checkKey.d.ts delete mode 100644 packages/patterns/src/keys/checkKey.d.ts.map delete mode 100644 packages/patterns/src/keys/compareKeys.d.ts delete mode 100644 packages/patterns/src/keys/compareKeys.d.ts.map delete mode 100644 packages/patterns/src/keys/copyBag.d.ts delete mode 100644 packages/patterns/src/keys/copyBag.d.ts.map delete mode 100644 packages/patterns/src/keys/copySet.d.ts delete mode 100644 packages/patterns/src/keys/copySet.d.ts.map delete mode 100644 packages/patterns/src/keys/keycollection-operators.d.ts delete mode 100644 packages/patterns/src/keys/keycollection-operators.d.ts.map delete mode 100644 packages/patterns/src/keys/merge-bag-operators.d.ts delete mode 100644 packages/patterns/src/keys/merge-bag-operators.d.ts.map delete mode 100644 packages/patterns/src/keys/merge-set-operators.d.ts delete mode 100644 packages/patterns/src/keys/merge-set-operators.d.ts.map delete mode 100644 packages/patterns/src/patterns/getGuardPayloads.d.ts delete mode 100644 packages/patterns/src/patterns/getGuardPayloads.d.ts.map delete mode 100644 packages/patterns/src/patterns/patternMatchers.d.ts delete mode 100644 packages/patterns/src/patterns/patternMatchers.d.ts.map delete mode 100644 packages/patterns/src/patterns/types.d.ts delete mode 100644 packages/patterns/src/patterns/types.d.ts.map delete mode 100644 packages/patterns/src/types.d.ts delete mode 100644 packages/patterns/src/types.d.ts.map delete mode 100644 packages/promise-kit/index.d.ts delete mode 100644 packages/promise-kit/index.d.ts.map delete mode 100644 packages/promise-kit/shim.d.ts delete mode 100644 packages/promise-kit/shim.d.ts.map delete mode 100644 packages/promise-kit/src/is-promise.d.ts delete mode 100644 packages/promise-kit/src/is-promise.d.ts.map delete mode 100644 packages/promise-kit/src/memo-race.d.ts delete mode 100644 packages/promise-kit/src/memo-race.d.ts.map delete mode 100644 packages/promise-kit/src/promise-executor-kit.d.ts delete mode 100644 packages/promise-kit/src/promise-executor-kit.d.ts.map delete mode 100644 packages/promise-kit/src/types.d.ts delete mode 100644 packages/promise-kit/src/types.d.ts.map delete mode 100644 packages/ses-ava/exported.d.ts delete mode 100644 packages/ses-ava/exported.d.ts.map delete mode 100644 packages/ses-ava/index.d.ts delete mode 100644 packages/ses-ava/index.d.ts.map delete mode 100644 packages/ses-ava/prepare-endo.d.ts delete mode 100644 packages/ses-ava/prepare-endo.d.ts.map delete mode 100644 packages/ses-ava/src/ses-ava-test.d.ts delete mode 100644 packages/ses-ava/src/ses-ava-test.d.ts.map delete mode 100644 packages/skel/index.d.ts delete mode 100644 packages/skel/index.d.ts.map delete mode 100644 packages/static-module-record/index.d.ts delete mode 100644 packages/static-module-record/index.d.ts.map delete mode 100644 packages/static-module-record/src/babelPlugin.d.ts delete mode 100644 packages/static-module-record/src/babelPlugin.d.ts.map delete mode 100644 packages/static-module-record/src/hidden.d.ts delete mode 100644 packages/static-module-record/src/hidden.d.ts.map delete mode 100644 packages/static-module-record/src/static-module-record.d.ts delete mode 100644 packages/static-module-record/src/static-module-record.d.ts.map delete mode 100644 packages/static-module-record/src/transform-analyze.d.ts delete mode 100644 packages/static-module-record/src/transform-analyze.d.ts.map delete mode 100644 packages/static-module-record/src/transformSource.d.ts delete mode 100644 packages/static-module-record/src/transformSource.d.ts.map delete mode 100644 packages/stream-node/index.d.ts delete mode 100644 packages/stream-node/index.d.ts.map delete mode 100644 packages/stream-node/reader.d.ts delete mode 100644 packages/stream-node/reader.d.ts.map delete mode 100644 packages/stream-node/writer.d.ts delete mode 100644 packages/stream-node/writer.d.ts.map delete mode 100644 packages/stream/index.d.ts delete mode 100644 packages/stream/index.d.ts.map delete mode 100644 packages/syrup/decode.d.ts delete mode 100644 packages/syrup/decode.d.ts.map delete mode 100644 packages/syrup/encode.d.ts delete mode 100644 packages/syrup/encode.d.ts.map delete mode 100644 packages/syrup/index.d.ts delete mode 100644 packages/syrup/index.d.ts.map delete mode 100644 packages/syrup/src/compare.d.ts delete mode 100644 packages/syrup/src/compare.d.ts.map delete mode 100644 packages/syrup/src/decode.d.ts delete mode 100644 packages/syrup/src/decode.d.ts.map delete mode 100644 packages/syrup/src/encode.d.ts delete mode 100644 packages/syrup/src/encode.d.ts.map delete mode 100644 packages/where/index.d.ts delete mode 100644 packages/where/index.d.ts.map delete mode 100644 packages/zip/index.d.ts delete mode 100644 packages/zip/index.d.ts.map delete mode 100644 packages/zip/reader.d.ts delete mode 100644 packages/zip/reader.d.ts.map delete mode 100644 packages/zip/src/buffer-reader.d.ts delete mode 100644 packages/zip/src/buffer-reader.d.ts.map delete mode 100644 packages/zip/src/buffer-writer.d.ts delete mode 100644 packages/zip/src/buffer-writer.d.ts.map delete mode 100644 packages/zip/src/compression.d.ts delete mode 100644 packages/zip/src/compression.d.ts.map delete mode 100644 packages/zip/src/crc32.d.ts delete mode 100644 packages/zip/src/crc32.d.ts.map delete mode 100644 packages/zip/src/format-reader.d.ts delete mode 100644 packages/zip/src/format-reader.d.ts.map delete mode 100644 packages/zip/src/format-writer.d.ts delete mode 100644 packages/zip/src/format-writer.d.ts.map delete mode 100644 packages/zip/src/reader.d.ts delete mode 100644 packages/zip/src/reader.d.ts.map delete mode 100644 packages/zip/src/signature.d.ts delete mode 100644 packages/zip/src/signature.d.ts.map delete mode 100644 packages/zip/src/types.d.ts delete mode 100644 packages/zip/src/types.d.ts.map delete mode 100644 packages/zip/src/writer.d.ts delete mode 100644 packages/zip/src/writer.d.ts.map delete mode 100644 packages/zip/writer.d.ts delete mode 100644 packages/zip/writer.d.ts.map diff --git a/.vscode/launch.json b/.vscode/launch.json deleted file mode 100644 index 528ebfef7f..0000000000 --- a/.vscode/launch.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "sourceMapPathOverrides": { - "type": "object", - "description": "%chrome.sourceMapPathOverrides.description%", - "default": { - "sourcemap:///./*": "/Users/kris/*" - } - } -} diff --git a/packages/base64/atob.d.ts b/packages/base64/atob.d.ts deleted file mode 100644 index cea5f057c6..0000000000 --- a/packages/base64/atob.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function atob(encodedData: string): string; -//# sourceMappingURL=atob.d.ts.map \ No newline at end of file diff --git a/packages/base64/atob.d.ts.map b/packages/base64/atob.d.ts.map deleted file mode 100644 index 2103d5ba2d..0000000000 --- a/packages/base64/atob.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"atob.d.ts","sourceRoot":"","sources":["atob.js"],"names":[],"mappings":"AAMO,kCAHI,MAAM,GACJ,MAAM,CAKlB"} \ No newline at end of file diff --git a/packages/base64/btoa.d.ts b/packages/base64/btoa.d.ts deleted file mode 100644 index d1d54000e4..0000000000 --- a/packages/base64/btoa.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function btoa(stringToEncode: string): string; -//# sourceMappingURL=btoa.d.ts.map \ No newline at end of file diff --git a/packages/base64/btoa.d.ts.map b/packages/base64/btoa.d.ts.map deleted file mode 100644 index c0091d0160..0000000000 --- a/packages/base64/btoa.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"btoa.d.ts","sourceRoot":"","sources":["btoa.js"],"names":[],"mappings":"AAMO,qCAHI,MAAM,GACJ,MAAM,CAYlB"} \ No newline at end of file diff --git a/packages/base64/decode.d.ts b/packages/base64/decode.d.ts deleted file mode 100644 index b347963b58..0000000000 --- a/packages/base64/decode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { decodeBase64 } from "./src/decode.js"; -//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/base64/decode.d.ts.map b/packages/base64/decode.d.ts.map deleted file mode 100644 index 857a2f9a25..0000000000 --- a/packages/base64/decode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/encode.d.ts b/packages/base64/encode.d.ts deleted file mode 100644 index 5fcca1b2bf..0000000000 --- a/packages/base64/encode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { encodeBase64 } from "./src/encode.js"; -//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/base64/encode.d.ts.map b/packages/base64/encode.d.ts.map deleted file mode 100644 index 6d6d25d222..0000000000 --- a/packages/base64/encode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/index.d.ts b/packages/base64/index.d.ts deleted file mode 100644 index ea4bf7b6f9..0000000000 --- a/packages/base64/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { encodeBase64 } from "./src/encode.js"; -export { decodeBase64 } from "./src/decode.js"; -export { btoa } from "./btoa.js"; -export { atob } from "./atob.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/base64/index.d.ts.map b/packages/base64/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/base64/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/shim.d.ts b/packages/base64/shim.d.ts deleted file mode 100644 index e30ed92ed1..0000000000 --- a/packages/base64/shim.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=shim.d.ts.map \ No newline at end of file diff --git a/packages/base64/shim.d.ts.map b/packages/base64/shim.d.ts.map deleted file mode 100644 index 52ccee7578..0000000000 --- a/packages/base64/shim.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["shim.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/base64/src/common.d.ts b/packages/base64/src/common.d.ts deleted file mode 100644 index b505c78a5b..0000000000 --- a/packages/base64/src/common.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export const padding: "="; -export const alphabet64: "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/"; -/** - * The numeric value corresponding to each letter of the alphabet. - * If an alphabet is named for the Greek letters alpha and beta, then clearly a - * monodu is named for the corresponding Greek numbers mono and duo. - * - * @type {Record} - */ -export const monodu64: Record; -//# sourceMappingURL=common.d.ts.map \ No newline at end of file diff --git a/packages/base64/src/common.d.ts.map b/packages/base64/src/common.d.ts.map deleted file mode 100644 index a833376c62..0000000000 --- a/packages/base64/src/common.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"common.d.ts","sourceRoot":"","sources":["common.js"],"names":[],"mappings":"AAEA,0BAA2B;AAE3B,4FACqE;AAErE;;;;;;GAMG;AACH,uBAFU,OAAO,MAAM,EAAE,MAAM,CAAC,CAEL"} \ No newline at end of file diff --git a/packages/base64/src/decode.d.ts b/packages/base64/src/decode.d.ts deleted file mode 100644 index e4a02e1aad..0000000000 --- a/packages/base64/src/decode.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function jsDecodeBase64(string: string, name?: string | undefined): Uint8Array; -/** @type {typeof jsDecodeBase64} */ -export const decodeBase64: typeof jsDecodeBase64; -//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/base64/src/decode.d.ts.map b/packages/base64/src/decode.d.ts.map deleted file mode 100644 index c36d4573a0..0000000000 --- a/packages/base64/src/decode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":"AAuBO,uCALI,MAAM,8BAGJ,UAAU,CA4CtB;AAcD,oCAAoC;AACpC,2BADW,qBAAqB,CAIX"} \ No newline at end of file diff --git a/packages/base64/src/encode.d.ts b/packages/base64/src/encode.d.ts deleted file mode 100644 index 60d0c790ae..0000000000 --- a/packages/base64/src/encode.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function jsEncodeBase64(data: Uint8Array): string; -/** @type {typeof jsEncodeBase64} */ -export const encodeBase64: typeof jsEncodeBase64; -//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/base64/src/encode.d.ts.map b/packages/base64/src/encode.d.ts.map deleted file mode 100644 index 7ce0e769a4..0000000000 --- a/packages/base64/src/encode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":"AAqBO,qCAHI,UAAU,GACR,MAAM,CA8ClB;AAED,oCAAoC;AACpC,2BADW,qBAAqB,CAE8C"} \ No newline at end of file diff --git a/packages/bundle-source/cache.d.ts b/packages/bundle-source/cache.d.ts deleted file mode 100644 index 2fe56a828a..0000000000 --- a/packages/bundle-source/cache.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -export namespace jsOpts { - function encodeBundle(bundle: any): string; - function toBundleName(n: any): string; - function toBundleMeta(n: any): string; -} -export namespace jsonOpts { - export function encodeBundle_1(bundle: any): string; - export { encodeBundle_1 as encodeBundle }; - export function toBundleName_1(n: any): string; - export { toBundleName_1 as toBundleName }; - export function toBundleMeta_1(n: any): string; - export { toBundleMeta_1 as toBundleMeta }; -} -export function makeBundleCache(wr: any, cwd: any, readPowers: any, opts: any): { - add: (rootPath: any, targetName: any, log?: any) => Promise; - validate: (targetName: string, rootOpt: any, log?: Logger | undefined, meta?: BundleMeta | undefined) => Promise; - validateOrAdd: (rootPath: string, targetName: string, log?: Logger | undefined) => Promise; - load: (rootPath: string, targetName?: string | undefined, log?: Logger | undefined) => Promise; -}; -export function makeNodeBundleCache(dest: string, options: { - format?: string; - cacheOpts?: CacheOpts; - cacheSourceMaps?: boolean; - dev?: boolean; - log?: Logger; -}, loadModule: (id: string) => Promise, pid?: number | undefined, nonce?: number | undefined): Promise<{ - add: (rootPath: any, targetName: any, log?: any) => Promise; - validate: (targetName: string, rootOpt: any, log?: Logger | undefined, meta?: BundleMeta | undefined) => Promise; - validateOrAdd: (rootPath: string, targetName: string, log?: Logger | undefined) => Promise; - load: (rootPath: string, targetName?: string | undefined, log?: Logger | undefined) => Promise; -}>; -/** - * A message logger. - */ -export type Logger = (...args: unknown[]) => void; -export type BundleMeta = { - bundleFileName: string; - /** - * ISO format - */ - bundleTime: string; - bundleSize: number; - moduleSource: { - relative: string; - absolute: string; - }; - contents: Array<{ - relativePath: string; - mtime: string; - size: number; - }>; -}; -export type CacheOpts = typeof jsOpts; -//# sourceMappingURL=cache.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/cache.d.ts.map b/packages/bundle-source/cache.d.ts.map deleted file mode 100644 index 856ef9e8a3..0000000000 --- a/packages/bundle-source/cache.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cache.d.ts","sourceRoot":"","sources":["cache.js"],"names":[],"mappings":";IAuBgB,2CAAuD;IACvD,sCAAqB;IACrB,sCAA+B;;;IAM/B,oDAAuC;;IACvC,+CAAuB;;IACvB,+CAAiC;;;AAG1C;;2BAsFM,MAAM,WACN,GAAG,8DAGD,QAAQ,UAAU,CAAC;8BAyErB,MAAM,cACN,MAAM,+BAEJ,QAAQ,UAAU,CAAC;qBAgDrB,MAAM;EAgClB;AASM,0CANI,MAAM,WACN;IAAE,MAAM,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAC;IAAC,eAAe,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,mBAC7F,MAAM,KAAK,QAAQ,GAAG,CAAC;;2BArK1B,MAAM,WACN,GAAG,8DAGD,QAAQ,UAAU,CAAC;8BAyErB,MAAM,cACN,MAAM,+BAEJ,QAAQ,UAAU,CAAC;qBAgDrB,MAAM;GAuElB;;;;+BAvTsB,OAAO,EAAE,KAAK,IAAI;;oBAK3B,MAAM;;;;gBACN,MAAM;gBACN,MAAM;kBACN;QAAE,QAAQ,EAAE,MAAM,CAAC;QAAC,QAAQ,EAAE,MAAM,CAAA;KAAE;cACtC,MAAM;QAAE,YAAY,EAAE,MAAM,CAAC;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,EAAE,MAAM,CAAA;KAAE,CAAC;;wBAS5D,aAAa"} \ No newline at end of file diff --git a/packages/bundle-source/src/bundle-source.d.ts b/packages/bundle-source/src/bundle-source.d.ts deleted file mode 100644 index 3fdbc8b284..0000000000 --- a/packages/bundle-source/src/bundle-source.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default bundleSource; -/** @type {import('./types').BundleSource} */ -declare const bundleSource: import('./types').BundleSource; -//# sourceMappingURL=bundle-source.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/bundle-source.d.ts.map b/packages/bundle-source/src/bundle-source.d.ts.map deleted file mode 100644 index 3c706e02c8..0000000000 --- a/packages/bundle-source/src/bundle-source.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-source.d.ts","sourceRoot":"","sources":["bundle-source.js"],"names":[],"mappings":";AAIA,6CAA6C;AAE7C,4BAFW,OAAO,SAAS,EAAE,YAAY,CAgDvC"} \ No newline at end of file diff --git a/packages/bundle-source/src/fs.d.ts b/packages/bundle-source/src/fs.d.ts deleted file mode 100644 index 88ed2b07ce..0000000000 --- a/packages/bundle-source/src/fs.d.ts +++ /dev/null @@ -1,50 +0,0 @@ -/// -/// -/// -export function makeFileReader(fileName: string, { fs, path }: { - fs: { - promises: Pick; - }; - path: Pick; -}): { - toString: () => string; - readText: () => Promise; - maybeReadText: () => Promise; - neighbor: (ref: any) => any; - stat: () => Promise; - absolute: () => string; - relative: (there: any) => string; - exists: () => Promise; -}; -/** - * @param {string} fileName - * @param {{ - * fs: Pick & - * { promises: Pick< - * import('fs/promises'), - * 'readFile' | 'stat' | 'writeFile' | 'mkdir' | 'rename' | 'rm' - * >, - * }, - * path: Pick, - * }} io - * @param {(there: string) => ReturnType} make - */ -export const makeFileWriter: any; -/** - * @param {string} fileName - * @param {{ - * fs: Pick & - * { promises: Pick< - * import('fs/promises'), - * 'readFile' | 'stat' | 'writeFile' | 'mkdir' | 'rm' - * >, - * }, - * path: Pick, - * os: Pick, - * }} io - * @param {number} [pid] - * @param {number} [nonce] - * @param {(there: string) => ReturnType} make - */ -export const makeAtomicFileWriter: any; -//# sourceMappingURL=fs.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/fs.d.ts.map b/packages/bundle-source/src/fs.d.ts.map deleted file mode 100644 index 9b9c25acbf..0000000000 --- a/packages/bundle-source/src/fs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"fs.d.ts","sourceRoot":"","sources":["fs.js"],"names":[],"mappings":";;;AAYO,yCARI,MAAM,gBACN;IACV,EAAM,EAAE;QACR,QAAc,EAAE,mCAA2B,UAAU,GAAG,MAAM,CAAC,CAAA;KAC1D,CAAC;IACN,IAAQ,EAAE,kCAAqB,SAAS,GAAG,UAAU,GAAG,WAAW,CAAC,CAAC;CAClE;;;;;;;;;EAqDH;AAED;;;;;;;;;;;;GAYG;AACH,iCAgCE;AAEF;;;;;;;;;;;;;;;GAeG;AACH,uCAmCE"} \ No newline at end of file diff --git a/packages/bundle-source/src/index.d.ts b/packages/bundle-source/src/index.d.ts deleted file mode 100644 index 378c3873ae..0000000000 --- a/packages/bundle-source/src/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export default bundleSource; -export * from "./exports.js"; -import bundleSource from './bundle-source.js'; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/index.d.ts.map b/packages/bundle-source/src/index.d.ts.map deleted file mode 100644 index 5de8e61d52..0000000000 --- a/packages/bundle-source/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;yBAAyB,oBAAoB"} \ No newline at end of file diff --git a/packages/bundle-source/src/is-entrypoint.d.ts b/packages/bundle-source/src/is-entrypoint.d.ts deleted file mode 100644 index bb1e2c8a59..0000000000 --- a/packages/bundle-source/src/is-entrypoint.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function isEntrypoint(href: any): boolean; -//# sourceMappingURL=is-entrypoint.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/is-entrypoint.d.ts.map b/packages/bundle-source/src/is-entrypoint.d.ts.map deleted file mode 100644 index 27425d1b72..0000000000 --- a/packages/bundle-source/src/is-entrypoint.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"is-entrypoint.d.ts","sourceRoot":"","sources":["is-entrypoint.js"],"names":[],"mappings":"AAcO,iDAE0D"} \ No newline at end of file diff --git a/packages/bundle-source/src/main.d.ts b/packages/bundle-source/src/main.d.ts deleted file mode 100644 index de1824fcf6..0000000000 --- a/packages/bundle-source/src/main.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function main(args: [to: string, dest: string, ...rest: string[]], { loadModule, pid, log }: { - loadModule: (spec: string) => any; - pid: number; - log?: import("../cache.js").Logger | undefined; -}): Promise; -//# sourceMappingURL=main.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/main.d.ts.map b/packages/bundle-source/src/main.d.ts.map deleted file mode 100644 index 953fde3cc3..0000000000 --- a/packages/bundle-source/src/main.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"main.d.ts","sourceRoot":"","sources":["main.js"],"names":[],"mappings":"AAcO;uBALW,MAAM,KAAK,GAAG;SACrB,MAAM;;IAEJ,QAAQ,IAAI,CAAC,CAiCzB"} \ No newline at end of file diff --git a/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts b/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts deleted file mode 100644 index f15adb894f..0000000000 --- a/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @template {'nestedEvaluate' | 'getExport'} T - * @param {string} startFilename - * @param {T} moduleFormat - * @param {any} powers - */ -export function bundleNestedEvaluateAndGetExports(startFilename: string, moduleFormat: T, powers: any): Promise<{ - moduleFormat: T; - source: string; - sourceMap: string; -}>; -//# sourceMappingURL=nested-evaluate-and-get-exports.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map b/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map deleted file mode 100644 index 00881c0507..0000000000 --- a/packages/bundle-source/src/nested-evaluate-and-get-exports.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"nested-evaluate-and-get-exports.d.ts","sourceRoot":"","sources":["nested-evaluate-and-get-exports.js"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,2GAJW,MAAM,2BAEN,GAAG;;;;GA+Pb"} \ No newline at end of file diff --git a/packages/bundle-source/src/tool.d.ts b/packages/bundle-source/src/tool.d.ts deleted file mode 100644 index 7d9ce44977..0000000000 --- a/packages/bundle-source/src/tool.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env node -export {}; -//# sourceMappingURL=tool.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/tool.d.ts.map b/packages/bundle-source/src/tool.d.ts.map deleted file mode 100644 index 90bcc33bfb..0000000000 --- a/packages/bundle-source/src/tool.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tool.d.ts","sourceRoot":"","sources":["tool.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/bundle-source/src/types.d.ts b/packages/bundle-source/src/types.d.ts deleted file mode 100644 index 3cbcf5e436..0000000000 --- a/packages/bundle-source/src/types.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -export type ModuleFormat = 'endoZipBase64' | 'nestedEvaluate' | 'getExport'; -export type BundleSource = BundleSourceSimple & BundleSourceWithFormat & BundleSourceWithOptions & BundleSourceGeneral; -export type BundleSourceResult = T extends 'endoZipBase64' ? { - moduleFormat: 'endoZipBase64'; - endoZipBase64: string; - endoZipBase64Sha512: string; -} : T extends 'getExport' | 'nestedEvaluate' ? { - moduleFormat: T; - source: string; - sourceMap: string; -} : never; -export type BundleSourceSimple = (startFilename: string) => Promise>; -export type BundleSourceWithFormat = (startFilename: string, format: T, powers?: { - read?: ReadFn; - canonical?: CanonicalFn; - externals?: string[]; -}) => Promise>; -export type BundleSourceWithOptions = (startFilename: string, bundleOptions: BundleOptions, powers?: { - read?: ReadFn; - canonical?: CanonicalFn; - externals?: string[]; -}) => Promise>; -export type BundleSourceGeneral = (startFilename: string, formatOrOptions?: T | BundleOptions | undefined, powers?: { - read?: ReadFn; - canonical?: CanonicalFn; - externals?: string[]; -}) => Promise>; -export type BundleOptions = { - format?: T | undefined; - /** - * - development mode, for test bundles that need - * access to devDependencies of the entry package. - */ - dev?: boolean | undefined; -}; -export type ReadFn = (location: string) => Promise; -/** - * Returns a canonical URL for a given URL, following redirects or symbolic - * links if any exist along the path. - * Must return the given logical location if the real location does not exist. - */ -export type CanonicalFn = (location: string) => Promise; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/types.d.ts.map b/packages/bundle-source/src/types.d.ts.map deleted file mode 100644 index e11e0a6dcf..0000000000 --- a/packages/bundle-source/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"2BAIa,eAAe,GAAG,gBAAgB,GAAG,WAAW;2BAO5D,kBAAqB,GACrB,sBAAyB,GACzB,uBAA0B,GAC1B,mBAAsB;yDAKV,CAAC,SAAS,eAAe,GAAG;IACxC,YAAgB,EAAE,eAAe,CAAC;IAClC,aAAiB,EAAE,MAAM,CAAC;IAC1B,mBAAuB,EAAE,MAAM,CAAC;CAC7B,GAAG,CAAC,SAAS,WAAW,GAAG,gBAAgB,GAAG;IACjD,YAAgB,EAAE,CAAC,CAAC;IACpB,MAAU,EAAE,MAAM,CAAC;IACnB,SAAa,EAAE,MAAM,CAAC;CACnB,GAAG,KAAK;4EAKO,MAAM;+FAMN,MAAM,sBAEZ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;gGAM1D,MAAM,4CAEZ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;4FAMzD,MAAM,+DAEZ;IAAE,IAAI,CAAC,EAAE,MAAM,CAAC;IAAC,SAAS,CAAC,EAAE,WAAW,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,EAAE,CAAA;CAAE;;;;;;;;;gCAcnE,MAAM,KACJ,QAAQ,UAAU,CAAC;;;;;;qCASrB,MAAM,KACJ,QAAQ,MAAM,CAAC"} \ No newline at end of file diff --git a/packages/bundle-source/src/zip-base64.d.ts b/packages/bundle-source/src/zip-base64.d.ts deleted file mode 100644 index 2b3d87fca4..0000000000 --- a/packages/bundle-source/src/zip-base64.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function bundleZipBase64(startFilename: any, options?: {}, grantedPowers?: {}): Promise<{ - moduleFormat: "endoZipBase64"; - endoZipBase64: string; - endoZipBase64Sha512: string; -}>; -//# sourceMappingURL=zip-base64.d.ts.map \ No newline at end of file diff --git a/packages/bundle-source/src/zip-base64.d.ts.map b/packages/bundle-source/src/zip-base64.d.ts.map deleted file mode 100644 index 626778a2db..0000000000 --- a/packages/bundle-source/src/zip-base64.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"zip-base64.d.ts","sourceRoot":"","sources":["zip-base64.js"],"names":[],"mappings":"AAmBA;;;;GAuKC"} \ No newline at end of file diff --git a/packages/captp/src/atomics.d.ts b/packages/captp/src/atomics.d.ts deleted file mode 100644 index 2adac73bac..0000000000 --- a/packages/captp/src/atomics.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export const MIN_DATA_BUFFER_LENGTH: 1; -export const TRANSFER_OVERHEAD_LENGTH: number; -export const MIN_TRANSFER_BUFFER_LENGTH: number; -export function makeAtomicsTrapHost(transferBuffer: SharedArrayBuffer): import('./types.js').TrapHost; -export function makeAtomicsTrapGuest(transferBuffer: SharedArrayBuffer): import('./types.js').TrapGuest; -//# sourceMappingURL=atomics.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/atomics.d.ts.map b/packages/captp/src/atomics.d.ts.map deleted file mode 100644 index cfb8949dcb..0000000000 --- a/packages/captp/src/atomics.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"atomics.d.ts","sourceRoot":"","sources":["atomics.js"],"names":[],"mappings":"AAKA,uCAAwC;AAGxC,8CACkE;AAClE,gDACoD;AA0C7C,oDAHI,iBAAiB,GACf,OAAO,YAAY,EAAE,QAAQ,CA8CzC;AAWM,qDAHI,iBAAiB,GACf,OAAO,YAAY,EAAE,SAAS,CAgE1C"} \ No newline at end of file diff --git a/packages/captp/src/captp.d.ts b/packages/captp/src/captp.d.ts deleted file mode 100644 index 1e2437f9ca..0000000000 --- a/packages/captp/src/captp.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -export { E }; -export function makeCapTP(ourId: string, rawSend: (obj: Record) => void, bootstrapObj?: any, opts?: CapTPOptions): { - abort: (reason?: undefined) => void; - dispatch: (obj: any) => boolean; - getBootstrap: () => Promise; - getStats: () => { - send: { - [x: string]: number; - }; - recv: { - [x: string]: number; - }; - gc: { - DROPPED: number; - }; - }; - isOnlyLocal: (specimen: any) => boolean; - serialize: import("@endo/marshal/src/marshal.js").ToCapData; - unserialize: import("@endo/marshal/src/marshal.js").FromCapData; - makeTrapHandler: (name: any, obj: any) => any; - Trap: import("./ts-types.js").Trap | undefined; -}; -export type Settler = import('@endo/eventual-send').Settler; -export type HandledExecutor = import('@endo/eventual-send').HandledExecutor; -export type RemoteKit = import('@endo/eventual-send').RemoteKit; -/** - * the options to makeCapTP - */ -export type CapTPOptions = { - exportHook?: ((val: unknown, slot: import('./types.js').CapTPSlot) => void) | undefined; - importHook?: ((val: unknown, slot: import('./types.js').CapTPSlot) => void) | undefined; - onReject?: ((err: any) => void) | undefined; - /** - * an integer tag to attach to all messages in order to - * assist in ignoring earlier defunct instance's messages - */ - epoch?: number | undefined; - /** - * if specified, enable this CapTP (guest) to - * use Trap(target) to block while the recipient (host) resolves and - * communicates the response to the message - */ - trapGuest?: import("./types.js").TrapGuest | undefined; - /** - * if specified, enable this CapTP (host) to serve - * objects marked with makeTrapHandler to synchronous clients (guests) - */ - trapHost?: import("./types.js").TrapHost | undefined; - /** - * if true, aggressively garbage collect imports - */ - gcImports?: boolean | undefined; -}; -import { E } from '@endo/eventual-send'; -//# sourceMappingURL=captp.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/captp.d.ts.map b/packages/captp/src/captp.d.ts.map deleted file mode 100644 index f23ee16548..0000000000 --- a/packages/captp/src/captp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"captp.d.ts","sourceRoot":"","sources":["captp.js"],"names":[],"mappings":";AAuEO,iCALI,MAAM,iBACA,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,iBAClC,GAAG,SACH,YAAY;;;;;;;;;;;;;;;;;;;;EA+0BtB;mCAl5BmC,OAAO,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC;2CACxC,OAAO,qBAAqB,EAAE,eAAe,CAAC,CAAC,CAAC;qCAChD,OAAO,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;;;;;wBA8C1D,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;wBACtD,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;sBACtD,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;kBAzCE,qBAAqB"} \ No newline at end of file diff --git a/packages/captp/src/finalize.d.ts b/packages/captp/src/finalize.d.ts deleted file mode 100644 index 5a8efbdf5b..0000000000 --- a/packages/captp/src/finalize.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function makeFinalizingMap(finalizer?: ((key: K) => void) | undefined, opts?: { - weakValues?: boolean | undefined; -} | undefined): Pick, "get" | "has" | "delete"> & { - set: (key: K, value: V) => void; - clearWithoutFinalizing: () => void; - getSize: () => number; -} & import("@endo/eventual-send").RemotableBrand<{}, FinalizingMap>; -export type FinalizingMap = Pick, "get" | "has" | "delete"> & { - set: (key: K, value: V) => void; - clearWithoutFinalizing: () => void; - getSize: () => number; -}; -//# sourceMappingURL=finalize.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/finalize.d.ts.map b/packages/captp/src/finalize.d.ts.map deleted file mode 100644 index 0799176a56..0000000000 --- a/packages/captp/src/finalize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"finalize.d.ts","sourceRoot":"","sources":["finalize.js"],"names":[],"mappings":"AAsDO,iFAPgB,IAAI;;;+BApCK,IAAI;kCACD,IAAI;mBACnB,MAAM;0EA+HzB;;eAjIe,CAAC,SAAS,CAAC,KAAK,IAAI;4BACP,MAAM,IAAI;aACzB,MAAM,MAAM"} \ No newline at end of file diff --git a/packages/captp/src/index.d.ts b/packages/captp/src/index.d.ts deleted file mode 100644 index e604385ea2..0000000000 --- a/packages/captp/src/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { Nat } from "@endo/nat"; -export * from "@endo/marshal"; -export * from "./captp.js"; -export * from "./atomics.js"; -export { makeLoopback } from "./loopback.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/index.d.ts.map b/packages/captp/src/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/captp/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/captp/src/loopback.d.ts b/packages/captp/src/loopback.d.ts deleted file mode 100644 index 8710bd64e2..0000000000 --- a/packages/captp/src/loopback.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { E }; -export function makeLoopback(ourId: string, nearOptions?: import("./captp.js").CapTPOptions | undefined, farOptions?: import("./captp.js").CapTPOptions | undefined): { - makeFar(x: T): ERef; - makeNear(x: T_1): ERef; - makeTrapHandler(x: T_2): T_2; - isOnlyNear(x: any): boolean; - isOnlyFar(x: any): boolean; - getNearStats(): any; - getFarStats(): any; - Trap: import("./ts-types.js").Trap | undefined; -}; -export type ERef = import('@endo/eventual-send').ERef; -import { E } from './captp.js'; -//# sourceMappingURL=loopback.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/loopback.d.ts.map b/packages/captp/src/loopback.d.ts.map deleted file mode 100644 index f94a99e3ae..0000000000 --- a/packages/captp/src/loopback.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"loopback.d.ts","sourceRoot":"","sources":["loopback.js"],"names":[],"mappings":";AA6BO,oCAdI,MAAM;;;;kBAOE,GAAG,GAAG,OAAO;iBACd,GAAG,GAAG,OAAO;oBACV,GAAG;mBACJ,GAAG;;EA4FtB;sBA5GY,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC;kBARrB,YAAY"} \ No newline at end of file diff --git a/packages/captp/src/trap.d.ts b/packages/captp/src/trap.d.ts deleted file mode 100644 index bd4d6129b6..0000000000 --- a/packages/captp/src/trap.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * Default implementation of Trap for near objects. - * - * @type {import('./types.js').TrapImpl} - */ -export const nearTrapImpl: import('./types.js').TrapImpl; -export function makeTrap(trapImpl: import('./types.js').TrapImpl): { - (x: any): any; - get: (x: any) => any; -}; -//# sourceMappingURL=trap.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/trap.d.ts.map b/packages/captp/src/trap.d.ts.map deleted file mode 100644 index 67615628ea..0000000000 --- a/packages/captp/src/trap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"trap.d.ts","sourceRoot":"","sources":["trap.js"],"names":[],"mappings":"AAEA;;;;GAIG;AACH,2BAFU,OAAO,YAAY,EAAE,QAAQ,CAYpC;AA6CI,mCAHI,OAAO,YAAY,EAAE,QAAQ;;;EAyBvC"} \ No newline at end of file diff --git a/packages/captp/src/types.d.ts b/packages/captp/src/types.d.ts deleted file mode 100644 index dbc64ade55..0000000000 --- a/packages/captp/src/types.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -export type CapTPSlot = string; -export type TrapImpl = { - /** - * function - * application - */ - applyFunction: (target: any, args: Array) => any; - /** - * method invocation, which is an atomic lookup of method - * and apply - */ - applyMethod: (target: any, method: string | symbol | number, args: Array) => any; - /** - * property - * lookup - */ - get: (target: any, prop: string | symbol | number) => any; -}; -/** - * The head of the pair - * is the `isRejected` value indicating whether the sync call was an exception, - * and tail of the pair is the serialized fulfillment value or rejection reason. - * (The fulfillment value is a non-thenable. The rejection reason is normally - * an error.) - */ -export type TrapCompletion = [boolean, import('@endo/marshal').CapData]; -/** - * the argument to TrapGuest - */ -export type TrapRequest = { - /** - * the TrapImpl method that was called - */ - trapMethod: keyof TrapImpl; - /** - * the target slot - */ - slot: CapTPSlot; - /** - * arguments to the TrapImpl method - */ - trapArgs: Array; - /** - * start the - * trap process on the trapHost, and drive the other side. - */ - startTrap: () => Required>; -}; -/** - * Use out-of-band communications to synchronously return a - * TrapCompletion value indicating the final results of a Trap call. - */ -export type TrapGuest = (req: TrapRequest) => TrapCompletion; -/** - * start the process of transferring the Trap request's - * results - */ -export type TrapHost = (completion: TrapCompletion) => AsyncIterator | undefined; -export type Trap = import('./ts-types.js').Trap; -export type TrapHandler = import('./ts-types').TrapHandler; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/captp/src/types.d.ts.map b/packages/captp/src/types.d.ts.map deleted file mode 100644 index cb96f419df..0000000000 --- a/packages/captp/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"wBAEc,MAAM;;;;;;4BAIG,GAAG,QAAQ,MAAM,GAAG,CAAC,KAAK,GAAG;;;;;0BAGvC,GAAG,UACH,MAAM,GAAG,MAAM,GAAG,MAAM,QAC1B,MAAM,GAAG,CAAC,KACb,GAAG;;;;;kBAEY,GAAG,QAAQ,MAAM,GAAG,MAAM,GAAG,MAAM,KAAK,GAAG;;;;;;;;;6BAKrD,CAAC,OAAO,EAAE,OAAO,eAAe,EAAE,OAAO,CAAC,SAAS,CAAC,CAAC;;;;;;;;gBASpD,MAAM,QAAQ;;;;UACd,SAAS;;;;cACT,MAAM,GAAG,CAAC;;;;;eACV,MAAM,SAAS,SAAS,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;;;;;;8BAO5C,WAAW;;;;;uDAQT,cAAc,IAAI,EAAE,IAAI,EAAE,GAAG,CAAC,GAAG,SAAS;mBAIzC,OAAO,eAAe,EAAE,IAAI;6BAI7B,OAAO,YAAY,EAAE,WAAW,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/check-bundle/index.d.ts b/packages/check-bundle/index.d.ts deleted file mode 100644 index b001f9979a..0000000000 --- a/packages/check-bundle/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function checkBundle(bundle: any, name?: string | undefined): Promise; -export function checkBundleBytes(bytes: Uint8Array, name?: string | undefined): Promise; -export function checkBundleFile(path: string): Promise; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/check-bundle/index.d.ts.map b/packages/check-bundle/index.d.ts.map deleted file mode 100644 index 1088734268..0000000000 --- a/packages/check-bundle/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAmBO,oCAHI,GAAG,SACH,MAAM,6BAIhB;AAMM,wCAHI,UAAU,SACV,MAAM,6BAOhB;AAKM,sCAFI,MAAM,iBAKhB"} \ No newline at end of file diff --git a/packages/check-bundle/lite.d.ts b/packages/check-bundle/lite.d.ts deleted file mode 100644 index 8ed06e2f8c..0000000000 --- a/packages/check-bundle/lite.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function checkBundle(bundle: any, computeSha512: (bytes: Uint8Array) => string, bundleName?: string): Promise; -//# sourceMappingURL=lite.d.ts.map \ No newline at end of file diff --git a/packages/check-bundle/lite.d.ts.map b/packages/check-bundle/lite.d.ts.map deleted file mode 100644 index 5d9ca4b0f6..0000000000 --- a/packages/check-bundle/lite.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"lite.d.ts","sourceRoot":"","sources":["lite.js"],"names":[],"mappings":"AAmBO,oCALI,GAAG,yBACK,UAAU,KAAK,MAAM,eAC7B,MAAM,GACJ,QAAQ,IAAI,CAAC,CA0EzB"} \ No newline at end of file diff --git a/packages/check-bundle/src/json.d.ts b/packages/check-bundle/src/json.d.ts deleted file mode 100644 index cc71f9914d..0000000000 --- a/packages/check-bundle/src/json.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function parseLocatedJson(source: string, location: string): any; -//# sourceMappingURL=json.d.ts.map \ No newline at end of file diff --git a/packages/check-bundle/src/json.d.ts.map b/packages/check-bundle/src/json.d.ts.map deleted file mode 100644 index aab10ace5b..0000000000 --- a/packages/check-bundle/src/json.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["json.js"],"names":[],"mappings":"AAYO,yCAHI,MAAM,YACN,MAAM,OAWhB"} \ No newline at end of file diff --git a/packages/cjs-module-analyzer/index.d.ts b/packages/cjs-module-analyzer/index.d.ts deleted file mode 100644 index f26a8d2f64..0000000000 --- a/packages/cjs-module-analyzer/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @param {string} cjsSource - * @param {string} [name] - */ -export function analyzeCommonJS(cjsSource: string, name?: string | undefined): { - exports: any[]; - reexports: any[]; - requires: any; -}; -export type RequireType = 0 | 1 | 2; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/cjs-module-analyzer/index.d.ts.map b/packages/cjs-module-analyzer/index.d.ts.map deleted file mode 100644 index cfe68a2a4f..0000000000 --- a/packages/cjs-module-analyzer/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAmEA;;;GAGG;AACH,2CAHW,MAAM;;;;EAqBhB;0BAxCa,CAAC,GAAG,CAAC,GAAG,CAAC"} \ No newline at end of file diff --git a/packages/cli/src/client.d.ts b/packages/cli/src/client.d.ts deleted file mode 100644 index f820fa646b..0000000000 --- a/packages/cli/src/client.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function provideEndoClient(name: string, sockPath: string, cancelled: Promise, bootstrap?: TBootstrap | undefined): Promise; -//# sourceMappingURL=client.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/client.d.ts.map b/packages/cli/src/client.d.ts.map deleted file mode 100644 index 1399c6c9e0..0000000000 --- a/packages/cli/src/client.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["client.js"],"names":[],"mappings":"AASO,oDALI,MAAM,YACN,MAAM,aACN,QAAQ,IAAI,CAAC,oDAsBvB"} \ No newline at end of file diff --git a/packages/cli/src/commands/adopt.d.ts b/packages/cli/src/commands/adopt.d.ts deleted file mode 100644 index 6f55e1644b..0000000000 --- a/packages/cli/src/commands/adopt.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function adoptCommand({ messageNumberText, edgeName, name, agentNames, }: { - messageNumberText: any; - edgeName: any; - name: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=adopt.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/adopt.d.ts.map b/packages/cli/src/commands/adopt.d.ts.map deleted file mode 100644 index 84c298fd11..0000000000 --- a/packages/cli/src/commands/adopt.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"adopt.d.ts","sourceRoot":"","sources":["adopt.js"],"names":[],"mappings":"AAKO;;;;;kBAUH"} \ No newline at end of file diff --git a/packages/cli/src/commands/bundle.d.ts b/packages/cli/src/commands/bundle.d.ts deleted file mode 100644 index 8ba634ae10..0000000000 --- a/packages/cli/src/commands/bundle.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function bundleCommand({ applicationPath, bundleName, agentNames, bundleOptions, }: { - applicationPath: any; - bundleName: any; - agentNames: any; - bundleOptions: any; -}): Promise; -//# sourceMappingURL=bundle.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/bundle.d.ts.map b/packages/cli/src/commands/bundle.d.ts.map deleted file mode 100644 index f5de7f6e7c..0000000000 --- a/packages/cli/src/commands/bundle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":"AAUO;;;;;kBAqBN"} \ No newline at end of file diff --git a/packages/cli/src/commands/cancel.d.ts b/packages/cli/src/commands/cancel.d.ts deleted file mode 100644 index 5adbcd3a2c..0000000000 --- a/packages/cli/src/commands/cancel.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function cancelCommand({ name, agentNames, reason }: { - name: any; - agentNames: any; - reason: any; -}): Promise; -//# sourceMappingURL=cancel.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/cancel.d.ts.map b/packages/cli/src/commands/cancel.d.ts.map deleted file mode 100644 index cbc418b2e9..0000000000 --- a/packages/cli/src/commands/cancel.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cancel.d.ts","sourceRoot":"","sources":["cancel.js"],"names":[],"mappings":"AAKO;;;;kBAGH"} \ No newline at end of file diff --git a/packages/cli/src/commands/cat.d.ts b/packages/cli/src/commands/cat.d.ts deleted file mode 100644 index c47e1e0de3..0000000000 --- a/packages/cli/src/commands/cat.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function cat({ name, agentNames }: { - name: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=cat.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/cat.d.ts.map b/packages/cli/src/commands/cat.d.ts.map deleted file mode 100644 index 93d20395c1..0000000000 --- a/packages/cli/src/commands/cat.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cat.d.ts","sourceRoot":"","sources":["cat.js"],"names":[],"mappings":"AAOO;;;kBAQH"} \ No newline at end of file diff --git a/packages/cli/src/commands/dismiss.d.ts b/packages/cli/src/commands/dismiss.d.ts deleted file mode 100644 index 0688ddbc7c..0000000000 --- a/packages/cli/src/commands/dismiss.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function dismissCommand({ messageNumberText, agentNames }: { - messageNumberText: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=dismiss.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/dismiss.d.ts.map b/packages/cli/src/commands/dismiss.d.ts.map deleted file mode 100644 index c3b53a35a0..0000000000 --- a/packages/cli/src/commands/dismiss.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dismiss.d.ts","sourceRoot":"","sources":["dismiss.js"],"names":[],"mappings":"AAKO;;;kBAKH"} \ No newline at end of file diff --git a/packages/cli/src/commands/eval.d.ts b/packages/cli/src/commands/eval.d.ts deleted file mode 100644 index 09907826f6..0000000000 --- a/packages/cli/src/commands/eval.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export function evalCommand({ source, names, resultName, workerName, agentNames, }: { - source: any; - names: any; - resultName: any; - workerName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=eval.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/eval.d.ts.map b/packages/cli/src/commands/eval.d.ts.map deleted file mode 100644 index 7530a91923..0000000000 --- a/packages/cli/src/commands/eval.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eval.d.ts","sourceRoot":"","sources":["eval.js"],"names":[],"mappings":"AAMO;;;;;;kBAkCH"} \ No newline at end of file diff --git a/packages/cli/src/commands/follow.d.ts b/packages/cli/src/commands/follow.d.ts deleted file mode 100644 index 1368b1cc3f..0000000000 --- a/packages/cli/src/commands/follow.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function followCommand({ name, agentNames }: { - name: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=follow.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/follow.d.ts.map b/packages/cli/src/commands/follow.d.ts.map deleted file mode 100644 index 61003ef1f7..0000000000 --- a/packages/cli/src/commands/follow.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"follow.d.ts","sourceRoot":"","sources":["follow.js"],"names":[],"mappings":"AAOO;;;kBAMH"} \ No newline at end of file diff --git a/packages/cli/src/commands/inbox.d.ts b/packages/cli/src/commands/inbox.d.ts deleted file mode 100644 index 6f586d10dd..0000000000 --- a/packages/cli/src/commands/inbox.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function inbox({ follow, agentNames }: { - follow: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=inbox.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/inbox.d.ts.map b/packages/cli/src/commands/inbox.d.ts.map deleted file mode 100644 index 9b4113fa8d..0000000000 --- a/packages/cli/src/commands/inbox.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"inbox.d.ts","sourceRoot":"","sources":["inbox.js"],"names":[],"mappings":"AAQO;;;kBAgCH"} \ No newline at end of file diff --git a/packages/cli/src/commands/install.d.ts b/packages/cli/src/commands/install.d.ts deleted file mode 100644 index da82e57347..0000000000 --- a/packages/cli/src/commands/install.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function install({ bundleName, agentNames, powersName, webletName, requestedPort, programPath, doOpen, }: { - bundleName: any; - agentNames: any; - powersName: any; - webletName: any; - requestedPort: any; - programPath: any; - doOpen: any; -}): Promise; -//# sourceMappingURL=install.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/install.d.ts.map b/packages/cli/src/commands/install.d.ts.map deleted file mode 100644 index 60f7a30a56..0000000000 --- a/packages/cli/src/commands/install.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"install.d.ts","sourceRoot":"","sources":["install.js"],"names":[],"mappings":"AAcO;;;;;;;;kBAsDN"} \ No newline at end of file diff --git a/packages/cli/src/commands/list.d.ts b/packages/cli/src/commands/list.d.ts deleted file mode 100644 index 65eda53af4..0000000000 --- a/packages/cli/src/commands/list.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function list({ directoryPath, follow, json }: { - directoryPath: any; - follow: any; - json: any; -}): Promise; -//# sourceMappingURL=list.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/list.d.ts.map b/packages/cli/src/commands/list.d.ts.map deleted file mode 100644 index a5d2ca9f42..0000000000 --- a/packages/cli/src/commands/list.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"list.d.ts","sourceRoot":"","sources":["list.js"],"names":[],"mappings":"AAMO;;;;kBA2BH"} \ No newline at end of file diff --git a/packages/cli/src/commands/log.d.ts b/packages/cli/src/commands/log.d.ts deleted file mode 100644 index 2afb3e0ec5..0000000000 --- a/packages/cli/src/commands/log.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function log({ follow, ping }: { - follow: any; - ping: any; -}): Promise; -//# sourceMappingURL=log.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/log.d.ts.map b/packages/cli/src/commands/log.d.ts.map deleted file mode 100644 index 83372d7733..0000000000 --- a/packages/cli/src/commands/log.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"log.d.ts","sourceRoot":"","sources":["log.js"],"names":[],"mappings":"AAwBO;;;kBA+DH"} \ No newline at end of file diff --git a/packages/cli/src/commands/make.d.ts b/packages/cli/src/commands/make.d.ts deleted file mode 100644 index ddd0fcad81..0000000000 --- a/packages/cli/src/commands/make.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function makeCommand({ filePath, importPath, resultName, bundleName, workerName, agentNames, powersName, }: { - filePath: any; - importPath: any; - resultName: any; - bundleName: any; - workerName: any; - agentNames: any; - powersName: any; -}): Promise; -//# sourceMappingURL=make.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/make.d.ts.map b/packages/cli/src/commands/make.d.ts.map deleted file mode 100644 index 15e032f4dd..0000000000 --- a/packages/cli/src/commands/make.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"make.d.ts","sourceRoot":"","sources":["make.js"],"names":[],"mappings":"AAcO;;;;;;;;kBAkEN"} \ No newline at end of file diff --git a/packages/cli/src/commands/mkguest.d.ts b/packages/cli/src/commands/mkguest.d.ts deleted file mode 100644 index bbf1c3fab9..0000000000 --- a/packages/cli/src/commands/mkguest.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function mkguest({ name, agentNames, introducedNames }: { - name: any; - agentNames: any; - introducedNames: any; -}): Promise; -//# sourceMappingURL=mkguest.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/mkguest.d.ts.map b/packages/cli/src/commands/mkguest.d.ts.map deleted file mode 100644 index bd2032b75b..0000000000 --- a/packages/cli/src/commands/mkguest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mkguest.d.ts","sourceRoot":"","sources":["mkguest.js"],"names":[],"mappings":"AAKO;;;;kBAIH"} \ No newline at end of file diff --git a/packages/cli/src/commands/mkhost.d.ts b/packages/cli/src/commands/mkhost.d.ts deleted file mode 100644 index 8e75a16d6c..0000000000 --- a/packages/cli/src/commands/mkhost.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function mkhost({ name, agentNames, introducedNames }: { - name: any; - agentNames: any; - introducedNames: any; -}): Promise; -//# sourceMappingURL=mkhost.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/mkhost.d.ts.map b/packages/cli/src/commands/mkhost.d.ts.map deleted file mode 100644 index db19773a02..0000000000 --- a/packages/cli/src/commands/mkhost.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mkhost.d.ts","sourceRoot":"","sources":["mkhost.js"],"names":[],"mappings":"AAKO;;;;kBAIH"} \ No newline at end of file diff --git a/packages/cli/src/commands/open.d.ts b/packages/cli/src/commands/open.d.ts deleted file mode 100644 index f901aa1423..0000000000 --- a/packages/cli/src/commands/open.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function open({ webletName, agentNames }: { - webletName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=open.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/open.d.ts.map b/packages/cli/src/commands/open.d.ts.map deleted file mode 100644 index 7f6015438f..0000000000 --- a/packages/cli/src/commands/open.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"open.d.ts","sourceRoot":"","sources":["open.js"],"names":[],"mappings":"AASO;;;kBAON"} \ No newline at end of file diff --git a/packages/cli/src/commands/ping.d.ts b/packages/cli/src/commands/ping.d.ts deleted file mode 100644 index 4c06525505..0000000000 --- a/packages/cli/src/commands/ping.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function ping(): Promise; -//# sourceMappingURL=ping.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/ping.d.ts.map b/packages/cli/src/commands/ping.d.ts.map deleted file mode 100644 index 3a28b50748..0000000000 --- a/packages/cli/src/commands/ping.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ping.d.ts","sourceRoot":"","sources":["ping.js"],"names":[],"mappings":"AAOO,sCAoBH"} \ No newline at end of file diff --git a/packages/cli/src/commands/reject.d.ts b/packages/cli/src/commands/reject.d.ts deleted file mode 100644 index e295d1209e..0000000000 --- a/packages/cli/src/commands/reject.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function rejectCommand({ requestNumberText, message, agentNames, }: { - requestNumberText: any; - message: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=reject.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/reject.d.ts.map b/packages/cli/src/commands/reject.d.ts.map deleted file mode 100644 index da815ee7a3..0000000000 --- a/packages/cli/src/commands/reject.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reject.d.ts","sourceRoot":"","sources":["reject.js"],"names":[],"mappings":"AAKO;;;;kBASH"} \ No newline at end of file diff --git a/packages/cli/src/commands/remove.d.ts b/packages/cli/src/commands/remove.d.ts deleted file mode 100644 index 313681f6b2..0000000000 --- a/packages/cli/src/commands/remove.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function remove({ petNames, agentNames }: { - petNames: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=remove.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/remove.d.ts.map b/packages/cli/src/commands/remove.d.ts.map deleted file mode 100644 index 10cdbff0c6..0000000000 --- a/packages/cli/src/commands/remove.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"remove.d.ts","sourceRoot":"","sources":["remove.js"],"names":[],"mappings":"AAKO;;;kBAGJ"} \ No newline at end of file diff --git a/packages/cli/src/commands/rename.d.ts b/packages/cli/src/commands/rename.d.ts deleted file mode 100644 index d266d29b50..0000000000 --- a/packages/cli/src/commands/rename.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function rename({ fromName, toName, agentNames }: { - fromName: any; - toName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=rename.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/rename.d.ts.map b/packages/cli/src/commands/rename.d.ts.map deleted file mode 100644 index 4883d7cace..0000000000 --- a/packages/cli/src/commands/rename.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rename.d.ts","sourceRoot":"","sources":["rename.js"],"names":[],"mappings":"AAKO;;;;kBAGH"} \ No newline at end of file diff --git a/packages/cli/src/commands/request.d.ts b/packages/cli/src/commands/request.d.ts deleted file mode 100644 index bb6550a89a..0000000000 --- a/packages/cli/src/commands/request.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function request({ description, toName, resultName, agentNames, }: { - description: any; - toName: any; - resultName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=request.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/request.d.ts.map b/packages/cli/src/commands/request.d.ts.map deleted file mode 100644 index 4fad65d18b..0000000000 --- a/packages/cli/src/commands/request.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"request.d.ts","sourceRoot":"","sources":["request.js"],"names":[],"mappings":"AAKO;;;;;kBAUN"} \ No newline at end of file diff --git a/packages/cli/src/commands/resolve.d.ts b/packages/cli/src/commands/resolve.d.ts deleted file mode 100644 index bd74afbf8d..0000000000 --- a/packages/cli/src/commands/resolve.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function resolveCommand({ requestNumberText, resolutionName, agentNames, }: { - requestNumberText: any; - resolutionName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=resolve.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/resolve.d.ts.map b/packages/cli/src/commands/resolve.d.ts.map deleted file mode 100644 index eb979772ac..0000000000 --- a/packages/cli/src/commands/resolve.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"resolve.d.ts","sourceRoot":"","sources":["resolve.js"],"names":[],"mappings":"AAKO;;;;kBASH"} \ No newline at end of file diff --git a/packages/cli/src/commands/run.d.ts b/packages/cli/src/commands/run.d.ts deleted file mode 100644 index f8ec31cbd2..0000000000 --- a/packages/cli/src/commands/run.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export function run({ filePath, args, bundleName, importPath, powersName, agentNames, }: { - filePath: any; - args: any; - bundleName: any; - importPath: any; - powersName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=run.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/run.d.ts.map b/packages/cli/src/commands/run.d.ts.map deleted file mode 100644 index d6510c8f46..0000000000 --- a/packages/cli/src/commands/run.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"run.d.ts","sourceRoot":"","sources":["run.js"],"names":[],"mappings":"AAkBO;;;;;;;kBAsFN"} \ No newline at end of file diff --git a/packages/cli/src/commands/send.d.ts b/packages/cli/src/commands/send.d.ts deleted file mode 100644 index 0aad8ad916..0000000000 --- a/packages/cli/src/commands/send.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function send({ message, agentName, agentNames }: { - message: any; - agentName: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=send.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/send.d.ts.map b/packages/cli/src/commands/send.d.ts.map deleted file mode 100644 index 385f08df63..0000000000 --- a/packages/cli/src/commands/send.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"send.d.ts","sourceRoot":"","sources":["send.js"],"names":[],"mappings":"AAMO;;;;kBAKN"} \ No newline at end of file diff --git a/packages/cli/src/commands/show.d.ts b/packages/cli/src/commands/show.d.ts deleted file mode 100644 index cc03419d39..0000000000 --- a/packages/cli/src/commands/show.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function show({ name, agentNames }: { - name: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=show.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/show.d.ts.map b/packages/cli/src/commands/show.d.ts.map deleted file mode 100644 index 128a2e3b1e..0000000000 --- a/packages/cli/src/commands/show.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"show.d.ts","sourceRoot":"","sources":["show.js"],"names":[],"mappings":"AAKO;;;kBAIH"} \ No newline at end of file diff --git a/packages/cli/src/commands/spawn.d.ts b/packages/cli/src/commands/spawn.d.ts deleted file mode 100644 index 4055295074..0000000000 --- a/packages/cli/src/commands/spawn.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function spawn({ petNames, agentNames }: { - petNames: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=spawn.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/spawn.d.ts.map b/packages/cli/src/commands/spawn.d.ts.map deleted file mode 100644 index f99b760864..0000000000 --- a/packages/cli/src/commands/spawn.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spawn.d.ts","sourceRoot":"","sources":["spawn.js"],"names":[],"mappings":"AAMO;;;kBAGJ"} \ No newline at end of file diff --git a/packages/cli/src/commands/store.d.ts b/packages/cli/src/commands/store.d.ts deleted file mode 100644 index ac2b14df03..0000000000 --- a/packages/cli/src/commands/store.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function store({ storablePath, name, agentNames }: { - storablePath: any; - name: any; - agentNames: any; -}): Promise; -//# sourceMappingURL=store.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/commands/store.d.ts.map b/packages/cli/src/commands/store.d.ts.map deleted file mode 100644 index a3d4dbc87f..0000000000 --- a/packages/cli/src/commands/store.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"store.d.ts","sourceRoot":"","sources":["store.js"],"names":[],"mappings":"AAUO;;;;kBAON"} \ No newline at end of file diff --git a/packages/cli/src/context.d.ts b/packages/cli/src/context.d.ts deleted file mode 100644 index 6c4d4492e2..0000000000 --- a/packages/cli/src/context.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export function withInterrupt(callback: any): Promise; -export function withEndoBootstrap({ os, process, clientName }: { - os: any; - process: any; - clientName?: string | undefined; -}, callback: any): Promise; -export function withEndoHost({ os, process }: { - os: any; - process: any; -}, callback: any): Promise; -export function withEndoAgent(agentNamePath: any, { os, process }: { - os: any; - process: any; -}, callback: any): Promise; -//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/context.d.ts.map b/packages/cli/src/context.d.ts.map deleted file mode 100644 index c4fc4da567..0000000000 --- a/packages/cli/src/context.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["context.js"],"names":[],"mappings":"AAQO,4DAYN;AAEM;;;;iCA0BH;AAEG;;;iCAYJ;AAEI;;;iCAgBJ"} \ No newline at end of file diff --git a/packages/cli/src/endo.d.ts b/packages/cli/src/endo.d.ts deleted file mode 100644 index 587ce5db99..0000000000 --- a/packages/cli/src/endo.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function main(rawArgs: any): Promise; -//# sourceMappingURL=endo.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/endo.d.ts.map b/packages/cli/src/endo.d.ts.map deleted file mode 100644 index 4ec9734597..0000000000 --- a/packages/cli/src/endo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"endo.d.ts","sourceRoot":"","sources":["endo.js"],"names":[],"mappings":"AA0CO,iDAiiBN"} \ No newline at end of file diff --git a/packages/cli/src/locator.d.ts b/packages/cli/src/locator.d.ts deleted file mode 100644 index cb1647897a..0000000000 --- a/packages/cli/src/locator.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export const statePath: string; -export const logPath: any; -export const ephemeralStatePath: string; -export const cachePath: string; -export const sockPath: string; -//# sourceMappingURL=locator.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/locator.d.ts.map b/packages/cli/src/locator.d.ts.map deleted file mode 100644 index 276138a4a5..0000000000 --- a/packages/cli/src/locator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"locator.d.ts","sourceRoot":"","sources":["locator.js"],"names":[],"mappings":"AAmBA,+BAA6E;AAE7E,0BAAwD;AAExD,wCAIE;AAEF,+BAA6E;AAE7E,8BAA2E"} \ No newline at end of file diff --git a/packages/cli/src/message-format.d.ts b/packages/cli/src/message-format.d.ts deleted file mode 100644 index ed19aa93d3..0000000000 --- a/packages/cli/src/message-format.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function formatMessage(strings: Array, edgeNames: Array): string; -//# sourceMappingURL=message-format.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/message-format.d.ts.map b/packages/cli/src/message-format.d.ts.map deleted file mode 100644 index 9b35c8218f..0000000000 --- a/packages/cli/src/message-format.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"message-format.d.ts","sourceRoot":"","sources":["message-format.js"],"names":[],"mappings":"AAIO,uCAHI,MAAM,MAAM,CAAC,aACb,MAAM,MAAM,CAAC,UAiBvB"} \ No newline at end of file diff --git a/packages/cli/src/message-parse.d.ts b/packages/cli/src/message-parse.d.ts deleted file mode 100644 index 58f9ceed2f..0000000000 --- a/packages/cli/src/message-parse.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function parseMessage(message: any): { - strings: any[]; - petNames: any[]; - edgeNames: any[]; -}; -//# sourceMappingURL=message-parse.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/message-parse.d.ts.map b/packages/cli/src/message-parse.d.ts.map deleted file mode 100644 index 8b66099ad6..0000000000 --- a/packages/cli/src/message-parse.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"message-parse.d.ts","sourceRoot":"","sources":["message-parse.js"],"names":[],"mappings":"AAEO;;;;EAmBN"} \ No newline at end of file diff --git a/packages/cli/src/pet-name.d.ts b/packages/cli/src/pet-name.d.ts deleted file mode 100644 index c01e8ec837..0000000000 --- a/packages/cli/src/pet-name.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function parsePetNamePath(petNamePath: string): string[]; -//# sourceMappingURL=pet-name.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/pet-name.d.ts.map b/packages/cli/src/pet-name.d.ts.map deleted file mode 100644 index dab0256a09..0000000000 --- a/packages/cli/src/pet-name.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pet-name.d.ts","sourceRoot":"","sources":["pet-name.js"],"names":[],"mappings":"AASO,8CAHI,MAAM,GACJ,MAAM,EAAE,CAYpB"} \ No newline at end of file diff --git a/packages/cli/src/prompt.d.ts b/packages/cli/src/prompt.d.ts deleted file mode 100644 index f74dca692b..0000000000 --- a/packages/cli/src/prompt.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * Prompts the user for input. The answer is trimmed and converted to - * lowercase. - * - * @param {string} question - The question to ask the user. - * @returns {Promise} The user's answer. - */ -export function prompt(question: string): Promise; -//# sourceMappingURL=prompt.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/prompt.d.ts.map b/packages/cli/src/prompt.d.ts.map deleted file mode 100644 index af90f782fe..0000000000 --- a/packages/cli/src/prompt.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["prompt.js"],"names":[],"mappings":"AAGA;;;;;;GAMG;AACH,iCAHW,MAAM,GACJ,QAAQ,MAAM,CAAC,CAc3B"} \ No newline at end of file diff --git a/packages/cli/src/random.d.ts b/packages/cli/src/random.d.ts deleted file mode 100644 index 8f275be42b..0000000000 --- a/packages/cli/src/random.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function randomHex16(): Promise; -//# sourceMappingURL=random.d.ts.map \ No newline at end of file diff --git a/packages/cli/src/random.d.ts.map b/packages/cli/src/random.d.ts.map deleted file mode 100644 index 8ee3ce0ac1..0000000000 --- a/packages/cli/src/random.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"random.d.ts","sourceRoot":"","sources":["random.js"],"names":[],"mappings":"AAEO,4CASJ"} \ No newline at end of file diff --git a/packages/common/apply-labeling-error.d.ts b/packages/common/apply-labeling-error.d.ts deleted file mode 100644 index 6a06cac9a0..0000000000 --- a/packages/common/apply-labeling-error.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function applyLabelingError(func: (...args: A[]) => R, args: A[], label?: string | number | undefined): R; -//# sourceMappingURL=apply-labeling-error.d.ts.map \ No newline at end of file diff --git a/packages/common/apply-labeling-error.d.ts.map b/packages/common/apply-labeling-error.d.ts.map deleted file mode 100644 index 86f420f3d2..0000000000 --- a/packages/common/apply-labeling-error.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"apply-labeling-error.d.ts","sourceRoot":"","sources":["apply-labeling-error.js"],"names":[],"mappings":"AAkCO,uHAwBN"} \ No newline at end of file diff --git a/packages/common/from-unique-entries.d.ts b/packages/common/from-unique-entries.d.ts deleted file mode 100644 index 1cb83ca3ea..0000000000 --- a/packages/common/from-unique-entries.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function fromUniqueEntries(allEntries: Iterable<[K, V]>): {}; -//# sourceMappingURL=from-unique-entries.d.ts.map \ No newline at end of file diff --git a/packages/common/from-unique-entries.d.ts.map b/packages/common/from-unique-entries.d.ts.map deleted file mode 100644 index 547511628d..0000000000 --- a/packages/common/from-unique-entries.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"from-unique-entries.d.ts","sourceRoot":"","sources":["from-unique-entries.js"],"names":[],"mappings":"AAcO,0EAcN"} \ No newline at end of file diff --git a/packages/common/ident-checker.d.ts b/packages/common/ident-checker.d.ts deleted file mode 100644 index ee9dae79af..0000000000 --- a/packages/common/ident-checker.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @callback Checker - * Internal to a useful pattern for writing checking logic - * (a "checkFoo" function) that can be used to implement a predicate - * (an "isFoo" function) or a validator (an "assertFoo" function). - * - * * A predicate ideally only returns `true` or `false` and rarely throws. - * * A validator throws an informative diagnostic when the predicate - * would have returned `false`, and simply returns `undefined` normally - * when the predicate would have returned `true`. - * * The internal checking function that they share is parameterized by a - * `Checker` that determines how to proceed with a failure condition. - * Predicates pass in an identity function as checker. Validators - * pass in `assertChecker` which is a trivial wrapper around `assert`. - * - * See the various uses for good examples. - * @param {boolean} cond - * @param {import('ses').Details} [details] - * @returns {boolean} - */ -/** - * In the `assertFoo`/`isFoo`/`checkFoo` pattern, `checkFoo` has a `check` - * parameter of type `Checker`. `assertFoo` calls `checkFoo` passes - * `assertChecker` as the `check` argument. `isFoo` passes `identChecker` - * as the `check` argument. `identChecker` acts precisely like an - * identity function, but is typed as a `Checker` to indicate its - * intended use. - * - * @type {Checker} - */ -export const identChecker: Checker; -/** - * Internal to a useful pattern for writing checking logic - * (a "checkFoo" function) that can be used to implement a predicate - * (an "isFoo" function) or a validator (an "assertFoo" function). - * - * * A predicate ideally only returns `true` or `false` and rarely throws. - * * A validator throws an informative diagnostic when the predicate - * would have returned `false`, and simply returns `undefined` normally - * when the predicate would have returned `true`. - * * The internal checking function that they share is parameterized by a - * `Checker` that determines how to proceed with a failure condition. - * Predicates pass in an identity function as checker. Validators - * pass in `assertChecker` which is a trivial wrapper around `assert`. - * - * See the various uses for good examples. - */ -export type Checker = (cond: boolean, details?: import("ses").Details | undefined) => boolean; -//# sourceMappingURL=ident-checker.d.ts.map \ No newline at end of file diff --git a/packages/common/ident-checker.d.ts.map b/packages/common/ident-checker.d.ts.map deleted file mode 100644 index 00b88d9193..0000000000 --- a/packages/common/ident-checker.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ident-checker.d.ts","sourceRoot":"","sources":["ident-checker.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;;;;;;GAmBG;AAEH;;;;;;;;;GASG;AACH,2BAFU,OAAO,CAEoC;;;;;;;;;;;;;;;;;6BAf1C,OAAO,kDAEL,OAAO"} \ No newline at end of file diff --git a/packages/common/list-difference.d.ts b/packages/common/list-difference.d.ts deleted file mode 100644 index 0655b042f5..0000000000 --- a/packages/common/list-difference.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function listDifference(leftList: V[], rightList: V[]): V[]; -//# sourceMappingURL=list-difference.d.ts.map \ No newline at end of file diff --git a/packages/common/list-difference.d.ts.map b/packages/common/list-difference.d.ts.map deleted file mode 100644 index 2c594c0fee..0000000000 --- a/packages/common/list-difference.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"list-difference.d.ts","sourceRoot":"","sources":["list-difference.js"],"names":[],"mappings":"AAcO,sFAGN"} \ No newline at end of file diff --git a/packages/common/make-array-iterator.d.ts b/packages/common/make-array-iterator.d.ts deleted file mode 100644 index e78720f768..0000000000 --- a/packages/common/make-array-iterator.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeArrayIterator(arr: T[]): IterableIterator; -//# sourceMappingURL=make-array-iterator.d.ts.map \ No newline at end of file diff --git a/packages/common/make-array-iterator.d.ts.map b/packages/common/make-array-iterator.d.ts.map deleted file mode 100644 index 8105a16040..0000000000 --- a/packages/common/make-array-iterator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"make-array-iterator.d.ts","sourceRoot":"","sources":["make-array-iterator.js"],"names":[],"mappings":"AASO,8EAcN"} \ No newline at end of file diff --git a/packages/common/make-iterator.d.ts b/packages/common/make-iterator.d.ts deleted file mode 100644 index 63042f8f11..0000000000 --- a/packages/common/make-iterator.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeIterator(next: () => IteratorResult): IterableIterator; -//# sourceMappingURL=make-iterator.d.ts.map \ No newline at end of file diff --git a/packages/common/make-iterator.d.ts.map b/packages/common/make-iterator.d.ts.map deleted file mode 100644 index 37fd37f0fd..0000000000 --- a/packages/common/make-iterator.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"make-iterator.d.ts","sourceRoot":"","sources":["make-iterator.js"],"names":[],"mappings":"AAOO,mGAMN"} \ No newline at end of file diff --git a/packages/common/object-map.d.ts b/packages/common/object-map.d.ts deleted file mode 100644 index 417bbadd27..0000000000 --- a/packages/common/object-map.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function objectMap, R>(original: O, mapFn: (value: O[keyof O], key: keyof O) => R): Record; -//# sourceMappingURL=object-map.d.ts.map \ No newline at end of file diff --git a/packages/common/object-map.d.ts.map b/packages/common/object-map.d.ts.map deleted file mode 100644 index 66d462aa51..0000000000 --- a/packages/common/object-map.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-map.d.ts","sourceRoot":"","sources":["object-map.js"],"names":[],"mappings":"AAyCO,4IAMN"} \ No newline at end of file diff --git a/packages/common/object-meta-assign.d.ts b/packages/common/object-meta-assign.d.ts deleted file mode 100644 index 1cfdef6244..0000000000 --- a/packages/common/object-meta-assign.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function objectMetaAssign(target: any, ...originals: any[]): any; -//# sourceMappingURL=object-meta-assign.d.ts.map \ No newline at end of file diff --git a/packages/common/object-meta-assign.d.ts.map b/packages/common/object-meta-assign.d.ts.map deleted file mode 100644 index 9d59453466..0000000000 --- a/packages/common/object-meta-assign.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-meta-assign.d.ts","sourceRoot":"","sources":["object-meta-assign.js"],"names":[],"mappings":"AAmBO,yCAJI,GAAG,gBACH,GAAG,EAAE,GACH,GAAG,CAOf"} \ No newline at end of file diff --git a/packages/common/object-meta-map.d.ts b/packages/common/object-meta-map.d.ts deleted file mode 100644 index 25cfadcd60..0000000000 --- a/packages/common/object-meta-map.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function objectMetaMap>(original: O, metaMapFn: (desc: TypedPropertyDescriptor, key: keyof O) => (PropertyDescriptor | undefined), proto?: any): any; -//# sourceMappingURL=object-meta-map.d.ts.map \ No newline at end of file diff --git a/packages/common/object-meta-map.d.ts.map b/packages/common/object-meta-map.d.ts.map deleted file mode 100644 index 39fc38b5de..0000000000 --- a/packages/common/object-meta-map.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"object-meta-map.d.ts","sourceRoot":"","sources":["object-meta-map.js"],"names":[],"mappings":"AAkCO,uJAJC,CAAC,kBAAkB,GAAG,SAAS,CAAC,UAC7B,GAAG,GACD,GAAG,CAgBf"} \ No newline at end of file diff --git a/packages/common/throw-labeled.d.ts b/packages/common/throw-labeled.d.ts deleted file mode 100644 index c16786cbd7..0000000000 --- a/packages/common/throw-labeled.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function throwLabeled(innerErr: Error, label: string | number, errConstructor?: import("ses").GenericErrorConstructor | undefined, options?: import("ses").AssertMakeErrorOptions | undefined): never; -//# sourceMappingURL=throw-labeled.d.ts.map \ No newline at end of file diff --git a/packages/common/throw-labeled.d.ts.map b/packages/common/throw-labeled.d.ts.map deleted file mode 100644 index 83ec63ea8d..0000000000 --- a/packages/common/throw-labeled.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"throw-labeled.d.ts","sourceRoot":"","sources":["throw-labeled.js"],"names":[],"mappings":"AAaO,uCANI,KAAK,SACL,MAAM,GAAC,MAAM,mIAGX,KAAK,CAkBjB"} \ No newline at end of file diff --git a/packages/compartment-mapper/archive.d.ts b/packages/compartment-mapper/archive.d.ts deleted file mode 100644 index 9c11c57d4c..0000000000 --- a/packages/compartment-mapper/archive.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { makeArchive, makeAndHashArchive, writeArchive, mapLocation, hashLocation } from "./src/archive.js"; -//# sourceMappingURL=archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/archive.d.ts.map b/packages/compartment-mapper/archive.d.ts.map deleted file mode 100644 index e96aadc011..0000000000 --- a/packages/compartment-mapper/archive.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["archive.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/bundle.d.ts b/packages/compartment-mapper/bundle.d.ts deleted file mode 100644 index 1ecb3f3e39..0000000000 --- a/packages/compartment-mapper/bundle.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { makeBundle, writeBundle } from "./src/bundle.js"; -//# sourceMappingURL=bundle.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/bundle.d.ts.map b/packages/compartment-mapper/bundle.d.ts.map deleted file mode 100644 index 16d2acd499..0000000000 --- a/packages/compartment-mapper/bundle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/import-archive.d.ts b/packages/compartment-mapper/import-archive.d.ts deleted file mode 100644 index c48a17cc67..0000000000 --- a/packages/compartment-mapper/import-archive.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { parseArchive, loadArchive, importArchive } from "./src/import-archive.js"; -//# sourceMappingURL=import-archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/import-archive.d.ts.map b/packages/compartment-mapper/import-archive.d.ts.map deleted file mode 100644 index bef9600442..0000000000 --- a/packages/compartment-mapper/import-archive.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"import-archive.d.ts","sourceRoot":"","sources":["import-archive.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/import.d.ts b/packages/compartment-mapper/import.d.ts deleted file mode 100644 index c348aa9a0a..0000000000 --- a/packages/compartment-mapper/import.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { loadLocation, importLocation } from "./src/import.js"; -//# sourceMappingURL=import.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/import.d.ts.map b/packages/compartment-mapper/import.d.ts.map deleted file mode 100644 index 704ad5e085..0000000000 --- a/packages/compartment-mapper/import.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["import.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/index.d.ts b/packages/compartment-mapper/index.d.ts deleted file mode 100644 index 113cdfbf3c..0000000000 --- a/packages/compartment-mapper/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { search } from "./src/search.js"; -export { compartmentMapForNodeModules } from "./src/node-modules.js"; -export { loadLocation, importLocation } from "./src/import.js"; -export { makeArchive, makeAndHashArchive, writeArchive, mapLocation, hashLocation } from "./src/archive.js"; -export { parseArchive, loadArchive, importArchive } from "./src/import-archive.js"; -export { makeBundle, writeBundle } from "./src/bundle.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/index.d.ts.map b/packages/compartment-mapper/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/compartment-mapper/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/node-powers.d.ts b/packages/compartment-mapper/node-powers.d.ts deleted file mode 100644 index 439e8a12b6..0000000000 --- a/packages/compartment-mapper/node-powers.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { makeReadPowers, makeWritePowers, makeNodeReadPowers, makeNodeWritePowers } from "./src/node-powers.js"; -//# sourceMappingURL=node-powers.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/node-powers.d.ts.map b/packages/compartment-mapper/node-powers.d.ts.map deleted file mode 100644 index af8d64816f..0000000000 --- a/packages/compartment-mapper/node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-powers.d.ts","sourceRoot":"","sources":["node-powers.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/compartment-mapper/src/archive.d.ts b/packages/compartment-mapper/src/archive.d.ts deleted file mode 100644 index f5623fb039..0000000000 --- a/packages/compartment-mapper/src/archive.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -export function makeArchiveCompartmentMap(compartmentMap: CompartmentMapDescriptor, sources: Sources): { - archiveCompartmentMap: CompartmentMapDescriptor; - archiveSources: Sources; -}; -export function makeAndHashArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise<{ - bytes: Uint8Array; - sha512?: string | undefined; -}>; -export function makeArchive(powers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; -export function mapLocation(powers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; -export function hashLocation(powers: HashPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; -export function writeArchive(write: WriteFn, readPowers: ReadFn | ReadPowers, archiveLocation: string, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; -export type ArchiveOptions = import('./types.js').ArchiveOptions; -export type ArchiveWriter = import('./types.js').ArchiveWriter; -export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; -export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor; -export type ModuleDescriptor = import('./types.js').ModuleDescriptor; -export type ParserImplementation = import('./types.js').ParserImplementation; -export type ReadFn = import('./types.js').ReadFn; -export type CaptureSourceLocationHook = import('./types.js').CaptureSourceLocationHook; -export type ReadPowers = import('./types.js').ReadPowers; -export type HashPowers = import('./types.js').HashPowers; -export type Sources = import('./types.js').Sources; -export type WriteFn = import('./types.js').WriteFn; -//# sourceMappingURL=archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/archive.d.ts.map b/packages/compartment-mapper/src/archive.d.ts.map deleted file mode 100644 index 0bdbde9961..0000000000 --- a/packages/compartment-mapper/src/archive.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"archive.d.ts","sourceRoot":"","sources":["archive.js"],"names":[],"mappings":"AA8PO,0DAJI,wBAAwB,WACxB,OAAO;2BACmB,wBAAwB;oBAAkB,OAAO;EAiCrF;AA4HM,2CALI,MAAM,GAAG,UAAU,kBACnB,MAAM;WAEY,UAAU;;GAetC;AAQM,oCALI,MAAM,GAAG,UAAU,kBACnB,MAAM,8DAEJ,QAAQ,UAAU,CAAC,CAK/B;AAQM,oCALI,MAAM,GAAG,UAAU,kBACnB,MAAM,8DAEJ,QAAQ,UAAU,CAAC,CAS/B;AAQM,qCALI,UAAU,kBACV,MAAM,8DAEJ,QAAQ,MAAM,CAAC,CAU3B;AASM,oCANI,OAAO,cACP,MAAM,GAAG,UAAU,mBACnB,MAAM,kBACN,MAAM,4EAYhB;6BA/da,OAAO,YAAY,EAAE,cAAc;4BACnC,OAAO,YAAY,EAAE,aAAa;oCAClC,OAAO,YAAY,EAAE,qBAAqB;uCAC1C,OAAO,YAAY,EAAE,wBAAwB;+BAC7C,OAAO,YAAY,EAAE,gBAAgB;mCACrC,OAAO,YAAY,EAAE,oBAAoB;qBACzC,OAAO,YAAY,EAAE,MAAM;wCAC3B,OAAO,YAAY,EAAE,yBAAyB;yBAC9C,OAAO,YAAY,EAAE,UAAU;yBAC/B,OAAO,YAAY,EAAE,UAAU;sBAC/B,OAAO,YAAY,EAAE,OAAO;sBAC5B,OAAO,YAAY,EAAE,OAAO"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-cjs.d.ts b/packages/compartment-mapper/src/bundle-cjs.d.ts deleted file mode 100644 index e9179f6e45..0000000000 --- a/packages/compartment-mapper/src/bundle-cjs.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -declare namespace _default { - export { runtime }; - export function getBundlerKit({ index, indexedImports, record: { cjsFunctor, exports: exportsList }, }: { - index: any; - indexedImports: any; - record: { - cjsFunctor: any; - exports?: {} | undefined; - }; - }): { - getFunctor: () => string; - getCells: () => string; - getReexportsWiring: () => string; - getFunctorCall: () => string; - }; -} -export default _default; -declare const runtime: string; -//# sourceMappingURL=bundle-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-cjs.d.ts.map b/packages/compartment-mapper/src/bundle-cjs.d.ts.map deleted file mode 100644 index 5aeea508fe..0000000000 --- a/packages/compartment-mapper/src/bundle-cjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-cjs.d.ts","sourceRoot":"","sources":["bundle-cjs.js"],"names":[],"mappings":";;IAuDE;;;;;;;;;;;;MAsBC;;;AA7DH,8BAmCa"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-mjs.d.ts b/packages/compartment-mapper/src/bundle-mjs.d.ts deleted file mode 100644 index b287df3414..0000000000 --- a/packages/compartment-mapper/src/bundle-mjs.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export const runtime: "function observeImports(map, importName, importIndex) {\n for (const [name, observers] of map.get(importName)) {\n const cell = cells[importIndex][name];\n if (cell === undefined) {\n throw new ReferenceError(`Cannot import name ${name}`);\n }\n for (const observer of observers) {\n cell.observe(observer);\n }\n }\n}\n"; -declare namespace _default { - export { runtime }; - export function getBundlerKit({ index, indexedImports, record: { __syncModuleProgram__, __fixedExportMap__, __liveExportMap__, __reexportMap__, reexports, }, }: { - index: any; - indexedImports: any; - record: { - __syncModuleProgram__: any; - __fixedExportMap__?: {} | undefined; - __liveExportMap__?: {} | undefined; - __reexportMap__?: {} | undefined; - reexports: any; - }; - }): { - getFunctor: () => string; - getCells: () => string; - getReexportsWiring: () => any; - getFunctorCall: () => string; - }; -} -export default _default; -//# sourceMappingURL=bundle-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle-mjs.d.ts.map b/packages/compartment-mapper/src/bundle-mjs.d.ts.map deleted file mode 100644 index b3a77eaff6..0000000000 --- a/packages/compartment-mapper/src/bundle-mjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle-mjs.d.ts","sourceRoot":"","sources":["bundle-mjs.js"],"names":[],"mappings":"AAiCA,oXAYE;;;IAIA;;;;;;;;;;;;;;;MAqEC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle.d.ts b/packages/compartment-mapper/src/bundle.d.ts deleted file mode 100644 index 5b737f8ea6..0000000000 --- a/packages/compartment-mapper/src/bundle.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export function makeBundle(read: ReadFn, moduleLocation: string, options?: { - moduleTransforms?: import("./types.js").ModuleTransforms | undefined; - dev?: boolean | undefined; - tags?: Set | undefined; - commonDependencies?: object; - searchSuffixes?: string[] | undefined; - sourceMapHook?: import("./types.js").SourceMapHook | undefined; -} | undefined): Promise; -export function writeBundle(write: WriteFn, read: ReadFn, bundleLocation: string, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; -export type ResolveHook = import('ses').ResolveHook; -export type PrecompiledStaticModuleInterface = import('ses').PrecompiledStaticModuleInterface; -export type ParserImplementation = import('./types.js').ParserImplementation; -export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; -export type CompartmentSources = import('./types.js').CompartmentSources; -export type ReadFn = import('./types.js').ReadFn; -export type ModuleTransforms = import('./types.js').ModuleTransforms; -export type Sources = import('./types.js').Sources; -export type WriteFn = import('./types.js').WriteFn; -export type ArchiveOptions = import('./types.js').ArchiveOptions; -//# sourceMappingURL=bundle.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/bundle.d.ts.map b/packages/compartment-mapper/src/bundle.d.ts.map deleted file mode 100644 index 49e59888e0..0000000000 --- a/packages/compartment-mapper/src/bundle.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bundle.d.ts","sourceRoot":"","sources":["bundle.js"],"names":[],"mappings":"AA4KO,iCAXI,MAAM,kBACN,MAAM;;;;yBAKN,MAAM;;;gBAGJ,QAAQ,MAAM,CAAC,CA8J3B;AASM,mCANI,OAAO,QACP,MAAM,kBACN,MAAM,kBACN,MAAM,4EAahB;0BAxVa,OAAO,KAAK,EAAE,WAAW;+CACzB,OAAO,KAAK,EAAE,gCAAgC;mCAC9C,OAAO,YAAY,EAAE,oBAAoB;oCACzC,OAAO,YAAY,EAAE,qBAAqB;iCAC1C,OAAO,YAAY,EAAE,kBAAkB;qBACvC,OAAO,YAAY,EAAE,MAAM;+BAC3B,OAAO,YAAY,EAAE,gBAAgB;sBACrC,OAAO,YAAY,EAAE,OAAO;sBAC5B,OAAO,YAAY,EAAE,OAAO;6BAC5B,OAAO,YAAY,EAAE,cAAc"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/compartment-map.d.ts b/packages/compartment-mapper/src/compartment-map.d.ts deleted file mode 100644 index 757a2bbb68..0000000000 --- a/packages/compartment-mapper/src/compartment-map.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {(a: string, b: string) => number} */ -export const stringCompare: (a: string, b: string) => number; -export function pathCompare(a: Array | undefined, b: Array | undefined): number; -export function assertCompartmentMap(allegedCompartmentMap: unknown, url?: string | undefined): asserts compartmentMap is import("./types.js").CompartmentMapDescriptor; -//# sourceMappingURL=compartment-map.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/compartment-map.d.ts.map b/packages/compartment-mapper/src/compartment-map.d.ts.map deleted file mode 100644 index cc49e343b0..0000000000 --- a/packages/compartment-mapper/src/compartment-map.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compartment-map.d.ts","sourceRoot":"","sources":["compartment-map.js"],"names":[],"mappings":"AAqBA,+CAA+C;AAE/C,gCAFe,MAAM,KAAK,MAAM,KAAK,MAAM,CAE2B;AAc/D,+BAHI,MAAM,MAAM,CAAC,GAAG,SAAS,KACzB,MAAM,MAAM,CAAC,GAAG,SAAS,UAqCnC;AAyaM,4DALI,OAAO,qGA0BjB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/extension.d.ts b/packages/compartment-mapper/src/extension.d.ts deleted file mode 100644 index 53e0f2e382..0000000000 --- a/packages/compartment-mapper/src/extension.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function parseExtension(location: string): string; -//# sourceMappingURL=extension.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/extension.d.ts.map b/packages/compartment-mapper/src/extension.d.ts.map deleted file mode 100644 index 7ffa325209..0000000000 --- a/packages/compartment-mapper/src/extension.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"extension.d.ts","sourceRoot":"","sources":["extension.js"],"names":[],"mappings":"AAUO,yCAHI,MAAM,GACJ,MAAM,CAalB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-archive.d.ts b/packages/compartment-mapper/src/import-archive.d.ts deleted file mode 100644 index d60d26ad3b..0000000000 --- a/packages/compartment-mapper/src/import-archive.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function parseArchive(archiveBytes: Uint8Array, archiveLocation?: string | undefined, options?: { - expectedSha512?: string | undefined; - computeSha512?: import("./types.js").HashFn | undefined; - modules?: Record | undefined; - importHook?: import("./types.js").ExitModuleImportHook | undefined; - Compartment?: typeof Compartment | undefined; - computeSourceLocation?: import("./types.js").ComputeSourceLocationHook | undefined; - computeSourceMapLocation?: import("./types.js").ComputeSourceMapLocationHook | undefined; -} | undefined): Promise; -export function loadArchive(readPowers: import('./types.js').ReadFn | import('./types.js').ReadPowers, archiveLocation: string, options?: import("./types.js").LoadArchiveOptions | undefined): Promise; -export function importArchive(readPowers: import('./types.js').ReadFn | import('./types.js').ReadPowers, archiveLocation: string, options: import('./types.js').ExecuteOptions & import('./types.js').LoadArchiveOptions): Promise; -export type CompartmentConstructor = typeof Compartment; -//# sourceMappingURL=import-archive.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-archive.d.ts.map b/packages/compartment-mapper/src/import-archive.d.ts.map deleted file mode 100644 index 2e738e315d..0000000000 --- a/packages/compartment-mapper/src/import-archive.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"import-archive.d.ts","sourceRoot":"","sources":["import-archive.js"],"names":[],"mappings":"AA8PO,2CAZI,UAAU;;;;;;;;gBAUR,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAmJrD;AAQM,wCALI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,mBAC7D,MAAM,kEAEJ,QAAQ,OAAO,YAAY,EAAE,WAAW,CAAC,CAsBrD;AAQM,0CALI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,mBAC7D,MAAM,WACN,OAAO,YAAY,EAAE,cAAc,GAAG,OAAO,YAAY,EAAE,kBAAkB,GAC3E,QAAQ,MAAM,CAAC,CAK3B;qCAvMa,kBAAkB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-hook.d.ts b/packages/compartment-mapper/src/import-hook.d.ts deleted file mode 100644 index a5484fc1e5..0000000000 --- a/packages/compartment-mapper/src/import-hook.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export function exitModuleImportHookMaker({ modules, exitModuleImportHook, }: { - modules?: Record | undefined; - exitModuleImportHook?: ExitModuleImportHook | undefined; -}): ExitModuleImportHook | undefined; -export function makeImportHookMaker(readPowers: ReadFn | ReadPowers, baseLocation: string, { sources, compartmentDescriptors, archiveOnly, computeSha512, searchSuffixes, sourceMapHook, entryCompartmentName, entryModuleSpecifier, exitModuleImportHook, }: { - sources?: import("./types.js").Sources | undefined; - compartmentDescriptors?: Record | undefined; - archiveOnly?: boolean | undefined; - computeSha512?: import("./types.js").HashFn | undefined; - searchSuffixes?: string[] | undefined; - entryCompartmentName: string; - entryModuleSpecifier: string; - exitModuleImportHook?: import("./types.js").ExitModuleImportHook | undefined; - sourceMapHook?: import("./types.js").SourceMapHook | undefined; -}): ImportHookMaker; -export type ImportHook = import('ses').ImportHook; -export type StaticModuleType = import('ses').StaticModuleType; -export type RedirectStaticModuleInterface = import('ses').RedirectStaticModuleInterface; -export type ThirdPartyStaticModuleInterface = import('ses').ThirdPartyStaticModuleInterface; -export type ReadFn = import('./types.js').ReadFn; -export type ReadPowers = import('./types.js').ReadPowers; -export type HashFn = import('./types.js').HashFn; -export type Sources = import('./types.js').Sources; -export type CompartmentSources = import('./types.js').CompartmentSources; -export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; -export type ImportHookMaker = import('./types.js').ImportHookMaker; -export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider; -export type ExitModuleImportHook = import('./types.js').ExitModuleImportHook; -//# sourceMappingURL=import-hook.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/import-hook.d.ts.map b/packages/compartment-mapper/src/import-hook.d.ts.map deleted file mode 100644 index 397147c483..0000000000 --- a/packages/compartment-mapper/src/import-hook.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"import-hook.d.ts","sourceRoot":"","sources":["import-hook.js"],"names":[],"mappings":"AAuEO;IAJiC,OAAO,GAApC,OAAO,MAAM,EAAE,GAAG,CAAC;IACW,oBAAoB,GAAlD,oBAAoB;IAClB,oBAAoB,GAAC,SAAS,CA0B1C;AAuBM,gDApBI,MAAM,GAAC,UAAU,gBACjB,MAAM;IAEY,OAAO;IACuB,sBAAsB;IACpD,WAAW;IACZ,aAAa;IACN,cAAc;IAOtB,oBAAoB,EAApC,MAAM;IACU,oBAAoB,EAApC,MAAM;IACyB,oBAAoB;IACN,aAAa;IACxD,eAAe,CAqR3B;yBAvYa,OAAO,KAAK,EAAE,UAAU;+BACxB,OAAO,KAAK,EAAE,gBAAgB;4CAC9B,OAAO,KAAK,EAAE,6BAA6B;8CAC3C,OAAO,KAAK,EAAE,+BAA+B;qBAC7C,OAAO,YAAY,EAAE,MAAM;yBAC3B,OAAO,YAAY,EAAE,UAAU;qBAC/B,OAAO,YAAY,EAAE,MAAM;sBAC3B,OAAO,YAAY,EAAE,OAAO;iCAC5B,OAAO,YAAY,EAAE,kBAAkB;oCACvC,OAAO,YAAY,EAAE,qBAAqB;8BAC1C,OAAO,YAAY,EAAE,eAAe;0CACpC,OAAO,YAAY,EAAE,2BAA2B;mCAChD,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/import.d.ts b/packages/compartment-mapper/src/import.d.ts deleted file mode 100644 index 1f4042ad1a..0000000000 --- a/packages/compartment-mapper/src/import.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** @type {Record} */ -export const parserForLanguage: Record; -export function loadLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: import("./types.js").ArchiveOptions | undefined): Promise; -export function importLocation(readPowers: ReadFn | ReadPowers, moduleLocation: string, options?: (import("./types.js").ExecuteOptions & import("./types.js").ArchiveOptions) | undefined): Promise; -export type Application = import('./types.js').Application; -export type ArchiveOptions = import('./types.js').ArchiveOptions; -export type ExecuteFn = import('./types.js').ExecuteFn; -export type ExecuteOptions = import('./types.js').ExecuteOptions; -export type ParserImplementation = import('./types.js').ParserImplementation; -export type ReadFn = import('./types.js').ReadFn; -export type ReadPowers = import('./types.js').ReadPowers; -//# sourceMappingURL=import.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/import.d.ts.map b/packages/compartment-mapper/src/import.d.ts.map deleted file mode 100644 index 66adfc50a4..0000000000 --- a/packages/compartment-mapper/src/import.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"import.d.ts","sourceRoot":"","sources":["import.js"],"names":[],"mappings":"AA0BA,mDAAmD;AACnD,gCADW,OAAO,MAAM,EAAE,oBAAoB,CAAC,CAO7C;AAQK,yCALI,MAAM,GAAG,UAAU,kBACnB,MAAM,8DAEJ,QAAQ,WAAW,CAAC,CAwEhC;AASM,2CANI,MAAM,GAAG,UAAU,kBACnB,MAAM,sGAEJ,QAAQ,OAAO,YAAY,EAAE,UAAU,CAAC,CAUpD;0BA5Ha,OAAO,YAAY,EAAE,WAAW;6BAChC,OAAO,YAAY,EAAE,cAAc;wBACnC,OAAO,YAAY,EAAE,SAAS;6BAC9B,OAAO,YAAY,EAAE,cAAc;mCACnC,OAAO,YAAY,EAAE,oBAAoB;qBACzC,OAAO,YAAY,EAAE,MAAM;yBAC3B,OAAO,YAAY,EAAE,UAAU"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/infer-exports.d.ts b/packages/compartment-mapper/src/infer-exports.d.ts deleted file mode 100644 index b8182c0d7d..0000000000 --- a/packages/compartment-mapper/src/infer-exports.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export function inferExportsEntries({ main, module, exports }: { - main: string; - module?: string | undefined; - exports?: object; -}, tags: Set, types: Record): Generator; -export function inferExports(descriptor: object, tags: Set, types: Record): Record; -export function inferExportsAndAliases(descriptor: any, externalAliases: any, internalAliases: any, tags: any, types: any): void; -export type Language = import('./types.js').Language; -//# sourceMappingURL=infer-exports.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/infer-exports.d.ts.map b/packages/compartment-mapper/src/infer-exports.d.ts.map deleted file mode 100644 index 742e7cf19f..0000000000 --- a/packages/compartment-mapper/src/infer-exports.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"infer-exports.d.ts","sourceRoot":"","sources":["infer-exports.js"],"names":[],"mappings":"AA6GO;IAT8B,IAAI,EAA9B,MAAM;IACqB,MAAM;IACN,OAAO,GAAlC,MAAM;SACN,IAAI,MAAM,CAAC,SAEX,OAAO,MAAM,EAAE,QAAQ,CAAC,kCA2BlC;AAkBM,yCAPI,MAAM,QACN,IAAI,MAAM,CAAC,SAEX,OAAO,MAAM,EAAE,QAAQ,CAAC,GAEtB,OAAO,MAAM,EAAE,MAAM,CAAC,CAGwB;AAEpD,iIA2CN;uBAlMa,OAAO,YAAY,EAAE,QAAQ"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/json.d.ts b/packages/compartment-mapper/src/json.d.ts deleted file mode 100644 index cc71f9914d..0000000000 --- a/packages/compartment-mapper/src/json.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function parseLocatedJson(source: string, location: string): any; -//# sourceMappingURL=json.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/json.d.ts.map b/packages/compartment-mapper/src/json.d.ts.map deleted file mode 100644 index 1867c833d6..0000000000 --- a/packages/compartment-mapper/src/json.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"json.d.ts","sourceRoot":"","sources":["json.js"],"names":[],"mappings":"AASO,yCAHI,MAAM,YACN,MAAM,OAWhB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/link.d.ts b/packages/compartment-mapper/src/link.d.ts deleted file mode 100644 index a925ab72ae..0000000000 --- a/packages/compartment-mapper/src/link.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export function mapParsers(languageForExtension: Record, languageForModuleSpecifier: Record, parserForLanguage: Record, moduleTransforms?: ModuleTransforms): ParseFn; -export function link({ entry, compartments: compartmentDescriptors }: CompartmentMapDescriptor, { resolve, makeImportHook, parserForLanguage, globals, transforms, moduleTransforms, __shimTransforms__, archiveOnly, Compartment, }: LinkOptions): { - compartment: Compartment; - compartments: Record; - attenuatorsCompartment: Compartment; - pendingJobsPromise: Promise; -}; -export function assemble(compartmentMap: CompartmentMapDescriptor, options: LinkOptions): Compartment; -export type ModuleMapHook = import('ses').ModuleMapHook; -export type ResolveHook = import('ses').ResolveHook; -export type ParseFn = import('./types.js').ParseFn; -export type ParserImplementation = import('./types.js').ParserImplementation; -export type ShouldDeferError = import('./types.js').ShouldDeferError; -export type ModuleTransforms = import('./types.js').ModuleTransforms; -export type Language = import('./types.js').Language; -export type ModuleDescriptor = import('./types.js').ModuleDescriptor; -export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; -export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor; -export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider; -export type LinkOptions = import('./types.js').LinkOptions; -export type ERef = import('@endo/eventual-send').ERef; -//# sourceMappingURL=link.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/link.d.ts.map b/packages/compartment-mapper/src/link.d.ts.map deleted file mode 100644 index c56b4dc267..0000000000 --- a/packages/compartment-mapper/src/link.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"link.d.ts","sourceRoot":"","sources":["link.js"],"names":[],"mappings":"AA+IO,iDAPI,OAAO,MAAM,EAAE,QAAQ,CAAC,8BACxB,OAAO,MAAM,EAAE,MAAM,CAAC,qBAEtB,OAAO,MAAM,EAAE,oBAAoB,CAAC,qBACpC,gBAAgB,GACd,OAAO,CA0BnB;AAmKM,sEAHI,wBAAwB,wIACxB,WAAW;;;;;EA0IrB;AAMM,yCAHI,wBAAwB,WACxB,WAAW,eAGqB;4BAvd7B,OAAO,KAAK,EAAE,aAAa;0BAC3B,OAAO,KAAK,EAAE,WAAW;sBACzB,OAAO,YAAY,EAAE,OAAO;mCAC5B,OAAO,YAAY,EAAE,oBAAoB;+BACzC,OAAO,YAAY,EAAE,gBAAgB;+BACrC,OAAO,YAAY,EAAE,gBAAgB;uBACrC,OAAO,YAAY,EAAE,QAAQ;+BAC7B,OAAO,YAAY,EAAE,gBAAgB;oCACrC,OAAO,YAAY,EAAE,qBAAqB;uCAC1C,OAAO,YAAY,EAAE,wBAAwB;0CAC7C,OAAO,YAAY,EAAE,2BAA2B;0BAChD,OAAO,YAAY,EAAE,WAAW;wBACpB,OAAO,qBAAqB,EAAE,IAAI,CAAC,GAAC,CAAC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-module-specifier.d.ts b/packages/compartment-mapper/src/node-module-specifier.d.ts deleted file mode 100644 index 77dfd65a4e..0000000000 --- a/packages/compartment-mapper/src/node-module-specifier.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function resolve(spec: string, referrer: string): string; -export function join(base: string, spec: string): string; -export function relativize(spec: string): string; -//# sourceMappingURL=node-module-specifier.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-module-specifier.d.ts.map b/packages/compartment-mapper/src/node-module-specifier.d.ts.map deleted file mode 100644 index 7854fb6062..0000000000 --- a/packages/compartment-mapper/src/node-module-specifier.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-module-specifier.d.ts","sourceRoot":"","sources":["node-module-specifier.js"],"names":[],"mappings":"AAoDO,8BAJI,MAAM,YACN,MAAM,GACJ,MAAM,CAiClB;AAeM,2BAJI,MAAM,QACN,MAAM,GACJ,MAAM,CA6BlB;AAaM,iCALI,MAAM,GAEJ,MAAM,CAclB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-modules.d.ts b/packages/compartment-mapper/src/node-modules.d.ts deleted file mode 100644 index 06d8319335..0000000000 --- a/packages/compartment-mapper/src/node-modules.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -export function compartmentMapForNodeModules(readPowers: ReadFn | ReadPowers | MaybeReadPowers, packageLocation: string, tags: Set, packageDescriptor: object, moduleSpecifier: string, options?: { - dev?: boolean | undefined; - commonDependencies?: object; - policy?: object; -} | undefined): Promise; -export type Language = import('./types.js').Language; -export type ReadFn = import('./types.js').ReadFn; -export type MaybeReadFn = import('./types.js').MaybeReadFn; -export type CanonicalFn = import('./types.js').CanonicalFn; -export type CompartmentMapDescriptor = import('./types.js').CompartmentMapDescriptor; -export type ModuleDescriptor = import('./types.js').ModuleDescriptor; -export type ScopeDescriptor = import('./types.js').ScopeDescriptor; -export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; -export type ReadPowers = import('./types.js').ReadPowers; -export type MaybeReadPowers = import('./types.js').MaybeReadPowers; -/** - * The graph is an intermediate object model that the functions of this module - * build by exploring the `node_modules` tree dropped by tools like npm and - * consumed by tools like Node.js. - * This gets translated finally into a compartment map. - */ -export type Graph = Record; -export type Node = { - label: string; - name: string; - path: Array; - logicalPath: Array; - explicitExports: boolean; - internalAliases: Record; - externalAliases: Record; - /** - * - from module name to - * location in storage. - */ - dependencyLocations: Record; - /** - * - the parser for - * modules based on their extension. - */ - parsers: Record; - /** - * - the parser for specific - * modules. - */ - types: Record; -}; -export type CommonDependencyDescriptors = Record; -export type ReadDescriptorFn = (packageLocation: string) => Promise; -//# sourceMappingURL=node-modules.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-modules.d.ts.map b/packages/compartment-mapper/src/node-modules.d.ts.map deleted file mode 100644 index 0f34f46e4b..0000000000 --- a/packages/compartment-mapper/src/node-modules.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-modules.d.ts","sourceRoot":"","sources":["node-modules.js"],"names":[],"mappings":"AAwsBO,yDAXI,MAAM,GAAG,UAAU,GAAG,eAAe,mBACrC,MAAM,QACN,IAAI,MAAM,CAAC,qBACX,MAAM,mBACN,MAAM;;yBAGN,MAAM;aACN,MAAM;gBACJ,QAAQ,wBAAwB,CAAC,CA+C7C;uBAlvBa,OAAO,YAAY,EAAE,QAAQ;qBAC7B,OAAO,YAAY,EAAE,MAAM;0BAC3B,OAAO,YAAY,EAAE,WAAW;0BAChC,OAAO,YAAY,EAAE,WAAW;uCAChC,OAAO,YAAY,EAAE,wBAAwB;+BAC7C,OAAO,YAAY,EAAE,gBAAgB;8BACrC,OAAO,YAAY,EAAE,eAAe;oCACpC,OAAO,YAAY,EAAE,qBAAqB;yBAC1C,OAAO,YAAY,EAAE,UAAU;8BAC/B,OAAO,YAAY,EAAE,eAAe;;;;;;;oBAQrC,OAAO,MAAM,EAAE,IAAI,CAAC;;WAKnB,MAAM;UACN,MAAM;UACN,MAAM,MAAM,CAAC;iBACb,MAAM,MAAM,CAAC;qBACb,OAAO;qBACP,OAAO,MAAM,EAAE,MAAM,CAAC;qBACtB,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;yBACtB,OAAO,MAAM,EAAE,MAAM,CAAC;;;;;aAEtB,OAAO,MAAM,EAAE,QAAQ,CAAC;;;;;WAExB,OAAO,MAAM,EAAE,QAAQ,CAAC;;0CAKzB,OAAO,MAAM,EAAE;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,KAAK,EAAE,MAAM,CAAA;CAAC,CAAC;iDA+E/C,MAAM,KACJ,QAAQ,MAAM,CAAC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-powers.d.ts b/packages/compartment-mapper/src/node-powers.d.ts deleted file mode 100644 index 7dc22af42a..0000000000 --- a/packages/compartment-mapper/src/node-powers.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/// -/// -/** - * The implementation of `makeReadPowers` and the deprecated - * `makeNodeReadPowers` handles the case when the `url` power is not provided, - * but `makeReadPowers` presents a type that requires `url`. - * - * @param {object} args - * @param {typeof import('fs')} args.fs - * @param {typeof import('url')} [args.url] - * @param {typeof import('crypto')} [args.crypto] - */ -export function makeReadPowers({ fs, url, crypto }: { - fs: typeof import('fs'); - url?: typeof import("url") | undefined; - crypto?: typeof import("crypto") | undefined; -}): { - read: (location: string) => Promise; - maybeRead: (location: string) => Promise; - fileURLToPath: (location: string) => string; - pathToFileURL: ((path: string) => string) | typeof import("url").pathToFileURL; - canonical: (location: string) => Promise; - computeSha512: import("./types.js").HashFn | undefined; - requireResolve: (from: any, specifier: any, options: any) => string; -}; -/** - * The implementation of `makeWritePowers` and the deprecated - * `makeNodeWritePowers` handles the case when the `url` power is not provided, - * but `makeWritePowers` presents a type that requires `url`. - * - * @param {object} args - * @param {typeof import('fs')} args.fs - * @param {typeof import('url')} [args.url] - */ -export function makeWritePowers({ fs, url }: { - fs: typeof import('fs'); - url?: typeof import("url") | undefined; -}): { - write: (location: string, data: Uint8Array) => Promise; -}; -export function makeNodeReadPowers(fs: typeof import('fs'), crypto?: typeof import("crypto") | undefined): ReadPowers; -export function makeNodeWritePowers(fs: typeof import('fs')): WritePowers; -export type ReadPowers = import('./types.js').ReadPowers; -export type HashFn = import('./types.js').HashFn; -export type WritePowers = import('./types.js').WritePowers; -//# sourceMappingURL=node-powers.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/node-powers.d.ts.map b/packages/compartment-mapper/src/node-powers.d.ts.map deleted file mode 100644 index 7c26f0ce72..0000000000 --- a/packages/compartment-mapper/src/node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-powers.d.ts","sourceRoot":"","sources":["node-powers.js"],"names":[],"mappings":";;AA0BA;;;;;;;;;GASG;AACH;IAJqC,EAAE,EAA5B,cAAc,IAAI,CAAC;IACS,GAAG;IACA,MAAM;;qBAWnC,MAAM;0BAqBN,MAAM;8BAzDR,MAAM;2BAWN,MAAM;0BA2EJ,MAAM;;;EAoClB;AAED;;;;;;;;GAQG;AACH;IAHqC,EAAE,EAA5B,cAAc,IAAI,CAAC;IACS,GAAG;;sBAO7B,MAAM,QACN,UAAU;EAWtB;AA0BM,uCAJI,cAAc,IAAI,CAAC,iDAEjB,UAAU,CAItB;AAUM,wCAHI,cAAc,IAAI,CAAC,GACjB,WAAW,CAIvB;yBArMa,OAAO,YAAY,EAAE,UAAU;qBAC/B,OAAO,YAAY,EAAE,MAAM;0BAC3B,OAAO,YAAY,EAAE,WAAW"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-cjs.d.ts b/packages/compartment-mapper/src/parse-archive-cjs.d.ts deleted file mode 100644 index 1da6be4bf5..0000000000 --- a/packages/compartment-mapper/src/parse-archive-cjs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseArchiveCjs: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-archive-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-cjs.d.ts.map b/packages/compartment-mapper/src/parse-archive-cjs.d.ts.map deleted file mode 100644 index b011cfc878..0000000000 --- a/packages/compartment-mapper/src/parse-archive-cjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-archive-cjs.d.ts","sourceRoot":"","sources":["parse-archive-cjs.js"],"names":[],"mappings":"AAaA,2CAA2C;AAC3C,8BADW,OAAO,YAAY,EAAE,OAAO,CA6CrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-mjs.d.ts b/packages/compartment-mapper/src/parse-archive-mjs.d.ts deleted file mode 100644 index 68dd240c8a..0000000000 --- a/packages/compartment-mapper/src/parse-archive-mjs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseArchiveMjs: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-archive-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-archive-mjs.d.ts.map b/packages/compartment-mapper/src/parse-archive-mjs.d.ts.map deleted file mode 100644 index fc062abb08..0000000000 --- a/packages/compartment-mapper/src/parse-archive-mjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-archive-mjs.d.ts","sourceRoot":"","sources":["parse-archive-mjs.js"],"names":[],"mappings":"AAOA,2CAA2C;AAC3C,8BADW,OAAO,YAAY,EAAE,OAAO,CAqBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-bytes.d.ts b/packages/compartment-mapper/src/parse-bytes.d.ts deleted file mode 100644 index 5b38e25fca..0000000000 --- a/packages/compartment-mapper/src/parse-bytes.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseBytes: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-bytes.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-bytes.d.ts.map b/packages/compartment-mapper/src/parse-bytes.d.ts.map deleted file mode 100644 index 6df17873f5..0000000000 --- a/packages/compartment-mapper/src/parse-bytes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-bytes.d.ts","sourceRoot":"","sources":["parse-bytes.js"],"names":[],"mappings":"AAUA,2CAA2C;AAC3C,yBADW,OAAO,YAAY,EAAE,OAAO,CA+BrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts b/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts deleted file mode 100644 index c20477be18..0000000000 --- a/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export function getModulePaths(readPowers: ReadPowers | ReadFn | undefined, location: string): { - filename: string | null; - dirname: string | null; -}; -export function wrap({ moduleEnvironmentRecord, compartment, resolvedImports, location, readPowers, }: { - moduleEnvironmentRecord: object; - compartment: Compartment; - resolvedImports: Record; - location: string; - readPowers: ReadFn | ReadPowers | undefined; -}): { - module: { - exports: any; - }; - moduleExports: any; - afterExecute: Function; - require: Function; -}; -export type ReadFn = import('./types.js').ReadFn; -export type ReadPowers = import('./types.js').ReadPowers; -//# sourceMappingURL=parse-cjs-shared-export-wrapper.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map b/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map deleted file mode 100644 index 0e5d043d9f..0000000000 --- a/packages/compartment-mapper/src/parse-cjs-shared-export-wrapper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-cjs-shared-export-wrapper.d.ts","sourceRoot":"","sources":["parse-cjs-shared-export-wrapper.js"],"names":[],"mappings":"AA8BO,2CAPI,UAAU,GAAG,MAAM,GAAG,SAAS,YAC/B,MAAM,GACJ;IACZ,QAAY,EAAC,MAAM,GAAC,IAAI,CAAC;IACzB,OAAW,EAAE,MAAM,GAAC,IAAI,CAAA;CACrB,CAgCH;AAmBM;IAZe,uBAAuB,EAAlC,MAAM;IACU,WAAW,EAA3B,WAAW;IACgB,eAAe,EAA1C,OAAO,MAAM,EAAE,MAAM,CAAC;IACX,QAAQ,EAAnB,MAAM;IAC8B,UAAU,EAA9C,MAAM,GAAG,UAAU,GAAG,SAAS;;;iBAElB,GAAG;;mBACP,GAAG;;;EA+GtB;qBAvLa,OAAO,YAAY,EAAE,MAAM;yBAC3B,OAAO,YAAY,EAAE,UAAU"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs.d.ts b/packages/compartment-mapper/src/parse-cjs.d.ts deleted file mode 100644 index 3af902ce9c..0000000000 --- a/packages/compartment-mapper/src/parse-cjs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseCjs: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-cjs.d.ts.map b/packages/compartment-mapper/src/parse-cjs.d.ts.map deleted file mode 100644 index d8404a2e67..0000000000 --- a/packages/compartment-mapper/src/parse-cjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-cjs.d.ts","sourceRoot":"","sources":["parse-cjs.js"],"names":[],"mappings":"AASA,2CAA2C;AAC3C,uBADW,OAAO,YAAY,EAAE,OAAO,CAkDrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-json.d.ts b/packages/compartment-mapper/src/parse-json.d.ts deleted file mode 100644 index a81b23f080..0000000000 --- a/packages/compartment-mapper/src/parse-json.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseJson: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-json.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-json.d.ts.map b/packages/compartment-mapper/src/parse-json.d.ts.map deleted file mode 100644 index 09069ed764..0000000000 --- a/packages/compartment-mapper/src/parse-json.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-json.d.ts","sourceRoot":"","sources":["parse-json.js"],"names":[],"mappings":"AAcA,2CAA2C;AAC3C,wBADW,OAAO,YAAY,EAAE,OAAO,CAyBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-mjs.d.ts b/packages/compartment-mapper/src/parse-mjs.d.ts deleted file mode 100644 index a0971e334c..0000000000 --- a/packages/compartment-mapper/src/parse-mjs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseMjs: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-mjs.d.ts.map b/packages/compartment-mapper/src/parse-mjs.d.ts.map deleted file mode 100644 index bb12976c81..0000000000 --- a/packages/compartment-mapper/src/parse-mjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-mjs.d.ts","sourceRoot":"","sources":["parse-mjs.js"],"names":[],"mappings":"AAMA,2CAA2C;AAC3C,uBADW,OAAO,YAAY,EAAE,OAAO,CAqBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-cjs.d.ts b/packages/compartment-mapper/src/parse-pre-cjs.d.ts deleted file mode 100644 index a0f39c3cf3..0000000000 --- a/packages/compartment-mapper/src/parse-pre-cjs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parsePreCjs: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-pre-cjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-cjs.d.ts.map b/packages/compartment-mapper/src/parse-pre-cjs.d.ts.map deleted file mode 100644 index e0f231b997..0000000000 --- a/packages/compartment-mapper/src/parse-pre-cjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-pre-cjs.d.ts","sourceRoot":"","sources":["parse-pre-cjs.js"],"names":[],"mappings":"AAOA,2CAA2C;AAC3C,0BADW,OAAO,YAAY,EAAE,OAAO,CA+CrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-mjs.d.ts b/packages/compartment-mapper/src/parse-pre-mjs.d.ts deleted file mode 100644 index a4d27c2bcb..0000000000 --- a/packages/compartment-mapper/src/parse-pre-mjs.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parsePreMjs: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-pre-mjs.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-pre-mjs.d.ts.map b/packages/compartment-mapper/src/parse-pre-mjs.d.ts.map deleted file mode 100644 index b84fd8e506..0000000000 --- a/packages/compartment-mapper/src/parse-pre-mjs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-pre-mjs.d.ts","sourceRoot":"","sources":["parse-pre-mjs.js"],"names":[],"mappings":"AAMA,2CAA2C;AAC3C,0BADW,OAAO,YAAY,EAAE,OAAO,CAsBrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-text.d.ts b/packages/compartment-mapper/src/parse-text.d.ts deleted file mode 100644 index 042df9a016..0000000000 --- a/packages/compartment-mapper/src/parse-text.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** @type {import('./types.js').ParseFn} */ -export const parseText: import('./types.js').ParseFn; -declare const _default: import('./types.js').ParserImplementation; -export default _default; -//# sourceMappingURL=parse-text.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/parse-text.d.ts.map b/packages/compartment-mapper/src/parse-text.d.ts.map deleted file mode 100644 index a0da2db8d3..0000000000 --- a/packages/compartment-mapper/src/parse-text.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-text.d.ts","sourceRoot":"","sources":["parse-text.js"],"names":[],"mappings":"AAYA,2CAA2C;AAC3C,wBADW,OAAO,YAAY,EAAE,OAAO,CA4BrC;wBAES,OAAO,YAAY,EAAE,oBAAoB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy-format.d.ts b/packages/compartment-mapper/src/policy-format.d.ts deleted file mode 100644 index 67d2f4f72e..0000000000 --- a/packages/compartment-mapper/src/policy-format.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function policyLookupHelper(packagePolicy: import('./types.js').PackagePolicy, field: 'builtins' | 'globals' | 'packages', itemName: string): boolean | import('./types.js').AttenuationDefinition; -export function isAllowingEverything(policyValue: unknown): policyValue is "any"; -export function isAttenuationDefinition(allegedDefinition: unknown): allegedDefinition is import("./types.js").AttenuationDefinition; -export function getAttenuatorFromDefinition(attenuationDefinition: import('./types.js').AttenuationDefinition): import('./types.js').UnifiedAttenuationDefinition; -export function assertPackagePolicy(allegedPackagePolicy: unknown, path: string, url?: string | undefined): asserts allegedPackagePolicy is import("./types.js").PackagePolicy | undefined; -export function assertPolicy(allegedPolicy: unknown): asserts allegedPolicy is import("./types.js").Policy | undefined; -//# sourceMappingURL=policy-format.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy-format.d.ts.map b/packages/compartment-mapper/src/policy-format.d.ts.map deleted file mode 100644 index fe819a0197..0000000000 --- a/packages/compartment-mapper/src/policy-format.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"policy-format.d.ts","sourceRoot":"","sources":["policy-format.js"],"names":[],"mappings":"AAsBO,kDALI,OAAO,YAAY,EAAE,aAAa,SAClC,UAAU,GAAC,SAAS,GAAC,UAAU,YAC/B,MAAM,GACJ,OAAO,GAAG,OAAO,YAAY,EAAE,qBAAqB,CAyBhE;AAQM,kDAHI,OAAO,wBAIqB;AAOhC,2DAHI,OAAO,mEAUjB;AAOM,mEAHI,OAAO,YAAY,EAAE,qBAAqB,GACxC,OAAO,YAAY,EAAE,4BAA4B,CAuB7D;AA0CM,0DALI,OAAO,QACP,MAAM,8HA4DhB;AAUM,4CAHI,OAAO,sFAiCjB"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy.d.ts b/packages/compartment-mapper/src/policy.d.ts deleted file mode 100644 index 832163548b..0000000000 --- a/packages/compartment-mapper/src/policy.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -/** - * Const string to identify the internal attenuators compartment - */ -export const ATTENUATORS_COMPARTMENT: ""; -export function detectAttenuators(policy?: import("./types.js").Policy | undefined): Array; -export function dependencyAllowedByPolicy(namingKit: import('./types.js').PackageNamingKit, packagePolicy: import('./types.js').PackagePolicy): boolean; -/** - * Returns the policy applicable to the canonicalName of the package - * - * @overload - * @param {import('./types.js').PackageNamingKit} namingKit - a key in the policy resources spec is derived from these - * @param {import('./types.js').Policy} policy - user supplied policy - * @returns {import('./types.js').PackagePolicy} packagePolicy if policy was specified - */ -export function getPolicyForPackage(namingKit: import('./types.js').PackageNamingKit, policy?: import('./types.js').Policy): import('./types.js').PackagePolicy; -/** - * Returns `undefined` - * - * @overload - * @param {import('./types.js').PackageNamingKit} namingKit - a key in the policy resources spec is derived from these - * @param {import('./types.js').Policy} [policy] - user supplied policy - * @returns {import('./types.js').PackagePolicy|undefined} packagePolicy if policy was specified - */ -export function getPolicyForPackage(namingKit: import('./types.js').PackageNamingKit, policy?: import("./types.js").Policy | undefined): import('./types.js').PackagePolicy | undefined; -export function makeDeferredAttenuatorsProvider(compartments: Record, compartmentDescriptors: Record): import('./types.js').DeferredAttenuatorsProvider; -export function attenuateGlobals(globalThis: object, globals: object, packagePolicy: import('./types.js').PackagePolicy, attenuators: import('./types.js').DeferredAttenuatorsProvider, pendingJobs: Array>, name?: string): void; -export function enforceModulePolicy(specifier: string, compartmentDescriptor: import('./types.js').CompartmentDescriptor, { exit, errorHint }?: EnforceModulePolicyOptions | undefined): void; -export function attenuateModuleHook(specifier: string, originalModuleRecord: import('ses').ThirdPartyStaticModuleInterface, policy: import('./types.js').PackagePolicy, attenuators: import('./types.js').DeferredAttenuatorsProvider): Promise; -/** - * Options for {@link enforceModulePolicy } - */ -export type EnforceModulePolicyOptions = { - /** - * - Whether it is an exit module - */ - exit?: boolean | undefined; - /** - * - Error hint message - */ - errorHint?: string | undefined; -}; -//# sourceMappingURL=policy.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/policy.d.ts.map b/packages/compartment-mapper/src/policy.d.ts.map deleted file mode 100644 index c6aede445b..0000000000 --- a/packages/compartment-mapper/src/policy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"policy.d.ts","sourceRoot":"","sources":["policy.js"],"names":[],"mappings":"AAYA;;GAEG;AACH,sDAAuD;AAkDhD,uGAFM,MAAM,MAAM,CAAC,CAezB;AA0BM,qDAJI,OAAO,YAAY,EAAE,gBAAgB,iBACrC,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,CASnB;;;;;;;;;AAKE,+CACQ,OAAO,YAAY,EAAE,gBAAgB,WACrC,OAAO,YAAY,EAAE,MAAM,GACzB,OAAO,YAAY,EAAE,aAAa,CAC9C;;;;;;;;;AAKE,+CACQ,OAAO,YAAY,EAAE,gBAAgB,uEAEnC,OAAO,YAAY,EAAE,aAAa,GAAC,SAAS,CACxD;AAkFM,8DAJI,OAAO,MAAM,EAAE,WAAW,CAAC,0BAC3B,OAAO,MAAM,EAAE,OAAO,YAAY,EAAE,qBAAqB,CAAC,GACxD,OAAO,YAAY,EAAE,2BAA2B,CA2C5D;AAoDM,6CARI,MAAM,WACN,MAAM,iBACN,OAAO,YAAY,EAAE,aAAa,eAClC,OAAO,YAAY,EAAE,2BAA2B,eAChD,mBAAc,SACd,MAAM,GACJ,IAAI,CAgDhB;AA2BM,+CAJI,MAAM,yBACN,OAAO,YAAY,EAAE,qBAAqB,sEAiCpD;AAgDM,+CANI,MAAM,wBACN,OAAO,KAAK,EAAE,+BAA+B,UAC7C,OAAO,YAAY,EAAE,aAAa,eAClC,OAAO,YAAY,EAAE,2BAA2B,GAC9C,QAAQ,OAAO,KAAK,EAAE,+BAA+B,CAAC,CAyBlE"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/powers.d.ts b/packages/compartment-mapper/src/powers.d.ts deleted file mode 100644 index f7d589e029..0000000000 --- a/packages/compartment-mapper/src/powers.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function unpackReadPowers(powers: import('./types.js').ReadFn | import('./types.js').ReadPowers | import('./types.js').MaybeReadPowers): import('./types.js').MaybeReadPowers; -//# sourceMappingURL=powers.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/powers.d.ts.map b/packages/compartment-mapper/src/powers.d.ts.map deleted file mode 100644 index b833a555dc..0000000000 --- a/packages/compartment-mapper/src/powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"powers.d.ts","sourceRoot":"","sources":["powers.js"],"names":[],"mappings":"AASO,yCAHI,OAAO,YAAY,EAAE,MAAM,GAAG,OAAO,YAAY,EAAE,UAAU,GAAG,OAAO,YAAY,EAAE,eAAe,GAClG,OAAO,YAAY,EAAE,eAAe,CAkChD"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/search.d.ts b/packages/compartment-mapper/src/search.d.ts deleted file mode 100644 index 40274f3542..0000000000 --- a/packages/compartment-mapper/src/search.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export function searchDescriptor(location: string, readDescriptor: (location: string) => Promise): Promise<{ - data: T; - directory: string; - location: string; - packageDescriptorLocation: string; -}>; -export function search(read: ReadFn, moduleLocation: string): Promise<{ - packageLocation: string; - packageDescriptorLocation: string; - packageDescriptorText: string; - moduleSpecifier: string; -}>; -export type ReadFn = import('./types.js').ReadFn; -//# sourceMappingURL=search.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/search.d.ts.map b/packages/compartment-mapper/src/search.d.ts.map deleted file mode 100644 index a6702db470..0000000000 --- a/packages/compartment-mapper/src/search.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"search.d.ts","sourceRoot":"","sources":["search.js"],"names":[],"mappings":"AA8BO,8CAJI,MAAM,6BACI,MAAM;;eACc,MAAM;cAAW,MAAM;+BAA6B,MAAM;GA2BlG;AAqCM,6BATI,MAAM,kBACN,MAAM;qBAEK,MAAM;+BACI,MAAM;2BACV,MAAM;qBACZ,MAAM;GAqB3B;qBA5Ga,OAAO,YAAY,EAAE,MAAM"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/types.d.ts b/packages/compartment-mapper/src/types.d.ts deleted file mode 100644 index aa37688132..0000000000 --- a/packages/compartment-mapper/src/types.d.ts +++ /dev/null @@ -1,359 +0,0 @@ -export type FinalStaticModuleType = import('ses').FinalStaticModuleType; -export type ThirdPartyStaticModuleInterface = import('ses').ThirdPartyStaticModuleInterface; -export type ImportHook = import('ses').ImportHook; -export type StaticModuleType = import('ses').StaticModuleType; -export type Transform = import('ses').Transform; -/** - * A compartment map describes how to construct an application as a graph of - * Compartments, each corresponding to Node.js style packaged modules. - */ -export type CompartmentMapDescriptor = { - tags: Array; - entry: EntryDescriptor; - compartments: Record; -}; -/** - * The entry descriptor of a compartment map denotes the root module of an - * application and the compartment that contains it. - */ -export type EntryDescriptor = { - compartment: string; - module: string; -}; -/** - * A compartment descriptor corresponds to a single Compartment - * of an assembled Application and describes how to construct - * one for a given library or application package.json. - */ -export type CompartmentDescriptor = { - label: string; - /** - * - shortest path of dependency names to this - * compartment - */ - path?: string[] | undefined; - /** - * - the name of the originating package suitable for - * constructing a sourceURL prefix that will match it to files in a developer - * workspace. - */ - name: string; - location: string; - /** - * - whether this compartment was retained by - * any module in the solution. This property should never appear in an archived - * compartment map. - */ - retained?: boolean | undefined; - modules: Record; - scopes: Record; - /** - * - language for extension - */ - parsers: Record; - /** - * - language for module specifier - */ - types: Record; - /** - * - policy specific to compartment - */ - policy: object; -}; -/** - * For every module explicitly mentioned in an `exports` field of a - * package.json, there is a corresponding module descriptor. - */ -export type ModuleDescriptor = { - compartment?: string | undefined; - module?: string | undefined; - location?: string | undefined; - parser?: Language | undefined; - /** - * in base 16, hex - */ - sha512?: string | undefined; - exit?: string | undefined; - deferredError?: string | undefined; -}; -/** - * Scope descriptors link all names under a prefix to modules in another - * compartment, like a wildcard. - * These are employed to link any module not explicitly mentioned - * in a package.json file, when that package.json file does not have - * an explicit `exports` map. - */ -export type ScopeDescriptor = { - compartment: string; - module?: string | undefined; -}; -export type Language = 'mjs' | 'cjs' | 'json' | 'bytes' | 'text' | 'pre-mjs-json' | 'pre-cjs-json'; -export type ArchiveWriter = { - write: WriteFn; - snapshot: SnapshotFn; -}; -export type WriteFn = (location: string, bytes: Uint8Array) => Promise; -export type ArchiveReader = { - read: ReadFn; -}; -export type ReadFn = (location: string) => Promise; -/** - * A resolution of `undefined` indicates `ENOENT` or the equivalent. - */ -export type MaybeReadFn = (location: string) => Promise; -/** - * Returns a canonical URL for a given URL, following redirects or symbolic - * links if any exist along the path. - * Must return the given logical location if the real location does not exist. - */ -export type CanonicalFn = (location: string) => Promise; -export type HashFn = (bytes: string | Uint8Array) => string; -export type Application = { - import: ExecuteFn; - sha512?: string | undefined; -}; -export type ExecuteFn = (options?: ExecuteOptions | undefined) => Promise; -export type SnapshotFn = () => Promise; -export type ReadPowers = { - read: ReadFn; - canonical: CanonicalFn; - computeSha512?: HashFn | undefined; - fileURLToPath?: Function | undefined; - pathToFileURL?: Function | undefined; - requireResolve?: Function | undefined; -}; -export type MaybeReadPowers = ReadPowers | object; -export type HashPowers = { - read: ReadFn; - canonical: CanonicalFn; - computeSha512: HashFn; -}; -export type WritePowers = { - write: WriteFn; -}; -export type ResolveHook = (importSpecifier: string, referrerSpecifier: string) => string; -export type ShouldDeferError = (language: Language | undefined) => boolean; -export type ImportHookMakerOptions = { - packageLocation: string; - packageName: string; - attenuators: DeferredAttenuatorsProvider; - parse: ParseFn; - shouldDeferError: ShouldDeferError; - compartments: Record; -}; -export type ImportHookMaker = (options: ImportHookMakerOptions) => ImportHook; -export type SourceMapHookDetails = { - compartment: string; - module: string; - location: string; - sha512: string; -}; -export type SourceMapHook = (sourceMap: string, details: SourceMapHookDetails) => any; -export type ComputeSourceMapLocationDetails = { - compartment: string; - module: string; - location: string; - sha512: string; -}; -export type ComputeSourceMapLocationHook = (details: ComputeSourceMapLocationDetails) => string; -export type ParseFn = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: { - sourceMap?: string | undefined; - sourceMapHook?: SourceMapHook | undefined; - sourceMapUrl?: string | undefined; - readPowers?: ReadFn | ReadPowers | undefined; -} | undefined) => Promise<{ - bytes: Uint8Array; - parser: Language; - record: FinalStaticModuleType; - sourceMap?: string; -}>; -/** - * ParserImplementation declares if a heuristic is used by parser to detect - * imports - is set to true for cjs, which uses a lexer to find require calls - */ -export type ParserImplementation = { - heuristicImports: boolean; - parse: ParseFn; -}; -export type ComputeSourceLocationHook = (compartmentName: string, moduleSpecifier: string) => string | undefined; -export type ExitModuleImportHook = (specifier: string) => Promise; -export type LoadArchiveOptions = { - expectedSha512?: string | undefined; - modules?: Record | undefined; - Compartment?: typeof Compartment | undefined; - computeSourceLocation?: ComputeSourceLocationHook | undefined; - computeSourceMapLocation?: ComputeSourceMapLocationHook | undefined; -}; -export type ExecuteOptions = { - globals?: object; - transforms?: import("ses").Transform[] | undefined; - __shimTransforms__?: import("ses").Transform[] | undefined; - modules?: Record | undefined; - importHook?: ExitModuleImportHook | undefined; - attenuations?: Record | undefined; - Compartment?: typeof Compartment | undefined; -}; -export type ParserForLanguage = Record; -export type ExtraLinkOptions = { - resolve?: ResolveHook | undefined; - makeImportHook: ImportHookMaker; - parserForLanguage: ParserForLanguage; - moduleTransforms?: ModuleTransforms | undefined; - archiveOnly?: boolean | undefined; -}; -export type LinkOptions = ExecuteOptions & ExtraLinkOptions; -export type ModuleTransforms = Record; -export type ModuleTransform = (bytes: Uint8Array, specifier: string, location: string, packageLocation: string, options?: { - sourceMap?: string | undefined; -} | undefined) => Promise<{ - bytes: Uint8Array; - parser: Language; - sourceMap?: string; -}>; -export type Sources = Record; -export type CompartmentSources = Record; -export type ModuleSource = { - /** - * - module loading error deferred to later stage - */ - deferredError?: string | undefined; - /** - * - package relative location - */ - location?: string | undefined; - /** - * - fully qualified location - */ - sourceLocation?: string | undefined; - bytes?: Uint8Array | undefined; - /** - * in base16, hex - */ - sha512?: string | undefined; - parser?: Language | undefined; - exit?: string | undefined; - record?: import("ses").StaticModuleType | undefined; -}; -export type Artifact = { - bytes: Uint8Array; - parser: Language; -}; -export type CaptureSourceLocationHook = (compartmentName: string, moduleSpecifier: string, sourceLocation: string) => any; -export type ArchiveOptions = { - moduleTransforms?: ModuleTransforms | undefined; - modules?: Record | undefined; - dev?: boolean | undefined; - policy?: object; - tags?: Set | undefined; - captureSourceLocation?: CaptureSourceLocationHook | undefined; - importHook?: ExitModuleImportHook | undefined; - searchSuffixes?: string[] | undefined; - commonDependencies?: Record | undefined; - sourceMapHook?: SourceMapHook | undefined; -}; -export type PackageNamingKit = { - /** - * - true if location is the entry compartment - */ - isEntry?: boolean | undefined; - name: string; - path: Array; -}; -/** - * An object representing a full attenuation definition. - */ -export type FullAttenuationDefinition = { - /** - * - The type of attenuation. - */ - attenuate: string; - /** - * - The parameters for the attenuation. - */ - params: ImplicitAttenuationDefinition; -}; -/** - * An array of any type representing an implicit attenuation definition. - */ -export type ImplicitAttenuationDefinition = [any, ...any[]]; -/** - * A type representing an attenuation definition, which can be either a full or implicit definition. - */ -export type AttenuationDefinition = FullAttenuationDefinition | [any, ...any[]]; -export type UnifiedAttenuationDefinition = { - displayName: string; - specifier: string | null; - params?: any[] | undefined; -}; -export type Attenuator = { - attenuateGlobals?: GlobalAttenuatorFn | undefined; - attenuateModule?: ModuleAttenuatorFn | undefined; -}; -export type GlobalAttenuatorFn = (params: Params, originalObject: Record, globalThis: Record) => void; -export type ModuleAttenuatorFn = (params: Params, ns: T) => U; -export type DeferredAttenuatorsProvider = { - import: (attenuatorSpecifier: string | null) => Promise; -}; -/** - * A type representing a wildcard policy, which can be 'any'. - */ -export type WildcardPolicy = 'any'; -/** - * A type representing a property policy, which is a record of string keys and boolean values. - */ -export type PropertyPolicy = Record; -/** - * A type representing a policy item, which can be a {@link WildcardPolicy wildcard policy}, a property policy, `undefined`, or defined by an attenuator - */ -export type PolicyItem = WildcardPolicy | PropertyPolicy | T; -/** - * An object representing a nested attenuation definition. - */ -export type NestedAttenuationDefinition = Record; -/** - * An object representing a base package policy. - */ -export type PackagePolicy = { - /** - * - The default attenuator. - */ - defaultAttenuator?: string | undefined; - /** - * - The policy item for packages. - */ - packages?: PolicyItem | undefined; - /** - * - The policy item or full attenuation definition for globals. - */ - globals?: AttenuationDefinition | PolicyItem | undefined; - /** - * - The policy item or nested attenuation definition for builtins. - */ - builtins?: NestedAttenuationDefinition | PolicyItem | undefined; - /** - * - Whether to disable global freeze. - */ - noGlobalFreeze?: boolean | undefined; -}; -/** - * An object representing a base policy. - */ -export type Policy = { - /** - * - The package policies for the resources. - */ - resources: Record>; - /** - * - The default attenuator. - */ - defaultAttenuator?: string | undefined; - /** - * - The package policy for the entry. - */ - entry?: PackagePolicy | undefined; -}; -/** - * Any object. All objects. Not `null`, though. - */ -export type SomeObject = Record; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/types.d.ts.map b/packages/compartment-mapper/src/types.d.ts.map deleted file mode 100644 index 613457aaab..0000000000 --- a/packages/compartment-mapper/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"oCAKc,OAAO,KAAK,EAAE,qBAAqB;8CACnC,OAAO,KAAK,EAAE,+BAA+B;yBAC7C,OAAO,KAAK,EAAE,UAAU;+BACxB,OAAO,KAAK,EAAE,gBAAgB;wBAC9B,OAAO,KAAK,EAAE,SAAS;;;;;;UAWvB,MAAM,MAAM,CAAC;WACb,eAAe;kBACf,OAAO,MAAM,EAAE,qBAAqB,CAAC;;;;;;;iBAQrC,MAAM;YACN,MAAM;;;;;;;;WASN,MAAM;;;;;;;;;;;UAGN,MAAM;cAGN,MAAM;;;;;;;aAIN,OAAO,MAAM,EAAE,gBAAgB,CAAC;YAChC,OAAO,MAAM,EAAE,eAAe,CAAC;;;;aAC/B,OAAO,MAAM,EAAE,QAAQ,CAAC;;;;WACxB,OAAO,MAAM,EAAE,QAAQ,CAAC;;;;YACxB,MAAM;;;;;;;kBAQN,MAAM;;;;;;;;;;;;;;;;;;;iBAiBN,MAAM;;;uBAKP,KAAK,GAAG,KAAK,GAAG,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,cAAc,GAAG,cAAc;;WAS1E,OAAO;cACP,UAAU;;iCAKb,MAAM,SACN,UAAU,KACR,QAAQ,IAAI,CAAC;;UAKZ,MAAM;;gCAKT,MAAM,KACJ,QAAQ,UAAU,CAAC;;;;qCAOrB,MAAM,KACJ,QAAQ,UAAU,GAAG,SAAS,CAAC;;;;;;qCASjC,MAAM,KACJ,QAAQ,MAAM,CAAC;6BAKjB,MAAM,GAAG,UAAU,KACjB,MAAM;;YAKL,SAAS;;;kEAOV,QAAQ,UAAU,CAAC;+BAKnB,QAAQ,UAAU,CAAC;;UAKlB,MAAM;eACN,WAAW;;;;;;8BAQZ,UAAU,GAAG,MAAM;;UAMlB,MAAM;eACN,WAAW;mBACX,MAAM;;;WAKN,OAAO;;4CASV,MAAM,qBACN,MAAM,KACJ,MAAM;0CAKR,QAAQ,GAAG,SAAS,KAClB,OAAO;;qBAKN,MAAM;iBACN,MAAM;iBACN,2BAA2B;WAC3B,OAAO;sBACP,gBAAgB;kBAChB,OAAO,MAAM,EAAE,WAAW,CAAC;;wCAK9B,sBAAsB,KACpB,UAAU;;iBAKT,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;wCAKT,MAAM,WACN,oBAAoB;;iBAKjB,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;qDAKT,+BAA+B,KAC7B,MAAM;8BAKR,UAAU,aACV,MAAM,YACN,MAAM,mBACN,MAAM;;;;;kBAMJ,QAAQ;IACpB,KAAS,EAAE,UAAU,CAAC;IACtB,MAAU,EAAE,QAAQ,CAAC;IACrB,MAAU,EAAE,qBAAqB,CAAC;IAClC,SAAa,CAAC,EAAE,MAAM,CAAC;CACpB,CAAC;;;;;;sBAQS,OAAO;WACP,OAAO;;0DAKV,MAAM,mBACN,MAAM,KACJ,MAAM,GAAC,SAAS;+CAKlB,MAAM,KACJ,QAAQ,+BAA+B,GAAC,SAAS,CAAC;;;;;;;;;cAcjD,MAAM;;;;;;;;gCAUP,OAAO,MAAM,EAAE,oBAAoB,CAAC;;;oBAMnC,eAAe;uBACf,iBAAiB;;;;0BAMlB,cAAc,GAAG,gBAAgB;+BAIjC,OAAO,MAAM,EAAE,eAAe,CAAC;sCAKjC,UAAU,aACV,MAAM,YACN,MAAM,mBACN,MAAM;;kBAGJ,QAAQ;IAAC,KAAK,EAAE,UAAU,CAAC;IAAC,MAAM,EAAE,QAAQ,CAAC;IAAC,SAAS,CAAC,EAAE,MAAM,CAAA;CAAC,CAAC;sBASlE,OAAO,MAAM,EAAE,kBAAkB,CAAC;iCAIlC,OAAO,MAAM,EAAE,YAAY,CAAC;;;;;;;;;;;;;;;;;;;;;;;;WAiB3B,UAAU;YACV,QAAQ;;0DAKX,MAAM,mBACN,MAAM,kBACN,MAAM;;;;;aAQH,MAAM;;;;;;;;;;;;;UAgBN,MAAM;UACN,MAAM,MAAM,CAAC;;;;;;;;;eAMb,MAAM;;;;;;;;;4CAMP,CAAC,GAAG,EAAE,GAAG,GAAG,EAAE,CAAC;;;;oCAKf,yBAAyB,kBAAgC;;iBAKxD,MAAM;eACN,MAAM,GAAG,IAAI;;;;;;;4FAehB,MAAM,kBACN,OAAO,WAAW,EAAE,GAAG,CAAC,cACxB,OAAO,WAAW,EAAE,GAAG,CAAC,KACtB,IAAI;gHASN,MAAM,MACN,CAAC,KACC,CAAC;;kCAKsB,MAAM,GAAC,IAAI,KAAK,QAAQ,UAAU,CAAC;;;;;6BAK1D,KAAK;;;;6BAKL,OAAO,MAAM,EAAE,OAAO,CAAC;;;;mCAMvB,cAAc,GAAC,cAAc,GAAC,CAAC;;;;0CAK/B,OAAO,MAAM,EAAE,qBAAqB,GAAG,OAAO,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;eAsB9C,OAAO,MAAM,EAAE,cAAc,iBAAiB,EAAE,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;;;;;;;;;;;;;yBAOxF,OAAO,WAAW,EAAE,GAAG,CAAC"} \ No newline at end of file diff --git a/packages/compartment-mapper/src/url.d.ts b/packages/compartment-mapper/src/url.d.ts deleted file mode 100644 index a8d30a1a11..0000000000 --- a/packages/compartment-mapper/src/url.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function relative(referrer: string, location: string): string; -//# sourceMappingURL=url.d.ts.map \ No newline at end of file diff --git a/packages/compartment-mapper/src/url.d.ts.map b/packages/compartment-mapper/src/url.d.ts.map deleted file mode 100644 index df33c46c45..0000000000 --- a/packages/compartment-mapper/src/url.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"url.d.ts","sourceRoot":"","sources":["url.js"],"names":[],"mappings":"AA2BO,mCAJI,MAAM,YACN,MAAM,GACJ,MAAM,CAyDlB"} \ No newline at end of file diff --git a/packages/daemon/index.d.ts b/packages/daemon/index.d.ts deleted file mode 100644 index 5dd49f3b4c..0000000000 --- a/packages/daemon/index.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export { makeEndoClient } from "./src/client.js"; -export function terminate(locator?: { - statePath: string; - ephemeralStatePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function start(locator?: { - statePath: string; - ephemeralStatePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function clean(locator?: { - statePath: string; - ephemeralStatePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function restart(locator?: { - statePath: string; - ephemeralStatePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function stop(locator?: { - statePath: string; - ephemeralStatePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function purge(locator?: { - statePath: string; - ephemeralStatePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export { makeRefReader, makeRefIterator } from "./src/ref-reader.js"; -export { makeReaderRef, makeIteratorRef } from "./src/reader-ref.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/daemon/index.d.ts.map b/packages/daemon/index.d.ts.map deleted file mode 100644 index a211ba9879..0000000000 --- a/packages/daemon/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";AA0DO;;;;;kBAcN;AAEM;;;;;iBA8DN;AASM;;;;;kBAIN;AAEM;;;;;iBAIN;AAEM;;;;;kBAGN;AAEM;;;;;kBAwBN"} \ No newline at end of file diff --git a/packages/daemon/reader-ref.d.ts b/packages/daemon/reader-ref.d.ts deleted file mode 100644 index a8db169ffc..0000000000 --- a/packages/daemon/reader-ref.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/reader-ref.js"; -//# sourceMappingURL=reader-ref.d.ts.map \ No newline at end of file diff --git a/packages/daemon/reader-ref.d.ts.map b/packages/daemon/reader-ref.d.ts.map deleted file mode 100644 index cd9cf9f471..0000000000 --- a/packages/daemon/reader-ref.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader-ref.d.ts","sourceRoot":"","sources":["reader-ref.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/ref-reader.d.ts b/packages/daemon/ref-reader.d.ts deleted file mode 100644 index a54191c61a..0000000000 --- a/packages/daemon/ref-reader.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/ref-reader.js"; -//# sourceMappingURL=ref-reader.d.ts.map \ No newline at end of file diff --git a/packages/daemon/ref-reader.d.ts.map b/packages/daemon/ref-reader.d.ts.map deleted file mode 100644 index 3ed96bbf99..0000000000 --- a/packages/daemon/ref-reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref-reader.d.ts","sourceRoot":"","sources":["ref-reader.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/client.d.ts b/packages/daemon/src/client.d.ts deleted file mode 100644 index 68720a6e7f..0000000000 --- a/packages/daemon/src/client.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makeEndoClient(name: string, sockPath: string, cancelled: Promise, bootstrap?: TBootstrap | undefined): Promise<{ - getBootstrap: () => Promise; - closed: Promise; -}>; -//# sourceMappingURL=client.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/client.d.ts.map b/packages/daemon/src/client.d.ts.map deleted file mode 100644 index d5169c4029..0000000000 --- a/packages/daemon/src/client.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["client.js"],"names":[],"mappings":"AAaO,iDALI,MAAM,YACN,MAAM,aACN,QAAQ,IAAI,CAAC;;;GA2BvB"} \ No newline at end of file diff --git a/packages/daemon/src/connection.d.ts b/packages/daemon/src/connection.d.ts deleted file mode 100644 index 7b032c8123..0000000000 --- a/packages/daemon/src/connection.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function makeMessageCapTP(name: string, writer: import('@endo/stream').Stream, reader: import('@endo/stream').Stream, cancelled: Promise, bootstrap: TBootstrap): { - getBootstrap: () => Promise; - closed: Promise; -}; -export function messageToBytes(message: any): Uint8Array; -export function bytesToMessage(bytes: Uint8Array): any; -export function makeNetstringCapTP(name: string, bytesWriter: import('@endo/stream').Writer, bytesReader: import('@endo/stream').Reader, cancelled: Promise, bootstrap: TBootstrap): { - getBootstrap: () => Promise; - closed: Promise; -}; -//# sourceMappingURL=connection.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/connection.d.ts.map b/packages/daemon/src/connection.d.ts.map deleted file mode 100644 index 481202787f..0000000000 --- a/packages/daemon/src/connection.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"connection.d.ts","sourceRoot":"","sources":["connection.js"],"names":[],"mappings":"AAiBO,mDANI,MAAM,UACN,OAAO,cAAc,EAAE,MAAM,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,OAAO,CAAC,UAC7D,OAAO,cAAc,EAAE,MAAM,CAAC,GAAG,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,aACnE,QAAQ,IAAI,CAAC;;;EAgCvB;AAGM,wCADK,GAAG,cAMd;AAGM,sCADK,UAAU,OAMrB;AAUM,qDANI,MAAM,eACN,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,eACzC,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,aACzC,QAAQ,IAAI,CAAC;;;EAyBvB"} \ No newline at end of file diff --git a/packages/daemon/src/context.d.ts b/packages/daemon/src/context.d.ts deleted file mode 100644 index ed33fbf33d..0000000000 --- a/packages/daemon/src/context.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function makeContextMaker({ controllerForId, provideController }: { - controllerForId: any; - provideController: any; -}): (id: string) => { - id: string; - cancel: (reason: Error, prefix?: string | undefined) => Promise; - cancelled: Promise; - disposed: Promise; - thatDiesIfThisDies: (dependentId: string) => void; - thisDiesIfThatDies: (dependencyId: string) => void; - onCancel: (hook: () => void) => void; -}; -//# sourceMappingURL=context.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/context.d.ts.map b/packages/daemon/src/context.d.ts.map deleted file mode 100644 index a750ea594c..0000000000 --- a/packages/daemon/src/context.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"context.d.ts","sourceRoot":"","sources":["context.js"],"names":[],"mappings":"AAIO;;;SAEM,MAAM;;qBAmBJ,KAAK;;;sCAuBL,MAAM;uCASN,MAAM;qBAQN,MAAM,IAAI;EAmBxB"} \ No newline at end of file diff --git a/packages/daemon/src/daemon-node-powers.d.ts b/packages/daemon/src/daemon-node-powers.d.ts deleted file mode 100644 index 4ea8c82731..0000000000 --- a/packages/daemon/src/daemon-node-powers.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export function makeSocketPowers({ net }: { - net: typeof import('net'); -}): import('./types.js').SocketPowers; -export function makeNetworkPowers({ net }: { - net: typeof import('net'); -}): import('./types.js').NetworkPowers; -export function makeFilePowers({ fs, path: fspath }: { - fs: any; - path: any; -}): { - makeFileReader: (path: string) => import("@endo/stream").Reader; - makeFileWriter: (path: string) => import('@endo/stream').Writer; - writeFileText: (path: string, text: string) => Promise; - readFileText: (path: string) => Promise; - maybeReadFileText: (path: string) => Promise; - readDirectory: (path: string) => Promise; - makePath: (path: string) => Promise; - joinPath: (...components: any[]) => any; - removePath: (path: string) => Promise; - renamePath: (source: any, target: any) => Promise; -}; -export function makeCryptoPowers(crypto: typeof import('crypto')): import('./types.js').CryptoPowers; -export function makeDaemonicPersistencePowers(filePowers: import('./types.js').FilePowers, cryptoPowers: import('./types.js').CryptoPowers, locator: import('./types.js').Locator, includeWebPageBundler?: boolean | undefined): import('./types.js').DaemonicPersistencePowers; -export function makeDaemonicControlPowers(locator: any, fileURLToPath: any, filePowers: any, fs: any, popen: any): { - makeWorker: (workerId: string, daemonWorkerFacet: import('./types.js').DaemonWorkerFacet, cancelled: Promise) => Promise<{ - workerTerminated: Promise; - workerDaemonFacet: PromiseLike; - }>; -}; -export function makeDaemonicPowers({ locator, fs, popen, url, filePowers, cryptoPowers, }: { - locator: import('./types.js').Locator; - fs: typeof import('fs'); - popen: typeof import('child_process'); - url: typeof import('url'); - filePowers: import('./types.js').FilePowers; - cryptoPowers: import('./types.js').CryptoPowers; -}): import('./types.js').DaemonicPowers; -//# sourceMappingURL=daemon-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/daemon-node-powers.d.ts.map b/packages/daemon/src/daemon-node-powers.d.ts.map deleted file mode 100644 index 8fa7c8b9b1..0000000000 --- a/packages/daemon/src/daemon-node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"daemon-node-powers.d.ts","sourceRoot":"","sources":["daemon-node-powers.js"],"names":[],"mappings":"AAqBO;IAHkC,GAAG,EAAjC,cAAc,KAAK,CAAC;IAClB,OAAO,YAAY,EAAE,YAAY,CA+F7C;AAOM;IAHkC,GAAG,EAAjC,cAAc,KAAK,CAAC;IAClB,OAAO,YAAY,EAAE,aAAa,CAyC9C;AAEM;;;;2BAIM,MAAM;2BAQN,MAAM,KACJ,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC;0BAQ3C,MAAM,QACN,MAAM;yBASN,MAAM;8BAON,MAAM;0BAcN,MAAM;qBAON,MAAM;;uBAON,MAAM;;EA4BlB;AAMM,yCAHI,cAAc,QAAQ,CAAC,GACrB,OAAO,YAAY,EAAE,YAAY,CA2B7C;AASM,0DANI,OAAO,YAAY,EAAE,UAAU,gBAC/B,OAAO,YAAY,EAAE,YAAY,WACjC,OAAO,YAAY,EAAE,OAAO,gDAE1B,OAAO,YAAY,EAAE,yBAAyB,CA2I1D;AAEM;2BAYM,MAAM,qBACN,OAAO,YAAY,EAAE,iBAAiB,aACtC,QAAQ,KAAK,CAAC;;;;EA6F1B;AAYM;IARuC,OAAO,EAA1C,OAAO,YAAY,EAAE,OAAO;IACF,EAAE,EAA5B,cAAc,IAAI,CAAC;IACkB,KAAK,EAA1C,cAAc,eAAe,CAAC;IACH,GAAG,EAA9B,cAAc,KAAK,CAAC;IACkB,UAAU,EAAhD,OAAO,YAAY,EAAE,UAAU;IACS,YAAY,EAApD,OAAO,YAAY,EAAE,YAAY;IAC/B,OAAO,YAAY,EAAE,cAAc,CAgC/C"} \ No newline at end of file diff --git a/packages/daemon/src/daemon-node.d.ts b/packages/daemon/src/daemon-node.d.ts deleted file mode 100644 index fd05f5eddb..0000000000 --- a/packages/daemon/src/daemon-node.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=daemon-node.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/daemon-node.d.ts.map b/packages/daemon/src/daemon-node.d.ts.map deleted file mode 100644 index c37030e6d7..0000000000 --- a/packages/daemon/src/daemon-node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"daemon-node.d.ts","sourceRoot":"","sources":["daemon-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/daemon.d.ts b/packages/daemon/src/daemon.d.ts deleted file mode 100644 index 73a71178d2..0000000000 --- a/packages/daemon/src/daemon.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export function makeDaemon(powers: import('./types.js').DaemonicPowers, daemonLabel: string, cancel: (error: Error) => void, cancelled: Promise, specials?: import("./types.js").Specials | undefined): Promise<{ - endoBootstrap: import("@endo/eventual-send").DataOnly<{ - ping: () => Promise; - terminate: () => Promise; - host: () => Promise; - leastAuthority: () => Promise; - gateway: () => Promise; - reviveNetworks: () => Promise; - addPeerInfo: (peerInfo: import("./types.js").PeerInfo) => Promise; - }> & import("@endo/eventual-send").RemotableBrand Promise; - terminate: () => Promise; - host: () => Promise; - leastAuthority: () => Promise; - gateway: () => Promise; - reviveNetworks: () => Promise; - addPeerInfo: (peerInfo: import("./types.js").PeerInfo) => Promise; - }>, { - ping: () => Promise; - terminate: () => Promise; - host: () => Promise; - leastAuthority: () => Promise; - gateway: () => Promise; - reviveNetworks: () => Promise; - addPeerInfo: (peerInfo: import("./types.js").PeerInfo) => Promise; - }>; - cancelGracePeriod: (reason: any) => void; -}>; -//# sourceMappingURL=daemon.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/daemon.d.ts.map b/packages/daemon/src/daemon.d.ts.map deleted file mode 100644 index e626fdb131..0000000000 --- a/packages/daemon/src/daemon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"daemon.d.ts","sourceRoot":"","sources":["daemon.js"],"names":[],"mappings":"AAgqDO,mCANI,OAAO,YAAY,EAAE,cAAc,eACnC,MAAM,kBACE,KAAK,KAAK,IAAI,aACtB,QAAQ,KAAK,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;GAqCxB"} \ No newline at end of file diff --git a/packages/daemon/src/deferred-tasks.d.ts b/packages/daemon/src/deferred-tasks.d.ts deleted file mode 100644 index f99771c731..0000000000 --- a/packages/daemon/src/deferred-tasks.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeDeferredTasks(): import('./types.js').DeferredTasks; -//# sourceMappingURL=deferred-tasks.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/deferred-tasks.d.ts.map b/packages/daemon/src/deferred-tasks.d.ts.map deleted file mode 100644 index d08d5e2dd7..0000000000 --- a/packages/daemon/src/deferred-tasks.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deferred-tasks.d.ts","sourceRoot":"","sources":["deferred-tasks.js"],"names":[],"mappings":"AAGO,qCAFM,OAAO,YAAY,EAAE,aAAa,CAAC,GAAG,CAAC,CAcnD"} \ No newline at end of file diff --git a/packages/daemon/src/directory.d.ts b/packages/daemon/src/directory.d.ts deleted file mode 100644 index ac902ac951..0000000000 --- a/packages/daemon/src/directory.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -export function makeDirectoryMaker({ provide, getIdForRef, formulateDirectory, }: { - provide: import('./types.js').DaemonCore['provide']; - getIdForRef: import('./types.js').DaemonCore['getIdForRef']; - formulateDirectory: import('./types.js').DaemonCore['formulateDirectory']; -}): { - makeIdentifiedDirectory: ({ petStoreId, context }: { - petStoreId: string; - context: import('./types.js').Context; - }) => Promise<{ - external: { - followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - makeDirectory(petName: string): Promise; - has(...petNamePath: string[]): Promise; - identify(...petNamePath: string[]): Promise; - list(...petNamePath: string[]): Promise; - listIdentifiers(...petNamePath: string[]): Promise; - lookup(...petNamePath: string[]): Promise; - reverseLookup(value: unknown): string[]; - write(petNamePath: string[], id: any): Promise; - remove(...petNamePath: string[]): Promise; - move(fromPetName: string[], toPetName: string[]): Promise; - copy(fromPetName: string[], toPetName: string[]): Promise; - } & import("@endo/eventual-send").RemotableBrand<{}, { - followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - makeDirectory(petName: string): Promise; - has(...petNamePath: string[]): Promise; - identify(...petNamePath: string[]): Promise; - list(...petNamePath: string[]): Promise; - listIdentifiers(...petNamePath: string[]): Promise; - lookup(...petNamePath: string[]): Promise; - reverseLookup(value: unknown): string[]; - write(petNamePath: string[], id: any): Promise; - remove(...petNamePath: string[]): Promise; - move(fromPetName: string[], toPetName: string[]): Promise; - copy(fromPetName: string[], toPetName: string[]): Promise; - }>; - internal: {}; - }>; - makeDirectoryNode: import("./types.js").MakeDirectoryNode; -}; -//# sourceMappingURL=directory.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/directory.d.ts.map b/packages/daemon/src/directory.d.ts.map deleted file mode 100644 index 063e27d301..0000000000 --- a/packages/daemon/src/directory.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"directory.d.ts","sourceRoot":"","sources":["directory.js"],"names":[],"mappings":"AAaO;IAJqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACW,WAAW,EAAhE,OAAO,YAAY,EAAE,UAAU,CAAC,aAAa,CAAC;IACc,kBAAkB,EAA9E,OAAO,YAAY,EAAE,UAAU,CAAC,oBAAoB,CAAC;;;QAuMtC,UAAU,EAAvB,MAAM;QAC6B,OAAO,EAA1C,OAAO,YAAY,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAoBxC"} \ No newline at end of file diff --git a/packages/daemon/src/formula-identifier.d.ts b/packages/daemon/src/formula-identifier.d.ts deleted file mode 100644 index b014823fc7..0000000000 --- a/packages/daemon/src/formula-identifier.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function assertValidId(id: string, petName?: string | undefined): void; -export function parseId(id: string): import("./types").IdRecord; -export function formatId({ number, node }: import("./types").IdRecord): string; -//# sourceMappingURL=formula-identifier.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/formula-identifier.d.ts.map b/packages/daemon/src/formula-identifier.d.ts.map deleted file mode 100644 index a5d0d15d5b..0000000000 --- a/packages/daemon/src/formula-identifier.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"formula-identifier.d.ts","sourceRoot":"","sources":["formula-identifier.js"],"names":[],"mappings":"AAWO,kCAJI,MAAM,iCAEJ,IAAI,CAUhB;AAMM,4BAHI,MAAM,GACJ,OAAO,SAAS,EAAE,QAAQ,CAkBtC;AAMM,2CAHI,OAAO,SAAS,EAAE,QAAQ,GACxB,MAAM,CAMlB"} \ No newline at end of file diff --git a/packages/daemon/src/guest.d.ts b/packages/daemon/src/guest.d.ts deleted file mode 100644 index 7a8de7e153..0000000000 --- a/packages/daemon/src/guest.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -export function makeGuestMaker({ provide, provideControllerAndResolveHandle, makeMailbox, makeDirectoryNode, }: { - provide: import('./types.js').DaemonCore['provide']; - provideControllerAndResolveHandle: import('./types.js').DaemonCore['provideControllerAndResolveHandle']; - makeMailbox: import('./types.js').MakeMailbox; - makeDirectoryNode: import('./types.js').MakeDirectoryNode; -}): (guestId: string, hostHandleId: string, petStoreId: string, mainWorkerId: string, context: import('./types.js').Context) => Promise<{ - external: { - followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - listMessages: () => Promise; - resolve: (messageNumber: number, resolutionName: string) => Promise; - reject: (messageNumber: number, message?: string | undefined) => Promise; - adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; - dismiss: (messageNumber: number) => Promise; - request: (recipientName: string, what: string, responseName: string) => Promise; - send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; - makeDirectory(petName: string): Promise; - has(...petNamePath: string[]): Promise; - identify(...petNamePath: string[]): Promise; - list(...petNamePath: string[]): Promise; - listIdentifiers(...petNamePath: string[]): Promise; - lookup(...petNamePath: string[]): Promise; - reverseLookup(value: unknown): string[]; - write(petNamePath: string[], id: any): Promise; - remove(...petNamePath: string[]): Promise; - move(fromPetName: string[], toPetName: string[]): Promise; - copy(fromPetName: string[], toPetName: string[]): Promise; - } & import("@endo/eventual-send").RemotableBrand<{}, { - followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - listMessages: () => Promise; - resolve: (messageNumber: number, resolutionName: string) => Promise; - reject: (messageNumber: number, message?: string | undefined) => Promise; - adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; - dismiss: (messageNumber: number) => Promise; - request: (recipientName: string, what: string, responseName: string) => Promise; - send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; - makeDirectory(petName: string): Promise; - has(...petNamePath: string[]): Promise; - identify(...petNamePath: string[]): Promise; - list(...petNamePath: string[]): Promise; - listIdentifiers(...petNamePath: string[]): Promise; - lookup(...petNamePath: string[]): Promise; - reverseLookup(value: unknown): string[]; - write(petNamePath: string[], id: any): Promise; - remove(...petNamePath: string[]): Promise; - move(fromPetName: string[], toPetName: string[]): Promise; - copy(fromPetName: string[], toPetName: string[]): Promise; - }>; - internal: { - receive: (senderId: string, strings: string[], edgeNames: string[], ids: string[], receiverId: string) => void; - respond: (what: string, responseName: string, senderId: string, senderPetStore: import("./types.js").PetStore, recipientId?: string | undefined) => Promise; - petStore: import("./types.js").PetStore; - }; -}>; -//# sourceMappingURL=guest.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/guest.d.ts.map b/packages/daemon/src/guest.d.ts.map deleted file mode 100644 index 07e24662c3..0000000000 --- a/packages/daemon/src/guest.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"guest.d.ts","sourceRoot":"","sources":["guest.js"],"names":[],"mappings":"AAaO;IALqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACiC,iCAAiC,EAA5G,OAAO,YAAY,EAAE,UAAU,CAAC,mCAAmC,CAAC;IAC7B,WAAW,EAAlD,OAAO,YAAY,EAAE,WAAW;IACa,iBAAiB,EAA9D,OAAO,YAAY,EAAE,iBAAiB;cASpC,MAAM,gBACN,MAAM,cACN,MAAM,gBACN,MAAM,WACN,OAAO,YAAY,EAAE,OAAO;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2GxC"} \ No newline at end of file diff --git a/packages/daemon/src/host.d.ts b/packages/daemon/src/host.d.ts deleted file mode 100644 index a8971897a7..0000000000 --- a/packages/daemon/src/host.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -export function makeHostMaker({ provide, provideController, cancelValue, formulateWorker, formulateHost, formulateGuest, formulateEval, formulateUnconfined, formulateBundle, formulateReadableBlob, getAllNetworkAddresses, makeMailbox, makeDirectoryNode, ownNodeIdentifier, }: { - provide: import('./types.js').DaemonCore['provide']; - provideController: import('./types.js').DaemonCore['provideController']; - cancelValue: import('./types.js').DaemonCore['cancelValue']; - formulateWorker: import('./types.js').DaemonCore['formulateWorker']; - formulateHost: import('./types.js').DaemonCore['formulateHost']; - formulateGuest: import('./types.js').DaemonCore['formulateGuest']; - formulateEval: import('./types.js').DaemonCore['formulateEval']; - formulateUnconfined: import('./types.js').DaemonCore['formulateUnconfined']; - formulateBundle: import('./types.js').DaemonCore['formulateBundle']; - formulateReadableBlob: import('./types.js').DaemonCore['formulateReadableBlob']; - getAllNetworkAddresses: import('./types.js').DaemonCore['getAllNetworkAddresses']; - makeMailbox: import('./types.js').MakeMailbox; - makeDirectoryNode: import('./types.js').MakeDirectoryNode; - ownNodeIdentifier: string; -}): (hostId: string, storeId: string, inspectorId: string, mainWorkerId: string, endoId: string, networksDirectoryId: string, leastAuthorityId: string, platformNames: { - [name: string]: string; -}, context: import('./types.js').Context) => Promise<{ - external: { - followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - listMessages: () => Promise; - resolve: (messageNumber: number, resolutionName: string) => Promise; - reject: (messageNumber: number, message?: string | undefined) => Promise; - adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; - dismiss: (messageNumber: number) => Promise; - request: (recipientName: string, what: string, responseName: string) => Promise; - send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; - store(readerRef: import("@endo/eventual-send").ERef>, petName: string): Promise; - provideGuest(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; - provideHost(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; - makeDirectory(petName: string): Promise; - /** @type {import('./types.js').EndoHost['cancel']} */ - provideWorker(petName: string): Promise; - evaluate(workerPetName: string | undefined, source: string, codeNames: string[], petNames: string[], resultName?: string | undefined): Promise; - makeUnconfined(workerName: string, specifier: string, powersName: string, resultName?: string | undefined): Promise; - makeBundle(workerPetName: string | undefined, bundleName: string, powersName: string, resultName?: string | undefined): Promise; - cancel(petName: string, reason: Error): Promise; - gateway(): Promise; - getPeerInfo(): Promise; - addPeerInfo(peerInfo: import("./types.js").PeerInfo): Promise; /** @type {import('./types.js').EndoHost['getPeerInfo']} */ - has(...petNamePath: string[]): Promise; - identify(...petNamePath: string[]): Promise; - list(...petNamePath: string[]): Promise; - listIdentifiers(...petNamePath: string[]): Promise; - lookup(...petNamePath: string[]): Promise; - reverseLookup(value: unknown): string[]; - write(petNamePath: string[], id: any): Promise; - remove(...petNamePath: string[]): Promise; - move(fromPetName: string[], toPetName: string[]): Promise; - copy(fromPetName: string[], toPetName: string[]): Promise; - } & import("@endo/eventual-send").RemotableBrand<{}, { - followChanges: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - followMessages: () => import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; - listMessages: () => Promise; - resolve: (messageNumber: number, resolutionName: string) => Promise; - reject: (messageNumber: number, message?: string | undefined) => Promise; - adopt: (messageNumber: number, edgeName: string, petName: string) => Promise; - dismiss: (messageNumber: number) => Promise; - request: (recipientName: string, what: string, responseName: string) => Promise; - send: (recipientName: string, strings: string[], edgeNames: string[], petNames: string[]) => Promise; - store(readerRef: import("@endo/eventual-send").ERef>, petName: string): Promise; - provideGuest(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; - provideHost(petName?: string | undefined, opts?: import("./types.js").MakeHostOrGuestOptions | undefined): Promise; - makeDirectory(petName: string): Promise; - /** @type {import('./types.js').EndoHost['cancel']} */ - provideWorker(petName: string): Promise; - evaluate(workerPetName: string | undefined, source: string, codeNames: string[], petNames: string[], resultName?: string | undefined): Promise; - makeUnconfined(workerName: string, specifier: string, powersName: string, resultName?: string | undefined): Promise; - makeBundle(workerPetName: string | undefined, bundleName: string, powersName: string, resultName?: string | undefined): Promise; - cancel(petName: string, reason: Error): Promise; - gateway(): Promise; - getPeerInfo(): Promise; - addPeerInfo(peerInfo: import("./types.js").PeerInfo): Promise; /** @type {import('./types.js').EndoHost['getPeerInfo']} */ - has(...petNamePath: string[]): Promise; - identify(...petNamePath: string[]): Promise; - list(...petNamePath: string[]): Promise; - listIdentifiers(...petNamePath: string[]): Promise; - lookup(...petNamePath: string[]): Promise; - reverseLookup(value: unknown): string[]; - write(petNamePath: string[], id: any): Promise; - remove(...petNamePath: string[]): Promise; - move(fromPetName: string[], toPetName: string[]): Promise; - copy(fromPetName: string[], toPetName: string[]): Promise; - }>; - internal: { - receive: (senderId: string, strings: string[], edgeNames: string[], ids: string[], receiverId: string) => void; - respond: (what: string, responseName: string, senderId: string, senderPetStore: import("./types.js").PetStore, recipientId?: string | undefined) => Promise; - petStore: import("./types.js").PetStore; - }; -}>; -//# sourceMappingURL=host.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/host.d.ts.map b/packages/daemon/src/host.d.ts.map deleted file mode 100644 index 17ebd641f3..0000000000 --- a/packages/daemon/src/host.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"host.d.ts","sourceRoot":"","sources":["host.js"],"names":[],"mappings":"AAgCO;IAfqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACiB,iBAAiB,EAA5E,OAAO,YAAY,EAAE,UAAU,CAAC,mBAAmB,CAAC;IACC,WAAW,EAAhE,OAAO,YAAY,EAAE,UAAU,CAAC,aAAa,CAAC;IACW,eAAe,EAAxE,OAAO,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACK,aAAa,EAApE,OAAO,YAAY,EAAE,UAAU,CAAC,eAAe,CAAC;IACQ,cAAc,EAAtE,OAAO,YAAY,EAAE,UAAU,CAAC,gBAAgB,CAAC;IACM,aAAa,EAApE,OAAO,YAAY,EAAE,UAAU,CAAC,eAAe,CAAC;IACa,mBAAmB,EAAhF,OAAO,YAAY,EAAE,UAAU,CAAC,qBAAqB,CAAC;IACG,eAAe,EAAxE,OAAO,YAAY,EAAE,UAAU,CAAC,iBAAiB,CAAC;IACa,qBAAqB,EAApF,OAAO,YAAY,EAAE,UAAU,CAAC,uBAAuB,CAAC;IACQ,sBAAsB,EAAtF,OAAO,YAAY,EAAE,UAAU,CAAC,wBAAwB,CAAC;IAClB,WAAW,EAAlD,OAAO,YAAY,EAAE,WAAW;IACa,iBAAiB,EAA9D,OAAO,YAAY,EAAE,iBAAiB;IACzB,iBAAiB,EAA9B,MAAM;aAmBJ,MAAM,WACN,MAAM,eACN,MAAM,gBACN,MAAM,UACN,MAAM,uBACN,MAAM,oBACN,MAAM;;YAEN,OAAO,YAAY,EAAE,OAAO;;;;;;;;;;;;;;;QA8WrC,sDAAsD;;;;;;;;6EAqBtD,2DAA2D;;;;;;;;;;;;;;;;;;;;;;;;;QArB3D,sDAAsD;;;;;;;;6EAqBtD,2DAA2D;;;;;;;;;;;;;;;;;GAuF9D"} \ No newline at end of file diff --git a/packages/daemon/src/mail.d.ts b/packages/daemon/src/mail.d.ts deleted file mode 100644 index b77e7626fc..0000000000 --- a/packages/daemon/src/mail.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makeMailboxMaker({ provide, provideControllerAndResolveHandle, }: { - provide: import('./types.js').DaemonCore['provide']; - provideControllerAndResolveHandle: import('./types.js').DaemonCore['provideControllerAndResolveHandle']; -}): import('./types.js').MakeMailbox; -//# sourceMappingURL=mail.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/mail.d.ts.map b/packages/daemon/src/mail.d.ts.map deleted file mode 100644 index 585a70233a..0000000000 --- a/packages/daemon/src/mail.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"mail.d.ts","sourceRoot":"","sources":["mail.js"],"names":[],"mappings":"AAcO;IAJqD,OAAO,EAAxD,OAAO,YAAY,EAAE,UAAU,CAAC,SAAS,CAAC;IACiC,iCAAiC,EAA5G,OAAO,YAAY,EAAE,UAAU,CAAC,mCAAmC,CAAC;IAClE,OAAO,YAAY,EAAE,WAAW,CAia5C"} \ No newline at end of file diff --git a/packages/daemon/src/networks/loopback.d.ts b/packages/daemon/src/networks/loopback.d.ts deleted file mode 100644 index 7c50cc4a6e..0000000000 --- a/packages/daemon/src/networks/loopback.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function makeLoopbackNetwork({ provide }: { - provide: import('../types.js').DaemonCore['provide']; -}): import('@endo/far').FarRef; -//# sourceMappingURL=loopback.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/networks/loopback.d.ts.map b/packages/daemon/src/networks/loopback.d.ts.map deleted file mode 100644 index a55728a5e2..0000000000 --- a/packages/daemon/src/networks/loopback.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"loopback.d.ts","sourceRoot":"","sources":["loopback.js"],"names":[],"mappings":"AAQO;IAHsD,OAAO,EAAzD,OAAO,aAAa,EAAE,UAAU,CAAC,SAAS,CAAC;IACzC,OAAO,WAAW,EAAE,MAAM,CAAC,OAAO,aAAa,EAAE,WAAW,CAAC,CAkBzE"} \ No newline at end of file diff --git a/packages/daemon/src/networks/tcp-netstring.d.ts b/packages/daemon/src/networks/tcp-netstring.d.ts deleted file mode 100644 index 3406a61b51..0000000000 --- a/packages/daemon/src/networks/tcp-netstring.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function make(powers: any, context: any): Promise<{ - addresses: () => string[]; - supports: (address: any) => boolean; - connect: (address: any, connectionContext: any) => Promise; -} & import("@endo/eventual-send").RemotableBrand<{}, { - addresses: () => string[]; - supports: (address: any) => boolean; - connect: (address: any, connectionContext: any) => Promise; -}>>; -//# sourceMappingURL=tcp-netstring.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/networks/tcp-netstring.d.ts.map b/packages/daemon/src/networks/tcp-netstring.d.ts.map deleted file mode 100644 index 73ccda4e5e..0000000000 --- a/packages/daemon/src/networks/tcp-netstring.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tcp-netstring.d.ts","sourceRoot":"","sources":["tcp-netstring.js"],"names":[],"mappings":"AAeO;;;;;;;;IAiKN"} \ No newline at end of file diff --git a/packages/daemon/src/pet-name.d.ts b/packages/daemon/src/pet-name.d.ts deleted file mode 100644 index 8bee65dbc8..0000000000 --- a/packages/daemon/src/pet-name.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function assertPetName(petName: string): void; -export function petNamePathFrom(petNameOrPetNamePath: string | string[]): string[]; -//# sourceMappingURL=pet-name.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pet-name.d.ts.map b/packages/daemon/src/pet-name.d.ts.map deleted file mode 100644 index 6ab5a8d334..0000000000 --- a/packages/daemon/src/pet-name.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pet-name.d.ts","sourceRoot":"","sources":["pet-name.js"],"names":[],"mappings":"AASO,uCAFI,MAAM,QAMhB;AAKM,sDAFI,MAAM,GAAG,MAAM,EAAE,YAKF"} \ No newline at end of file diff --git a/packages/daemon/src/pet-sitter.d.ts b/packages/daemon/src/pet-sitter.d.ts deleted file mode 100644 index 236d17686c..0000000000 --- a/packages/daemon/src/pet-sitter.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makePetSitter(petStore: import('./types.js').PetStore, specialNames: Record): import('./types.js').PetStore; -//# sourceMappingURL=pet-sitter.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pet-sitter.d.ts.map b/packages/daemon/src/pet-sitter.d.ts.map deleted file mode 100644 index e2ed861072..0000000000 --- a/packages/daemon/src/pet-sitter.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pet-sitter.d.ts","sourceRoot":"","sources":["pet-sitter.js"],"names":[],"mappings":"AAWO,wCAJI,OAAO,YAAY,EAAE,QAAQ,gBAC7B,OAAO,MAAM,EAAC,MAAM,CAAC,GACnB,OAAO,YAAY,EAAE,QAAQ,CAqEzC"} \ No newline at end of file diff --git a/packages/daemon/src/pet-store.d.ts b/packages/daemon/src/pet-store.d.ts deleted file mode 100644 index 7e84d4c1ea..0000000000 --- a/packages/daemon/src/pet-store.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function makePetStoreMaker(filePowers: import('./types.js').FilePowers, locator: import('./types.js').Locator): { - makeIdentifiedPetStore: (id: string, assertValidName: (name: string) => void) => Promise; -}; -//# sourceMappingURL=pet-store.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pet-store.d.ts.map b/packages/daemon/src/pet-store.d.ts.map deleted file mode 100644 index 6e7ecb9870..0000000000 --- a/packages/daemon/src/pet-store.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pet-store.d.ts","sourceRoot":"","sources":["pet-store.js"],"names":[],"mappings":"AAaO,8CAHI,OAAO,YAAY,EAAE,UAAU,WAC/B,OAAO,YAAY,EAAE,OAAO;iCAuN1B,MAAM,0BACC,MAAM,KAAK,IAAI,KACpB,QAAQ,OAAO,YAAY,EAAE,QAAQ,CAAC;EAoBpD"} \ No newline at end of file diff --git a/packages/daemon/src/pubsub.d.ts b/packages/daemon/src/pubsub.d.ts deleted file mode 100644 index 9c2aac36d4..0000000000 --- a/packages/daemon/src/pubsub.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export function makeNullQueue(value: TValue): import("@endo/stream").AsyncQueue; -export const nullIteratorQueue: import("@endo/stream").AsyncQueue<{ - value: undefined; - done: boolean; -}, unknown>; -export function makeChangePubSub(): { - sink: { - /** - * @param {TValue} value - */ - put: (value: TValue) => void; - }; - makeSpring: () => { - get: () => Promise; - }; -}; -export function makeChangeTopic(): import("./types.js").Topic; -//# sourceMappingURL=pubsub.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/pubsub.d.ts.map b/packages/daemon/src/pubsub.d.ts.map deleted file mode 100644 index a8a1d50a5d..0000000000 --- a/packages/daemon/src/pubsub.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pubsub.d.ts","sourceRoot":"","sources":["pubsub.js"],"names":[],"mappings":"AAeO,yGAIH;AAEJ;;;YAEE;AAKK;;QAKH;;WAEG;;;;;;EAuBN;AAOM,+GAON"} \ No newline at end of file diff --git a/packages/daemon/src/reader-ref.d.ts b/packages/daemon/src/reader-ref.d.ts deleted file mode 100644 index fe565a399f..0000000000 --- a/packages/daemon/src/reader-ref.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function asyncIterate(iterable: import("./types").SomehowAsyncIterable): import("@endo/stream").Reader; -export function makeIteratorRef(iterable: import("./types").SomehowAsyncIterable): import("@endo/far").FarRef, import("@endo/eventual-send").DataOnly>>; -export function makeReaderRef(readable: import('./types').SomehowAsyncIterable): import('@endo/far').FarRef>; -//# sourceMappingURL=reader-ref.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/reader-ref.d.ts.map b/packages/daemon/src/reader-ref.d.ts.map deleted file mode 100644 index cd0564b91b..0000000000 --- a/packages/daemon/src/reader-ref.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader-ref.d.ts","sourceRoot":"","sources":["reader-ref.js"],"names":[],"mappings":"AAcO,kIAUN;AAOM,sPA4BN;AAMM,wCAHI,OAAO,SAAS,EAAE,oBAAoB,CAAC,UAAU,CAAC,GAChD,OAAO,WAAW,EAAE,MAAM,CAAC,OAAO,cAAc,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC,CAGZ"} \ No newline at end of file diff --git a/packages/daemon/src/ref-reader.d.ts b/packages/daemon/src/ref-reader.d.ts deleted file mode 100644 index 7120462b5a..0000000000 --- a/packages/daemon/src/ref-reader.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function makeRefIterator(iteratorRef: import("@endo/far").ERef>): { - /** @param {[] | [TNext]} args */ - next: (...args: [] | [TNext]) => Promise>; - /** @param {[] | [TReturn]} args */ - return: (...args: [] | [TReturn]) => Promise>; - /** @param {any} error */ - throw: (error: any) => Promise>; - [Symbol.asyncIterator]: () => any; -}; -export function makeRefReader(readerRef: import('@endo/far').ERef>): AsyncIterableIterator; -//# sourceMappingURL=ref-reader.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/ref-reader.d.ts.map b/packages/daemon/src/ref-reader.d.ts.map deleted file mode 100644 index c01a5d0a37..0000000000 --- a/packages/daemon/src/ref-reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ref-reader.d.ts","sourceRoot":"","sources":["ref-reader.js"],"names":[],"mappings":"AAYO;IAEH,iCAAiC;;IAEjC,mCAAmC;;IAEnC,yBAAyB;mBAAb,GAAG;;EAKlB;AAMM,yCAHI,OAAO,WAAW,EAAE,IAAI,CAAC,cAAc,MAAM,CAAC,CAAC,GAC7C,sBAAsB,UAAU,CAAC,CAGO"} \ No newline at end of file diff --git a/packages/daemon/src/serial-jobs.d.ts b/packages/daemon/src/serial-jobs.d.ts deleted file mode 100644 index f4c1f334ac..0000000000 --- a/packages/daemon/src/serial-jobs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeSerialJobs(): import('./types.js').SerialJobs; -//# sourceMappingURL=serial-jobs.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/serial-jobs.d.ts.map b/packages/daemon/src/serial-jobs.d.ts.map deleted file mode 100644 index 366d4b6bda..0000000000 --- a/packages/daemon/src/serial-jobs.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serial-jobs.d.ts","sourceRoot":"","sources":["serial-jobs.js"],"names":[],"mappings":"AAKO,kCAFM,OAAO,YAAY,EAAE,UAAU,CAuB3C"} \ No newline at end of file diff --git a/packages/daemon/src/serve-private-path.d.ts b/packages/daemon/src/serve-private-path.d.ts deleted file mode 100644 index 46352e7ccf..0000000000 --- a/packages/daemon/src/serve-private-path.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function servePrivatePath(sockPath: any, endoBootstrap: any, { servePath, connectionNumbers, cancelled, exitWithError }: { - servePath: any; - connectionNumbers: any; - cancelled: any; - exitWithError: any; -}): { - started: Promise; - stopped: Promise; -}; -//# sourceMappingURL=serve-private-path.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/serve-private-path.d.ts.map b/packages/daemon/src/serve-private-path.d.ts.map deleted file mode 100644 index eb76d92288..0000000000 --- a/packages/daemon/src/serve-private-path.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serve-private-path.d.ts","sourceRoot":"","sources":["serve-private-path.js"],"names":[],"mappings":"AAMO;;;;;;;;EAyDN"} \ No newline at end of file diff --git a/packages/daemon/src/serve-private-port-http.d.ts b/packages/daemon/src/serve-private-port-http.d.ts deleted file mode 100644 index 6930ec8c23..0000000000 --- a/packages/daemon/src/serve-private-port-http.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function servePrivatePortHttp(requestedWebletPort: any, endoBootstrap: any, { servePortHttp, connectionNumbers, cancelled, exitWithError }: { - servePortHttp: any; - connectionNumbers: any; - cancelled: any; - exitWithError: any; -}): { - started: any; - stopped: any; -}; -//# sourceMappingURL=serve-private-port-http.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/serve-private-port-http.d.ts.map b/packages/daemon/src/serve-private-port-http.d.ts.map deleted file mode 100644 index aa50964010..0000000000 --- a/packages/daemon/src/serve-private-port-http.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"serve-private-port-http.d.ts","sourceRoot":"","sources":["serve-private-port-http.js"],"names":[],"mappings":"AAYO;;;;;;;;EAwIN"} \ No newline at end of file diff --git a/packages/daemon/src/weak-multimap.d.ts b/packages/daemon/src/weak-multimap.d.ts deleted file mode 100644 index 5af9315cde..0000000000 --- a/packages/daemon/src/weak-multimap.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeWeakMultimap(): import('./types.js').WeakMultimap; -//# sourceMappingURL=weak-multimap.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/weak-multimap.d.ts.map b/packages/daemon/src/weak-multimap.d.ts.map deleted file mode 100644 index 3a87951823..0000000000 --- a/packages/daemon/src/weak-multimap.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"weak-multimap.d.ts","sourceRoot":"","sources":["weak-multimap.js"],"names":[],"mappings":"AAGO,oCAFM,OAAO,YAAY,EAAE,YAAY,CAAC,OAAO,EAAE,GAAG,CAAC,CAiC3D"} \ No newline at end of file diff --git a/packages/daemon/src/web-page.d.ts b/packages/daemon/src/web-page.d.ts deleted file mode 100644 index 4681086707..0000000000 --- a/packages/daemon/src/web-page.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=web-page.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/web-page.d.ts.map b/packages/daemon/src/web-page.d.ts.map deleted file mode 100644 index b331ca3e9a..0000000000 --- a/packages/daemon/src/web-page.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web-page.d.ts","sourceRoot":"","sources":["web-page.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/web-server-node-powers.d.ts b/packages/daemon/src/web-server-node-powers.d.ts deleted file mode 100644 index 0c4367d32e..0000000000 --- a/packages/daemon/src/web-server-node-powers.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function makeHttpPowers({ http, ws }: { - ws: typeof import('ws'); - http: typeof import('http'); -}): { - servePortHttp: ({ port, host, respond, connect, cancelled, }: { - port: number; - host: string; - respond?: import("./types.js").HttpRespond | undefined; - connect?: import("./types.js").HttpConnect | undefined; - cancelled: Promise; - }) => Promise; -}; -//# sourceMappingURL=web-server-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/web-server-node-powers.d.ts.map b/packages/daemon/src/web-server-node-powers.d.ts.map deleted file mode 100644 index 8265178a1c..0000000000 --- a/packages/daemon/src/web-server-node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web-server-node-powers.d.ts","sourceRoot":"","sources":["web-server-node-powers.js"],"names":[],"mappings":"AAWO;IAHiC,EAAE,EAA/B,cAAc,IAAI,CAAC;IACY,IAAI,EAAnC,cAAc,MAAM,CAAC;;;QASN,IAAI,EAAjB,MAAM;QACO,IAAI,EAAjB,MAAM;QACkC,OAAO;QACP,OAAO;QAC1B,SAAS,EAA9B,QAAQ,KAAK,CAAC;;EA8J1B"} \ No newline at end of file diff --git a/packages/daemon/src/web-server-node.d.ts b/packages/daemon/src/web-server-node.d.ts deleted file mode 100644 index 1184e8e9a6..0000000000 --- a/packages/daemon/src/web-server-node.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export function make(_powers: unknown, context: import('./types.js').FarContext): Promise<{ - makeWeblet: (webletBundle: unknown, webletPowers: unknown, requestedPort: number, webletId: string, webletCancelled: Promise) => { - getLocation(): Promise; - stopped: () => Promise; - } & import("@endo/eventual-send").RemotableBrand<{}, { - getLocation(): Promise; - stopped: () => Promise; - }>; -} & import("@endo/eventual-send").RemotableBrand<{}, { - makeWeblet: (webletBundle: unknown, webletPowers: unknown, requestedPort: number, webletId: string, webletCancelled: Promise) => { - getLocation(): Promise; - stopped: () => Promise; - } & import("@endo/eventual-send").RemotableBrand<{}, { - getLocation(): Promise; - stopped: () => Promise; - }>; -}>>; -//# sourceMappingURL=web-server-node.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/web-server-node.d.ts.map b/packages/daemon/src/web-server-node.d.ts.map deleted file mode 100644 index 65a82c3b7a..0000000000 --- a/packages/daemon/src/web-server-node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"web-server-node.d.ts","sourceRoot":"","sources":["web-server-node.js"],"names":[],"mappings":"AA8BO,8BAHI,OAAO,WACP,OAAO,YAAY,EAAE,UAAU;+BA0B7B,OAAO,gBACP,OAAO,iBACP,MAAM,YACN,MAAM,mBACN,QAAQ,KAAK,CAAC;;;;;;;;+BAJd,OAAO,gBACP,OAAO,iBACP,MAAM,YACN,MAAM,mBACN,QAAQ,KAAK,CAAC;;;;;;;IAsI1B"} \ No newline at end of file diff --git a/packages/daemon/src/worker-node-powers.d.ts b/packages/daemon/src/worker-node-powers.d.ts deleted file mode 100644 index f099aad30a..0000000000 --- a/packages/daemon/src/worker-node-powers.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makePowers({ fs, url }: { - fs: typeof import('fs'); - url: typeof import('url'); -}): import('./types.js').MignonicPowers; -//# sourceMappingURL=worker-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/worker-node-powers.d.ts.map b/packages/daemon/src/worker-node-powers.d.ts.map deleted file mode 100644 index 4ac93714fa..0000000000 --- a/packages/daemon/src/worker-node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"worker-node-powers.d.ts","sourceRoot":"","sources":["worker-node-powers.js"],"names":[],"mappings":"AAUO;IAJiC,EAAE,EAA/B,cAAc,IAAI,CAAC;IACW,GAAG,EAAjC,cAAc,KAAK,CAAC;IAClB,OAAO,YAAY,EAAE,cAAc,CAmB/C"} \ No newline at end of file diff --git a/packages/daemon/src/worker-node.d.ts b/packages/daemon/src/worker-node.d.ts deleted file mode 100644 index be6abde3d6..0000000000 --- a/packages/daemon/src/worker-node.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=worker-node.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/worker-node.d.ts.map b/packages/daemon/src/worker-node.d.ts.map deleted file mode 100644 index 928baae12c..0000000000 --- a/packages/daemon/src/worker-node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"worker-node.d.ts","sourceRoot":"","sources":["worker-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/daemon/src/worker.d.ts b/packages/daemon/src/worker.d.ts deleted file mode 100644 index f71d10ba59..0000000000 --- a/packages/daemon/src/worker.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -export function makeWorkerFacet({ cancel }: { - cancel: (error: Error) => void; -}): { - terminate: () => Promise; - /** - * @param {string} source - * @param {Array} names - * @param {Array} values - * @param {string} $id - * @param {Promise} $cancelled - */ - evaluate: (source: string, names: Array, values: Array, $id: string, $cancelled: Promise) => Promise; - /** - * @param {string} specifier - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; - /** - * @param {import('@endo/eventual-send').ERef} readableP - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeBundle: (readableP: import('@endo/eventual-send').ERef, powersP: Promise, contextP: Promise) => Promise; -} & import("@endo/eventual-send").RemotableBrand<{}, { - terminate: () => Promise; - /** - * @param {string} source - * @param {Array} names - * @param {Array} values - * @param {string} $id - * @param {Promise} $cancelled - */ - evaluate: (source: string, names: Array, values: Array, $id: string, $cancelled: Promise) => Promise; - /** - * @param {string} specifier - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; - /** - * @param {import('@endo/eventual-send').ERef} readableP - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeBundle: (readableP: import('@endo/eventual-send').ERef, powersP: Promise, contextP: Promise) => Promise; -}>; -export function main(powers: import('./types.js').MignonicPowers, locator: import('./types.js').Locator, uuid: string, pid: number | undefined, cancel: (error: Error) => void, cancelled: Promise): Promise; -export type WorkerBootstrap = ReturnType<({ cancel }: { - cancel: (error: Error) => void; -}) => { - terminate: () => Promise; - /** - * @param {string} source - * @param {Array} names - * @param {Array} values - * @param {string} $id - * @param {Promise} $cancelled - */ - evaluate: (source: string, names: string[], values: unknown[], $id: string, $cancelled: Promise) => Promise; - /** - * @param {string} specifier - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; - /** - * @param {import('@endo/eventual-send').ERef} readableP - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeBundle: (readableP: import("@endo/eventual-send").ERef, powersP: Promise, contextP: Promise) => Promise; -} & import("@endo/eventual-send").RemotableBrand<{}, { - terminate: () => Promise; - /** - * @param {string} source - * @param {Array} names - * @param {Array} values - * @param {string} $id - * @param {Promise} $cancelled - */ - evaluate: (source: string, names: string[], values: unknown[], $id: string, $cancelled: Promise) => Promise; - /** - * @param {string} specifier - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeUnconfined: (specifier: string, powersP: Promise, contextP: Promise) => Promise; - /** - * @param {import('@endo/eventual-send').ERef} readableP - * @param {Promise} powersP - * @param {Promise} contextP - */ - makeBundle: (readableP: import("@endo/eventual-send").ERef, powersP: Promise, contextP: Promise) => Promise; -}>>; -//# sourceMappingURL=worker.d.ts.map \ No newline at end of file diff --git a/packages/daemon/src/worker.d.ts.map b/packages/daemon/src/worker.d.ts.map deleted file mode 100644 index 4b8cc4c841..0000000000 --- a/packages/daemon/src/worker.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"worker.d.ts","sourceRoot":"","sources":["worker.js"],"names":[],"mappings":"AAuCO;oBAFY,KAAK,KAAK,IAAI;;;IAS7B;;;;;;OAMG;uBALQ,MAAM,SACN,MAAM,MAAM,CAAC,UACb,MAAM,OAAO,CAAC,OACd,MAAM,cACN,QAAQ,KAAK,CAAC;IAgBzB;;;;OAIG;gCAHQ,MAAM,WACN,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;IAW3B;;;;OAIG;4BAHQ,OAAO,qBAAqB,EAAE,IAAI,CAAC,OAAO,YAAY,EAAE,YAAY,CAAC,WACrE,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;;;IAtC3B;;;;;;OAMG;uBALQ,MAAM,SACN,MAAM,MAAM,CAAC,UACb,MAAM,OAAO,CAAC,OACd,MAAM,cACN,QAAQ,KAAK,CAAC;IAgBzB;;;;OAIG;gCAHQ,MAAM,WACN,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;IAW3B;;;;OAIG;4BAHQ,OAAO,qBAAqB,EAAE,IAAI,CAAC,OAAO,YAAY,EAAE,YAAY,CAAC,WACrE,QAAQ,OAAO,CAAC,YAChB,QAAQ,OAAO,CAAC;GAe9B;AAUM,6BAPI,OAAO,YAAY,EAAE,cAAc,WACnC,OAAO,YAAY,EAAE,OAAO,QAC5B,MAAM,OACN,MAAM,GAAG,SAAS,kBACV,KAAK,KAAK,IAAI,aACtB,QAAQ,KAAK,CAAC,iBAuBxB;8BAlGY;;;;IAcT;;;;;;OAMG;;IAeH;;;;OAIG;;IAUH;;;;OAIG;;;;IAvCH;;;;;;OAMG;;IAeH;;;;OAIG;;IAUH;;;;OAIG;;GArDiC"} \ No newline at end of file diff --git a/packages/env-options/index.d.ts b/packages/env-options/index.d.ts deleted file mode 100644 index 7c2b818d2f..0000000000 --- a/packages/env-options/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/env-options.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/env-options/index.d.ts.map b/packages/env-options/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/env-options/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/env-options/src/env-options.d.ts b/packages/env-options/src/env-options.d.ts deleted file mode 100644 index ac087e4b7d..0000000000 --- a/packages/env-options/src/env-options.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export function makeEnvironmentCaptor(aGlobal: object, dropNames?: boolean | undefined): Readonly<{ - getEnvironmentOption: (optionName: string, defaultSetting: string, optOtherValues?: string[] | undefined) => string; - getEnvironmentOptionsList: (optionName: string) => string[]; - environmentOptionsListHas: (optionName: any, element: any) => any; - getCapturedEnvironmentOptionNames: () => readonly any[]; -}>; -/** - * Gets an environment option by name and returns the option value or the - * given default. - * - * @param {string} optionName - * @param {string} defaultSetting - * @param {string[]} [optOtherValues] - * If provided, the option value must be included or match `defaultSetting`. - * @returns {string} - */ -export function getEnvironmentOption(optionName: string, defaultSetting: string, optOtherValues?: string[] | undefined): string; -/** - * @param {string} optionName - * @returns {string[]} - */ -export function getEnvironmentOptionsList(optionName: string): string[]; -export function environmentOptionsListHas(optionName: any, element: any): any; -//# sourceMappingURL=env-options.d.ts.map \ No newline at end of file diff --git a/packages/env-options/src/env-options.d.ts.map b/packages/env-options/src/env-options.d.ts.map deleted file mode 100644 index 0c3ef73bba..0000000000 --- a/packages/env-options/src/env-options.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"env-options.d.ts","sourceRoot":"","sources":["env-options.js"],"names":[],"mappings":"AA6CO,+CAJI,MAAM;uCAWJ,MAAM,kBACN,MAAM,4CAGJ,MAAM;4CA8CR,MAAM,KACJ,MAAM,EAAE;;;GAsBtB;AA7EC;;;;;;;;;GASG;AACH,iDANW,MAAM,kBACN,MAAM,0CAGJ,MAAM,CA0ClB;AAGD;;;GAGG;AACH,sDAHW,MAAM,GACJ,MAAM,EAAE,CAKpB;AAGD,8EAC+D"} \ No newline at end of file diff --git a/packages/errors/index.d.ts b/packages/errors/index.d.ts deleted file mode 100644 index 0ed2a2a007..0000000000 --- a/packages/errors/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** @type {import("ses").AssertionFunctions } */ -export const assert: import("ses").AssertionFunctions; -declare const bareOrQuote: (payload: any, spaces?: string | number | undefined) => import("ses").ToStringable; -export const makeError: (details?: import("ses").Details | undefined, errConstructor?: import("ses").GenericErrorConstructor | undefined, options?: import("ses").AssertMakeErrorOptions | undefined) => Error; -export const note: (error: Error, details: import("ses").Details) => void; -export const quote: (payload: any, spaces?: string | number | undefined) => import("ses").ToStringable; -export const redacted: (template: string[] | TemplateStringsArray, ...args: any) => import("ses").DetailsToken; -export const throwRedacted: (template: string[] | TemplateStringsArray, ...args: any) => never; -export { bareOrQuote as bare, bareOrQuote as b, quote as q, redacted as X, throwRedacted as Fail, note as annotateError }; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/errors/index.d.ts.map b/packages/errors/index.d.ts.map deleted file mode 100644 index 1cd98b43b5..0000000000 --- a/packages/errors/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AA4DA,gDAAgD;AAEhD,qBAFW,OAAO,KAAK,EAAE,kBAAkB,CAGe;AAM1D,8GAAkC"} \ No newline at end of file diff --git a/packages/evasive-transform/index.d.ts b/packages/evasive-transform/index.d.ts deleted file mode 100644 index 02b27af261..0000000000 --- a/packages/evasive-transform/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/index.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/index.d.ts.map b/packages/evasive-transform/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/evasive-transform/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/evasive-transform/src/generate.d.ts b/packages/evasive-transform/src/generate.d.ts deleted file mode 100644 index d935c36c06..0000000000 --- a/packages/evasive-transform/src/generate.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Options for {@link generateCode} with source map - * - * @typedef GenerateAstOptionsWithSourceMap - * @property {string} sourceUrl - If present, we will generate a source map - * @internal - */ -/** - * Options for {@link generateCode} (no source map generated) - * - * @typedef GenerateAstOptionsWithoutSourceMap - * @property {undefined} sourceUrl - This should be undefined or otherwise not provided - * @internal - */ -/** - * The result of {@link generate}; depends on whether a `sourceUrl` was - * provided to the options. - * - * @template {string|undefined} [SourceUrl=undefined] - * @typedef {{code: string, map: SourceUrl extends string ? import('source-map').RawSourceMap : never}} TransformedResult - * @internal - */ -/** - * Generates new code from a Babel AST; returns code and source map - * - * @callback GenerateAstWithSourceMap - * @param {import('@babel/types').File} ast - Babel "File" AST - * @param {GenerateAstOptionsWithSourceMap} options - Options for the transform - * @returns {TransformedResult} - * @internal - */ -/** - * Generates new code from a Babel AST; returns code only - * - * @callback GenerateAstWithoutSourceMap - * @param {import('@babel/types').File} ast - Babel "File" AST - * @param {GenerateAstOptionsWithoutSourceMap} [options] - Options for the transform - * @returns {TransformedResult} - * @internal - */ -export const generate: GenerateAstWithSourceMap & GenerateAstWithoutSourceMap; -/** - * Options for {@link generateCode } with source map - */ -export type GenerateAstOptionsWithSourceMap = { - /** - * - If present, we will generate a source map - */ - sourceUrl: string; -}; -/** - * Options for {@link generateCode } (no source map generated) - */ -export type GenerateAstOptionsWithoutSourceMap = { - /** - * - This should be undefined or otherwise not provided - */ - sourceUrl: undefined; -}; -/** - * The result of {@link generate }; depends on whether a `sourceUrl` was - * provided to the options. - */ -export type TransformedResult = { - code: string; - map: SourceUrl extends string ? import('source-map').RawSourceMap : never; -}; -/** - * Generates new code from a Babel AST; returns code and source map - */ -export type GenerateAstWithSourceMap = (ast: import('@babel/types').File, options: GenerateAstOptionsWithSourceMap) => TransformedResult; -/** - * Generates new code from a Babel AST; returns code only - */ -export type GenerateAstWithoutSourceMap = (ast: import('@babel/types').File, options?: GenerateAstOptionsWithoutSourceMap | undefined) => TransformedResult; -//# sourceMappingURL=generate.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/generate.d.ts.map b/packages/evasive-transform/src/generate.d.ts.map deleted file mode 100644 index 039efcb719..0000000000 --- a/packages/evasive-transform/src/generate.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"generate.d.ts","sourceRoot":"","sources":["generate.js"],"names":[],"mappings":"AAkBA;;;;;;GAMG;AAEH;;;;;;GAMG;AAEH;;;;;;;GAOG;AAEH;;;;;;;;GAQG;AAEH;;;;;;;;GAQG;AACH,8EAuBI;;;;;;;;eA/DU,MAAM;;;;;;;;;eAQN,SAAS;;;;;;kFASV;IAAC,IAAI,EAAE,MAAM,CAAC;IAAC,GAAG,EAAE,SAAS,SAAS,MAAM,GAAG,OAAO,YAAY,EAAE,YAAY,GAAG,KAAK,CAAA;CAAC;;;;6CAQ3F,OAAO,cAAc,EAAE,IAAI,WAC3B,+BAA+B,KAC7B,kBAAkB,MAAM,CAAC;;;;gDAQ3B,OAAO,cAAc,EAAE,IAAI,+DAEzB,kBAAkB,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/evasive-transform/src/index.d.ts b/packages/evasive-transform/src/index.d.ts deleted file mode 100644 index f72d5a70b6..0000000000 --- a/packages/evasive-transform/src/index.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/** - * Options for {@link evadeCensor} - * - * @typedef EvadeCensorOptions - * @property {string|import('source-map').RawSourceMap} [sourceMap] - Original source map in JSON string or object form - * @property {string} [sourceUrl] - URL or filepath of the original source in `code` - * @property {boolean} [useLocationUnmap] - Enable location unmapping. Only applies if `sourceMap` was provided - * @property {import('./parse-ast.js').SourceType} [sourceType] - Module source type - * @public - */ -/** - * Apply SES censorship evasion transforms on the given code `source` - * - * If the `sourceUrl` option is provided, the `map` property of the fulfillment - * value will be a source map object; otherwise it will be `undefined`. - * - * If the `sourceMap` option is _not_ provided, the `useLocationUnmap` option - * will have no effect. - * - * @template {EvadeCensorOptions} T - * @param {string} source - Source code to transform - * @param {T} [options] - Options for the transform - * @returns {Promise>} Object containing new code and optionally source map object (ready for stringification) - * @public - */ -export function evadeCensor(source: string, options?: T | undefined): Promise>; -/** - * Options for {@link evadeCensor } - */ -export type EvadeCensorOptions = { - /** - * - Original source map in JSON string or object form - */ - sourceMap?: string | import("source-map").RawSourceMap | undefined; - /** - * - URL or filepath of the original source in `code` - */ - sourceUrl?: string | undefined; - /** - * - Enable location unmapping. Only applies if `sourceMap` was provided - */ - useLocationUnmap?: boolean | undefined; - /** - * - Module source type - */ - sourceType?: import("./parse-ast.js").SourceType | undefined; -}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/index.d.ts.map b/packages/evasive-transform/src/index.d.ts.map deleted file mode 100644 index 5f83e43f9c..0000000000 --- a/packages/evasive-transform/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAUA;;;;;;;;;GASG;AAEH;;;;;;;;;;;;;;GAcG;AACH,kEALW,MAAM,+FAgChB"} \ No newline at end of file diff --git a/packages/evasive-transform/src/location-unmapper.d.ts b/packages/evasive-transform/src/location-unmapper.d.ts deleted file mode 100644 index f46befba1a..0000000000 --- a/packages/evasive-transform/src/location-unmapper.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/** - * A function which modifies an AST Node's source location - * - * @callback LocationUnmapper - * @param {import('@babel/types').SourceLocation|null} [loc] - * @returns {void} - * @internal - */ -/** - * Creates a {@link LocationUnmapper} function - * - * @internal - * @param {string} sourceMap - Source map - * @param {import('@babel/types').File} ast - AST as created by Babel - * @returns {Promise} - */ -export function makeLocationUnmapper(sourceMap: string, ast: import('@babel/types').File): Promise; -/** - * A function which modifies an AST Node's source location - */ -export type LocationUnmapper = (loc?: import("@babel/types").SourceLocation | null | undefined) => void; -//# sourceMappingURL=location-unmapper.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/location-unmapper.d.ts.map b/packages/evasive-transform/src/location-unmapper.d.ts.map deleted file mode 100644 index 5daf16ce2e..0000000000 --- a/packages/evasive-transform/src/location-unmapper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"location-unmapper.d.ts","sourceRoot":"","sources":["location-unmapper.js"],"names":[],"mappings":"AAQA;;;;;;;GAOG;AAEH;;;;;;;GAOG;AACH,gDAJW,MAAM,OACN,OAAO,cAAc,EAAE,IAAI,GACzB,QAAQ,gBAAgB,CAAC,CAyDrC;;;;mGAnEY,IAAI"} \ No newline at end of file diff --git a/packages/evasive-transform/src/parse-ast.d.ts b/packages/evasive-transform/src/parse-ast.d.ts deleted file mode 100644 index 4aa484accd..0000000000 --- a/packages/evasive-transform/src/parse-ast.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -/** - * This is the same type as `@babel/parser`'s `ParserOptions['sourceType']`, but - * re-implemented here for decoupling purposes. - * - * Still, this is likely Babel-specific. - * - * @typedef {'module'|'script'|'unambiguous'} SourceType - * @public - */ -/** - * Options for {@link parseAst}. - * - * @typedef ParseAstOptions - * @property {SourceType} [sourceType] - * @internal - */ -/** - * Adapter for parsing an AST. - * - * @param {string} source - Source code - * @param {ParseAstOptions} [opts] - Options for underlying parser - * @internal - */ -export function parseAst(source: string, opts?: ParseAstOptions | undefined): babelParser.ParseResult; -/** - * This is the same type as `@babel/parser`'s `ParserOptions['sourceType']`, but - * re-implemented here for decoupling purposes. - * - * Still, this is likely Babel-specific. - */ -export type SourceType = 'module' | 'script' | 'unambiguous'; -/** - * Options for {@link parseAst }. - */ -export type ParseAstOptions = { - sourceType?: SourceType | undefined; -}; -import * as babelParser from '@babel/parser'; -//# sourceMappingURL=parse-ast.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/parse-ast.d.ts.map b/packages/evasive-transform/src/parse-ast.d.ts.map deleted file mode 100644 index 493ee6f318..0000000000 --- a/packages/evasive-transform/src/parse-ast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"parse-ast.d.ts","sourceRoot":"","sources":["parse-ast.js"],"names":[],"mappings":"AAUA;;;;;;;;GAQG;AAEH;;;;;;GAMG;AAEH;;;;;;GAMG;AACH,iCAJW,MAAM,4FAOhB;;;;;;;yBAtBY,QAAQ,GAAC,QAAQ,GAAC,aAAa;;;;;;;6BAVf,eAAe"} \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-ast.d.ts b/packages/evasive-transform/src/transform-ast.d.ts deleted file mode 100644 index ed23caf58a..0000000000 --- a/packages/evasive-transform/src/transform-ast.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * Options for {@link transformAst} - * - * @internal - * @typedef {TransformAstOptionsWithLocationUnmap | TransformAstOptionsWithoutSourceMap} TransformAstOptions - */ -/** - * Options for {@link transformAst} - * - * If `useLocationUnmap` is not `true`, `sourceMap` is unused. - * - * @internal - * @typedef TransformAstOptionsWithoutSourceMap - * @property {false} [useLocationUnmap] - Enable location unmapping - * @property {string} [sourceMap] - Original source map - */ -/** - * Options for {@link transformAst} - * - * If `useLocationUnmap` is `true`, then `sourceMap` must also be present. - * - * @internal - * @typedef TransformAstOptionsWithLocationUnmap - * @property {true} useLocationUnmap - Enable location unmapping - * @property {string} sourceMap - Original source map - */ -/** - * Performs transformations on the given AST - * - * This function mutates `ast`. - * - * @internal - * @param {import('@babel/types').File} ast - AST, as generated by Babel - * @param {TransformAstOptions} [opts] - * @returns {Promise} - */ -export function transformAst(ast: import('@babel/types').File, { sourceMap, useLocationUnmap }?: TransformAstOptions | undefined): Promise; -/** - * Options for {@link transformAst } - */ -export type TransformAstOptions = TransformAstOptionsWithLocationUnmap | TransformAstOptionsWithoutSourceMap; -/** - * Options for {@link transformAst } - * - * If `useLocationUnmap` is not `true`, `sourceMap` is unused. - */ -export type TransformAstOptionsWithoutSourceMap = { - /** - * - Enable location unmapping - */ - useLocationUnmap?: false | undefined; - /** - * - Original source map - */ - sourceMap?: string | undefined; -}; -/** - * Options for {@link transformAst } - * - * If `useLocationUnmap` is `true`, then `sourceMap` must also be present. - */ -export type TransformAstOptionsWithLocationUnmap = { - /** - * - Enable location unmapping - */ - useLocationUnmap: true; - /** - * - Original source map - */ - sourceMap: string; -}; -//# sourceMappingURL=transform-ast.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-ast.d.ts.map b/packages/evasive-transform/src/transform-ast.d.ts.map deleted file mode 100644 index 8572214b51..0000000000 --- a/packages/evasive-transform/src/transform-ast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-ast.d.ts","sourceRoot":"","sources":["transform-ast.js"],"names":[],"mappings":"AAoBA;;;;;GAKG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AAEH;;;;;;;;;GASG;AACH,kCAJW,OAAO,cAAc,EAAE,IAAI,sEAEzB,QAAQ,IAAI,CAAC,CAqCzB;;;;kCAtEY,oCAAoC,GAAG,mCAAmC;;;;;;;;;;;;;;;;;;;;;;;;;sBAqBzE,IAAI;;;;eACJ,MAAM"} \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-comment.d.ts b/packages/evasive-transform/src/transform-comment.d.ts deleted file mode 100644 index 0ba257b001..0000000000 --- a/packages/evasive-transform/src/transform-comment.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Rewrites a Comment Node to avoid triggering SES restrictions. - * - * Apparently coerces all comments to block comments. - * - * @param {import('@babel/types').Comment} node - * @param {import('./location-unmapper.js').LocationUnmapper} [unmapLoc] - */ -export function transformComment(node: import('@babel/types').Comment, unmapLoc?: import("./location-unmapper.js").LocationUnmapper | undefined): void; -//# sourceMappingURL=transform-comment.d.ts.map \ No newline at end of file diff --git a/packages/evasive-transform/src/transform-comment.d.ts.map b/packages/evasive-transform/src/transform-comment.d.ts.map deleted file mode 100644 index 115ed538de..0000000000 --- a/packages/evasive-transform/src/transform-comment.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-comment.d.ts","sourceRoot":"","sources":["transform-comment.js"],"names":[],"mappings":"AAsBA;;;;;;;GAOG;AACH,uCAHW,OAAO,cAAc,EAAE,OAAO,kFAoBxC"} \ No newline at end of file diff --git a/packages/eventual-send/shim.d.ts b/packages/eventual-send/shim.d.ts deleted file mode 100644 index e30ed92ed1..0000000000 --- a/packages/eventual-send/shim.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=shim.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/shim.d.ts.map b/packages/eventual-send/shim.d.ts.map deleted file mode 100644 index 52ccee7578..0000000000 --- a/packages/eventual-send/shim.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["shim.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/eventual-send/src/E.d.ts b/packages/eventual-send/src/E.d.ts deleted file mode 100644 index ff51bf806b..0000000000 --- a/packages/eventual-send/src/E.d.ts +++ /dev/null @@ -1,158 +0,0 @@ -export default makeE; -export type EProxy = ReturnType<(HandledPromise: { - new (executor: import("./handled-promise.js").HandledExecutor, unfulfilledHandler?: import("./handled-promise.js").Handler> | undefined): Promise; - prototype: Promise; -} & PromiseConstructor & import("./handled-promise.js").HandledPromiseStaticMethods) => ((x: T) => ECallableOrMethods>) & { - /** - * E.get(x) returns a proxy on which you can get arbitrary properties. - * Each of these properties returns a promise for the property. The promise - * value will be the property fetched from whatever 'x' designates (or - * resolves to) in a future turn, not this one. - * - * @template T - * @param {T} x target for property get - * @returns {EGetters>} property get proxy - * @readonly - */ - readonly get: (x: T_1) => EGetters>; - /** - * E.resolve(x) converts x to a handled promise. It is - * shorthand for HandledPromise.resolve(x) - * - * @template T - * @param {T} x value to convert to a handled promise - * @returns {Promise>} handled promise for x - * @readonly - */ - readonly resolve: { - (): Promise; - (value: T_2): Promise>; - (value: T_3 | PromiseLike): Promise>; - }; - /** - * E.sendOnly returns a proxy similar to E, but for which the results - * are ignored (undefined is returned). - * - * @template T - * @param {T} x target for method/function call - * @returns {ESendOnlyCallableOrMethods>} method/function call proxy - * @readonly - */ - readonly sendOnly: (x: T_4) => ESendOnlyCallableOrMethods>; - /** - * E.when(x, res, rej) is equivalent to - * HandledPromise.resolve(x).then(res, rej) - * - * @template T - * @template [U = T] - * @param {T|PromiseLike} x value to convert to a handled promise - * @param {(value: T) => ERef} [onfulfilled] - * @param {(reason: any) => ERef} [onrejected] - * @returns {Promise} - * @readonly - */ - readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => ERef) | undefined, onrejected?: ((reason: any) => ERef) | undefined) => Promise; -}>; -/** - * Creates a type that accepts both near and marshalled references that were - * returned from `Remotable` or `Far`, and also promises for such references. - */ -export type FarRef> = ERef>; -/** - * `DataOnly` means to return a record type `T2` consisting only of - * properties that are *not* functions. - */ -export type DataOnly = Omit>; -export type ERef = PromiseLike | T; -export type ECallable = ReturnType extends PromiseLike ? T : (...args: Parameters) => Promise>>; -export type EMethods = { readonly [P in keyof T]: T[P] extends import("./types").Callable ? ECallable : never; }; -export type EGetters = { readonly [P in keyof T]: T[P] extends PromiseLike ? T[P] : Promise>; }; -export type ESendOnlyCallable = (...args: Parameters) => Promise; -export type ESendOnlyMethods = { readonly [P in keyof T]: T[P] extends import("./types").Callable ? ESendOnlyCallable : never; }; -export type ESendOnlyCallableOrMethods = (T extends import('./types').Callable ? ESendOnlyCallable & ESendOnlyMethods> : ESendOnlyMethods>); -export type ECallableOrMethods = (T extends import('./types').Callable ? ECallable & EMethods> : EMethods>); -/** - * Return a union of property names/symbols/numbers P for which the record element T[P]'s type extends U. - * - * Given const x = { a: 123, b: 'hello', c: 42, 49: () => {}, 53: 67 }, - * - * FilteredKeys is the type 'a' | 'c' | 53. - * FilteredKeys is the type 'b'. - * FilteredKeys is the type 'c' | 53. - * FilteredKeys is the type never. - */ -export type FilteredKeys = { [P in keyof T]: T[P] extends U ? P : never; }[keyof T]; -/** - * `PickCallable` means to return a single root callable or a record type - * consisting only of properties that are functions. - */ -export type PickCallable = T extends import("./types").Callable ? (...args: Parameters) => ReturnType : Pick>; -/** - * `RemoteFunctions` means to return the functions and properties that are remotely callable. - */ -export type RemoteFunctions = T extends import("./types").RemotableBrand ? PickCallable : Awaited extends import("./types").RemotableBrand ? PickCallable : T extends PromiseLike ? Awaited : T; -export type LocalRecord = T extends import("./types").RemotableBrand ? L : Awaited extends import("./types").RemotableBrand ? L_1 : T extends PromiseLike ? Awaited : T; -export type EPromiseKit = { - promise: Promise; - settler: import('./types').Settler; -}; -/** - * Type for an object that must only be invoked with E. It supports a given - * interface but declares all the functions as asyncable. - */ -export type EOnly = T extends import("./types").Callable ? (...args: Parameters) => ERef>>> : T extends Record ? { [K in keyof T]: T[K] extends import("./types").Callable ? (...args: Parameters) => ERef>>> : T[K]; } : T; -/** - * @param {import('./types').HandledPromiseConstructor} HandledPromise - */ -declare function makeE(HandledPromise: import('./types').HandledPromiseConstructor): ((x: T) => ECallableOrMethods>) & { - /** - * E.get(x) returns a proxy on which you can get arbitrary properties. - * Each of these properties returns a promise for the property. The promise - * value will be the property fetched from whatever 'x' designates (or - * resolves to) in a future turn, not this one. - * - * @template T - * @param {T} x target for property get - * @returns {EGetters>} property get proxy - * @readonly - */ - readonly get: (x: T_1) => EGetters>; - /** - * E.resolve(x) converts x to a handled promise. It is - * shorthand for HandledPromise.resolve(x) - * - * @template T - * @param {T} x value to convert to a handled promise - * @returns {Promise>} handled promise for x - * @readonly - */ - readonly resolve: { - (): Promise; - (value: T_2): Promise>; - (value: T_3 | PromiseLike): Promise>; - }; - /** - * E.sendOnly returns a proxy similar to E, but for which the results - * are ignored (undefined is returned). - * - * @template T - * @param {T} x target for method/function call - * @returns {ESendOnlyCallableOrMethods>} method/function call proxy - * @readonly - */ - readonly sendOnly: (x: T_4) => ESendOnlyCallableOrMethods>; - /** - * E.when(x, res, rej) is equivalent to - * HandledPromise.resolve(x).then(res, rej) - * - * @template T - * @template [U = T] - * @param {T|PromiseLike} x value to convert to a handled promise - * @param {(value: T) => ERef} [onfulfilled] - * @param {(reason: any) => ERef} [onrejected] - * @returns {Promise} - * @readonly - */ - readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => ERef) | undefined, onrejected?: ((reason: any) => ERef) | undefined) => Promise; -}; -//# sourceMappingURL=E.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/E.d.ts.map b/packages/eventual-send/src/E.d.ts.map deleted file mode 100644 index 2396e9aa40..0000000000 --- a/packages/eventual-send/src/E.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"E.d.ts","sourceRoot":"","sources":["E.js"],"names":[],"mappings":";qBAoPc;;;;IAhEN;;;;;;;;;;OAUG;;IAMH;;;;;;;;OAQG;;;;;;IAGH;;;;;;;;OAQG;;IAMH;;;;;;;;;;;OAWG;;EAYoB;;;;;yDAQlB,KAAK,KAAK,GAAG,OAAO,SAAS,EAAE,cAAc,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC;;;;;0BAQ9D,KAAK,CAAC,EAAE,aAAa,CAAC,EAAE,OAAO,SAAS,EAAE,QAAQ,CAAC,CAAC;sBAMpD,YAAY,CAAC,CAAC,GAAG,CAAC;yHAQZ,WAAW,CAAC,CAAC,KAAK,QAAQ,QAAQ,WAAW,CAAC,CAAC,CAAC,CAAC;;;gFAwB7C,WAAW,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC;;4CAczC,CACZ,CAAK,SAAS,OAAO,SAAS,EAAE,QAAQ,GAChC,kBAAkB,CAAC,CAAC,GAAG,iBAAiB,SAAS,CAAC,CAAC,CAAC,GACpD,iBAAiB,SAAS,CAAC,CAAC,CAAC,CAClC;oCAKS,CACZ,CAAK,SAAS,OAAO,SAAS,EAAE,QAAQ,GAChC,UAAU,CAAC,CAAC,GAAG,SAAS,SAAS,CAAC,CAAC,CAAC,GACpC,SAAS,SAAS,CAAC,CAAC,CAAC,CAC1B;;;;;;;;;;;;;;;;+EAyBe,WAAW,CAAC,CAAC,KAAK,WAAW,CAAC,CAAC;;;;;;uCAmCrC;IACZ,OAAW,EAAE,QAAQ,CAAC,CAAC,CAAC;IACxB,OAAW,EAAE,OAAO,SAAS,EAAE,OAAO,CAAC,CAAC,CAAC,CAAC;CACvC;;;;;wEAUe,WAAW,CAAC,CAAC,KAAK,KAAK,QAAQ,MAAM,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC;AA3OxE;;GAEG;AACH,uCAFW,OAAO,SAAS,EAAE,yBAAyB;IAgB9C;;;;;;;;;;OAUG;;IAMH;;;;;;;;OAQG;;;;;;IAGH;;;;;;;;OAQG;;IAMH;;;;;;;;;;;OAWG;yIAHiB,GAAG;EAW9B"} \ No newline at end of file diff --git a/packages/eventual-send/src/exports.test-d.d.ts b/packages/eventual-send/src/exports.test-d.d.ts deleted file mode 100644 index 612e558c43..0000000000 --- a/packages/eventual-send/src/exports.test-d.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=exports.test-d.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/exports.test-d.d.ts.map b/packages/eventual-send/src/exports.test-d.d.ts.map deleted file mode 100644 index 9543b61cd5..0000000000 --- a/packages/eventual-send/src/exports.test-d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exports.test-d.d.ts","sourceRoot":"","sources":["exports.test-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/eventual-send/src/handled-promise.d.ts b/packages/eventual-send/src/handled-promise.d.ts deleted file mode 100644 index c659f9da8a..0000000000 --- a/packages/eventual-send/src/handled-promise.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export function makeHandledPromise(): { - new (executor: HandledExecutor, unfulfilledHandler?: Handler>): Promise; - prototype: Promise; -} & PromiseConstructor & HandledPromiseStaticMethods; -export type Handler = { - get?(p: T, name: PropertyKey, returnedP?: Promise): unknown; - getSendOnly?(p: T, name: PropertyKey): void; - applyFunction?(p: T, args: unknown[], returnedP?: Promise): unknown; - applyFunctionSendOnly?(p: T, args: unknown[]): void; - applyMethod?(p: T, name: PropertyKey | undefined, args: unknown[], returnedP?: Promise): unknown; - applyMethodSendOnly?(p: T, name: PropertyKey | undefined, args: unknown[]): void; -}; -export type ResolveWithPresenceOptionsBag = { - proxy?: { - handler: ProxyHandler; - target: unknown; - revokerCallback?(revoker: () => void): void; - } | undefined; -}; -export type HandledExecutor = (resolveHandled: (value?: R) => void, rejectHandled: (reason?: unknown) => void, resolveWithPresence: (presenceHandler: Handler<{}>, options?: ResolveWithPresenceOptionsBag<{}>) => object) => void; -export type Settler = { - resolve(value?: R): void; - reject(reason: unknown): void; - resolveWithPresence(presenceHandler?: Handler<{}>, options?: ResolveWithPresenceOptionsBag<{}>): object; -}; -export type HandledPromiseStaticMethods = { - applyFunction(target: unknown, args: unknown[]): Promise; - applyFunctionSendOnly(target: unknown, args: unknown[]): void; - applyMethod(target: unknown, prop: PropertyKey | undefined, args: unknown[]): Promise; - applyMethodSendOnly(target: unknown, prop: PropertyKey, args: unknown[]): void; - get(target: unknown, prop: PropertyKey): Promise; - getSendOnly(target: unknown, prop: PropertyKey): void; -}; -export type HandledPromiseConstructor = ReturnType; -//# sourceMappingURL=handled-promise.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/handled-promise.d.ts.map b/packages/eventual-send/src/handled-promise.d.ts.map deleted file mode 100644 index f94bd8882b..0000000000 --- a/packages/eventual-send/src/handled-promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"handled-promise.d.ts","sourceRoot":"","sources":["handled-promise.js"],"names":[],"mappings":"AAyDO;+DAsIqE,QAAQ,QAAQ,OAAO,CAAC,CAAC;eAA0B,QAAQ,OAAO,CAAC;qDAoY9I;;YAKY,CAAC,QAAQ,WAAW,cAAc,QAAQ,OAAO,CAAC,GAAG,OAAO;oBACpD,CAAC,QAAQ,WAAW,GAAG,IAAI;sBACzB,CAAC,QAAQ,OAAO,EAAE,cAAc,QAAQ,OAAO,CAAC,GAAG,OAAO;8BAClD,CAAC,QAAQ,OAAO,EAAE,GAAG,IAAI;oBACnC,CAAC,QAAQ,WAAW,GAAG,SAAS,QAAQ,OAAO,EAAE,cAAc,QAAQ,OAAO,CAAC,GAAG,OAAO;4BACjF,CAAC,QAAQ,WAAW,GAAG,SAAS,QAAQ,OAAO,EAAE,GAAG,IAAI;;;;iBAQrE,aAAa,CAAC,CAAC;gBAChB,OAAO;kCACW,MAAM,IAAI,GAAG,IAAI;;;qEAQpB,CAAC,KAAK,IAAI,2BACV,OAAO,KAAK,IAAI,yCACF,QAAQ,EAAE,CAAC,YAAY,8BAA8B,EAAE,CAAC,KAAK,MAAM,KACvG,IAAI;;oBAMS,CAAC,GAAG,IAAI;mBACT,OAAO,GAAG,IAAI;0CACS,QAAQ,EAAE,CAAC,YAAY,8BAA8B,EAAE,CAAC,GAAG,MAAM;;;0BAMjF,OAAO,QAAQ,OAAO,EAAE,GAAG,QAAQ,OAAO,CAAC;kCACnC,OAAO,QAAQ,OAAO,EAAE,GAAG,IAAI;wBACzC,OAAO,QAAQ,WAAW,GAAG,SAAS,QAAQ,OAAO,EAAE,GAAG,QAAQ,OAAO,CAAC;gCAClE,OAAO,QAAQ,WAAW,QAAQ,OAAO,EAAE,GAAG,IAAI;gBAClE,OAAO,QAAQ,WAAW,GAAG,QAAQ,OAAO,CAAC;wBACrC,OAAO,QAAQ,WAAW,GAAG,IAAI;;wCAI5C,WAAW,yBAAyB,CAAC"} \ No newline at end of file diff --git a/packages/eventual-send/src/local.d.ts b/packages/eventual-send/src/local.d.ts deleted file mode 100644 index 1b896c46ac..0000000000 --- a/packages/eventual-send/src/local.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function getMethodNames(val: any): (string | symbol)[]; -export function localApplyFunction(recipient: any, args: any): any; -export function localApplyMethod(recipient: any, methodName: any, args: any): any; -export function localGet(t: any, key: any): any; -//# sourceMappingURL=local.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/local.d.ts.map b/packages/eventual-send/src/local.d.ts.map deleted file mode 100644 index 6b44f6eaf2..0000000000 --- a/packages/eventual-send/src/local.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"local.d.ts","sourceRoot":"","sources":["local.js"],"names":[],"mappings":"AA8CO,oCAHI,GAAG,GACD,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,CAqB7B;AAKM,mEAkBN;AAEM,kFAqCN;AAEM,gDAAmC"} \ No newline at end of file diff --git a/packages/eventual-send/src/message-breakpoints.d.ts b/packages/eventual-send/src/message-breakpoints.d.ts deleted file mode 100644 index 5998338c85..0000000000 --- a/packages/eventual-send/src/message-breakpoints.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -export function makeMessageBreakpointTester(optionName: string): MessageBreakpointTester | undefined; -/** - * A star `'*'` matches any recipient. Otherwise, the string is - * matched against the value of a recipient's `@@toStringTag` - * after stripping out any leading `'Alleged: '` or `'DebugName: '` - * prefix. For objects defined with `Far` this is the first argument, - * known as the `farName`. For exos, this is the tag. - */ -export type MatchStringTag = string | '*'; -/** - * A star `'*'` matches any method name. Otherwise, the string is - * matched against the method name. Currently, this is only an exact match. - * However, beware that we may introduce a string syntax for - * symbol method names. - */ -export type MatchMethodName = string | '*'; -/** - * A star `'*'` will always breakpoint. Otherwise, the string - * must be a non-negative integer. Once that is zero, always breakpoint. - * Otherwise decrement by one each time it matches until it reaches zero. - * In other words, the countdown represents the number of - * breakpoint occurrences to skip before actually breakpointing. - */ -export type MatchCountdown = number | '*'; -/** - * This is the external JSON representation, in which - * - the outer property name is the class-like tag or '*', - * - the inner property name is the method name or '*', - * - the value is a non-negative integer countdown or '*'. - */ -export type MessageBreakpoints = Record>; -/** - * This is the internal JSON representation, in which - * - the outer property name is the method name or '*', - * - the inner property name is the class-like tag or '*', - * - the value is a non-negative integer countdown or '*'. - */ -export type BreakpointTable = Record>; -export type MessageBreakpointTester = { - getBreakpoints: () => MessageBreakpoints; - setBreakpoints: (newBreakpoints?: MessageBreakpoints) => void; - shouldBreakpoint: (recipient: object, methodName: string | symbol | undefined) => boolean; -}; -//# sourceMappingURL=message-breakpoints.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/message-breakpoints.d.ts.map b/packages/eventual-send/src/message-breakpoints.d.ts.map deleted file mode 100644 index db4499a5f4..0000000000 --- a/packages/eventual-send/src/message-breakpoints.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"message-breakpoints.d.ts","sourceRoot":"","sources":["message-breakpoints.js"],"names":[],"mappings":"AAyFO,wDAHI,MAAM,GACJ,uBAAuB,GAAG,SAAS,CA0F/C;;;;;;;;6BA1KY,MAAM,GAAG,GAAG;;;;;;;8BAQZ,MAAM,GAAG,GAAG;;;;;;;;6BAOZ,MAAM,GAAG,GAAG;;;;;;;iCAcZ,OAAO,cAAc,EAAE,OAAO,eAAe,EAAE,cAAc,CAAC,CAAC;;;;;;;8BAS/D,OAAO,eAAe,EAAE,OAAO,cAAc,EAAE,cAAc,CAAC,CAAC;;oBAK9D,MAAM,kBAAkB;sCACN,kBAAkB,KAAK,IAAI;kCAE3C,MAAM,cACL,MAAM,GAAG,MAAM,GAAG,SAAS,KACpC,OAAO"} \ No newline at end of file diff --git a/packages/eventual-send/src/no-shim.d.ts b/packages/eventual-send/src/no-shim.d.ts deleted file mode 100644 index a7f35be97c..0000000000 --- a/packages/eventual-send/src/no-shim.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export const E: ((x: T) => import("./E.js").ECallableOrMethods>) & { - readonly get: (x: T_1) => import("./E.js").EGetters>; - readonly resolve: { - (): Promise; - (value: T_2): Promise>; - (value: T_3 | PromiseLike): Promise>; - }; - readonly sendOnly: (x: T_4) => import("./E.js").ESendOnlyCallableOrMethods>; - readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => import("./E.js").ERef) | undefined, onrejected?: ((reason: any) => import("./E.js").ERef) | undefined) => Promise; -}; -export { hp as HandledPromise }; -export * from "./exports.js"; -declare const hp: { - new (executor: import("./handled-promise.js").HandledExecutor, unfulfilledHandler?: import("./handled-promise.js").Handler> | undefined): Promise; - prototype: Promise; -} & PromiseConstructor & import("./handled-promise.js").HandledPromiseStaticMethods; -//# sourceMappingURL=no-shim.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/no-shim.d.ts.map b/packages/eventual-send/src/no-shim.d.ts.map deleted file mode 100644 index 65a5f02fca..0000000000 --- a/packages/eventual-send/src/no-shim.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"no-shim.d.ts","sourceRoot":"","sources":["no-shim.js"],"names":[],"mappings":"AAGA;;;;;;;;;EAA2B;;;AAD3B;;;oFAA0B"} \ No newline at end of file diff --git a/packages/eventual-send/src/postponed.d.ts b/packages/eventual-send/src/postponed.d.ts deleted file mode 100644 index 2a849fd60c..0000000000 --- a/packages/eventual-send/src/postponed.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makePostponedHandler(HandledPromise: import('./types').HandledPromiseConstructor): [Required>, () => void]; -//# sourceMappingURL=postponed.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/postponed.d.ts.map b/packages/eventual-send/src/postponed.d.ts.map deleted file mode 100644 index a026f6a74b..0000000000 --- a/packages/eventual-send/src/postponed.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"postponed.d.ts","sourceRoot":"","sources":["postponed.js"],"names":[],"mappings":"AASO,qDAHI,OAAO,SAAS,EAAE,yBAAyB,GACzC,CAAC,SAAS,OAAO,SAAS,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,EAAE,MAAM,IAAI,CAAC,CAsClE"} \ No newline at end of file diff --git a/packages/eventual-send/src/track-turns.d.ts b/packages/eventual-send/src/track-turns.d.ts deleted file mode 100644 index dca27cad95..0000000000 --- a/packages/eventual-send/src/track-turns.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function trackTurns(funcs: T): T; -/** - * An optional function that is not this-sensitive, expected to be called at - * bottom of stack to start a new turn. - */ -export type TurnStarterFn = ((...args: any[]) => any) | undefined; -//# sourceMappingURL=track-turns.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/src/track-turns.d.ts.map b/packages/eventual-send/src/track-turns.d.ts.map deleted file mode 100644 index ec06f7573f..0000000000 --- a/packages/eventual-send/src/track-turns.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"track-turns.d.ts","sourceRoot":"","sources":["track-turns.js"],"names":[],"mappings":"AAwFO,mEAiBN;;;;;uCAMuB,GAAG,EAAE,KAAK,GAAG"} \ No newline at end of file diff --git a/packages/eventual-send/test/get-hp.d.ts b/packages/eventual-send/test/get-hp.d.ts deleted file mode 100644 index bc6a2c39f7..0000000000 --- a/packages/eventual-send/test/get-hp.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export const HandledPromise: { - new (executor: import("../src/handled-promise.js").HandledExecutor, unfulfilledHandler?: import("../src/handled-promise.js").Handler> | undefined): Promise; - prototype: Promise; -} & PromiseConstructor & import("../src/handled-promise.js").HandledPromiseStaticMethods; -export const E: ((x: T) => import("../src/E.js").ECallableOrMethods>) & { - readonly get: (x: T_1) => import("../src/E.js").EGetters>; - readonly resolve: { - (): Promise; - (value: T_2): Promise>; - (value: T_3 | PromiseLike): Promise>; - }; - readonly sendOnly: (x: T_4) => import("../src/E.js").ESendOnlyCallableOrMethods>; - readonly when: (x: T_5 | PromiseLike, onfulfilled?: ((value: T_5) => import("../src/E.js").ERef) | undefined, onrejected?: ((reason: any) => import("../src/E.js").ERef) | undefined) => Promise; -}; -//# sourceMappingURL=get-hp.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/test/get-hp.d.ts.map b/packages/eventual-send/test/get-hp.d.ts.map deleted file mode 100644 index da422b6ab8..0000000000 --- a/packages/eventual-send/test/get-hp.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"get-hp.d.ts","sourceRoot":"","sources":["get-hp.js"],"names":[],"mappings":"AAGA;;;yFAAmD;AACnD;;;;;;;;;EAAuC"} \ No newline at end of file diff --git a/packages/eventual-send/utils.d.ts b/packages/eventual-send/utils.d.ts deleted file mode 100644 index f1ce792601..0000000000 --- a/packages/eventual-send/utils.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { getMethodNames } from "./src/local.js"; -export { makeMessageBreakpointTester } from "./src/message-breakpoints.js"; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/eventual-send/utils.d.ts.map b/packages/eventual-send/utils.d.ts.map deleted file mode 100644 index a060273e33..0000000000 --- a/packages/eventual-send/utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/exo/index.d.ts b/packages/exo/index.d.ts deleted file mode 100644 index bd4c7ed120..0000000000 --- a/packages/exo/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { GET_INTERFACE_GUARD } from "./src/get-interface.js"; -export { initEmpty, defineExoClass, defineExoClassKit, makeExo } from "./src/exo-makers.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/exo/index.d.ts.map b/packages/exo/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/exo/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/exo/src/exo-makers.d.ts b/packages/exo/src/exo-makers.d.ts deleted file mode 100644 index 7c57da74dd..0000000000 --- a/packages/exo/src/exo-makers.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -export function initEmpty(): {}; -export function defineExoClass any, M extends import("./exo-tools.js").Methods>(tag: string, interfaceGuard: import("@endo/patterns").InterfaceGuard<{ [K in keyof M]: import("@endo/patterns").MethodGuard; }> | undefined, init: I, methods: M & ThisType<{ - self: Guarded; - state: ReturnType; -}>, options?: FarClassOptions, any> | undefined): (...args: Parameters) => Guarded; -export function defineExoClassKit any, F extends Record>(tag: string, interfaceGuardKit: { [K in keyof F]: import("@endo/patterns").InterfaceGuard<{ [M in keyof F[K]]: import("@endo/patterns").MethodGuard; }>; } | undefined, init: I, methodsKit: F & { [K_1 in keyof F]: ThisType<{ - facets: GuardedKit; - state: ReturnType; -}>; }, options?: FarClassOptions, GuardedKit> | undefined): (...args: Parameters) => GuardedKit; -export function makeExo(tag: string, interfaceGuard: import("@endo/patterns").InterfaceGuard<{ [M in keyof T]: import("@endo/patterns").MethodGuard; }> | undefined, methods: T, options?: FarClassOptions, any> | undefined): Guarded; -export type FacetName = import('./exo-tools.js').FacetName; -export type Methods = import('./exo-tools.js').Methods; -export type ClassContext = import('./exo-tools.js').ClassContext; -export type KitContext = any> = import('./exo-tools.js').KitContext; -/** - * It looks like a copyRecord pattern, but the interpretation is different. - * Each property is distinct, is checked and changed separately. - */ -export type StateShape = { - [name: string]: any; -}; -/** - * Template for function-valued options for exo class or exo class kit - * definitions, for receiving powers back at definition time. For example, - * ```js - * let amplify; - * const makeFoo = defineExoClassKit( - * tag, - * interfaceGuardKit, - * initFn, - * behaviorKit, - * { - * receiveAmplifier(a) { amplify = a; }, - * }, - * ); - * ``` - * uses the `receiveAmplifier` option to receive, during the - * definition of this exo class kit, the power to amplify a facet of the kit. - */ -export type ReceivePower

= (power: P) => void; -/** - * The power to amplify a facet instance of the associated exo class kit - * into the record of all facets of this facet instance's cohort. - */ -export type Amplify = (exoFacet: any) => F; -/** - * The power to test if a value is an instance of the - * associated exo class, or a facet instance of the - * associated exo class kit. In the later case, if a `facetName` is provided, - * then it tests only whether the argument is a facet instance of that - * facet of the associated exo class kit. - */ -export type IsInstance = (exo: any, facetName?: string | undefined) => boolean; -/** - * Currently, this one options type is used both for regular exo classes - * as well as exo class kits. However, we may split these into distinct types - * in the future, as not all options make sense for both uses. - */ -export type FarClassOptions = { - /** - * If provided, the `finish` function is called after the instance has been - * initialized and registered, but before it is returned. Try to avoid using - * `finish` if you can, as we think we'd like to deprecate and retire it. - * OTOH, if you encounter a compelling need, please let us know so we can - * revise our plans. - */ - finish?: ((context: C) => void) | undefined; - /** - * If provided, it must be a RecordPattern, i.e., a CopyRecord which is also - * a Pattern. It thus has an exactly defined set of property names and - * a Pattern as the value of each property. This is supposed to be an invariant - * on the properties of an instance state record. - * TODO Though note that only the virtual and durable exos currently - * enforce the `stateShape` invariant. The heap exos defined in this - * package currently ignore `stateShape`, but will enforce this in the future. - */ - stateShape?: StateShape | undefined; - /** - * If a `receiveAmplifier` function is provided, it will be called during - * definition of the exo class kit with an `Amplify` function. If called - * during the definition of a normal exo or exo class, it will throw, since - * only exo kits can be amplified. - * An `Amplify` function is a function that takes a facet instance of - * this class kit as an argument, in which case it will return the facets - * record, giving access to all the facet instances of the same cohort. - */ - receiveAmplifier?: ReceivePower> | undefined; - /** - * If a `receiveInstanceTester` function is provided, it will be called - * during the definition of the exo class or exo class kit with an - * `IsInstance` function. The first argument of `IsInstance` - * is the value to be tested. When it may be a facet instance of an - * exo class kit, the optional second argument, if provided, is - * a `facetName`. In that case, the function tests only if the first - * argument is an instance of that facet of the associated exo class kit. - */ - receiveInstanceTester?: ReceivePower | undefined; -}; -export type Farable = M & import('@endo/eventual-send').RemotableBrand<{}, M>; -export type Guarded = Farable>; -export type GuardedKit> = { [K in keyof F]: Guarded; }; -//# sourceMappingURL=exo-makers.d.ts.map \ No newline at end of file diff --git a/packages/exo/src/exo-makers.d.ts.map b/packages/exo/src/exo-makers.d.ts.map deleted file mode 100644 index 47331fc5b2..0000000000 --- a/packages/exo/src/exo-makers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exo-makers.d.ts","sourceRoot":"","sources":["exo-makers.js"],"names":[],"mappings":"AA0CO,6BAFM,EAAE,CAE2B;AA+InC,mDAXiB,GAAG,EAAE,KAAK,GAAG,mDAE1B,MAAM;;;8GAmEhB;AAkBM,sDAdiB,GAAG,EAAE,KAAK,GAAG,mEAE1B,MAAM;;;4HA8FhB;AAaM,yEARI,MAAM,4NAiBhB;wBAhUY,OAAO,gBAAgB,EAAE,SAAS;sBAClC,OAAO,gBAAgB,EAAE,OAAO;sFAMhC,OAAO,gBAAgB,EAAE,YAAY;oGAMrC,OAAO,gBAAgB,EAAE,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;sDA4B3B,CAAC,KAAK,IAAI;;;;;0DASpB,GAAG,KACD,CAAC;;;;;;;;+BAWH,GAAG,qCAED,OAAO;;;;;;;;;;;;;;wBAcI,CAAC,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;kEAqCrB,CAAC,GAAG,OAAO,qBAAqB,EAAE,cAAc,CAAC,EAAE,EAAE,CAAC,CAAC;kEAKvD,QAAQ,CAAC,GAAG,OAAO,oBAAoB,EAAE,iBAAiB,CAAC,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/exo/src/exo-tools.d.ts b/packages/exo/src/exo-tools.d.ts deleted file mode 100644 index 58d5d0ce1f..0000000000 --- a/packages/exo/src/exo-tools.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export function defendPrototype>(tag: string, contextProvider: ContextProvider, behaviorMethods: T, thisfulMethods?: boolean | undefined, interfaceGuard?: InterfaceGuard<{ [M in keyof T]: import("@endo/patterns").MethodGuard; }> | undefined): T & import("./get-interface.js").GetInterfaceGuard & import("@endo/eventual-send").RemotableBrand<{}, T & import("./get-interface.js").GetInterfaceGuard>; -export function defendPrototypeKit>(tag: string, contextProviderKit: { [K in keyof F]: KitContextProvider; }, behaviorMethodsKit: F, thisfulMethods?: boolean | undefined, interfaceGuardKit?: { [K_1 in keyof F]: InterfaceGuard>; } | undefined): Record & import("@endo/eventual-send").RemotableBrand<{}, F[keyof F] & import("./get-interface.js").GetInterfaceGuard>>; -export type Method = import('@endo/patterns').Method; -export type MethodGuard = import('@endo/patterns').MethodGuard; -export type MethodGuardPayload = import('@endo/patterns').MethodGuardPayload; -export type InterfaceGuard = Record> = import('@endo/patterns').InterfaceGuard; -export type MatchConfig = { - declaredLen: number; - hasRestArgGuard: boolean; - restArgGuardIsRaw: boolean; - paramsPattern: import('@endo/patterns').Pattern; - redactedIndices: number[]; -}; -export type FacetName = string; -export type Methods = Record; -export type ClassContext = { - state: S; - self: M; -}; -export type KitContext = any> = { - state: S; - facets: F; -}; -export type ClassContextProvider = (representative: any) => ClassContext | undefined; -export type KitContextProvider = (facet: any) => KitContext | undefined; -export type ContextProvider = ClassContextProvider | KitContextProvider; -//# sourceMappingURL=exo-tools.d.ts.map \ No newline at end of file diff --git a/packages/exo/src/exo-tools.d.ts.map b/packages/exo/src/exo-tools.d.ts.map deleted file mode 100644 index f04a60f223..0000000000 --- a/packages/exo/src/exo-tools.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exo-tools.d.ts","sourceRoot":"","sources":["exo-tools.js"],"names":[],"mappings":"AA4YO,sFANI,MAAM,mBACN,eAAe,qUA4FzB;AAWM,2EANI,MAAM,qdAyChB;qBA/fa,OAAO,gBAAgB,EAAE,MAAM;0BAC/B,OAAO,gBAAgB,EAAE,WAAW;iCACpC,OAAO,gBAAgB,EAAE,kBAAkB;8JAG5C,OAAO,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAC;;iBAyBzC,MAAM;qBACN,OAAO;uBACP,OAAO;mBACP,OAAO,gBAAgB,EAAE,OAAO;qBAChC,MAAM,EAAE;;wBAmOT,MAAM;sBAIN,OAAO,WAAW,EAAE,gBAAgB,CAAC;6DAMrC;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,MAAM,CAAC,CAAA;CAAE;2EAMrB;IAAE,KAAK,EAAE,CAAC,CAAC;IAAC,MAAM,EAAE,CAAC,CAAA;CAAE;oDAKf,GAAG,KAChB,YAAY,GAAG,SAAS;yCAIX,GAAG,KAAK,UAAU,GAAG,SAAS;8BAIrC,oBAAoB,GAAG,kBAAkB"} \ No newline at end of file diff --git a/packages/exo/src/get-interface.d.ts b/packages/exo/src/get-interface.d.ts deleted file mode 100644 index 1062b609f1..0000000000 --- a/packages/exo/src/get-interface.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * The name of the automatically added default meta-method for - * obtaining an exo's interface, if it has one. - * - * Intended to be similar to `GET_METHOD_NAMES` from `@endo/pass-style`. - * - * TODO Name to be bikeshed. Perhaps even whether it is a - * string or symbol to be bikeshed. See - * https://github.com/endojs/endo/pull/1809#discussion_r1388052454 - * - * TODO Beware that an exo's interface can change across an upgrade, - * so remotes that cache it can become stale. - */ -export const GET_INTERFACE_GUARD: "__getInterfaceGuard__"; -export type GetInterfaceGuard> = { - __getInterfaceGuard__?: (() => import("@endo/patterns").InterfaceGuard<{ [K in keyof M]: import("@endo/patterns").MethodGuard; }> | undefined) | undefined; -}; -//# sourceMappingURL=get-interface.d.ts.map \ No newline at end of file diff --git a/packages/exo/src/get-interface.d.ts.map b/packages/exo/src/get-interface.d.ts.map deleted file mode 100644 index 0d74546f64..0000000000 --- a/packages/exo/src/get-interface.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"get-interface.d.ts","sourceRoot":"","sources":["get-interface.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH,0DAA2D"} \ No newline at end of file diff --git a/packages/exo/tools.d.ts b/packages/exo/tools.d.ts deleted file mode 100644 index 0537b0b5c8..0000000000 --- a/packages/exo/tools.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { defendPrototype, defendPrototypeKit } from "./src/exo-tools.js"; -//# sourceMappingURL=tools.d.ts.map \ No newline at end of file diff --git a/packages/exo/tools.d.ts.map b/packages/exo/tools.d.ts.map deleted file mode 100644 index cff53fc89f..0000000000 --- a/packages/exo/tools.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/far/src/index.d.ts b/packages/far/src/index.d.ts deleted file mode 100644 index 4ddb696a1e..0000000000 --- a/packages/far/src/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export { E } from "@endo/eventual-send"; -/** - * Declare an object that is potentially a far reference of type Primary whose - * auxilliary data has type Local. This should be used only for consumers of - * Far objects in arguments and declarations; the only creators of Far objects - * are distributed object creator components like the `Far` or `Remotable` - * functions. - */ -export type FarRef> = import('@endo/eventual-send').FarRef; -/** - * Declare that `T` may or may not be a Promise. This should be used only for - * consumers of arguments and declarations; return values should specifically be - * `Promise` or `T` itself. - */ -export type ERef = import('@endo/eventual-send').ERef; -/** - * Declare a near object that must only be invoked with E, even locally. It - * supports the `T` interface but additionally permits `T`'s methods to return - * `PromiseLike`s even if `T` declares them as only synchronous. - */ -export type EOnly = import('@endo/eventual-send').EOnly; -export { Far, getInterfaceOf, passStyleOf } from "@endo/pass-style"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/far/src/index.d.ts.map b/packages/far/src/index.d.ts.map deleted file mode 100644 index 892db42def..0000000000 --- a/packages/far/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";;;;;;;;uFAMa,OAAO,qBAAqB,EAAE,MAAM,CAAC,OAAO,EAAE,KAAK,CAAC;;;;;;sBAUpD,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC;;;;;;uBAQrC,OAAO,qBAAqB,EAAE,KAAK,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/import-bundle/source-map-node-powers.d.ts b/packages/import-bundle/source-map-node-powers.d.ts deleted file mode 100644 index dbbd852ea3..0000000000 --- a/packages/import-bundle/source-map-node-powers.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/source-map-node-powers.js"; -//# sourceMappingURL=source-map-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/source-map-node-powers.d.ts.map b/packages/import-bundle/source-map-node-powers.d.ts.map deleted file mode 100644 index 98c43b4996..0000000000 --- a/packages/import-bundle/source-map-node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map-node-powers.d.ts","sourceRoot":"","sources":["source-map-node-powers.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/import-bundle/source-map-node.d.ts b/packages/import-bundle/source-map-node.d.ts deleted file mode 100644 index 5b56377afd..0000000000 --- a/packages/import-bundle/source-map-node.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/source-map-node.js"; -//# sourceMappingURL=source-map-node.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/source-map-node.d.ts.map b/packages/import-bundle/source-map-node.d.ts.map deleted file mode 100644 index 78ff609023..0000000000 --- a/packages/import-bundle/source-map-node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map-node.d.ts","sourceRoot":"","sources":["source-map-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/import-bundle/src/compartment-wrapper.d.ts b/packages/import-bundle/src/compartment-wrapper.d.ts deleted file mode 100644 index acfd8e51e4..0000000000 --- a/packages/import-bundle/src/compartment-wrapper.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function wrapInescapableCompartment(OldCompartment: any, inescapableTransforms: any, inescapableGlobalProperties: any): { - (endowments: any, modules: any, oldOptions?: {}): any; - prototype: any; -}; -//# sourceMappingURL=compartment-wrapper.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/compartment-wrapper.d.ts.map b/packages/import-bundle/src/compartment-wrapper.d.ts.map deleted file mode 100644 index ba70c2db78..0000000000 --- a/packages/import-bundle/src/compartment-wrapper.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compartment-wrapper.d.ts","sourceRoot":"","sources":["compartment-wrapper.js"],"names":[],"mappings":"AAAA;;;EAkEC"} \ No newline at end of file diff --git a/packages/import-bundle/src/index.d.ts b/packages/import-bundle/src/index.d.ts deleted file mode 100644 index 5955eb9f43..0000000000 --- a/packages/import-bundle/src/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function importBundle(bundle: any, options?: {}, powers?: {}): Promise; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/index.d.ts.map b/packages/import-bundle/src/index.d.ts.map deleted file mode 100644 index 39678d02ef..0000000000 --- a/packages/import-bundle/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAeA,mFA+FC"} \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node-powers.d.ts b/packages/import-bundle/src/source-map-node-powers.d.ts deleted file mode 100644 index 6266c02817..0000000000 --- a/packages/import-bundle/src/source-map-node-powers.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export function makeEndoSourceMapLocator(powers: { - url: typeof import('node:url'); - os: typeof import('node:os'); - process: Process; -}): ({ sha512 }: { - sha512: string; -}) => string; -export type Process = { - env: Record; - platform: string; -}; -//# sourceMappingURL=source-map-node-powers.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node-powers.d.ts.map b/packages/import-bundle/src/source-map-node-powers.d.ts.map deleted file mode 100644 index a3aa048c2b..0000000000 --- a/packages/import-bundle/src/source-map-node-powers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map-node-powers.d.ts","sourceRoot":"","sources":["source-map-node-powers.js"],"names":[],"mappings":"AAcO;IAJsC,GAAG,EAArC,cAAc,UAAU,CAAC;IACQ,EAAE,EAAnC,cAAc,SAAS,CAAC;IACR,OAAO,EAAvB,OAAO;;IAaW,MAAM,EAAtB,MAAM;aASlB;;SA9Ba,OAAO,MAAM,EAAE,MAAM,GAAG,SAAS,CAAC;cAClC,MAAM"} \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node.d.ts b/packages/import-bundle/src/source-map-node.d.ts deleted file mode 100644 index 037c8e07ef..0000000000 --- a/packages/import-bundle/src/source-map-node.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export const computeSourceMapLocation: ({ sha512 }: { - sha512: string; -}) => string; -//# sourceMappingURL=source-map-node.d.ts.map \ No newline at end of file diff --git a/packages/import-bundle/src/source-map-node.d.ts.map b/packages/import-bundle/src/source-map-node.d.ts.map deleted file mode 100644 index 1e66bbf20f..0000000000 --- a/packages/import-bundle/src/source-map-node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"source-map-node.d.ts","sourceRoot":"","sources":["source-map-node.js"],"names":[],"mappings":"AAKA;;aAIG"} \ No newline at end of file diff --git a/packages/init/debug.d.ts b/packages/init/debug.d.ts deleted file mode 100644 index cb377b94cb..0000000000 --- a/packages/init/debug.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "@endo/lockdown/commit-debug.js"; -//# sourceMappingURL=debug.d.ts.map \ No newline at end of file diff --git a/packages/init/debug.d.ts.map b/packages/init/debug.d.ts.map deleted file mode 100644 index abe2434c3a..0000000000 --- a/packages/init/debug.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"debug.d.ts","sourceRoot":"","sources":["debug.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/index.d.ts b/packages/init/index.d.ts deleted file mode 100644 index 1a8fb2067e..0000000000 --- a/packages/init/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "@endo/lockdown/commit.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/init/index.d.ts.map b/packages/init/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/init/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/legacy.d.ts b/packages/init/legacy.d.ts deleted file mode 100644 index b6c5edb903..0000000000 --- a/packages/init/legacy.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=legacy.d.ts.map \ No newline at end of file diff --git a/packages/init/legacy.d.ts.map b/packages/init/legacy.d.ts.map deleted file mode 100644 index 0c38f4caf9..0000000000 --- a/packages/init/legacy.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"legacy.d.ts","sourceRoot":"","sources":["legacy.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/pre-bundle-source.d.ts b/packages/init/pre-bundle-source.d.ts deleted file mode 100644 index 3efda1a348..0000000000 --- a/packages/init/pre-bundle-source.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "@endo/init/pre.js"; -//# sourceMappingURL=pre-bundle-source.d.ts.map \ No newline at end of file diff --git a/packages/init/pre-bundle-source.d.ts.map b/packages/init/pre-bundle-source.d.ts.map deleted file mode 100644 index 0a1f81e79b..0000000000 --- a/packages/init/pre-bundle-source.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pre-bundle-source.d.ts","sourceRoot":"","sources":["pre-bundle-source.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/pre-remoting.d.ts b/packages/init/pre-remoting.d.ts deleted file mode 100644 index 2e0b29e690..0000000000 --- a/packages/init/pre-remoting.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "@endo/init/pre.js"; -export * from "@endo/eventual-send/shim.js"; -//# sourceMappingURL=pre-remoting.d.ts.map \ No newline at end of file diff --git a/packages/init/pre-remoting.d.ts.map b/packages/init/pre-remoting.d.ts.map deleted file mode 100644 index b6608cea59..0000000000 --- a/packages/init/pre-remoting.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pre-remoting.d.ts","sourceRoot":"","sources":["pre-remoting.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/pre.d.ts b/packages/init/pre.d.ts deleted file mode 100644 index 138608b726..0000000000 --- a/packages/init/pre.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "@endo/lockdown"; -//# sourceMappingURL=pre.d.ts.map \ No newline at end of file diff --git a/packages/init/pre.d.ts.map b/packages/init/pre.d.ts.map deleted file mode 100644 index 900356edbb..0000000000 --- a/packages/init/pre.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pre.d.ts","sourceRoot":"","sources":["pre.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/src/node-async-local-storage-patch.d.ts b/packages/init/src/node-async-local-storage-patch.d.ts deleted file mode 100644 index 061b825b2a..0000000000 --- a/packages/init/src/node-async-local-storage-patch.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/// -export type AsyncLocalStorageInternal = { - enabled: boolean; - _propagate: typeof _propagate; - _enable: (this: AsyncLocalStorage) => void; -}; -/** - * @this {AsyncLocalStorage & AsyncLocalStorageInternal} - * @param {object} resource - * @param {object} triggerResource - * @param {string} [type] - */ -declare function _propagate(this: AsyncLocalStorage & AsyncLocalStorageInternal, resource: object, triggerResource: object, type?: string | undefined): void; -import { AsyncLocalStorage } from 'node:async_hooks'; -export {}; -//# sourceMappingURL=node-async-local-storage-patch.d.ts.map \ No newline at end of file diff --git a/packages/init/src/node-async-local-storage-patch.d.ts.map b/packages/init/src/node-async-local-storage-patch.d.ts.map deleted file mode 100644 index 889d9c5a0b..0000000000 --- a/packages/init/src/node-async-local-storage-patch.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-async-local-storage-patch.d.ts","sourceRoot":"","sources":["node-async-local-storage-patch.js"],"names":[],"mappings":";;aAec,OAAO;gBACP,iBAAiB;+CACY,IAAI;;AAa/C;;;;;GAKG;AACH,gGAJW,MAAM,mBACN,MAAM,mCAQhB;kCAvCyD,kBAAkB"} \ No newline at end of file diff --git a/packages/init/src/node-async_hooks-patch.d.ts b/packages/init/src/node-async_hooks-patch.d.ts deleted file mode 100644 index 6e8f03429f..0000000000 --- a/packages/init/src/node-async_hooks-patch.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=node-async_hooks-patch.d.ts.map \ No newline at end of file diff --git a/packages/init/src/node-async_hooks-patch.d.ts.map b/packages/init/src/node-async_hooks-patch.d.ts.map deleted file mode 100644 index 6f9f710cf2..0000000000 --- a/packages/init/src/node-async_hooks-patch.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-async_hooks-patch.d.ts","sourceRoot":"","sources":["node-async_hooks-patch.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/src/node-async_hooks.d.ts b/packages/init/src/node-async_hooks.d.ts deleted file mode 100644 index 6236e2d2e1..0000000000 --- a/packages/init/src/node-async_hooks.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function setup({ withDestroy }?: { - withDestroy?: boolean | undefined; -}): void; -//# sourceMappingURL=node-async_hooks.d.ts.map \ No newline at end of file diff --git a/packages/init/src/node-async_hooks.d.ts.map b/packages/init/src/node-async_hooks.d.ts.map deleted file mode 100644 index 6e8a9ebe66..0000000000 --- a/packages/init/src/node-async_hooks.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"node-async_hooks.d.ts","sourceRoot":"","sources":["node-async_hooks.js"],"names":[],"mappings":"AAuMO;;SAwCN"} \ No newline at end of file diff --git a/packages/init/src/pre-node.d.ts b/packages/init/src/pre-node.d.ts deleted file mode 100644 index 0e6b9ec99e..0000000000 --- a/packages/init/src/pre-node.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "../pre.js"; -//# sourceMappingURL=pre-node.d.ts.map \ No newline at end of file diff --git a/packages/init/src/pre-node.d.ts.map b/packages/init/src/pre-node.d.ts.map deleted file mode 100644 index 82b44d7a1f..0000000000 --- a/packages/init/src/pre-node.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pre-node.d.ts","sourceRoot":"","sources":["pre-node.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/init/unsafe-fast.d.ts b/packages/init/unsafe-fast.d.ts deleted file mode 100644 index d93c44139b..0000000000 --- a/packages/init/unsafe-fast.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=unsafe-fast.d.ts.map \ No newline at end of file diff --git a/packages/init/unsafe-fast.d.ts.map b/packages/init/unsafe-fast.d.ts.map deleted file mode 100644 index bc14ea1e05..0000000000 --- a/packages/init/unsafe-fast.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"unsafe-fast.d.ts","sourceRoot":"","sources":["unsafe-fast.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/lp32/index.d.ts b/packages/lp32/index.d.ts deleted file mode 100644 index b57d944eb9..0000000000 --- a/packages/lp32/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { makeLp32Reader } from "./reader.js"; -export { makeLp32Writer } from "./writer.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/lp32/index.d.ts.map b/packages/lp32/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/lp32/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/lp32/reader.d.ts b/packages/lp32/reader.d.ts deleted file mode 100644 index 5859afbf97..0000000000 --- a/packages/lp32/reader.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makeLp32Reader(reader: Iterable | AsyncIterable, opts?: { - name?: string | undefined; - capacity?: number | undefined; -} | undefined): import('@endo/stream').Reader; -//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/lp32/reader.d.ts.map b/packages/lp32/reader.d.ts.map deleted file mode 100644 index 917a5c2dd1..0000000000 --- a/packages/lp32/reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AAiFO,uCANI,SAAS,UAAU,CAAC,GAAG,cAAc,UAAU,CAAC;WAEhD,MAAM;eACN,MAAM;gBACJ,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,IAAI,CAAC,CAI3D"} \ No newline at end of file diff --git a/packages/lp32/src/host-endian.d.ts b/packages/lp32/src/host-endian.d.ts deleted file mode 100644 index e74c0db1d0..0000000000 --- a/packages/lp32/src/host-endian.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const hostIsLittleEndian: boolean; -//# sourceMappingURL=host-endian.d.ts.map \ No newline at end of file diff --git a/packages/lp32/src/host-endian.d.ts.map b/packages/lp32/src/host-endian.d.ts.map deleted file mode 100644 index 644ba06d4a..0000000000 --- a/packages/lp32/src/host-endian.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"host-endian.d.ts","sourceRoot":"","sources":["host-endian.js"],"names":[],"mappings":"AAQA,yCAAuD"} \ No newline at end of file diff --git a/packages/lp32/writer.d.ts b/packages/lp32/writer.d.ts deleted file mode 100644 index cc89e96ca4..0000000000 --- a/packages/lp32/writer.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function makeLp32Writer(output: import('@endo/stream').Writer, { name, maxMessageLength, littleEndian, }?: { - maxMessageLength?: number | undefined; - name?: string | undefined; - littleEndian?: boolean | undefined; -}): import('@endo/stream').Writer; -//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/lp32/writer.d.ts.map b/packages/lp32/writer.d.ts.map deleted file mode 100644 index cf0e99c115..0000000000 --- a/packages/lp32/writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAcO,uCAPI,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC;IAEtC,gBAAgB;IAChB,IAAI;IACH,YAAY;IACzB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAmChE"} \ No newline at end of file diff --git a/packages/marshal/index.d.ts b/packages/marshal/index.d.ts deleted file mode 100644 index 2d06fae52b..0000000000 --- a/packages/marshal/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export { deeplyFulfilled } from "./src/deeplyFulfilled.js"; -export { QCLASS } from "./src/encodeToCapData.js"; -export { makeMarshal } from "./src/marshal.js"; -export { decodeToJustin } from "./src/marshal-justin.js"; -export * from "./src/types.js"; -export * from "@endo/pass-style"; -export { stringify, parse } from "./src/marshal-stringify.js"; -export { makePassableKit, makeEncodePassable, makeDecodePassable, isEncodedRemotable, zeroPad, recordNames, recordValues } from "./src/encodePassable.js"; -export { trivialComparator, assertRankSorted, compareRank, isRankSorted, sortByRank, compareAntiRank, makeFullOrderComparatorKit, getPassStyleCover, intersectRankCovers, unionRankCovers } from "./src/rankOrder.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/marshal/index.d.ts.map b/packages/marshal/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/marshal/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/marshal/src/deeplyFulfilled.d.ts b/packages/marshal/src/deeplyFulfilled.d.ts deleted file mode 100644 index af0a1531e7..0000000000 --- a/packages/marshal/src/deeplyFulfilled.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function deeplyFulfilled(val: Passable): Promise; -export type Passable = import('@endo/pass-style').Passable; -export type ERef = import('@endo/eventual-send').ERef; -//# sourceMappingURL=deeplyFulfilled.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/deeplyFulfilled.d.ts.map b/packages/marshal/src/deeplyFulfilled.d.ts.map deleted file mode 100644 index c27d1a31d6..0000000000 --- a/packages/marshal/src/deeplyFulfilled.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"deeplyFulfilled.d.ts","sourceRoot":"","sources":["deeplyFulfilled.js"],"names":[],"mappings":"AA4CO,qCAHI,QAAQ,GACN,QAAQ,QAAQ,CAAC,CAyC7B;uBA7Ea,OAAO,kBAAkB,EAAE,QAAQ;sBACvB,OAAO,qBAAqB,EAAE,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/marshal/src/dot-membrane.d.ts b/packages/marshal/src/dot-membrane.d.ts deleted file mode 100644 index e7c2079a86..0000000000 --- a/packages/marshal/src/dot-membrane.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makeDotMembraneKit(target: any): { - proxy: any; - revoke: (reasonString: any) => void; -}; -//# sourceMappingURL=dot-membrane.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/dot-membrane.d.ts.map b/packages/marshal/src/dot-membrane.d.ts.map deleted file mode 100644 index 4793fb9671..0000000000 --- a/packages/marshal/src/dot-membrane.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"dot-membrane.d.ts","sourceRoot":"","sources":["dot-membrane.js"],"names":[],"mappings":"AAiJO;;;EAMN"} \ No newline at end of file diff --git a/packages/marshal/src/encodePassable.d.ts b/packages/marshal/src/encodePassable.d.ts deleted file mode 100644 index f72b9c76f0..0000000000 --- a/packages/marshal/src/encodePassable.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export function recordNames(record: CopyRecord): string[]; -export function recordValues(record: CopyRecord, names: string[]): T[]; -export function zeroPad(n: unknown, size: number): string; -export function makePassableKit(options?: (EncodeOptions & DecodeOptions) | undefined): PassableKit; -export function makeEncodePassable(encodeOptions?: EncodeOptions | undefined): PassableKit['encodePassable']; -export function makeDecodePassable(decodeOptions?: DecodeOptions | undefined): PassableKit['decodePassable']; -export function isEncodedRemotable(encoded: any): boolean; -/** - * @type {Record} - * The single prefix characters to be used for each PassStyle category. - * `bigint` is a two-character string because each of those characters - * individually is a valid bigint prefix (`n` for "negative" and `p` for - * "positive"), and copyArray is a two-character string because one encoding - * prefixes arrays with `[` while the other uses `^` (which is prohibited from - * appearing in an encoded string). - * The ordering of these prefixes is the same as the rankOrdering of their - * respective PassStyles, and rankOrder.js imports the table for this purpose. - * - * In addition, `|` is the remotable->ordinal mapping prefix: - * This is not used in covers but it is - * reserved from the same set of strings. Note that the prefix is > any - * prefix used by any cover so that ordinal mapping keys are always outside - * the range of valid collection entry keys. - */ -export const passStylePrefixes: Record; -export type PassStyle = import('@endo/pass-style').PassStyle; -export type Passable = import('@endo/pass-style').Passable; -export type Remotable = import('@endo/pass-style').RemotableObject; -export type CopyRecord = import('@endo/pass-style').CopyRecord; -export type RankCover = import('./types.js').RankCover; -export type EncodeOptions = { - encodeRemotable?: ((remotable: Remotable, encodeRecur: (p: Passable) => string) => string) | undefined; - encodePromise?: ((promise: Promise, encodeRecur: (p: Passable) => string) => string) | undefined; - encodeError?: ((error: Error, encodeRecur: (p: Passable) => string) => string) | undefined; - format?: "legacyOrdered" | "compactOrdered" | undefined; -}; -export type DecodeOptions = { - decodeRemotable?: ((encodedRemotable: string, decodeRecur: (e: string) => Passable) => Remotable) | undefined; - decodePromise?: ((encodedPromise: string, decodeRecur: (e: string) => Passable) => Promise) | undefined; - decodeError?: ((encodedError: string, decodeRecur: (e: string) => Passable) => Error) | undefined; -}; -export type PassableKit = { - encodePassable: ReturnType<(encodeStringSuffix: (str: string) => string, encodeArray: (arr: unknown[], encodeRecur: (p: any) => string) => string, options: Required & { - verifyEncoding?: ((encoded: string, label: string) => void) | undefined; - }) => (p: any) => string>; - decodePassable: ReturnType<(decodeStringSuffix: (encoded: string) => string, decodeArray: (encoded: string, decodeRecur: (e: string) => any, skip?: number | undefined) => unknown[], options: Required) => (encoded: string, skip?: number | undefined) => any>; -}; -//# sourceMappingURL=encodePassable.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/encodePassable.d.ts.map b/packages/marshal/src/encodePassable.d.ts.map deleted file mode 100644 index d80eca24fb..0000000000 --- a/packages/marshal/src/encodePassable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodePassable.d.ts","sourceRoot":"","sources":["encodePassable.js"],"names":[],"mappings":"AAiDO,uDAFM,MAAM,EAAE,CAQ+C;AAY7D,8DAHI,MAAM,EAAE,OAIsB;AAYlC,2BAJI,OAAO,QACP,MAAM,GACJ,MAAM,CAQlB;AAspBM,wFAFM,WAAW,CA8EvB;AAOM,+EAFM,WAAW,CAAC,gBAAgB,CAAC,CAKzC;AAOM,+EAFM,WAAW,CAAC,gBAAgB,CAAC,CAKzC;AAGM,0DAA+D;AAKtE;;;;;;;;;;;;;;;;GAgBG;AACH,gCAhBU,OAAO,SAAS,EAAE,MAAM,CAAC,CA8BjC;wBAx2BY,OAAO,kBAAkB,EAAE,SAAS;uBACpC,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,eAAe;kDAG3C,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;wBAEvC,OAAO,YAAY,EAAE,SAAS;;mCAihB5B,SAAS,mBACH,QAAQ,KAAK,MAAM,KACjC,MAAM;8DAGQ,QAAQ,KAAK,MAAM,KACjC,MAAM;2BAEF,KAAK,mBACK,QAAQ,KAAK,MAAM,KACjC,MAAM;;;;0CA6FS,MAAM,mBACP,MAAM,KAAK,QAAQ,KACjC,SAAS;sCAEI,MAAM,mBACL,MAAM,KAAK,QAAQ;kCAGtB,MAAM,mBACH,MAAM,KAAK,QAAQ,KACjC,KAAK;;;oBAgFC;;6BAA2B;oBAC3B,+PAA2B"} \ No newline at end of file diff --git a/packages/marshal/src/encodeToCapData.d.ts b/packages/marshal/src/encodeToCapData.d.ts deleted file mode 100644 index 6631e3320b..0000000000 --- a/packages/marshal/src/encodeToCapData.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -export function makeEncodeToCapData(encodeOptions?: EncodeToCapDataOptions | undefined): (passable: Passable) => Encoding; -export function makeDecodeFromCapData(decodeOptions?: DecodeOptions | undefined): (encoded: Encoding) => Passable; -export type Passable = import('@endo/pass-style').Passable; -export type Encoding = import('./types.js').Encoding; -export type Remotable = typeof import("@endo/pass-style").Remotable; -export type EncodingUnion = import('./types.js').EncodingUnion; -export type EncodeToCapDataOptions = { - encodeRemotableToCapData?: ((remotable: Remotable, encodeRecur: (p: Passable) => Encoding) => Encoding) | undefined; - encodePromiseToCapData?: ((promise: Promise, encodeRecur: (p: Passable) => Encoding) => Encoding) | undefined; - encodeErrorToCapData?: ((error: Error, encodeRecur: (p: Passable) => Encoding) => Encoding) | undefined; -}; -export type DecodeOptions = { - decodeRemotableFromCapData?: ((encodedRemotable: Encoding, decodeRecur: (e: Encoding) => Passable) => (Promise | Remotable)) | undefined; - decodePromiseFromCapData?: ((encodedPromise: Encoding, decodeRecur: (e: Encoding) => Passable) => (Promise | Remotable)) | undefined; - decodeErrorFromCapData?: ((encodedError: Encoding, decodeRecur: (e: Encoding) => Passable) => Error) | undefined; -}; -/** - * Special property name that indicates an encoding that needs special - * decoding. - */ -export const QCLASS: "@qclass"; -//# sourceMappingURL=encodeToCapData.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/encodeToCapData.d.ts.map b/packages/marshal/src/encodeToCapData.d.ts.map deleted file mode 100644 index dad1173974..0000000000 --- a/packages/marshal/src/encodeToCapData.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodeToCapData.d.ts","sourceRoot":"","sources":["encodeToCapData.js"],"names":[],"mappings":"AAuFO,oGAFiB,QAAQ,KAAK,QAAQ,CAkL5C;AAqCM,4FAFgB,QAAQ,KAAK,QAAQ,CA+I3C;uBApaa,OAAO,kBAAkB,EAAE,QAAQ;uBACnC,OAAO,YAAY,EAAE,QAAQ;;4BAE7B,OAAO,YAAY,EAAE,aAAa;;4CAwChC,SAAS,mBACH,QAAQ,KAAK,QAAQ,KACnC,QAAQ;uEAGM,QAAQ,KAAK,QAAQ,KACnC,QAAQ;oCAEJ,KAAK,mBACK,QAAQ,KAAK,QAAQ,KACnC,QAAQ;;;qDAmMO,QAAQ,mBACT,QAAQ,KAAK,QAAQ,KACnC,CAAC,eAAQ,SAAS,CAAC;iDAEN,QAAQ,mBACP,QAAQ,KAAK,QAAQ,KACnC,CAAC,eAAQ,SAAS,CAAC;6CAER,QAAQ,mBACL,QAAQ,KAAK,QAAQ,KACnC,KAAK;;AAlPb;;;GAGG;AACH,+BAAyB"} \ No newline at end of file diff --git a/packages/marshal/src/encodeToSmallcaps.d.ts b/packages/marshal/src/encodeToSmallcaps.d.ts deleted file mode 100644 index 5a29270617..0000000000 --- a/packages/marshal/src/encodeToSmallcaps.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export function makeEncodeToSmallcaps(encodeOptions?: EncodeToSmallcapsOptions | undefined): (passable: Passable) => SmallcapsEncoding; -export function makeDecodeFromSmallcaps(decodeOptions?: DecodeFromSmallcapsOptions | undefined): (encoded: SmallcapsEncoding) => Passable; -export type Passable = import('@endo/pass-style').Passable; -export type Remotable = typeof import("@endo/pass-style").Remotable; -export type SmallcapsEncoding = any; -export type SmallcapsEncodingUnion = any; -export type EncodeToSmallcapsOptions = { - encodeRemotableToSmallcaps?: ((remotable: Remotable, encodeRecur: (p: Passable) => SmallcapsEncoding) => SmallcapsEncoding) | undefined; - encodePromiseToSmallcaps?: ((promise: Promise, encodeRecur: (p: Passable) => SmallcapsEncoding) => SmallcapsEncoding) | undefined; - encodeErrorToSmallcaps?: ((error: Error, encodeRecur: (p: Passable) => SmallcapsEncoding) => SmallcapsEncoding) | undefined; -}; -export type DecodeFromSmallcapsOptions = { - decodeRemotableFromSmallcaps?: ((encodedRemotable: SmallcapsEncoding, decodeRecur: (e: SmallcapsEncoding) => Passable) => Remotable) | undefined; - decodePromiseFromSmallcaps?: ((encodedPromise: SmallcapsEncoding, decodeRecur: (e: SmallcapsEncoding) => Passable) => Promise) | undefined; - decodeErrorFromSmallcaps?: ((encodedError: SmallcapsEncoding, decodeRecur: (e: SmallcapsEncoding) => Passable) => Error) | undefined; -}; -//# sourceMappingURL=encodeToSmallcaps.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/encodeToSmallcaps.d.ts.map b/packages/marshal/src/encodeToSmallcaps.d.ts.map deleted file mode 100644 index 550b5fcefd..0000000000 --- a/packages/marshal/src/encodeToSmallcaps.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encodeToSmallcaps.d.ts","sourceRoot":"","sources":["encodeToSmallcaps.js"],"names":[],"mappings":"AAuHO,wGAFiB,QAAQ,KAAK,iBAAiB,CAgLrD;AA8BM,2GAFgB,iBAAiB,KAAK,QAAQ,CAoJpD;uBAjca,OAAO,kBAAkB,EAAE,QAAQ;;gCAInC,GAAG;qCACH,GAAG;;8CAkED,SAAS,mBACH,QAAQ,KAAK,iBAAiB,KAC5C,iBAAiB;yEAGH,QAAQ,KAAK,iBAAiB,KAC5C,iBAAiB;sCAEb,KAAK,mBACK,QAAQ,KAAK,iBAAiB,KAC5C,iBAAiB;;;uDAsMF,iBAAiB,mBAClB,iBAAiB,KAAK,QAAQ,KAC5C,SAAS;mDAEI,iBAAiB,mBAChB,iBAAiB,KAAK,QAAQ;+CAGjC,iBAAiB,mBACd,iBAAiB,KAAK,QAAQ,KAC5C,KAAK"} \ No newline at end of file diff --git a/packages/marshal/src/marshal-justin.d.ts b/packages/marshal/src/marshal-justin.d.ts deleted file mode 100644 index 6a9160a821..0000000000 --- a/packages/marshal/src/marshal-justin.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export type Encoding = import('./types.js').Encoding; -export type CapData = import('./types.js').CapData; -export type Indenter = { - open: (openBracket: string) => number; - line: () => number; - next: (token: string) => number; - close: (closeBracket: string) => number; - done: () => string; -}; -/** - * @param {Encoding} encoding - * @param {boolean=} shouldIndent - * @param {any[]} [slots] - * @returns {string} - */ -export function decodeToJustin(encoding: Encoding, shouldIndent?: boolean | undefined, slots?: any[] | undefined): string; -//# sourceMappingURL=marshal-justin.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/marshal-justin.d.ts.map b/packages/marshal/src/marshal-justin.d.ts.map deleted file mode 100644 index 066a5a4c5f..0000000000 --- a/packages/marshal/src/marshal-justin.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"marshal-justin.d.ts","sourceRoot":"","sources":["marshal-justin.js"],"names":[],"mappings":"uBAWc,OAAO,YAAY,EAAE,QAAQ;yBACjB,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;;wBAQ7B,MAAM,KAAK,MAAM;UAC/B,MAAM,MAAM;kBACJ,MAAM,KAAK,MAAM;0BACV,MAAM,KAAK,MAAM;UAChC,MAAM,MAAM;;AAiG1B;;;;;GAKG;AACH,yCALW,QAAQ,iBACR,OAAO,0CAEL,MAAM,CAgUlB"} \ No newline at end of file diff --git a/packages/marshal/src/marshal-stringify.d.ts b/packages/marshal/src/marshal-stringify.d.ts deleted file mode 100644 index a40b4ff8b9..0000000000 --- a/packages/marshal/src/marshal-stringify.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export type Passable = import('@endo/pass-style').Passable; -/** - * @param {Passable} val - * @returns {string} - */ -export function stringify(val: Passable): string; -/** - * @param {string} str - * @returns {Passable} - */ -export function parse(str: string): Passable; -//# sourceMappingURL=marshal-stringify.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/marshal-stringify.d.ts.map b/packages/marshal/src/marshal-stringify.d.ts.map deleted file mode 100644 index c89a6656ac..0000000000 --- a/packages/marshal/src/marshal-stringify.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"marshal-stringify.d.ts","sourceRoot":"","sources":["marshal-stringify.js"],"names":[],"mappings":"uBAKc,OAAO,kBAAkB,EAAE,QAAQ;AAgCjD;;;GAGG;AACH,+BAHW,QAAQ,GACN,MAAM,CAEyB;AAG5C;;;GAGG;AACH,2BAHW,MAAM,GACJ,QAAQ,CAQlB"} \ No newline at end of file diff --git a/packages/marshal/src/marshal.d.ts b/packages/marshal/src/marshal.d.ts deleted file mode 100644 index 34f7c98e58..0000000000 --- a/packages/marshal/src/marshal.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export function makeMarshal(convertValToSlot?: ConvertValToSlot | undefined, convertSlotToVal?: ConvertSlotToVal | undefined, { errorTagging, marshalName, errorIdNum, marshalSaveError, serializeBodyFormat, }?: MakeMarshalOptions): { - toCapData: ToCapData; - fromCapData: FromCapData; - /** @deprecated use toCapData */ - serialize: ToCapData; - /** @deprecated use fromCapData */ - unserialize: FromCapData; -}; -export type MakeMarshalOptions = import('./types.js').MakeMarshalOptions; -export type ConvertSlotToVal = import('./types.js').ConvertSlotToVal; -export type ConvertValToSlot = import('./types.js').ConvertValToSlot; -export type ToCapData = import('./types.js').ToCapData; -export type FromCapData = import('./types.js').FromCapData; -export type Passable = import('@endo/pass-style').Passable; -export type InterfaceSpec = import('@endo/pass-style').InterfaceSpec; -export type Encoding = import('./types.js').Encoding; -export type Remotable = import('@endo/pass-style').RemotableObject; -//# sourceMappingURL=marshal.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/marshal.d.ts.map b/packages/marshal/src/marshal.d.ts.map deleted file mode 100644 index 9ae5013338..0000000000 --- a/packages/marshal/src/marshal.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"marshal.d.ts","sourceRoot":"","sources":["marshal.js"],"names":[],"mappings":"AAgDO,oOAFI,kBAAkB;;;IA2WzB,gCAAgC;;IAEhC,kCAAkC;;EAGrC;iCAvYa,OAAO,YAAY,EAAE,kBAAkB;qCACxB,OAAO,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC;qCAC3C,OAAO,YAAY,EAAE,gBAAgB,CAAC,IAAI,CAAC;8BAC3C,OAAO,YAAY,EAAE,SAAS,CAAC,IAAI,CAAC;gCACpC,OAAO,YAAY,EAAE,WAAW,CAAC,IAAI,CAAC;uBACrD,OAAO,kBAAkB,EAAE,QAAQ;4BACnC,OAAO,kBAAkB,EAAE,aAAa;uBACxC,OAAO,YAAY,EAAE,QAAQ;wBAC7B,OAAO,kBAAkB,EAAE,eAAe"} \ No newline at end of file diff --git a/packages/marshal/src/rankOrder.d.ts b/packages/marshal/src/rankOrder.d.ts deleted file mode 100644 index a6f4112021..0000000000 --- a/packages/marshal/src/rankOrder.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -export function trivialComparator(left: any, right: any): 1 | -1 | 0; -export function getPassStyleCover(passStyle: PassStyle): import("./types.js").RankCover; -export function makeComparatorKit(compareRemotables?: RankCompare | undefined): RankComparatorKit; -export function comparatorMirrorImage(comparator: RankCompare): RankCompare | undefined; -export function isRankSorted(passables: Passable[], compare: RankCompare): boolean; -export function assertRankSorted(sorted: Passable[], compare: RankCompare): true; -export function sortByRank(passables: Iterable, compare: RankCompare): Passable[]; -export function getIndexCover(sorted: Passable[], compare: RankCompare, [leftKey, rightKey]: import("./types.js").RankCover): IndexCover; -/** @type {RankCover} */ -export const FullRankCover: import("./types.js").RankCover; -export function coveredEntries(sorted: Passable[], [leftIndex, rightIndex]: IndexCover): Iterable<[number, Passable]>; -export function unionRankCovers(compare: RankCompare, covers: import("./types.js").RankCover[]): import("./types.js").RankCover; -export function intersectRankCovers(compare: RankCompare, covers: import("./types.js").RankCover[]): import("./types.js").RankCover; -export const compareRank: import("./types.js").RankCompare; -export const compareAntiRank: import("./types.js").RankCompare; -export function makeFullOrderComparatorKit(longLived?: boolean | undefined): FullComparatorKit; -export type Passable = import('@endo/pass-style').Passable; -export type PassStyle = import('@endo/pass-style').PassStyle; -export type RankCover = import('./types.js').RankCover; -export type RankComparison = import('./types.js').RankComparison; -export type RankCompare = import('./types.js').RankCompare; -export type FullCompare = import('./types.js').FullCompare; -export type RankComparatorKit = { - comparator: RankCompare; - antiComparator: RankCompare; -}; -export type FullComparatorKit = { - comparator: FullCompare; - antiComparator: FullCompare; -}; -export type IndexCover = [number, number]; -export type PassStyleRanksRecord = Record; -//# sourceMappingURL=rankOrder.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/rankOrder.d.ts.map b/packages/marshal/src/rankOrder.d.ts.map deleted file mode 100644 index 1903063fee..0000000000 --- a/packages/marshal/src/rankOrder.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"rankOrder.d.ts","sourceRoot":"","sources":["rankOrder.js"],"names":[],"mappings":"AAgDO,qEAEqC;AAyCrC,6CAHI,SAAS,kCAGyD;AAqBtE,sDAPI,WAAW,eAKT,iBAAiB,CA+H7B;AAKM,kDAHI,WAAW,GACT,WAAW,aAGgB;AAOjC,wCAJI,QAAQ,EAAE,WACV,WAAW,GACT,OAAO,CAgBnB;AAOM,yCAHI,QAAQ,EAAE,WACV,WAAW,QAMkD;AAiBjE,sCAJI,SAAS,QAAQ,CAAC,WAClB,WAAW,GACT,QAAQ,EAAE,CAmBtB;AAoCM,sCALI,QAAQ,EAAE,WACV,WAAW,mEASrB;AAGD,wBAAwB;AACxB,2DAA+C;AAOxC,uCAJI,QAAQ,EAAE,wCAER,SAAS,CAAC,MAAM,EAAE,QAAQ,CAAC,CAAC,CAqBxC;AAwBM,yCAJI,WAAW,UACX,gCAAW,kCAcrB;AAQM,6CAJI,WAAW,UACX,gCAAW,kCAcrB;;;AA+BM,uDAHI,OAAO,eACL,iBAAiB,CAmB7B;uBA1da,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,SAAS;wBACpC,OAAO,YAAY,EAAE,SAAS;6BAC9B,OAAO,YAAY,EAAE,cAAc;0BACnC,OAAO,YAAY,EAAE,WAAW;0BAChC,OAAO,YAAY,EAAE,WAAW;;gBAMhC,WAAW;oBACX,WAAW;;;gBAKX,WAAW;oBACX,WAAW;;yBAIZ,CAAC,MAAM,EAAE,MAAM,CAAC;mCAuBhB,OAAO,SAAS,EAAE;IAAE,KAAK,EAAE,MAAM,CAAC;IAAC,KAAK,mBAAW;CAAE,CAAC"} \ No newline at end of file diff --git a/packages/marshal/src/types.d.ts b/packages/marshal/src/types.d.ts deleted file mode 100644 index b5e928260d..0000000000 --- a/packages/marshal/src/types.d.ts +++ /dev/null @@ -1,166 +0,0 @@ -export type ConvertValToSlot = (val: import("@endo/pass-style").PassableCap) => Slot; -export type ConvertSlotToVal = (slot: Slot, iface?: string | undefined) => import("@endo/pass-style").PassableCap; -export type EncodingClass = { - '@qclass': T; -}; -/** - * Note that the '@@asyncIterator' encoding is deprecated. Use 'symbol' instead. - * - * The 'hilbert' encoding is a reference to the Hilbert Hotel - * of https://www.ias.edu/ideas/2016/pires-hilbert-hotel . - * It represents data that has its own '@qclass' property by separately storing - * the `original` value of that property and - * a `rest` record containing all other properties. - */ -export type EncodingUnion = EncodingClass<'NaN'> | EncodingClass<'undefined'> | EncodingClass<'Infinity'> | EncodingClass<'-Infinity'> | (EncodingClass<'bigint'> & { - digits: string; -}) | EncodingClass<'@@asyncIterator'> | (EncodingClass<'symbol'> & { - name: string; -}) | (EncodingClass<'error'> & { - name: string; - message: string; - errorId?: string; - cause?: Encoding; - errors?: Encoding[]; -}) | (EncodingClass<'slot'> & { - index: number; - iface?: string; -}) | (EncodingClass<'hilbert'> & { - original: Encoding; - rest?: Encoding; -}) | (EncodingClass<'tagged'> & { - tag: string; - payload: Encoding; -}); -export type EncodingElement = boolean | number | null | string | EncodingUnion; -export type TreeOf = T | { - [x: string]: TreeOf; - [x: number]: TreeOf; - [x: symbol]: TreeOf; -}; -/** - * The JSON-representable structure describing the complete shape and - * pass-by-copy data of a Passable (i.e., everything except the contents of its - * PassableCap leafs, which are marshalled into referenced Slots). - * - * '@qclass' is a privileged property name in our encoding scheme, so - * it is disallowed in encoding records and any data that has such a property - * must instead use the 'hilbert' encoding described above. - */ -export type Encoding = TreeOf; -export type CapData = { - /** - * A JSON.stringify of an Encoding - */ - body: string; - slots: Slot[]; -}; -export type ToCapData = (val: any) => CapData; -export type FromCapData = (data: CapData) => any; -export type Marshal = { - /** - * use toCapData - */ - serialize: ToCapData; - /** - * use fromCapData - */ - unserialize: FromCapData; - toCapData: ToCapData; - fromCapData: FromCapData; -}; -export type MakeMarshalOptions = { - /** - * controls whether serialized errors - * also carry tagging information, made from `marshalName` and numbers - * generated (currently by counting) starting at `errorIdNum`. The - * `errorTagging` option defaults to `'on'`. Serialized - * errors are also logged to `marshalSaveError` only if tagging is `'on'`. - */ - errorTagging?: "on" | "off" | undefined; - /** - * Used to identify sent errors. - */ - marshalName?: string | undefined; - /** - * Ascending numbers staring from here - * identify the sending of errors relative to this marshal instance. - */ - errorIdNum?: number | undefined; - /** - * If `errorTagging` is - * `'on'`, then errors serialized by this marshal instance are also - * logged by calling `marshalSaveError` *after* `annotateError` associated - * that error with its errorId. Thus, if `marshalSaveError` in turn logs - * to the normal console, which is the default, then the console will - * show that note showing the associated errorId. - */ - marshalSaveError?: ((err: Error) => void) | undefined; - /** - * Formatting to use in the "body" property in objects returned from - * `serialize`. The body string for each case: - * * 'capdata' - a JSON string, from an encoding of passables - * into JSON, where some values are represented as objects with a - * `'@qclass` property. - * * 'smallcaps' - a JSON string prefixed with `'#'`, which is - * an unambiguous signal since a valid JSON string cannot begin with - * `'#'`. - */ - serializeBodyFormat?: "capdata" | "smallcaps" | undefined; -}; -/** - * RankCover represents the inclusive lower bound and *inclusive* upper bound - * of a string-comparison range that covers all possible encodings for - * a set of values. - */ -export type RankCover = [string, string]; -/** - * The result of a `RankCompare` function that defines a rank-order, i.e., - * a total preorder in which different elements are always comparable but - * can be tied for the same rank. See `RankCompare`. - */ -export type RankComparison = -1 | 0 | 1; -/** - * Returns `-1`, `0`, or `1` depending on whether the rank of `left` - * is respectively before, tied-with, or after the rank of `right`. - * - * This comparison function is valid as argument to - * `Array.prototype.sort`. This is sometimes described as a "total order" - * but, depending on your definitions, this is technically incorrect because - * it may return `0` to indicate that two distinguishable elements such as - * `-0` and `0` are tied (i.e., are in the same equivalence class - * for the purposes of this ordering). If each such equivalence class is - * a *rank* and ranks are disjoint, then this "rank order" is a - * true total order over these ranks. In mathematics this goes by several - * other names such as "total preorder". - * - * This function establishes a total rank order over all passables. - * To do so it makes arbitrary choices, such as that all strings - * are after all numbers. Thus, this order is not intended to be - * used directly as a comparison with useful semantics. However, it must be - * closely enough related to such comparisons to aid in implementing - * lookups based on those comparisons. For example, in order to get a total - * order among ranks, we put `NaN` after all other JavaScript "number" values - * (i.e., IEEE 754 floating-point values). But otherwise, we rank JavaScript - * numbers by signed magnitude, with `0` and `-0` tied. A semantically useful - * ordering would also compare magnitudes, and so agree with the rank ordering - * of all values other than `NaN`. An array sorted by rank would enable range - * queries by magnitude. - */ -export type RankCompare = (left: any, right: any) => RankComparison; -/** - * A `FullCompare` function satisfies all the invariants stated below for - * `RankCompare`'s relation with KeyCompare. - * In addition, its equality is as precise as the `KeyCompare` - * comparison defined below, in that, for all Keys `x` and `y`, - * `FullCompare(x, y) === 0` iff `KeyCompare(x, y) === 0`. - * - * For non-keys a `FullCompare` should be exactly as imprecise as - * `RankCompare`. For example, both will treat all errors as in the same - * equivalence class. Both will treat all promises as in the same - * equivalence class. Both will order taggeds the same way, which is admittedly - * weird, as some taggeds will be considered keys and other taggeds will be - * considered non-keys. - */ -export type FullCompare = RankCompare; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/types.d.ts.map b/packages/marshal/src/types.d.ts.map deleted file mode 100644 index 838f91e3d8..0000000000 --- a/packages/marshal/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"2CAMW,OAAO,kBAAkB,EAAE,WAAW,KACpC,IAAI;4CAMN,IAAI,iCAEF,OAAO,kBAAkB,EAAE,WAAW;+BAKtC;IAAE,SAAS,EAAE,CAAC,CAAA;CAAE;;;;;;;;;;4BAIhB,cAAc,KAAK,CAAC,GAChC,cAA0B,WAAW,CAAC,GACtC,cAA0B,UAAU,CAAC,GACrC,cAA0B,WAAW,CAAC,IACtC,cAA0B,QAAQ,CAAC,GAAG;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,IACxD,cAA0B,iBAAiB,CAAC,IAC5C,cAA0B,QAAQ,CAAC,GAAG;IAAE,MAAM,MAAM,CAAA;CAAE,KACtD,cAA0B,OAAO,CAAC,GAAG;IAAE,MAAM,MAAM,CAAC;IACpD,OAA8C,EAAE,MAAM,CAAC;IACvD,OAA8C,CAAC,EAAE,MAAM,CAAC;IACxD,KAA4C,CAAC,EAAE,QAAQ,CAAC;IACxD,MAA6C,CAAC,EAAE,QAAQ,EAAE,CAAC;CAC9C,KACb,cAA0B,MAAM,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IACpD,KAA2C,CAAC,EAAE,MAAM,CAAA;CACvC,KACb,cAA0B,SAAS,CAAC,GAAG;IAAE,QAAQ,EAAE,QAAQ,CAAC;IAC5D,IAA6C,CAAC,EAAE,QAAQ,CAAA;CAC3C,KACb,cAA0B,QAAQ,CAAC,GAAG;IAAE,GAAG,EAAE,MAAM,CAAC;IACpD,OAA+C,EAAE,QAAQ,CAAA;CAC5C,CAAA;8BAaD,OAAO,GAAG,MAAM,GAAG,IAAI,GAAG,MAAM,GAAG,aAAa;;;;;;;;;;;;;;;uBAShD,OAAO,eAAe,CAAC;;;;;UActB,MAAM;WACN,IAAI,EAAE;;oCAMT,GAAG,KACD,QAAQ,IAAI,CAAC;uCAMf,QAAQ,IAAI,CAAC,KACX,GAAG;;;;;eAMF,UAAU,IAAI,CAAC;;;;iBACf,YAAY,IAAI,CAAC;eACjB,UAAU,IAAI,CAAC;iBACf,YAAY,IAAI,CAAC;;;;;;;;;;;;;;kBAUjB,MAAM;;;;;iBACN,MAAM;;;;;;;;;8BAEA,KAAK,KAAK,IAAI;;;;;;;;;;;;;;;;;;wBAkBrB,CAAC,MAAM,EAAE,MAAM,CAAC;;;;;;6BAOhB,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;iCAiCZ,GAAG,SACH,GAAG,KACD,cAAc;;;;;;;;;;;;;;;0BAId,WAAW"} \ No newline at end of file diff --git a/packages/marshal/src/types.test-d.d.ts b/packages/marshal/src/types.test-d.d.ts deleted file mode 100644 index 4c58f1496e..0000000000 --- a/packages/marshal/src/types.test-d.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=types.test-d.d.ts.map \ No newline at end of file diff --git a/packages/marshal/src/types.test-d.d.ts.map b/packages/marshal/src/types.test-d.d.ts.map deleted file mode 100644 index 7d1a091fc4..0000000000 --- a/packages/marshal/src/types.test-d.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.test-d.d.ts","sourceRoot":"","sources":["types.test-d.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/memoize/index.d.ts b/packages/memoize/index.d.ts deleted file mode 100644 index 5e2127c0f4..0000000000 --- a/packages/memoize/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./src/memoize.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/memoize/index.d.ts.map b/packages/memoize/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/memoize/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/memoize/src/memoize.d.ts b/packages/memoize/src/memoize.d.ts deleted file mode 100644 index 24f42445e6..0000000000 --- a/packages/memoize/src/memoize.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function memoize(fn: (arg: A) => R): (arg: A) => R; -//# sourceMappingURL=memoize.d.ts.map \ No newline at end of file diff --git a/packages/memoize/src/memoize.d.ts.map b/packages/memoize/src/memoize.d.ts.map deleted file mode 100644 index a33f4a4020..0000000000 --- a/packages/memoize/src/memoize.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"memoize.d.ts","sourceRoot":"","sources":["memoize.js"],"names":[],"mappings":"AAeO,2EAWN"} \ No newline at end of file diff --git a/packages/nat/src/index.d.ts b/packages/nat/src/index.d.ts deleted file mode 100644 index 20bc78cda4..0000000000 --- a/packages/nat/src/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * Is `allegedNum` a number in the [contiguous range of exactly and - * unambiguously - * representable](https://esdiscuss.org/topic/more-numeric-constants-please-especially-epsilon#content-14) - * natural numbers (non-negative integers)? - * - * To qualify `allegedNum` must either be a - * non-negative `bigint`, or a non-negative `number` representing an integer - * within range of [integers safely representable in - * floating point](https://tc39.es/ecma262/#sec-number.issafeinteger). - * - * @param {unknown} allegedNum - * @returns {boolean} - */ -export function isNat(allegedNum: unknown): boolean; -/** - * If `allegedNumber` passes the `isNat` test, then return it as a bigint. - * Otherwise throw an appropriate error. - * - * If `allegedNum` is neither a bigint nor a number, `Nat` throws a `TypeError`. - * Otherwise, if it is not a [safely - * representable](https://esdiscuss.org/topic/more-numeric-constants-please-especially-epsilon#content-14) - * non-negative integer, `Nat` throws a `RangeError`. - * Otherwise, it is converted to a bigint if necessary and returned. - * - * @param {unknown} allegedNum - * @returns {bigint} - */ -export function Nat(allegedNum: unknown): bigint; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/nat/src/index.d.ts.map b/packages/nat/src/index.d.ts.map deleted file mode 100644 index a663f873a3..0000000000 --- a/packages/nat/src/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AACH,kCAHW,OAAO,GACL,OAAO,CAWnB;AAED;;;;;;;;;;;;GAYG;AACH,gCAHW,OAAO,GACL,MAAM,CAuBlB"} \ No newline at end of file diff --git a/packages/netstring/index.d.ts b/packages/netstring/index.d.ts deleted file mode 100644 index 4c0c16eebb..0000000000 --- a/packages/netstring/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { makeNetstringReader, netstringReader } from "./reader.js"; -export { makeNetstringWriter, netstringWriter } from "./writer.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/netstring/index.d.ts.map b/packages/netstring/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/netstring/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/netstring/reader.d.ts b/packages/netstring/reader.d.ts deleted file mode 100644 index e1fff937c2..0000000000 --- a/packages/netstring/reader.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export function makeNetstringReader(input: Iterable | AsyncIterable, opts?: { - name?: string | undefined; - maxMessageLength?: number | undefined; -} | undefined): import('@endo/stream').Reader; -export function netstringReader(input: Iterable | AsyncIterable, name?: string | undefined, _capacity?: number | undefined): import('@endo/stream').Stream; -//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/netstring/reader.d.ts.map b/packages/netstring/reader.d.ts.map deleted file mode 100644 index 7414949146..0000000000 --- a/packages/netstring/reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AA+IO,2CANI,SAAS,UAAU,CAAC,GAAG,cAAc,UAAU,CAAC;;;gBAI9C,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAIhE;AAUM,uCALI,SAAS,UAAU,CAAC,GAAG,cAAc,UAAU,CAAC,SAChD,MAAM,0BACN,MAAM,eACJ,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC,CAQhE"} \ No newline at end of file diff --git a/packages/netstring/writer.d.ts b/packages/netstring/writer.d.ts deleted file mode 100644 index 7c73bcac98..0000000000 --- a/packages/netstring/writer.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export function makeNetstringWriter(output: import('@endo/stream').Writer, { chunked }?: { - chunked?: boolean | undefined; -}): import('@endo/stream').Writer; -export function netstringWriter(output: import('@endo/stream').Writer, { chunked }?: { - chunked?: boolean | undefined; -}): import('@endo/stream').Writer; -//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/netstring/writer.d.ts.map b/packages/netstring/writer.d.ts.map deleted file mode 100644 index 82a8afe418..0000000000 --- a/packages/netstring/writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AA4BO,4CALI,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC;IAErC,OAAO;IACpB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE,SAAS,CAAC,CAkE/E;AAhEM,wCALI,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,EAAE,SAAS,CAAC;IAErC,OAAO;IACpB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,GAAG,UAAU,EAAE,EAAE,SAAS,CAAC,CAkE/E"} \ No newline at end of file diff --git a/packages/pass-style/endow.d.ts b/packages/pass-style/endow.d.ts deleted file mode 100644 index fe84ba4f5b..0000000000 --- a/packages/pass-style/endow.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { PassStyleOfEndowmentSymbol } from "./src/passStyleOf.js"; -//# sourceMappingURL=endow.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/endow.d.ts.map b/packages/pass-style/endow.d.ts.map deleted file mode 100644 index 03d1ee56f3..0000000000 --- a/packages/pass-style/endow.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"endow.d.ts","sourceRoot":"","sources":["endow.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/pass-style/index.d.ts b/packages/pass-style/index.d.ts deleted file mode 100644 index 6063f9d32a..0000000000 --- a/packages/pass-style/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { getInterfaceOf } from "./src/remotable.js"; -export { makeTagged } from "./src/makeTagged.js"; -export * from "./src/types.js"; -export { mapIterable, filterIterable } from "./src/iter-helpers.js"; -export { PASS_STYLE, isObject, assertChecker, getTag, hasOwnPropertyOf } from "./src/passStyle-helpers.js"; -export { getErrorConstructor, isErrorLike } from "./src/error.js"; -export { assertPassableSymbol, isPassableSymbol, nameForPassableSymbol, passableSymbolForName } from "./src/symbol.js"; -export { isWellFormedString, assertWellFormedString, assertPassableString } from "./src/string.js"; -export { passStyleOf, isPassable, assertPassable, isPassableError, assertPassableError, toPassableError } from "./src/passStyleOf.js"; -export { Remotable, Far, ToFarFunction, GET_METHOD_NAMES } from "./src/make-far.js"; -export { assertRecord, assertCopyArray, assertRemotable, isRemotable, isRecord, isCopyArray } from "./src/typeGuards.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/index.d.ts.map b/packages/pass-style/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/pass-style/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/pass-style/src/copyArray.d.ts b/packages/pass-style/src/copyArray.d.ts deleted file mode 100644 index c739632474..0000000000 --- a/packages/pass-style/src/copyArray.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * - * @type {import('./internal-types.js').PassStyleHelper} - */ -export const CopyArrayHelper: import('./internal-types.js').PassStyleHelper; -//# sourceMappingURL=copyArray.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/copyArray.d.ts.map b/packages/pass-style/src/copyArray.d.ts.map deleted file mode 100644 index c73ac8abc7..0000000000 --- a/packages/pass-style/src/copyArray.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"copyArray.d.ts","sourceRoot":"","sources":["copyArray.js"],"names":[],"mappings":"AAkBA;;;GAGG;AACH,8BAFU,OAAO,qBAAqB,EAAE,eAAe,CAwBpD"} \ No newline at end of file diff --git a/packages/pass-style/src/copyRecord.d.ts b/packages/pass-style/src/copyRecord.d.ts deleted file mode 100644 index bf026b4d54..0000000000 --- a/packages/pass-style/src/copyRecord.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * - * @type {import('./internal-types.js').PassStyleHelper} - */ -export const CopyRecordHelper: import('./internal-types.js').PassStyleHelper; -//# sourceMappingURL=copyRecord.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/copyRecord.d.ts.map b/packages/pass-style/src/copyRecord.d.ts.map deleted file mode 100644 index 1ff2524b89..0000000000 --- a/packages/pass-style/src/copyRecord.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"copyRecord.d.ts","sourceRoot":"","sources":["copyRecord.js"],"names":[],"mappings":"AAYA;;;GAGG;AACH,+BAFU,OAAO,qBAAqB,EAAE,eAAe,CAqCpD"} \ No newline at end of file diff --git a/packages/pass-style/src/error.d.ts b/packages/pass-style/src/error.d.ts deleted file mode 100644 index caa4936a84..0000000000 --- a/packages/pass-style/src/error.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function getErrorConstructor(name: string): import('ses').GenericErrorConstructor | undefined; -export function isErrorLike(candidate: unknown): boolean; -export function checkRecursivelyPassableErrorPropertyDesc(propName: string, desc: PropertyDescriptor, passStyleOfRecur: import('./internal-types.js').PassStyleOf, check?: import("./types.js").Checker | undefined): boolean; -export function checkRecursivelyPassableError(candidate: unknown, passStyleOfRecur: import('./internal-types.js').PassStyleOf, check?: import("./types.js").Checker | undefined): boolean; -/** - * @type {PassStyleHelper} - */ -export const ErrorHelper: PassStyleHelper; -export type PassStyleHelper = import('./internal-types.js').PassStyleHelper; -export type Checker = import('./types.js').Checker; -//# sourceMappingURL=error.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/error.d.ts.map b/packages/pass-style/src/error.d.ts.map deleted file mode 100644 index eeb4431349..0000000000 --- a/packages/pass-style/src/error.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"error.d.ts","sourceRoot":"","sources":["error.js"],"names":[],"mappings":"AA+CO,0CAHI,MAAM,GACJ,OAAO,KAAK,EAAE,uBAAuB,GAAG,SAAS,CAEQ;AAqC/D,uCAHI,OAAO,GACL,OAAO,CAE6C;AAU1D,oEANI,MAAM,QACN,kBAAkB,oBAClB,OAAO,qBAAqB,EAAE,WAAW,qDAEvC,OAAO,CA8DnB;AASM,yDALI,OAAO,oBACP,OAAO,qBAAqB,EAAE,WAAW,qDAEvC,OAAO,CAoCnB;AAGD;;GAEG;AACH,0BAFU,eAAe,CAStB;8BA7MW,OAAO,qBAAqB,EAAE,eAAe;sBAC7C,OAAO,YAAY,EAAE,OAAO"} \ No newline at end of file diff --git a/packages/pass-style/src/internal-types.d.ts b/packages/pass-style/src/internal-types.d.ts deleted file mode 100644 index ff6a97fede..0000000000 --- a/packages/pass-style/src/internal-types.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export type Checker = import('./types.js').Checker; -export type PassStyle = import('./types.js').PassStyle; -export type PassStyleOf = import('./types.js').PassStyleOf; -/** - * The PassStyleHelper are only used to make a `passStyleOf` function. - * Thus, it should not depend on an ambient one. Rather, each helper should be - * pure, and get its `passStyleOf` or similar function from its caller. - * - * For those methods that have a last `passStyleOf` or `passStyleOfRecur`, - * they must defend against the other arguments being malicious, but may - * *assume* that `passStyleOfRecur` does what it is supposed to do. - * Each such method is not trying to defend itself against a malicious - * `passStyleOfRecur`, though it may defend against some accidents. - */ -export type PassStyleHelper = { - styleName: PassStyle; - /** - * If `canBeValid` returns true, then the candidate would - * definitely not be valid for any of the other helpers. - * `assertValid` still needs to be called to determine if it - * actually is valid. - */ - canBeValid: (candidate: any, check?: Checker) => boolean; - assertValid: (candidate: any, passStyleOfRecur: PassStyleOf) => void; -}; -//# sourceMappingURL=internal-types.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/internal-types.d.ts.map b/packages/pass-style/src/internal-types.d.ts.map deleted file mode 100644 index f9b9114d61..0000000000 --- a/packages/pass-style/src/internal-types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"internal-types.d.ts","sourceRoot":"","sources":["internal-types.js"],"names":[],"mappings":"sBAEc,OAAO,YAAY,EAAE,OAAO;wBAC5B,OAAO,YAAY,EAAE,SAAS;0BAC9B,OAAO,YAAY,EAAE,WAAW;;;;;;;;;;;;;eAchC,SAAS;;;;;;;4BACG,GAAG,UAAU,OAAO,KAAK,OAAO;6BAKhC,GAAG,oBACI,WAAW,KACzB,IAAI"} \ No newline at end of file diff --git a/packages/pass-style/src/iter-helpers.d.ts b/packages/pass-style/src/iter-helpers.d.ts deleted file mode 100644 index b82d00f6ff..0000000000 --- a/packages/pass-style/src/iter-helpers.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export function mapIterable(baseIterable: Iterable, func: (value: T) => U): Iterable; -export function filterIterable(baseIterable: Iterable, pred: (value: T) => boolean): Iterable; -//# sourceMappingURL=iter-helpers.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/iter-helpers.d.ts.map b/packages/pass-style/src/iter-helpers.d.ts.map deleted file mode 100644 index 8c2110db6c..0000000000 --- a/packages/pass-style/src/iter-helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"iter-helpers.d.ts","sourceRoot":"","sources":["iter-helpers.js"],"names":[],"mappings":"AAaO,iGAaH;AAcG,iFAHkB,OAAO,eAoB5B"} \ No newline at end of file diff --git a/packages/pass-style/src/make-far.d.ts b/packages/pass-style/src/make-far.d.ts deleted file mode 100644 index 3683024646..0000000000 --- a/packages/pass-style/src/make-far.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export function Remotable(iface?: string | undefined, props?: undefined, remotable?: T | undefined): T & import("@endo/eventual-send").RemotableBrand<{}, T>; -/** - * The name of the automatically added default meta-method for obtaining a - * list of all methods of an object declared with `Far`, or an object that - * inherits from an object declared with `Far`. - * - * Modeled on `GET_INTERFACE_GUARD` from `@endo/exo`. - * - * TODO Name to be bikeshed. Perhaps even whether it is a - * string or symbol to be bikeshed. See - * https://github.com/endojs/endo/pull/1809#discussion_r1388052454 - * - * HAZARD: Beware that an exo's interface can change across an upgrade, - * so remotes that cache it can become stale. - */ -export const GET_METHOD_NAMES: "__getMethodNames__"; -export function Far(farName: string, remotable?: T | undefined): T & import("@endo/eventual-send").RemotableBrand<{}, T>; -export function ToFarFunction(farName: string, func: (...args: any[]) => any): (...args: any[]) => any; -export type InterfaceSpec = import('./types.js').InterfaceSpec; -export type RemotableBrand = import('@endo/eventual-send').RemotableBrand; -//# sourceMappingURL=make-far.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/make-far.d.ts.map b/packages/pass-style/src/make-far.d.ts.map deleted file mode 100644 index e40a8b1087..0000000000 --- a/packages/pass-style/src/make-far.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"make-far.d.ts","sourceRoot":"","sources":["make-far.js"],"names":[],"mappings":"AA8EO,4EALI,SAAS,sFAsDnB;AAGD;;;;;;;;;;;;;GAaG;AACH,oDAAqD;AAiC9C,2CAJI,MAAM,sFAiBhB;AAeM,uCAJI,MAAM,kBAEI,GAAG,EAAE,KAAK,GAAG,aAAb,GAAG,EAAE,KAAK,GAAG,CAOjC;4BA3Ma,OAAO,YAAY,EAAE,aAAa;mCACpB,OAAO,qBAAqB,EAAE,cAAc,CAAC,CAAC,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/pass-style/src/makeTagged.d.ts b/packages/pass-style/src/makeTagged.d.ts deleted file mode 100644 index d34ae7cfe1..0000000000 --- a/packages/pass-style/src/makeTagged.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeTagged(tag: any, payload: any): any; -//# sourceMappingURL=makeTagged.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/makeTagged.d.ts.map b/packages/pass-style/src/makeTagged.d.ts.map deleted file mode 100644 index 765a684274..0000000000 --- a/packages/pass-style/src/makeTagged.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"makeTagged.d.ts","sourceRoot":"","sources":["makeTagged.js"],"names":[],"mappings":"AAQO,wDAWN"} \ No newline at end of file diff --git a/packages/pass-style/src/passStyle-helpers.d.ts b/packages/pass-style/src/passStyle-helpers.d.ts deleted file mode 100644 index b8fd6faa82..0000000000 --- a/packages/pass-style/src/passStyle-helpers.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -export function hasOwnPropertyOf(obj: any, prop: any): any; -export function isObject(val: any): boolean; -export function isTypedArray(object: unknown): boolean; -export const PASS_STYLE: unique symbol; -export function canBeMethod(func: any): boolean; -/** - * Below we have a series of predicate functions and their (curried) assertion - * functions. The semantics of the assertion function is just to assert that - * the corresponding predicate function would have returned true. But it - * reproduces the internal tests so failures can give a better error message. - * - * @type {Checker} - */ -export const assertChecker: Checker; -export function checkNormalProperty(candidate: object, propertyName: string | number | symbol, shouldBeEnumerable: boolean, check?: import("./types.js").Checker | undefined): boolean; -export function getTag(tagRecord: any): any; -export function checkPassStyle(obj: any, expectedPassStyle: any, check: any): any; -/** - * @param {{ [PASS_STYLE]: string }} tagRecord - * @param {PassStyle} passStyle - * @param {Checker} [check] - * @returns {boolean} - */ -export function checkTagRecord(tagRecord: { - [PASS_STYLE]: string; -}, passStyle: PassStyle, check?: import("./types.js").Checker | undefined): boolean; -/** - * @param {{ [PASS_STYLE]: string }} tagRecord - * @param {PassStyle} passStyle - * @param {Checker} [check] - * @returns {boolean} - */ -export function checkFunctionTagRecord(tagRecord: { - [PASS_STYLE]: string; -}, passStyle: PassStyle, check?: import("./types.js").Checker | undefined): boolean; -export type Checker = import('./types.js').Checker; -export type PassStyle = import('./types.js').PassStyle; -//# sourceMappingURL=passStyle-helpers.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/passStyle-helpers.d.ts.map b/packages/pass-style/src/passStyle-helpers.d.ts.map deleted file mode 100644 index 74edaecc2b..0000000000 --- a/packages/pass-style/src/passStyle-helpers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"passStyle-helpers.d.ts","sourceRoot":"","sources":["passStyle-helpers.js"],"names":[],"mappings":"AA4BO,2DACmC;AAGnC,4CAA2C;AAQ3C,qCAFI,OAAO,WAMjB;AAGD,uCAAkD;AAe3C,kCAHI,GAAG,GACD,OAAO,CAGiC;AAGrD;;;;;;;GAOG;AACH,4BAFU,OAAO,CAKf;AAYK,+CANI,MAAM,gBACN,MAAM,GAAC,MAAM,GAAC,MAAM,sBACpB,OAAO,qDAEL,OAAO,CA+BnB;AAGM,4CAAyD;AAGzD,kFAQN;AAIC;;;;;GAKG;AACH,0CALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAmBnB;AAvBD;;;;;GAKG;AACH,kDALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAmBnB;sBA7JW,OAAO,YAAY,EAAE,OAAO;wBAC5B,OAAO,YAAY,EAAE,SAAS"} \ No newline at end of file diff --git a/packages/pass-style/src/passStyleOf.d.ts b/packages/pass-style/src/passStyleOf.d.ts deleted file mode 100644 index 61b7d7e734..0000000000 --- a/packages/pass-style/src/passStyleOf.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -export const PassStyleOfEndowmentSymbol: unique symbol; -/** - * If there is already a PassStyleOfEndowmentSymbol property on the global, - * then presumably it was endowed for us by liveslots with a `passStyleOf` - * function, so we should use and export that one instead. - * Other software may have left it for us here, - * but it would require write access to our global, or the ability to - * provide endowments to our global, both of which seems adequate as a test of - * whether it is authorized to serve the same role as liveslots. - * - * NOTE HAZARD: This use by liveslots does rely on `passStyleOf` being - * deterministic. If it is not, then in a liveslot-like virtualized - * environment, it can be used to detect GC. - * - * @type {PassStyleOf} - */ -export const passStyleOf: PassStyleOf; -export function assertPassable(val: any): void; -export function isPassable(specimen: any): specimen is any; -export function isPassableError(err: unknown): err is Error; -export function assertPassableError(err: unknown): asserts err is Error; -export function toPassableError(err: Error): Error; -export type PassStyleHelper = import('./internal-types.js').PassStyleHelper; -export type Passable = import('./types.js').Passable; -export type PassStyle = import('./types.js').PassStyle; -export type PassStyleOf = import('./types.js').PassStyleOf; -export type PrimitiveStyle = import('./types.js').PrimitiveStyle; -export type HelperPassStyle = Exclude; -//# sourceMappingURL=passStyleOf.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/passStyleOf.d.ts.map b/packages/pass-style/src/passStyleOf.d.ts.map deleted file mode 100644 index af46b15aa3..0000000000 --- a/packages/pass-style/src/passStyleOf.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"passStyleOf.d.ts","sourceRoot":"","sources":["passStyleOf.js"],"names":[],"mappings":"AA8MA,uDAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACH,0BAFU,WAAW,CAUhB;AAEE,+CAEN;AAmBM,qCAHI,GAAG,mBAWb;AA8BM,qCAHI,OAAO,gBAI+B;AAM1C,yCAHI,OAAO,wBAKjB;AASM,qCAHI,KAAK,GACH,KAAK,CAiCjB;8BAzTa,OAAO,qBAAqB,EAAE,eAAe;uBAC7C,OAAO,YAAY,EAAE,QAAQ;wBAC7B,OAAO,YAAY,EAAE,SAAS;0BAC9B,OAAO,YAAY,EAAE,WAAW;6BAChC,OAAO,YAAY,EAAE,cAAc;8BAEnC,QAAQ,SAAS,EAAE,cAAc,GAAG,SAAS,CAAC"} \ No newline at end of file diff --git a/packages/pass-style/src/remotable.d.ts b/packages/pass-style/src/remotable.d.ts deleted file mode 100644 index a68476f71c..0000000000 --- a/packages/pass-style/src/remotable.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export function assertIface(iface: InterfaceSpec): boolean; -/** @type {MarshalGetInterfaceOf} */ -export const getInterfaceOf: MarshalGetInterfaceOf; -/** - * - * @type {PassStyleHelper} - */ -export const RemotableHelper: PassStyleHelper; -export type Checker = import('./types.js').Checker; -export type InterfaceSpec = import('./types.js').InterfaceSpec; -export type MarshalGetInterfaceOf = import('./types.js').MarshalGetInterfaceOf; -export type PassStyleHelper = import('./internal-types.js').PassStyleHelper; -export type Remotable = import('./types.js').RemotableObject; -//# sourceMappingURL=remotable.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/remotable.d.ts.map b/packages/pass-style/src/remotable.d.ts.map deleted file mode 100644 index d8b218f9dc..0000000000 --- a/packages/pass-style/src/remotable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"remotable.d.ts","sourceRoot":"","sources":["remotable.js"],"names":[],"mappings":"AA4DO,mCAFI,aAAa,WAE4C;AAwGpE,oCAAoC;AACpC,6BADW,qBAAqB,CAU9B;AAGF;;;GAGG;AACH,8BAFU,eAAe,CA0EtB;sBA/OW,OAAO,YAAY,EAAE,OAAO;4BAC5B,OAAO,YAAY,EAAE,aAAa;oCAClC,OAAO,YAAY,EAAE,qBAAqB;8BAC1C,OAAO,qBAAqB,EAAE,eAAe;wBAC7C,OAAO,YAAY,EAAE,eAAe"} \ No newline at end of file diff --git a/packages/pass-style/src/safe-promise.d.ts b/packages/pass-style/src/safe-promise.d.ts deleted file mode 100644 index 0d96af3d0f..0000000000 --- a/packages/pass-style/src/safe-promise.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function isSafePromise(pr: unknown): pr is Promise; -export function assertSafePromise(pr: any): boolean; -export type Checker = import('./types.js').Checker; -//# sourceMappingURL=safe-promise.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/safe-promise.d.ts.map b/packages/pass-style/src/safe-promise.d.ts.map deleted file mode 100644 index c75f72a6ff..0000000000 --- a/packages/pass-style/src/safe-promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"safe-promise.d.ts","sourceRoot":"","sources":["safe-promise.js"],"names":[],"mappings":"AAqJO,kCAHI,OAAO,sBAG6C;AAGxD,oDAAmE;sBAlJ5D,OAAO,YAAY,EAAE,OAAO"} \ No newline at end of file diff --git a/packages/pass-style/src/string.d.ts b/packages/pass-style/src/string.d.ts deleted file mode 100644 index 3a5f59bafe..0000000000 --- a/packages/pass-style/src/string.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export function isWellFormedString(str: any): any; -export function assertWellFormedString(str: unknown): asserts str is string; -export function assertPassableString(str: unknown): asserts str is string; -//# sourceMappingURL=string.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/string.d.ts.map b/packages/pass-style/src/string.d.ts.map deleted file mode 100644 index b55bdef895..0000000000 --- a/packages/pass-style/src/string.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"string.d.ts","sourceRoot":"","sources":["string.js"],"names":[],"mappings":"AAyBI,kDAAoD;AA4BjD,4CAHI,OAAO,yBAKjB;AA4BM,0CAHK,OAAO,yBAMlB"} \ No newline at end of file diff --git a/packages/pass-style/src/symbol.d.ts b/packages/pass-style/src/symbol.d.ts deleted file mode 100644 index b7096a335a..0000000000 --- a/packages/pass-style/src/symbol.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function isPassableSymbol(sym: any): boolean; -export function assertPassableSymbol(sym: any): true; -export function nameForPassableSymbol(sym: symbol): string | undefined; -export function passableSymbolForName(name: string): symbol | undefined; -//# sourceMappingURL=symbol.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/symbol.d.ts.map b/packages/pass-style/src/symbol.d.ts.map deleted file mode 100644 index 0092058efe..0000000000 --- a/packages/pass-style/src/symbol.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"symbol.d.ts","sourceRoot":"","sources":["symbol.js"],"names":[],"mappings":"AAgCO,sCAHI,GAAG,GACD,OAAO,CAIuD;AAGpE,qDAEsE;AAwBtE,2CAHI,MAAM,GACJ,MAAM,aAWlB;AAyBM,4CAHI,MAAM,GACJ,MAAM,aAoBlB"} \ No newline at end of file diff --git a/packages/pass-style/src/tagged.d.ts b/packages/pass-style/src/tagged.d.ts deleted file mode 100644 index fe554c0ece..0000000000 --- a/packages/pass-style/src/tagged.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * - * @type {import('./internal-types.js').PassStyleHelper} - */ -export const TaggedHelper: import('./internal-types.js').PassStyleHelper; -//# sourceMappingURL=tagged.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/tagged.d.ts.map b/packages/pass-style/src/tagged.d.ts.map deleted file mode 100644 index d5b96f8dae..0000000000 --- a/packages/pass-style/src/tagged.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tagged.d.ts","sourceRoot":"","sources":["tagged.js"],"names":[],"mappings":"AAcA;;;GAGG;AACH,2BAFU,OAAO,qBAAqB,EAAE,eAAe,CA6BpD"} \ No newline at end of file diff --git a/packages/pass-style/src/typeGuards.d.ts b/packages/pass-style/src/typeGuards.d.ts deleted file mode 100644 index 6b6a0b66e6..0000000000 --- a/packages/pass-style/src/typeGuards.d.ts +++ /dev/null @@ -1,65 +0,0 @@ -export type Passable = import('./types.js').Passable; -export type CopyArray = import('./types.js').CopyArray; -export type CopyRecord = import('./types.js').CopyRecord; -export type Remotable = import('./types.js').RemotableObject; -export type AssertArray = (array: Passable, optNameOfArray?: string | undefined) => asserts array is CopyArray; -export type AssertRecord = (record: Passable, optNameOfRecord?: string | undefined) => asserts record is CopyRecord; -export type AssertRemotable = (remotable: Passable, optNameOfRemotable?: string | undefined) => asserts remotable is any; -/** - * @callback AssertRecord - * @param {Passable} record - * @param {string=} optNameOfRecord - * @returns {asserts record is CopyRecord} - */ -/** @type {AssertRecord} */ -export const assertRecord: AssertRecord; -/** - * @callback AssertArray - * @param {Passable} array - * @param {string=} optNameOfArray - * @returns {asserts array is CopyArray} - */ -/** @type {AssertArray} */ -export const assertCopyArray: AssertArray; -/** - * @callback AssertRemotable - * @param {Passable} remotable - * @param {string=} optNameOfRemotable - * @returns {asserts remotable is Remotable} - */ -/** @type {AssertRemotable} */ -export const assertRemotable: AssertRemotable; -/** - * Check whether the argument is a remotable. - * - * @param {Passable} remotable - * @returns {remotable is Remotable} - */ -export function isRemotable(remotable: Passable): remotable is any; -/** - * Check whether the argument is a pass-by-copy record, AKA a - * "copyRecord" in @endo/marshal terms - * - * @param {Passable} record - * @returns {record is CopyRecord} - */ -export function isRecord(record: Passable): record is CopyRecord; -/** @typedef {import('./types.js').Passable} Passable */ -/** - * @template {Passable} [T=Passable] - * @typedef {import('./types.js').CopyArray} CopyArray - */ -/** - * @template {Passable} [T=Passable] - * @typedef {import('./types.js').CopyRecord} CopyRecord - */ -/** @typedef {import('./types.js').RemotableObject} Remotable */ -/** - * Check whether the argument is a pass-by-copy array, AKA a "copyArray" - * in @endo/marshal terms - * - * @param {Passable} arr - * @returns {arr is CopyArray} - */ -export function isCopyArray(arr: Passable): arr is CopyArray; -//# sourceMappingURL=typeGuards.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/typeGuards.d.ts.map b/packages/pass-style/src/typeGuards.d.ts.map deleted file mode 100644 index 2d0b8c9d03..0000000000 --- a/packages/pass-style/src/typeGuards.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"typeGuards.d.ts","sourceRoot":"","sources":["typeGuards.js"],"names":[],"mappings":"uBAGc,OAAO,YAAY,EAAE,QAAQ;iDAG9B,OAAO,YAAY,EAAE,SAAS,CAAC,CAAC,CAAC;kDAIjC,OAAO,YAAY,EAAE,UAAU,CAAC,CAAC,CAAC;wBAEjC,OAAO,YAAY,EAAE,eAAe;kCAiCvC,QAAQ,mBACR,MAAM;oCAgBN,QAAQ,oBACR,MAAM;0CAgBN,QAAQ,uBACR,MAAM;AApBjB;;;;;GAKG;AAEH,2BAA2B;AAC3B,2BADW,YAAY,CAOrB;AA/BF;;;;;GAKG;AAEH,0BAA0B;AAC1B,8BADW,WAAW,CAOpB;AAoBF;;;;;GAKG;AAEH,8BAA8B;AAC9B,8BADW,eAAe,CAUxB;AA5DF;;;;;GAKG;AACH,uCAHW,QAAQ,oBAGoD;AAhBvE;;;;;;GAMG;AACH,iCAHW,QAAQ,6BAG4C;AA5B/D,wDAAwD;AACxD;;;GAGG;AACH;;;GAGG;AACH,gEAAgE;AAEhE;;;;;;GAMG;AACH,iCAHW,QAAQ,yBAGwC"} \ No newline at end of file diff --git a/packages/pass-style/src/types.d.ts b/packages/pass-style/src/types.d.ts deleted file mode 100644 index 1668052b2f..0000000000 --- a/packages/pass-style/src/types.d.ts +++ /dev/null @@ -1,114 +0,0 @@ -export type PrimitiveStyle = 'undefined' | 'null' | 'boolean' | 'number' | 'bigint' | 'string' | 'symbol'; -export type PassStyle = PrimitiveStyle | 'copyRecord' | 'copyArray' | 'tagged' | 'remotable' | 'error' | 'promise'; -/** - * A Passable is acyclic data that can be marshalled. It must be hardened to - * remain - * stable (even if some components are proxies; see PureData restriction below), - * and is classified by PassStyle: - * * Atomic primitive values have a PrimitiveStyle (PassStyle - * 'undefined' | 'null' | 'boolean' | 'number' | 'bigint' - * | 'string' | 'symbol'). - * * Containers aggregate other Passables into - * * sequences as CopyArrays (PassStyle 'copyArray'), or - * * string-keyed dictionaries as CopyRecords (PassStyle 'copyRecord'), or - * * higher-level types as CopyTaggeds (PassStyle 'tagged'). - * * PassableCaps (PassStyle 'remotable' | 'promise') expose local values to - * remote interaction. - * * As a special case to support system observability, error objects are - * Passable (PassStyle 'error'). - * - * A Passable is essentially a pass-by-copy superstructure with a - * pass-by-reference - * exit point at the site of each PassableCap (which marshalling represents - * using 'slots'). - */ -export type Passable = any; -export type PassStyleOf = (passable: Passable) => PassStyle; -/** - * A Passable is PureData when its entire data structure is free of PassableCaps - * (remotables and promises) and error objects. - * PureData is an arbitrary composition of primitive values into CopyArray - * and/or - * CopyRecord and/or CopyTagged containers (or a single primitive value with no - * container), and is fully pass-by-copy. - * - * This restriction assures absence of side effects and interleaving risks *given* - * that none of the containers can be a Proxy instance. - * TODO SECURITY BUG we plan to enforce this, giving PureData the same security - * properties as the proposed - * [Records and Tuples](https://github.com/tc39/proposal-record-tuple). - * - * Given this (currently counter-factual) assumption, a PureData value cannot - * be used as a communications channel, - * and can therefore be safely shared with subgraphs that should not be able - * to communicate with each other. - * Without that assumption, such a guarantee requires a marshal-unmarshal round - * trip (as exists between vats) to produce data structures disconnected from - * any potential proxies. - */ -export type PureData = Passable; -/** - * An object marked as remotely accessible using the `Far` or `Remotable` - * functions, or a local presence representing such a remote object. - */ -export type RemotableObject = Passable; -/** - * The authority-bearing leaves of a Passable's pass-by-copy superstructure. - */ -export type PassableCap = Promise | RemotableObject; -/** - * A Passable sequence of Passable values. - */ -export type CopyArray = T[]; -/** - * A Passable dictionary in which each key is a string and each value is Passable. - */ -export type CopyRecord = Record; -/** - * A Passable "tagged record" with semantics specific to the tag identified in - * the `[Symbol.toStringTag]` property (such as 'copySet', 'copyBag', - * or 'copyMap'). - * It must have a property with key equal to the `PASS_STYLE` export and - * value 'tagged' - * and no other properties except `[Symbol.toStringTag]` and `payload`. - * - * TODO - * But TypeScript complains about a declaration like `[PASS_STYLE]: 'tagged'` - * because importing packages do not know what `PASS_STYLE` is, - * so we appease it with a looser but less accurate definition - * using symbol index properties and `| string`. - */ -export type CopyTagged = { - [passStyle: symbol]: string; - payload: Payload; - [Symbol.toStringTag]: Tag; -}; -/** - * This is an interface specification. - * For now, it is just a string, but will eventually be `PureData`. Either - * way, it must remain pure, so that it can be safely shared by subgraphs that - * are not supposed to be able to communicate. - */ -export type InterfaceSpec = string; -/** - * Simple semantics, just tell what interface (or undefined) a remotable has. - */ -export type MarshalGetInterfaceOf = (maybeRemotable: any) => InterfaceSpec | undefined; -/** - * Internal to a useful pattern for writing checking logic - * (a "checkFoo" function) that can be used to implement a predicate - * (an "isFoo" function) or a validator (an "assertFoo" function). - * - * * A predicate ideally only returns `true` or `false` and rarely throws. - * * A validator throws an informative diagnostic when the predicate - * would have returned `false`, and simply returns `undefined` normally - * when the predicate would have returned `true`. - * * The internal checking function that they share is parameterized by a - * `Checker` that determines how to proceed with a failure condition. - * Predicates pass in an identity function as checker. Validators - * pass in `assertChecker` which is a trivial wrapper around `assert`. - * - * See the various uses for good examples. - */ -export type Checker = (cond: boolean, details?: import("ses").Details | undefined) => boolean; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/src/types.d.ts.map b/packages/pass-style/src/types.d.ts.map deleted file mode 100644 index f848131aa8..0000000000 --- a/packages/pass-style/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"6BAGc,WAAW,GAAG,MAAM,GACjC,SAAa,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ,GAAG,QAAQ;wBAK5C,cAAc,GAC3B,YAAgB,GAAG,WAAW,GAAG,QAAQ,GACzC,WAAe,GACf,OAAW,GAAG,SAAS;;;;;;;;;;;;;;;;;;;;;;;uBAQX,GAAG;qCA0BL,QAAQ,KACN,SAAS;;;;;;;;;;;;;;;;;;;;;;;uBAIT,QAAQ;;;;;8BAyBR,QAAQ;;;;0BAOR,eAAU,eAAe;;;;iDAOzB,CAAC,EAAE;;;;kDAOH,OAAO,MAAM,EAAE,CAAC,CAAC;;;;;;;;;;;;;;;;;aAUhB,OAAO;0BADM,GAAG;;;;;;;;4BAoBjB,MAAM;;;;qDAUR,GAAG,KACD,aAAa,GAAC,SAAS;;;;;;;;;;;;;;;;;6BAoBzB,OAAO,kDAEL,OAAO"} \ No newline at end of file diff --git a/packages/pass-style/tools.d.ts b/packages/pass-style/tools.d.ts deleted file mode 100644 index 080c9218f1..0000000000 --- a/packages/pass-style/tools.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { exampleAlice, exampleBob, exampleCarol, arbString, arbLeaf, arbPassable } from "./tools/arb-passable.js"; -//# sourceMappingURL=tools.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/tools.d.ts.map b/packages/pass-style/tools.d.ts.map deleted file mode 100644 index cff53fc89f..0000000000 --- a/packages/pass-style/tools.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"tools.d.ts","sourceRoot":"","sources":["tools.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/pass-style/tools/arb-passable.d.ts b/packages/pass-style/tools/arb-passable.d.ts deleted file mode 100644 index 0de87dbc03..0000000000 --- a/packages/pass-style/tools/arb-passable.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * The only elements with identity. Everything else should be equal - * by contents. - */ -export const exampleAlice: import("@endo/eventual-send").RemotableBrand<{}, {}>; -export const exampleBob: import("@endo/eventual-send").RemotableBrand<{}, {}>; -export const exampleCarol: import("@endo/eventual-send").RemotableBrand<{}, {}>; -export const arbString: fc.Arbitrary; -export const arbLeaf: fc.Arbitrary | import("@endo/eventual-send").RemotableBrand<{}, {}> | { - [x: string]: any; -} | null | undefined>; -/** - * A factory for arbitrary passables - */ -export const arbPassable: fc.Arbitrary; -import { fc } from '@fast-check/ava'; -//# sourceMappingURL=arb-passable.d.ts.map \ No newline at end of file diff --git a/packages/pass-style/tools/arb-passable.d.ts.map b/packages/pass-style/tools/arb-passable.d.ts.map deleted file mode 100644 index bb84692da9..0000000000 --- a/packages/pass-style/tools/arb-passable.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"arb-passable.d.ts","sourceRoot":"","sources":["arb-passable.js"],"names":[],"mappings":"AAMA;;;GAGG;AACH,gFAA6C;AAC7C,8EAAyC;AACzC,gFAA6C;AAE7C,6CAAuE;AAEvE;;sBAoBE;AAsEF;;GAEG;AACH,4CAAsD;mBA3GnC,iBAAiB"} \ No newline at end of file diff --git a/packages/patterns/index.d.ts b/packages/patterns/index.d.ts deleted file mode 100644 index b44325a184..0000000000 --- a/packages/patterns/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { coerceToElements } from "./src/keys/copySet.js"; -export { coerceToBagEntries } from "./src/keys/copyBag.js"; -export * from "./src/types.js"; -export { listDifference } from "@endo/common/list-difference.js"; -export { objectMap } from "@endo/common/object-map.js"; -export { isKey, assertKey, assertScalarKey, isCopySet, assertCopySet, makeCopySet, getCopySetKeys, isCopyBag, assertCopyBag, makeCopyBag, makeCopyBagFromElements, getCopyBagEntries, isCopyMap, assertCopyMap, makeCopyMap, getCopyMapEntries } from "./src/keys/checkKey.js"; -export { bagCompare, setCompare, compareKeys, keyLT, keyLTE, keyEQ, keyGTE, keyGT } from "./src/keys/compareKeys.js"; -export { elementsIsSuperset, elementsIsDisjoint, elementsCompare, elementsUnion, elementsDisjointUnion, elementsIntersection, elementsDisjointSubtract, setIsSuperset, setIsDisjoint, setUnion, setDisjointUnion, setIntersection, setDisjointSubtract } from "./src/keys/merge-set-operators.js"; -export { bagIsSuperbag, bagUnion, bagIntersection, bagDisjointSubtract } from "./src/keys/merge-bag-operators.js"; -export { M, getRankCover, isPattern, assertPattern, matches, mustMatch, isAwaitArgGuard, assertAwaitArgGuard, isRawGuard, assertRawGuard, assertMethodGuard, assertInterfaceGuard, kindOf } from "./src/patterns/patternMatchers.js"; -export { getAwaitArgGuardPayload, getMethodGuardPayload, getInterfaceGuardPayload, getInterfaceMethodKeys } from "./src/patterns/getGuardPayloads.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/patterns/index.d.ts.map b/packages/patterns/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/patterns/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/patterns/src/keys/checkKey.d.ts b/packages/patterns/src/keys/checkKey.d.ts deleted file mode 100644 index 2a7c0cd20d..0000000000 --- a/packages/patterns/src/keys/checkKey.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -export function isPrimitiveKey(val: Passable): boolean; -export function assertPrimitiveKey(val: Passable): void; -export function checkScalarKey(val: Passable, check: Checker): boolean; -export function isScalarKey(val: Passable): boolean; -export function assertScalarKey(val: Passable): void; -export function checkKey(val: Passable, check: Checker): boolean; -export function isKey(val: Passable): boolean; -export function assertKey(val: Key): void; -export function checkCopySet(s: Passable, check: Checker): boolean; -/** - * @callback IsCopySet - * @param {Passable} s - * @returns {s is CopySet} - */ -/** @type {IsCopySet} */ -export const isCopySet: IsCopySet; -/** - * @callback AssertCopySet - * @param {Passable} s - * @returns {asserts s is CopySet} - */ -/** @type {AssertCopySet} */ -export const assertCopySet: AssertCopySet; -export function getCopySetKeys(s: CopySet): K[]; -export function everyCopySetKey(s: CopySet, fn: (key: K, index: number) => boolean): boolean; -export function makeCopySet(elementIter: Iterable): CopySet; -export function checkCopyBag(b: Passable, check: Checker): boolean; -/** - * @callback IsCopyBag - * @param {Passable} b - * @returns {b is CopyBag} - */ -/** @type {IsCopyBag} */ -export const isCopyBag: IsCopyBag; -/** - * @callback AssertCopyBag - * @param {Passable} b - * @returns {asserts b is CopyBag} - */ -/** @type {AssertCopyBag} */ -export const assertCopyBag: AssertCopyBag; -export function getCopyBagEntries(b: CopyBag): [K, bigint][]; -export function everyCopyBagEntry(b: CopyBag, fn: (entry: [K, bigint], index: number) => boolean): boolean; -export function makeCopyBag(bagEntryIter: Iterable<[K, bigint]>): CopyBag; -export function makeCopyBagFromElements(elementIter: Iterable): CopyBag; -export function checkCopyMap(m: Passable, check: Checker): boolean; -/** - * @callback IsCopyMap - * @param {Passable} m - * @returns {m is CopyMap} - */ -/** @type {IsCopyMap} */ -export const isCopyMap: IsCopyMap; -/** - * @callback AssertCopyMap - * @param {Passable} m - * @returns {asserts m is CopyMap} - */ -/** @type {AssertCopyMap} */ -export const assertCopyMap: AssertCopyMap; -export function getCopyMapKeys(m: CopyMap): K[]; -export function getCopyMapValues(m: CopyMap): V[]; -export function getCopyMapEntryArray(m: CopyMap): [K, V][]; -export function getCopyMapEntries(m: CopyMap): Iterable<[K, V]>; -export function everyCopyMapKey(m: CopyMap, fn: (key: K, index: number) => boolean): boolean; -export function everyCopyMapValue(m: CopyMap, fn: (value: V, index: number) => boolean): boolean; -export function copyMapKeySet(m: CopyMap): CopySet; -export function makeCopyMap(entries: Iterable<[K, V]>): CopyMap; -export type Checker = import('@endo/marshal').Checker; -export type Passable = import('@endo/pass-style').Passable; -export type KeyComparison = import('../types').KeyComparison; -export type Key = import('../types').Key; -export type CopyBag = import('../types').CopyBag; -export type CopySet = import('../types').CopySet; -export type CopyMap = import('../types').CopyMap; -export type KeyCompare = import('../types').KeyCompare; -export type FullCompare = import('../types').FullCompare; -export type IsCopySet = (s: Passable) => s is CopySet; -export type AssertCopySet = (s: Passable) => asserts s is CopySet; -export type IsCopyBag = (b: Passable) => b is CopyBag; -export type AssertCopyBag = (b: Passable) => asserts b is CopyBag; -export type IsCopyMap = (m: Passable) => m is CopyMap; -export type AssertCopyMap = (m: Passable) => asserts m is CopyMap; -//# sourceMappingURL=checkKey.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/checkKey.d.ts.map b/packages/patterns/src/keys/checkKey.d.ts.map deleted file mode 100644 index ed62825c62..0000000000 --- a/packages/patterns/src/keys/checkKey.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"checkKey.d.ts","sourceRoot":"","sources":["checkKey.js"],"names":[],"mappings":"AAwDO,oCAHI,QAAQ,GACN,OAAO,CAEqD;AAOlE,wCAHI,QAAQ,GACN,IAAI,CAIhB;AAQM,oCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAWnB;AAMM,iCAHI,QAAQ,GACN,OAAO,CAE+C;AAO5D,qCAHI,QAAQ,GACN,IAAI,CAIhB;AAaM,8BAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAsBnB;AAOM,2BAHI,QAAQ,GACN,OAAO,CAEmC;AAMhD,+BAFI,GAAG,QAIb;AAgBM,gCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAenB;AAGD;;;;GAIG;AAEH,wBAAwB;AACxB,wBADW,SAAS,CACwC;AAG5D;;;;GAIG;AAEH,4BAA4B;AAC5B,4BADW,aAAa,CAGtB;AAQK,sDAGN;AASM,sEAHoB,MAAM,KAAK,OAAO,GAChC,OAAO,CAGqC;AAQlD,qEAIN;AAgBM,gCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAenB;AAGD;;;;GAIG;AAEH,wBAAwB;AACxB,wBADW,SAAS,CACwC;AAG5D;;;;GAIG;AAEH,4BAA4B;AAC5B,4BADW,aAAa,CAGtB;AAQK,mEAGN;AASM,oFAHgC,MAAM,KAAK,OAAO,GAC5C,OAAO,CAG4C;AAQzD,gFAIN;AAQM,iFAiBN;AAgBM,gCAJI,QAAQ,SACR,OAAO,GACL,OAAO,CAiCnB;AAGD;;;;GAIG;AAEH,wBAAwB;AACxB,wBADW,SAAS,CACwC;AAG5D;;;;GAIG;AAEH,4BAA4B;AAC5B,4BADW,aAAa,CAGtB;AASK,4FAGN;AASM,8FAGN;AAWM,uGAMN;AASM,4GAyBN;AAUM,4GAHoB,MAAM,KAAK,OAAO,GAChC,OAAO,CAGqC;AAUlD,gHAHsB,MAAM,KAAK,OAAO,GAClC,OAAO,CAG2C;AASxD,kGAEgC;AAShC,4GAeN;sBArgBa,OAAO,eAAe,EAAE,OAAO;uBAC/B,OAAO,kBAAkB,EAAE,QAAQ;4BACnC,OAAO,UAAU,EAAE,aAAa;kBAChC,OAAO,UAAU,EAAE,GAAG;+CACE,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;+CAC7B,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;wEACK,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,EAAE,CAAC,CAAC;yBAC1F,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW;4BAqJjC,QAAQ;gCAUR,QAAQ;4BA0ER,QAAQ;gCAUR,QAAQ;4BAqHR,QAAQ;gCAUR,QAAQ"} \ No newline at end of file diff --git a/packages/patterns/src/keys/compareKeys.d.ts b/packages/patterns/src/keys/compareKeys.d.ts deleted file mode 100644 index 30eddef114..0000000000 --- a/packages/patterns/src/keys/compareKeys.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function setCompare(left: CopySet, right: CopySet): number; -export function bagCompare(left: import("./checkKey.js").CopyBag, right: import("./checkKey.js").CopyBag): number; -/** @type {import('../types').KeyCompare} */ -export const compareKeys: import('../types').KeyCompare; -export function keyLT(left: any, right: any): boolean; -export function keyLTE(left: any, right: any): boolean; -export function keyEQ(left: any, right: any): boolean; -export function keyGTE(left: any, right: any): boolean; -export function keyGT(left: any, right: any): boolean; -export type CopySet = import('../types').CopySet; -//# sourceMappingURL=compareKeys.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/compareKeys.d.ts.map b/packages/patterns/src/keys/compareKeys.d.ts.map deleted file mode 100644 index 235da4a57a..0000000000 --- a/packages/patterns/src/keys/compareKeys.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compareKeys.d.ts","sourceRoot":"","sources":["compareKeys.js"],"names":[],"mappings":"AA8LS,2FACc;AADd,2HACc;AAvGvB,4CAA4C;AAC5C,0BADW,OAAO,UAAU,EAAE,UAAU,CAkItC;AAGK,sDAA2D;AAG3D,uDAA6D;AAG7D,sDAA6D;AAG7D,uDAA6D;AAG7D,sDAA2D;+CAtNgB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/patterns/src/keys/copyBag.d.ts b/packages/patterns/src/keys/copyBag.d.ts deleted file mode 100644 index 98f236cc76..0000000000 --- a/packages/patterns/src/keys/copyBag.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function assertNoDuplicateKeys(bagEntries: [T, bigint][], fullCompare?: import("@endo/marshal").RankCompare | undefined): void; -export function checkBagEntries(bagEntries: [Passable, bigint][], check: Checker): boolean; -export function assertBagEntries(bagEntries: [Passable, bigint][]): asserts bagEntries is [any, bigint][]; -export function coerceToBagEntries(bagEntriesList: any): [any, bigint][]; -export function makeBagOfEntries(bagEntryIter: Iterable<[K, bigint]>): CopyBag; -export type CopyBag = import('../types').CopyBag; -export type Key = import('../types').Key; -export type FullCompare = import('../types').FullCompare; -export type Checker = import('@endo/marshal').Checker; -export type Passable = import('@endo/pass-style').Passable; -//# sourceMappingURL=copyBag.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/copyBag.d.ts.map b/packages/patterns/src/keys/copyBag.d.ts.map deleted file mode 100644 index f006741aec..0000000000 --- a/packages/patterns/src/keys/copyBag.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"copyBag.d.ts","sourceRoot":"","sources":["copyBag.js"],"names":[],"mappings":"AA8DO,oIAFM,IAAI,CAIhB;AAOM,4CAJI,CAAC,QAAQ,EAAC,MAAM,CAAC,EAAE,SACnB,OAAO,GACL,OAAO,CAkCnB;AAQM,6CAHI,CAAC,QAAQ,EAAC,MAAM,CAAC,EAAE,yCAK7B;AAGM,yEAIN;AAQM,qFACkD;+CAnHnB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;kBACrD,OAAO,UAAU,EAAE,GAAG;0BACtB,OAAO,UAAU,EAAE,WAAW;sBAC9B,OAAO,eAAe,EAAE,OAAO;uBAC/B,OAAO,kBAAkB,EAAE,QAAQ"} \ No newline at end of file diff --git a/packages/patterns/src/keys/copySet.d.ts b/packages/patterns/src/keys/copySet.d.ts deleted file mode 100644 index dc185dcbe0..0000000000 --- a/packages/patterns/src/keys/copySet.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export function assertNoDuplicates(elements: T[], fullCompare?: import("@endo/marshal").RankCompare | undefined): void; -export function checkElements(elements: Passable[], check: Checker): boolean; -export function assertElements(elements: any): void; -export function coerceToElements(elementsList: any): any[]; -export function makeSetOfElements(elementIter: Iterable): CopySet; -export type CopySet = import('../types').CopySet; -export type Key = import('../types').Key; -export type FullCompare = import('../types').FullCompare; -export type Checker = import('@endo/marshal').Checker; -export type Passable = import('@endo/pass-style').Passable; -//# sourceMappingURL=copySet.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/copySet.d.ts.map b/packages/patterns/src/keys/copySet.d.ts.map deleted file mode 100644 index 1bbb206116..0000000000 --- a/packages/patterns/src/keys/copySet.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"copySet.d.ts","sourceRoot":"","sources":["copySet.js"],"names":[],"mappings":"AA2DO,qHAFM,IAAI,CAIhB;AAOM,wCAJI,QAAQ,EAAE,SACV,OAAO,GACL,OAAO,CAgBnB;AAGM,oDAEN;AAGM,2DAIN;AAQM,2EAC+C;+CAzFhB,OAAO,UAAU,EAAE,OAAO,CAAC,CAAC,CAAC;kBACrD,OAAO,UAAU,EAAE,GAAG;0BACtB,OAAO,UAAU,EAAE,WAAW;sBAC9B,OAAO,eAAe,EAAE,OAAO;uBAC/B,OAAO,kBAAkB,EAAE,QAAQ"} \ No newline at end of file diff --git a/packages/patterns/src/keys/keycollection-operators.d.ts b/packages/patterns/src/keys/keycollection-operators.d.ts deleted file mode 100644 index 87e464226d..0000000000 --- a/packages/patterns/src/keys/keycollection-operators.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export function generateCollectionPairEntries(c1: C, c2: C, getEntries: (collection: C) => [any, V][], absentValue: any): IterableIterator<[any, any, any]>; -export function makeCompareCollection(getEntries: (collection: C) => [any, V][], absentValue: any, compareValues: KeyCompare): (left: C, right: C) => KeyComparison; -export type RankCompare = import('@endo/marshal').RankCompare; -export type KeyComparison = import('../types').KeyComparison; -export type KeyCompare = import('../types').KeyCompare; -export type FullCompare = import('../types').FullCompare; -export type KeyCollection = import('../types').KeyCollection; -//# sourceMappingURL=keycollection-operators.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/keycollection-operators.d.ts.map b/packages/patterns/src/keys/keycollection-operators.d.ts.map deleted file mode 100644 index 640cae7a88..0000000000 --- a/packages/patterns/src/keys/keycollection-operators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"keycollection-operators.d.ts","sourceRoot":"","sources":["keycollection-operators.js"],"names":[],"mappings":"AAwFO,uKAHI,GAAG,qCAqEb;AA+BM,iJAJI,GAAG,iBACH,UAAU,0BACe,aAAa,CAmC7C;0BAhNU,OAAO,eAAe,EAAE,WAAW;4BACnC,OAAO,UAAU,EAAE,aAAa;yBAChC,OAAO,UAAU,EAAE,UAAU;0BAC7B,OAAO,UAAU,EAAE,WAAW;4BAC9B,OAAO,UAAU,EAAE,aAAa"} \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-bag-operators.d.ts b/packages/patterns/src/keys/merge-bag-operators.d.ts deleted file mode 100644 index 891b2a277e..0000000000 --- a/packages/patterns/src/keys/merge-bag-operators.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export function bagIsSuperbag(xbag: any, ybag: any): any; -export function bagIsDisjoint(xbag: any, ybag: any): any; -export function bagUnion(xbag: any, ybag: any): import("./copyBag.js").CopyBag; -export function bagIntersection(xbag: any, ybag: any): import("./copyBag.js").CopyBag; -export function bagDisjointSubtract(xbag: any, ybag: any): import("./copyBag.js").CopyBag; -export type KeyComparison = import('../types').KeyComparison; -export type FullCompare = import('../types').FullCompare; -export type RankCompare = import('@endo/marshal').RankCompare; -//# sourceMappingURL=merge-bag-operators.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-bag-operators.d.ts.map b/packages/patterns/src/keys/merge-bag-operators.d.ts.map deleted file mode 100644 index 1363689737..0000000000 --- a/packages/patterns/src/keys/merge-bag-operators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge-bag-operators.d.ts","sourceRoot":"","sources":["merge-bag-operators.js"],"names":[],"mappings":"AAsRkC,yDACQ;AADR,yDACQ;AAEX,oFAC6B;AAD7B,2FAC6B;AAD7B,+FAC6B;4BAjR9C,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;0BAC9B,OAAO,eAAe,EAAE,WAAW"} \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-set-operators.d.ts b/packages/patterns/src/keys/merge-set-operators.d.ts deleted file mode 100644 index 8fd9cc90c8..0000000000 --- a/packages/patterns/src/keys/merge-set-operators.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -export function elementsIsSuperset(xelements: any, yelements: any): any; -export function elementsIsDisjoint(xelements: any, yelements: any): any; -export function elementsCompare(xelements: any, yelements: any): any; -export function elementsUnion(xelements: any, yelements: any): any; -export function elementsDisjointUnion(xelements: any, yelements: any): any; -export function elementsIntersection(xelements: any, yelements: any): any; -export function elementsDisjointSubtract(xelements: any, yelements: any): any; -export function setIsSuperset(xset: any, yset: any): any; -export function setIsDisjoint(xset: any, yset: any): any; -export function setUnion(xset: any, yset: any): import("./copySet.js").CopySet; -export function setDisjointUnion(xset: any, yset: any): import("./copySet.js").CopySet; -export function setIntersection(xset: any, yset: any): import("./copySet.js").CopySet; -export function setDisjointSubtract(xset: any, yset: any): import("./copySet.js").CopySet; -export type KeyComparison = import('../types').KeyComparison; -export type FullCompare = import('../types').FullCompare; -export type RankCompare = import('@endo/marshal').RankCompare; -//# sourceMappingURL=merge-set-operators.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/keys/merge-set-operators.d.ts.map b/packages/patterns/src/keys/merge-set-operators.d.ts.map deleted file mode 100644 index 814d5e83a9..0000000000 --- a/packages/patterns/src/keys/merge-set-operators.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"merge-set-operators.d.ts","sourceRoot":"","sources":["merge-set-operators.js"],"names":[],"mappings":"AA6S2B,wEACU;AADV,wEACU;AADV,qEACU;AADV,mEACU;AADV,2EACU;AADV,0EACU;AADV,8EACU;AAUL,yDACQ;AADR,yDACQ;AAEX,oFAC8B;AAD9B,4FAC8B;AAD9B,2FAC8B;AAD9B,+FAC8B;4BAnT7C,OAAO,UAAU,EAAE,aAAa;0BAChC,OAAO,UAAU,EAAE,WAAW;0BAC9B,OAAO,eAAe,EAAE,WAAW"} \ No newline at end of file diff --git a/packages/patterns/src/patterns/getGuardPayloads.d.ts b/packages/patterns/src/patterns/getGuardPayloads.d.ts deleted file mode 100644 index b93c41a0a2..0000000000 --- a/packages/patterns/src/patterns/getGuardPayloads.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function getAwaitArgGuardPayload(awaitArgGuard: import('./types.js').AwaitArgGuard): import('./types.js').AwaitArgGuardPayload; -export function getMethodGuardPayload(methodGuard: import('./types.js').MethodGuard): import('./types.js').MethodGuardPayload; -export function getInterfaceGuardPayload = Record>(interfaceGuard: import("./types.js").InterfaceGuard): import("./types.js").InterfaceGuardPayload; -export function getInterfaceMethodKeys(interfaceGuard: import('./types.js').InterfaceGuard): (string | symbol)[]; -//# sourceMappingURL=getGuardPayloads.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/patterns/getGuardPayloads.d.ts.map b/packages/patterns/src/patterns/getGuardPayloads.d.ts.map deleted file mode 100644 index 1744a139f9..0000000000 --- a/packages/patterns/src/patterns/getGuardPayloads.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"getGuardPayloads.d.ts","sourceRoot":"","sources":["getGuardPayloads.js"],"names":[],"mappings":"AA+DO,uDAHI,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,YAAY,EAAE,oBAAoB,CAWrD;AA2EM,mDAHI,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,YAAY,EAAE,kBAAkB,CAsCnD;AAyDM,yQAoBN;AASM,uDAHI,OAAO,YAAY,EAAE,cAAc,GACjC,CAAC,MAAM,GAAG,MAAM,CAAC,EAAE,CAY/B"} \ No newline at end of file diff --git a/packages/patterns/src/patterns/patternMatchers.d.ts b/packages/patterns/src/patterns/patternMatchers.d.ts deleted file mode 100644 index 113efa6825..0000000000 --- a/packages/patterns/src/patterns/patternMatchers.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export namespace defaultLimits { - let decimalDigitsLimit: number; - let stringLengthLimit: number; - let symbolNameLengthLimit: number; - let numPropertiesLimit: number; - let propertyNameLengthLimit: number; - let arrayLengthLimit: number; - let numSetElementsLimit: number; - let numUniqueBagElementsLimit: number; - let numMapEntriesLimit: number; -} -export const checkMatches: (specimen: any, patt: any, check: import("@endo/marshal").Checker, label?: string | number | undefined) => boolean; -export const matches: (specimen: any, patt: any) => boolean; -export const mustMatch: (specimen: any, patt: any, label?: string | number | undefined) => void; -export const assertPattern: (patt: any) => void; -export const isPattern: (patt: any) => boolean; -export const getRankCover: import("./types.js").GetRankCover; -export const M: import("./types.js").MatcherNamespace; -export const kindOf: (specimen: any, check?: import("@endo/marshal").Checker | undefined) => import("./types.js").Kind | undefined; -export const AwaitArgGuardShape: import("../types.js").Matcher; -export function isAwaitArgGuard(specimen: any): specimen is import("./types.js").AwaitArgGuard; -export function assertAwaitArgGuard(specimen: any): asserts specimen is import("./types.js").AwaitArgGuard; -export const RawGuardShape: import("../types.js").Matcher; -export function isRawGuard(specimen: any): boolean; -export function assertRawGuard(specimen: any): void; -export const SyncValueGuardShape: import("../types.js").Matcher; -export const SyncValueGuardListShape: import("../types.js").Matcher; -export const ArgGuardListShape: import("../types.js").Matcher; -export const MethodGuardPayloadShape: import("../types.js").Matcher; -export const MethodGuardShape: import("../types.js").Matcher; -export function assertMethodGuard(specimen: any): asserts specimen is import("./types.js").MethodGuard; -export const InterfaceGuardPayloadShape: import("../types.js").Matcher; -export const InterfaceGuardShape: import("../types.js").Matcher; -export function assertInterfaceGuard(specimen: any): asserts specimen is import("./types.js").InterfaceGuard>; -//# sourceMappingURL=patternMatchers.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/patterns/patternMatchers.d.ts.map b/packages/patterns/src/patterns/patternMatchers.d.ts.map deleted file mode 100644 index ecefe769bf..0000000000 --- a/packages/patterns/src/patterns/patternMatchers.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"patternMatchers.d.ts","sourceRoot":"","sources":["patternMatchers.js"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;AA0uDA,+DAAgE;AAMzD,0CAHI,GAAG,kDAIyB;AAOhC,8CAHI,GAAG,0DAKb;AAoBD,0DAAsD;AAE/C,mDAA+D;AAE/D,oDACyC;AAUhD,gEAAoE;AAEpE,oEAAsE;AAGtE,8DAA0D;AAkB1D,oEAGE;AAEF,6DAA4D;AAMrD,4CAHI,GAAG,wDAKb;AA+CD,uEAUE;AAEF,gEAAkE;AAM3D,+CAHI,GAAG,kHAKb"} \ No newline at end of file diff --git a/packages/patterns/src/patterns/types.d.ts b/packages/patterns/src/patterns/types.d.ts deleted file mode 100644 index b27e0bc3c7..0000000000 --- a/packages/patterns/src/patterns/types.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -export type Passable = import('@endo/pass-style').Passable; -export type PassStyle = import('@endo/pass-style').PassStyle; -export type CopyTagged = import('@endo/pass-style').CopyTagged; -export type CopyRecord = import('@endo/pass-style').CopyRecord; -export type CopyArray = import('@endo/pass-style').CopyArray; -export type Checker = import('@endo/pass-style').Checker; -export type RankCompare = import('@endo/marshal').RankCompare; -export type RankCover = import('@endo/marshal').RankCover; -export type AwaitArgGuardPayload = import('../types.js').AwaitArgGuardPayload; -export type AwaitArgGuard = import('../types.js').AwaitArgGuard; -export type RawGuard = import('../types.js').RawGuard; -export type ArgGuard = import('../types.js').ArgGuard; -export type MethodGuardPayload = import('../types.js').MethodGuardPayload; -export type SyncValueGuard = import('../types.js').SyncValueGuard; -export type MethodGuard = import('../types.js').MethodGuard; -export type InterfaceGuardPayload = Record> = import('../types.js').InterfaceGuardPayload; -export type InterfaceGuard = Record> = import('../types.js').InterfaceGuard; -export type MethodGuardMaker = import('../types.js').MethodGuardMaker; -export type MatcherNamespace = import('../types').MatcherNamespace; -export type Key = import('../types').Key; -export type Pattern = import('../types').Pattern; -export type CheckPattern = import('../types').CheckPattern; -export type Limits = import('../types').Limits; -export type AllLimits = import('../types').AllLimits; -export type GetRankCover = import('../types').GetRankCover; -/** - * It is either a PassStyle other than 'tagged', or, if the underlying - * PassStyle is 'tagged', then the `getTag` value for tags that are - * recognized at the - */ -export type Kind = Exclude | 'copySet' | 'copyBag' | 'copyMap' | `match:${any}` | `guard:${any}`; -/** - * This factors out only the parts specific to each kind of Matcher. It is - * encapsulated, and its methods can make the stated unchecked assumptions - * enforced by the common calling logic. - */ -export type MatchHelper = { - /** - * Reports whether `allegedPayload` is valid as the payload of a CopyTagged - * whose tag corresponds with this MatchHelper's Matchers. - */ - checkIsWellFormed: (allegedPayload: Passable, check: Checker) => boolean; - /** - * Assuming validity of `matcherPayload` as the payload of a Matcher corresponding - * with this MatchHelper, reports whether `specimen` is matched by that Matcher. - */ - checkMatches: (specimen: Passable, matcherPayload: Passable, check: Checker) => boolean; - /** - * Assumes this is the payload of a CopyTagged with the corresponding - * matchTag. Return a RankCover to bound from below and above, - * in rank order, all possible Passables that would match this Matcher. - * The left element must be before or the same rank as any possible - * matching specimen. The right element must be after or the same - * rank as any possible matching specimen. - */ - getRankCover: import('../types').GetRankCover; -}; -export type PatternKit = { - checkMatches: (specimen: Passable, patt: Passable, check: Checker, label?: string | number) => boolean; - matches: (specimen: Passable, patt: Pattern) => boolean; - mustMatch: (specimen: Passable, patt: Pattern, label?: string | number) => void; - assertPattern: (patt: Pattern) => void; - isPattern: (patt: Passable) => boolean; - getRankCover: GetRankCover; - M: MatcherNamespace; - kindOf: (specimen: Passable, check?: Checker) => Kind | undefined; -}; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/patterns/types.d.ts.map b/packages/patterns/src/patterns/types.d.ts.map deleted file mode 100644 index 72b558ef36..0000000000 --- a/packages/patterns/src/patterns/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"uBAIc,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,SAAS;qFAIrC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAG,EAAC,OAAO,CAAC;kDAIlD,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;iDAIxC,OAAO,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;sBAEtC,OAAO,kBAAkB,EAAE,OAAO;0BAClC,OAAO,eAAe,EAAE,WAAW;wBACnC,OAAO,eAAe,EAAE,SAAS;mCAEjC,OAAO,aAAa,EAAE,oBAAoB;4BAC1C,OAAO,aAAa,EAAE,aAAa;uBACnC,OAAO,aAAa,EAAE,QAAQ;uBAC9B,OAAO,aAAa,EAAE,QAAQ;iCAC9B,OAAO,aAAa,EAAE,kBAAkB;6BACxC,OAAO,aAAa,EAAE,cAAc;0BACpC,OAAO,aAAa,EAAE,WAAW;+JAGlC,OAAO,aAAa,EAAE,qBAAqB,CAAC,CAAC,CAAC;wJAI9C,OAAO,aAAa,EAAE,cAAc,CAAC,CAAC,CAAC;+BAEtC,OAAO,aAAa,EAAE,gBAAgB;+BAEtC,OAAO,UAAU,EAAE,gBAAgB;kBACnC,OAAO,UAAU,EAAE,GAAG;sBACtB,OAAO,UAAU,EAAE,OAAO;2BAC1B,OAAO,UAAU,EAAE,YAAY;qBAC/B,OAAO,UAAU,EAAE,MAAM;wBACzB,OAAO,UAAU,EAAE,SAAS;2BAC5B,OAAO,UAAU,EAAE,YAAY;;;;;;mBAGhC,QAAQ,SAAS,EAAE,QAAQ,CAAC,GACxC,SAAa,GAAG,SAAS,GAAG,SAAS,GACrC,SAAa,GAAG,EAAE,GAAG,SAAS,GAAG,EAAE;;;;;;;;;;;wCAeL,QAAQ,SACjB,OAAO,KACrB,OAAO;;;;;6BAIU,QAAQ,kBACF,QAAQ,SACjB,OAAO,KACrB,OAAO;;;;;;;;;kBAID,OAAO,UAAU,EAAE,YAAY;;;6BAWpB,QAAQ,QACZ,QAAQ,SACP,OAAO,UACN,MAAM,GAAC,MAAM,KAC5B,OAAO;wBACU,QAAQ,QAAQ,OAAO,KAAK,OAAO;0BACnC,QAAQ,QAAQ,OAAO,UAAU,MAAM,GAAC,MAAM,KAAK,IAAI;0BAC3D,OAAO,KAAK,IAAI;sBAChB,QAAQ,KAAK,OAAO;kBAC3B,YAAY;OACZ,gBAAgB;uBACL,QAAQ,UAAU,OAAO,KAAK,IAAI,GAAG,SAAS"} \ No newline at end of file diff --git a/packages/patterns/src/types.d.ts b/packages/patterns/src/types.d.ts deleted file mode 100644 index 35c313492e..0000000000 --- a/packages/patterns/src/types.d.ts +++ /dev/null @@ -1,541 +0,0 @@ -export type Passable = import('@endo/pass-style').Passable; -export type PassStyle = import('@endo/pass-style').PassStyle; -export type CopyTagged = import('@endo/pass-style').CopyTagged; -export type CopyRecord = import('@endo/pass-style').CopyRecord; -export type CopyArray = import('@endo/pass-style').CopyArray; -export type Checker = import('@endo/pass-style').Checker; -export type RankCompare = import('@endo/marshal').RankCompare; -export type RankCover = import('@endo/marshal').RankCover; -/** - * Keys are Passable arbitrarily-nested pass-by-copy containers - * (CopyArray, CopyRecord, CopySet, CopyBag, CopyMap) in which every - * non-container leaf is either a Passable primitive value or a Remotable (a - * remotely-accessible object or presence for a remote object), or such leaves - * in isolation with no container. - * - * Keys are so named because they can be used as keys in CopyMaps and - * [agoric-sdk Stores](https://github.com/Agoric/agoric-sdk/blob/master/packages/store/docs/store-taxonomy.md), - * and as elements in CopySets and CopyBags. - * - * Keys cannot contain promises or errors, as these do not have useful - * distributed equality semantics. Keys also cannot contain any CopyTagged - * except for those recognized as CopySets, CopyBags, and CopyMaps. - * - * Be aware that we may recognize more CopyTaggeds over time, including - * CopyTaggeds recognized as Keys. - * - * Distributed equality is location independent. - * The same two Keys, passed to another location, will be `keyEQ` there iff - * they are `keyEQ` here. (`keyEQ` tests equality according to the - * key distributed equality semantics.) - */ -export type Key = Passable; -export type GetRankCover = (payload: Passable, encodePassable: KeyToDBKey) => import("@endo/marshal").RankCover; -export type KeyToDBKey = (key: Key) => string; -/** - * Patterns are Passable arbitrarily-nested pass-by-copy containers - * (CopyArray, CopyRecord, CopySet, CopyBag, CopyMap) in which every - * non-container leaf is either a Key or a Matcher, or such leaves in isolation - * with no container. - * - * A Pattern acts as a declarative total predicate over Passables, where each - * Passable is either matched or not matched by it. Every Key is also a Pattern - * that matches only "itself", i.e., Keys that are `keyEQ` to it according to - * the key distributed equality semantics. - * - * Patterns cannot contain promises or errors, as these do - * not have useful distributed equality or matching semantics. Likewise, - * no Pattern can distinguish among promises, or distinguish among errors. - * Patterns also cannot contain any CopyTaggeds except for those recognized as - * CopySets, CopyBags, CopyMaps, or Matchers. - * - * Be aware that we may recognize more CopyTaggeds over time, including - * CopyTaggeds recognized as Patterns. - * - * Whether a Passable is matched by a given Pattern is location independent. - * If a given Passable and Pattern are passed to another location, - * the Passable will be matched by the Pattern there iff the Passable is matched - * by the Pattern here. - * - * Patterns are often used in a type-like manner, to represent the category - * of Passables that the Pattern is intended* to match. To keep this - * distinction clear, we often use the suffix "Shape" rather than "Pattern" - * to avoid confusion when the Pattern itself represents - * some category of Pattern. For example, an "AmountShape" represents the - * category of Amounts. And "AmountPatternShape" represents the - * category of Patterns over Amounts. - * - * * We say "intended" above because Patterns, in order to be declarative - * and Passable, cannot have the generality of predicates written in a - * Turing-universal programming language. Rather, to represent the category of - * things intended to be a Foo, a FooShape should reliably - * accept all Foos and reject only non-Foos. However, a FooShape may also accept - * non-Foos that "look like" or "have the same shape as" genuine Foos. - * An accurate predicate for e.g. input validation would need to supplement the - * Pattern check with code to detect the residual cases. - * We hope the "Shape" metaphor helps remind us of this type-like imprecision - * of Patterns. - */ -export type Pattern = Passable; -/** - * A Passable collection of Keys that are all mutually distinguishable - * according to the key distributed equality semantics exposed by `keyEQ`. - */ -export type CopySet = CopyTagged<'copySet', K[]>; -/** - * A Passable collection of entries with Keys that are all mutually distinguishable - * according to the key distributed equality semantics exposed by `keyEQ`, - * each with a corresponding positive cardinality. - */ -export type CopyBag = CopyTagged<'copyBag', [K, bigint][]>; -/** - * A Passable collection of entries with Keys that are all mutually distinguishable - * according to the key distributed equality semantics exposed by `keyEQ`, - * each with a corresponding Passable value. - */ -export type CopyMap = CopyTagged<'copyMap', { - keys: K[]; - values: V[]; -}>; -/** - * CopySet, CopyBag, and CopyMap all store Keys in reverse rankOrder, - * which supports generalized utilities. - */ -export type KeyCollection = CopySet | CopyBag | CopyMap; -/** - * A Pattern representing the predicate characterizing a category of Passables, - * such as strings or 8-bit unsigned integer numbers or CopyArrays of Remotables. - */ -export type Matcher = CopyTagged<`match:${string}`, Passable>; -/** - * A `FullCompare` function satisfies all the invariants stated below for - * `RankCompare`'s relation with KeyCompare. - * In addition, its equality is as precise as the `KeyCompare` - * comparison defined below, in that, for all Keys `x` and `y`, - * `FullCompare(x, y) === 0` iff `KeyCompare(x, y) === 0`. - * - * For non-Key inputs, a `FullCompare` should be exactly as imprecise as - * `RankCompare`. For example, both will treat all errors as in the same - * equivalence class. Both will treat all promises as in the same - * equivalence class. Both will order tagged records the same way, which is - * admittedly weird because some (such as CopySets, CopyBags, and CopyMaps) - * will be considered Keys while others will be considered non-Keys. - */ -export type FullCompare = RankCompare; -export type RankComparatorKit = { - comparator: RankCompare; - antiComparator: RankCompare; -}; -export type FullComparatorKit = { - comparator: FullCompare; - antiComparator: FullCompare; -}; -/** - * The result of a `KeyCompare` function that defines a meaningful - * and meaningfully precise partial order of Key values. See `KeyCompare`. - */ -export type KeyComparison = -1 | 0 | 1 | number; -/** - * `compareKeys` implements a partial order over Keys --- it defines relative - * position between two Keys but leaves some pairs incomparable (for example, - * subsets over sets is a partial order in which {} precedes {x} and {y}, which - * are mutually incomparable but both precede {x, y}). As with the rank ordering - * produced by `compareRank`, -1, 0, and 1 respectively mean "less than", - * "equivalent to", and "greater than". NaN means "incomparable" --- the first - * key is not less, equivalent, or greater than the second. - * - * By using NaN for "incomparable", the normal equivalence for using - * the return value in a comparison is preserved. - * `compareKeys(left, right) >= 0` iff `left` is greater than or - * equivalent to `right` in the partial ordering. - * - * Key order (a partial order) and rank order (a total preorder) are - * co-designed to support efficient range search for Key-based queries - * (@see {@link ../README.md#rank-order-and-key-order}). - */ -export type KeyCompare = (left: Key, right: Key) => KeyComparison; -export type CheckPattern = (allegedPattern: Passable, check: Checker) => boolean; -export type AllLimits = { - decimalDigitsLimit: number; - stringLengthLimit: number; - symbolNameLengthLimit: number; - numPropertiesLimit: number; - propertyNameLengthLimit: number; - arrayLengthLimit: number; - numSetElementsLimit: number; - numUniqueBagElementsLimit: number; - numMapEntriesLimit: number; -}; -export type Limits = Partial; -export type PatternMatchers = { - /** - * Matches any Passable. - */ - any: () => Matcher; - /** - * Matches against the intersection of all sub-Patterns. - */ - and: (...subPatts: Pattern[]) => Matcher; - /** - * Matches against the union of all sub-Patterns - * (requiring a successful match against at least one). - */ - or: (...subPatts: Pattern[]) => Matcher; - /** - * Matches against the negation of the sub-Pattern. - */ - not: (subPatt: Pattern) => Matcher; - /** - * Matches any Passable primitive value or Remotable. - * All matched values are Keys. - */ - scalar: () => Matcher; - /** - * Matches any value that can be a key in a CopyMap - * or an element in a CopySet or CopyBag. - * All matched values are also valid Patterns that match only themselves. - */ - key: () => Matcher; - /** - * Matches any Pattern that can be used to characterize Passables. - * A Pattern cannot contain promises or errors, - * as these are not stable enough to usefully match. - */ - pattern: () => Matcher; - /** - * When `kind` specifies a PassStyle other than "tagged", - * matches any value having that PassStyle. - * Otherwise, when `kind` specifies a known tagged record tag - * (such as 'copySet', 'copyBag', 'copyMap', or 'match:scalar'), - * matches any CopyTagged with that tag and a valid tag-specific payload. - * Otherwise, does not match any value. - * TODO: Reject attempts to create a kind matcher with unknown `kind`? - */ - kind: (kind: PassStyle | string) => Matcher; - /** - * For matching an arbitrary Passable Tagged object, whether it has a - * recognized kind or not. If `tagPatt` is omitted, it defaults to - * `M.string()`. If `payloadPatt` is omitted, it defaults to - * `M.any()`. - */ - tagged: (tagPatt?: Pattern, payloadPatt?: Pattern) => Matcher; - /** - * Matches `true` or `false`. - */ - boolean: () => Matcher; - /** - * Matches any floating point number, - * including `NaN` and either signed Infinity. - */ - number: () => Matcher; - /** - * Matches any bigint, subject to limits. - */ - bigint: (limits?: Limits) => Matcher; - /** - * Matches any non-negative bigint, subject to limits. - */ - nat: (limits?: Limits) => Matcher; - /** - * Matches any string, subject to limits. - */ - string: (limits?: Limits) => Matcher; - /** - * Matches any registered or well-known symbol, - * subject to limits. - */ - symbol: (limits?: Limits) => Matcher; - /** - * Matches any CopyRecord, subject to limits. - */ - record: (limits?: Limits) => Matcher; - /** - * Matches any CopyArray, subject to limits. - */ - array: (limits?: Limits) => Matcher; - /** - * Matches any CopySet, subject to limits. - */ - set: (limits?: Limits) => Matcher; - /** - * Matches any CopyBag, subject to limits. - */ - bag: (limits?: Limits) => Matcher; - /** - * Matches any CopyMap, subject to limits. - */ - map: (limits?: Limits) => Matcher; - /** - * Matches a far object or its remote presence. - * The optional `label` is purely for diagnostic purposes and does not - * add any constraints. - */ - remotable: (label?: string) => Matcher; - /** - * Matches any error object. - * Error objects are Passable, but are neither Keys nor Patterns. - * They do not have a useful identity. - */ - error: () => Matcher; - /** - * Matches any promise object. - * Promises are Passable, but are neither Keys nor Patterns. - * They do not have a useful identity. - */ - promise: () => Matcher; - /** - * Matches the exact value `undefined`. - * All keys including `undefined` are already valid Patterns and - * so can validly represent themselves. - * But optional Pattern arguments `(patt = undefined) => ...` - * treat explicit `undefined` as omission of the argument. - * Thus, when a passed Pattern does not also need to be a Key, - * we recommend passing `M.undefined()` rather than `undefined`. - */ - undefined: () => Matcher; - /** - * Returns `null`, which matches only itself. - */ - null: () => null; - /** - * Matches any value that compareKeys reports as less than rightOperand. - */ - lt: (rightOperand: Key) => Matcher; - /** - * Matches any value that compareKeys reports as less than or equal to - * rightOperand. - */ - lte: (rightOperand: Key) => Matcher; - /** - * Matches any value that is equal to key. - */ - eq: (key: Key) => Matcher; - /** - * Matches any value that is not equal to key. - */ - neq: (key: Key) => Matcher; - /** - * Matches any value that compareKeys reports as greater than or equal - * to rightOperand. - */ - gte: (rightOperand: Key) => Matcher; - /** - * Matches any value that compareKeys reports as greater than - * rightOperand. - */ - gt: (rightOperand: Key) => Matcher; - /** - * Matches any CopyArray whose elements are all matched by `subPatt` - * if defined, subject to limits. - */ - arrayOf: (subPatt?: Pattern, limits?: Limits) => Matcher; - /** - * Matches any CopyRecord whose keys are all matched by `keyPatt` - * if defined and values are all matched by `valuePatt` if defined, - * subject to limits. - */ - recordOf: (keyPatt?: Pattern, valuePatt?: Pattern, limits?: Limits) => Matcher; - /** - * Matches any CopySet whose elements are all matched by `keyPatt` - * if defined, subject to limits. - */ - setOf: (keyPatt?: Pattern, limits?: Limits) => Matcher; - /** - * Matches any CopyBag whose elements are all matched by `keyPatt` - * if defined and the cardinality of each is matched by `countPatt` - * if defined, subject to limits. - * `countPatt` is expected to rarely be useful, - * but is provided to minimize surprise. - */ - bagOf: (keyPatt?: Pattern, countPatt?: Pattern, limits?: Limits) => Matcher; - /** - * Matches any CopyMap whose keys are all matched by `keyPatt` if defined - * and values are all matched by `valuePatt` if defined, - * subject to limits. - */ - mapOf: (keyPatt?: Pattern, valuePatt?: Pattern, limits?: Limits) => Matcher; - /** - * Matches any array --- typically an arguments list --- consisting of - * - an initial portion matched by `required`, and - * - a middle portion of length up to the length of `optional` that is - * matched by the equal-length prefix of `optional` if `optional` is - * defined, and - * - a remainder that is matched by `rest` if `rest` is defined. - * The array must be at least as long as `required` - * but its remainder can be arbitrarily short. - * Any array elements beyond the summed length of `required` and `optional` - * are collected and matched against `rest`. - */ - splitArray: (required: Pattern[], optional?: Pattern[], rest?: Pattern) => Matcher; - /** - * Matches any CopyRecord that can be split into component CopyRecords - * as follows: - * - all properties corresponding with a property of `required` - * - all properties corresponding with a property of `optional` - * but not corresponding with a property of `required` - * - all other properties - * where the first component is matched by `required`, - * the second component is matched by the subset of `optional` - * corresponding with its properties if `optional` is defined, and - * the third component is matched by `rest` if defined. - * The CopyRecord must have all properties that appear on `required`, - * but may omit properties that appear on `optional`. - */ - splitRecord: (required: CopyRecord, optional?: CopyRecord, rest?: Pattern) => Matcher; - /** - * Deprecated. Use `M.splitArray` or `M.splitRecord` instead. - * An array or record is split into the first part that is matched by - * `basePatt`, and the remainder, which is matched against `rest` if present. - */ - split: (basePatt: CopyRecord | CopyArray, rest?: Pattern) => Matcher; - /** - * Deprecated. Use `M.splitArray` or `M.splitRecord` instead. - * An array or record is split into the first part that is matched by - * `basePatt`, and the remainder, which is matched against `rest` if present. - * `M.partial` differs from `M.split` in the handling of data that is - * described in `basePatt` but absent in a provided specimen: - * - For a CopyRecord, `M.partial` ignores properties of `basePatt` - * that are not present on the specimen. - * - For a CopyArray, `M.partial` ignores elements of `basePatt` - * at indices beyond the maximum index of the specimen. - */ - partial: (basePatt: CopyRecord | CopyArray, rest?: Pattern) => Matcher; - /** - * Matches any Passable that is either matched by `subPatt` or is a promise object. - * Note that validation is immediate, so (unlike the TypeScript ERef - * type) `M.eref` matches a promise object whose fulfillment value is - * _not_ matched by `subPatt`. - * For describing a top-level parameter, - * `M.callWhen(..., M.await(p), ...)` is preferred over `M.call(..., M.eref(p), ...)` - * because the former always checks against the sub-Pattern (awaiting fulfillment - * if necessary) while the latter bypasses such checks when the relevant argument - * is a promise. - */ - eref: (subPatt: Pattern) => Pattern; - /** - * Matches any Passable that is matched by `subPatt` or is the exact value `undefined`. - */ - opt: (subPatt: Pattern) => Pattern; -}; -export type DefaultGuardType = undefined | 'passable' | 'raw'; -export type MakeInterfaceGuardStrict = >(interfaceName: string, methodGuards: M, options: { - defaultGuards?: undefined; - sloppy?: false; -}) => InterfaceGuard; -export type MakeInterfaceGuardSloppy = (interfaceName: string, methodGuards: any, options: { - defaultGuards?: 'passable' | 'raw'; - sloppy?: true; -}) => InterfaceGuard; -export type MakeInterfaceGuardGeneral = >(interfaceName: string, methodGuards: M, options?: { - defaultGuards?: DefaultGuardType; - sloppy?: boolean; -}) => InterfaceGuard; -export type MakeInterfaceGuard = MakeInterfaceGuardStrict & MakeInterfaceGuardSloppy & MakeInterfaceGuardGeneral; -export type GuardMakers = { - /** - * Guard the interface of an exo object - */ - interface: MakeInterfaceGuard; - /** - * Guard a synchronous call. Arguments not guarded by `M.raw()` are - * automatically hardened and must be at least Passable. - */ - call: (...argPatterns: SyncValueGuard[]) => MethodGuardMaker; - /** - * Guard an async call. Arguments not guarded by `M.raw()` are automatically - * hardened and must be at least Passable. - */ - callWhen: (...argGuards: ArgGuard[]) => MethodGuardMaker; - /** - * Guard a positional parameter in `M.callWhen`, awaiting it and matching its - * fulfillment against the provided pattern. - * For example, `M.callWhen(M.await(M.nat())).returns()` will await the first - * argument, check that its fulfillment satisfies `M.nat()`, and only then call - * the guarded method with that fulfillment. If the argument is a non-promise - * value that already satisfies `M.nat()`, then the result of `await`ing it will - * still pass, and `M.callWhen` will still delay the guarded method call to a - * future turn. - * If the argument is a promise that rejects rather than fulfills, or if its - * fulfillment does not satisfy the nested pattern, then the call is rejected - * without ever invoking the guarded method. - * - * Any `AwaitArgGuard` may not appear as a rest pattern or a result pattern, - * only a top-level single parameter pattern. - */ - await: (argPattern: Pattern) => AwaitArgGuard; - /** - * In parameter position, pass this argument through without any hardening or checking. - * In rest position, pass the rest of the arguments through without any hardening or checking. - * In return position, return the result without any hardening or checking. - */ - raw: () => RawGuard; -}; -export type MatcherNamespace = PatternMatchers & GuardMakers; -export type Method = (...args: any[]) => any; -export type InterfaceGuardPayload = Record> = { - interfaceName: string; - methodGuards: Omit & Partial<{ [K in Extract]: never; }>; - symbolMethodGuards?: CopyMap, T[Extract]> | undefined; - defaultGuards?: DefaultGuardType; - sloppy?: boolean | undefined; -}; -export type InterfaceGuard = Record> = CopyTagged<'guard:interfaceGuard', InterfaceGuardPayload>; -/** - * A method name and parameter/return signature like: - * ```js - * foo(a, b, c = d, ...e) => f - * ``` - * should be guarded by something like: - * ```js - * { - * ...otherMethodGuards, - * foo: M.call(AShape, BShape).optional(CShape).rest(EShape).returns(FShape), - * } - * ``` - * /** - */ -export type MethodGuardMaker = MethodGuardOptional & MethodGuardRestReturns; -export type MethodGuardReturns = { - /** - * Arguments have been specified, now finish by creating a `MethodGuard`. - * If the return guard is not `M.raw()`, the return value is automatically - * hardened and must be Passable. - */ - returns: (returnGuard?: SyncValueGuard) => MethodGuard; -}; -export type MethodGuardRest = { - /** - * If the rest argument guard is not `M.raw()`, all rest arguments are - * automatically hardened and must be Passable. - */ - rest: (restArgGuard: SyncValueGuard) => MethodGuardReturns; -}; -/** - * Mandatory and optional arguments have been specified, now specify `rest`, or - * finish with `returns`. - */ -export type MethodGuardRestReturns = MethodGuardRest & MethodGuardReturns; -export type MethodGuardOptional = { - /** - * Optional arguments not guarded with `M.raw()` are automatically hardened and - * must be Passable. - */ - optional: (...optArgGuards: ArgGuard[]) => MethodGuardRestReturns; -}; -export type MethodGuardPayload = { - callKind: 'sync' | 'async'; - argGuards: ArgGuard[]; - optionalArgGuards?: ArgGuard[]; - restArgGuard?: SyncValueGuard; - returnGuard: SyncValueGuard; -}; -export type MethodGuard = CopyTagged<'guard:methodGuard', MethodGuardPayload>; -export type AwaitArgGuardPayload = { - argGuard: Pattern; -}; -export type AwaitArgGuard = CopyTagged<'guard:awaitArgGuard', AwaitArgGuardPayload>; -export type RawGuardPayload = {}; -export type RawGuard = CopyTagged<'guard:rawGuard', RawGuardPayload>; -export type SyncValueGuard = RawGuard | Pattern; -export type ArgGuard = AwaitArgGuard | RawGuard | Pattern; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/types.d.ts.map b/packages/patterns/src/types.d.ts.map deleted file mode 100644 index 893353c307..0000000000 --- a/packages/patterns/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"uBAIc,OAAO,kBAAkB,EAAE,QAAQ;wBACnC,OAAO,kBAAkB,EAAE,SAAS;qFAIrC,OAAO,kBAAkB,EAAE,UAAU,CAAC,GAAG,EAAC,OAAO,CAAC;kDAIlD,OAAO,kBAAkB,EAAE,UAAU,CAAC,CAAC,CAAC;iDAIxC,OAAO,kBAAkB,EAAE,SAAS,CAAC,CAAC,CAAC;sBAEtC,OAAO,kBAAkB,EAAE,OAAO;0BAClC,OAAO,eAAe,EAAE,WAAW;wBACnC,OAAO,eAAe,EAAE,SAAS;;;;;;;;;;;;;;;;;;;;;;;;kBAGlC,QAAQ;qCA2BV,QAAQ,kBACR,UAAU;+BAMV,GAAG,KACD,MAAM;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;sBAIN,QAAQ;;;;;+CAkDR,WAAW,SAAS,EAAE,CAAC,EAAE,CAAC;;;;;;+CAQ1B,WAAW,SAAS,EAAE,CAAC,CAAC,EAAE,MAAM,CAAC,EAAE,CAAC;;;;;;wEAUpC,WAAW,SAAS,EAAE;IAAE,IAAI,EAAE,CAAC,EAAE,CAAC;IAAC,MAAM,EAAE,CAAC,EAAE,CAAA;CAAE,CAAC;;;;;4BAQjD,OAAO,GAAG,OAAO,GAAG,OAAO;;;;;sBAQ3B,WAAW,SAAS,MAAM,EAAE,EAAE,QAAQ,CAAC;;;;;;;;;;;;;;;0BAOvC,WAAW;;gBAiBV,WAAW;oBACX,WAAW;;;gBAKX,WAAW;oBACX,WAAW;;;;;;4BAIZ,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,SAAM;;;;;;;;;;;;;;;;;;;gCAwBlB,GAAG,SACH,GAAG,KACD,aAAa;4CAKf,QAAQ,SACR,OAAO,KACL,OAAO;;wBAKN,MAAM;uBACN,MAAM;2BACN,MAAM;wBACN,MAAM;6BACN,MAAM;sBACN,MAAM;yBACN,MAAM;+BACN,MAAM;wBACN,MAAM;;qBAIP,QAAQ,SAAS,CAAC;;;;;SAMjB,MAAM,OAAO;;;;uBAGC,OAAO,EAAE,KAAK,OAAO;;;;;sBAGrB,OAAO,EAAE,KAAK,OAAO;;;;mBAIzB,OAAO,KAAK,OAAO;;;;;YAG7B,MAAM,OAAO;;;;;;SAIb,MAAM,OAAO;;;;;;aAKb,MAAM,OAAO;;;;;;;;;;iBAKN,SAAS,GAAG,MAAM,KAAK,OAAO;;;;;;;uBAS1B,OAAO,gBAAgB,OAAO,KAAK,OAAO;;;;aAMrD,MAAM,OAAO;;;;;YAGb,MAAM,OAAO;;;;sBAIH,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;sBAGlB,MAAM,KAAK,OAAO;;;;;sBAGlB,MAAM,KAAK,OAAO;;;;sBAIlB,MAAM,KAAK,OAAO;;;;qBAGlB,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;mBAGlB,MAAM,KAAK,OAAO;;;;;;wBAGnB,MAAM,KAAK,OAAO;;;;;;WAK3B,MAAM,OAAO;;;;;;aAKb,MAAM,OAAO;;;;;;;;;;eAKb,MAAM,OAAO;;;;UASb,MAAM,IAAI;;;;uBAGK,GAAG,KAAK,OAAO;;;;;wBAGf,GAAG,KAAK,OAAO;;;;cAIxB,GAAG,KAAK,OAAO;;;;eAGf,GAAG,KAAK,OAAO;;;;;wBAGN,GAAG,KAAK,OAAO;;;;;uBAIf,GAAG,KAAK,OAAO;;;;;wBAInB,OAAO,WAAW,MAAM,KAAK,OAAO;;;;;;yBAIpC,OAAO,cACL,OAAO,WACV,MAAM,KACtB,OAAO;;;;;sBAKU,OAAO,WAAW,MAAM,KAAK,OAAO;;;;;;;;sBAIpC,OAAO,cACL,OAAO,WACV,MAAM,KACtB,OAAO;;;;;;sBAOU,OAAO,cACL,OAAO,WACV,MAAM,KACtB,OAAO;;;;;;;;;;;;;2BAKU,OAAO,EAAE,aACR,OAAO,EAAE,SACb,OAAO,KACrB,OAAO;;;;;;;;;;;;;;;4BAYU,WAAW,OAAO,CAAC,aAClB,WAAW,OAAO,CAAC,SACvB,OAAO,KACrB,OAAO;;;;;;sBAcU,eAAa,GAAG,cAAY,SAC/B,OAAO,KACrB,OAAO;;;;;;;;;;;;wBAKU,eAAa,GAAG,cAAY,SAC/B,OAAO,KACrB,OAAO;;;;;;;;;;;;oBAWS,OAAO,KAAK,OAAO;;;;mBAWnB,OAAO,KAAK,OAAO;;+BAK9B,SAAS,GAAG,UAAU,GAAG,KAAK;mGAKvB,MAAM,4BAEZ;IAAC,aAAa,CAAC,EAAE,SAAS,CAAC;IAAC,MAAM,CAAC,EAAE,KAAK,CAAA;CAAE;uDAKtC,MAAM,gBACP,GAAG,WACR;IAAC,aAAa,CAAC,EAAE,UAAU,GAAG,KAAK,CAAC;IAAC,MAAM,CAAC,EAAE,IAAI,CAAA;CAAE,KAAK,eAAe,GAAG,CAAC;oGAKtE,MAAM,6BAEX;IAAC,aAAa,CAAC,EAAE,gBAAgB,CAAC;IAAC,MAAM,CAAC,EAAE,OAAO,CAAA;CAAC;iCAGrD,wBAAwB,GAAG,wBAAwB,GAAG,yBAAyB;;;;;eAK/E,kBAAkB;;;;;2BAGD,cAAc,EAAE,KAAK,gBAAgB;;;;;6BAIvC,QAAQ,EAAE,KAAK,gBAAgB;;;;;;;;;;;;;;;;;wBAIjC,OAAO,KAAK,aAAa;;;;;;SAgBtC,MAAM,QAAQ;;+BAOf,eAAe,GAAG,WAAW;+BAGlB,GAAG,EAAE,KAAK,GAAG;;mBAKjB,MAAM;;;oBAKL,gBAAgB;;;4GAOxB,WAAW,sBAAsB,EAAE,sBAAsB,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;+BAI5D,mBAAmB,GAAG,sBAAsB;;;;;;;4BAc5B,cAAc,KAAK,WAAW;;;;;;;yBAO9B,cAAc,KAAK,kBAAkB;;;;;;qCAKrD,eAAe,GAAG,kBAAkB;;;;;;gCAMjB,QAAQ,EAAE,KAAK,sBAAsB;;iCAMxD;IACZ,QAAY,EAAE,MAAM,GAAG,OAAO,CAAC;IAC/B,SAAa,EAAE,QAAQ,EAAE,CAAC;IAC1B,iBAAqB,CAAC,EAAE,QAAQ,EAAE,CAAC;IACnC,YAAgB,CAAC,EAAE,cAAc,CAAC;IAClC,WAAe,EAAE,cAAc,CAAC;CAC7B;0BAIS,WAAW,mBAAmB,EAAE,kBAAkB,CAAC;mCAInD;IACZ,QAAY,EAAE,OAAO,CAAA;CAClB;4BAIS,WAAW,qBAAqB,EAAE,oBAAoB,CAAC;8BAIvD,EAAE;uBAIF,WAAW,gBAAgB,EAAE,eAAe,CAAC;6BAG5C,QAAQ,GAAG,OAAO;uBAElB,aAAa,GAAG,QAAQ,GAAG,OAAO"} \ No newline at end of file diff --git a/packages/promise-kit/index.d.ts b/packages/promise-kit/index.d.ts deleted file mode 100644 index afe881725d..0000000000 --- a/packages/promise-kit/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * makePromiseKit() builds a Promise object, and returns a record - * containing the promise itself, as well as separate facets for resolving - * and rejecting it. - * - * @template T - * @returns {import('./src/types.js').PromiseKit} - */ -export function makePromiseKit(): import("./src/types.js").PromiseKit; -/** - * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved - * or rejected. - * - * Unlike `Promise.race` it cleans up after itself so a non-resolved value doesn't hold onto - * the result promise. - * - * @template T - * @param {Iterable} values An iterable of Promises. - * @returns {Promise>} A new Promise. - */ -export function racePromises(values: Iterable): Promise>; -export * from "./src/is-promise.js"; -export * from "./src/types.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/index.d.ts.map b/packages/promise-kit/index.d.ts.map deleted file mode 100644 index db154aa294..0000000000 --- a/packages/promise-kit/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAcA;;;;;;;GAOG;AACH,4EAMC;AAOD;;;;;;;;;;GAUG;AACH,0EAEC"} \ No newline at end of file diff --git a/packages/promise-kit/shim.d.ts b/packages/promise-kit/shim.d.ts deleted file mode 100644 index e30ed92ed1..0000000000 --- a/packages/promise-kit/shim.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# sourceMappingURL=shim.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/shim.d.ts.map b/packages/promise-kit/shim.d.ts.map deleted file mode 100644 index 52ccee7578..0000000000 --- a/packages/promise-kit/shim.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"shim.d.ts","sourceRoot":"","sources":["shim.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/promise-kit/src/is-promise.d.ts b/packages/promise-kit/src/is-promise.d.ts deleted file mode 100644 index 6ddc2555d8..0000000000 --- a/packages/promise-kit/src/is-promise.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Determine if the argument is a Promise. - * - * @param {unknown} maybePromise The value to examine - * @returns {maybePromise is Promise} Whether it is a promise - */ -export function isPromise(maybePromise: unknown): maybePromise is Promise; -//# sourceMappingURL=is-promise.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/is-promise.d.ts.map b/packages/promise-kit/src/is-promise.d.ts.map deleted file mode 100644 index cd7fbef4b2..0000000000 --- a/packages/promise-kit/src/is-promise.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"is-promise.d.ts","sourceRoot":"","sources":["is-promise.js"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,wCAHW,OAAO,gCAKjB"} \ No newline at end of file diff --git a/packages/promise-kit/src/memo-race.d.ts b/packages/promise-kit/src/memo-race.d.ts deleted file mode 100644 index 1c1567a842..0000000000 --- a/packages/promise-kit/src/memo-race.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -export { race as memoRace }; -export type Deferred = { - resolve: (value?: import("./types.js").ERef) => void; - reject: (err?: any) => void; -}; -export type PromiseMemoRecord = never | { - settled: false; - deferreds: Set; -} | { - settled: true; - deferreds?: undefined; -}; -/** - * Creates a Promise that is resolved or rejected when any of the provided Promises are resolved - * or rejected. - * - * Unlike `Promise.race` it cleans up after itself so a non-resolved value doesn't hold onto - * the result promise. - * - * @template T - * @template {PromiseConstructor} [P=PromiseConstructor] - * @this {P} - * @param {Iterable} values An iterable of Promises. - * @returns {Promise>} A new Promise. - */ -declare function race(this: P, values: Iterable): Promise>; -//# sourceMappingURL=memo-race.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/memo-race.d.ts.map b/packages/promise-kit/src/memo-race.d.ts.map deleted file mode 100644 index 0395ebbfe1..0000000000 --- a/packages/promise-kit/src/memo-race.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"memo-race.d.ts","sourceRoot":"","sources":["memo-race.js"],"names":[],"mappings":";;sBAmCuB,OAAO,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,KAAM,IAAI;mBACxC,GAAG,KAAM,IAAI;;gCAIpB,KAAK,GACb;IAAC,OAAO,EAAE,KAAK,CAAC;IAAC,SAAS,EAAE,IAAI,QAAQ,CAAC,CAAA;CAAC,GAC1C;IAAC,OAAO,EAAE,IAAI,CAAC;IAAC,SAAS,CAAC,EAAE,SAAS,CAAA;CAAC;AAgE1C;;;;;;;;;;;;GAYG;AACH,+HA8BC"} \ No newline at end of file diff --git a/packages/promise-kit/src/promise-executor-kit.d.ts b/packages/promise-kit/src/promise-executor-kit.d.ts deleted file mode 100644 index 108e97d5fe..0000000000 --- a/packages/promise-kit/src/promise-executor-kit.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export function makeReleasingExecutorKit(): Pick, "resolve" | "reject"> & { - executor: PromiseExecutor; -}; -/** - * The promise executor - */ -export type PromiseExecutor = (resolve: (value: import('./types.js').ERef) => void, reject: (reason: any) => void) => any; -//# sourceMappingURL=promise-executor-kit.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/promise-executor-kit.d.ts.map b/packages/promise-kit/src/promise-executor-kit.d.ts.map deleted file mode 100644 index 3eaa171996..0000000000 --- a/packages/promise-kit/src/promise-executor-kit.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"promise-executor-kit.d.ts","sourceRoot":"","sources":["promise-executor-kit.js"],"names":[],"mappings":"AAiBO;;EAmCN;;;;mDA/CkB,OAAO,YAAY,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,IAAI,mBACpC,GAAG,KAAK,IAAI"} \ No newline at end of file diff --git a/packages/promise-kit/src/types.d.ts b/packages/promise-kit/src/types.d.ts deleted file mode 100644 index 5ec43e22e5..0000000000 --- a/packages/promise-kit/src/types.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * A reified Promise - */ -export type PromiseKit = { - resolve: (value: ERef) => void; - reject: (reason: any) => void; - promise: Promise; -}; -/** - * PromiseRecord is deprecated in favor of PromiseKit. - */ -export type PromiseRecord = PromiseKit; -/** - * A reference of some kind for to an object of type T. It may be a direct - * reference to a local T. It may be a local presence for a remote T. It may - * be a promise for a local or remote T. Or it may even be a thenable - * (a promise-like non-promise with a "then" method) for a T. - */ -export type ERef = T | PromiseLike; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/promise-kit/src/types.d.ts.map b/packages/promise-kit/src/types.d.ts.map deleted file mode 100644 index aeb6ffeed3..0000000000 --- a/packages/promise-kit/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;qBAGsB,KAAK,CAAC,CAAC,KAAK,IAAI;qBACf,GAAG,KAAK,IAAI;aACrB,QAAQ,CAAC,CAAC;;;;;+BAOX,WAAW,CAAC,CAAC;;;;;;;sBAKb,CAAC,GAAG,YAAY,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/ses-ava/exported.d.ts b/packages/ses-ava/exported.d.ts deleted file mode 100644 index bfd73b6bbb..0000000000 --- a/packages/ses-ava/exported.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=exported.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/exported.d.ts.map b/packages/ses-ava/exported.d.ts.map deleted file mode 100644 index 7ed62d8ff5..0000000000 --- a/packages/ses-ava/exported.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"exported.d.ts","sourceRoot":"","sources":["exported.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/ses-ava/index.d.ts b/packages/ses-ava/index.d.ts deleted file mode 100644 index 1a75211b5d..0000000000 --- a/packages/ses-ava/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { wrapTest } from "./src/ses-ava-test.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/index.d.ts.map b/packages/ses-ava/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/ses-ava/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/ses-ava/prepare-endo.d.ts b/packages/ses-ava/prepare-endo.d.ts deleted file mode 100644 index f5c6042c49..0000000000 --- a/packages/ses-ava/prepare-endo.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { test as default }; -/** @type {typeof rawTest} */ -declare const test: typeof rawTest; -import rawTest from 'ava'; -//# sourceMappingURL=prepare-endo.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/prepare-endo.d.ts.map b/packages/ses-ava/prepare-endo.d.ts.map deleted file mode 100644 index e9cb3faa88..0000000000 --- a/packages/ses-ava/prepare-endo.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"prepare-endo.d.ts","sourceRoot":"","sources":["prepare-endo.js"],"names":[],"mappings":";AAsBA,6BAA6B;AAC7B,oBADW,cAAc,CACM;oBAjBX,KAAK"} \ No newline at end of file diff --git a/packages/ses-ava/src/ses-ava-test.d.ts b/packages/ses-ava/src/ses-ava-test.d.ts deleted file mode 100644 index 56972e508a..0000000000 --- a/packages/ses-ava/src/ses-ava-test.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * TODO For some reason, the following declaration (with "at-" as "@") - * doesn't work well for either TS or typedoc. For TS it seems to type - * `VirtualConsole` as `any` in a vscode hover. For typedoc it results in - * errors. - * - * at-typedef {import('ses/console-tools.js').VirtualConsole} VirtualConsole - * - * so instead, for now, we just declare it as `any`. TODO is to repair this. - */ -export type VirtualConsole = any; -/** - * The ava `test` function takes a callback argument of the form - * `t => {...}` or `async t => {...}`. - * If the outcome of this function indicates an error, either - * by throwing or by eventually rejecting a returned promise, ava does its - * own console-like display of this error and its stacktrace. - * However, it does not use the SES `console` and so misses out on features - * such as unredaction. - * - * To use this package, a test file replaces the line - * ```js - * import test from 'ava'; - * ``` - * with - * ```js - * import { wrapTest } from '@endo/ses-ava'; - * import rawTest from 'ava'; - * - * const test = wrapTest(rawTest); - * ``` - * Then the calls to `test` in the rest of the test file will act like they - * used to, except that, if a test fails because the test function (the - * callback argument to `test`) throws or returns a promise - * that eventually rejects, the error is first sent to the logger - * (which defaults to using the SES-aware `console.error`) - * before propagating into `rawTest`. - * - * @template {import('ava').TestFn} [T=import('ava').TestFn] ava `test` - * @param {T} avaTest - * @returns {T} - */ -export function wrapTest = import("ava").TestFn>(avaTest: T): T; -//# sourceMappingURL=ses-ava-test.d.ts.map \ No newline at end of file diff --git a/packages/ses-ava/src/ses-ava-test.d.ts.map b/packages/ses-ava/src/ses-ava-test.d.ts.map deleted file mode 100644 index 545e1cfa99..0000000000 --- a/packages/ses-ava/src/ses-ava-test.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ses-ava-test.d.ts","sourceRoot":"","sources":["ses-ava-test.js"],"names":[],"mappings":";;;;;;;;;;6BA4Ca,GAAG;AAiNhB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,iHAYC"} \ No newline at end of file diff --git a/packages/skel/index.d.ts b/packages/skel/index.d.ts deleted file mode 100644 index f36479a733..0000000000 --- a/packages/skel/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/skel/index.d.ts.map b/packages/skel/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/skel/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/static-module-record/index.d.ts b/packages/static-module-record/index.d.ts deleted file mode 100644 index 5122a0d354..0000000000 --- a/packages/static-module-record/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { StaticModuleRecord } from "./src/static-module-record.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/index.d.ts.map b/packages/static-module-record/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/static-module-record/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/static-module-record/src/babelPlugin.d.ts b/packages/static-module-record/src/babelPlugin.d.ts deleted file mode 100644 index cb08639d90..0000000000 --- a/packages/static-module-record/src/babelPlugin.d.ts +++ /dev/null @@ -1,56 +0,0 @@ -export default makeModulePlugins; -declare function makeModulePlugins(options: any): { - analyzePlugin: ({ types: t }: { - types: any; - }) => { - visitor: { - ImportDeclaration(path: any): void; - ExportDefaultDeclaration(path: any): void; - ClassDeclaration(path: any): void; - FunctionDeclaration(path: any): void; - VariableDeclaration(path: any): void; - ExportAllDeclaration(path: any): void; - ExportNamedDeclaration(path: any): void; - Identifier(path: any): void; - CallExpression(path: any): void; - }; - } | { - visitor: { - MetaProperty(path: any): void; - ImportDeclaration(path: any): void; - ExportDefaultDeclaration(path: any): void; - ClassDeclaration(path: any): void; - FunctionDeclaration(path: any): void; - VariableDeclaration(path: any): void; - ExportAllDeclaration(path: any): void; - ExportNamedDeclaration(path: any): void; - }; - }; - transformPlugin: ({ types: t }: { - types: any; - }) => { - visitor: { - ImportDeclaration(path: any): void; - ExportDefaultDeclaration(path: any): void; - ClassDeclaration(path: any): void; - FunctionDeclaration(path: any): void; - VariableDeclaration(path: any): void; - ExportAllDeclaration(path: any): void; - ExportNamedDeclaration(path: any): void; - Identifier(path: any): void; - CallExpression(path: any): void; - }; - } | { - visitor: { - MetaProperty(path: any): void; - ImportDeclaration(path: any): void; - ExportDefaultDeclaration(path: any): void; - ClassDeclaration(path: any): void; - FunctionDeclaration(path: any): void; - VariableDeclaration(path: any): void; - ExportAllDeclaration(path: any): void; - ExportNamedDeclaration(path: any): void; - }; - }; -}; -//# sourceMappingURL=babelPlugin.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/babelPlugin.d.ts.map b/packages/static-module-record/src/babelPlugin.d.ts.map deleted file mode 100644 index 473ff492ee..0000000000 --- a/packages/static-module-record/src/babelPlugin.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"babelPlugin.d.ts","sourceRoot":"","sources":["babelPlugin.js"],"names":[],"mappings":";AAwCA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA6kBC"} \ No newline at end of file diff --git a/packages/static-module-record/src/hidden.d.ts b/packages/static-module-record/src/hidden.d.ts deleted file mode 100644 index c5ea9835a6..0000000000 --- a/packages/static-module-record/src/hidden.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export const HIDDEN_PREFIX: "$h‍_"; -export const HIDDEN_CONST_VAR_PREFIX: "$c‍_"; -export const HIDDEN_A: "$h‍_a"; -export const HIDDEN_IMPORT: "$h‍_import"; -export const HIDDEN_IMPORT_SELF: "$h‍_importSelf"; -export const HIDDEN_IMPORTS: "$h‍_imports"; -export const HIDDEN_ONCE: "$h‍_once"; -export const HIDDEN_META: "$h‍____meta"; -export const HIDDEN_LIVE: "$h‍_live"; -export const HIDDEN_IDENTIFIERS: string[]; -//# sourceMappingURL=hidden.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/hidden.d.ts.map b/packages/static-module-record/src/hidden.d.ts.map deleted file mode 100644 index 9b5b8b4880..0000000000 --- a/packages/static-module-record/src/hidden.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hidden.d.ts","sourceRoot":"","sources":["hidden.js"],"names":[],"mappings":"AAAA,mCAAyC;AACzC,6CAAmD;AACnD,+BAA4C;AAC5C,yCAAsD;AACtD,kDAA+D;AAC/D,2CAAwD;AACxD,qCAAkD;AAGlD,wCAAqD;AACrD,qCAAkD;AAClD,0CAQE"} \ No newline at end of file diff --git a/packages/static-module-record/src/static-module-record.d.ts b/packages/static-module-record/src/static-module-record.d.ts deleted file mode 100644 index 232d5b8fae..0000000000 --- a/packages/static-module-record/src/static-module-record.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -/** - * @typedef {object} SourceMapHookDetails - * @property {string} compartment - * @property {string} module - * @property {string} location - * @property {string} sha512 - */ -/** - * @callback SourceMapHook - * @param {string} sourceMap - * @param {SourceMapHookDetails} details - */ -/** - * @typedef {object} Options - * @property {string} [sourceUrl] - * @property {string} [sourceMap] - * @property {string} [sourceMapUrl] - * @property {SourceMapHook} [sourceMapHook] - */ -/** - * StaticModuleRecord captures the effort of parsing and analyzing module text - * so a cache of StaticModuleRecords may be shared by multiple Compartments. - * - * @class - * @param {string} source - * @param {string | Options} [opts] - */ -export function StaticModuleRecord(source: string, opts?: string | Options | undefined): void; -export class StaticModuleRecord { - /** - * @typedef {object} SourceMapHookDetails - * @property {string} compartment - * @property {string} module - * @property {string} location - * @property {string} sha512 - */ - /** - * @callback SourceMapHook - * @param {string} sourceMap - * @param {SourceMapHookDetails} details - */ - /** - * @typedef {object} Options - * @property {string} [sourceUrl] - * @property {string} [sourceMap] - * @property {string} [sourceMapUrl] - * @property {SourceMapHook} [sourceMapHook] - */ - /** - * StaticModuleRecord captures the effort of parsing and analyzing module text - * so a cache of StaticModuleRecords may be shared by multiple Compartments. - * - * @class - * @param {string} source - * @param {string | Options} [opts] - */ - constructor(source: string, opts?: string | Options | undefined); - imports: string[]; - exports: any[]; - reexports: never[]; - __syncModuleProgram__: string; - __liveExportMap__: any; - __reexportMap__: any; - __fixedExportMap__: any; - __needsImportMeta__: boolean; -} -export type SourceMapHookDetails = { - compartment: string; - module: string; - location: string; - sha512: string; -}; -export type SourceMapHook = (sourceMap: string, details: SourceMapHookDetails) => any; -export type Options = { - sourceUrl?: string | undefined; - sourceMap?: string | undefined; - sourceMapUrl?: string | undefined; - sourceMapHook?: SourceMapHook | undefined; -}; -//# sourceMappingURL=static-module-record.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/static-module-record.d.ts.map b/packages/static-module-record/src/static-module-record.d.ts.map deleted file mode 100644 index 333ece0101..0000000000 --- a/packages/static-module-record/src/static-module-record.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"static-module-record.d.ts","sourceRoot":"","sources":["static-module-record.js"],"names":[],"mappings":"AAmCA;;;;;;GAMG;AAEH;;;;GAIG;AAEH;;;;;;GAMG;AAKH;;;;;;;GAOG;AACH,2CAHW,MAAM,6CAoChB;;IAlED;;;;;;OAMG;IAEH;;;;OAIG;IAEH;;;;;;OAMG;IAKH;;;;;;;OAOG;IACH,oBAHW,MAAM,uCAoChB;IAfC,kBAAyC;IACzC,eAMC;IACD,mBAA+C;IAC/C,8BAA0C;IAC1C,uBAAsC;IACtC,qBAAkC;IAClC,wBAAwC;IACxC,6BAA0C;;;iBA9D9B,MAAM;YACN,MAAM;cACN,MAAM;YACN,MAAM;;wCAKT,MAAM,WACN,oBAAoB"} \ No newline at end of file diff --git a/packages/static-module-record/src/transform-analyze.d.ts b/packages/static-module-record/src/transform-analyze.d.ts deleted file mode 100644 index 1e1c13ef7f..0000000000 --- a/packages/static-module-record/src/transform-analyze.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export function makeModuleAnalyzer(babel: any): (moduleSource: string, { sourceUrl, sourceMapUrl, sourceMap, sourceMapHook }?: import('./static-module-record.js').Options) => Readonly<{ - exportAlls: readonly never[]; - imports: any; - liveExportMap: any; - fixedExportMap: any; - reexportMap: any; - needsImportMeta: boolean; - functorSource: string; -}>; -export function makeModuleTransformer(babel: any, importer: any): { - rewrite(ss: any): any; -}; -//# sourceMappingURL=transform-analyze.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/transform-analyze.d.ts.map b/packages/static-module-record/src/transform-analyze.d.ts.map deleted file mode 100644 index 666de4a1b8..0000000000 --- a/packages/static-module-record/src/transform-analyze.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transform-analyze.d.ts","sourceRoot":"","sources":["transform-analyze.js"],"names":[],"mappings":"AA6HO,+DAlHM,MAAM,0DACN,OAAO,2BAA2B,EAAE,OAAO;;;;;;;;GAoHvD;AAEM;;EA6DN"} \ No newline at end of file diff --git a/packages/static-module-record/src/transformSource.d.ts b/packages/static-module-record/src/transformSource.d.ts deleted file mode 100644 index f70d9c6b5b..0000000000 --- a/packages/static-module-record/src/transformSource.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeTransformSource(makeModulePlugins: any, babel?: null): (source: any, sourceOptions?: {}) => any; -//# sourceMappingURL=transformSource.d.ts.map \ No newline at end of file diff --git a/packages/static-module-record/src/transformSource.d.ts.map b/packages/static-module-record/src/transformSource.d.ts.map deleted file mode 100644 index 12492db6f0..0000000000 --- a/packages/static-module-record/src/transformSource.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"transformSource.d.ts","sourceRoot":"","sources":["transformSource.js"],"names":[],"mappings":"AAeO,oHA0CN"} \ No newline at end of file diff --git a/packages/stream-node/index.d.ts b/packages/stream-node/index.d.ts deleted file mode 100644 index 72b58ed5c7..0000000000 --- a/packages/stream-node/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { makeNodeReader } from "./reader.js"; -export { makeNodeWriter } from "./writer.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/stream-node/index.d.ts.map b/packages/stream-node/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/stream-node/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/stream-node/reader.d.ts b/packages/stream-node/reader.d.ts deleted file mode 100644 index 89518e4b9a..0000000000 --- a/packages/stream-node/reader.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeNodeReader(input: import('stream').Readable): import('@endo/stream').Reader; -//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/stream-node/reader.d.ts.map b/packages/stream-node/reader.d.ts.map deleted file mode 100644 index fefbc3e688..0000000000 --- a/packages/stream-node/reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AAgBO,sCAHI,OAAO,QAAQ,EAAE,QAAQ,GACvB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,CAuCrD"} \ No newline at end of file diff --git a/packages/stream-node/writer.d.ts b/packages/stream-node/writer.d.ts deleted file mode 100644 index d3935b0c09..0000000000 --- a/packages/stream-node/writer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function makeNodeWriter(writer: import('stream').Writable): import('@endo/stream').Writer; -//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/stream-node/writer.d.ts.map b/packages/stream-node/writer.d.ts.map deleted file mode 100644 index 21c6b0f704..0000000000 --- a/packages/stream-node/writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAoBO,uCAHI,OAAO,QAAQ,EAAE,QAAQ,GACvB,OAAO,cAAc,EAAE,MAAM,CAAC,UAAU,CAAC,CA0ErD"} \ No newline at end of file diff --git a/packages/stream/index.d.ts b/packages/stream/index.d.ts deleted file mode 100644 index 2243ec4ed6..0000000000 --- a/packages/stream/index.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export function makeQueue(): import("./types.js").AsyncQueue; -export function makeStream(acks: import("./types.js").AsyncSpring>, data: import("./types.js").AsyncSink>): { - /** - * @param {TWrite} value - */ - next(value: TWrite): Promise>; - /** - * @param {TWriteReturn} value - */ - return(value: TWriteReturn): Promise>; - /** - * @param {Error} error - */ - throw(error: Error): Promise>; - [Symbol.asyncIterator](): any; -}; -export function makePipe(): { - /** - * @param {TWrite} value - */ - next(value: any): Promise>; - /** - * @param {TWriteReturn} value - */ - return(value: any): Promise>; - /** - * @param {Error} error - */ - throw(error: Error): Promise>; - [Symbol.asyncIterator](): any; -}[]; -export function pump(writer: import("./types.js").Stream, reader: import("./types.js").Stream, primer: TWrite): Promise; -export function prime(generator: AsyncGenerator, primer: TWrite): { - /** @param {TWrite} value */ - next(value: TWrite): Promise>; - /** @param {TReturn} value */ - return(value: TReturn): Promise>; - /** @param {Error} error */ - throw(error: Error): Promise>; -}; -export function mapReader(reader: import("./types.js").Reader, transform: (value: TIn) => TOut): import("./types.js").Reader; -export function mapWriter(writer: import("./types.js").Writer, transform: (value: TIn) => TOut): import("./types.js").Writer; -export type PromiseKit = { - resolve(value?: T | Promise): void; - reject(error: Error): void; - promise: Promise; -}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/stream/index.d.ts.map b/packages/stream/index.d.ts.map deleted file mode 100644 index 2aa9c4d2c2..0000000000 --- a/packages/stream/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAkCO,sEAcN;AAWM;IAEH;;OAEG;;IAOH;;OAEG;;IAKH;;OAEG;iBADQ,KAAK;;EAWnB;AAMM;IAlCH;;OAEG;;IAOH;;OAEG;;IAKH;;OAEG;iBADQ,KAAK;;IAuBnB;AAYM,iQAmCN;AAUM;IAMH,4BAA4B;;IAU5B,6BAA6B;;IAU7B,2BAA2B;iBAAf,KAAK;EAYpB;AAUM,yKASN;AAUM,yKAyBN;;oBAvOoB,CAAC,GAAG,QAAQ,CAAC,CAAC,GAAG,IAAI;kBACvB,KAAK,GAAG,IAAI;aACjB,QAAQ,CAAC,CAAC"} \ No newline at end of file diff --git a/packages/syrup/decode.d.ts b/packages/syrup/decode.d.ts deleted file mode 100644 index 0be16ee058..0000000000 --- a/packages/syrup/decode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { decodeSyrup } from "./src/decode.js"; -//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/decode.d.ts.map b/packages/syrup/decode.d.ts.map deleted file mode 100644 index 857a2f9a25..0000000000 --- a/packages/syrup/decode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/syrup/encode.d.ts b/packages/syrup/encode.d.ts deleted file mode 100644 index b2081d2e96..0000000000 --- a/packages/syrup/encode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { encodeSyrup } from "./src/encode.js"; -//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/encode.d.ts.map b/packages/syrup/encode.d.ts.map deleted file mode 100644 index 6d6d25d222..0000000000 --- a/packages/syrup/encode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/syrup/index.d.ts b/packages/syrup/index.d.ts deleted file mode 100644 index df269f0b37..0000000000 --- a/packages/syrup/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export { encodeSyrup } from "./src/encode.js"; -export { decodeSyrup } from "./src/decode.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/syrup/index.d.ts.map b/packages/syrup/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/syrup/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/syrup/src/compare.d.ts b/packages/syrup/src/compare.d.ts deleted file mode 100644 index 03e5483461..0000000000 --- a/packages/syrup/src/compare.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @param {Uint8Array} left - * @param {Uint8Array} right - * @param {number} leftStart - * @param {number} leftEnd - * @param {number} rightStart - * @param {number} rightEnd - */ -export function compareByteArrays(left: Uint8Array, right: Uint8Array, leftStart: number, leftEnd: number, rightStart: number, rightEnd: number): number; -//# sourceMappingURL=compare.d.ts.map \ No newline at end of file diff --git a/packages/syrup/src/compare.d.ts.map b/packages/syrup/src/compare.d.ts.map deleted file mode 100644 index 7530c3c31e..0000000000 --- a/packages/syrup/src/compare.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compare.d.ts","sourceRoot":"","sources":["compare.js"],"names":[],"mappings":"AAEA;;;;;;;GAOG;AACH,wCAPW,UAAU,SACV,UAAU,aACV,MAAM,WACN,MAAM,cACN,MAAM,YACN,MAAM,UAoEhB"} \ No newline at end of file diff --git a/packages/syrup/src/decode.d.ts b/packages/syrup/src/decode.d.ts deleted file mode 100644 index dc578b37cd..0000000000 --- a/packages/syrup/src/decode.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @param {Uint8Array} bytes - * @param {object} options - * @param {string} [options.name] - * @param {number} [options.start] - * @param {number} [options.end] - */ -export function decodeSyrup(bytes: Uint8Array, options?: { - name?: string | undefined; - start?: number | undefined; - end?: number | undefined; -}): any; -//# sourceMappingURL=decode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/src/decode.d.ts.map b/packages/syrup/src/decode.d.ts.map deleted file mode 100644 index 2f2cd7c0ad..0000000000 --- a/packages/syrup/src/decode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"decode.d.ts","sourceRoot":"","sources":["decode.js"],"names":[],"mappings":"AA+VA;;;;;;GAMG;AACH,mCANW,UAAU;IAEO,IAAI;IACJ,KAAK;IACL,GAAG;QAgB9B"} \ No newline at end of file diff --git a/packages/syrup/src/encode.d.ts b/packages/syrup/src/encode.d.ts deleted file mode 100644 index 1ee65a9372..0000000000 --- a/packages/syrup/src/encode.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @param {any} value - * @param {object} [options] - * @param {number} [options.length] A guess at the length. If provided, must be - * greater than zero. - * @returns {Uint8Array} - */ -export function encodeSyrup(value: any, options?: { - length?: number | undefined; -} | undefined): Uint8Array; -export type Buffer = { - bytes: Uint8Array; - data: DataView; - length: number; -}; -//# sourceMappingURL=encode.d.ts.map \ No newline at end of file diff --git a/packages/syrup/src/encode.d.ts.map b/packages/syrup/src/encode.d.ts.map deleted file mode 100644 index 8c45203736..0000000000 --- a/packages/syrup/src/encode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"encode.d.ts","sourceRoot":"","sources":["encode.js"],"names":[],"mappings":"AA0OA;;;;;;GAMG;AACH,mCANW,GAAG;;gBAID,UAAU,CAUtB;;WAnOa,UAAU;UACV,QAAQ;YACR,MAAM"} \ No newline at end of file diff --git a/packages/where/index.d.ts b/packages/where/index.d.ts deleted file mode 100644 index 7f0aefb008..0000000000 --- a/packages/where/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -/** - * Returns the most suitable path for Endo state with this platform and - * environment. - * Endo uses the state directory for saved files including applications, - * durable capabilities, and the user's pet names for them. - * Endo also logs here, per XDG's preference to persist logs even when caches - * are purged. - * - * @type {typeof import('./types.js').whereEndoState} - */ -export const whereEndoState: typeof import('./types.js').whereEndoState; -/** - * Returns the most suitable location for storing state that ideally does not - * persist between restarts or reboots, specifically PID files. - * - * @type {typeof import('./types.js').whereEndoEphemeralState} - */ -export const whereEndoEphemeralState: typeof import('./types.js').whereEndoEphemeralState; -/** - * Returns the most suitable path for the Endo UNIX domain socket or Windows - * named pipe. - * - * @type {typeof import('./types.js').whereEndoSock} - */ -export const whereEndoSock: typeof import('./types.js').whereEndoSock; -/** - * Returns the most suitable path for Endo caches. - * - * @type {typeof import('./types.js').whereEndoCache} - */ -export const whereEndoCache: typeof import('./types.js').whereEndoCache; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/where/index.d.ts.map b/packages/where/index.d.ts.map deleted file mode 100644 index 599ad75140..0000000000 --- a/packages/where/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AA6BA;;;;;;;;;GASG;AACH,6BAFU,cAAc,YAAY,EAAE,cAAc,CAelD;AAEF;;;;;GAKG;AACH,sCAFU,cAAc,YAAY,EAAE,uBAAuB,CAW3D;AAEF;;;;;GAKG;AACH,4BAFU,cAAc,YAAY,EAAE,aAAa,CAqBjD;AAEF;;;;GAIG;AACH,6BAFU,cAAc,YAAY,EAAE,cAAc,CAalD"} \ No newline at end of file diff --git a/packages/zip/index.d.ts b/packages/zip/index.d.ts deleted file mode 100644 index ab1825e2b2..0000000000 --- a/packages/zip/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./src/types.js"; -export { ZipReader, readZip } from "./src/reader.js"; -export { ZipWriter, writeZip } from "./src/writer.js"; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/packages/zip/index.d.ts.map b/packages/zip/index.d.ts.map deleted file mode 100644 index ca7a93a9a2..0000000000 --- a/packages/zip/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/zip/reader.d.ts b/packages/zip/reader.d.ts deleted file mode 100644 index 57b23caa78..0000000000 --- a/packages/zip/reader.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ZipReader } from "./src/reader.js"; -//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/reader.d.ts.map b/packages/zip/reader.d.ts.map deleted file mode 100644 index ffa5648d0c..0000000000 --- a/packages/zip/reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":""} \ No newline at end of file diff --git a/packages/zip/src/buffer-reader.d.ts b/packages/zip/src/buffer-reader.d.ts deleted file mode 100644 index 3a9e130ed0..0000000000 --- a/packages/zip/src/buffer-reader.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -export class BufferReader { - /** - * @param {ArrayBuffer} buffer - */ - constructor(buffer: ArrayBuffer); - /** - * @returns {number} - */ - get length(): number; - /** - * @param {number} index - */ - set index(index: number); - /** - * @returns {number} - */ - get index(): number; - /** - * @param {number} offset - */ - set offset(offset: number); - /** - * @param {number} index - * @returns {boolean} whether the read head can move to the given absolute - * index. - */ - canSeek(index: number): boolean; - /** - * @param {number} index the index to check. - * @throws {Error} an Error if the index is out of bounds. - */ - assertCanSeek(index: number): void; - /** - * @param {number} index - * @returns {number} prior index - */ - seek(index: number): number; - /** - * @param {number} size - * @returns {Uint8Array} - */ - peek(size: number): Uint8Array; - /** - * @param {number} offset - */ - canRead(offset: number): boolean; - /** - * Check that the offset will not go too far. - * - * @param {number} offset the additional offset to check. - * @throws {Error} an Error if the offset is out of bounds. - */ - assertCanRead(offset: number): void; - /** - * Get raw data without conversion, bytes. - * - * @param {number} size the number of bytes to read. - * @returns {Uint8Array} the raw data. - */ - read(size: number): Uint8Array; - /** - * @returns {number} - */ - readUint8(): number; - /** - * @returns {number} - * @param {boolean=} littleEndian - */ - readUint16(littleEndian?: boolean | undefined): number; - /** - * @returns {number} - * @param {boolean=} littleEndian - */ - readUint32(littleEndian?: boolean | undefined): number; - /** - * @param {number} index - * @returns {number} - */ - byteAt(index: number): number; - /** - * @param {number} offset - */ - skip(offset: number): void; - /** - * @param {Uint8Array} expected - * @returns {boolean} - */ - expect(expected: Uint8Array): boolean; - /** - * @param {number} index - * @param {Uint8Array} expected - * @returns {boolean} - */ - matchAt(index: number, expected: Uint8Array): boolean; - /** - * @param {Uint8Array} expected - */ - assert(expected: Uint8Array): void; - /** - * @param {Uint8Array} expected - * @returns {number} - */ - findLast(expected: Uint8Array): number; -} -export type BufferReaderState = { - bytes: Uint8Array; - data: DataView; - length: number; - index: number; - offset: number; -}; -//# sourceMappingURL=buffer-reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/buffer-reader.d.ts.map b/packages/zip/src/buffer-reader.d.ts.map deleted file mode 100644 index 7cff920ea7..0000000000 --- a/packages/zip/src/buffer-reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"buffer-reader.d.ts","sourceRoot":"","sources":["buffer-reader.js"],"names":[],"mappings":"AAoBA;IACE;;OAEG;IACH,oBAFW,WAAW,EAYrB;IAED;;OAEG;IACH,qBAEC;IASD;;OAEG;IACH,yBAEC;IAZD;;OAEG;IACH,oBAEC;IASD;;OAEG;IACH,2BAUC;IAED;;;;OAIG;IACH,eAJW,MAAM,GACJ,OAAO,CAMnB;IAED;;;OAGG;IACH,qBAHW,MAAM,QAUhB;IAED;;;OAGG;IACH,YAHW,MAAM,GACJ,MAAM,CAQlB;IAED;;;OAGG;IACH,WAHW,MAAM,GACJ,UAAU,CAetB;IAED;;OAEG;IACH,gBAFW,MAAM,WAKhB;IAED;;;;;OAKG;IACH,sBAHW,MAAM,QAMhB;IAED;;;;;OAKG;IACH,WAHW,MAAM,GACJ,UAAU,CAQtB;IAED;;OAEG;IACH,aAFa,MAAM,CASlB;IAED;;;OAGG;IACH,0BAFW,OAAO,eADL,MAAM,CAUlB;IAED;;;OAGG;IACH,0BAFW,OAAO,eADL,MAAM,CAUlB;IAED;;;OAGG;IACH,cAHW,MAAM,GACJ,MAAM,CAKlB;IAED;;OAEG;IACH,aAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,iBAHW,UAAU,GACR,OAAO,CASnB;IAED;;;;OAIG;IACH,eAJW,MAAM,YACN,UAAU,GACR,OAAO,CAanB;IAED;;OAEG;IACH,iBAFW,UAAU,QAWpB;IAED;;;OAGG;IACH,mBAHW,UAAU,GACR,MAAM,CASlB;CACF;;WAxQa,UAAU;UACV,QAAQ;YACR,MAAM;WACN,MAAM;YACN,MAAM"} \ No newline at end of file diff --git a/packages/zip/src/buffer-writer.d.ts b/packages/zip/src/buffer-writer.d.ts deleted file mode 100644 index 0556922076..0000000000 --- a/packages/zip/src/buffer-writer.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -export class BufferWriter { - /** - * @param {number=} capacity - */ - constructor(capacity?: number | undefined); - /** - * @returns {number} - */ - get length(): number; - /** - * @param {number} index - */ - set index(index: number); - /** - * @returns {number} - */ - get index(): number; - /** - * @param {number} required - */ - ensureCanSeek(required: number): void; - /** - * @param {number} index - */ - seek(index: number): void; - /** - * @param {number} size - */ - ensureCanWrite(size: number): void; - /** - * @param {Uint8Array} bytes - */ - write(bytes: Uint8Array): void; - /** - * @param {number} start - * @param {number} end - */ - writeCopy(start: number, end: number): void; - /** - * @param {number} value - */ - writeUint8(value: number): void; - /** - * @param {number} value - * @param {boolean=} littleEndian - */ - writeUint16(value: number, littleEndian?: boolean | undefined): void; - /** - * @param {number} value - * @param {boolean=} littleEndian - */ - writeUint32(value: number, littleEndian?: boolean | undefined): void; - /** - * @param {number=} begin - * @param {number=} end - * @returns {Uint8Array} - */ - subarray(begin?: number | undefined, end?: number | undefined): Uint8Array; - /** - * @param {number=} begin - * @param {number=} end - * @returns {Uint8Array} - */ - slice(begin?: number | undefined, end?: number | undefined): Uint8Array; -} -//# sourceMappingURL=buffer-writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/buffer-writer.d.ts.map b/packages/zip/src/buffer-writer.d.ts.map deleted file mode 100644 index 387e4409ca..0000000000 --- a/packages/zip/src/buffer-writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"buffer-writer.d.ts","sourceRoot":"","sources":["buffer-writer.js"],"names":[],"mappings":"AAgCA;IAsBE;;OAEG;IACH,uBAFW,MAAM,cAYhB;IAlCD;;OAEG;IACH,qBAEC;IASD;;OAEG;IACH,yBAEC;IAZD;;OAEG;IACH,oBAEC;IAwBD;;OAEG;IACH,wBAFW,MAAM,QAehB;IAED;;OAEG;IACH,YAFW,MAAM,QAOhB;IAED;;OAEG;IACH,qBAFW,MAAM,QAMhB;IAED;;OAEG;IACH,aAFW,UAAU,QAQpB;IAED;;;OAGG;IACH,iBAHW,MAAM,OACN,MAAM,QAWhB;IAED;;OAEG;IACH,kBAFW,MAAM,QAQhB;IAED;;;OAGG;IACH,mBAHW,MAAM,iBACN,OAAO,oBASjB;IAED;;;OAGG;IACH,mBAHW,MAAM,iBACN,OAAO,oBASjB;IAED;;;;OAIG;IACH,iBAJW,MAAM,oBACN,MAAM,eACJ,UAAU,CAKtB;IAED;;;;OAIG;IACH,cAJW,MAAM,oBACN,MAAM,eACJ,UAAU,CAItB;CACF"} \ No newline at end of file diff --git a/packages/zip/src/compression.d.ts b/packages/zip/src/compression.d.ts deleted file mode 100644 index 92e7775368..0000000000 --- a/packages/zip/src/compression.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export const STORE: 0; -//# sourceMappingURL=compression.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/compression.d.ts.map b/packages/zip/src/compression.d.ts.map deleted file mode 100644 index 23080ff4bc..0000000000 --- a/packages/zip/src/compression.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"compression.d.ts","sourceRoot":"","sources":["compression.js"],"names":[],"mappings":"AAGA,sBAAuB"} \ No newline at end of file diff --git a/packages/zip/src/crc32.d.ts b/packages/zip/src/crc32.d.ts deleted file mode 100644 index 4c4ffaaeb6..0000000000 --- a/packages/zip/src/crc32.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @param {Uint8Array} bytes - * @param {number} length - * @param {number} index - * @param {number} crc - */ -export function crc32(bytes: Uint8Array, length?: number, index?: number, crc?: number): number; -//# sourceMappingURL=crc32.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/crc32.d.ts.map b/packages/zip/src/crc32.d.ts.map deleted file mode 100644 index 8df6eb53bc..0000000000 --- a/packages/zip/src/crc32.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crc32.d.ts","sourceRoot":"","sources":["crc32.js"],"names":[],"mappings":"AA+BA;;;;;GAKG;AACH,6BALW,UAAU,WACV,MAAM,UACN,MAAM,QACN,MAAM,UAYhB"} \ No newline at end of file diff --git a/packages/zip/src/format-reader.d.ts b/packages/zip/src/format-reader.d.ts deleted file mode 100644 index 6b37ef4111..0000000000 --- a/packages/zip/src/format-reader.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * @param {BufferReader} reader - * @param {string} name - */ -export function readZip(reader: BufferReader, name?: string): Map; -export type ArchiveHeaders = import('./types.js').ArchiveHeaders; -export type CompressedFile = import('./types.js').CompressedFile; -export type UncompressedFile = import('./types.js').UncompressedFile; -export type ArchivedFile = import('./types.js').ArchivedFile; -export type CentralFileRecord = { - name: Uint8Array; - version: number; - madeBy: number; - fileStart: number; - diskNumberStart: number; - internalFileAttributes: number; - externalFileAttributes: number; - comment: Uint8Array; -} & ArchiveHeaders; -export type LocalFileRecord = { - name: Uint8Array; - content: Uint8Array; -} & ArchiveHeaders; -export type CentralDirectoryLocator = { - diskNumber: number; - diskWithCentralDirStart: number; - centralDirectoryRecordsOnThisDisk: number; - centralDirectoryRecords: number; - centralDirectorySize: number; - centralDirectoryOffset: number; - comment: string; -}; -export type BufferReader = { - readonly length: number; - offset: number; - read: (size: number) => Uint8Array; - skip: (size: number) => void; - seek: (index: number) => void; - expect: (bytes: Uint8Array) => boolean; - readUint8: () => number; - readUint16: (littleEndian?: boolean) => number; - readUint32: (littleEndian?: boolean) => number; -}; -//# sourceMappingURL=format-reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/format-reader.d.ts.map b/packages/zip/src/format-reader.d.ts.map deleted file mode 100644 index 5f38ec89fd..0000000000 --- a/packages/zip/src/format-reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format-reader.d.ts","sourceRoot":"","sources":["format-reader.js"],"names":[],"mappings":"AAgcA;;;GAGG;AACH,gCAHW,YAAY,SACZ,MAAM,iBA4BhB;6BA1dY,OAAO,YAAY,EAAE,cAAc;6BACnC,OAAO,YAAY,EAAE,cAAc;+BACnC,OAAO,YAAY,EAAE,gBAAgB;2BACrC,OAAO,YAAY,EAAE,YAAY;gCAEjC;IACZ,MAAU,UAAU,CAAC;IACrB,OAAW,EAAE,MAAM,CAAC;IACpB,MAAU,EAAE,MAAM,CAAC;IACnB,SAAa,EAAE,MAAM,CAAC;IACtB,eAAmB,EAAE,MAAM,CAAC;IAC5B,sBAA0B,EAAE,MAAM,CAAC;IACnC,sBAA0B,EAAE,MAAM,CAAC;IACnC,OAAW,EAAE,UAAU,CAAA;CACpB,GAAG,cAAc;8BAER;IACZ,MAAU,UAAU,CAAC;IACrB,OAAW,EAAE,UAAU,CAAC;CACrB,GAAG,cAAc;sCAER;IACZ,UAAa,EAAE,MAAM,CAAC;IACtB,uBAA0B,EAAE,MAAM,CAAC;IACnC,iCAAoC,EAAE,MAAM,CAAC;IAC7C,uBAA0B,EAAE,MAAM,CAAC;IACnC,oBAAuB,EAAE,MAAM,CAAC;IAChC,sBAAyB,EAAE,MAAM,CAAA;IACjC,OAAU,EAAE,MAAM,CAAA;CACf;;qBAGkB,MAAM;YACf,MAAM;iBACD,MAAM,KAAK,UAAU;iBACrB,MAAM,KAAK,IAAI;kBACd,MAAM,KAAK,IAAI;oBACb,UAAU,KAAK,OAAO;eAC3B,MAAM,MAAM;gCACK,OAAO,KAAK,MAAM;gCAClB,OAAO,KAAK,MAAM"} \ No newline at end of file diff --git a/packages/zip/src/format-writer.d.ts b/packages/zip/src/format-writer.d.ts deleted file mode 100644 index 42753b505c..0000000000 --- a/packages/zip/src/format-writer.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -/** - * @param {BufferWriter} writer - * @param {Array} records - * @param {string} comment - */ -export function writeZipRecords(writer: BufferWriter, records: Array, comment?: string): void; -/** - * @param {BufferWriter} writer - * @param {Array} files - * @param {string} comment - */ -export function writeZip(writer: BufferWriter, files: Array, comment?: string): void; -export type LocalFileLocator = { - fileStart: number; - headerStart: number; - headerEnd: number; -}; -export type FileRecord = { - name: Uint8Array; - centralName: Uint8Array; - madeBy: number; - version: number; - diskNumberStart: number; - internalFileAttributes: number; - externalFileAttributes: number; - content: Uint8Array; - comment: Uint8Array; -} & import('./types.js').ArchiveHeaders; -export type BufferWriter = { - index: number; - readonly length: number; - write: (bytes: Uint8Array) => void; - writeCopy: (start: number, end: number) => void; - writeUint8: (number: number) => void; - writeUint16: (number: number, littleEndian?: boolean) => void; - writeUint32: (number: number, littleEndian?: boolean) => void; -}; -/** - * Computes Zip external file attributes field from a UNIX mode for a file. - * - * @param {number} mode - * @returns {number} - */ -declare function externalFileAttributes(mode: number): number; -export {}; -//# sourceMappingURL=format-writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/format-writer.d.ts.map b/packages/zip/src/format-writer.d.ts.map deleted file mode 100644 index 0788064b37..0000000000 --- a/packages/zip/src/format-writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"format-writer.d.ts","sourceRoot":"","sources":["format-writer.js"],"names":[],"mappings":"AA8IA;;;;GAIG;AACH,wCAJW,YAAY,WACZ,MAAM,UAAU,CAAC,YACjB,MAAM,QA0BhB;AAiFD;;;;GAIG;AACH,iCAJW,YAAY,SACZ,MAAM,OAAO,YAAY,EAAE,YAAY,CAAC,YACxC,MAAM,QAQhB;+BAnQY;IACZ,SAAY,EAAE,MAAM,CAAC;IACrB,WAAc,EAAE,MAAM,CAAC;IACvB,SAAY,EAAE,MAAM,CAAC;CAClB;yBAES;IACZ,MAAU,UAAU,CAAC;IACrB,WAAe,EAAE,UAAU,CAAC;IAC5B,MAAU,EAAE,MAAM,CAAC;IACnB,OAAW,EAAE,MAAM,CAAC;IACpB,eAAmB,EAAE,MAAM,CAAC;IAC5B,sBAA0B,EAAE,MAAM,CAAC;IACnC,wBAA4B,MAAM,CAAC;IACnC,OAAW,EAAE,UAAU,CAAC;IACxB,OAAW,EAAE,UAAU,CAAC;CACrB,GAAG,OAAO,YAAY,EAAE,cAAc;;WAG9B,MAAM;qBACI,MAAM;mBACR,UAAU,KAAK,IAAI;uBACf,MAAM,OAAO,MAAM,KAAK,IAAI;yBAC1B,MAAM,KAAK,IAAI;0BACd,MAAM,iBAAiB,OAAO,KAAK,IAAI;0BACvC,MAAM,iBAAiB,OAAO,KAAK,IAAI;;AAkLlE;;;;;GAKG;AACH,8CAHW,MAAM,GACJ,MAAM,CAIlB"} \ No newline at end of file diff --git a/packages/zip/src/reader.d.ts b/packages/zip/src/reader.d.ts deleted file mode 100644 index c169abecb5..0000000000 --- a/packages/zip/src/reader.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export class ZipReader { - /** - * @param {Uint8Array} data - * @param {object} [options] - * @param {string} [options.name] - */ - constructor(data: Uint8Array, options?: { - name?: string | undefined; - } | undefined); - files: Map; - name: string; - /** - * @param {string} name - * @returns {Uint8Array} - */ - read(name: string): Uint8Array; - /** - * @param {string} name - * @returns {import('./types.js').ArchivedStat=} - */ - stat(name: string): import('./types.js').ArchivedStat | undefined; -} -export function readZip(data: Uint8Array, location: string): Promise; -//# sourceMappingURL=reader.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/reader.d.ts.map b/packages/zip/src/reader.d.ts.map deleted file mode 100644 index 9aeef00377..0000000000 --- a/packages/zip/src/reader.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AAKA;IACE;;;;OAIG;IACH,kBAJW,UAAU;;mBASpB;IAFC,qBAAkC;IAClC,aAAgB;IAGlB;;;OAGG;IACH,WAHW,MAAM,GACJ,UAAU,CAQtB;IAED;;;OAGG;IACH,WAHW,MAAM,GACJ,OAAO,YAAY,EAAE,YAAY,aAa7C;CACF;AAOM,8BAJI,UAAU,YACV,MAAM,GACJ,QAAQ,OAAO,YAAY,EAAE,aAAa,CAAC,CAOvD"} \ No newline at end of file diff --git a/packages/zip/src/signature.d.ts b/packages/zip/src/signature.d.ts deleted file mode 100644 index f3f08eb695..0000000000 --- a/packages/zip/src/signature.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export const LOCAL_FILE_HEADER: Uint8Array; -export const CENTRAL_FILE_HEADER: Uint8Array; -export const CENTRAL_DIRECTORY_END: Uint8Array; -export const ZIP64_CENTRAL_DIRECTORY_LOCATOR: Uint8Array; -export const ZIP64_CENTRAL_DIRECTORY_END: Uint8Array; -export const DATA_DESCRIPTOR: Uint8Array; -//# sourceMappingURL=signature.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/signature.d.ts.map b/packages/zip/src/signature.d.ts.map deleted file mode 100644 index fbd0fc2ba9..0000000000 --- a/packages/zip/src/signature.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"signature.d.ts","sourceRoot":"","sources":["signature.js"],"names":[],"mappings":"AAeA,2CAAiD;AACjD,6CAAmD;AACnD,+CAAqD;AACrD,yDAA+D;AAC/D,qDAA2D;AAC3D,yCAA+C"} \ No newline at end of file diff --git a/packages/zip/src/types.d.ts b/packages/zip/src/types.d.ts deleted file mode 100644 index 8c642e80f4..0000000000 --- a/packages/zip/src/types.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export type ArchivedStat = { - mode: number; - date: Date | null; - comment: string; - type: "file" | "directory"; -}; -export type ArchivedFile = { - name: string; - content: Uint8Array; -} & ArchivedStat; -export type UncompressedFile = { - name: Uint8Array; - mode: number; - date: Date | null; - content: Uint8Array; - comment: Uint8Array; -}; -export type CompressedFile = { - name: Uint8Array; - mode: number; - date: Date | null; - crc32: number; - compressionMethod: number; - compressedLength: number; - uncompressedLength: number; - content: Uint8Array; - comment: Uint8Array; -}; -export type ArchiveHeaders = { - versionNeeded: number; - bitFlag: number; - compressionMethod: number; - date: Date | null; - crc32: number; - compressedLength: number; - uncompressedLength: number; -}; -export type ArchiveReader = { - read: ReadFn; -}; -export type ReadFn = (name: string) => Promise; -export type ArchiveWriter = { - write: WriteFn; - snapshot: SnapshotFn; -}; -export type WriteFn = (name: string, bytes: Uint8Array) => Promise; -export type SnapshotFn = () => Promise; -//# sourceMappingURL=types.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/types.d.ts.map b/packages/zip/src/types.d.ts.map deleted file mode 100644 index 277d4bbb7c..0000000000 --- a/packages/zip/src/types.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":"2BAKa;IACZ,IAAQ,EAAE,MAAM,CAAC;IACjB,IAAQ,EAAE,IAAI,QAAE;IAChB,OAAW,EAAE,MAAM,CAAC;IACpB,IAAQ,EAAE,MAAM,GAAG,WAAW,CAAA;CAC3B;2BAES;IACZ,MAAU,MAAM,CAAC;IACjB,OAAW,EAAE,UAAU,CAAC;CACrB,GAAG,YAAY;+BAEN;IACZ,MAAU,UAAU,CAAC;IACrB,IAAQ,EAAE,MAAM,CAAC;IACjB,IAAQ,EAAE,IAAI,QAAE;IAChB,OAAW,EAAE,UAAU,CAAC;IACxB,OAAW,EAAE,UAAU,CAAC;CACrB;6BAES;IACZ,MAAU,UAAU,CAAC;IACrB,IAAQ,EAAE,MAAM,CAAC;IACjB,IAAQ,EAAE,IAAI,QAAE;IAChB,KAAS,EAAE,MAAM,CAAC;IAClB,iBAAqB,EAAE,MAAM,CAAC;IAC9B,gBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAsB,EAAE,MAAM,CAAC;IAC/B,OAAW,EAAE,UAAU,CAAC;IACxB,OAAW,EAAE,UAAU,CAAC;CACrB;6BAES;IACZ,aAAiB,EAAE,MAAM,CAAC;IAC1B,OAAW,EAAE,MAAM,CAAC;IACpB,iBAAqB,EAAE,MAAM,CAAC;IAC9B,IAAQ,EAAE,IAAI,QAAE;IAChB,KAAS,EAAE,MAAM,CAAC;IAClB,gBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAsB,EAAE,MAAM,CAAC;CAC5B;;UAKU,MAAM;;4BAKT,MAAM,KACJ,QAAQ,UAAU,CAAC;;WAKlB,OAAO;cACP,UAAU;;6BAKb,MAAM,SACN,UAAU,KACR,QAAQ,IAAI,CAAC;+BAKb,QAAQ,UAAU,CAAC"} \ No newline at end of file diff --git a/packages/zip/src/writer.d.ts b/packages/zip/src/writer.d.ts deleted file mode 100644 index 63a77ad375..0000000000 --- a/packages/zip/src/writer.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -export class ZipWriter { - /** - * @param {{ - * date: Date, - * }} options - */ - constructor(options?: { - date: Date; - }); - /** type {Map} */ - files: Map; - date: Date; - /** - * @param {string} name - * @param {Uint8Array} content - * @param {{ - * mode?: number, - * date?: Date, - * comment?: string, - * }} [options] - */ - write(name: string, content: Uint8Array, options?: { - mode?: number | undefined; - date?: Date | undefined; - comment?: string | undefined; - } | undefined): void; - /** - * @returns {Uint8Array} - */ - snapshot(): Uint8Array; -} -export function writeZip(): import('./types.js').ArchiveWriter; -//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/src/writer.d.ts.map b/packages/zip/src/writer.d.ts.map deleted file mode 100644 index 295f2ae81d..0000000000 --- a/packages/zip/src/writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAKA;IACE;;;;OAIG;IACH;cAHW,IAAI;OAQd;IAHC,gCAAgC;IAChC,qBAAsB;IACtB,WAAgB;IAGlB;;;;;;;;OAQG;IACH,YARW,MAAM,WACN,UAAU;;;;yBAmBpB;IAED;;OAEG;IACH,YAFa,UAAU,CAMtB;CACF;AAKM,4BAFM,OAAO,YAAY,EAAE,aAAa,CAW9C"} \ No newline at end of file diff --git a/packages/zip/writer.d.ts b/packages/zip/writer.d.ts deleted file mode 100644 index 130f29f0cb..0000000000 --- a/packages/zip/writer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { ZipWriter } from "./src/writer.js"; -//# sourceMappingURL=writer.d.ts.map \ No newline at end of file diff --git a/packages/zip/writer.d.ts.map b/packages/zip/writer.d.ts.map deleted file mode 100644 index dcb591b189..0000000000 --- a/packages/zip/writer.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":""} \ No newline at end of file