@agoric/notifier 0.6.3-dev-0705f2c.0 → 0.6.3-dev-940d3f0.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-0705f2c.0+0705f2c",
3
+ "version": "0.6.3-dev-940d3f0.0+940d3f0",
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-dev-0705f2c.0+0705f2c",
37
- "@agoric/internal": "0.3.3-dev-0705f2c.0+0705f2c",
38
- "@agoric/vat-data": "0.5.3-dev-0705f2c.0+0705f2c",
36
+ "@agoric/internal": "0.3.3-dev-940d3f0.0+940d3f0",
37
+ "@agoric/vat-data": "0.5.3-dev-940d3f0.0+940d3f0",
38
+ "@endo/errors": "^1.2.2",
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-dev-0705f2c.0+0705f2c",
46
- "@agoric/swing-store": "0.9.2-dev-0705f2c.0+0705f2c",
47
- "@agoric/swingset-liveslots": "0.10.3-dev-0705f2c.0+0705f2c",
48
- "@agoric/swingset-vat": "0.32.3-dev-0705f2c.0+0705f2c",
45
+ "@agoric/kmarshal": "0.1.1-dev-940d3f0.0+940d3f0",
46
+ "@agoric/swing-store": "0.9.2-dev-940d3f0.0+940d3f0",
47
+ "@agoric/swingset-liveslots": "0.10.3-dev-940d3f0.0+940d3f0",
48
+ "@agoric/swingset-vat": "0.32.3-dev-940d3f0.0+940d3f0",
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": "0705f2c34da9a89c2b3441b47f8e5bfca53a9590"
81
+ "gitHead": "940d3f0a993ca45a6bb0893bd59e6df1f22d9143"
82
82
  }
package/src/notifier.js CHANGED
@@ -1,6 +1,6 @@
1
1
  /// <reference types="ses" />
2
2
 
3
- import { assert } from '@agoric/assert';
3
+ import { assert } from '@endo/errors';
4
4
  import { E, Far } from '@endo/far';
5
5
 
6
6
  import { makePublishKit } from './publish-kit.js';
@@ -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,+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
+ {"version":3,"file":"publish-kit.d.ts","sourceRoot":"","sources":["publish-kit.js"],"names":[],"mappings":"AAuBA;;;;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/JoB,WAAW;;;;;;;;;;GA0O/C;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;;gCAjPsI,iBAAiB;+BAAjB,iBAAiB"}
@@ -1,17 +1,16 @@
1
1
  /// <reference types="ses" />
2
2
 
3
- import { canBeDurable, prepareExoClassKit } from '@agoric/vat-data';
3
+ import { Fail, q } from '@endo/errors';
4
4
  import { E, Far } from '@endo/far';
5
- import { M, getInterfaceGuardPayload } from '@endo/patterns';
6
5
  import { makePromiseKit } from '@endo/promise-kit';
6
+ import { M, getInterfaceGuardPayload } from '@endo/patterns';
7
+ import { canBeDurable, prepareExoClassKit } from '@agoric/vat-data';
7
8
 
8
9
  /**
9
10
  * @import {ERef} from '@endo/far';
10
11
  * @import {DurablePublishKitState, DurablePublishKitValueDurability, LatestTopic, Notifier, NotifierRecord, PublicationRecord, Publisher, PublishKit, Subscriber, UpdateRecord} from '../src/types.js';
11
12
  */
12
13
 
13
- const { Fail, quote: q } = assert;
14
-
15
14
  const sink = () => {};
16
15
  const makeQuietRejection = reason => {
17
16
  const rejection = harden(Promise.reject(reason));
@@ -1 +1 @@
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"}
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;0BAnQsB,WAAW;+BAC6N,iBAAiB;mDAAjB,iBAAiB;iCAAjB,iBAAiB"}
package/src/subscribe.js CHANGED
@@ -1,3 +1,4 @@
1
+ import { X, Fail, annotateError } from '@endo/errors';
1
2
  import { E, Far } from '@endo/far';
2
3
  import { isObject } from '@endo/marshal';
3
4
  import { isUpgradeDisconnection } from '@agoric/internal/src/upgrade-api.js';
@@ -7,7 +8,6 @@ import { isUpgradeDisconnection } from '@agoric/internal/src/upgrade-api.js';
7
8
  * @import {IterationObserver, LatestTopic, Notifier, NotifierRecord, PublicationRecord, Publisher, PublishKit, StoredPublishKit, StoredSubscription, StoredSubscriber, Subscriber, Subscription, UpdateRecord, EachTopic, ForkableAsyncIterableIterator} from '../src/types.js';
8
9
  */
9
10
 
10
- const { details: X, Fail } = assert;
11
11
  const sink = () => {};
12
12
 
13
13
  /**
@@ -48,7 +48,7 @@ const reconnectAsNeeded = async (getter, seed = []) => {
48
48
  // for which it is a result.
49
49
  if (isObject(err) && disconnection && disconnection !== err) {
50
50
  try {
51
- assert.note(
51
+ annotateError(
52
52
  err,
53
53
  X`Attempting to recover from disconnection: ${disconnection}`,
54
54
  );