From 63744cbe7db9b93a97a3b2e9a015aeebe8026dba Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 22 Nov 2024 15:38:01 -0800 Subject: [PATCH 1/2] chore(types): fix 'self' on this in prepareExo --- packages/vat-data/src/exo-utils.js | 5 ++++- packages/zoe/src/zoeService/installationStorage.js | 2 -- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/packages/vat-data/src/exo-utils.js b/packages/vat-data/src/exo-utils.js index c898bae3cce..867a63196e8 100644 --- a/packages/vat-data/src/exo-utils.js +++ b/packages/vat-data/src/exo-utils.js @@ -289,7 +289,10 @@ export const makeExoUtils = VatData => { * @param {Baggage} baggage * @param {string} kindName * @param {InterfaceGuard | undefined} interfaceGuard - * @param {M} methods + * @param {M & + * ThisType<{ + * self: RemotableObject & M; + * }>} methods * @param {DefineKindOptions<{ self: M }>} [options] * @returns {import('@endo/exo').Guarded} */ diff --git a/packages/zoe/src/zoeService/installationStorage.js b/packages/zoe/src/zoeService/installationStorage.js index f931c68838a..da6c53e6555 100644 --- a/packages/zoe/src/zoeService/installationStorage.js +++ b/packages/zoe/src/zoeService/installationStorage.js @@ -101,7 +101,6 @@ export const makeInstallationStorage = (getBundleCapForID, zoeBaggage) => { InstallationStorageI, { async installBundle(allegedBundle, bundleLabel) { - // @ts-expect-error TS doesn't understand context const { self } = this; // Bundle is a very open-ended type and we must decide here whether to // treat it as either a HashBundle or SourceBundle. So we have to @@ -149,7 +148,6 @@ export const makeInstallationStorage = (getBundleCapForID, zoeBaggage) => { } }, async getBundleIDFromInstallation(allegedInstallation) { - // @ts-expect-error TS doesn't understand context const { self } = this; const { bundleID } = await self.unwrapInstallation(allegedInstallation); // AWAIT From 0ca4a94974dfbc1640a166440ef356651ff1d7d6 Mon Sep 17 00:00:00 2001 From: Turadg Aleahmad Date: Fri, 22 Nov 2024 14:52:32 -0800 Subject: [PATCH 2/2] build: license for fast-usdc package --- packages/fast-usdc/package.json | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/fast-usdc/package.json b/packages/fast-usdc/package.json index dd8dbed1d48..eaa7bb45b51 100644 --- a/packages/fast-usdc/package.json +++ b/packages/fast-usdc/package.json @@ -74,6 +74,7 @@ ], "timeout": "20m" }, + "license": "Apache-2.0", "publishConfig": { "access": "public" }