poe-code 12.0.8 → 12.0.9
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/README.md +21 -0
- package/dist/index.js +6 -2
- package/dist/index.js.map +2 -2
- package/dist/metafile.json +1 -1
- package/package.json +1 -1
- package/packages/safe-js/dist/chunks/{chunk-JGTN4U7F.js → chunk-4D75HUZZ.js} +5 -2
- package/packages/safe-js/dist/chunks/{chunk-JGTN4U7F.js.map → chunk-4D75HUZZ.js.map} +2 -2
- package/packages/safe-js/dist/chunks/{chunk-PY5NKSTP.js → chunk-ETVJF5BE.js} +2 -2
- package/packages/safe-js/dist/cli.js +2 -2
- package/packages/safe-js/dist/core.js +1 -1
- package/packages/safe-js/dist/index.js +2 -2
- package/packages/safe-js/dist/interp/host-bridge.d.ts +1 -1
- package/packages/safe-js/dist/interp/host-bridge.js +4 -1
- package/packages/safe-js/dist/snapshot/policy.d.ts +1 -0
- package/packages/safe-js/dist/snapshot/policy.js +4 -1
- /package/packages/safe-js/dist/chunks/{chunk-PY5NKSTP.js.map → chunk-ETVJF5BE.js.map} +0 -0
package/package.json
CHANGED
|
@@ -17746,6 +17746,9 @@ function registerPendingHostCallPolicy(registration) {
|
|
|
17746
17746
|
MODULE_PENDING_HOST_CALL_POLICIES[moduleId] ??= /* @__PURE__ */ Object.create(null);
|
|
17747
17747
|
MODULE_PENDING_HOST_CALL_POLICIES[moduleId][operation] = policy;
|
|
17748
17748
|
}
|
|
17749
|
+
function readRegisteredPendingHostCallPolicy(moduleId, operation) {
|
|
17750
|
+
return MODULE_PENDING_HOST_CALL_POLICIES[moduleId]?.[operation];
|
|
17751
|
+
}
|
|
17749
17752
|
function pendingHostCallResumeIdentityMatches(expected, actual) {
|
|
17750
17753
|
return actual.callId === expected.callId && actual.sourceHash === expected.sourceHash && actual.moduleId === expected.moduleId && actual.operation === expected.operation && actual.argumentDigest === expected.argumentDigest;
|
|
17751
17754
|
}
|
|
@@ -22309,10 +22312,10 @@ function wrapCallerInjectedFunction(name, value, options, state) {
|
|
|
22309
22312
|
const hostArgs = deepCopyFromSandbox([...args], {
|
|
22310
22313
|
wrapClosure: (closure) => wrapSandboxClosureForHost(closure, stackFrames, options.budget, callbacks)
|
|
22311
22314
|
});
|
|
22312
|
-
const policy = readHostOperationPolicy(value) ?? "re-issue";
|
|
22313
22315
|
const hostCalls = options.hostCalls;
|
|
22314
22316
|
const operation = options.operation ?? bindingName;
|
|
22315
22317
|
const moduleId = options.moduleId ?? "<bindings>";
|
|
22318
|
+
const policy = readHostOperationPolicy(value) ?? readRegisteredPendingHostCallPolicy(moduleId, operation) ?? "re-issue";
|
|
22316
22319
|
if (hostCalls === void 0) {
|
|
22317
22320
|
return copyHostResultToSandbox(
|
|
22318
22321
|
invokeHostCallback(() => Reflect.apply(callable, void 0, hostArgs), options),
|
|
@@ -29748,4 +29751,4 @@ export {
|
|
|
29748
29751
|
FileSnapshotBackend,
|
|
29749
29752
|
run
|
|
29750
29753
|
};
|
|
29751
|
-
//# sourceMappingURL=chunk-
|
|
29754
|
+
//# sourceMappingURL=chunk-4D75HUZZ.js.map
|