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/dist/ses.cjs CHANGED
@@ -6564,7 +6564,11 @@ optGetStackString = undefined) =>
6564
6564
  }
6565
6565
 
6566
6566
  // Browser
6567
- if (errorTrapping !== 'none' && globalThis.window !== undefined) {
6567
+ if (
6568
+ errorTrapping !== 'none' &&
6569
+ globalThis.window !== undefined &&
6570
+ globalThis.window.addEventListener !== undefined)
6571
+ {
6568
6572
  // eslint-disable-next-line @endo/no-polymorphic-call
6569
6573
  globalThis.window.addEventListener('error', (event) => {
6570
6574
  // eslint-disable-next-line @endo/no-polymorphic-call
package/dist/ses.mjs CHANGED
@@ -6564,7 +6564,11 @@ optGetStackString = undefined) =>
6564
6564
  }
6565
6565
 
6566
6566
  // Browser
6567
- if (errorTrapping !== 'none' && globalThis.window !== undefined) {
6567
+ if (
6568
+ errorTrapping !== 'none' &&
6569
+ globalThis.window !== undefined &&
6570
+ globalThis.window.addEventListener !== undefined)
6571
+ {
6568
6572
  // eslint-disable-next-line @endo/no-polymorphic-call
6569
6573
  globalThis.window.addEventListener('error', (event) => {
6570
6574
  // eslint-disable-next-line @endo/no-polymorphic-call
package/dist/ses.umd.js CHANGED
@@ -6564,7 +6564,11 @@ optGetStackString = undefined) =>
6564
6564
  }
6565
6565
 
6566
6566
  // Browser
6567
- if (errorTrapping !== 'none' && globalThis.window !== undefined) {
6567
+ if (
6568
+ errorTrapping !== 'none' &&
6569
+ globalThis.window !== undefined &&
6570
+ globalThis.window.addEventListener !== undefined)
6571
+ {
6568
6572
  // eslint-disable-next-line @endo/no-polymorphic-call
6569
6573
  globalThis.window.addEventListener('error', (event) => {
6570
6574
  // eslint-disable-next-line @endo/no-polymorphic-call