ses 1.4.1 → 1.6.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.
@@ -0,0 +1,567 @@
1
+ /**
2
+ * @file Types of the SES environment
3
+ */
4
+
5
+ /* eslint-disable no-restricted-globals, vars-on-top, no-var */
6
+
7
+ // It's academically tempting to define a hardened type, but TypeScript doesn't
8
+ // strike a good balance in distinguishing "readonly" in the sense that you
9
+ // promise not to change vs "readonly" in the sense that you depend on a thing
10
+ // not changing.
11
+ // type Hardened<T> =
12
+ // T extends number | bigint | string | null | undefined | Function ? T :
13
+ // { readonly [P in keyof T]: Hardened<T[P]> };
14
+
15
+ // So Harden just passes the type through without modification.
16
+ // This will occasionally conflict with the type of Object.freeze.
17
+ // In those cases, we recommend casting the result of Object.freeze to the
18
+ // original thawn type, as if the signature of freeze were identical to this
19
+ // version of harden.
20
+ export type Harden = <T>(value: T) => T; // not Hardened<T>;
21
+
22
+ export interface RepairOptions {
23
+ regExpTaming?: 'safe' | 'unsafe';
24
+ localeTaming?: 'safe' | 'unsafe';
25
+ consoleTaming?: 'safe' | 'unsafe';
26
+ errorTrapping?: 'platform' | 'exit' | 'abort' | 'report' | 'none';
27
+ unhandledRejectionTrapping?: 'report' | 'none';
28
+ errorTaming?: 'safe' | 'unsafe' | 'unsafe-debug';
29
+ dateTaming?: 'safe' | 'unsafe'; // deprecated
30
+ mathTaming?: 'safe' | 'unsafe'; // deprecated
31
+ evalTaming?: 'safeEval' | 'unsafeEval' | 'noEval';
32
+ stackFiltering?: 'concise' | 'verbose';
33
+ overrideTaming?: 'moderate' | 'min' | 'severe';
34
+ overrideDebug?: Array<string>;
35
+ domainTaming?: 'safe' | 'unsafe';
36
+ __hardenTaming__?: 'safe' | 'unsafe';
37
+ }
38
+
39
+ // Deprecated in favor of the more specific RepairOptions
40
+ export type LockdownOptions = RepairOptions;
41
+
42
+ export type RepairIntrinsics = (options?: LockdownOptions) => void;
43
+ export type HardenIntrinsics = () => void;
44
+ export type Lockdown = (options?: LockdownOptions) => void;
45
+
46
+ export type ModuleExportsNamespace = Record<string, any>;
47
+
48
+ export type __LiveExportMap__ = Record<string, [string, boolean]>;
49
+ export type __FixedExportMap__ = Record<string, [string]>;
50
+ export type __ReexportMap__ = Record<string, Array<[string, string]>>;
51
+
52
+ export interface PrecompiledModuleSource {
53
+ imports: Array<string>;
54
+ exports: Array<string>;
55
+ reexports: Array<string>;
56
+ __syncModuleProgram__: string;
57
+ __liveExportMap__: __LiveExportMap__;
58
+ __fixedExportMap__: __FixedExportMap__;
59
+ __reexportMap__: __ReexportMap__;
60
+ }
61
+
62
+ export interface VirtualModuleSource {
63
+ imports: Array<string>;
64
+ exports: Array<string>;
65
+ /**
66
+ * Note that this value does _not_ contain any numeric or symbol property keys, which can theoretically be members of `exports` in a CommonJS module.
67
+ */
68
+ execute(
69
+ exportsTarget: Record<string, any>,
70
+ compartment: Compartment,
71
+ resolvedImports: Record<string, string>,
72
+ ): void;
73
+ }
74
+
75
+ export type ModuleSource = PrecompiledModuleSource | VirtualModuleSource;
76
+
77
+ export interface SourceModuleDescriptor {
78
+ source: string | ModuleSource;
79
+ specifier?: string;
80
+ importMeta?: any;
81
+ compartment?: Compartment; // defaults to parent
82
+ }
83
+
84
+ export interface NamespaceModuleDescriptor {
85
+ namespace: string | ModuleExportsNamespace;
86
+ compartment?: Compartment;
87
+ }
88
+
89
+ // Deprecated in favor of SourceModuleDescriptor,
90
+ // but beware the change in default compartment.
91
+ export interface RecordModuleDescriptor {
92
+ specifier: string;
93
+ record?: ModuleSource;
94
+ importMeta?: any;
95
+ compartment?: Compartment; // defaults to self
96
+ }
97
+
98
+ export type ModuleDescriptor =
99
+ | SourceModuleDescriptor
100
+ | NamespaceModuleDescriptor
101
+ // To be deprecated:
102
+ | RecordModuleDescriptor
103
+ | ModuleExportsNamespace
104
+ | VirtualModuleSource
105
+ | PrecompiledModuleSource
106
+ | string;
107
+
108
+ // Deprecated type aliases:
109
+ export type PrecompiledStaticModuleInterface = PrecompiledModuleSource;
110
+ export type ThirdPartyStaticModuleInterface = VirtualModuleSource;
111
+ export type RedirectStaticModuleInterface = RecordModuleDescriptor;
112
+ export type FinalStaticModuleType = ModuleSource;
113
+ export type StaticModuleType = RedirectStaticModuleInterface | ModuleSource;
114
+
115
+ export type Transform = (source: string) => string;
116
+ export type ResolveHook = (
117
+ importSpecifier: string,
118
+ referrerSpecifier: string,
119
+ ) => string;
120
+ export type ModuleMap = Record<string, string | ModuleDescriptor>;
121
+ export type ModuleMapHook = (
122
+ moduleSpecifier: string,
123
+ ) => ModuleDescriptor | undefined;
124
+ export type ImportHook = (moduleSpecifier: string) => Promise<ModuleDescriptor>;
125
+ export type ImportNowHook = (moduleSpecifier: string) => ModuleDescriptor;
126
+ export type ImportMetaHook = (
127
+ moduleSpecifier: string,
128
+ importMeta: Object,
129
+ ) => void;
130
+
131
+ export interface CompartmentOptions {
132
+ name?: string;
133
+ transforms?: Array<Transform>;
134
+ moduleMapHook?: ModuleMapHook;
135
+ importHook?: ImportHook;
136
+ importNowHook?: ImportNowHook;
137
+ importMetaHook?: ImportMetaHook;
138
+ resolveHook?: ResolveHook;
139
+ globals?: Map<string, any>;
140
+ modules?: Map<string, ModuleDescriptor>;
141
+ __shimTransforms__?: Array<Transform>;
142
+ __noNamespaceBox__?: boolean;
143
+ }
144
+
145
+ export interface EvaluateOptions {
146
+ transforms?: Array<Transform>;
147
+ sloppyGlobalsMode?: boolean;
148
+ __moduleShimLexicals__?: Record<string, any>;
149
+ __evadeHtmlCommentTest__?: boolean;
150
+ __rejectSomeDirectEvalExpressions__?: boolean;
151
+ }
152
+
153
+ /**
154
+ * A call to the `details` template literal makes and returns a fresh details
155
+ * token, which is a frozen empty object associated with the arguments of that
156
+ * `details` template literal expression.
157
+ */
158
+ export type DetailsToken = Record<any, never>;
159
+ /** Either a plain string, or made by the `details` template literal tag. */
160
+ export type Details = string | DetailsToken;
161
+
162
+ export interface AssertMakeErrorOptions {
163
+ /**
164
+ * Does not affect the error.name property. That remains determined by
165
+ * the constructor. Rather, the `errorName` determines how this error is
166
+ * identified in the causal console log's output.
167
+ */
168
+ errorName?: string;
169
+
170
+ /**
171
+ * Discloses the error that caused this one, typically from a lower
172
+ * layer of abstraction. This is represented by a public `cause` data property
173
+ * on the error, not a hidden annotation.
174
+ */
175
+ cause?: Error;
176
+
177
+ /**
178
+ * Normally only used when the ErrorConstuctor is `AggregateError`, to
179
+ * represent the set of prior errors aggregated together in this error,
180
+ * typically by `Promise.any`. But `makeError` allows it on any error.
181
+ * This is represented by a public `errors` data property on the error,
182
+ * not a hidden annotation.
183
+ */
184
+ errors?: Error[];
185
+
186
+ /**
187
+ * Defaults to true. If true, `makeError` will apply `sanitizeError`
188
+ * to the error before returning it. See the comments on
189
+ * {@link sanitizeError}.
190
+ */
191
+ sanitize?: boolean;
192
+ }
193
+
194
+ // TODO inline overloading
195
+
196
+ type AssertTypeofBigint = (
197
+ specimen: any,
198
+ typeName: 'bigint',
199
+ details?: Details,
200
+ ) => asserts specimen is bigint;
201
+ type AssertTypeofBoolean = (
202
+ specimen: any,
203
+ typeName: 'boolean',
204
+ details?: Details,
205
+ ) => asserts specimen is boolean;
206
+ type AssertTypeofFunction = (
207
+ specimen: any,
208
+ typeName: 'function',
209
+ details?: Details,
210
+ ) => asserts specimen is Function;
211
+ type AssertTypeofNumber = (
212
+ specimen: any,
213
+ typeName: 'number',
214
+ details?: Details,
215
+ ) => asserts specimen is number;
216
+ type AssertTypeofObject = (
217
+ specimen: any,
218
+ typeName: 'object',
219
+ details?: Details,
220
+ ) => asserts specimen is Record<any, any> | null;
221
+ type AssertTypeofString = (
222
+ specimen: any,
223
+ typeName: 'string',
224
+ details?: Details,
225
+ ) => asserts specimen is string;
226
+ type AssertTypeofSymbol = (
227
+ specimen: any,
228
+ typeName: 'symbol',
229
+ details?: Details,
230
+ ) => asserts specimen is symbol;
231
+ type AssertTypeofUndefined = (
232
+ specimen: any,
233
+ typeName: 'undefined',
234
+ details?: Details,
235
+ ) => asserts specimen is undefined;
236
+
237
+ export type AssertTypeof = AssertTypeofBigint &
238
+ AssertTypeofBoolean &
239
+ AssertTypeofFunction &
240
+ AssertTypeofNumber &
241
+ AssertTypeofObject &
242
+ AssertTypeofString &
243
+ AssertTypeofSymbol &
244
+ AssertTypeofUndefined;
245
+
246
+ interface StringablePayload {
247
+ toString(): string;
248
+ }
249
+
250
+ /**
251
+ * TypeScript does not treat `AggregateErrorConstructor` as a subtype of
252
+ * `ErrorConstructor`, which makes sense because their constructors
253
+ * have incompatible signatures. However, we want to parameterize some
254
+ * operations by any error constructor, including possible `AggregateError`.
255
+ * So we introduce `GenericErrorConstructor` as a common supertype. Any call
256
+ * to it to make an instance must therefore first case split on whether the
257
+ * constructor is an AggregateErrorConstructor or a normal ErrorConstructor.
258
+ */
259
+ export type GenericErrorConstructor =
260
+ | ErrorConstructor
261
+ | AggregateErrorConstructor;
262
+
263
+ /**
264
+ * To make an `assert` which terminates some larger unit of computation
265
+ * like a transaction, vat, or process, call `makeAssert` with a `Raise`
266
+ * callback, where that callback actually performs that larger termination.
267
+ * If possible, the callback should also report its `reason` parameter as
268
+ * the alleged reason for the termination.
269
+ */
270
+ export type Raise = (reason: Error) => void;
271
+
272
+ /**
273
+ * Makes and returns an `assert` function object that shares the bookkeeping
274
+ * state defined by this module with other `assert` function objects made by
275
+ * `makeAssert`. This state is per-module-instance and is exposed by the
276
+ * `loggedErrorHandler` above. We refer to `assert` as a "function object"
277
+ * because it can be called directly as a function, but also has methods that
278
+ * can be called.
279
+ *
280
+ * If `optRaise` is provided, the returned `assert` function object will call
281
+ * `optRaise(reason)` before throwing the error. This enables `optRaise` to
282
+ * engage in even more violent termination behavior, like terminating the vat,
283
+ * that prevents execution from reaching the following throw. However, if
284
+ * `optRaise` returns normally, which would be unusual, the throw following
285
+ * `optRaise(reason)` would still happen.
286
+ */
287
+ // Behold: recursion.
288
+ // eslint-disable-next-line no-use-before-define
289
+ export type MakeAssert = (raise?: Raise, unredacted?: boolean) => Assert;
290
+
291
+ export type BaseAssert = (
292
+ /** The truthy/falsy value we're testing */
293
+ flag: any,
294
+ /** The details of what was asserted */
295
+ details?: Details,
296
+ /** An optional alternate error constructor to use */
297
+ errConstructor?: GenericErrorConstructor,
298
+ options?: AssertMakeErrorOptions,
299
+ ) => asserts flag;
300
+
301
+ export interface AssertionFunctions extends BaseAssert {
302
+ typeof: AssertTypeof;
303
+
304
+ /**
305
+ * The `assert.equal` method
306
+ *
307
+ * Assert that two values must be `Object.is`.
308
+ */
309
+ equal<T>(
310
+ /** What we received */
311
+ actual: unknown,
312
+ /** What we wanted */
313
+ expected: T,
314
+ /** The details of what was asserted */
315
+ details?: Details,
316
+ /** An optional alternate error constructor to use */
317
+ errConstructor?: GenericErrorConstructor,
318
+ options?: AssertMakeErrorOptions,
319
+ ): asserts actual is T;
320
+
321
+ /**
322
+ * The `assert.string` method.
323
+ *
324
+ * `assert.string(v)` is equivalent to `assert.typeof(v, 'string')`. We
325
+ * special case this one because it is the most frequently used.
326
+ *
327
+ * Assert an expected typeof result.
328
+ */
329
+ string(
330
+ specimen: any,
331
+ /** The details of what was asserted */
332
+ details?: Details,
333
+ ): asserts specimen is string;
334
+
335
+ /**
336
+ * The `assert.fail` method.
337
+ *
338
+ * Fail an assertion, recording full details to the console and
339
+ * raising an exception with a message in which `details` substitution values
340
+ * have been redacted.
341
+ *
342
+ * The optional `optDetails` can be a string for backwards compatibility
343
+ * with the nodejs assertion library.
344
+ */
345
+ fail(
346
+ /** The details of what was asserted */
347
+ details?: Details,
348
+ /** An optional alternate error constructor to use */
349
+ errConstructor?: GenericErrorConstructor,
350
+ options?: AssertMakeErrorOptions,
351
+ ): never;
352
+ }
353
+
354
+ export interface AssertionUtilities {
355
+ /**
356
+ * Aka the `makeError` function as imported from `@endo/errors`
357
+ *
358
+ * Recording unredacted details for the console.
359
+ */
360
+ error(
361
+ /** The details of what was asserted */
362
+ details?: Details,
363
+ /** An optional alternate error constructor to use */
364
+ errConstructor?: GenericErrorConstructor,
365
+ options?: AssertMakeErrorOptions,
366
+ ): Error;
367
+
368
+ /**
369
+ * Aka the `annotateError` function as imported from `@endo/errors`
370
+ *
371
+ * Annotate an error with details, potentially to be used by an
372
+ * augmented console such as the causal console of `console.js`, to
373
+ * provide extra information associated with logged errors.
374
+ */
375
+ note(error: Error, details: Details): void;
376
+
377
+ /**
378
+ * Use the `details` function as a template literal tag to create
379
+ * informative error messages. The assertion functions take such messages
380
+ * as optional arguments:
381
+ * ```js
382
+ * assert(sky.isBlue(), details`${sky.color} should be "blue"`);
383
+ * ```
384
+ * or following the normal convention to locally rename `details` to `X`
385
+ * and `quote` to `q` like `const { details: X, quote: q } = assert;`:
386
+ * ```js
387
+ * assert(sky.isBlue(), X`${sky.color} should be "blue"`);
388
+ * ```
389
+ * However, note that in most cases it is preferable to instead use the `Fail`
390
+ * template literal tag (which has the same input signature as `details`
391
+ * but automatically creates and throws an error):
392
+ * ```js
393
+ * sky.isBlue() || Fail`${sky.color} should be "blue"`;
394
+ * ```
395
+ *
396
+ * The details template tag returns a `DetailsToken` object that can print
397
+ * itself with the formatted message in two ways.
398
+ * It will report full details to the console, but
399
+ * mask embedded substitution values with their typeof information in the thrown error
400
+ * to prevent revealing secrets up the exceptional path. In the example
401
+ * above, the thrown error may reveal only that `sky.color` is a string,
402
+ * whereas the same diagnostic printed to the console reveals that the
403
+ * sky was green. This masking can be disabled for an individual substitution value
404
+ * using `quote`.
405
+ *
406
+ * The `raw` property of an input template array is ignored, so a simple
407
+ * array of strings may be provided directly.
408
+ */
409
+ details(
410
+ template: TemplateStringsArray | string[],
411
+ ...args: any
412
+ ): DetailsToken;
413
+
414
+ /**
415
+ * Use the `Fail` function as a template literal tag to efficiently
416
+ * create and throw a `details`-style error only when a condition is not satisfied.
417
+ * ```js
418
+ * condition || Fail`...complaint...`;
419
+ * ```
420
+ * This avoids the overhead of creating usually-unnecessary errors like
421
+ * ```js
422
+ * assert(condition, details`...complaint...`);
423
+ * ```
424
+ * while improving readability over alternatives like
425
+ * ```js
426
+ * condition || assert.fail(details`...complaint...`);
427
+ * ```
428
+ *
429
+ * However, due to current weakness in TypeScript, static reasoning
430
+ * is less powerful with the `||` patterns than with an `assert` call.
431
+ * Until/unless https://github.com/microsoft/TypeScript/issues/51426 is fixed,
432
+ * for `||`-style assertions where this loss of static reasoning is a problem,
433
+ * instead express the assertion as
434
+ * ```js
435
+ * if (!condition) {
436
+ * Fail`...complaint...`;
437
+ * }
438
+ * ```
439
+ * or, if needed,
440
+ * ```js
441
+ * if (!condition) {
442
+ * // `throw` is noop since `Fail` throws, but it improves static analysis
443
+ * throw Fail`...complaint...`;
444
+ * }
445
+ * ```
446
+ */
447
+ Fail(template: TemplateStringsArray | string[], ...args: any): never;
448
+
449
+ /**
450
+ * To "declassify" and quote a substitution value used in a
451
+ * ``` details`...` ``` template literal, enclose that substitution expression
452
+ * in a call to `quote`. This makes the value appear quoted
453
+ * (as if with `JSON.stringify`) in the message of the thrown error. The
454
+ * payload itself is still passed unquoted to the console as it would be
455
+ * without `quote`.
456
+ *
457
+ * For example, the following will reveal the expected sky color, but not the
458
+ * actual incorrect sky color, in the thrown error's message:
459
+ * ```js
460
+ * sky.color === expectedColor || Fail`${sky.color} should be ${quote(expectedColor)}`;
461
+ * ```
462
+ *
463
+ * The normal convention is to locally rename `details` to `X` and `quote` to `q`
464
+ * like `const { details: X, quote: q } = assert;`, so the above example would then be
465
+ * ```js
466
+ * sky.color === expectedColor || Fail`${sky.color} should be ${q(expectedColor)}`;
467
+ * ```
468
+ */
469
+ quote(
470
+ /** What to declassify */
471
+ payload: any,
472
+ spaces?: string | number,
473
+ ): /** The declassified and quoted payload */ StringablePayload;
474
+
475
+ /**
476
+ * Embed a string directly into error details without wrapping punctuation.
477
+ * To avoid injection attacks that exploit quoting confusion, this must NEVER
478
+ * be used with data that is possibly attacker-controlled.
479
+ * As a further safeguard, we fall back to quoting any input that is not a
480
+ * string of sufficiently word-like parts separated by isolated spaces (rather
481
+ * than throwing an exception, which could hide the original problem for which
482
+ * explanatory details are being constructed---i.e., ``` assert.details`...` ```
483
+ * should never be the source of a new exception, nor should an attempt to
484
+ * render its output, although we _could_ instead decide to handle the latter
485
+ * by inline replacement similar to that of `bestEffortStringify` for producing
486
+ * rendered messages like `(an object) was tagged "[Unsafe bare string]"`).
487
+ */
488
+ bare(
489
+ /** What to declassify */
490
+ payload: any,
491
+ spaces?: string | number,
492
+ ): /** The declassified payload without quotes (beware confusion hazard) */
493
+ StringablePayload;
494
+ }
495
+
496
+ export interface DeprecatedAssertionUtilities {
497
+ makeAssert: MakeAssert;
498
+ }
499
+
500
+ /**
501
+ * assert that expr is truthy, with an optional details to describe
502
+ * the assertion. It is a tagged template literal like
503
+ * ```js
504
+ * assert(expr, details`....`);`
505
+ * ```
506
+ *
507
+ * The literal portions of the template are assumed non-sensitive, as
508
+ * are the `typeof` types of the substitution values. These are
509
+ * assembled into the thrown error message. The actual contents of the
510
+ * substitution values are assumed sensitive, to be revealed to
511
+ * the console only. We assume only the virtual platform's owner can read
512
+ * what is written to the console, where the owner is in a privileged
513
+ * position over computation running on that platform.
514
+ *
515
+ * The optional `optDetails` can be a string for backwards compatibility
516
+ * with the nodejs assertion library.
517
+ */
518
+ export type Assert = AssertionFunctions &
519
+ AssertionUtilities &
520
+ DeprecatedAssertionUtilities;
521
+
522
+ interface CompartmentEvaluateOptions {
523
+ sloppyGlobalsMode?: boolean;
524
+ __moduleShimLexicals__?: Object;
525
+ __evadeHtmlCommentTest__?: boolean;
526
+ __evadeImportExpressionTest__?: boolean;
527
+ __rejectSomeDirectEvalExpressions__?: boolean;
528
+ }
529
+
530
+ declare global {
531
+ var harden: Harden;
532
+
533
+ var repairIntrinsics: RepairIntrinsics;
534
+ var hardenIntrinsics: HardenIntrinsics;
535
+ var lockdown: Lockdown;
536
+
537
+ var assert: Assert;
538
+
539
+ /**
540
+ * Each Compartment constructor is a global. A host that wants to execute
541
+ * code in a context bound to a new global creates a new compartment.
542
+ */
543
+ export class Compartment {
544
+ constructor(options?: CompartmentOptions & { __options__: true });
545
+
546
+ // Deprecated:
547
+ constructor(
548
+ globals?: Record<string, any> | undefined,
549
+ modules?: Record<string, ModuleDescriptor>,
550
+ options?: CompartmentOptions,
551
+ );
552
+
553
+ get globalThis(): Record<string, any>;
554
+
555
+ get name(): string;
556
+
557
+ evaluate(code: string, options?: CompartmentEvaluateOptions): any;
558
+
559
+ import(specifier: string): Promise<{ namespace: ModuleExportsNamespace }>;
560
+
561
+ load(specifier: string): Promise<void>;
562
+
563
+ importNow(specifier: string): ModuleExportsNamespace;
564
+
565
+ module(specifier: string): ModuleExportsNamespace;
566
+ }
567
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ses",
3
- "version": "1.4.1",
3
+ "version": "1.6.0",
4
4
  "description": "Hardened JavaScript for Fearless Cooperation",
5
5
  "keywords": [
6
6
  "lockdown",
@@ -36,14 +36,24 @@
36
36
  "types": "./types.d.ts",
37
37
  "exports": {
38
38
  ".": {
39
- "types": "./types.d.ts",
40
- "import": "./index.js",
41
- "require": "./dist/ses.cjs"
39
+ "import": {
40
+ "types": "./types.d.ts",
41
+ "default": "./index.js"
42
+ },
43
+ "require": {
44
+ "types": "./dist/types.d.cts",
45
+ "default": "./dist/ses.cjs"
46
+ }
42
47
  },
43
48
  "./lockdown": {
44
- "types": "./types.d.ts",
45
- "import": "./index.js",
46
- "require": "./dist/ses.cjs"
49
+ "import": {
50
+ "types": "./types.d.ts",
51
+ "default": "./index.js"
52
+ },
53
+ "require": {
54
+ "types": "./dist/types.d.cts",
55
+ "default": "./dist/ses.cjs"
56
+ }
47
57
  },
48
58
  "./tools.js": "./tools.js",
49
59
  "./assert-shim.js": "./assert-shim.js",
@@ -60,32 +70,32 @@
60
70
  "lint-fix": "eslint --fix .",
61
71
  "lint:eslint": "eslint .",
62
72
  "lint:types": "tsc",
63
- "prepare": "yarn run clean && yarn build",
73
+ "prepare": "npm run clean && npm run build",
64
74
  "qt": "ava",
65
75
  "test": "tsd && ava",
66
76
  "test:platform-compatibility": "node test/package/test.cjs"
67
77
  },
68
78
  "dependencies": {
69
- "@endo/env-options": "^1.1.3"
79
+ "@endo/env-options": "^1.1.5"
70
80
  },
71
81
  "devDependencies": {
72
- "@endo/compartment-mapper": "^1.1.4",
73
- "@endo/static-module-record": "^1.1.1",
74
- "@endo/test262-runner": "^0.1.36",
75
- "ava": "^6.1.2",
76
- "babel-eslint": "^10.0.3",
82
+ "@endo/compartment-mapper": "^1.2.0",
83
+ "@endo/module-source": "^1.0.0",
84
+ "@endo/test262-runner": "^0.1.38",
85
+ "ava": "^6.1.3",
86
+ "babel-eslint": "^10.1.0",
77
87
  "c8": "^7.14.0",
78
88
  "core-js": "^3.31.0",
79
89
  "eslint": "^8.57.0",
80
90
  "eslint-config-airbnb-base": "^15.0.0",
81
91
  "eslint-config-prettier": "^9.1.0",
82
- "eslint-plugin-eslint-comments": "^3.1.2",
83
- "eslint-plugin-import": "^2.29.0",
84
- "prettier": "^3.0.0",
92
+ "eslint-plugin-eslint-comments": "^3.2.0",
93
+ "eslint-plugin-import": "^2.29.1",
94
+ "prettier": "^3.2.5",
85
95
  "sinon": "^15.1.0",
86
96
  "terser": "^5.16.6",
87
97
  "tsd": "^0.30.7",
88
- "typescript": "~5.5.0-dev.20240327"
98
+ "typescript": "5.5.2"
89
99
  },
90
100
  "files": [
91
101
  "LICENSE*",
@@ -97,7 +107,6 @@
97
107
  "tools.js",
98
108
  "src"
99
109
  ],
100
- "private": false,
101
110
  "publishConfig": {
102
111
  "access": "public"
103
112
  },
@@ -182,12 +191,13 @@
182
191
  },
183
192
  "ava": {
184
193
  "files": [
185
- "test/**/test-*.js"
194
+ "test/**/test-*.*",
195
+ "test/**/*.test.*"
186
196
  ],
187
197
  "timeout": "2m"
188
198
  },
189
199
  "typeCoverage": {
190
200
  "atLeast": 81.17
191
201
  },
192
- "gitHead": "25229bdcc26babb3afe0c229df4283a0f3c105f3"
202
+ "gitHead": "681b813ccb1fa177905dabf2ed3f5f248cb33ce7"
193
203
  }