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