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/dist/lockdown.cjs +3986 -3668
- package/dist/lockdown.mjs +3986 -3668
- package/dist/lockdown.umd.js +3986 -3668
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses-hermes.cjs +13146 -0
- package/dist/ses.cjs +3986 -3668
- package/dist/ses.mjs +3986 -3668
- package/dist/ses.umd.js +3986 -3668
- package/dist/ses.umd.min.js +1 -1
- package/dist/types.d.cts +18 -5
- package/package.json +31 -9
- package/src/commons.js +59 -17
- package/src/compartment-shim.js +3 -0
- package/src/compartment.js +91 -7
- package/src/error/console.js +38 -29
- package/src/get-anonymous-intrinsics.js +23 -18
- package/src/global-object.js +4 -1
- package/src/lockdown.js +44 -14
- package/src/make-safe-evaluator.js +8 -6
- package/src/module-instance.js +14 -1
- package/src/permits.js +92 -12
- package/src/reporting-types.d.ts +2 -2
- package/src/reporting.js +5 -3
- package/src/sloppy-globals-scope-terminator.js +9 -2
- package/src/strict-scope-terminator.js +11 -5
- package/src/tame-date-constructor.js +1 -4
- package/src/tame-function-constructors.js +9 -5
- package/src/tame-math-object.js +1 -4
- package/src/transforms.js +2 -1
- package/types.d.ts +18 -5
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
|
-
|
|
31
|
-
|
|
32
|
-
|
|
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<
|
|
568
|
+
globals?: Record<PropertyKey, any> | undefined,
|
|
556
569
|
modules?: Record<string, ModuleDescriptor>,
|
|
557
570
|
options?: CompartmentOptions,
|
|
558
571
|
);
|
|
559
572
|
|
|
560
|
-
get globalThis(): Record<
|
|
573
|
+
get globalThis(): Record<PropertyKey, any>;
|
|
561
574
|
|
|
562
575
|
get name(): string;
|
|
563
576
|
|