ses 1.10.0 → 1.12.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/types.d.ts CHANGED
@@ -27,9 +27,22 @@ export interface RepairOptions {
27
27
  reporting?: 'platform' | 'console' | 'none';
28
28
  unhandledRejectionTrapping?: 'report' | 'none';
29
29
  errorTaming?: 'safe' | 'unsafe' | 'unsafe-debug';
30
- dateTaming?: 'safe' | 'unsafe'; // deprecated
31
- mathTaming?: 'safe' | 'unsafe'; // deprecated
32
- evalTaming?: 'safeEval' | 'unsafeEval' | 'noEval';
30
+ /**
31
+ * @deprecated Deprecated and does nothing. In the future specifying it will be an error.
32
+ */
33
+ dateTaming?: 'safe' | 'unsafe';
34
+ /**
35
+ * @deprecated Deprecated and does nothing. In the future specifying it will be an error.
36
+ */
37
+ mathTaming?: 'safe' | 'unsafe';
38
+ evalTaming?:
39
+ | 'safe-eval'
40
+ | 'unsafe-eval'
41
+ | 'no-eval'
42
+ // deprecated
43
+ | 'safeEval'
44
+ | 'unsafeEval'
45
+ | 'noEval';
33
46
  stackFiltering?: 'concise' | 'verbose';
34
47
  overrideTaming?: 'moderate' | 'min' | 'severe';
35
48
  overrideDebug?: Array<string>;
@@ -552,12 +565,12 @@ declare global {
552
565
 
553
566
  // Deprecated:
554
567
  constructor(
555
- globals?: Record<string, any> | undefined,
568
+ globals?: Record<PropertyKey, any> | undefined,
556
569
  modules?: Record<string, ModuleDescriptor>,
557
570
  options?: CompartmentOptions,
558
571
  );
559
572
 
560
- get globalThis(): Record<string, any>;
573
+ get globalThis(): Record<PropertyKey, any>;
561
574
 
562
575
  get name(): string;
563
576