capnweb 0.0.0-76fdff1 → 0.0.0-89a706f
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 +0 -4
- package/dist/index-workers.cjs +4 -7
- package/dist/index-workers.cjs.map +1 -1
- package/dist/index-workers.js +4 -7
- package/dist/index-workers.js.map +1 -1
- package/dist/index.cjs +4 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +4 -7
- package/dist/index.js.map +1 -1
- package/package.json +7 -7
package/dist/index.cjs
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
3
|
// src/symbols.ts
|
|
4
|
-
var WORKERS_MODULE_SYMBOL =
|
|
4
|
+
var WORKERS_MODULE_SYMBOL = Symbol("workers-module");
|
|
5
5
|
|
|
6
6
|
// src/core.ts
|
|
7
7
|
if (!Symbol.dispose) {
|
|
8
|
-
Symbol.dispose =
|
|
8
|
+
Symbol.dispose = Symbol.for("dispose");
|
|
9
9
|
}
|
|
10
10
|
if (!Symbol.asyncDispose) {
|
|
11
|
-
Symbol.asyncDispose =
|
|
11
|
+
Symbol.asyncDispose = Symbol.for("asyncDispose");
|
|
12
12
|
}
|
|
13
13
|
if (!Promise.withResolvers) {
|
|
14
14
|
Promise.withResolvers = function() {
|
|
@@ -24,8 +24,6 @@ if (!Promise.withResolvers) {
|
|
|
24
24
|
var workersModule = globalThis[WORKERS_MODULE_SYMBOL];
|
|
25
25
|
var RpcTarget = workersModule ? workersModule.RpcTarget : class {
|
|
26
26
|
};
|
|
27
|
-
var AsyncFunction = (async function() {
|
|
28
|
-
}).constructor;
|
|
29
27
|
function typeForRpc(value) {
|
|
30
28
|
switch (typeof value) {
|
|
31
29
|
case "boolean":
|
|
@@ -50,7 +48,6 @@ function typeForRpc(value) {
|
|
|
50
48
|
case Object.prototype:
|
|
51
49
|
return "object";
|
|
52
50
|
case Function.prototype:
|
|
53
|
-
case AsyncFunction.prototype:
|
|
54
51
|
return "function";
|
|
55
52
|
case Array.prototype:
|
|
56
53
|
return "array";
|
|
@@ -134,7 +131,7 @@ function withCallInterceptor(interceptor, callback) {
|
|
|
134
131
|
doCall = oldValue;
|
|
135
132
|
}
|
|
136
133
|
}
|
|
137
|
-
var RAW_STUB =
|
|
134
|
+
var RAW_STUB = Symbol("realStub");
|
|
138
135
|
var PROXY_HANDLERS = {
|
|
139
136
|
apply(target, thisArg, argumentsList) {
|
|
140
137
|
let stub = target.raw;
|