@agoric/vat-data 0.5.3-dev-f8ea4a8.0 → 0.5.3-dev-59738aa.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/vat-data",
3
- "version": "0.5.3-dev-f8ea4a8.0+f8ea4a8",
3
+ "version": "0.5.3-dev-59738aa.0+59738aa",
4
4
  "description": "Safe access to VatData global",
5
5
  "type": "module",
6
6
  "repository": "https://github.com/Agoric/agoric-sdk",
@@ -19,12 +19,12 @@
19
19
  "author": "Agoric",
20
20
  "license": "Apache-2.0",
21
21
  "dependencies": {
22
- "@agoric/assert": "0.6.1-dev-f8ea4a8.0+f8ea4a8",
23
- "@agoric/base-zone": "0.1.1-dev-f8ea4a8.0+f8ea4a8",
24
- "@agoric/internal": "0.3.3-dev-f8ea4a8.0+f8ea4a8",
25
- "@agoric/store": "0.9.3-dev-f8ea4a8.0+f8ea4a8",
26
- "@agoric/swingset-liveslots": "0.10.3-dev-f8ea4a8.0+f8ea4a8",
27
- "@agoric/vow": "0.1.1-dev-f8ea4a8.0+f8ea4a8",
22
+ "@agoric/assert": "0.6.1-dev-59738aa.0+59738aa",
23
+ "@agoric/base-zone": "0.1.1-dev-59738aa.0+59738aa",
24
+ "@agoric/internal": "0.3.3-dev-59738aa.0+59738aa",
25
+ "@agoric/store": "0.9.3-dev-59738aa.0+59738aa",
26
+ "@agoric/swingset-liveslots": "0.10.3-dev-59738aa.0+59738aa",
27
+ "@agoric/vow": "0.1.1-dev-59738aa.0+59738aa",
28
28
  "@endo/exo": "^1.3.0",
29
29
  "@endo/patterns": "^1.3.0"
30
30
  },
@@ -52,5 +52,5 @@
52
52
  "typeCoverage": {
53
53
  "atLeast": 98.79
54
54
  },
55
- "gitHead": "f8ea4a8351d880722c3b33824402daed2716e47d"
55
+ "gitHead": "59738aa5d0eafdb105b63400631eb49644d555cf"
56
56
  }
package/src/exo-utils.js CHANGED
@@ -1,22 +1,22 @@
1
1
  // @jessie-check
2
- /* eslint-disable @typescript-eslint/prefer-ts-expect-error -- for casting from deprecated types that aren't worth fixing */
2
+
3
3
  import { initEmpty } from '@agoric/store';
4
4
 
5
5
  import { provide, VatData as globalVatData } from './vat-data-bindings.js';
6
6
 
7
- /** @typedef {import('@endo/patterns').MethodGuard} MethodGuard */
7
+ /** @import {MethodGuard} from '@endo/patterns' */
8
8
  /**
9
9
  * @template {Record<PropertyKey, MethodGuard>} [T=Record<PropertyKey, MethodGuard>]
10
10
  * @typedef {import('@endo/patterns').InterfaceGuard<T>} InterfaceGuard
11
11
  */
12
12
  /** @template L,R @typedef {import('@endo/eventual-send').RemotableBrand<L, R>} RemotableBrand */
13
13
  /** @template T @typedef {import('@endo/far').ERef<T>} ERef */
14
- /** @typedef {import('@agoric/swingset-liveslots').Baggage} Baggage */
14
+ /** @import {Baggage} from '@agoric/swingset-liveslots' */
15
15
  /** @template T @typedef {import('@agoric/swingset-liveslots').DefineKindOptions<T>} DefineKindOptions */
16
16
  /** @template T @typedef {import('@agoric/swingset-liveslots').KindFacet<T>} KindFacet */
17
17
  /** @template T @typedef {import('@agoric/swingset-liveslots').KindFacets<T>} KindFacets */
18
- /** @typedef {import('@agoric/swingset-liveslots').DurableKindHandle} DurableKindHandle */
19
- /** @typedef {import('@agoric/swingset-liveslots').InterfaceGuardKit} InterfaceGuardKit */
18
+ /** @import {DurableKindHandle} from '@agoric/swingset-liveslots' */
19
+ /** @import {InterfaceGuardKit} from '@agoric/swingset-liveslots' */
20
20
 
21
21
  /**
22
22
  * Make a version of the argument function that takes a kind context but
@@ -106,7 +106,7 @@ export const makeExoUtils = VatData => {
106
106
  * @returns {(...args: Parameters<I>) => import('@endo/exo/src/exo-makers.js').Guarded<T>}
107
107
  */
108
108
  const defineVirtualExoClass = (tag, interfaceGuard, init, methods, options) =>
109
- // @ts-ignore cast
109
+ // @ts-expect-error cast
110
110
  defineKind(tag, init, methods, {
111
111
  ...options,
112
112
  thisfulMethods: true,
@@ -137,7 +137,7 @@ export const makeExoUtils = VatData => {
137
137
  facets,
138
138
  options,
139
139
  ) =>
140
- // @ts-ignore cast
140
+ // @ts-expect-error cast
141
141
  defineKindMulti(tag, init, facets, {
142
142
  ...options,
143
143
  thisfulMethods: true,
@@ -168,7 +168,7 @@ export const makeExoUtils = VatData => {
168
168
  methods,
169
169
  options,
170
170
  ) =>
171
- // @ts-ignore cast
171
+ // @ts-expect-error cast
172
172
  defineDurableKind(kindHandle, init, methods, {
173
173
  ...options,
174
174
  thisfulMethods: true,
@@ -199,7 +199,7 @@ export const makeExoUtils = VatData => {
199
199
  facets,
200
200
  options,
201
201
  ) =>
202
- // @ts-ignore cast
202
+ // @ts-expect-error cast
203
203
  defineDurableKindMulti(kindHandle, init, facets, {
204
204
  ...options,
205
205
  thisfulMethods: true,
package/src/index.js CHANGED
@@ -42,7 +42,6 @@ export {
42
42
  prepareSingleton,
43
43
  } from './exo-utils.js';
44
44
 
45
- /** @typedef {import('@agoric/swingset-liveslots').DurableKindHandle} DurableKindHandle */
46
45
  /** @template T @typedef {import('@agoric/swingset-liveslots').DefineKindOptions<T>} DefineKindOptions */
47
46
 
48
47
  // Copy this type because aliasing it by `import('@agoric/swingset-liveslots').Baggage`
@@ -1,6 +1,5 @@
1
1
  // modeled on test-is-instance-heap-class-kits.js
2
2
 
3
- // eslint-disable-next-line import/order
4
3
  import { test } from './prepare-test-env-ava.js';
5
4
 
6
5
  // eslint-disable-next-line import/order
@@ -19,8 +18,6 @@ const DownCounterI = M.interface('DownCounter', {
19
18
  });
20
19
 
21
20
  test('test isInstance defineVirtualExoClass', t => {
22
- // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
23
- // @ts-ignore IsInstance merged after last sync with endo
24
21
  /** @type {import('@endo/exo/src/exo-makers.js').IsInstance} */
25
22
  let isInstance;
26
23
  const makeUpCounter = defineVirtualExoClass(
@@ -62,8 +59,6 @@ test('test isInstance defineVirtualExoClass', t => {
62
59
  });
63
60
 
64
61
  test('test isInstance defineVirtualExoClassKit', t => {
65
- // eslint-disable-next-line @typescript-eslint/prefer-ts-expect-error
66
- // @ts-ignore IsInstance merged after last sync with endo
67
62
  /** @type {import('@endo/exo/src/exo-makers.js').IsInstance} */
68
63
  let isInstance;
69
64
  const makeCounterKit = defineVirtualExoClassKit(