@agoric/time 0.3.3-other-dev-3eb1a1d.0 → 0.3.3-other-dev-d15096d.0.d15096d

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,20 +1,20 @@
1
1
  {
2
2
  "name": "@agoric/time",
3
- "version": "0.3.3-other-dev-3eb1a1d.0+3eb1a1d",
3
+ "version": "0.3.3-other-dev-d15096d.0.d15096d",
4
4
  "description": "Timestamps, time math, timer service API definition",
5
5
  "type": "module",
6
6
  "main": "index.js",
7
7
  "types": "index.js",
8
8
  "engines": {
9
- "node": "^18.12 || ^20.9"
9
+ "node": "^20.9 || ^22.11"
10
10
  },
11
11
  "scripts": {
12
12
  "build": "exit 0",
13
13
  "test": "ava",
14
14
  "test:xs": "exit 0",
15
- "lint": "run-s --continue-on-error lint:*",
16
- "lint:types": "tsc",
17
- "lint:eslint": "eslint .",
15
+ "lint": "yarn run -T run-s --continue-on-error 'lint:*'",
16
+ "lint:types": "yarn run -T tsc",
17
+ "lint:eslint": "yarn run -T eslint .",
18
18
  "lint-fix": "yarn lint:eslint --fix"
19
19
  },
20
20
  "repository": {
@@ -31,14 +31,14 @@
31
31
  },
32
32
  "homepage": "https://github.com/Agoric/agoric-sdk#readme",
33
33
  "dependencies": {
34
- "@agoric/store": "0.9.3-other-dev-3eb1a1d.0+3eb1a1d",
35
- "@endo/errors": "^1.2.8",
36
- "@endo/nat": "^5.0.13",
37
- "@endo/patterns": "^1.4.7"
34
+ "@agoric/store": "0.9.3-other-dev-d15096d.0.d15096d",
35
+ "@endo/errors": "^1.2.13",
36
+ "@endo/nat": "^5.1.3",
37
+ "@endo/patterns": "^1.7.0"
38
38
  },
39
39
  "devDependencies": {
40
- "@endo/far": "^1.1.9",
41
- "@endo/init": "^1.1.7",
40
+ "@endo/far": "^1.1.14",
41
+ "@endo/init": "^1.1.12",
42
42
  "ava": "^5.3.0"
43
43
  },
44
44
  "ava": {
@@ -58,7 +58,7 @@
58
58
  "access": "public"
59
59
  },
60
60
  "typeCoverage": {
61
- "atLeast": 88.72
61
+ "atLeast": 88.75
62
62
  },
63
- "gitHead": "3eb1a1d2d75b2b4a94807cd3bf759bc9fc531f05"
63
+ "gitHead": "d15096dc4ff8b96e9b6cd11954c20d3a9efbb393"
64
64
  }
package/src/timeMath.js CHANGED
@@ -5,6 +5,7 @@ import { RelativeTimeRecordShape, TimestampRecordShape } from './typeGuards.js';
5
5
 
6
6
  /**
7
7
  * @import {RelativeTime, RelativeTimeValue, TimerBrand, TimeMathType, Timestamp, TimestampRecord, TimestampValue} from './types.js';
8
+ * @import {RankComparison} from '@endo/marshal';
8
9
  */
9
10
 
10
11
  /**
@@ -194,7 +195,7 @@ const modRelRel = (rel, step) =>
194
195
  * @param {Timestamp | RelativeTime} right
195
196
  * @param {bigint} v1
196
197
  * @param {bigint} v2
197
- * @returns {import('@endo/marshal').RankComparison}
198
+ * @returns {RankComparison}
198
199
  */
199
200
  const compareValues = (left, right, v1, v2) => {
200
201
  sharedTimerBrand(left, right);
package/src/types.ts CHANGED
@@ -105,7 +105,7 @@ export type CancelToken = object;
105
105
  * schedule a single wake() call, create a repeater that will allow scheduling
106
106
  * of events at regular intervals, or remove scheduled calls.
107
107
  */
108
- export interface TimerServiceI {
108
+ export interface TimerServiceCommon {
109
109
  /**
110
110
  * Retrieve the latest timestamp
111
111
  */
@@ -180,9 +180,9 @@ export interface TimerServiceI {
180
180
  getTimerBrand: () => TimerBrand;
181
181
  }
182
182
  // XXX copied from Remotable helper return type
183
- export type TimerService = TimerServiceI &
183
+ export type TimerService = TimerServiceCommon &
184
184
  RemotableObject<'TimerService'> &
185
- RemotableBrand<{}, TimerServiceI>;
185
+ RemotableBrand<object, TimerServiceCommon>;
186
186
 
187
187
  /**
188
188
  * Read-only access to a TimeService's current time. This allows reading the