From 74cfc5b51e48edc144f6665eddfbd2b0e6145e56 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Dec 2023 11:04:20 -0800 Subject: [PATCH 1/5] fix(bundle-source): Remove broken jessie linting for now --- packages/bundle-source/package.json | 3 --- 1 file changed, 3 deletions(-) diff --git a/packages/bundle-source/package.json b/packages/bundle-source/package.json index 25873c5ecb..791e927296 100644 --- a/packages/bundle-source/package.json +++ b/packages/bundle-source/package.json @@ -22,8 +22,6 @@ "test:xs": "exit 0", "lint-fix": "eslint --fix '**/*.js'", "lint-check": "yarn lint", - "lint-fix-jessie": "eslint -c '.eslintrc-jessie.js' --fix '**/*.js'", - "lint-check-jessie": "eslint -c '.eslintrc-jessie.js' '**/*.js'", "lint": "yarn lint:types && yarn lint:eslint", "lint:eslint": "eslint '**/*.js'", "lint:types": "tsc" @@ -38,7 +36,6 @@ "@rollup/plugin-commonjs": "^19.0.0", "@rollup/plugin-node-resolve": "^13.0.0", "acorn": "^8.2.4", - "jessie.js": "^0.3.2", "rollup": "^2.79.1" }, "devDependencies": { From e4556bd20589dcfc885ae3f8667cfd24ae1f74b3 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Dec 2023 11:04:30 -0800 Subject: [PATCH 2/5] chore: Update yarn.lock --- yarn.lock | 49 ------------------------------------------------- 1 file changed, 49 deletions(-) diff --git a/yarn.lock b/yarn.lock index 786e6436d5..2d714ea05c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -743,41 +743,6 @@ resolved "https://registry.yarnpkg.com/@bcoe/v8-coverage/-/v8-coverage-0.2.3.tgz#75a2e8b51cb758a7553d6804a5932d7aace75c39" integrity sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw== -"@endo/env-options@^0.1.4": - version "0.1.4" - resolved "https://registry.yarnpkg.com/@endo/env-options/-/env-options-0.1.4.tgz#e516bc3864f00b154944e444fb8996a9a0c23a45" - integrity sha512-Ol8ct0aW8VK1ZaqntnUJfrYT59P6Xn36XPbHzkqQhsYkpudKDn5ILYEwGmSO/Ff+XJjv/pReNI0lhOyyrDa9mg== - -"@endo/eventual-send@^0.17.6": - version "0.17.6" - resolved "https://registry.yarnpkg.com/@endo/eventual-send/-/eventual-send-0.17.6.tgz#86719e4e3ff76991c49f6680309dc77dff65fe55" - integrity sha512-73cKY2uiWdzMJn7i284NJyD3K0UKjpksBg/EA2GT8YJa0TgeBczFQIm81vC08itK5gHuDDH2vC5COSGR6hxKIg== - dependencies: - "@endo/env-options" "^0.1.4" - -"@endo/far@^0.2.3": - version "0.2.22" - resolved "https://registry.yarnpkg.com/@endo/far/-/far-0.2.22.tgz#fda187289a903ee3f9d6dcc5664ee7fef1994b1f" - integrity sha512-LFOicqyHslKOSk/H5EfGOcw347ftDSwYHARPasnrG4UJOEkcU1ZG5bN/BmfONtcidB776gWZKrV/tNl4WLIlyw== - dependencies: - "@endo/eventual-send" "^0.17.6" - "@endo/pass-style" "^0.1.7" - -"@endo/pass-style@^0.1.7": - version "0.1.7" - resolved "https://registry.yarnpkg.com/@endo/pass-style/-/pass-style-0.1.7.tgz#ea22568e8b86fb2d1a14a5fc042374cc0d8e310b" - integrity sha512-dlB62Ptjcy/+iachy7qzAdgIwaU60rE+XLummLRpE2tDSJF2jSFJlVwa/QuGw1KKO7Rt4vog/51sKev3EbJZQg== - dependencies: - "@endo/promise-kit" "^0.2.60" - "@fast-check/ava" "^1.1.5" - -"@endo/promise-kit@^0.2.60": - version "0.2.60" - resolved "https://registry.yarnpkg.com/@endo/promise-kit/-/promise-kit-0.2.60.tgz#8012ada06970c7eaf965cd856563b34a1790e163" - integrity sha512-6Zp9BqBbc3ywaG+iLRrQRmO/VLKrMnvsbgOKKPMpjEC3sUlksYA09uaH3GrKZgoGChF8m9bXK8eFW39z7wJNUw== - dependencies: - ses "^0.18.8" - "@es-joy/jsdoccomment@~0.39.4": version "0.39.4" resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.39.4.tgz#6b8a62e9b3077027837728818d3c4389a898b392" @@ -7525,13 +7490,6 @@ jake@^10.8.5: filelist "^1.0.1" minimatch "^3.0.4" -jessie.js@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/jessie.js/-/jessie.js-0.3.2.tgz#68159e1097f86fa56a3136668313ea38e96fc9f2" - integrity sha512-Gpa2iZhl/hPZGT3HWEURfYIV5kFjeHZmQLZuRF6A5czuezmEOlnDYH3w7rohaaEWwxJiXprUWj4r6lh1JIkXAA== - dependencies: - "@endo/far" "^0.2.3" - jest-diff@^29.0.3: version "29.5.0" resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.5.0.tgz#e0d83a58eb5451dcc1fa61b1c3ee4e8f5a290d63" @@ -10995,13 +10953,6 @@ serve-static@^1.12.4: parseurl "~1.3.3" send "0.18.0" -ses@^0.18.8: - version "0.18.8" - resolved "https://registry.yarnpkg.com/ses/-/ses-0.18.8.tgz#88036511ac3b3c07e4d82dd8cfc6e5f3788205b6" - integrity sha512-kOH1AhJc6gWDXKURKeU1w7iFUdImAegAljVvBg5EUBgNqjH4bxcEsGVUadVEPtA2PVRMyQp1fiSMDwEZkQNj1g== - dependencies: - "@endo/env-options" "^0.1.4" - set-blocking@^2.0.0: version "2.0.0" resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" From f428d80a99aa2e2f51e45b85f61f5dbfac76caf2 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Dec 2023 13:10:30 -0800 Subject: [PATCH 3/5] chore(release): publish - @endo/bundle-source@3.0.1 - @endo/captp@4.0.1 - @endo/check-bundle@1.0.1 - @endo/cli@1.0.1 - @endo/compartment-mapper@1.0.1 - @endo/daemon@1.0.1 - @endo/env-options@1.0.1 - @endo/errors@1.0.1 - @endo/eslint-plugin@2.0.0 - @endo/evasive-transform@1.0.1 - @endo/eventual-send@1.0.1 - @endo/exo@1.0.1 - @endo/far@1.0.1 - @endo/import-bundle@1.0.1 - @endo/init@1.0.1 - @endo/lockdown@1.0.1 - @endo/lp32@1.0.1 - @endo/marshal@1.0.1 - @endo/memoize@1.0.1 - @endo/nat@5.0.1 - @endo/netstring@1.0.1 - @endo/pass-style@1.0.1 - @endo/patterns@1.0.1 - @endo/promise-kit@1.0.1 - @endo/ses-ava@1.0.1 - @endo/ses-integration-test@4.0.1 - ses@1.0.1 - @endo/skel@1.0.1 - @endo/static-module-record@1.0.1 - @endo/stream-node@1.0.1 - @endo/stream-types-test@1.0.1 - @endo/stream@1.0.1 --- packages/bundle-source/CHANGELOG.md | 10 ++++++++++ packages/bundle-source/package.json | 14 +++++++------- packages/captp/CHANGELOG.md | 9 +++++++++ packages/captp/package.json | 14 +++++++------- packages/check-bundle/CHANGELOG.md | 8 ++++++++ packages/check-bundle/package.json | 8 ++++---- packages/cli/CHANGELOG.md | 8 ++++++++ packages/cli/package.json | 16 ++++++++-------- packages/compartment-mapper/CHANGELOG.md | 8 ++++++++ packages/compartment-mapper/package.json | 6 +++--- packages/daemon/CHANGELOG.md | 8 ++++++++ packages/daemon/package.json | 20 ++++++++++---------- packages/env-options/CHANGELOG.md | 8 ++++++++ packages/env-options/package.json | 2 +- packages/errors/CHANGELOG.md | 8 ++++++++ packages/errors/package.json | 8 ++++---- packages/eslint-plugin/CHANGELOG.md | 18 ++++++++++++++++++ packages/eslint-plugin/package.json | 2 +- packages/evasive-transform/CHANGELOG.md | 10 ++++++++++ packages/evasive-transform/package.json | 4 ++-- packages/eventual-send/CHANGELOG.md | 8 ++++++++ packages/eventual-send/package.json | 8 ++++---- packages/exo/CHANGELOG.md | 8 ++++++++ packages/exo/package.json | 16 ++++++++-------- packages/far/CHANGELOG.md | 9 +++++++++ packages/far/package.json | 10 +++++----- packages/import-bundle/CHANGELOG.md | 8 ++++++++ packages/import-bundle/package.json | 12 ++++++------ packages/init/CHANGELOG.md | 8 ++++++++ packages/init/package.json | 12 ++++++------ packages/lockdown/CHANGELOG.md | 9 +++++++++ packages/lockdown/package.json | 4 ++-- packages/lp32/CHANGELOG.md | 8 ++++++++ packages/lp32/package.json | 10 +++++----- packages/marshal/CHANGELOG.md | 9 +++++++++ packages/marshal/package.json | 16 ++++++++-------- packages/memoize/CHANGELOG.md | 8 ++++++++ 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 | 8 ++++++++ packages/pass-style/package.json | 10 +++++----- packages/patterns/CHANGELOG.md | 8 ++++++++ packages/patterns/package.json | 12 ++++++------ packages/promise-kit/CHANGELOG.md | 8 ++++++++ packages/promise-kit/package.json | 6 +++--- packages/ses-ava/CHANGELOG.md | 8 ++++++++ packages/ses-ava/package.json | 8 ++++---- packages/ses-integration-test/CHANGELOG.md | 8 ++++++++ packages/ses-integration-test/package.json | 4 ++-- packages/ses/CHANGELOG.md | 8 ++++++++ packages/ses/package.json | 8 ++++---- packages/skel/CHANGELOG.md | 8 ++++++++ packages/skel/package.json | 6 +++--- packages/static-module-record/CHANGELOG.md | 8 ++++++++ packages/static-module-record/package.json | 6 +++--- packages/stream-node/CHANGELOG.md | 8 ++++++++ packages/stream-node/package.json | 10 +++++----- packages/stream-types-test/CHANGELOG.md | 8 ++++++++ packages/stream-types-test/package.json | 6 +++--- packages/stream/CHANGELOG.md | 8 ++++++++ packages/stream/package.json | 12 ++++++------ 64 files changed, 421 insertions(+), 147 deletions(-) diff --git a/packages/bundle-source/CHANGELOG.md b/packages/bundle-source/CHANGELOG.md index 775f954dfe..f2eed3666b 100644 --- a/packages/bundle-source/CHANGELOG.md +++ b/packages/bundle-source/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. +### [3.0.1](https://github.com/endojs/endo/compare/@endo/bundle-source@3.0.0...@endo/bundle-source@3.0.1) (2023-12-20) + + +### Bug Fixes + +* **bundle-source:** Avoid ?? operator for RESM ([3355c04](https://github.com/endojs/endo/commit/3355c044dbf461ad52045c0b380917726f954aa7)) +* **bundle-source:** Remove broken jessie linting for now ([74cfc5b](https://github.com/endojs/endo/commit/74cfc5b51e48edc144f6665eddfbd2b0e6145e56)) + + + ## [3.0.0](https://github.com/endojs/endo/compare/@endo/bundle-source@2.8.0...@endo/bundle-source@3.0.0) (2023-12-12) diff --git a/packages/bundle-source/package.json b/packages/bundle-source/package.json index 791e927296..d5d480ff22 100644 --- a/packages/bundle-source/package.json +++ b/packages/bundle-source/package.json @@ -1,6 +1,6 @@ { "name": "@endo/bundle-source", - "version": "3.0.0", + "version": "3.0.1", "description": "Create source bundles from ES Modules", "type": "module", "main": "src/index.js", @@ -28,10 +28,10 @@ }, "dependencies": { "@endo/base64": "^1.0.0", - "@endo/compartment-mapper": "^1.0.0", - "@endo/evasive-transform": "^1.0.0", - "@endo/init": "^1.0.0", - "@endo/promise-kit": "^1.0.0", + "@endo/compartment-mapper": "^1.0.1", + "@endo/evasive-transform": "^1.0.1", + "@endo/init": "^1.0.1", + "@endo/promise-kit": "^1.0.1", "@endo/where": "^1.0.0", "@rollup/plugin-commonjs": "^19.0.0", "@rollup/plugin-node-resolve": "^13.0.0", @@ -39,8 +39,8 @@ "rollup": "^2.79.1" }, "devDependencies": { - "@endo/lockdown": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/lockdown": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "c8": "^7.14.0", "execa": "^8.0.1" diff --git a/packages/captp/CHANGELOG.md b/packages/captp/CHANGELOG.md index eea1c0c34a..51e4385e42 100644 --- a/packages/captp/CHANGELOG.md +++ b/packages/captp/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. +### [4.0.1](https://github.com/endojs/endo/compare/@endo/captp@4.0.0...@endo/captp@4.0.1) (2023-12-20) + + +### Bug Fixes + +* Expressly forbid deep imports through captp, far, lockdown, marshal ([8fb4e97](https://github.com/endojs/endo/commit/8fb4e9734bfeb7c024cd0b9d4916b7410159152a)) + + + ## [4.0.0](https://github.com/endojs/endo/compare/@endo/captp@3.1.5...@endo/captp@4.0.0) (2023-12-12) diff --git a/packages/captp/package.json b/packages/captp/package.json index 11e6b5fd7d..8e2b861f27 100644 --- a/packages/captp/package.json +++ b/packages/captp/package.json @@ -1,6 +1,6 @@ { "name": "@endo/captp", - "version": "4.0.0", + "version": "4.0.1", "description": "Capability Transfer Protocol for distributed objects", "type": "module", "keywords": [ @@ -46,16 +46,16 @@ "lint:types": "tsc" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "c8": "^7.14.0" }, "dependencies": { - "@endo/eventual-send": "^1.0.0", - "@endo/marshal": "^1.0.0", - "@endo/nat": "^5.0.0", - "@endo/promise-kit": "^1.0.0" + "@endo/eventual-send": "^1.0.1", + "@endo/marshal": "^1.0.1", + "@endo/nat": "^5.0.1", + "@endo/promise-kit": "^1.0.1" }, "bugs": { "url": "https://github.com/endojs/endo/issues" diff --git a/packages/check-bundle/CHANGELOG.md b/packages/check-bundle/CHANGELOG.md index a2ca8d455f..330fbf7f34 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.1](https://github.com/endojs/endo/compare/@endo/check-bundle@1.0.0...@endo/check-bundle@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/check-bundle + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/check-bundle@0.2.22...@endo/check-bundle@1.0.0) (2023-12-12) diff --git a/packages/check-bundle/package.json b/packages/check-bundle/package.json index b4c6077431..cbb0428193 100644 --- a/packages/check-bundle/package.json +++ b/packages/check-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@endo/check-bundle", - "version": "1.0.0", + "version": "1.0.1", "description": "Checks the integrity of an Endo bundle.", "keywords": [ "endo", @@ -40,11 +40,11 @@ }, "dependencies": { "@endo/base64": "^1.0.0", - "@endo/compartment-mapper": "^1.0.0" + "@endo/compartment-mapper": "^1.0.1" }, "devDependencies": { - "@endo/bundle-source": "^3.0.0", - "@endo/init": "^1.0.0", + "@endo/bundle-source": "^3.0.1", + "@endo/init": "^1.0.1", "@endo/zip": "^1.0.0", "ava": "^5.3.0", "babel-eslint": "^10.0.3", diff --git a/packages/cli/CHANGELOG.md b/packages/cli/CHANGELOG.md index 2408b63405..6e0c89f6bc 100644 --- a/packages/cli/CHANGELOG.md +++ b/packages/cli/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.1](https://github.com/endojs/endo/compare/@endo/cli@1.0.0...@endo/cli@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/cli + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/cli@0.2.6...@endo/cli@1.0.0) (2023-12-12) diff --git a/packages/cli/package.json b/packages/cli/package.json index 9f34963943..7f226c8eb6 100644 --- a/packages/cli/package.json +++ b/packages/cli/package.json @@ -1,6 +1,6 @@ { "name": "@endo/cli", - "version": "1.0.0", + "version": "1.0.1", "description": "Endo command line interface", "keywords": [], "author": "Endo contributors", @@ -26,15 +26,15 @@ "test": "exit 0" }, "dependencies": { - "@endo/compartment-mapper": "^1.0.0", - "@endo/daemon": "^1.0.0", - "@endo/eventual-send": "^1.0.0", - "@endo/far": "^1.0.0", - "@endo/lockdown": "^1.0.0", - "@endo/promise-kit": "^1.0.0", + "@endo/compartment-mapper": "^1.0.1", + "@endo/daemon": "^1.0.1", + "@endo/eventual-send": "^1.0.1", + "@endo/far": "^1.0.1", + "@endo/lockdown": "^1.0.1", + "@endo/promise-kit": "^1.0.1", "@endo/where": "^1.0.0", "commander": "^5.0.0", - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { "ava": "^5.3.0", diff --git a/packages/compartment-mapper/CHANGELOG.md b/packages/compartment-mapper/CHANGELOG.md index a3681a8396..5dc37e6858 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.0.1](https://github.com/endojs/endo/compare/@endo/compartment-mapper@1.0.0...@endo/compartment-mapper@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/compartment-mapper + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/compartment-mapper@0.9.2...@endo/compartment-mapper@1.0.0) (2023-12-12) diff --git a/packages/compartment-mapper/package.json b/packages/compartment-mapper/package.json index 3a2ff98d7a..721f0b2719 100644 --- a/packages/compartment-mapper/package.json +++ b/packages/compartment-mapper/package.json @@ -1,6 +1,6 @@ { "name": "@endo/compartment-mapper", - "version": "1.0.0", + "version": "1.0.1", "description": "The compartment mapper assembles Node applications in a sandbox", "keywords": [ "node", @@ -47,9 +47,9 @@ }, "dependencies": { "@endo/cjs-module-analyzer": "^1.0.0", - "@endo/static-module-record": "^1.0.0", + "@endo/static-module-record": "^1.0.1", "@endo/zip": "^1.0.0", - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { "ava": "^5.3.0", diff --git a/packages/daemon/CHANGELOG.md b/packages/daemon/CHANGELOG.md index 440162f843..c83427bd74 100644 --- a/packages/daemon/CHANGELOG.md +++ b/packages/daemon/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.1](https://github.com/endojs/endo/compare/@endo/daemon@1.0.0...@endo/daemon@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/daemon + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/daemon@0.2.6...@endo/daemon@1.0.0) (2023-12-12) diff --git a/packages/daemon/package.json b/packages/daemon/package.json index 34fcdde958..221f0930d0 100644 --- a/packages/daemon/package.json +++ b/packages/daemon/package.json @@ -1,6 +1,6 @@ { "name": "@endo/daemon", - "version": "1.0.0", + "version": "1.0.1", "description": "Endo daemon", "keywords": [ "endo", @@ -39,16 +39,16 @@ "test": "ava" }, "dependencies": { - "@endo/captp": "^4.0.0", - "@endo/eventual-send": "^1.0.0", - "@endo/far": "^1.0.0", - "@endo/lockdown": "^1.0.0", - "@endo/netstring": "^1.0.0", - "@endo/promise-kit": "^1.0.0", - "@endo/stream": "^1.0.0", - "@endo/stream-node": "^1.0.0", + "@endo/captp": "^4.0.1", + "@endo/eventual-send": "^1.0.1", + "@endo/far": "^1.0.1", + "@endo/lockdown": "^1.0.1", + "@endo/netstring": "^1.0.1", + "@endo/promise-kit": "^1.0.1", + "@endo/stream": "^1.0.1", + "@endo/stream-node": "^1.0.1", "@endo/where": "^1.0.0", - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { "ava": "^5.3.0", diff --git a/packages/env-options/CHANGELOG.md b/packages/env-options/CHANGELOG.md index 2c6918fd91..8702098984 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.0.1](https://github.com/endojs/endo/compare/@endo/env-options@1.0.0...@endo/env-options@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/env-options + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/env-options@0.1.4...@endo/env-options@1.0.0) (2023-12-12) diff --git a/packages/env-options/package.json b/packages/env-options/package.json index bc2168b9e8..1eaa910e37 100644 --- a/packages/env-options/package.json +++ b/packages/env-options/package.json @@ -1,6 +1,6 @@ { "name": "@endo/env-options", - "version": "1.0.0", + "version": "1.0.1", "private": null, "description": "Reading environment options.", "keywords": [], diff --git a/packages/errors/CHANGELOG.md b/packages/errors/CHANGELOG.md index 151ccad85d..69e75330bc 100644 --- a/packages/errors/CHANGELOG.md +++ b/packages/errors/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.1](https://github.com/endojs/endo/compare/@endo/errors@1.0.0...@endo/errors@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/errors + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/errors@0.1.1...@endo/errors@1.0.0) (2023-12-12) diff --git a/packages/errors/package.json b/packages/errors/package.json index f760bbd071..934cc1f196 100644 --- a/packages/errors/package.json +++ b/packages/errors/package.json @@ -1,6 +1,6 @@ { "name": "@endo/errors", - "version": "1.0.0", + "version": "1.0.1", "description": "Package exports of the `assert` global", "keywords": [], "author": "Endo contributors", @@ -35,11 +35,11 @@ "test:xs": "exit 0" }, "dependencies": { - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { - "@endo/lockdown": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/lockdown": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "c8": "^7.14.0", "tsd": "^0.28.1" diff --git a/packages/eslint-plugin/CHANGELOG.md b/packages/eslint-plugin/CHANGELOG.md index 519a087ce7..41339f9d9c 100644 --- a/packages/eslint-plugin/CHANGELOG.md +++ b/packages/eslint-plugin/CHANGELOG.md @@ -3,6 +3,24 @@ All notable changes to this project will be documented in this file. See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. +## [2.0.0](https://github.com/endojs/endo/compare/@endo/eslint-plugin@1.0.0...@endo/eslint-plugin@2.0.0) (2023-12-20) + + +### ⚠ BREAKING CHANGES + +* **eslint-plugin:** Disallow ?? and ?. operators + +### Features + +* **eslint-plugin:** Disallow ?? and ?. operators ([15b543a](https://github.com/endojs/endo/commit/15b543ace415c8c5848bbf50aac758bf94d4ce09)) + + +### Bug Fixes + +* **eslint-plugin:** Relax null coalescing and optional chaining to warning ([3ffb01e](https://github.com/endojs/endo/commit/3ffb01efc775a37a909c5a3bc3bc07d338ba65e5)) + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/eslint-plugin@0.5.2...@endo/eslint-plugin@1.0.0) (2023-12-12) **Note:** Version bump only for package @endo/eslint-plugin diff --git a/packages/eslint-plugin/package.json b/packages/eslint-plugin/package.json index 732218ebd1..546b88f346 100644 --- a/packages/eslint-plugin/package.json +++ b/packages/eslint-plugin/package.json @@ -1,6 +1,6 @@ { "name": "@endo/eslint-plugin", - "version": "1.0.0", + "version": "2.0.0", "description": "ESLint plugin for using Endo", "keywords": [ "eslint", diff --git a/packages/evasive-transform/CHANGELOG.md b/packages/evasive-transform/CHANGELOG.md index 86c0842c58..82ae0e5bfd 100644 --- a/packages/evasive-transform/CHANGELOG.md +++ b/packages/evasive-transform/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.0.1](https://github.com/endojs/endo/compare/@endo/evasive-transform@1.0.0...@endo/evasive-transform@1.0.1) (2023-12-20) + + +### Bug Fixes + +* **evasive-transform:** Do not use ?? nor ?. operators ([9c2445e](https://github.com/endojs/endo/commit/9c2445eba86b0f6d2dee00d1f66e94df420924cb)) +* **evasive-transform:** RESM treatment ([db660ce](https://github.com/endojs/endo/commit/db660ceaf1b0dbc8af32af001373386d7806d6de)) + + + ## 1.0.0 (2023-12-12) diff --git a/packages/evasive-transform/package.json b/packages/evasive-transform/package.json index 476596f2cd..43c9ef76da 100644 --- a/packages/evasive-transform/package.json +++ b/packages/evasive-transform/package.json @@ -1,6 +1,6 @@ { "name": "@endo/evasive-transform", - "version": "1.0.0", + "version": "1.0.1", "description": "Source transforms to evade SES censorship", "keywords": [ "ses", @@ -39,7 +39,7 @@ }, "devDependencies": { "@babel/types": "^7.23.6", - "@endo/ses-ava": "^1.0.0", + "@endo/ses-ava": "^1.0.1", "@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 81967ee9a9..7a5817b718 100644 --- a/packages/eventual-send/CHANGELOG.md +++ b/packages/eventual-send/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.1](https://github.com/endojs/endo/compare/@endo/eventual-send@1.0.0...@endo/eventual-send@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/eventual-send + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/eventual-send@0.17.6...@endo/eventual-send@1.0.0) (2023-12-12) diff --git a/packages/eventual-send/package.json b/packages/eventual-send/package.json index 1a363ce0d4..0f90794686 100644 --- a/packages/eventual-send/package.json +++ b/packages/eventual-send/package.json @@ -1,6 +1,6 @@ { "name": "@endo/eventual-send", - "version": "1.0.0", + "version": "1.0.1", "description": "Extend a Promise class to implement the eventual-send API", "type": "module", "main": "src/no-shim.js", @@ -35,11 +35,11 @@ }, "homepage": "https://github.com/endojs/endo#readme", "dependencies": { - "@endo/env-options": "^1.0.0" + "@endo/env-options": "^1.0.1" }, "devDependencies": { - "@endo/lockdown": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/lockdown": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "c8": "^7.14.0", "tsd": "^0.28.1" diff --git a/packages/exo/CHANGELOG.md b/packages/exo/CHANGELOG.md index bbd66ca2be..6113e1ead1 100644 --- a/packages/exo/CHANGELOG.md +++ b/packages/exo/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.1](https://github.com/endojs/endo/compare/@endo/exo@1.0.0...@endo/exo@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/exo + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/exo@0.2.6...@endo/exo@1.0.0) (2023-12-12) diff --git a/packages/exo/package.json b/packages/exo/package.json index 0c2baaa62f..5097c32ca7 100644 --- a/packages/exo/package.json +++ b/packages/exo/package.json @@ -1,6 +1,6 @@ { "name": "@endo/exo", - "version": "1.0.0", + "version": "1.0.1", "description": "exo: remotable objects protected by interface guards.", "keywords": [], "author": "Endo contributors", @@ -32,15 +32,15 @@ "test": "ava" }, "dependencies": { - "@endo/env-options": "^1.0.0", - "@endo/eventual-send": "^1.0.0", - "@endo/far": "^1.0.0", - "@endo/pass-style": "^1.0.0", - "@endo/patterns": "^1.0.0" + "@endo/env-options": "^1.0.1", + "@endo/eventual-send": "^1.0.1", + "@endo/far": "^1.0.1", + "@endo/pass-style": "^1.0.1", + "@endo/patterns": "^1.0.1" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/far/CHANGELOG.md b/packages/far/CHANGELOG.md index 2a79dbb63b..d9dab6707e 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.0.1](https://github.com/endojs/endo/compare/@endo/far@1.0.0...@endo/far@1.0.1) (2023-12-20) + + +### Bug Fixes + +* Expressly forbid deep imports through captp, far, lockdown, marshal ([8fb4e97](https://github.com/endojs/endo/commit/8fb4e9734bfeb7c024cd0b9d4916b7410159152a)) + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/far@0.2.22...@endo/far@1.0.0) (2023-12-12) diff --git a/packages/far/package.json b/packages/far/package.json index c3231856ee..a8e55fd6da 100644 --- a/packages/far/package.json +++ b/packages/far/package.json @@ -1,6 +1,6 @@ { "name": "@endo/far", - "version": "1.0.0", + "version": "1.0.1", "description": "Helpers for distributed objects.", "type": "module", "main": "src/index.js", @@ -32,12 +32,12 @@ }, "homepage": "https://github.com/endojs/endo#readme", "dependencies": { - "@endo/eventual-send": "^1.0.0", - "@endo/pass-style": "^1.0.0" + "@endo/eventual-send": "^1.0.1", + "@endo/pass-style": "^1.0.1" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "c8": "^7.14.0" }, diff --git a/packages/import-bundle/CHANGELOG.md b/packages/import-bundle/CHANGELOG.md index 33c9d308b8..3a13abbd63 100644 --- a/packages/import-bundle/CHANGELOG.md +++ b/packages/import-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.1](https://github.com/endojs/endo/compare/@endo/import-bundle@1.0.0...@endo/import-bundle@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/import-bundle + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/import-bundle@0.4.2...@endo/import-bundle@1.0.0) (2023-12-12) diff --git a/packages/import-bundle/package.json b/packages/import-bundle/package.json index 72e3e0498c..20286c68e8 100644 --- a/packages/import-bundle/package.json +++ b/packages/import-bundle/package.json @@ -1,6 +1,6 @@ { "name": "@endo/import-bundle", - "version": "1.0.0", + "version": "1.0.1", "description": "load modules created by @endo/bundle-source", "type": "module", "main": "src/index.js", @@ -28,14 +28,14 @@ }, "dependencies": { "@endo/base64": "^1.0.0", - "@endo/compartment-mapper": "^1.0.0", + "@endo/compartment-mapper": "^1.0.1", "@endo/where": "^1.0.0", - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { - "@endo/bundle-source": "^3.0.0", - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/bundle-source": "^3.0.1", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "c8": "^7.14.0" }, diff --git a/packages/init/CHANGELOG.md b/packages/init/CHANGELOG.md index 67b8b08ab1..513e843aec 100644 --- a/packages/init/CHANGELOG.md +++ b/packages/init/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.1](https://github.com/endojs/endo/compare/@endo/init@1.0.0...@endo/init@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/init + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/init@0.5.60...@endo/init@1.0.0) (2023-12-12) diff --git a/packages/init/package.json b/packages/init/package.json index 8c8ac11f94..6ebd16ccc9 100644 --- a/packages/init/package.json +++ b/packages/init/package.json @@ -1,6 +1,6 @@ { "name": "@endo/init", - "version": "1.0.0", + "version": "1.0.1", "description": "Prepare Endo environment on import", "type": "module", "main": "index.js", @@ -29,15 +29,15 @@ "lint:types": "tsc" }, "devDependencies": { - "@endo/compartment-mapper": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/compartment-mapper": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.1.1" }, "dependencies": { "@endo/base64": "^1.0.0", - "@endo/eventual-send": "^1.0.0", - "@endo/lockdown": "^1.0.0", - "@endo/promise-kit": "^1.0.0" + "@endo/eventual-send": "^1.0.1", + "@endo/lockdown": "^1.0.1", + "@endo/promise-kit": "^1.0.1" }, "files": [ "LICENSE*", diff --git a/packages/lockdown/CHANGELOG.md b/packages/lockdown/CHANGELOG.md index 7efb609371..e1ca4b0e34 100644 --- a/packages/lockdown/CHANGELOG.md +++ b/packages/lockdown/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.0.1](https://github.com/endojs/endo/compare/@endo/lockdown@1.0.0...@endo/lockdown@1.0.1) (2023-12-20) + + +### Bug Fixes + +* Expressly forbid deep imports through captp, far, lockdown, marshal ([8fb4e97](https://github.com/endojs/endo/commit/8fb4e9734bfeb7c024cd0b9d4916b7410159152a)) + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/lockdown@0.1.32...@endo/lockdown@1.0.0) (2023-12-12) diff --git a/packages/lockdown/package.json b/packages/lockdown/package.json index 249f4942fe..4e823268cd 100644 --- a/packages/lockdown/package.json +++ b/packages/lockdown/package.json @@ -1,6 +1,6 @@ { "name": "@endo/lockdown", - "version": "1.0.0", + "version": "1.0.1", "description": "Wrappers for hardening JavaScript for Endo", "type": "module", "main": "pre.js", @@ -21,7 +21,7 @@ "lint": "eslint '**/*.js'" }, "dependencies": { - "ses": "^1.0.0" + "ses": "^1.0.1" }, "files": [ "LICENSE*", diff --git a/packages/lp32/CHANGELOG.md b/packages/lp32/CHANGELOG.md index 0c8013898b..d06dbd7976 100644 --- a/packages/lp32/CHANGELOG.md +++ b/packages/lp32/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.1](https://github.com/endojs/endo/compare/@endo/lp32@1.0.0...@endo/lp32@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/lp32 + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/lp32@0.3.30...@endo/lp32@1.0.0) (2023-12-12) diff --git a/packages/lp32/package.json b/packages/lp32/package.json index 8660bffcee..edb62ccc3f 100644 --- a/packages/lp32/package.json +++ b/packages/lp32/package.json @@ -1,6 +1,6 @@ { "name": "@endo/lp32", - "version": "1.0.0", + "version": "1.0.1", "description": "32 bit unsigned host byte order length prefix message streams as async iterators", "keywords": [ "stream", @@ -49,12 +49,12 @@ "test": "ava" }, "dependencies": { - "@endo/init": "^1.0.0", - "@endo/stream": "^1.0.0", - "ses": "^1.0.0" + "@endo/init": "^1.0.1", + "@endo/stream": "^1.0.1", + "ses": "^1.0.1" }, "devDependencies": { - "@endo/ses-ava": "^1.0.0", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "c8": "^7.14.0", diff --git a/packages/marshal/CHANGELOG.md b/packages/marshal/CHANGELOG.md index a6260b71a1..3245b1c1c7 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.0.1](https://github.com/endojs/endo/compare/@endo/marshal@1.0.0...@endo/marshal@1.0.1) (2023-12-20) + + +### Bug Fixes + +* Expressly forbid deep imports through captp, far, lockdown, marshal ([8fb4e97](https://github.com/endojs/endo/commit/8fb4e9734bfeb7c024cd0b9d4916b7410159152a)) + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/marshal@0.8.9...@endo/marshal@1.0.0) (2023-12-12) diff --git a/packages/marshal/package.json b/packages/marshal/package.json index 0587715904..816acced3d 100644 --- a/packages/marshal/package.json +++ b/packages/marshal/package.json @@ -1,6 +1,6 @@ { "name": "@endo/marshal", - "version": "1.0.0", + "version": "1.0.1", "description": "marshal: encoding and deconding of Passable subgraphs", "type": "module", "main": "index.js", @@ -40,15 +40,15 @@ }, "homepage": "https://github.com/endojs/endo#readme", "dependencies": { - "@endo/eventual-send": "^1.0.0", - "@endo/nat": "^5.0.0", - "@endo/pass-style": "^1.0.0", - "@endo/promise-kit": "^1.0.0" + "@endo/eventual-send": "^1.0.1", + "@endo/nat": "^5.0.1", + "@endo/pass-style": "^1.0.1", + "@endo/promise-kit": "^1.0.1" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/lockdown": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/lockdown": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "@fast-check/ava": "^1.1.5", "ava": "^5.3.0", "c8": "^7.14.0" diff --git a/packages/memoize/CHANGELOG.md b/packages/memoize/CHANGELOG.md index 3cf19b80b8..df8414931c 100644 --- a/packages/memoize/CHANGELOG.md +++ b/packages/memoize/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.1](https://github.com/endojs/endo/compare/@endo/memoize@1.0.0...@endo/memoize@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/memoize + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/memoize@0.1.4...@endo/memoize@1.0.0) (2023-12-12) diff --git a/packages/memoize/package.json b/packages/memoize/package.json index 1726658d66..13b42cd165 100644 --- a/packages/memoize/package.json +++ b/packages/memoize/package.json @@ -1,6 +1,6 @@ { "name": "@endo/memoize", - "version": "1.0.0", + "version": "1.0.1", "private": null, "description": "Safe function memoization", "keywords": [], @@ -35,11 +35,11 @@ "test": "ava" }, "dependencies": { - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/nat/CHANGELOG.md b/packages/nat/CHANGELOG.md index 04c7048118..539d1a81c3 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.1](https://github.com/endojs/endo/compare/@endo/nat@5.0.0...@endo/nat@5.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/nat + + + + + ## [5.0.0](https://github.com/endojs/endo/compare/@endo/nat@4.1.31...@endo/nat@5.0.0) (2023-12-12) **Note:** Version bump only for package @endo/nat diff --git a/packages/nat/package.json b/packages/nat/package.json index 1111d89fd6..c17c0d9f9a 100644 --- a/packages/nat/package.json +++ b/packages/nat/package.json @@ -1,6 +1,6 @@ { "name": "@endo/nat", - "version": "5.0.0", + "version": "5.0.1", "description": "Ensures that a number is within the natural numbers (0, 1, 2...) or throws a RangeError", "main": "./src/index.js", "type": "module", @@ -25,14 +25,14 @@ }, "homepage": "https://github.com/endojs/endo#readme", "devDependencies": { - "@endo/compartment-mapper": "^1.0.0", + "@endo/compartment-mapper": "^1.0.1", "ava": "^5.3.0", "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.0.0" + "ses": "^1.0.1" }, "directories": { "test": "test" diff --git a/packages/netstring/CHANGELOG.md b/packages/netstring/CHANGELOG.md index 65051ec9bf..fd12bcd9b9 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.1](https://github.com/endojs/endo/compare/@endo/netstring@1.0.0...@endo/netstring@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/netstring + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/netstring@0.3.30...@endo/netstring@1.0.0) (2023-12-12) diff --git a/packages/netstring/package.json b/packages/netstring/package.json index a3936a7eaf..9ae72bfd34 100644 --- a/packages/netstring/package.json +++ b/packages/netstring/package.json @@ -1,6 +1,6 @@ { "name": "@endo/netstring", - "version": "1.0.0", + "version": "1.0.1", "description": "Implements a JavaScript async iterator protocol for consuming and producing binary netstrings.", "keywords": [], "author": "Endo contributors", @@ -34,10 +34,10 @@ "test": "ava" }, "dependencies": { - "@endo/init": "^1.0.0", - "@endo/promise-kit": "^1.0.0", - "@endo/stream": "^1.0.0", - "ses": "^1.0.0" + "@endo/init": "^1.0.1", + "@endo/promise-kit": "^1.0.1", + "@endo/stream": "^1.0.1", + "ses": "^1.0.1" }, "devDependencies": { "ava": "^5.3.0", diff --git a/packages/pass-style/CHANGELOG.md b/packages/pass-style/CHANGELOG.md index f96aaf1d21..a45c29ff65 100644 --- a/packages/pass-style/CHANGELOG.md +++ b/packages/pass-style/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.1](https://github.com/endojs/endo/compare/@endo/pass-style@1.0.0...@endo/pass-style@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/pass-style + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/pass-style@0.1.7...@endo/pass-style@1.0.0) (2023-12-12) diff --git a/packages/pass-style/package.json b/packages/pass-style/package.json index f780c97a2f..d5a804d6d2 100644 --- a/packages/pass-style/package.json +++ b/packages/pass-style/package.json @@ -1,6 +1,6 @@ { "name": "@endo/pass-style", - "version": "1.0.0", + "version": "1.0.1", "description": "pass-style: defines the taxonomy of Passable objects.", "keywords": [], "author": "Endo contributors", @@ -33,13 +33,13 @@ "test": "ava" }, "dependencies": { - "@endo/eventual-send": "^1.0.0", - "@endo/promise-kit": "^1.0.0", + "@endo/eventual-send": "^1.0.1", + "@endo/promise-kit": "^1.0.1", "@fast-check/ava": "^1.1.5" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/patterns/CHANGELOG.md b/packages/patterns/CHANGELOG.md index 223e2f9b73..09b95999eb 100644 --- a/packages/patterns/CHANGELOG.md +++ b/packages/patterns/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.1](https://github.com/endojs/endo/compare/@endo/patterns@1.0.0...@endo/patterns@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/patterns + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/patterns@0.2.6...@endo/patterns@1.0.0) (2023-12-12) diff --git a/packages/patterns/package.json b/packages/patterns/package.json index 9395c16f10..bde592e52b 100644 --- a/packages/patterns/package.json +++ b/packages/patterns/package.json @@ -1,6 +1,6 @@ { "name": "@endo/patterns", - "version": "1.0.0", + "version": "1.0.1", "description": "Description forthcoming.", "keywords": [], "author": "Endo contributors", @@ -31,13 +31,13 @@ "test": "ava" }, "dependencies": { - "@endo/eventual-send": "^1.0.0", - "@endo/marshal": "^1.0.0", - "@endo/promise-kit": "^1.0.0" + "@endo/eventual-send": "^1.0.1", + "@endo/marshal": "^1.0.1", + "@endo/promise-kit": "^1.0.1" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "eslint": "^8.46.0", diff --git a/packages/promise-kit/CHANGELOG.md b/packages/promise-kit/CHANGELOG.md index 78010f7e2d..ec28f757de 100644 --- a/packages/promise-kit/CHANGELOG.md +++ b/packages/promise-kit/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.1](https://github.com/endojs/endo/compare/@endo/promise-kit@1.0.0...@endo/promise-kit@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/promise-kit + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/promise-kit@0.2.60...@endo/promise-kit@1.0.0) (2023-12-12) diff --git a/packages/promise-kit/package.json b/packages/promise-kit/package.json index f807bf3a62..93be31944c 100644 --- a/packages/promise-kit/package.json +++ b/packages/promise-kit/package.json @@ -1,6 +1,6 @@ { "name": "@endo/promise-kit", - "version": "1.0.0", + "version": "1.0.1", "description": "Helper for making promises", "keywords": [ "promise" @@ -37,10 +37,10 @@ "test:xs": "exit 0" }, "dependencies": { - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { - "@endo/ses-ava": "^1.0.0", + "@endo/ses-ava": "^1.0.1", "@types/node": "^16.6.0", "ava": "^5.3.0", "babel-eslint": "^10.0.3", diff --git a/packages/ses-ava/CHANGELOG.md b/packages/ses-ava/CHANGELOG.md index fe56c999b2..bd7ceba1d7 100644 --- a/packages/ses-ava/CHANGELOG.md +++ b/packages/ses-ava/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.1](https://github.com/endojs/endo/compare/@endo/ses-ava@1.0.0...@endo/ses-ava@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/ses-ava + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/ses-ava@0.2.44...@endo/ses-ava@1.0.0) (2023-12-12) diff --git a/packages/ses-ava/package.json b/packages/ses-ava/package.json index 0c56e90839..a5a3aa1de8 100644 --- a/packages/ses-ava/package.json +++ b/packages/ses-ava/package.json @@ -1,6 +1,6 @@ { "name": "@endo/ses-ava", - "version": "1.0.0", + "version": "1.0.1", "description": "Virtualize Ava's test to work better under SES.", "keywords": [ "ses", @@ -35,11 +35,11 @@ "test": "ava" }, "dependencies": { - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { - "@endo/env-options": "^1.0.0", - "@endo/lockdown": "^1.0.0", + "@endo/env-options": "^1.0.1", + "@endo/lockdown": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "c8": "^7.14.0", diff --git a/packages/ses-integration-test/CHANGELOG.md b/packages/ses-integration-test/CHANGELOG.md index b95415cabd..a69baa6ccd 100644 --- a/packages/ses-integration-test/CHANGELOG.md +++ b/packages/ses-integration-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. +### [4.0.1](https://github.com/Agoric/SES-shim/compare/@endo/ses-integration-test@4.0.0...@endo/ses-integration-test@4.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/ses-integration-test + + + + + ## 4.0.0 (2023-12-12) diff --git a/packages/ses-integration-test/package.json b/packages/ses-integration-test/package.json index 1ae2631cab..2e17f1c462 100644 --- a/packages/ses-integration-test/package.json +++ b/packages/ses-integration-test/package.json @@ -1,6 +1,6 @@ { "name": "@endo/ses-integration-test", - "version": "4.0.0", + "version": "4.0.1", "private": true, "description": "", "keywords": [], @@ -30,7 +30,7 @@ "build:parcel": "parcel build scaffolding/parcel/index.html --public-url ./ -d bundles/parcel --no-minify" }, "dependencies": { - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { "@rollup/plugin-commonjs": "^13.0.0", diff --git a/packages/ses/CHANGELOG.md b/packages/ses/CHANGELOG.md index 77b161e4b2..fdbaa87dc6 100644 --- a/packages/ses/CHANGELOG.md +++ b/packages/ses/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.1](https://github.com/endojs/endo/compare/ses@1.0.0...ses@1.0.1) (2023-12-20) + +**Note:** Version bump only for package ses + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/ses@0.18.8...ses@1.0.0) (2023-12-12) diff --git a/packages/ses/package.json b/packages/ses/package.json index 93593eec46..512ac784bc 100644 --- a/packages/ses/package.json +++ b/packages/ses/package.json @@ -1,6 +1,6 @@ { "name": "ses", - "version": "1.0.0", + "version": "1.0.1", "description": "Hardened JavaScript for Fearless Cooperation", "keywords": [ "lockdown", @@ -62,11 +62,11 @@ "test:platform-compatibility": "node test/package/test.cjs" }, "dependencies": { - "@endo/env-options": "^1.0.0" + "@endo/env-options": "^1.0.1" }, "devDependencies": { - "@endo/compartment-mapper": "^1.0.0", - "@endo/static-module-record": "^1.0.0", + "@endo/compartment-mapper": "^1.0.1", + "@endo/static-module-record": "^1.0.1", "@endo/test262-runner": "^0.1.32", "ava": "^5.3.0", "babel-eslint": "^10.0.3", diff --git a/packages/skel/CHANGELOG.md b/packages/skel/CHANGELOG.md index 27e21fc6c5..ee7f205408 100644 --- a/packages/skel/CHANGELOG.md +++ b/packages/skel/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.1](https://github.com/endojs/endo/compare/@endo/skel@1.0.0...@endo/skel@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/skel + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/skel@0.1.3...@endo/skel@1.0.0) (2023-12-12) diff --git a/packages/skel/package.json b/packages/skel/package.json index 19b264dff5..df96387472 100644 --- a/packages/skel/package.json +++ b/packages/skel/package.json @@ -1,7 +1,7 @@ { "name": "@endo/skel", "private": true, - "version": "1.0.0", + "version": "1.0.1", "description": null, "keywords": [], "author": "Endo contributors", @@ -35,8 +35,8 @@ "lint:eslint": "eslint '**/*.js'" }, "devDependencies": { - "@endo/lockdown": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/lockdown": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "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 6970688c8e..2908daa642 100644 --- a/packages/static-module-record/CHANGELOG.md +++ b/packages/static-module-record/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.1](https://github.com/endojs/endo/compare/@endo/static-module-record@1.0.0...@endo/static-module-record@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/static-module-record + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/static-module-record@0.8.2...@endo/static-module-record@1.0.0) (2023-12-12) diff --git a/packages/static-module-record/package.json b/packages/static-module-record/package.json index f23fdfea11..bdb63326b0 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.0", + "version": "1.0.1", "description": "Shim for the SES StaticModuleRecord and module-to-program transformer", "keywords": [ "ses", @@ -40,10 +40,10 @@ "@babel/parser": "^7.23.6", "@babel/traverse": "^7.23.6", "@babel/types": "^7.23.6", - "ses": "^1.0.0" + "ses": "^1.0.1" }, "devDependencies": { - "@endo/ses-ava": "^1.0.0", + "@endo/ses-ava": "^1.0.1", "ava": "^5.3.0", "babel-eslint": "^10.0.3", "benchmark": "^2.1.4", diff --git a/packages/stream-node/CHANGELOG.md b/packages/stream-node/CHANGELOG.md index 9c993c3fab..b34694d3a8 100644 --- a/packages/stream-node/CHANGELOG.md +++ b/packages/stream-node/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.1](https://github.com/endojs/endo/compare/@endo/stream-node@1.0.0...@endo/stream-node@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/stream-node + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/stream-node@0.2.30...@endo/stream-node@1.0.0) (2023-12-12) diff --git a/packages/stream-node/package.json b/packages/stream-node/package.json index 7f63d3c78e..70bcb173bb 100644 --- a/packages/stream-node/package.json +++ b/packages/stream-node/package.json @@ -1,6 +1,6 @@ { "name": "@endo/stream-node", - "version": "1.0.0", + "version": "1.0.1", "description": "Uint8Array async iterator adapters for Node.js streams", "keywords": [ "stream", @@ -40,12 +40,12 @@ "test": "ava" }, "dependencies": { - "@endo/init": "^1.0.0", - "@endo/stream": "^1.0.0", - "ses": "^1.0.0" + "@endo/init": "^1.0.1", + "@endo/stream": "^1.0.1", + "ses": "^1.0.1" }, "devDependencies": { - "@endo/ses-ava": "^1.0.0", + "@endo/ses-ava": "^1.0.1", "@typescript-eslint/parser": "^6.6.0", "ava": "^5.3.0", "babel-eslint": "^10.0.3", diff --git a/packages/stream-types-test/CHANGELOG.md b/packages/stream-types-test/CHANGELOG.md index 5eb84ff255..70ec6db0b6 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.1](https://github.com/endojs/endo/compare/@endo/stream-types-test@1.0.0...@endo/stream-types-test@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/stream-types-test + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/stream-types-test@0.1.41...@endo/stream-types-test@1.0.0) (2023-12-12) **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 fc03f0497b..5ab0517425 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.0", + "version": "1.0.1", "private": true, "description": "TypeScript validation for Endo stream types.", "keywords": [], @@ -25,8 +25,8 @@ "test": "yarn lint:types" }, "dependencies": { - "@endo/stream": "^1.0.0", - "ses": "^1.0.0" + "@endo/stream": "^1.0.1", + "ses": "^1.0.1" }, "devDependencies": { "babel-eslint": "^10.0.3", diff --git a/packages/stream/CHANGELOG.md b/packages/stream/CHANGELOG.md index 35491bdb80..0e6f75c382 100644 --- a/packages/stream/CHANGELOG.md +++ b/packages/stream/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.1](https://github.com/endojs/endo/compare/@endo/stream@1.0.0...@endo/stream@1.0.1) (2023-12-20) + +**Note:** Version bump only for package @endo/stream + + + + + ## [1.0.0](https://github.com/endojs/endo/compare/@endo/stream@0.3.29...@endo/stream@1.0.0) (2023-12-12) diff --git a/packages/stream/package.json b/packages/stream/package.json index 12d32c807f..afc1acdd1b 100644 --- a/packages/stream/package.json +++ b/packages/stream/package.json @@ -1,6 +1,6 @@ { "name": "@endo/stream", - "version": "1.0.0", + "version": "1.0.1", "description": "Foundation for async iterators as streams", "keywords": [ "endo", @@ -43,13 +43,13 @@ "test": "ava" }, "dependencies": { - "@endo/eventual-send": "^1.0.0", - "@endo/promise-kit": "^1.0.0", - "ses": "^1.0.0" + "@endo/eventual-send": "^1.0.1", + "@endo/promise-kit": "^1.0.1", + "ses": "^1.0.1" }, "devDependencies": { - "@endo/init": "^1.0.0", - "@endo/ses-ava": "^1.0.0", + "@endo/init": "^1.0.1", + "@endo/ses-ava": "^1.0.1", "@typescript-eslint/parser": "^6.6.0", "ava": "^5.3.0", "babel-eslint": "^10.0.3", From c02aec92c3caa417d6bdf3c4f555f0b2694d9f9e Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Dec 2023 13:21:08 -0800 Subject: [PATCH 4/5] chore: Check in types --- 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 | 19 + packages/base64/src/decode.d.ts.map | 1 + packages/base64/src/encode.d.ts | 17 + 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 | 49 ++ 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/endo.d.ts | 2 + packages/cli/src/endo.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 | 9 + .../src/policy-format.d.ts.map | 1 + packages/compartment-mapper/src/policy.d.ts | 20 + .../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 | 280 +++++++++ .../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 | 32 ++ packages/daemon/index.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 | 5 + packages/daemon/src/connection.d.ts.map | 1 + packages/daemon/src/daemon.d.ts | 2 + packages/daemon/src/daemon.d.ts.map | 1 + packages/daemon/src/worker.d.ts | 2 + 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 | 5 + packages/env-options/src/env-options.d.ts.map | 1 + packages/errors/index.d.ts | 9 + 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 | 166 ++++++ 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 + 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 | 2 + 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 | 32 ++ packages/exo/src/exo-makers.d.ts.map | 1 + packages/exo/src/exo-tools.d.ts | 26 + 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 | 38 ++ 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 | 164 ++++++ packages/marshal/src/types.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/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 | 11 + 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 | 10 + 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 | 25 + 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/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 | 55 ++ 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 | 10 + 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/patternMatchers.d.ts | 30 + .../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 | 534 ++++++++++++++++++ packages/patterns/src/types.d.ts.map | 1 + packages/patterns/src/utils.d.ts | 24 + packages/patterns/src/utils.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/src/ses-ava-test.d.ts | 35 ++ 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 | 82 +++ .../src/static-module-record.d.ts.map | 1 + .../src/transform-analyze.d.ts | 18 + .../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 + 414 files changed, 4478 insertions(+) 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/endo.d.ts create mode 100644 packages/cli/src/endo.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/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/daemon.d.ts create mode 100644 packages/daemon/src/daemon.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/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/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/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/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/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/patterns/src/utils.d.ts create mode 100644 packages/patterns/src/utils.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/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/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..b184626d5e --- /dev/null +++ b/packages/base64/src/decode.d.ts @@ -0,0 +1,19 @@ +/** @type {typeof jsDecodeBase64} */ +export const decodeBase64: typeof jsDecodeBase64; +/** + * Decodes a Base64 string into bytes, as specified in + * https://tools.ietf.org/html/rfc4648#section-4 + * + * XSnap is a JavaScript engine based on Moddable/XS. + * The algorithm below is orders of magnitude too slow on this VM, but it + * arranges a native binding on the global object. + * We use that if it is available instead. + * + * @param {string} string Base64-encoded string + * @param {string} [name] The name of the string as it will appear in error + * messages. + * @returns {Uint8Array} decoded bytes + */ +declare function jsDecodeBase64(string: string, name?: string | undefined): Uint8Array; +export {}; +//# 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..d727cd830c --- /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":"AA0EA,oCAAoC;AACpC,2BADW,qBAAqB,CAIX;AAxErB;;;;;;;;;;;;;GAaG;AACH,wCALW,MAAM,8BAGJ,UAAU,CA0CtB"} \ 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..dff60c7d14 --- /dev/null +++ b/packages/base64/src/encode.d.ts @@ -0,0 +1,17 @@ +/** @type {typeof jsEncodeBase64} */ +export const encodeBase64: typeof jsEncodeBase64; +/** + * Encodes bytes into a Base64 string, as specified in + * https://tools.ietf.org/html/rfc4648#section-4 + * + * XSnap is a JavaScript engine based on Moddable/XS. + * The algorithm below is orders of magnitude too slow on this VM, but it + * arranges a native binding on the global object. + * We use that if it is available instead. + * + * @param {Uint8Array} data + * @returns {string} base64 encoding + */ +declare function jsEncodeBase64(data: Uint8Array): string; +export {}; +//# 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..170f11fba1 --- /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":"AAgEA,oCAAoC;AACpC,2BADW,qBAAqB,CAE8C;AA5D9E;;;;;;;;;;;GAWG;AACH,sCAHW,UAAU,GACR,MAAM,CA8ClB"} \ 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..7ac157d900 --- /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..7221425633 --- /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,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,mBAC5F,MAAM,KAAK,QAAQ,GAAG,CAAC;;2BArK1B,MAAM,WACN,GAAG,8DAGD,QAAQ,UAAU,CAAC;8BAyErB,MAAM,cACN,MAAM,+BAEJ,QAAQ,UAAU,CAAC;qBAgDrB,MAAM;GAsElB;;;;+BAtTsB,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..b403c9847c --- /dev/null +++ b/packages/bundle-source/src/fs.d.ts @@ -0,0 +1,49 @@ +/// +/// +/// +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, + * }} 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..bbbdd79a07 --- /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;;;;;;;;;;;;;;GAcG;AACH,uCAqBE"} \ 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..1dfd45c941 --- /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":"AAaO,iDAE+D"} \ 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..9c12b16892 --- /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;;;;GA4HC"} \ 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..56b7bb0835 --- /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":";AAwEO,iCALI,MAAM,iBACA,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,iBAClC,GAAG,SACH,YAAY;;;;;;;;;;;;;;;;;;;;EA+0BtB;mCAn5BmC,OAAO,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC;2CACxC,OAAO,qBAAqB,EAAE,eAAe,CAAC,CAAC,CAAC;qCAChD,OAAO,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;;;;;wBA+C1D,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;wBACtD,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;sBACtD,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;kBA1CE,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/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..91101d8c89 --- /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":"AA2DO,iDA8HN"} \ 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..594b830d36 --- /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":";;IA+CE;;;;;;;;;;;;MAsBC;;;AArDH,8BA2Ba"} \ 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..a28471a9b3 --- /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,CAqJ3B;AASM,mCANI,OAAO,QACP,MAAM,kBACN,MAAM,kBACN,MAAM,4EAahB;0BA/Ua,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..4a7dd7c2a2 --- /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":"AAyPO,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..62fdb28893 --- /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..2f92826e31 --- /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,MAAM,CAAC,CAU3B;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..6111619c7e --- /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..6d08519876 --- /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,CAAC,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..94c81bbee6 --- /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":"AAisBO,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;uBA3uBa,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..a93375f4be --- /dev/null +++ b/packages/compartment-mapper/src/policy-format.d.ts @@ -0,0 +1,9 @@ +export function policyLookupHelper(packagePolicy: object, field: string, itemName: string): boolean | object; +export function isAllowingEverything(policyValue: any): boolean; +export function isAttenuationDefinition(potentialDefinition: AttenuationDefinition): boolean; +export function getAttenuatorFromDefinition(attenuationDefinition: AttenuationDefinition): UnifiedAttenuationDefinition; +export function assertPackagePolicy(allegedPackagePolicy: unknown, path: string, url?: string | undefined): void; +export function assertPolicy(allegedPolicy: unknown): void; +export type AttenuationDefinition = import('./types.js').AttenuationDefinition; +export type UnifiedAttenuationDefinition = import('./types.js').UnifiedAttenuationDefinition; +//# 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..48157b5f86 --- /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":"AAqBO,kDALI,MAAM,SACN,MAAM,YACN,MAAM,GACJ,OAAO,GAAG,MAAM,CAqB5B;AAQM,kDAHI,GAAG,GACD,OAAO,CAGmB;AAOhC,6DAHI,qBAAqB,GACnB,OAAO,CAQnB;AAOM,mEAHI,qBAAqB,GACnB,4BAA4B,CAuBxC;AAyBM,0DALI,OAAO,QACP,MAAM,6BAEJ,IAAI,CA0DhB;AAOM,4CAHI,OAAO,GACL,IAAI,CAgChB;oCA9Ma,OAAO,YAAY,EAAE,qBAAqB;2CAC1C,OAAO,YAAY,EAAE,4BAA4B"} \ 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..c604301abc --- /dev/null +++ b/packages/compartment-mapper/src/policy.d.ts @@ -0,0 +1,20 @@ +/** + * Const string to identify the internal attenuators compartment + */ +export const ATTENUATORS_COMPARTMENT: ""; +export function detectAttenuators(policy: object): Array; +export function dependencyAllowedByPolicy(namingKit: PackageNamingKit, packagePolicy: any): boolean; +export function getPolicyForPackage(namingKit: PackageNamingKit, policy: object | undefined): object | undefined; +export function makeDeferredAttenuatorsProvider(compartments: Record, compartmentDescriptors: Record): DeferredAttenuatorsProvider; +export function attenuateGlobals(globalThis: object, globals: object, packagePolicy: object, attenuators: DeferredAttenuatorsProvider, pendingJobs: Array>, name?: string): void; +export function enforceModulePolicy(specifier: string, compartmentDescriptor: import('./types.js').CompartmentDescriptor, info?: object): void; +export function attenuateModuleHook(specifier: string, originalModuleRecord: ThirdPartyStaticModuleInterface, policy: object, attenuators: DeferredAttenuatorsProvider): Promise; +export type PackageNamingKit = import('./types.js').PackageNamingKit; +export type AttenuationDefinition = import('./types.js').AttenuationDefinition; +export type FullAttenuationDefinition = import('./types.js').FullAttenuationDefinition; +export type ImplicitAttenuationDefinition = import('./types.js').ImplicitAttenuationDefinition; +export type Attenuator = import('./types.js').Attenuator; +export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider; +export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; +export type ThirdPartyStaticModuleInterface = import('ses').ThirdPartyStaticModuleInterface; +//# 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..4d6b1faf1f --- /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":"AAsBA;;GAEG;AACH,sDAAuD;AA0ChD,0CAHI,MAAM,GACJ,MAAM,MAAM,CAAC,CAezB;AA0BM,qDAJI,gBAAgB,iBAChB,GAAG,GACD,OAAO,CASnB;AASM,+CAJI,gBAAgB,UAChB,MAAM,GAAC,SAAS,GACd,MAAM,GAAC,SAAS,CAsB5B;AAgDM,8DAJI,OAAO,MAAM,EAAE,WAAW,CAAC,0BAC3B,OAAO,MAAM,EAAE,qBAAqB,CAAC,GACnC,2BAA2B,CA2CvC;AAmDM,6CARI,MAAM,WACN,MAAM,iBACN,MAAM,eACN,2BAA2B,eAC3B,mBAAc,SACd,MAAM,GACJ,IAAI,CAgDhB;AAeM,+CAJI,MAAM,yBACN,OAAO,YAAY,EAAE,qBAAqB,SAC1C,MAAM,QAgChB;AA+CM,+CANI,MAAM,wBACN,+BAA+B,UAC/B,MAAM,eACN,2BAA2B,GACzB,QAAQ,+BAA+B,CAAC,CAyBpD;+BAzba,OAAO,YAAY,EAAE,gBAAgB;oCACrC,OAAO,YAAY,EAAE,qBAAqB;wCAC1C,OAAO,YAAY,EAAE,yBAAyB;4CAC9C,OAAO,YAAY,EAAE,6BAA6B;yBAClD,OAAO,YAAY,EAAE,UAAU;0CAC/B,OAAO,YAAY,EAAE,2BAA2B;oCAChD,OAAO,YAAY,EAAE,qBAAqB;8CAE1C,OAAO,KAAK,EAAE,+BAA+B"} \ 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..06cbeaa536 --- /dev/null +++ b/packages/compartment-mapper/src/types.d.ts @@ -0,0 +1,280 @@ +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; +}; +export type FullAttenuationDefinition = { + name: string; + params: Array; +}; +export type ImplicitAttenuationDefinition = Array; +export type AttenuationDefinition = FullAttenuationDefinition | any[]; +export type UnifiedAttenuationDefinition = { + displayName: string; + specifier: string | null; + params?: any[] | undefined; +}; +export type Attenuator = { + attenuateGlobals?: Function | undefined; + attenuateModule?: Function | undefined; +}; +export type DeferredAttenuatorsProvider = { + import: (attenuatorSpecifier: string | null) => Promise; +}; +//# 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..ef83854843 --- /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,MAAM,CAAC;+BAKf,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;;;UAKb,MAAM;YACN,MAAM,GAAG,CAAC;;4CAIX,MAAM,GAAG,CAAC;oCAIV,yBAAyB,QAAgC;;iBAKxD,MAAM;eACN,MAAM,GAAG,IAAI;;;;;;;;kCAYS,MAAM,GAAC,IAAI,KAAK,QAAQ,UAAU,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..9745a0cdcc --- /dev/null +++ b/packages/daemon/index.d.ts @@ -0,0 +1,32 @@ +export { makeEndoClient } from "./src/client.js"; +export function terminate(locator?: { + statePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function start(locator?: { + statePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function clean(locator?: { + statePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function restart(locator?: { + statePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function stop(locator?: { + statePath: string; + sockPath: string; + cachePath: string; +}): Promise; +export function reset(locator?: { + statePath: string; + sockPath: string; + cachePath: string; +}): Promise; +//# 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..73e6af0607 --- /dev/null +++ b/packages/daemon/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":";AAmCO;;;;kBAYN;AAEM;;;;iBA6CN;AASM;;;;kBAIN;AAEM;;;;iBAQN;AAEM;;;;kBAEN;AAEM;;;;kBASN"} \ 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..3ed7d99a2e --- /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":"AAYO,iDALI,MAAM,YACN,MAAM,aACN,QAAQ,IAAI,CAAC;;;GAUvB"} \ 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..87dd8a9247 --- /dev/null +++ b/packages/daemon/src/connection.d.ts @@ -0,0 +1,5 @@ +export function makeNodeNetstringCapTP(name: string, nodeWriter: import('stream').Writable, nodeReader: import('stream').Readable, 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..66eda312a9 --- /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":"AAiEO,yDANI,MAAM,cACN,OAAO,QAAQ,EAAE,QAAQ,cACzB,OAAO,QAAQ,EAAE,QAAQ,aACzB,QAAQ,IAAI,CAAC;;;EAmBvB"} \ 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..5d41346ad8 --- /dev/null +++ b/packages/daemon/src/daemon.d.ts @@ -0,0 +1,2 @@ +export function main(): Promise; +//# 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..d1e41b8e52 --- /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":"AA4HO,sCAmEN"} \ 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..60d83ad2f3 --- /dev/null +++ b/packages/daemon/src/worker.d.ts @@ -0,0 +1,2 @@ +export function main(): 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..f3196812cc --- /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":"AA+BO,sCAiCN"} \ 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..8d09822453 --- /dev/null +++ b/packages/env-options/src/env-options.d.ts @@ -0,0 +1,5 @@ +export function makeEnvironmentCaptor(aGlobal: object): Readonly<{ + getEnvironmentOption: (optionName: string, defaultSetting: string) => string; + getCapturedEnvironmentOptionNames: () => readonly 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..25d11ec746 --- /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":"AAwCO,+CAFI,MAAM;uCASJ,MAAM,kBACN,MAAM,KACJ,MAAM;;GA0CpB"} \ 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..6171d2a5e9 --- /dev/null +++ b/packages/errors/index.d.ts @@ -0,0 +1,9 @@ +/** @type {import("ses").AssertionFunctions } */ +export const assert: import("ses").AssertionFunctions; +export const bare: (payload: any, spaces?: string | number | undefined) => import("ses").ToStringable; +export const makeError: (details?: import("ses").Details | undefined, errorConstructor?: ErrorConstructor | 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; +//# 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..aaf79b6248 --- /dev/null +++ b/packages/errors/index.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.js"],"names":[],"mappings":"AAyDA,gDAAgD;AAEhD,qBAFW,OAAO,KAAK,EAAE,kBAAkB,CAGW"} \ 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..a1189aa955 --- /dev/null +++ b/packages/eventual-send/src/E.d.ts @@ -0,0 +1,166 @@ +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; /** + * 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 + */ +} & 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..182b360f7d --- /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":";qBAiNc;;iCArCN;;;;;;;;OAQG;;IAnCH;;;;;;;;;;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..4078015674 --- /dev/null +++ b/packages/eventual-send/src/local.d.ts @@ -0,0 +1,5 @@ +export function getMethodNames(val: any): (string | symbol)[]; +export function localApplyFunction(t: any, args: any): any; +export function localApplyMethod(t: any, method: 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..24e441c00a --- /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":"AA0CO,oCAHI,GAAG,GACD,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,CAqB7B;AAKM,2DAON;AAEM,sEAwBN;AAEM,gDAAmC"} \ 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..b72cc16fdf --- /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":"AA4FO,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..7fde7fc69e --- /dev/null +++ b/packages/eventual-send/utils.d.ts @@ -0,0 +1,2 @@ +export { getMethodNames } from "./src/local.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..aa0cd018b7 --- /dev/null +++ b/packages/exo/src/exo-makers.d.ts @@ -0,0 +1,32 @@ +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> | 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> | 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> | 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; +}; +export type Revoker = (exo: any) => boolean; +export type ReceiveRevoker = (revoke: Revoker) => void; +export type FarClassOptions = { + finish?: ((context: C) => void) | undefined; + stateShape?: StateShape | undefined; + receiveRevoker?: ReceiveRevoker | 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..8a6f387f2f --- /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":"AA6CO,6BAFM,EAAE,CAE2B;AAwEnC,mDAXiB,GAAG,EAAE,KAAK,GAAG,mDAE1B,MAAM;;;yGAsDhB;AAeM,sDAXiB,GAAG,EAAE,KAAK,GAAG,mEAE1B,MAAM;;;6GA+DhB;AAaM,yEARI,MAAM,uNAiBhB;wBA7MY,OAAO,gBAAgB,EAAE,SAAS;sBAClC,OAAO,gBAAgB,EAAE,OAAO;sFAMhC,OAAO,gBAAgB,EAAE,YAAY;oGAMrC,OAAO,gBAAgB,EAAE,UAAU;;;;;;;;4BAWrC,GAAG,KACD,OAAO;sCAKT,OAAO,KACL,IAAI;;wBAMO,CAAC,KAAK,IAAI;;;;kEAOrB,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..e41ecab80b --- /dev/null +++ b/packages/exo/src/exo-tools.d.ts @@ -0,0 +1,26 @@ +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 KitContextProvider = (facet: any) => KitContext; +export type ContextProvider = KitContextProvider | ((representative: any) => ClassContext); +//# 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..2a4fb94f18 --- /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":"AAmYO,sFANI,MAAM,mBACN,eAAe,qUA4FzB;AAWM,2EANI,MAAM,qdAyChB;qBAvfa,OAAO,gBAAgB,EAAE,MAAM;0BAC/B,OAAO,gBAAgB,EAAE,WAAW;iCACpC,OAAO,gBAAgB,EAAE,kBAAkB;8JAG5C,OAAO,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAC;;iBA0BzC,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;yCAIf,GAAG,KAAK,UAAU;qEACR,GAAG,KAAK,YAAY"} \ 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..a0b37996c5 --- /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":"AAgBA,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..0700de619c --- /dev/null +++ b/packages/init/debug.d.ts @@ -0,0 +1,2 @@ +export {}; +//# 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..e26a57a8ca --- /dev/null +++ b/packages/init/index.d.ts @@ -0,0 +1,2 @@ +export {}; +//# 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..cfd97c802f --- /dev/null +++ b/packages/init/pre-bundle-source.d.ts @@ -0,0 +1,2 @@ +export * from "./pre"; +//# 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..cbb6aba513 --- /dev/null +++ b/packages/init/pre-remoting.d.ts @@ -0,0 +1,3 @@ +export * from "./pre"; +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..bae97cb252 --- /dev/null +++ b/packages/init/pre.d.ts @@ -0,0 +1,2 @@ +export {}; +//# 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..c6799b696e --- /dev/null +++ b/packages/lp32/writer.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"writer.d.ts","sourceRoot":"","sources":["writer.js"],"names":[],"mappings":"AAeO,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..04f848b3f5 --- /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 { 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..0e210f66f1 --- /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":"AA2CO,qCAHI,QAAQ,GACN,QAAQ,QAAQ,CAAC,CAyC7B;uBA5Ea,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..97f9876ec1 --- /dev/null +++ b/packages/marshal/src/encodePassable.d.ts @@ -0,0 +1,38 @@ +export function recordNames(record: CopyRecord): string[]; +export function recordValues(record: CopyRecord, names: string[]): T[]; +export function zeroPad(n: unknown, size: number): string; +export function makeEncodePassable(encodeOptions?: EncodeOptions | undefined): (passable: Passable) => string; +export function makeDecodePassable(decodeOptions?: DecodeOptions | undefined): (encoded: string) => Passable; +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". The ordering of these prefixes is the same as the + * rankOrdering of their respective PassStyles. This table is imported by + * rankOrder.js 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; +}; +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; +}; +//# 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..74c2469115 --- /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":"AAiCO,uDAFM,MAAM,EAAE,CAQ+C;AAY7D,8DAHI,MAAM,EAAE,OAIsB;AAQlC,2BAJI,OAAO,QACP,MAAM,GACJ,MAAM,CASlB;AAqQM,0FAFiB,QAAQ,KAAK,MAAM,CAqE1C;AAuBM,yFAFgB,MAAM,KAAK,QAAQ,CAyDzC;AAGM,0DAA+D;AAKtE;;;;;;;;;;;;;;GAcG;AACH,gCAdU,OAAO,SAAS,EAAE,MAAM,CAAC,CA4BjC;wBAnfY,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;;mCAqS5B,SAAS,mBACH,QAAQ,KAAK,MAAM,KACjC,MAAM;8DAGQ,QAAQ,KAAK,MAAM,KACjC,MAAM;2BAEF,KAAK,mBACK,QAAQ,KAAK,MAAM,KACjC,MAAM;;;0CAgFS,MAAM,mBACP,MAAM,KAAK,QAAQ,KACjC,SAAS;sCAEI,MAAM,mBACL,MAAM,KAAK,QAAQ;kCAGtB,MAAM,mBACH,MAAM,KAAK,QAAQ,KACjC,KAAK"} \ 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..74d5d7723f --- /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,CAwK3C;uBA9ba,OAAO,kBAAkB,EAAE,QAAQ;uBACnC,OAAO,YAAY,EAAE,QAAQ;;4BAE7B,OAAO,YAAY,EAAE,aAAa;;4CAyChC,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..88ee9959c6 --- /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;uBAlca,OAAO,kBAAkB,EAAE,QAAQ;;gCAInC,GAAG;qCACH,GAAG;;8CAmED,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..ee453bea6f --- /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":"uBAUc,OAAO,YAAY,EAAE,QAAQ;yBACjB,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;;wBAS7B,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,CAoTlB"} \ 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..775e54b462 --- /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":"uBAIc,OAAO,kBAAkB,EAAE,QAAQ;AAkCjD;;;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..2afb19b98a --- /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":"AA6CO,oOAFI,kBAAkB;;;IAyUzB,gCAAgC;;IAEhC,kCAAkC;;EAGrC;iCArWa,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..f61e3216a6 --- /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;uBA3da,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;;gBAOhC,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..e9c1f79fe0 --- /dev/null +++ b/packages/marshal/src/types.d.ts @@ -0,0 +1,164 @@ +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; +}) | (EncodingClass<'slot'> & { + index: number; + iface?: import('@endo/pass-style').InterfaceSpec; +}) | (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: import('@endo/pass-style').Passable) => CapData; +export type FromCapData = (data: CapData) => import('@endo/pass-style').Passable; +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* `assert.note` 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: import('@endo/pass-style').Passable, right: import('@endo/pass-style').Passable) => 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..5306c79d95 --- /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,CAAA;CAC1C,KACb,cAA0B,MAAM,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IACpD,KAA2C,CAAC,EAAE,OAAO,kBAAkB,EAAE,aAAa,CAAA;CACzE,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,OAAO,kBAAkB,EAAE,QAAQ,KACjC,QAAQ,IAAI,CAAC;uCAMf,QAAQ,IAAI,CAAC,KACX,OAAO,kBAAkB,EAAE,QAAQ;;;;;eAMlC,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,OAAO,kBAAkB,EAAE,QAAQ,SACnC,OAAO,kBAAkB,EAAE,QAAQ,KACjC,cAAc;;;;;;;;;;;;;;;0BAId,WAAW"} \ 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/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..84b5d12bd2 --- /dev/null +++ b/packages/netstring/reader.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"reader.d.ts","sourceRoot":"","sources":["reader.js"],"names":[],"mappings":"AA8IO,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..b4410a1208 --- /dev/null +++ b/packages/pass-style/index.d.ts @@ -0,0 +1,11 @@ +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, toPassableError, isErrorLike } from "./src/error.js"; +export { assertPassableSymbol, isPassableSymbol, nameForPassableSymbol, passableSymbolForName } from "./src/symbol.js"; +export { passStyleOf, assertPassable } 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..671c73936c --- /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,CAyCpD"} \ 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..62b4d83923 --- /dev/null +++ b/packages/pass-style/src/error.d.ts @@ -0,0 +1,10 @@ +export function getErrorConstructor(name: any): ErrorConstructor | undefined; +export function isErrorLike(candidate: unknown): boolean; +/** + * @type {PassStyleHelper} + */ +export const ErrorHelper: PassStyleHelper; +export function toPassableError(err: Error): Error; +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..ebc2566f4c --- /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":"AAwBO,6EAA+D;AAoC/D,uCAHI,OAAO,GACL,OAAO,CAE6C;AAGjE;;GAEG;AACH,0BAFU,eAAe,CAqCtB;AASI,qCAHI,KAAK,GACH,KAAK,CAYjB;8BApHa,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..684c3201fd --- /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":"AA+EO,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;4BA7Ma,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..75e189ab4f --- /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":"AA2BO,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,CAmCnB;AAGM,4CAAyD;AAGzD,kFAQN;AAIC;;;;;GAKG;AACH,0CALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAsBnB;AA1BD;;;;;GAKG;AACH,kDALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAsBnB;sBAnKW,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..7e83857bb3 --- /dev/null +++ b/packages/pass-style/src/passStyleOf.d.ts @@ -0,0 +1,25 @@ +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 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..eb74ddd1c9 --- /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":"AAgMA,uDAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACH,0BAFU,WAAW,CAUhB;AAEE,+CAEN;8BA7Ma,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..9ae730e5f4 --- /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":"AAgEO,mCAFI,aAAa,WAE4C;AAyGpE,oCAAoC;AACpC,6BADW,qBAAqB,CAU9B;AAGF;;;GAGG;AACH,8BAFU,eAAe,CAqFtB;sBAhQW,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..e62990ec16 --- /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":"AA6JO,kCAHI,OAAO,sBAG6C;AAGxD,oDAAmE;sBA3J5D,OAAO,YAAY,EAAE,OAAO"} \ 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..7b3c3a0290 --- /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":"AA+BO,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..197e5df6f7 --- /dev/null +++ b/packages/pass-style/src/typeGuards.d.ts @@ -0,0 +1,55 @@ +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; +/** + * 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..0c7e0e0ef3 --- /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":"uBAEc,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;kCAmCvC,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;AAjB/D;;;;;;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..56e14a22f8 --- /dev/null +++ b/packages/patterns/index.d.ts @@ -0,0 +1,10 @@ +export { coerceToElements } from "./src/keys/copySet.js"; +export { coerceToBagEntries } from "./src/keys/copyBag.js"; +export * from "./src/types.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, getAwaitArgGuardPayload, isRawGuard, assertRawGuard, assertMethodGuard, getMethodGuardPayload, getInterfaceMethodKeys, assertInterfaceGuard, getInterfaceGuardPayload, kindOf } from "./src/patterns/patternMatchers.js"; +export { listDifference, objectMap } from "./src/utils.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..78a363976c --- /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":"AA4L2B,2FAAoC;AAApC,2HAAoC;AAnG/D,4CAA4C;AAC5C,0BADW,OAAO,UAAU,EAAE,UAAU,CAkItC;AAGK,sDAA2D;AAG3D,uDAA6D;AAG7D,sDAA6D;AAG7D,uDAA6D;AAG7D,sDAA2D;+CAxNgB,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..9086490c5b --- /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":"AAuFO,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..b2bf865b90 --- /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":"AAuRkC,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..08128f42f8 --- /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":"AA8S2B,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/patternMatchers.d.ts b/packages/patterns/src/patterns/patternMatchers.d.ts new file mode 100644 index 0000000000..1856e0d01e --- /dev/null +++ b/packages/patterns/src/patterns/patternMatchers.d.ts @@ -0,0 +1,30 @@ +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 function isAwaitArgGuard(specimen: any): specimen is import("../types.js").AwaitArgGuard; +export function assertAwaitArgGuard(specimen: any): asserts specimen is import("../types.js").AwaitArgGuard; +export function getAwaitArgGuardPayload(awaitArgGuard: import('./types.js').AwaitArgGuard): import('./types.js').AwaitArgGuardPayload; +export function isRawGuard(specimen: any): boolean; +export function assertRawGuard(specimen: any): void; +export function assertMethodGuard(specimen: any): asserts specimen is import("../types.js").MethodGuard; +export function getMethodGuardPayload(methodGuard: import('./types.js').MethodGuard): import('./types.js').MethodGuardPayload; +export function assertInterfaceGuard(specimen: any): asserts specimen is import("./types.js").InterfaceGuard>; +export function getInterfaceGuardPayload = Record>(interfaceGuard: import("./types.js").InterfaceGuard): import("./types.js").InterfaceGuardPayload; +export function getInterfaceMethodKeys(interfaceGuard: import('./types.js').InterfaceGuard): (string | symbol)[]; +//# 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..9ea8db0526 --- /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":";;;;;;;;;;;;;;;;;;;AAotDO,0CAHI,GAAG,mDAIyB;AAOhC,8CAHI,GAAG,2DAKb;AAUM,uDAHI,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,YAAY,EAAE,oBAAoB,CAKrD;AAsBM,mDAA+D;AAE/D,oDACyC;AA4CzC,4CAHI,GAAG,yDAKb;AAUM,mDAHI,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,YAAY,EAAE,kBAAkB,CAKnD;AAiEM,+CAHI,GAAG,mHAKb;AAWM,2QAGN;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/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..f757ed66e5 --- /dev/null +++ b/packages/patterns/src/types.d.ts @@ -0,0 +1,534 @@ +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; + /** + * 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..5bba0ae331 --- /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;;;;aASrC,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/patterns/src/utils.d.ts b/packages/patterns/src/utils.d.ts new file mode 100644 index 0000000000..36cd6ed827 --- /dev/null +++ b/packages/patterns/src/utils.d.ts @@ -0,0 +1,24 @@ +/** + * TODO as long as `@endo/pass-style` remains the proper home of the + * `Checker` type, it probably makes most sense to move `identChecker` + * into `@endo/pass-style` as well. + * + * 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; +export function fromUniqueEntries(allEntries: Iterable<[K, V]>): {}; +export function objectMap, R>(original: O, mapFn: (value: O[keyof O], key: keyof O) => R): Record; +export function listDifference(leftNames: Array, rightNames: Array): (string | symbol)[]; +export function throwLabeled(innerErr: Error, label: string | number, ErrorConstructor?: ErrorConstructor | undefined): never; +export function applyLabelingError(func: (...args: A[]) => R, args: A[], label?: string | number | undefined): R; +export function makeIterator(next: () => IteratorResult): IterableIterator; +export function makeArrayIterator(arr: T[]): IterableIterator; +export type Checker = import('@endo/marshal').Checker; +//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/utils.d.ts.map b/packages/patterns/src/utils.d.ts.map new file mode 100644 index 0000000000..81b9ba66fb --- /dev/null +++ b/packages/patterns/src/utils.d.ts.map @@ -0,0 +1 @@ +{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AACH,2BAFU,OAAO,CAEoC;AAY9C,0EAcN;AA0CM,4IAMN;AAQM,0CAHI,MAAM,MAAM,GAAG,MAAM,CAAC,cACtB,MAAM,MAAM,GAAG,MAAM,CAAC,uBAKhC;AAWM,uCAPI,KAAK,SACL,MAAM,GAAC,MAAM,qBACb,gBAAgB,eACd,KAAK,CAcjB;AAUM,uHAsBN;AAUM,mGAMN;AAUM,8EAcN;sBA7Ma,OAAO,eAAe,EAAE,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/src/ses-ava-test.d.ts b/packages/ses-ava/src/ses-ava-test.d.ts new file mode 100644 index 0000000000..3283db523e --- /dev/null +++ b/packages/ses-ava/src/ses-ava-test.d.ts @@ -0,0 +1,35 @@ +export type Logger = (...args: unknown[]) => void; +/** + * 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 ava `test` + * @param {T} avaTest + * @param {Logger} [logger] + * @returns {T} + */ +export function wrapTest>(avaTest: T, logger?: Logger | undefined): 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..6e0f8b28d1 --- /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":"+BAOuB,OAAO,EAAE,KAAK,IAAI;AAiJzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,8GAYC"} \ 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..dbae1574d9 --- /dev/null +++ b/packages/static-module-record/src/static-module-record.d.ts @@ -0,0 +1,82 @@ +/** + * @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] + * @returns {import('ses').PrecompiledStaticModuleInterface} + */ +export function StaticModuleRecord(source: string, opts?: string | Options | undefined): import('ses').PrecompiledStaticModuleInterface; +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] + * @returns {import('ses').PrecompiledStaticModuleInterface} + */ + 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..cd18757989 --- /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;AAEH;;;;;;;;GAQG;AACH,2CAJW,MAAM,wCAEJ,OAAO,KAAK,EAAE,gCAAgC,CAmC1D;;IAhED;;;;;;OAMG;IAEH;;;;OAIG;IAEH;;;;;;OAMG;IAEH;;;;;;;;OAQG;IACH,oBAJW,MAAM,uCAqChB;IAfC,kBAAyC;IACzC,eAMC;IACD,mBAA+C;IAC/C,8BAA0C;IAC1C,uBAAsC;IACtC,qBAAkC;IAClC,wBAAwC;IACxC,6BAA0C;;;iBA5D9B,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..a80112031e --- /dev/null +++ b/packages/static-module-record/src/transform-analyze.d.ts @@ -0,0 +1,18 @@ +export function makeModuleAnalyzer(babel: any): (moduleSource: any, { sourceUrl, sourceMapUrl, sourceMap, sourceMapHook }?: { + sourceUrl: any; + sourceMapUrl: any; + sourceMap: any; + sourceMapHook: any; +}) => 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..d1f08f91c8 --- /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":"AAuHO;;;;;;;;;;;;;GAGN;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..5034531187 --- /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":"AAcO,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..376ef44d25 --- /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").AsyncQueue>, data: import("./types.js").AsyncQueue>): { + /** + * @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..8d3f363b73 --- /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,mEAcN;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,yKAQN;AAUM,yKAyBN;;oBAtOoB,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..55f206a1f3 --- /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":"AAwNA;;;;;;GAMG;AACH,mCANW,GAAG;;gBAID,UAAU,CAUtB;;WAjNa,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..af65c9ec4f --- /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(arg: number); + /** + * @returns {number} + */ + get index(): number; + /** + * @param {number} offset + */ + set offset(arg: 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..a66927f5fc --- /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,uBAEC;IAZD;;OAEG;IACH,oBAEC;IASD;;OAEG;IACH,wBAUC;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..7233b4f906 --- /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(arg: 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..bce2da84ed --- /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,uBAEC;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 8dcbd7e4d53daf0cac562b46f57a1a98fb363157 Mon Sep 17 00:00:00 2001 From: Kris Kowal Date: Wed, 20 Dec 2023 13:28:04 -0800 Subject: [PATCH 5/5] chore: Remove checked-in types This reverts commit c02aec92c3caa417d6bdf3c4f555f0b2694d9f9e. --- 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 | 19 - packages/base64/src/decode.d.ts.map | 1 - packages/base64/src/encode.d.ts | 17 - 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 | 49 -- 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/endo.d.ts | 2 - packages/cli/src/endo.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 | 9 - .../src/policy-format.d.ts.map | 1 - packages/compartment-mapper/src/policy.d.ts | 20 - .../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 | 280 --------- .../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 | 32 -- packages/daemon/index.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 | 5 - packages/daemon/src/connection.d.ts.map | 1 - packages/daemon/src/daemon.d.ts | 2 - packages/daemon/src/daemon.d.ts.map | 1 - packages/daemon/src/worker.d.ts | 2 - 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 | 5 - packages/env-options/src/env-options.d.ts.map | 1 - packages/errors/index.d.ts | 9 - 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 | 166 ------ 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 - 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 | 2 - 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 | 32 -- packages/exo/src/exo-makers.d.ts.map | 1 - packages/exo/src/exo-tools.d.ts | 26 - 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 | 38 -- 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 | 164 ------ packages/marshal/src/types.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/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 | 11 - 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 | 10 - 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 | 25 - 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/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 | 55 -- 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 | 10 - 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/patternMatchers.d.ts | 30 - .../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 | 534 ------------------ packages/patterns/src/types.d.ts.map | 1 - packages/patterns/src/utils.d.ts | 24 - packages/patterns/src/utils.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/src/ses-ava-test.d.ts | 35 -- 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 | 82 --- .../src/static-module-record.d.ts.map | 1 - .../src/transform-analyze.d.ts | 18 - .../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 - 414 files changed, 4478 deletions(-) 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/endo.d.ts delete mode 100644 packages/cli/src/endo.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/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/daemon.d.ts delete mode 100644 packages/daemon/src/daemon.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/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/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/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/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/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/patterns/src/utils.d.ts delete mode 100644 packages/patterns/src/utils.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/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/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 b184626d5e..0000000000 --- a/packages/base64/src/decode.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** @type {typeof jsDecodeBase64} */ -export const decodeBase64: typeof jsDecodeBase64; -/** - * Decodes a Base64 string into bytes, as specified in - * https://tools.ietf.org/html/rfc4648#section-4 - * - * XSnap is a JavaScript engine based on Moddable/XS. - * The algorithm below is orders of magnitude too slow on this VM, but it - * arranges a native binding on the global object. - * We use that if it is available instead. - * - * @param {string} string Base64-encoded string - * @param {string} [name] The name of the string as it will appear in error - * messages. - * @returns {Uint8Array} decoded bytes - */ -declare function jsDecodeBase64(string: string, name?: string | undefined): Uint8Array; -export {}; -//# 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 d727cd830c..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":"AA0EA,oCAAoC;AACpC,2BADW,qBAAqB,CAIX;AAxErB;;;;;;;;;;;;;GAaG;AACH,wCALW,MAAM,8BAGJ,UAAU,CA0CtB"} \ 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 dff60c7d14..0000000000 --- a/packages/base64/src/encode.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** @type {typeof jsEncodeBase64} */ -export const encodeBase64: typeof jsEncodeBase64; -/** - * Encodes bytes into a Base64 string, as specified in - * https://tools.ietf.org/html/rfc4648#section-4 - * - * XSnap is a JavaScript engine based on Moddable/XS. - * The algorithm below is orders of magnitude too slow on this VM, but it - * arranges a native binding on the global object. - * We use that if it is available instead. - * - * @param {Uint8Array} data - * @returns {string} base64 encoding - */ -declare function jsEncodeBase64(data: Uint8Array): string; -export {}; -//# 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 170f11fba1..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":"AAgEA,oCAAoC;AACpC,2BADW,qBAAqB,CAE8C;AA5D9E;;;;;;;;;;;GAWG;AACH,sCAHW,UAAU,GACR,MAAM,CA8ClB"} \ 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 7ac157d900..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 7221425633..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,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,OAAO,CAAC;IAAC,GAAG,CAAC,EAAE,MAAM,CAAA;CAAE,mBAC5F,MAAM,KAAK,QAAQ,GAAG,CAAC;;2BArK1B,MAAM,WACN,GAAG,8DAGD,QAAQ,UAAU,CAAC;8BAyErB,MAAM,cACN,MAAM,+BAEJ,QAAQ,UAAU,CAAC;qBAgDrB,MAAM;GAsElB;;;;+BAtTsB,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 b403c9847c..0000000000 --- a/packages/bundle-source/src/fs.d.ts +++ /dev/null @@ -1,49 +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, - * }} 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 bbbdd79a07..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;;;;;;;;;;;;;;GAcG;AACH,uCAqBE"} \ 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 1dfd45c941..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":"AAaO,iDAE+D"} \ 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 9c12b16892..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;;;;GA4HC"} \ 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 56b7bb0835..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":";AAwEO,iCALI,MAAM,iBACA,OAAO,MAAM,EAAE,GAAG,CAAC,KAAK,IAAI,iBAClC,GAAG,SACH,YAAY;;;;;;;;;;;;;;;;;;;;EA+0BtB;mCAn5BmC,OAAO,qBAAqB,EAAE,OAAO,CAAC,CAAC,CAAC;2CACxC,OAAO,qBAAqB,EAAE,eAAe,CAAC,CAAC,CAAC;qCAChD,OAAO,qBAAqB,EAAE,SAAS,CAAC,CAAC,CAAC;;;;;wBA+C1D,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;wBACtD,OAAO,QAAQ,OAAO,YAAY,EAAE,SAAS,KAAK,IAAI;sBACtD,GAAG,KAAK,IAAI;;;;;;;;;;;;;;;;;;;;;;kBA1CE,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/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 91101d8c89..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":"AA2DO,iDA8HN"} \ 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 594b830d36..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":";;IA+CE;;;;;;;;;;;;MAsBC;;;AArDH,8BA2Ba"} \ 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 a28471a9b3..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,CAqJ3B;AASM,mCANI,OAAO,QACP,MAAM,kBACN,MAAM,kBACN,MAAM,4EAahB;0BA/Ua,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 4a7dd7c2a2..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":"AAyPO,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 62fdb28893..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 2f92826e31..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,MAAM,CAAC,CAU3B;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 6111619c7e..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 6d08519876..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,CAAC,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 94c81bbee6..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":"AAisBO,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;uBA3uBa,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 a93375f4be..0000000000 --- a/packages/compartment-mapper/src/policy-format.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export function policyLookupHelper(packagePolicy: object, field: string, itemName: string): boolean | object; -export function isAllowingEverything(policyValue: any): boolean; -export function isAttenuationDefinition(potentialDefinition: AttenuationDefinition): boolean; -export function getAttenuatorFromDefinition(attenuationDefinition: AttenuationDefinition): UnifiedAttenuationDefinition; -export function assertPackagePolicy(allegedPackagePolicy: unknown, path: string, url?: string | undefined): void; -export function assertPolicy(allegedPolicy: unknown): void; -export type AttenuationDefinition = import('./types.js').AttenuationDefinition; -export type UnifiedAttenuationDefinition = import('./types.js').UnifiedAttenuationDefinition; -//# 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 48157b5f86..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":"AAqBO,kDALI,MAAM,SACN,MAAM,YACN,MAAM,GACJ,OAAO,GAAG,MAAM,CAqB5B;AAQM,kDAHI,GAAG,GACD,OAAO,CAGmB;AAOhC,6DAHI,qBAAqB,GACnB,OAAO,CAQnB;AAOM,mEAHI,qBAAqB,GACnB,4BAA4B,CAuBxC;AAyBM,0DALI,OAAO,QACP,MAAM,6BAEJ,IAAI,CA0DhB;AAOM,4CAHI,OAAO,GACL,IAAI,CAgChB;oCA9Ma,OAAO,YAAY,EAAE,qBAAqB;2CAC1C,OAAO,YAAY,EAAE,4BAA4B"} \ 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 c604301abc..0000000000 --- a/packages/compartment-mapper/src/policy.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * Const string to identify the internal attenuators compartment - */ -export const ATTENUATORS_COMPARTMENT: ""; -export function detectAttenuators(policy: object): Array; -export function dependencyAllowedByPolicy(namingKit: PackageNamingKit, packagePolicy: any): boolean; -export function getPolicyForPackage(namingKit: PackageNamingKit, policy: object | undefined): object | undefined; -export function makeDeferredAttenuatorsProvider(compartments: Record, compartmentDescriptors: Record): DeferredAttenuatorsProvider; -export function attenuateGlobals(globalThis: object, globals: object, packagePolicy: object, attenuators: DeferredAttenuatorsProvider, pendingJobs: Array>, name?: string): void; -export function enforceModulePolicy(specifier: string, compartmentDescriptor: import('./types.js').CompartmentDescriptor, info?: object): void; -export function attenuateModuleHook(specifier: string, originalModuleRecord: ThirdPartyStaticModuleInterface, policy: object, attenuators: DeferredAttenuatorsProvider): Promise; -export type PackageNamingKit = import('./types.js').PackageNamingKit; -export type AttenuationDefinition = import('./types.js').AttenuationDefinition; -export type FullAttenuationDefinition = import('./types.js').FullAttenuationDefinition; -export type ImplicitAttenuationDefinition = import('./types.js').ImplicitAttenuationDefinition; -export type Attenuator = import('./types.js').Attenuator; -export type DeferredAttenuatorsProvider = import('./types.js').DeferredAttenuatorsProvider; -export type CompartmentDescriptor = import('./types.js').CompartmentDescriptor; -export type ThirdPartyStaticModuleInterface = import('ses').ThirdPartyStaticModuleInterface; -//# 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 4d6b1faf1f..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":"AAsBA;;GAEG;AACH,sDAAuD;AA0ChD,0CAHI,MAAM,GACJ,MAAM,MAAM,CAAC,CAezB;AA0BM,qDAJI,gBAAgB,iBAChB,GAAG,GACD,OAAO,CASnB;AASM,+CAJI,gBAAgB,UAChB,MAAM,GAAC,SAAS,GACd,MAAM,GAAC,SAAS,CAsB5B;AAgDM,8DAJI,OAAO,MAAM,EAAE,WAAW,CAAC,0BAC3B,OAAO,MAAM,EAAE,qBAAqB,CAAC,GACnC,2BAA2B,CA2CvC;AAmDM,6CARI,MAAM,WACN,MAAM,iBACN,MAAM,eACN,2BAA2B,eAC3B,mBAAc,SACd,MAAM,GACJ,IAAI,CAgDhB;AAeM,+CAJI,MAAM,yBACN,OAAO,YAAY,EAAE,qBAAqB,SAC1C,MAAM,QAgChB;AA+CM,+CANI,MAAM,wBACN,+BAA+B,UAC/B,MAAM,eACN,2BAA2B,GACzB,QAAQ,+BAA+B,CAAC,CAyBpD;+BAzba,OAAO,YAAY,EAAE,gBAAgB;oCACrC,OAAO,YAAY,EAAE,qBAAqB;wCAC1C,OAAO,YAAY,EAAE,yBAAyB;4CAC9C,OAAO,YAAY,EAAE,6BAA6B;yBAClD,OAAO,YAAY,EAAE,UAAU;0CAC/B,OAAO,YAAY,EAAE,2BAA2B;oCAChD,OAAO,YAAY,EAAE,qBAAqB;8CAE1C,OAAO,KAAK,EAAE,+BAA+B"} \ 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 06cbeaa536..0000000000 --- a/packages/compartment-mapper/src/types.d.ts +++ /dev/null @@ -1,280 +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; -}; -export type FullAttenuationDefinition = { - name: string; - params: Array; -}; -export type ImplicitAttenuationDefinition = Array; -export type AttenuationDefinition = FullAttenuationDefinition | any[]; -export type UnifiedAttenuationDefinition = { - displayName: string; - specifier: string | null; - params?: any[] | undefined; -}; -export type Attenuator = { - attenuateGlobals?: Function | undefined; - attenuateModule?: Function | undefined; -}; -export type DeferredAttenuatorsProvider = { - import: (attenuatorSpecifier: string | null) => Promise; -}; -//# 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 ef83854843..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,MAAM,CAAC;+BAKf,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;;;UAKb,MAAM;YACN,MAAM,GAAG,CAAC;;4CAIX,MAAM,GAAG,CAAC;oCAIV,yBAAyB,QAAgC;;iBAKxD,MAAM;eACN,MAAM,GAAG,IAAI;;;;;;;;kCAYS,MAAM,GAAC,IAAI,KAAK,QAAQ,UAAU,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 9745a0cdcc..0000000000 --- a/packages/daemon/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -export { makeEndoClient } from "./src/client.js"; -export function terminate(locator?: { - statePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function start(locator?: { - statePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function clean(locator?: { - statePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function restart(locator?: { - statePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function stop(locator?: { - statePath: string; - sockPath: string; - cachePath: string; -}): Promise; -export function reset(locator?: { - statePath: string; - sockPath: string; - cachePath: string; -}): Promise; -//# 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 73e6af0607..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":";AAmCO;;;;kBAYN;AAEM;;;;iBA6CN;AASM;;;;kBAIN;AAEM;;;;iBAQN;AAEM;;;;kBAEN;AAEM;;;;kBASN"} \ 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 3ed7d99a2e..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":"AAYO,iDALI,MAAM,YACN,MAAM,aACN,QAAQ,IAAI,CAAC;;;GAUvB"} \ 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 87dd8a9247..0000000000 --- a/packages/daemon/src/connection.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makeNodeNetstringCapTP(name: string, nodeWriter: import('stream').Writable, nodeReader: import('stream').Readable, 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 66eda312a9..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":"AAiEO,yDANI,MAAM,cACN,OAAO,QAAQ,EAAE,QAAQ,cACzB,OAAO,QAAQ,EAAE,QAAQ,aACzB,QAAQ,IAAI,CAAC;;;EAmBvB"} \ 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 5d41346ad8..0000000000 --- a/packages/daemon/src/daemon.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function main(): Promise; -//# 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 d1e41b8e52..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":"AA4HO,sCAmEN"} \ 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 60d83ad2f3..0000000000 --- a/packages/daemon/src/worker.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export function main(): 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 f3196812cc..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":"AA+BO,sCAiCN"} \ 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 8d09822453..0000000000 --- a/packages/env-options/src/env-options.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export function makeEnvironmentCaptor(aGlobal: object): Readonly<{ - getEnvironmentOption: (optionName: string, defaultSetting: string) => string; - getCapturedEnvironmentOptionNames: () => readonly 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 25d11ec746..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":"AAwCO,+CAFI,MAAM;uCASJ,MAAM,kBACN,MAAM,KACJ,MAAM;;GA0CpB"} \ 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 6171d2a5e9..0000000000 --- a/packages/errors/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** @type {import("ses").AssertionFunctions } */ -export const assert: import("ses").AssertionFunctions; -export const bare: (payload: any, spaces?: string | number | undefined) => import("ses").ToStringable; -export const makeError: (details?: import("ses").Details | undefined, errorConstructor?: ErrorConstructor | 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; -//# 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 aaf79b6248..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":"AAyDA,gDAAgD;AAEhD,qBAFW,OAAO,KAAK,EAAE,kBAAkB,CAGW"} \ 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 a1189aa955..0000000000 --- a/packages/eventual-send/src/E.d.ts +++ /dev/null @@ -1,166 +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; /** - * 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 - */ -} & 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 182b360f7d..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":";qBAiNc;;iCArCN;;;;;;;;OAQG;;IAnCH;;;;;;;;;;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 4078015674..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(t: any, args: any): any; -export function localApplyMethod(t: any, method: 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 24e441c00a..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":"AA0CO,oCAHI,GAAG,GACD,CAAC,MAAM,GAAC,MAAM,CAAC,EAAE,CAqB7B;AAKM,2DAON;AAEM,sEAwBN;AAEM,gDAAmC"} \ 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 b72cc16fdf..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":"AA4FO,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 7fde7fc69e..0000000000 --- a/packages/eventual-send/utils.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export { getMethodNames } from "./src/local.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 aa0cd018b7..0000000000 --- a/packages/exo/src/exo-makers.d.ts +++ /dev/null @@ -1,32 +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> | 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> | 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> | 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; -}; -export type Revoker = (exo: any) => boolean; -export type ReceiveRevoker = (revoke: Revoker) => void; -export type FarClassOptions = { - finish?: ((context: C) => void) | undefined; - stateShape?: StateShape | undefined; - receiveRevoker?: ReceiveRevoker | 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 8a6f387f2f..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":"AA6CO,6BAFM,EAAE,CAE2B;AAwEnC,mDAXiB,GAAG,EAAE,KAAK,GAAG,mDAE1B,MAAM;;;yGAsDhB;AAeM,sDAXiB,GAAG,EAAE,KAAK,GAAG,mEAE1B,MAAM;;;6GA+DhB;AAaM,yEARI,MAAM,uNAiBhB;wBA7MY,OAAO,gBAAgB,EAAE,SAAS;sBAClC,OAAO,gBAAgB,EAAE,OAAO;sFAMhC,OAAO,gBAAgB,EAAE,YAAY;oGAMrC,OAAO,gBAAgB,EAAE,UAAU;;;;;;;;4BAWrC,GAAG,KACD,OAAO;sCAKT,OAAO,KACL,IAAI;;wBAMO,CAAC,KAAK,IAAI;;;;kEAOrB,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 e41ecab80b..0000000000 --- a/packages/exo/src/exo-tools.d.ts +++ /dev/null @@ -1,26 +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 KitContextProvider = (facet: any) => KitContext; -export type ContextProvider = KitContextProvider | ((representative: any) => ClassContext); -//# 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 2a4fb94f18..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":"AAmYO,sFANI,MAAM,mBACN,eAAe,qUA4FzB;AAWM,2EANI,MAAM,qdAyChB;qBAvfa,OAAO,gBAAgB,EAAE,MAAM;0BAC/B,OAAO,gBAAgB,EAAE,WAAW;iCACpC,OAAO,gBAAgB,EAAE,kBAAkB;8JAG5C,OAAO,gBAAgB,EAAE,cAAc,CAAC,CAAC,CAAC;;iBA0BzC,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;yCAIf,GAAG,KAAK,UAAU;qEACR,GAAG,KAAK,YAAY"} \ 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 a0b37996c5..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":"AAgBA,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 0700de619c..0000000000 --- a/packages/init/debug.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# 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 e26a57a8ca..0000000000 --- a/packages/init/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# 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 cfd97c802f..0000000000 --- a/packages/init/pre-bundle-source.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./pre"; -//# 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 cbb6aba513..0000000000 --- a/packages/init/pre-remoting.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./pre"; -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 bae97cb252..0000000000 --- a/packages/init/pre.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export {}; -//# 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 c6799b696e..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":"AAeO,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 04f848b3f5..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 { 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 0e210f66f1..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":"AA2CO,qCAHI,QAAQ,GACN,QAAQ,QAAQ,CAAC,CAyC7B;uBA5Ea,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 97f9876ec1..0000000000 --- a/packages/marshal/src/encodePassable.d.ts +++ /dev/null @@ -1,38 +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 makeEncodePassable(encodeOptions?: EncodeOptions | undefined): (passable: Passable) => string; -export function makeDecodePassable(decodeOptions?: DecodeOptions | undefined): (encoded: string) => Passable; -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". The ordering of these prefixes is the same as the - * rankOrdering of their respective PassStyles. This table is imported by - * rankOrder.js 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; -}; -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; -}; -//# 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 74c2469115..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":"AAiCO,uDAFM,MAAM,EAAE,CAQ+C;AAY7D,8DAHI,MAAM,EAAE,OAIsB;AAQlC,2BAJI,OAAO,QACP,MAAM,GACJ,MAAM,CASlB;AAqQM,0FAFiB,QAAQ,KAAK,MAAM,CAqE1C;AAuBM,yFAFgB,MAAM,KAAK,QAAQ,CAyDzC;AAGM,0DAA+D;AAKtE;;;;;;;;;;;;;;GAcG;AACH,gCAdU,OAAO,SAAS,EAAE,MAAM,CAAC,CA4BjC;wBAnfY,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;;mCAqS5B,SAAS,mBACH,QAAQ,KAAK,MAAM,KACjC,MAAM;8DAGQ,QAAQ,KAAK,MAAM,KACjC,MAAM;2BAEF,KAAK,mBACK,QAAQ,KAAK,MAAM,KACjC,MAAM;;;0CAgFS,MAAM,mBACP,MAAM,KAAK,QAAQ,KACjC,SAAS;sCAEI,MAAM,mBACL,MAAM,KAAK,QAAQ;kCAGtB,MAAM,mBACH,MAAM,KAAK,QAAQ,KACjC,KAAK"} \ 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 74d5d7723f..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,CAwK3C;uBA9ba,OAAO,kBAAkB,EAAE,QAAQ;uBACnC,OAAO,YAAY,EAAE,QAAQ;;4BAE7B,OAAO,YAAY,EAAE,aAAa;;4CAyChC,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 88ee9959c6..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;uBAlca,OAAO,kBAAkB,EAAE,QAAQ;;gCAInC,GAAG;qCACH,GAAG;;8CAmED,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 ee453bea6f..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":"uBAUc,OAAO,YAAY,EAAE,QAAQ;yBACjB,OAAO,YAAY,EAAE,OAAO,CAAC,CAAC,CAAC;;wBAS7B,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,CAoTlB"} \ 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 775e54b462..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":"uBAIc,OAAO,kBAAkB,EAAE,QAAQ;AAkCjD;;;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 2afb19b98a..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":"AA6CO,oOAFI,kBAAkB;;;IAyUzB,gCAAgC;;IAEhC,kCAAkC;;EAGrC;iCArWa,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 f61e3216a6..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;uBA3da,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;;gBAOhC,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 e9c1f79fe0..0000000000 --- a/packages/marshal/src/types.d.ts +++ /dev/null @@ -1,164 +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; -}) | (EncodingClass<'slot'> & { - index: number; - iface?: import('@endo/pass-style').InterfaceSpec; -}) | (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: import('@endo/pass-style').Passable) => CapData; -export type FromCapData = (data: CapData) => import('@endo/pass-style').Passable; -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* `assert.note` 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: import('@endo/pass-style').Passable, right: import('@endo/pass-style').Passable) => 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 5306c79d95..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,CAAA;CAC1C,KACb,cAA0B,MAAM,CAAC,GAAG;IAAE,KAAK,EAAE,MAAM,CAAC;IACpD,KAA2C,CAAC,EAAE,OAAO,kBAAkB,EAAE,aAAa,CAAA;CACzE,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,OAAO,kBAAkB,EAAE,QAAQ,KACjC,QAAQ,IAAI,CAAC;uCAMf,QAAQ,IAAI,CAAC,KACX,OAAO,kBAAkB,EAAE,QAAQ;;;;;eAMlC,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,OAAO,kBAAkB,EAAE,QAAQ,SACnC,OAAO,kBAAkB,EAAE,QAAQ,KACjC,cAAc;;;;;;;;;;;;;;;0BAId,WAAW"} \ 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/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 84b5d12bd2..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":"AA8IO,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 b4410a1208..0000000000 --- a/packages/pass-style/index.d.ts +++ /dev/null @@ -1,11 +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, toPassableError, isErrorLike } from "./src/error.js"; -export { assertPassableSymbol, isPassableSymbol, nameForPassableSymbol, passableSymbolForName } from "./src/symbol.js"; -export { passStyleOf, assertPassable } 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 671c73936c..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,CAyCpD"} \ 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 62b4d83923..0000000000 --- a/packages/pass-style/src/error.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export function getErrorConstructor(name: any): ErrorConstructor | undefined; -export function isErrorLike(candidate: unknown): boolean; -/** - * @type {PassStyleHelper} - */ -export const ErrorHelper: PassStyleHelper; -export function toPassableError(err: Error): Error; -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 ebc2566f4c..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":"AAwBO,6EAA+D;AAoC/D,uCAHI,OAAO,GACL,OAAO,CAE6C;AAGjE;;GAEG;AACH,0BAFU,eAAe,CAqCtB;AASI,qCAHI,KAAK,GACH,KAAK,CAYjB;8BApHa,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 684c3201fd..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":"AA+EO,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;4BA7Ma,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 75e189ab4f..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":"AA2BO,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,CAmCnB;AAGM,4CAAyD;AAGzD,kFAQN;AAIC;;;;;GAKG;AACH,0CALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAsBnB;AA1BD;;;;;GAKG;AACH,kDALW;IAAE,YAAY,EAAE,MAAM,CAAA;CAAE,aACxB,SAAS,qDAEP,OAAO,CAsBnB;sBAnKW,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 7e83857bb3..0000000000 --- a/packages/pass-style/src/passStyleOf.d.ts +++ /dev/null @@ -1,25 +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 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 eb74ddd1c9..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":"AAgMA,uDAA0E;AAE1E;;;;;;;;;;;;;;GAcG;AACH,0BAFU,WAAW,CAUhB;AAEE,+CAEN;8BA7Ma,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 9ae730e5f4..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":"AAgEO,mCAFI,aAAa,WAE4C;AAyGpE,oCAAoC;AACpC,6BADW,qBAAqB,CAU9B;AAGF;;;GAGG;AACH,8BAFU,eAAe,CAqFtB;sBAhQW,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 e62990ec16..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":"AA6JO,kCAHI,OAAO,sBAG6C;AAGxD,oDAAmE;sBA3J5D,OAAO,YAAY,EAAE,OAAO"} \ 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 7b3c3a0290..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":"AA+BO,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 197e5df6f7..0000000000 --- a/packages/pass-style/src/typeGuards.d.ts +++ /dev/null @@ -1,55 +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; -/** - * 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 0c7e0e0ef3..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":"uBAEc,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;kCAmCvC,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;AAjB/D;;;;;;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 56e14a22f8..0000000000 --- a/packages/patterns/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export { coerceToElements } from "./src/keys/copySet.js"; -export { coerceToBagEntries } from "./src/keys/copyBag.js"; -export * from "./src/types.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, getAwaitArgGuardPayload, isRawGuard, assertRawGuard, assertMethodGuard, getMethodGuardPayload, getInterfaceMethodKeys, assertInterfaceGuard, getInterfaceGuardPayload, kindOf } from "./src/patterns/patternMatchers.js"; -export { listDifference, objectMap } from "./src/utils.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 78a363976c..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":"AA4L2B,2FAAoC;AAApC,2HAAoC;AAnG/D,4CAA4C;AAC5C,0BADW,OAAO,UAAU,EAAE,UAAU,CAkItC;AAGK,sDAA2D;AAG3D,uDAA6D;AAG7D,sDAA6D;AAG7D,uDAA6D;AAG7D,sDAA2D;+CAxNgB,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 9086490c5b..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":"AAuFO,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 b2bf865b90..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":"AAuRkC,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 08128f42f8..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":"AA8S2B,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/patternMatchers.d.ts b/packages/patterns/src/patterns/patternMatchers.d.ts deleted file mode 100644 index 1856e0d01e..0000000000 --- a/packages/patterns/src/patterns/patternMatchers.d.ts +++ /dev/null @@ -1,30 +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 function isAwaitArgGuard(specimen: any): specimen is import("../types.js").AwaitArgGuard; -export function assertAwaitArgGuard(specimen: any): asserts specimen is import("../types.js").AwaitArgGuard; -export function getAwaitArgGuardPayload(awaitArgGuard: import('./types.js').AwaitArgGuard): import('./types.js').AwaitArgGuardPayload; -export function isRawGuard(specimen: any): boolean; -export function assertRawGuard(specimen: any): void; -export function assertMethodGuard(specimen: any): asserts specimen is import("../types.js").MethodGuard; -export function getMethodGuardPayload(methodGuard: import('./types.js').MethodGuard): import('./types.js').MethodGuardPayload; -export function assertInterfaceGuard(specimen: any): asserts specimen is import("./types.js").InterfaceGuard>; -export function getInterfaceGuardPayload = Record>(interfaceGuard: import("./types.js").InterfaceGuard): import("./types.js").InterfaceGuardPayload; -export function getInterfaceMethodKeys(interfaceGuard: import('./types.js').InterfaceGuard): (string | symbol)[]; -//# 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 9ea8db0526..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":";;;;;;;;;;;;;;;;;;;AAotDO,0CAHI,GAAG,mDAIyB;AAOhC,8CAHI,GAAG,2DAKb;AAUM,uDAHI,OAAO,YAAY,EAAE,aAAa,GAChC,OAAO,YAAY,EAAE,oBAAoB,CAKrD;AAsBM,mDAA+D;AAE/D,oDACyC;AA4CzC,4CAHI,GAAG,yDAKb;AAUM,mDAHI,OAAO,YAAY,EAAE,WAAW,GAC9B,OAAO,YAAY,EAAE,kBAAkB,CAKnD;AAiEM,+CAHI,GAAG,mHAKb;AAWM,2QAGN;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/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 f757ed66e5..0000000000 --- a/packages/patterns/src/types.d.ts +++ /dev/null @@ -1,534 +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; - /** - * 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 5bba0ae331..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;;;;aASrC,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/patterns/src/utils.d.ts b/packages/patterns/src/utils.d.ts deleted file mode 100644 index 36cd6ed827..0000000000 --- a/packages/patterns/src/utils.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * TODO as long as `@endo/pass-style` remains the proper home of the - * `Checker` type, it probably makes most sense to move `identChecker` - * into `@endo/pass-style` as well. - * - * 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; -export function fromUniqueEntries(allEntries: Iterable<[K, V]>): {}; -export function objectMap, R>(original: O, mapFn: (value: O[keyof O], key: keyof O) => R): Record; -export function listDifference(leftNames: Array, rightNames: Array): (string | symbol)[]; -export function throwLabeled(innerErr: Error, label: string | number, ErrorConstructor?: ErrorConstructor | undefined): never; -export function applyLabelingError(func: (...args: A[]) => R, args: A[], label?: string | number | undefined): R; -export function makeIterator(next: () => IteratorResult): IterableIterator; -export function makeArrayIterator(arr: T[]): IterableIterator; -export type Checker = import('@endo/marshal').Checker; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/packages/patterns/src/utils.d.ts.map b/packages/patterns/src/utils.d.ts.map deleted file mode 100644 index 81b9ba66fb..0000000000 --- a/packages/patterns/src/utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["utils.js"],"names":[],"mappings":"AAiBA;;;;;;;;;;;;;GAaG;AACH,2BAFU,OAAO,CAEoC;AAY9C,0EAcN;AA0CM,4IAMN;AAQM,0CAHI,MAAM,MAAM,GAAG,MAAM,CAAC,cACtB,MAAM,MAAM,GAAG,MAAM,CAAC,uBAKhC;AAWM,uCAPI,KAAK,SACL,MAAM,GAAC,MAAM,qBACb,gBAAgB,eACd,KAAK,CAcjB;AAUM,uHAsBN;AAUM,mGAMN;AAUM,8EAcN;sBA7Ma,OAAO,eAAe,EAAE,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/src/ses-ava-test.d.ts b/packages/ses-ava/src/ses-ava-test.d.ts deleted file mode 100644 index 3283db523e..0000000000 --- a/packages/ses-ava/src/ses-ava-test.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export type Logger = (...args: unknown[]) => void; -/** - * 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 ava `test` - * @param {T} avaTest - * @param {Logger} [logger] - * @returns {T} - */ -export function wrapTest>(avaTest: T, logger?: Logger | undefined): 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 6e0f8b28d1..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":"+BAOuB,OAAO,EAAE,KAAK,IAAI;AAiJzC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA+BG;AACH,8GAYC"} \ 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 dbae1574d9..0000000000 --- a/packages/static-module-record/src/static-module-record.d.ts +++ /dev/null @@ -1,82 +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] - * @returns {import('ses').PrecompiledStaticModuleInterface} - */ -export function StaticModuleRecord(source: string, opts?: string | Options | undefined): import('ses').PrecompiledStaticModuleInterface; -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] - * @returns {import('ses').PrecompiledStaticModuleInterface} - */ - 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 cd18757989..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;AAEH;;;;;;;;GAQG;AACH,2CAJW,MAAM,wCAEJ,OAAO,KAAK,EAAE,gCAAgC,CAmC1D;;IAhED;;;;;;OAMG;IAEH;;;;OAIG;IAEH;;;;;;OAMG;IAEH;;;;;;;;OAQG;IACH,oBAJW,MAAM,uCAqChB;IAfC,kBAAyC;IACzC,eAMC;IACD,mBAA+C;IAC/C,8BAA0C;IAC1C,uBAAsC;IACtC,qBAAkC;IAClC,wBAAwC;IACxC,6BAA0C;;;iBA5D9B,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 a80112031e..0000000000 --- a/packages/static-module-record/src/transform-analyze.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -export function makeModuleAnalyzer(babel: any): (moduleSource: any, { sourceUrl, sourceMapUrl, sourceMap, sourceMapHook }?: { - sourceUrl: any; - sourceMapUrl: any; - sourceMap: any; - sourceMapHook: any; -}) => 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 d1f08f91c8..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":"AAuHO;;;;;;;;;;;;;GAGN;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 5034531187..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":"AAcO,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 376ef44d25..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").AsyncQueue>, data: import("./types.js").AsyncQueue>): { - /** - * @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 8d3f363b73..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,mEAcN;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,yKAQN;AAUM,yKAyBN;;oBAtOoB,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 55f206a1f3..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":"AAwNA;;;;;;GAMG;AACH,mCANW,GAAG;;gBAID,UAAU,CAUtB;;WAjNa,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 af65c9ec4f..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(arg: number); - /** - * @returns {number} - */ - get index(): number; - /** - * @param {number} offset - */ - set offset(arg: 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 a66927f5fc..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,uBAEC;IAZD;;OAEG;IACH,oBAEC;IASD;;OAEG;IACH,wBAUC;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 7233b4f906..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(arg: 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 bce2da84ed..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,uBAEC;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