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