ses 0.15.6 → 0.15.7
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/CHANGELOG.md +9 -0
- package/SECURITY.md +1 -1
- package/dist/lockdown.cjs +5 -1
- package/dist/lockdown.mjs +5 -1
- package/dist/lockdown.umd.js +5 -1
- package/dist/lockdown.umd.min.js +1 -1
- package/dist/ses.cjs +5 -1
- package/dist/ses.mjs +5 -1
- package/dist/ses.umd.js +5 -1
- package/dist/ses.umd.min.js +1 -1
- package/index.d.ts +4 -4
- package/package.json +6 -6
- package/src/error/tame-console.js +5 -1
package/index.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
/* eslint-disable no-restricted-globals */
|
|
1
|
+
/* eslint-disable no-restricted-globals, vars-on-top, no-var */
|
|
2
2
|
|
|
3
3
|
// It's academically tempting to define a hardened type, but TypeScript doesn't
|
|
4
4
|
// strike a good balance in distinguishing "readonly" in the sense that you
|
|
@@ -195,11 +195,11 @@ export interface Assert {
|
|
|
195
195
|
}
|
|
196
196
|
|
|
197
197
|
declare global {
|
|
198
|
-
|
|
198
|
+
var harden: Harden;
|
|
199
199
|
|
|
200
|
-
|
|
200
|
+
var lockdown: Lockdown;
|
|
201
201
|
|
|
202
|
-
|
|
202
|
+
var assert: Assert;
|
|
203
203
|
|
|
204
204
|
/**
|
|
205
205
|
* Each Compartment constructor is a global. A host that wants to execute
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "ses",
|
|
3
|
-
"version": "0.15.
|
|
3
|
+
"version": "0.15.7",
|
|
4
4
|
"description": "Hardened JavaScript for Fearless Cooperation",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"lockdown",
|
|
@@ -59,10 +59,10 @@
|
|
|
59
59
|
"test:platform-compatability": "node test/package/test.cjs"
|
|
60
60
|
},
|
|
61
61
|
"devDependencies": {
|
|
62
|
-
"@endo/compartment-mapper": "^0.6.
|
|
63
|
-
"@endo/eslint-config": "^0.4.
|
|
64
|
-
"@endo/static-module-record": "^0.6.
|
|
65
|
-
"@endo/test262-runner": "^0.1.
|
|
62
|
+
"@endo/compartment-mapper": "^0.6.5",
|
|
63
|
+
"@endo/eslint-config": "^0.4.2",
|
|
64
|
+
"@endo/static-module-record": "^0.6.12",
|
|
65
|
+
"@endo/test262-runner": "^0.1.18",
|
|
66
66
|
"ava": "^3.12.1",
|
|
67
67
|
"babel-eslint": "^10.0.3",
|
|
68
68
|
"c8": "^7.7.3",
|
|
@@ -178,5 +178,5 @@
|
|
|
178
178
|
],
|
|
179
179
|
"timeout": "2m"
|
|
180
180
|
},
|
|
181
|
-
"gitHead": "
|
|
181
|
+
"gitHead": "96df4cf238b245cc92c78e4af4667f405b8cf4f0"
|
|
182
182
|
}
|
|
@@ -71,7 +71,11 @@ export const tameConsole = (
|
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
// Browser
|
|
74
|
-
if (
|
|
74
|
+
if (
|
|
75
|
+
errorTrapping !== 'none' &&
|
|
76
|
+
globalThis.window !== undefined &&
|
|
77
|
+
globalThis.window.addEventListener !== undefined
|
|
78
|
+
) {
|
|
75
79
|
// eslint-disable-next-line @endo/no-polymorphic-call
|
|
76
80
|
globalThis.window.addEventListener('error', event => {
|
|
77
81
|
// eslint-disable-next-line @endo/no-polymorphic-call
|