@agoric/eventual-send
Advanced tools
Comparing version 0.3.1 to 0.3.2
@@ -65,4 +65,2 @@ 'use strict'; | ||
const harden$1 = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// 'E' and 'HandledPromise' are exports of the module | ||
@@ -74,3 +72,3 @@ | ||
// TODO: Maybe rename the global to something only the tildot rewriter uses. | ||
// TODO: Maybe rename the global HandledPromise to something only the tildot rewriter uses. | ||
if (!globalThis.HandledPromise) { | ||
@@ -95,2 +93,4 @@ /* eslint-disable no-use-before-define */ | ||
function makeHandledPromise(EPromise) { | ||
const harden = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// TODO: Use HandledPromise.resolve to store our weakmap, and | ||
@@ -135,3 +135,3 @@ // install it on Promise.resolve. | ||
return harden$1(Object.assign(HandledPromise, staticMethods)); | ||
return harden(Object.assign(HandledPromise, staticMethods)); | ||
} | ||
@@ -159,2 +159,4 @@ | ||
const harden = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// xs doesn't support WeakMap in pre-loaded closures | ||
@@ -403,3 +405,3 @@ // aka "vetted customization code" | ||
// by the executor. | ||
return harden$1(handledP); | ||
return harden(handledP); | ||
}, | ||
@@ -406,0 +408,0 @@ }), |
@@ -61,4 +61,2 @@ /* global globalThis window */ | ||
const harden$1 = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// 'E' and 'HandledPromise' are exports of the module | ||
@@ -70,3 +68,3 @@ | ||
// TODO: Maybe rename the global to something only the tildot rewriter uses. | ||
// TODO: Maybe rename the global HandledPromise to something only the tildot rewriter uses. | ||
if (!globalThis.HandledPromise) { | ||
@@ -91,2 +89,4 @@ /* eslint-disable no-use-before-define */ | ||
function makeHandledPromise(EPromise) { | ||
const harden = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// TODO: Use HandledPromise.resolve to store our weakmap, and | ||
@@ -131,3 +131,3 @@ // install it on Promise.resolve. | ||
return harden$1(Object.assign(HandledPromise, staticMethods)); | ||
return harden(Object.assign(HandledPromise, staticMethods)); | ||
} | ||
@@ -155,2 +155,4 @@ | ||
const harden = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// xs doesn't support WeakMap in pre-loaded closures | ||
@@ -399,3 +401,3 @@ // aka "vetted customization code" | ||
// by the executor. | ||
return harden$1(handledP); | ||
return harden(handledP); | ||
}, | ||
@@ -402,0 +404,0 @@ }), |
@@ -67,4 +67,2 @@ (function (global, factory) { | ||
const harden$1 = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// 'E' and 'HandledPromise' are exports of the module | ||
@@ -76,3 +74,3 @@ | ||
// TODO: Maybe rename the global to something only the tildot rewriter uses. | ||
// TODO: Maybe rename the global HandledPromise to something only the tildot rewriter uses. | ||
if (!globalThis.HandledPromise) { | ||
@@ -97,2 +95,4 @@ /* eslint-disable no-use-before-define */ | ||
function makeHandledPromise(EPromise) { | ||
const harden = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// TODO: Use HandledPromise.resolve to store our weakmap, and | ||
@@ -137,3 +137,3 @@ // install it on Promise.resolve. | ||
return harden$1(Object.assign(HandledPromise, staticMethods)); | ||
return harden(Object.assign(HandledPromise, staticMethods)); | ||
} | ||
@@ -161,2 +161,4 @@ | ||
const harden = (globalThis.SES && globalThis.SES.harden) || Object.freeze; | ||
// xs doesn't support WeakMap in pre-loaded closures | ||
@@ -405,3 +407,3 @@ // aka "vetted customization code" | ||
// by the executor. | ||
return harden$1(handledP); | ||
return harden(handledP); | ||
}, | ||
@@ -408,0 +410,0 @@ }), |
{ | ||
"name": "@agoric/eventual-send", | ||
"version": "0.3.1", | ||
"version": "0.3.2", | ||
"description": "Extend a Promise class to implement the eventual-send API", | ||
@@ -5,0 +5,0 @@ "main": "dist/eventual-send.cjs.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
60269
1209