@agoric/notifier 0.6.3-upgrade-16-dev-d45b478.0 → 0.6.3-upgrade-16-dev-5e17008.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/notifier",
3
- "version": "0.6.3-upgrade-16-dev-d45b478.0+d45b478",
3
+ "version": "0.6.3-upgrade-16-dev-5e17008.0+5e17008",
4
4
  "description": "Notifier allows services to update clients about state changes using a stream of promises",
5
5
  "type": "module",
6
6
  "main": "src/index.js",
@@ -33,19 +33,19 @@
33
33
  },
34
34
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
35
35
  "dependencies": {
36
- "@agoric/assert": "0.6.1-upgrade-16-dev-d45b478.0+d45b478",
37
- "@agoric/internal": "0.3.3-upgrade-16-dev-d45b478.0+d45b478",
38
- "@agoric/vat-data": "0.5.3-upgrade-16-dev-d45b478.0+d45b478",
36
+ "@agoric/assert": "0.6.1-upgrade-16-dev-5e17008.0+5e17008",
37
+ "@agoric/internal": "0.3.3-upgrade-16-dev-5e17008.0+5e17008",
38
+ "@agoric/vat-data": "0.5.3-upgrade-16-dev-5e17008.0+5e17008",
39
39
  "@endo/far": "^1.1.2",
40
40
  "@endo/marshal": "^1.5.0",
41
41
  "@endo/patterns": "^1.4.0",
42
42
  "@endo/promise-kit": "^1.1.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@agoric/kmarshal": "0.1.1-upgrade-16-dev-d45b478.0+d45b478",
46
- "@agoric/swing-store": "0.9.2-upgrade-16-dev-d45b478.0+d45b478",
47
- "@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-d45b478.0+d45b478",
48
- "@agoric/swingset-vat": "0.32.3-upgrade-16-dev-d45b478.0+d45b478",
45
+ "@agoric/kmarshal": "0.1.1-upgrade-16-dev-5e17008.0+5e17008",
46
+ "@agoric/swing-store": "0.9.2-upgrade-16-dev-5e17008.0+5e17008",
47
+ "@agoric/swingset-liveslots": "0.10.3-upgrade-16-dev-5e17008.0+5e17008",
48
+ "@agoric/swingset-vat": "0.32.3-upgrade-16-dev-5e17008.0+5e17008",
49
49
  "@endo/init": "^1.1.2",
50
50
  "@endo/ses-ava": "^1.2.2",
51
51
  "ava": "^5.3.0",
@@ -78,5 +78,5 @@
78
78
  "typeCoverage": {
79
79
  "atLeast": 90.34
80
80
  },
81
- "gitHead": "d45b478fe2dd21ff463660522e1998ab3e8bbe65"
81
+ "gitHead": "5e1700835993739016a08936193644c1ae5abb13"
82
82
  }
@@ -38,7 +38,7 @@ export const makeAsyncIterableFromNotifier: <T_1>(topic: ERef<LatestTopic<T_1>>)
38
38
  } & import("@endo/pass-style").RemotableObject<`Alleged: ${string}`> & import("@endo/eventual-send").RemotableBrand<{}, {
39
39
  [Symbol.asyncIterator]: () => import("../src/types.js").ForkableAsyncIterableIterator<T_1, T_1>;
40
40
  }>;
41
- export function observeIterator<T_1>(asyncIteratorP: ERef<AsyncIterator<T_1, any, undefined>>, iterationObserver: Partial<IterationObserver<T_1>>): Promise<undefined>;
41
+ export function observeIterator<T_1>(asyncIteratorP: ERef<AsyncIterator<T_1>>, iterationObserver: Partial<IterationObserver<T_1>>): Promise<undefined>;
42
42
  export function observeIteration<T_1>(asyncIterableP: ERef<AsyncIterable<T_1>>, iterationObserver: Partial<IterationObserver<T_1>>): Promise<undefined>;
43
43
  export function observeNotifier<T_1>(notifierP: ERef<LatestTopic<T_1>>, iterationObserver: Partial<IterationObserver<T_1>>): Promise<undefined>;
44
44
  import type { LatestTopic } from '../src/types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"asyncIterableAdaptor.d.ts","sourceRoot":"","sources":["asyncIterableAdaptor.js"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH;;;;GAA6D;AAatD,gCAH8B,GAAC,iHACzB,OAAO,CAAC,SAAS,CAAC,CAyB9B;AAaM,iCAH8B,GAAC,iGACzB,OAAO,CAAC,SAAS,CAAC,CAK9B;AAaM,gCAH8B,GAAC,0FACzB,OAAO,CAAC,SAAS,CAAC,CAGkC;iCApGF,iBAAiB;0BADzD,WAAW;uCAC6B,iBAAiB"}
1
+ {"version":3,"file":"asyncIterableAdaptor.d.ts","sourceRoot":"","sources":["asyncIterableAdaptor.js"],"names":[],"mappings":"AAKA;;;GAGG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH;;;;GAA6D;AAatD,qDAJI,KAAK,aAAa,CAAC,GAAC,CAAC,CAAC,qBACtB,OAAO,CAAC,kBAAkB,GAAC,CAAC,CAAC,GAC3B,OAAO,CAAC,SAAS,CAAC,CAyB9B;AAaM,sDAJI,KAAK,aAAa,CAAC,GAAC,CAAC,CAAC,qBACtB,OAAO,CAAC,kBAAkB,GAAC,CAAC,CAAC,GAC3B,OAAO,CAAC,SAAS,CAAC,CAK9B;AAaM,gDAJI,KAAK,YAAY,GAAC,CAAC,CAAC,qBACpB,OAAO,CAAC,kBAAkB,GAAC,CAAC,CAAC,GAC3B,OAAO,CAAC,SAAS,CAAC,CAGkC;iCApGF,iBAAiB;0BADzD,WAAW;uCAC6B,iBAAiB"}
package/src/notifier.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- export function makeNotifier<T>(sharableInternalsP: globalThis.ERef<LatestTopic<T>>): Notifier<T>;
2
- export function makeNotifierFromSubscriber<T>(subscriber: globalThis.ERef<Subscriber<T>>): Notifier<T>;
1
+ export function makeNotifier<T>(sharableInternalsP: ERef<LatestTopic<T>>): Notifier<T>;
2
+ export function makeNotifierFromSubscriber<T>(subscriber: ERef<Subscriber<T>>): Notifier<T>;
3
3
  export function makeNotifierKit<T>(...initialStateArr: [] | [T]): NotifierRecord<T>;
4
4
  export function makeNotifierFromAsyncIterable<T>(asyncIterableP: ERef<AsyncIterable<T>>): Notifier<T>;
5
5
  import type { LatestTopic } from './types.js';
@@ -1 +1 @@
1
- {"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["notifier.js"],"names":[],"mappings":"AAiBO,6BAFe,CAAC,oEAwBtB;AAOM,2CAFe,CAAC,2DAiBtB;AAoBM,gCAFqB,CAAC,sBADlB,EAAE,GAAG,CACY,CAAC,AADX,CAAC,qBAuBlB;AAcM,8CAFe,CAAC,kBADZ,IAAI,CAAC,aAAa,CACP,CAAC,AADQ,CAAC,CAAC,eAwEhC;iCA/K6F,YAAY;8BAAZ,YAAY;gCAAZ,YAAY;oCAAZ,YAAY"}
1
+ {"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["notifier.js"],"names":[],"mappings":"AAiBO,6BAJM,CAAC,sBACH,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAClB,SAAS,CAAC,CAAC,CAwBvB;AAOM,2CAJM,CAAC,cACH,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GACjB,SAAS,CAAC,CAAC,CAiBvB;AAoBM,gCAJM,CAAC,sBACH,EAAE,GAAG,CAAC,CAAC,CAAC,GACN,eAAe,CAAC,CAAC,CAsB7B;AAcM,8CAJM,CAAC,kBACH,IAAI,CAAC,aAAa,CAAC,CAAC,CAAC,CAAC,GACpB,SAAS,CAAC,CAAC,CAuEvB;iCA/K6F,YAAY;8BAAZ,YAAY;gCAAZ,YAAY;oCAAZ,YAAY"}
@@ -40,11 +40,7 @@ export function prepareDurablePublishKit(baggage: import("@agoric/swingset-lives
40
40
  };
41
41
  }>;
42
42
  export const SubscriberShape: import("@endo/patterns").Matcher;
43
- export type DurablePublishKitEphemeralKey = {
44
- publish: (nonFinalValue: any) => void;
45
- finish: (completion: any) => void;
46
- fail: (reason: any) => void;
47
- };
43
+ export type DurablePublishKitEphemeralKey = Publisher<any>;
48
44
  export type DurablePublishKitEphemeralData = {
49
45
  /**
50
46
  * The current-result promise
@@ -62,4 +58,5 @@ export type DurablePublishKitEphemeralData = {
62
58
  tailR: ((value: any) => void) | undefined;
63
59
  };
64
60
  import type { PublishKit } from '../src/types.js';
61
+ import type { Publisher } from '../src/types.js';
65
62
  //# sourceMappingURL=publish-kit.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"publish-kit.d.ts","sourceRoot":"","sources":["publish-kit.js"],"names":[],"mappings":"AAwBA;;;;GAIG;AAGH,gEAA6D;AAC7D;;;GAGG;;;;;AAMH;;;;GAOE;AAEF;;;GAMG;AAEH;;;GAMG;AA+CI,+BAFiB,CAAC,mBA4FxB;AA6MM,kDAHI,OAAO,4BAA4B,EAAE,OAAO,YAC5C,MAAM;;;;;;;;;;;;GA2EhB;AAGD,+DAAyD;;;;;;;;;;;cAzO3C,OAAO,KAAG,GAAG,SAAS;;;;WAEtB,OAAO,KAAG;;;;;WACV,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS;;gCAnPsI,iBAAiB"}
1
+ {"version":3,"file":"publish-kit.d.ts","sourceRoot":"","sources":["publish-kit.js"],"names":[],"mappings":"AAwBA;;;;GAIG;AAGH,gEAA6D;AAC7D;;;GAGG;;;;;AAMH;;;;GAOE;AAEF;;;GAMG;AAEH;;;GAMG;AA+CI,+BA2CQ,CAAC,KA7CH,WAAW,CAAC,CAAC,CA4FzB;AA6MM,kDAHI,OAAO,4BAA4B,EAAE,OAAO,YAC5C,MAAM;;yBA/JwB,WACzC;;;;;;;;;;GAyOC;AAGD,+DAAyD;4CAlP3C,UAAU,GAAC,CAAC;;;;;;cASZ,OAAO,CAAC,GAAC,CAAC,GAAG,SAAS;;;;WAEtB,OAAO,CAAC,GAAC,CAAC;;;;;WACV,CAAC,CAAC,KAAK,EAAE,GAAG,KAAK,IAAI,CAAC,GAAG,SAAS;;gCAnPsI,iBAAiB;+BAAjB,iBAAiB"}
@@ -1,39 +1,10 @@
1
- export function makeStoredNotifier<T extends PassableCap>(notifier: ERef<Notifier<T>>, storageNode: ERef<StorageNode>, marshaller: ERef<{
2
- /**
3
- * @import {ERef} from '@endo/far';
4
- * @import {BaseNotifier, Notifier} from './types.js';
5
- * @import {Marshaller, StoredFacet, StorageNode, Unserializer} from '@agoric/internal/src/lib-chainStorage.js';
6
- * @import {PassableCap, RemotableObject} from '@endo/pass-style';
7
- */
8
- /**
9
- * @template T
10
- * @typedef {BaseNotifier<T> & Omit<StoredFacet, 'getStoreKey'>} StoredNotifier
11
- */
12
- /**
13
- * Begin iterating the source, storing serialized iteration values. If the
14
- * storageNode's `setValue` operation rejects, no further writes to it will
15
- * be attempted (but results will remain available from the subscriber).
16
- *
17
- * Returns a StoredNotifier that can be used by a client to directly follow
18
- * the iteration themselves, or obtain information to subscribe to the stored
19
- * data out-of-band.
20
- *
21
- * @template {PassableCap} T
22
- * @param {ERef<Notifier<T>>} notifier
23
- * @param {ERef<StorageNode>} storageNode
24
- * @param {ERef<Marshaller>} marshaller
25
- * @returns {StoredNotifier<T>}
26
- */
27
- toCapData: import("@endo/marshal").ToCapData<unknown>;
28
- fromCapData: import("@endo/marshal").FromCapData<unknown>;
29
- serialize: import("@endo/marshal").ToCapData<unknown>;
30
- unserialize: import("@endo/marshal").FromCapData<unknown>;
31
- }>): StoredNotifier<T>;
1
+ export function makeStoredNotifier<T extends PassableCap>(notifier: ERef<Notifier<T>>, storageNode: ERef<StorageNode>, marshaller: ERef<Marshaller>): StoredNotifier<T>;
32
2
  export type StoredNotifier<T> = BaseNotifier<T> & Omit<StoredFacet, "getStoreKey">;
33
3
  import type { PassableCap } from '@endo/pass-style';
34
4
  import type { Notifier } from './types.js';
35
5
  import type { ERef } from '@endo/far';
36
6
  import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
7
+ import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
37
8
  import type { BaseNotifier } from './types.js';
38
9
  import type { StoredFacet } from '@agoric/internal/src/lib-chainStorage.js';
39
10
  //# sourceMappingURL=stored-notifier.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"stored-notifier.d.ts","sourceRoot":"","sources":["stored-notifier.js"],"names":[],"mappings":"AAkCO,mCAFqB,CAAC;IAzB7B;;;;;OAKG;IAEH;;;OAGG;IAEH;;;;;;;;;;;;;;OAcG;;;;;KADU,cAAc,CAAC,CAAC,CAAC,CAiC7B;2BAjDyB,CAAC;iCALoB,kBAAkB;8BAFxB,YAAY;0BAD9B,WAAW;iCAEmC,0CAA0C;kCADtE,YAAY;iCACgB,0CAA0C"}
1
+ {"version":3,"file":"stored-notifier.d.ts","sourceRoot":"","sources":["stored-notifier.js"],"names":[],"mappings":"AAkCO,mCANoB,CAAC,SAAf,WAAa,YACf,KAAK,SAAS,CAAC,CAAC,CAAC,eACjB,KAAK,WAAW,CAAC,cACjB,KAAK,UAAU,CAAC,GACd,cAAc,CAAC,CAAC,CAAC,CAiC7B;2BAlDY,CAAC,IACD,aAAa,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;iCALhB,kBAAkB;8BAFxB,YAAY;0BAD9B,WAAW;iCAEmC,0CAA0C;gCAA1C,0CAA0C;kCADtE,YAAY;iCACgB,0CAA0C"}
package/src/storesub.d.ts CHANGED
@@ -1,10 +1,5 @@
1
1
  export function forEachPublicationRecord<T>(subscriber: Subscriber<T>, consumeValue: (v: T) => void): Promise<void>;
2
- export function makeStoredSubscriber<T extends import("@endo/marshal").PassableCap>(subscriber: Subscriber<T>, storageNode: ERef<StorageNode>, marshaller: ERef<{
3
- toCapData: import("@endo/marshal").ToCapData<unknown>;
4
- fromCapData: import("@endo/marshal").FromCapData<unknown>;
5
- serialize: import("@endo/marshal").ToCapData<unknown>;
6
- unserialize: import("@endo/marshal").FromCapData<unknown>;
7
- }>): StoredSubscriber<T>;
2
+ export function makeStoredSubscriber<T extends import("@endo/marshal").PassableCap>(subscriber: Subscriber<T>, storageNode: ERef<StorageNode>, marshaller: ERef<ReturnType<typeof makeMarshal>>): StoredSubscriber<T>;
8
3
  export function makeStoredSubscription<T>(subscription: Subscription<T>, storageNode?: ERef<StorageNode> | undefined, marshaller?: ERef<{
9
4
  toCapData: import("@endo/marshal").ToCapData<unknown>;
10
5
  fromCapData: import("@endo/marshal").FromCapData<unknown>;
@@ -17,12 +12,7 @@ export function makeStoredPublisherKit<T = unknown>(storageNode?: ERef<StorageNo
17
12
  serialize: import("@endo/marshal").ToCapData<unknown>;
18
13
  unserialize: import("@endo/marshal").FromCapData<unknown>;
19
14
  }> | undefined, childPath?: string | undefined): StoredPublisherKit<T>;
20
- export function makeStoredPublishKit<T = unknown>(storageNode: ERef<StorageNode>, marshaller: ERef<{
21
- toCapData: import("@endo/marshal").ToCapData<unknown>;
22
- fromCapData: import("@endo/marshal").FromCapData<unknown>;
23
- serialize: import("@endo/marshal").ToCapData<unknown>;
24
- unserialize: import("@endo/marshal").FromCapData<unknown>;
25
- }>): StoredPublishKit<T>;
15
+ export function makeStoredPublishKit<T = unknown>(storageNode: ERef<StorageNode>, marshaller: ERef<Marshaller>): StoredPublishKit<T>;
26
16
  export type StoredPublisherKit<T> = {
27
17
  subscriber: StoredSubscription<T>;
28
18
  publisher: IterationObserver<T>;
@@ -34,6 +24,7 @@ import { makeMarshal } from '@endo/marshal';
34
24
  import type { StoredSubscriber } from '../src/types.js';
35
25
  import type { Subscription } from '../src/types.js';
36
26
  import type { StoredSubscription } from '../src/types.js';
27
+ import type { Marshaller } from '@agoric/internal/src/lib-chainStorage.js';
37
28
  import type { StoredPublishKit } from '../src/types.js';
38
29
  import type { IterationObserver } from '../src/types.js';
39
30
  //# sourceMappingURL=storesub.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"storesub.d.ts","sourceRoot":"","sources":["storesub.js"],"names":[],"mappings":"AAuBO,yCAFQ,CAAC,2CAAL,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,iBAcxB;AAiBM,qCAFuB,CAAC;;;;;yBA6B9B;AAkBM,uCAFyB,CAAC;;;;;uCAqEhC;AAoBM,uCAFyB,CAAC;;;;;iDAApB,kBAAkB,CAAC,CAAC,CAAC,CAoBjC;AAgBM,qCAFuB,CAAC;;;;;yBAU9B;+BAtD+B,CAAC;;;;gCAjKoL,iBAAiB;iCAC9K,0CAA0C;0BAF3E,WAAW;4BATN,eAAe;sCAU0K,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB;sCAAjB,iBAAiB;uCAAjB,iBAAiB"}
1
+ {"version":3,"file":"storesub.d.ts","sourceRoot":"","sources":["storesub.js"],"names":[],"mappings":"AAuBO,yCAJM,CAAC,cACH,WAAW,CAAC,CAAC,gBACb,CAAC,CAAC,EAAE,CAAC,KAAK,IAAI,iBAcxB;AAiBM,qCAN4C,CAAC,SAAvC,OAAQ,eAAe,EAAE,WAAY,cACvC,WAAW,CAAC,CAAC,eACb,KAAK,WAAW,CAAC,cACjB,KAAK,UAAU,CAAC,OAAO,WAAW,CAAC,CAAC,GAClC,iBAAiB,CAAC,CAAC,CA6B/B;AAkBM,uCANM,CAAC,gBACH,aAAa,CAAC,CAAC;;;;;iBAGb,mBAAmB,CAAC,CAAC,CAqEjC;AAoBM,uCANO,CAAC;;;;;iDAIF,kBAAkB,CAAC,CAAC,CAAC,CAoBjC;AAgBM,qCALO,CAAC,yBACJ,KAAK,WAAW,CAAC,cACjB,KAAK,UAAU,CAAC,GACd,iBAAiB,CAAC,CAAC,CAU/B;+BAzDY,CAAC;gBAEA,mBAAmB,CAAC,CAAC;eACrB,kBAAkB,CAAC,CAAC;;gCAjKmL,iBAAiB;iCAC9K,0CAA0C;0BAF3E,WAAW;4BATN,eAAe;sCAU0K,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB;gCAC9K,0CAA0C;sCADmH,iBAAiB;uCAAjB,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"subscribe.d.ts","sourceRoot":"","sources":["subscribe.js"],"names":[],"mappings":"AAqEO,0BAF+B,CAAC;;;;;;;;;;;;;;;;GAYnC;AAuEG,8BAFmB,CAAC;;;;GAU1B;AAsGM,gCAFqB,CAAC;;;;GAO5B;0BApQsB,WAAW;+BAC6N,iBAAiB;mDAAjB,iBAAiB;iCAAjB,iBAAiB"}
1
+ {"version":3,"file":"subscribe.d.ts","sourceRoot":"","sources":["subscribe.js"],"names":[],"mappings":"AAqEO,0BAHM,CAAC,OACH,KAAK,qBAAqB,CAAC,CAAC,CAAC,CAAC;;;;;;;;;;;;;;;;GAYrC;AAuEG,8BAHM,CAAC,SACH,KAAK,UAAU,CAAC,CAAC,CAAC;;;;GAU5B;AAsGM,gCAHM,CAAC,SACH,KAAK,YAAY,CAAC,CAAC,CAAC;;;;GAO9B;0BApQsB,WAAW;+BAC6N,iBAAiB;mDAAjB,iBAAiB;iCAAjB,iBAAiB"}
@@ -6,7 +6,7 @@
6
6
  * @param {ERef<EachTopic<T>>} topic
7
7
  * @returns {Subscription<T>}
8
8
  */
9
- export function makeSubscription<T>(topic: globalThis.ERef<EachTopic<T>>): Subscription<T>;
9
+ export function makeSubscription<T>(topic: ERef<EachTopic<T>>): Subscription<T>;
10
10
  /**
11
11
  * @deprecated Producers should use
12
12
  * ```js
@@ -1 +1 @@
1
- {"version":3,"file":"subscriber.d.ts","sourceRoot":"","sources":["subscriber.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;GAIG;AACH,iCAF0B,CAAC,yDAkB1B;AAID;;;;;;;;;;;;;;;;;GAiBG;AACH,oCAFgC,CAAC,2BAmBhC;+BA/DgO,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB"}
1
+ {"version":3,"file":"subscriber.d.ts","sourceRoot":"","sources":["subscriber.js"],"names":[],"mappings":"AAUA;;GAEG;AAEH;;;;GAIG;AACH,iCAJa,CAAC,SACH,IAAI,CAAC,UAAU,CAAC,CAAC,CAAC,GAChB,aAAa,CAAC,CAAC,CAkB3B;AAID;;;;;;;;;;;;;;;;;GAiBG;AACH,oCAHa,CAAC,KACD,mBAAmB,CAAC,CAAC,CAmBjC;+BA/DgO,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"topic.d.ts","sourceRoot":"","sources":["topic.js"],"names":[],"mappings":"AAiBO,uCAFiC,CAAC,uEAoBxC;+BA9BwC,iBAAiB;iCAAjB,iBAAiB"}
1
+ {"version":3,"file":"topic.d.ts","sourceRoot":"","sources":["topic.js"],"names":[],"mappings":"AAiBO,uCALM,CAAC,SACH,UAAU,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,GAE3B,UAAU,CAAC,CAAC,GAAG,YAAY,CAAC,CAAC,CAoBzC;+BA9BwC,iBAAiB;iCAAjB,iBAAiB"}
package/src/types.d.ts CHANGED
@@ -220,13 +220,13 @@ export type SubscriptionRecord<T> = {
220
220
  publication: IterationObserver<T>;
221
221
  subscription: Subscription<T>;
222
222
  };
223
- export type StoredSubscription<T> = ForkableAsyncIterable<T, T, undefined> & EachTopic<T> & SharableSubscription<T> & {
223
+ export type StoredSubscription<T> = Subscription<T> & {
224
224
  getStoreKey: () => Promise<VStorageKey & {
225
225
  subscription: Subscription<T>;
226
226
  }>;
227
227
  getUnserializer: () => Unserializer;
228
228
  };
229
- export type StoredSubscriber<T> = LatestTopic<T> & EachTopic<T> & StoredFacet;
229
+ export type StoredSubscriber<T> = Subscriber<T> & StoredFacet;
230
230
  import type { Unserializer } from '@agoric/internal/src/lib-chainStorage.js';
231
231
  import type { StoredFacet } from '@agoric/internal/src/lib-chainStorage.js';
232
232
  //# sourceMappingURL=types.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["types.js"],"names":[],"mappings":";;;;kCAcmC,CAAC,EAAE,OAAO,QAAE,KAAK,gBADvC,aAAa,CACS,CAAC,AADR,EACU,OAAO,AADR,EACU,KAAK,AADR,CAAC,GAAG;IAC/C,IAAQ,IAAI,qBAAqB,CAAC,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAA;CACjD;8BAQ2D,CAAC,EAAE,OAAO,QAAE,KAAK,gBAAnE;IAAE,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,qBAA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