@agoric/notifier 0.6.3-dev-20cb52f.0 → 0.6.3-dev-92f2510.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-dev-20cb52f.0+20cb52f",
3
+ "version": "0.6.3-dev-92f2510.0+92f2510",
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-20cb52f.0+20cb52f",
37
- "@agoric/vat-data": "0.5.3-dev-20cb52f.0+20cb52f",
36
+ "@agoric/internal": "0.3.3-dev-92f2510.0+92f2510",
37
+ "@agoric/vat-data": "0.5.3-dev-92f2510.0+92f2510",
38
38
  "@endo/errors": "^1.2.2",
39
39
  "@endo/far": "^1.1.2",
40
40
  "@endo/marshal": "^1.5.0",
@@ -42,10 +42,10 @@
42
42
  "@endo/promise-kit": "^1.1.2"
43
43
  },
44
44
  "devDependencies": {
45
- "@agoric/kmarshal": "0.1.1-dev-20cb52f.0+20cb52f",
46
- "@agoric/swing-store": "0.9.2-dev-20cb52f.0+20cb52f",
47
- "@agoric/swingset-liveslots": "0.10.3-dev-20cb52f.0+20cb52f",
48
- "@agoric/swingset-vat": "0.32.3-dev-20cb52f.0+20cb52f",
45
+ "@agoric/kmarshal": "0.1.1-dev-92f2510.0+92f2510",
46
+ "@agoric/swing-store": "0.9.2-dev-92f2510.0+92f2510",
47
+ "@agoric/swingset-liveslots": "0.10.3-dev-92f2510.0+92f2510",
48
+ "@agoric/swingset-vat": "0.32.3-dev-92f2510.0+92f2510",
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.33
80
80
  },
81
- "gitHead": "20cb52f605da9535ead8778086b1900dfda0f375"
81
+ "gitHead": "92f2510ab86a27b2f3473edfca72bd8bf647dadc"
82
82
  }
package/src/notifier.d.ts CHANGED
@@ -1,9 +1,10 @@
1
1
  export function makeNotifier<T>(sharableInternalsP: ERef<LatestTopic<T>>): Notifier<T>;
2
- export function makeNotifierFromSubscriber<T>(subscriber: ERef<Subscriber<T>>): Notifier<T>;
2
+ export function makeNotifierFromSubscriber<T>(subscriber: ERef<Subscriber<T>> | Remote<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';
6
6
  import type { Notifier } from './types.js';
7
7
  import type { Subscriber } from './types.js';
8
+ import type { Remote } from '@agoric/internal';
8
9
  import type { NotifierRecord } from './types.js';
9
10
  //# sourceMappingURL=notifier.d.ts.map
@@ -1 +1 @@
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"}
1
+ {"version":3,"file":"notifier.d.ts","sourceRoot":"","sources":["notifier.js"],"names":[],"mappings":"AAkBO,6BAJM,CAAC,sBACH,IAAI,CAAC,YAAY,CAAC,CAAC,CAAC,GAClB,SAAS,CAAC,CAAC,CAwBvB;AAOM,2CAJM,CAAC,cACH,IAAI,CAAC,WAAW,CAAC,CAAC,CAAC,GAAG,OAAO,WAAW,CAAC,CAAC,CAAC,GACzC,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;4BADjF,kBAAkB;oCACmD,YAAY"}
package/src/notifier.js CHANGED
@@ -7,6 +7,7 @@ import { makePublishKit } from './publish-kit.js';
7
7
  import { subscribeLatest } from './subscribe.js';
8
8
 
9
9
  /**
10
+ * @import {Remote} from '@agoric/internal';
10
11
  * @import {LatestTopic, Notifier, NotifierRecord, PublishKit, Subscriber, UpdateRecord} from './types.js';
11
12
  */
12
13
 
@@ -41,7 +42,7 @@ export const makeNotifier = sharableInternalsP => {
41
42
 
42
43
  /**
43
44
  * @template T
44
- * @param {ERef<Subscriber<T>>} subscriber
45
+ * @param {ERef<Subscriber<T>> | Remote<Subscriber<T>>} subscriber
45
46
  * @returns {Notifier<T>}
46
47
  */
47
48
  export const makeNotifierFromSubscriber = subscriber => {