capnweb 0.0.0-1c87560 → 0.0.0-32e362f
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 +8 -0
- package/dist/index-workers.cjs +6 -0
- package/dist/index-workers.cjs.map +1 -1
- package/dist/index-workers.js +6 -0
- package/dist/index-workers.js.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +6 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index-workers.js
CHANGED
|
@@ -403,6 +403,12 @@ var RpcPayload = class _RpcPayload {
|
|
|
403
403
|
// Get the StubHook representing the given RpcTarget found inside this payload.
|
|
404
404
|
getHookForRpcTarget(target, parent, dupStubs = true) {
|
|
405
405
|
if (this.source === "params") {
|
|
406
|
+
if (dupStubs) {
|
|
407
|
+
let dupable = target;
|
|
408
|
+
if (typeof dupable.dup === "function") {
|
|
409
|
+
target = dupable.dup();
|
|
410
|
+
}
|
|
411
|
+
}
|
|
406
412
|
return TargetStubHook.create(target, parent);
|
|
407
413
|
} else if (this.source === "return") {
|
|
408
414
|
let hook = this.rpcTargets?.get(target);
|