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/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
- const harden: Harden;
198
+ var harden: Harden;
199
199
 
200
- const lockdown: Lockdown;
200
+ var lockdown: Lockdown;
201
201
 
202
- const assert: Assert;
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.6",
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.4",
63
- "@endo/eslint-config": "^0.4.1",
64
- "@endo/static-module-record": "^0.6.11",
65
- "@endo/test262-runner": "^0.1.17",
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": "4e9cd15994971759eabcbaa507e524343de9b8e0"
181
+ "gitHead": "96df4cf238b245cc92c78e4af4667f405b8cf4f0"
182
182
  }
@@ -71,7 +71,11 @@ export const tameConsole = (
71
71
  }
72
72
 
73
73
  // Browser
74
- if (errorTrapping !== 'none' && globalThis.window !== undefined) {
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