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.js
CHANGED
|
@@ -400,6 +400,12 @@ var RpcPayload = class _RpcPayload {
|
|
|
400
400
|
// Get the StubHook representing the given RpcTarget found inside this payload.
|
|
401
401
|
getHookForRpcTarget(target, parent, dupStubs = true) {
|
|
402
402
|
if (this.source === "params") {
|
|
403
|
+
if (dupStubs) {
|
|
404
|
+
let dupable = target;
|
|
405
|
+
if (typeof dupable.dup === "function") {
|
|
406
|
+
target = dupable.dup();
|
|
407
|
+
}
|
|
408
|
+
}
|
|
403
409
|
return TargetStubHook.create(target, parent);
|
|
404
410
|
} else if (this.source === "return") {
|
|
405
411
|
let hook = this.rpcTargets?.get(target);
|