@poe-platform/safe-js 0.1.267 → 0.1.268
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/safe-js/chunks/{chunk-GF6I2VQR.js → chunk-3BMZELFG.js} +9 -5
- package/dist/safe-js/chunks/chunk-3BMZELFG.js.map +7 -0
- package/dist/safe-js/chunks/{chunk-MEDRKFEW.js → chunk-YMFWKGFU.js} +2 -2
- package/dist/safe-js/cli.js +2 -2
- package/dist/safe-js/core.js +1 -1
- package/dist/safe-js/index.js +2 -2
- package/package.json +2 -2
- package/dist/safe-js/chunks/chunk-GF6I2VQR.js.map +0 -7
- /package/dist/safe-js/chunks/{chunk-MEDRKFEW.js.map → chunk-YMFWKGFU.js.map} +0 -0
|
@@ -11737,10 +11737,14 @@ function createPromiseGlobals(options) {
|
|
|
11737
11737
|
if (typeof constructor !== "object" || constructor === null) {
|
|
11738
11738
|
throw new TypeError("Promise.resolve requires an object receiver.");
|
|
11739
11739
|
}
|
|
11740
|
-
|
|
11741
|
-
return value;
|
|
11742
|
-
|
|
11743
|
-
|
|
11740
|
+
const finish = (actualConstructor2) => {
|
|
11741
|
+
if (isSandboxPromise(value) && actualConstructor2 === constructor) return value;
|
|
11742
|
+
return isSandboxPromiseConstructor(constructor) ? createSandboxPromise(resolveSandboxValue(value, { budget: options.budget })) : settleConstructedPromise(constructor, value, "fulfilled", options.budget, context);
|
|
11743
|
+
};
|
|
11744
|
+
if (!isSandboxPromise(value)) return finish(void 0);
|
|
11745
|
+
const descriptor = getSandboxPropertyDescriptor(value, "constructor", options.budget);
|
|
11746
|
+
const actualConstructor = descriptor === void 0 ? getPromiseMember("constructor", options.budget) : readPropertyDescriptor(descriptor, value, context, true);
|
|
11747
|
+
return actualConstructor instanceof Promise ? actualConstructor.then(finish) : finish(actualConstructor);
|
|
11744
11748
|
},
|
|
11745
11749
|
name: "resolve"
|
|
11746
11750
|
}),
|
|
@@ -40089,4 +40093,4 @@ export {
|
|
|
40089
40093
|
FileSnapshotBackend,
|
|
40090
40094
|
run
|
|
40091
40095
|
};
|
|
40092
|
-
//# sourceMappingURL=chunk-
|
|
40096
|
+
//# sourceMappingURL=chunk-3BMZELFG.js.map
|