@agoric/swingset-liveslots 0.10.3-dev-1289bc4.0 → 0.10.3-dev-9450530.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@agoric/swingset-liveslots",
3
- "version": "0.10.3-dev-1289bc4.0+1289bc4",
3
+ "version": "0.10.3-dev-9450530.0+9450530",
4
4
  "description": "SwingSet ocap support layer",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -17,9 +17,9 @@
17
17
  "lint:eslint": "eslint ."
18
18
  },
19
19
  "dependencies": {
20
- "@agoric/assert": "0.6.1-dev-1289bc4.0+1289bc4",
21
- "@agoric/internal": "0.3.3-dev-1289bc4.0+1289bc4",
22
- "@agoric/store": "0.9.3-dev-1289bc4.0+1289bc4",
20
+ "@agoric/assert": "0.6.1-dev-9450530.0+9450530",
21
+ "@agoric/internal": "0.3.3-dev-9450530.0+9450530",
22
+ "@agoric/store": "0.9.3-dev-9450530.0+9450530",
23
23
  "@endo/eventual-send": "^0.17.3",
24
24
  "@endo/exo": "^0.2.3",
25
25
  "@endo/far": "^0.2.19",
@@ -63,5 +63,5 @@
63
63
  "publishConfig": {
64
64
  "access": "public"
65
65
  },
66
- "gitHead": "1289bc442ba74598fe765ab151031dda13327ec0"
66
+ "gitHead": "9450530d5a886c2332d2da7ae63eca73359c0be1"
67
67
  }
@@ -718,6 +718,11 @@ export const makeVirtualObjectManager = (
718
718
  finish = undefined,
719
719
  stateShape = undefined,
720
720
  thisfulMethods = false,
721
+ } = options;
722
+ let {
723
+ // These are "let" rather than "const" only to accommodate code
724
+ // below that tolerates an old version of the vat-data package.
725
+ // See there for more explanation.
721
726
  interfaceGuard = undefined,
722
727
  interfaceGuardKit = undefined,
723
728
  } = options;
@@ -749,6 +754,25 @@ export const makeVirtualObjectManager = (
749
754
  }
750
755
  case 'many': {
751
756
  assert(multifaceted);
757
+
758
+ if (interfaceGuard && interfaceGuardKit === undefined) {
759
+ // This if clause is for the purpose of tolerating versions
760
+ // of the vata-data package that precede
761
+ // https://github.com/Agoric/agoric-sdk/pull/8220 .
762
+ // Before that PR, the options name `interfaceGuard` would
763
+ // actually carry the InterfaceGuardKit.
764
+ //
765
+ // Tolerating the old vat-data with the new types.
766
+ // at-expect-error here causes inconsistent reports, so
767
+ // doing the at-ts-ignore-error ritual instead.
768
+ // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
769
+ // @ts-ignore
770
+ interfaceGuardKit = interfaceGuard;
771
+ interfaceGuard = undefined;
772
+ // The rest of the code from here makes no further compromise
773
+ // for that old version of the vat-data package.
774
+ }
775
+
752
776
  interfaceGuard === undefined ||
753
777
  Fail`Use an interfaceGuardKit, not an interfaceGuard, to protect class kit ${q(
754
778
  tag,