@agoric/notifier 0.6.3-dev-1983095.0.1983095 → 0.6.3-dev-12db75d.0.12db75d
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-dev-
|
|
3
|
+
"version": "0.6.3-dev-12db75d.0.12db75d",
|
|
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,8 +33,8 @@
|
|
|
33
33
|
},
|
|
34
34
|
"homepage": "https://github.com/Agoric/agoric-sdk#readme",
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@agoric/internal": "0.3.3-dev-
|
|
37
|
-
"@agoric/vat-data": "0.5.3-dev-
|
|
36
|
+
"@agoric/internal": "0.3.3-dev-12db75d.0.12db75d",
|
|
37
|
+
"@agoric/vat-data": "0.5.3-dev-12db75d.0.12db75d",
|
|
38
38
|
"@endo/errors": "^1.2.13",
|
|
39
39
|
"@endo/far": "^1.1.14",
|
|
40
40
|
"@endo/marshal": "^1.8.0",
|
|
@@ -42,10 +42,10 @@
|
|
|
42
42
|
"@endo/promise-kit": "^1.1.13"
|
|
43
43
|
},
|
|
44
44
|
"devDependencies": {
|
|
45
|
-
"@agoric/kmarshal": "0.1.1-dev-
|
|
46
|
-
"@agoric/swing-store": "0.9.2-dev-
|
|
47
|
-
"@agoric/swingset-liveslots": "0.10.3-dev-
|
|
48
|
-
"@agoric/swingset-vat": "0.32.3-dev-
|
|
45
|
+
"@agoric/kmarshal": "0.1.1-dev-12db75d.0.12db75d",
|
|
46
|
+
"@agoric/swing-store": "0.9.2-dev-12db75d.0.12db75d",
|
|
47
|
+
"@agoric/swingset-liveslots": "0.10.3-dev-12db75d.0.12db75d",
|
|
48
|
+
"@agoric/swingset-vat": "0.32.3-dev-12db75d.0.12db75d",
|
|
49
49
|
"@endo/init": "^1.1.12",
|
|
50
50
|
"@endo/ses-ava": "^1.3.2",
|
|
51
51
|
"ava": "^5.3.0",
|
|
@@ -78,5 +78,5 @@
|
|
|
78
78
|
"typeCoverage": {
|
|
79
79
|
"atLeast": 90.92
|
|
80
80
|
},
|
|
81
|
-
"gitHead": "
|
|
81
|
+
"gitHead": "12db75daac43c6691a8e871585a8419839ad5fa9"
|
|
82
82
|
}
|
package/src/stored-notifier.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
export function makeStoredNotifier<T extends PassableCap>(notifier: ERef<Notifier<T>>, storageNode: ERemote<StorageNode>, marshaller: ERemote<
|
|
1
|
+
export function makeStoredNotifier<T extends PassableCap>(notifier: ERef<Notifier<T>>, storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>): StoredNotifier<T>;
|
|
2
2
|
export type StoredNotifier<T> = BaseNotifier<T> & Omit<StoredFacet, "getStoreKey">;
|
|
3
3
|
import type { PassableCap } from '@endo/pass-style';
|
|
4
4
|
import type { Notifier } from './types.js';
|
|
5
5
|
import type { ERef } from '@endo/far';
|
|
6
6
|
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
7
7
|
import type { ERemote } from '@agoric/internal';
|
|
8
|
-
import type {
|
|
8
|
+
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
9
9
|
import type { BaseNotifier } from './types.js';
|
|
10
10
|
import type { StoredFacet } from '@agoric/internal/src/lib-chainStorage.js';
|
|
11
11
|
//# sourceMappingURL=stored-notifier.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stored-notifier.d.ts","sourceRoot":"","sources":["stored-notifier.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stored-notifier.d.ts","sourceRoot":"","sources":["stored-notifier.js"],"names":[],"mappings":"AAoCO,mCANoB,CAAC,SAAf,WAAa,YACf,KAAK,SAAS,CAAC,CAAC,CAAC,eACjB,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,cAAc,CAAC,CAAC,CAAC,CAiC7B;2BAlDY,CAAC,IACD,aAAa,CAAC,CAAC,GAAG,IAAI,CAAC,WAAW,EAAE,aAAa,CAAC;iCALjC,kBAAkB;8BAJP,YAAY;0BAD9B,WAAW;iCAIuB,0CAA0C;6BAFzE,kBAAkB;iCACd,iDAAiD;kCAFtC,YAAY;iCAGI,0CAA0C"}
|
package/src/stored-notifier.js
CHANGED
|
@@ -9,7 +9,8 @@ import { observeNotifier } from './asyncIterableAdaptor.js';
|
|
|
9
9
|
* @import {ERef} from '@endo/far';
|
|
10
10
|
* @import {BaseNotifier, Notifier} from './types.js';
|
|
11
11
|
* @import {ERemote} from '@agoric/internal';
|
|
12
|
-
* @import {
|
|
12
|
+
* @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
13
|
+
* @import {StoredFacet, StorageNode, Unserializer} from '@agoric/internal/src/lib-chainStorage.js';
|
|
13
14
|
* @import {PassableCap} from '@endo/pass-style';
|
|
14
15
|
*/
|
|
15
16
|
|
|
@@ -30,7 +31,7 @@ import { observeNotifier } from './asyncIterableAdaptor.js';
|
|
|
30
31
|
* @template {PassableCap} T
|
|
31
32
|
* @param {ERef<Notifier<T>>} notifier
|
|
32
33
|
* @param {ERemote<StorageNode>} storageNode
|
|
33
|
-
* @param {ERemote<
|
|
34
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
34
35
|
* @returns {StoredNotifier<T>}
|
|
35
36
|
*/
|
|
36
37
|
export const makeStoredNotifier = (notifier, storageNode, marshaller) => {
|
package/src/storesub.d.ts
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
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: ERemote<StorageNode>, marshaller: ERemote<
|
|
3
|
-
export function makeStoredSubscription<T>(subscription: Subscription<T>, storageNode?: ERemote<StorageNode> | null, marshaller?: ERemote<
|
|
4
|
-
export function makeStoredPublisherKit<T = unknown>(storageNode?: ERemote<StorageNode> | null, marshaller?: ERemote<
|
|
5
|
-
export function makeStoredPublishKit<T = unknown>(storageNode: ERemote<StorageNode>, marshaller: ERemote<
|
|
2
|
+
export function makeStoredSubscriber<T extends import("@endo/marshal").PassableCap>(subscriber: Subscriber<T>, storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>): StoredSubscriber<T>;
|
|
3
|
+
export function makeStoredSubscription<T>(subscription: Subscription<T>, storageNode?: ERemote<StorageNode> | null, marshaller?: ERemote<EMarshaller>): StoredSubscription<T>;
|
|
4
|
+
export function makeStoredPublisherKit<T = unknown>(storageNode?: ERemote<StorageNode> | null, marshaller?: ERemote<EMarshaller>, childPath?: string): StoredPublisherKit<T>;
|
|
5
|
+
export function makeStoredPublishKit<T = unknown>(storageNode: ERemote<StorageNode>, marshaller: ERemote<EMarshaller>): StoredPublishKit<T>;
|
|
6
6
|
export type StoredPublisherKit<T> = {
|
|
7
7
|
subscriber: StoredSubscription<T>;
|
|
8
8
|
publisher: IterationObserver<T>;
|
|
@@ -10,6 +10,7 @@ export type StoredPublisherKit<T> = {
|
|
|
10
10
|
import type { Subscriber } from '../src/types.js';
|
|
11
11
|
import type { StorageNode } from '@agoric/internal/src/lib-chainStorage.js';
|
|
12
12
|
import type { ERemote } from '@agoric/internal';
|
|
13
|
+
import type { EMarshaller } from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
13
14
|
import type { StoredSubscriber } from '../src/types.js';
|
|
14
15
|
import type { Subscription } from '../src/types.js';
|
|
15
16
|
import type { StoredSubscription } from '../src/types.js';
|
package/src/storesub.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"storesub.d.ts","sourceRoot":"","sources":["storesub.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"storesub.d.ts","sourceRoot":"","sources":["storesub.js"],"names":[],"mappings":"AAyBO,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,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,iBAAiB,CAAC,CAAC,CA6B/B;AAkBM,uCANM,CAAC,gBACH,aAAa,CAAC,CAAC,gBACf,QAAQ,WAAW,CAAC,GAAG,IAAI,eAC3B,QAAQ,WAAW,CAAC,GAClB,mBAAmB,CAAC,CAAC,CAqEjC;AAoBM,uCANO,CAAC,0BACJ,QAAQ,WAAW,CAAC,GAAG,IAAI,eAC3B,QAAQ,WAAW,CAAC,cACpB,MAAM,GACJ,kBAAkB,CAAC,CAAC,CAAC,CAoBjC;AAgBM,qCALO,CAAC,yBACJ,QAAQ,WAAW,CAAC,cACpB,QAAQ,WAAW,CAAC,GAClB,iBAAiB,CAAC,CAAC,CAU/B;+BAzDY,CAAC;gBAEA,mBAAmB,CAAC,CAAC;eACrB,kBAAkB,CAAC,CAAC;;gCAlKmL,iBAAiB;iCAC1L,0CAA0C;6BAH5D,kBAAkB;iCAId,iDAAiD;sCAFsI,iBAAiB;kCAAjB,iBAAiB;wCAAjB,iBAAiB;sCAAjB,iBAAiB;uCAAjB,iBAAiB"}
|
package/src/storesub.js
CHANGED
|
@@ -12,6 +12,7 @@ import { subscribeEach } from './subscribe.js';
|
|
|
12
12
|
* @import {ERef} from '@endo/far';
|
|
13
13
|
* @import {IterationObserver, LatestTopic, Notifier, NotifierRecord, PublicationRecord, Publisher, PublishKit, StoredPublishKit, StoredSubscription, StoredSubscriber, Subscriber, Subscription, UpdateRecord} from '../src/types.js';
|
|
14
14
|
* @import {StorageNode, Unserializer} from '@agoric/internal/src/lib-chainStorage.js';
|
|
15
|
+
* @import {EMarshaller} from '@agoric/internal/src/marshal/wrap-marshaller.js';
|
|
15
16
|
*/
|
|
16
17
|
|
|
17
18
|
/**
|
|
@@ -48,7 +49,7 @@ export const forEachPublicationRecord = async (subscriber, consumeValue) => {
|
|
|
48
49
|
* @template {import('@endo/marshal').PassableCap} T
|
|
49
50
|
* @param {Subscriber<T>} subscriber
|
|
50
51
|
* @param {ERemote<StorageNode>} storageNode
|
|
51
|
-
* @param {ERemote<
|
|
52
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
52
53
|
* @returns {StoredSubscriber<T>}
|
|
53
54
|
*/
|
|
54
55
|
export const makeStoredSubscriber = (subscriber, storageNode, marshaller) => {
|
|
@@ -93,7 +94,7 @@ export const makeStoredSubscriber = (subscriber, storageNode, marshaller) => {
|
|
|
93
94
|
* @template T
|
|
94
95
|
* @param {Subscription<T>} subscription
|
|
95
96
|
* @param {ERemote<StorageNode> | null} [storageNode]
|
|
96
|
-
* @param {ERemote<
|
|
97
|
+
* @param {ERemote<EMarshaller>} [marshaller]
|
|
97
98
|
* @returns {StoredSubscription<T>}
|
|
98
99
|
*/
|
|
99
100
|
export const makeStoredSubscription = (
|
|
@@ -179,7 +180,7 @@ harden(makeStoredSubscription);
|
|
|
179
180
|
*
|
|
180
181
|
* @template [T=unknown]
|
|
181
182
|
* @param {ERemote<StorageNode> | null} [storageNode]
|
|
182
|
-
* @param {ERemote<
|
|
183
|
+
* @param {ERemote<EMarshaller>} [marshaller]
|
|
183
184
|
* @param {string} [childPath]
|
|
184
185
|
* @returns {StoredPublisherKit<T>}
|
|
185
186
|
*/
|
|
@@ -214,7 +215,7 @@ export const makeStoredPublisherKit = (storageNode, marshaller, childPath) => {
|
|
|
214
215
|
*
|
|
215
216
|
* @template [T=unknown]
|
|
216
217
|
* @param {ERemote<StorageNode>} storageNode
|
|
217
|
-
* @param {ERemote<
|
|
218
|
+
* @param {ERemote<EMarshaller>} marshaller
|
|
218
219
|
* @returns {StoredPublishKit<T>}
|
|
219
220
|
*/
|
|
220
221
|
export const makeStoredPublishKit = (storageNode, marshaller) => {
|