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