@zoralabs/protocol-deployments 0.6.4-PRE.0 → 0.6.5-LOB.0
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/.turbo/turbo-build$colon$js.log +26 -28
- package/.turbo/turbo-build.log +47 -0
- package/.turbo/turbo-lint.log +7 -0
- package/CHANGELOG.md +11 -2
- package/dist/{_esm-OJM6GREZ.js → _esm-AN6HMJZC.js} +131 -138
- package/dist/_esm-AN6HMJZC.js.map +1 -0
- package/dist/{ccip-4Y6T462U.js → ccip-3JNBGYOD.js} +2 -3
- package/dist/{chunk-KMBLRPCX.js → chunk-4DQDZNUA.js} +577 -980
- package/dist/chunk-4DQDZNUA.js.map +1 -0
- package/dist/generated/sparks.d.ts +14 -0
- package/dist/generated/sparks.d.ts.map +1 -1
- package/dist/generated/wagmi.d.ts +7824 -3720
- package/dist/generated/wagmi.d.ts.map +1 -1
- package/dist/index.cjs +2604 -1334
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +2402 -1148
- package/dist/index.js.map +1 -1
- package/dist/{secp256k1-XP7IUONI.js → secp256k1-QZA5SALG.js} +746 -438
- package/dist/secp256k1-QZA5SALG.js.map +1 -0
- package/package.json +1 -1
- package/src/generated/sparks.ts +14 -0
- package/src/generated/wagmi.ts +2417 -1166
- package/dist/_esm-OJM6GREZ.js.map +0 -1
- package/dist/chunk-BYTNVMX7.js +0 -408
- package/dist/chunk-BYTNVMX7.js.map +0 -1
- package/dist/chunk-KMBLRPCX.js.map +0 -1
- package/dist/secp256k1-XP7IUONI.js.map +0 -1
- /package/dist/{ccip-4Y6T462U.js.map → ccip-3JNBGYOD.js.map} +0 -0
|
@@ -1,53 +1,51 @@
|
|
|
1
1
|
|
|
2
2
|
|
|
3
|
-
> @zoralabs/protocol-deployments@0.6.4
|
|
3
|
+
> @zoralabs/protocol-deployments@0.6.4 build:js /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments
|
|
4
4
|
> pnpm run build
|
|
5
5
|
|
|
6
6
|
|
|
7
|
-
> @zoralabs/protocol-deployments@0.6.4
|
|
7
|
+
> @zoralabs/protocol-deployments@0.6.4 build /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments
|
|
8
8
|
> pnpm bundle-configs && pnpm copy-generated && tsup
|
|
9
9
|
|
|
10
10
|
|
|
11
|
-
> @zoralabs/protocol-deployments@0.6.4
|
|
11
|
+
> @zoralabs/protocol-deployments@0.6.4 bundle-configs /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments
|
|
12
12
|
> tsx scripts/bundle-configs.ts && pnpm prettier:write
|
|
13
13
|
|
|
14
14
|
|
|
15
|
-
> @zoralabs/protocol-deployments@0.6.4
|
|
15
|
+
> @zoralabs/protocol-deployments@0.6.4 prettier:write /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments
|
|
16
16
|
> prettier --write 'src/**/*.ts' 'scripts/*'
|
|
17
17
|
|
|
18
|
-
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m
|
|
18
|
+
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m 40ms (unchanged)
|
|
19
19
|
src/index.ts[2K[1G[90msrc/index.ts[39m 2ms (unchanged)
|
|
20
|
-
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m
|
|
21
|
-
src/types.ts[2K[1G[90msrc/types.ts[39m
|
|
22
|
-
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m
|
|
23
|
-
scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m
|
|
20
|
+
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m 228ms (unchanged)
|
|
21
|
+
src/types.ts[2K[1G[90msrc/types.ts[39m 21ms (unchanged)
|
|
22
|
+
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m 5ms (unchanged)
|
|
23
|
+
scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m 17ms (unchanged)
|
|
24
24
|
|
|
25
|
-
> @zoralabs/protocol-deployments@0.6.4
|
|
25
|
+
> @zoralabs/protocol-deployments@0.6.4 copy-generated /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments
|
|
26
26
|
> cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts
|
|
27
27
|
|
|
28
28
|
[34mCLI[39m Building entry: src/index.ts
|
|
29
29
|
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
30
|
-
[34mCLI[39m tsup v8.
|
|
31
|
-
[34mCLI[39m Using tsup config: /Users/danovedzora/source/zora/protocol/
|
|
30
|
+
[34mCLI[39m tsup v8.4.0
|
|
31
|
+
[34mCLI[39m Using tsup config: /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments/tsup.config.ts
|
|
32
32
|
[34mCLI[39m Target: es2021
|
|
33
33
|
[34mCLI[39m Cleaning output folder
|
|
34
34
|
[34mCJS[39m Build start
|
|
35
35
|
[34mESM[39m Build start
|
|
36
|
-
[32mCJS[39m [1mdist/index.cjs [22m[
|
|
37
|
-
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.
|
|
38
|
-
[32mCJS[39m ⚡️ Build success in
|
|
39
|
-
[32mESM[39m [1mdist/secp256k1-
|
|
36
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m667.61 KB[39m
|
|
37
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.33 MB[39m
|
|
38
|
+
[32mCJS[39m ⚡️ Build success in 256ms
|
|
39
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js [22m[32m80.13 KB[39m
|
|
40
|
+
[32mESM[39m [1mdist/ccip-3JNBGYOD.js [22m[32m290.00 B[39m
|
|
41
|
+
[32mESM[39m [1mdist/_esm-AN6HMJZC.js [22m[32m132.93 KB[39m
|
|
42
|
+
[32mESM[39m [1mdist/chunk-4DQDZNUA.js [22m[32m136.40 KB[39m
|
|
40
43
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js [22m[32m1.87 KB[39m
|
|
41
|
-
[32mESM[39m [1mdist/index.js [22m[
|
|
42
|
-
[32mESM[39m [1mdist/
|
|
43
|
-
[32mESM[39m [1mdist/_esm-OJM6GREZ.js [22m[32m133.14 KB[39m
|
|
44
|
-
[32mESM[39m [1mdist/ccip-4Y6T462U.js [22m[32m320.00 B[39m
|
|
45
|
-
[32mESM[39m [1mdist/chunk-KMBLRPCX.js [22m[32m158.75 KB[39m
|
|
44
|
+
[32mESM[39m [1mdist/index.js [22m[32m585.46 KB[39m
|
|
45
|
+
[32mESM[39m [1mdist/ccip-3JNBGYOD.js.map [22m[32m71.00 B[39m
|
|
46
46
|
[32mESM[39m [1mdist/chunk-PR4QN5HX.js.map [22m[32m71.00 B[39m
|
|
47
|
-
[32mESM[39m [1mdist/secp256k1-
|
|
48
|
-
[32mESM[39m [1mdist/
|
|
49
|
-
[32mESM[39m [1mdist/
|
|
50
|
-
[32mESM[39m [1mdist/
|
|
51
|
-
[32mESM[39m
|
|
52
|
-
[32mESM[39m [1mdist/index.js.map [22m[32m1.03 MB[39m
|
|
53
|
-
[32mESM[39m ⚡️ Build success in 258ms
|
|
47
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js.map [22m[32m203.10 KB[39m
|
|
48
|
+
[32mESM[39m [1mdist/_esm-AN6HMJZC.js.map [22m[32m212.33 KB[39m
|
|
49
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m1.10 MB[39m
|
|
50
|
+
[32mESM[39m [1mdist/chunk-4DQDZNUA.js.map [22m[32m393.76 KB[39m
|
|
51
|
+
[32mESM[39m ⚡️ Build success in 272ms
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @zoralabs/protocol-deployments@0.6.1 build /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
4
|
+
> pnpm bundle-configs && pnpm copy-generated && tsup
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> @zoralabs/protocol-deployments@0.6.1 bundle-configs /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
8
|
+
> tsx scripts/bundle-configs.ts && pnpm prettier:write
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
> @zoralabs/protocol-deployments@0.6.1 prettier:write /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
12
|
+
> prettier --write 'src/**/*.ts' 'scripts/*'
|
|
13
|
+
|
|
14
|
+
src/encoding.ts[2K[1G[90msrc/encoding.ts[39m 53ms (unchanged)
|
|
15
|
+
src/index.ts[2K[1G[90msrc/index.ts[39m 2ms (unchanged)
|
|
16
|
+
src/typedData.ts[2K[1G[90msrc/typedData.ts[39m 39ms (unchanged)
|
|
17
|
+
src/types.ts[2K[1G[90msrc/types.ts[39m 10ms (unchanged)
|
|
18
|
+
scripts/bundle-chainConfigs.ts[2K[1G[90mscripts/bundle-chainConfigs.ts[39m 4ms (unchanged)
|
|
19
|
+
scripts/bundle-configs.ts[2K[1G[90mscripts/bundle-configs.ts[39m 9ms (unchanged)
|
|
20
|
+
|
|
21
|
+
> @zoralabs/protocol-deployments@0.6.1 copy-generated /Users/danovedzora/source/zora-protocol/packages/protocol-deployments
|
|
22
|
+
> cp ../protocol-deployments-gen/generated/wagmi.ts src/generated/wagmi.ts
|
|
23
|
+
|
|
24
|
+
[34mCLI[39m Building entry: src/index.ts
|
|
25
|
+
[34mCLI[39m Using tsconfig: tsconfig.json
|
|
26
|
+
[34mCLI[39m tsup v8.4.0
|
|
27
|
+
[34mCLI[39m Using tsup config: /Users/danovedzora/source/zora-protocol/packages/protocol-deployments/tsup.config.ts
|
|
28
|
+
[34mCLI[39m Target: es2021
|
|
29
|
+
[34mCLI[39m Cleaning output folder
|
|
30
|
+
[34mCJS[39m Build start
|
|
31
|
+
[34mESM[39m Build start
|
|
32
|
+
[32mCJS[39m [1mdist/index.cjs [22m[32m641.34 KB[39m
|
|
33
|
+
[32mCJS[39m [1mdist/index.cjs.map [22m[32m1.29 MB[39m
|
|
34
|
+
[32mCJS[39m ⚡️ Build success in 158ms
|
|
35
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js [22m[32m80.13 KB[39m
|
|
36
|
+
[32mESM[39m [1mdist/chunk-PR4QN5HX.js [22m[32m1.87 KB[39m
|
|
37
|
+
[32mESM[39m [1mdist/ccip-C5WONSSK.js [22m[32m290.00 B[39m
|
|
38
|
+
[32mESM[39m [1mdist/_esm-3RFC2XVO.js [22m[32m133.00 KB[39m
|
|
39
|
+
[32mESM[39m [1mdist/chunk-NPNNGXR4.js [22m[32m136.42 KB[39m
|
|
40
|
+
[32mESM[39m [1mdist/index.js [22m[32m556.28 KB[39m
|
|
41
|
+
[32mESM[39m [1mdist/chunk-PR4QN5HX.js.map [22m[32m71.00 B[39m
|
|
42
|
+
[32mESM[39m [1mdist/ccip-C5WONSSK.js.map [22m[32m71.00 B[39m
|
|
43
|
+
[32mESM[39m [1mdist/secp256k1-QZA5SALG.js.map [22m[32m203.10 KB[39m
|
|
44
|
+
[32mESM[39m [1mdist/_esm-3RFC2XVO.js.map [22m[32m212.41 KB[39m
|
|
45
|
+
[32mESM[39m [1mdist/chunk-NPNNGXR4.js.map [22m[32m393.76 KB[39m
|
|
46
|
+
[32mESM[39m [1mdist/index.js.map [22m[32m1.05 MB[39m
|
|
47
|
+
[32mESM[39m ⚡️ Build success in 174ms
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @zoralabs/protocol-deployments@0.6.3 lint /Users/danovedzora/source/zora/protocol/zora-protocol/packages/protocol-deployments
|
|
4
|
+
> prettier --check 'src/**/*.ts' 'scripts/*'
|
|
5
|
+
|
|
6
|
+
Checking formatting...
|
|
7
|
+
src/encoding.ts[2K[1Gsrc/index.ts[2K[1Gsrc/typedData.ts[2K[1Gsrc/types.ts[2K[1Gscripts/bundle-chainConfigs.ts[2K[1Gscripts/bundle-configs.ts[2K[1GAll matched files use Prettier code style!
|
package/CHANGELOG.md
CHANGED
|
@@ -1,10 +1,16 @@
|
|
|
1
1
|
# @zoralabs/protocol-deployments
|
|
2
2
|
|
|
3
|
-
## 0.6.
|
|
3
|
+
## 0.6.5-LOB.0
|
|
4
4
|
|
|
5
5
|
### Patch Changes
|
|
6
6
|
|
|
7
|
-
-
|
|
7
|
+
- 9391359c7: Reduced hook code size by removing extra liquidity minting step during migration. Small leftover token amounts from rounding are now left as burned rather than being minted into the last position.
|
|
8
|
+
|
|
9
|
+
## 0.6.4
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- 3c274d9d: Created a buy supply with v4 hook, for buying initial supply of a creator coin, supporting doing a v3 and v4 swap to buy the creator coin. updated the encoding function for buying initial supply to work with the v3 to v4 swap
|
|
8
14
|
|
|
9
15
|
## 0.6.3
|
|
10
16
|
|
|
@@ -12,6 +18,7 @@
|
|
|
12
18
|
|
|
13
19
|
- 131c719a: Deployed v2.2.0 of coins to Base
|
|
14
20
|
- cdaa9d25: Fix critical security vulnerabilities with pnpm overrides
|
|
21
|
+
|
|
15
22
|
- Added pnpm overrides to eliminate critical vulnerabilities
|
|
16
23
|
- Fixed vitest RCE vulnerability (^2.1.9)
|
|
17
24
|
- Fixed elliptic private key extraction vulnerability (^6.6.1)
|
|
@@ -245,6 +252,7 @@
|
|
|
245
252
|
### Patch Changes
|
|
246
253
|
|
|
247
254
|
- 9cdd81ac: Deployed latest version of 1155 contracts, 1155 factory, preminter, and mints manager to:
|
|
255
|
+
|
|
248
256
|
- blast
|
|
249
257
|
- Optimism mainnet
|
|
250
258
|
- Base
|
|
@@ -436,6 +444,7 @@
|
|
|
436
444
|
|
|
437
445
|
- 4d79b49: Deployed to zora sepolia
|
|
438
446
|
- b62e471: created new package `protocol-deployments` that includes the deployed contract addresses.
|
|
447
|
+
|
|
439
448
|
- 1155-contracts js no longer exports deployed addresses, just the abis
|
|
440
449
|
- premint-sdk imports deployed addresses from `protocol-deployments
|
|
441
450
|
|
|
@@ -5,9 +5,106 @@ import {
|
|
|
5
5
|
__toESM
|
|
6
6
|
} from "./chunk-PR4QN5HX.js";
|
|
7
7
|
|
|
8
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
8
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js
|
|
9
|
+
var require_stream = __commonJS({
|
|
10
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js"(exports, module) {
|
|
11
|
+
"use strict";
|
|
12
|
+
var { Duplex } = __require("stream");
|
|
13
|
+
function emitClose(stream) {
|
|
14
|
+
stream.emit("close");
|
|
15
|
+
}
|
|
16
|
+
function duplexOnEnd() {
|
|
17
|
+
if (!this.destroyed && this._writableState.finished) {
|
|
18
|
+
this.destroy();
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
function duplexOnError(err) {
|
|
22
|
+
this.removeListener("error", duplexOnError);
|
|
23
|
+
this.destroy();
|
|
24
|
+
if (this.listenerCount("error") === 0) {
|
|
25
|
+
this.emit("error", err);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
function createWebSocketStream2(ws, options) {
|
|
29
|
+
let terminateOnDestroy = true;
|
|
30
|
+
const duplex = new Duplex({
|
|
31
|
+
...options,
|
|
32
|
+
autoDestroy: false,
|
|
33
|
+
emitClose: false,
|
|
34
|
+
objectMode: false,
|
|
35
|
+
writableObjectMode: false
|
|
36
|
+
});
|
|
37
|
+
ws.on("message", function message(msg, isBinary) {
|
|
38
|
+
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
|
39
|
+
if (!duplex.push(data)) ws.pause();
|
|
40
|
+
});
|
|
41
|
+
ws.once("error", function error(err) {
|
|
42
|
+
if (duplex.destroyed) return;
|
|
43
|
+
terminateOnDestroy = false;
|
|
44
|
+
duplex.destroy(err);
|
|
45
|
+
});
|
|
46
|
+
ws.once("close", function close() {
|
|
47
|
+
if (duplex.destroyed) return;
|
|
48
|
+
duplex.push(null);
|
|
49
|
+
});
|
|
50
|
+
duplex._destroy = function(err, callback) {
|
|
51
|
+
if (ws.readyState === ws.CLOSED) {
|
|
52
|
+
callback(err);
|
|
53
|
+
process.nextTick(emitClose, duplex);
|
|
54
|
+
return;
|
|
55
|
+
}
|
|
56
|
+
let called = false;
|
|
57
|
+
ws.once("error", function error(err2) {
|
|
58
|
+
called = true;
|
|
59
|
+
callback(err2);
|
|
60
|
+
});
|
|
61
|
+
ws.once("close", function close() {
|
|
62
|
+
if (!called) callback(err);
|
|
63
|
+
process.nextTick(emitClose, duplex);
|
|
64
|
+
});
|
|
65
|
+
if (terminateOnDestroy) ws.terminate();
|
|
66
|
+
};
|
|
67
|
+
duplex._final = function(callback) {
|
|
68
|
+
if (ws.readyState === ws.CONNECTING) {
|
|
69
|
+
ws.once("open", function open() {
|
|
70
|
+
duplex._final(callback);
|
|
71
|
+
});
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
if (ws._socket === null) return;
|
|
75
|
+
if (ws._socket._writableState.finished) {
|
|
76
|
+
callback();
|
|
77
|
+
if (duplex._readableState.endEmitted) duplex.destroy();
|
|
78
|
+
} else {
|
|
79
|
+
ws._socket.once("finish", function finish() {
|
|
80
|
+
callback();
|
|
81
|
+
});
|
|
82
|
+
ws.close();
|
|
83
|
+
}
|
|
84
|
+
};
|
|
85
|
+
duplex._read = function() {
|
|
86
|
+
if (ws.isPaused) ws.resume();
|
|
87
|
+
};
|
|
88
|
+
duplex._write = function(chunk, encoding, callback) {
|
|
89
|
+
if (ws.readyState === ws.CONNECTING) {
|
|
90
|
+
ws.once("open", function open() {
|
|
91
|
+
duplex._write(chunk, encoding, callback);
|
|
92
|
+
});
|
|
93
|
+
return;
|
|
94
|
+
}
|
|
95
|
+
ws.send(chunk, callback);
|
|
96
|
+
};
|
|
97
|
+
duplex.on("end", duplexOnEnd);
|
|
98
|
+
duplex.on("error", duplexOnError);
|
|
99
|
+
return duplex;
|
|
100
|
+
}
|
|
101
|
+
module.exports = createWebSocketStream2;
|
|
102
|
+
}
|
|
103
|
+
});
|
|
104
|
+
|
|
105
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js
|
|
9
106
|
var require_constants = __commonJS({
|
|
10
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
107
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/constants.js"(exports, module) {
|
|
11
108
|
"use strict";
|
|
12
109
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
13
110
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -241,9 +338,9 @@ var require_bufferutil = __commonJS({
|
|
|
241
338
|
}
|
|
242
339
|
});
|
|
243
340
|
|
|
244
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
341
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js
|
|
245
342
|
var require_buffer_util = __commonJS({
|
|
246
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
343
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
247
344
|
"use strict";
|
|
248
345
|
var { EMPTY_BUFFER } = require_constants();
|
|
249
346
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -316,9 +413,9 @@ var require_buffer_util = __commonJS({
|
|
|
316
413
|
}
|
|
317
414
|
});
|
|
318
415
|
|
|
319
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
416
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js
|
|
320
417
|
var require_limiter = __commonJS({
|
|
321
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
418
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
322
419
|
"use strict";
|
|
323
420
|
var kDone = Symbol("kDone");
|
|
324
421
|
var kRun = Symbol("kRun");
|
|
@@ -366,9 +463,9 @@ var require_limiter = __commonJS({
|
|
|
366
463
|
}
|
|
367
464
|
});
|
|
368
465
|
|
|
369
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
466
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js
|
|
370
467
|
var require_permessage_deflate = __commonJS({
|
|
371
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
468
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
372
469
|
"use strict";
|
|
373
470
|
var zlib = __require("zlib");
|
|
374
471
|
var bufferUtil = require_buffer_util();
|
|
@@ -739,10 +836,6 @@ var require_permessage_deflate = __commonJS({
|
|
|
739
836
|
}
|
|
740
837
|
function inflateOnError(err) {
|
|
741
838
|
this[kPerMessageDeflate]._inflate = null;
|
|
742
|
-
if (this[kError]) {
|
|
743
|
-
this[kCallback](this[kError]);
|
|
744
|
-
return;
|
|
745
|
-
}
|
|
746
839
|
err[kStatusCode] = 1007;
|
|
747
840
|
this[kCallback](err);
|
|
748
841
|
}
|
|
@@ -798,9 +891,9 @@ var require_utf_8_validate = __commonJS({
|
|
|
798
891
|
}
|
|
799
892
|
});
|
|
800
893
|
|
|
801
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
894
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js
|
|
802
895
|
var require_validation = __commonJS({
|
|
803
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
896
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/validation.js"(exports, module) {
|
|
804
897
|
"use strict";
|
|
805
898
|
var { isUtf8 } = __require("buffer");
|
|
806
899
|
var { hasBlob } = require_constants();
|
|
@@ -999,9 +1092,9 @@ var require_validation = __commonJS({
|
|
|
999
1092
|
}
|
|
1000
1093
|
});
|
|
1001
1094
|
|
|
1002
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
1095
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js
|
|
1003
1096
|
var require_receiver = __commonJS({
|
|
1004
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
1097
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
1005
1098
|
"use strict";
|
|
1006
1099
|
var { Writable } = __require("stream");
|
|
1007
1100
|
var PerMessageDeflate = require_permessage_deflate();
|
|
@@ -1591,9 +1684,9 @@ var require_receiver = __commonJS({
|
|
|
1591
1684
|
}
|
|
1592
1685
|
});
|
|
1593
1686
|
|
|
1594
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
1687
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js
|
|
1595
1688
|
var require_sender = __commonJS({
|
|
1596
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
1689
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/sender.js"(exports, module) {
|
|
1597
1690
|
"use strict";
|
|
1598
1691
|
var { Duplex } = __require("stream");
|
|
1599
1692
|
var { randomFillSync } = __require("crypto");
|
|
@@ -2048,7 +2141,7 @@ var require_sender = __commonJS({
|
|
|
2048
2141
|
/**
|
|
2049
2142
|
* Sends a frame.
|
|
2050
2143
|
*
|
|
2051
|
-
* @param {
|
|
2144
|
+
* @param {Buffer[]} list The frame to send
|
|
2052
2145
|
* @param {Function} [cb] Callback
|
|
2053
2146
|
* @private
|
|
2054
2147
|
*/
|
|
@@ -2079,9 +2172,9 @@ var require_sender = __commonJS({
|
|
|
2079
2172
|
}
|
|
2080
2173
|
});
|
|
2081
2174
|
|
|
2082
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
2175
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js
|
|
2083
2176
|
var require_event_target = __commonJS({
|
|
2084
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
2177
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
2085
2178
|
"use strict";
|
|
2086
2179
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
2087
2180
|
var kCode = Symbol("kCode");
|
|
@@ -2308,9 +2401,9 @@ var require_event_target = __commonJS({
|
|
|
2308
2401
|
}
|
|
2309
2402
|
});
|
|
2310
2403
|
|
|
2311
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
2404
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js
|
|
2312
2405
|
var require_extension = __commonJS({
|
|
2313
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
2406
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/extension.js"(exports, module) {
|
|
2314
2407
|
"use strict";
|
|
2315
2408
|
var { tokenChars } = require_validation();
|
|
2316
2409
|
function push(dest, name, elem) {
|
|
@@ -2461,9 +2554,9 @@ var require_extension = __commonJS({
|
|
|
2461
2554
|
}
|
|
2462
2555
|
});
|
|
2463
2556
|
|
|
2464
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
2557
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js
|
|
2465
2558
|
var require_websocket = __commonJS({
|
|
2466
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
2559
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2467
2560
|
"use strict";
|
|
2468
2561
|
var EventEmitter = __require("events");
|
|
2469
2562
|
var https = __require("https");
|
|
@@ -2981,7 +3074,7 @@ var require_websocket = __commonJS({
|
|
|
2981
3074
|
const isIpcUrl = parsedUrl.protocol === "ws+unix:";
|
|
2982
3075
|
let invalidUrlMessage;
|
|
2983
3076
|
if (parsedUrl.protocol !== "ws:" && !isSecure && !isIpcUrl) {
|
|
2984
|
-
invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https
|
|
3077
|
+
invalidUrlMessage = `The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`;
|
|
2985
3078
|
} else if (isIpcUrl && !parsedUrl.pathname) {
|
|
2986
3079
|
invalidUrlMessage = "The URL's pathname is empty";
|
|
2987
3080
|
} else if (parsedUrl.hash) {
|
|
@@ -3344,107 +3437,9 @@ var require_websocket = __commonJS({
|
|
|
3344
3437
|
}
|
|
3345
3438
|
});
|
|
3346
3439
|
|
|
3347
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
3348
|
-
var require_stream = __commonJS({
|
|
3349
|
-
"../../node_modules/.pnpm/ws@8.18.3_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/stream.js"(exports, module) {
|
|
3350
|
-
"use strict";
|
|
3351
|
-
var WebSocket4 = require_websocket();
|
|
3352
|
-
var { Duplex } = __require("stream");
|
|
3353
|
-
function emitClose(stream) {
|
|
3354
|
-
stream.emit("close");
|
|
3355
|
-
}
|
|
3356
|
-
function duplexOnEnd() {
|
|
3357
|
-
if (!this.destroyed && this._writableState.finished) {
|
|
3358
|
-
this.destroy();
|
|
3359
|
-
}
|
|
3360
|
-
}
|
|
3361
|
-
function duplexOnError(err) {
|
|
3362
|
-
this.removeListener("error", duplexOnError);
|
|
3363
|
-
this.destroy();
|
|
3364
|
-
if (this.listenerCount("error") === 0) {
|
|
3365
|
-
this.emit("error", err);
|
|
3366
|
-
}
|
|
3367
|
-
}
|
|
3368
|
-
function createWebSocketStream2(ws, options) {
|
|
3369
|
-
let terminateOnDestroy = true;
|
|
3370
|
-
const duplex = new Duplex({
|
|
3371
|
-
...options,
|
|
3372
|
-
autoDestroy: false,
|
|
3373
|
-
emitClose: false,
|
|
3374
|
-
objectMode: false,
|
|
3375
|
-
writableObjectMode: false
|
|
3376
|
-
});
|
|
3377
|
-
ws.on("message", function message(msg, isBinary) {
|
|
3378
|
-
const data = !isBinary && duplex._readableState.objectMode ? msg.toString() : msg;
|
|
3379
|
-
if (!duplex.push(data)) ws.pause();
|
|
3380
|
-
});
|
|
3381
|
-
ws.once("error", function error(err) {
|
|
3382
|
-
if (duplex.destroyed) return;
|
|
3383
|
-
terminateOnDestroy = false;
|
|
3384
|
-
duplex.destroy(err);
|
|
3385
|
-
});
|
|
3386
|
-
ws.once("close", function close() {
|
|
3387
|
-
if (duplex.destroyed) return;
|
|
3388
|
-
duplex.push(null);
|
|
3389
|
-
});
|
|
3390
|
-
duplex._destroy = function(err, callback) {
|
|
3391
|
-
if (ws.readyState === ws.CLOSED) {
|
|
3392
|
-
callback(err);
|
|
3393
|
-
process.nextTick(emitClose, duplex);
|
|
3394
|
-
return;
|
|
3395
|
-
}
|
|
3396
|
-
let called = false;
|
|
3397
|
-
ws.once("error", function error(err2) {
|
|
3398
|
-
called = true;
|
|
3399
|
-
callback(err2);
|
|
3400
|
-
});
|
|
3401
|
-
ws.once("close", function close() {
|
|
3402
|
-
if (!called) callback(err);
|
|
3403
|
-
process.nextTick(emitClose, duplex);
|
|
3404
|
-
});
|
|
3405
|
-
if (terminateOnDestroy) ws.terminate();
|
|
3406
|
-
};
|
|
3407
|
-
duplex._final = function(callback) {
|
|
3408
|
-
if (ws.readyState === ws.CONNECTING) {
|
|
3409
|
-
ws.once("open", function open() {
|
|
3410
|
-
duplex._final(callback);
|
|
3411
|
-
});
|
|
3412
|
-
return;
|
|
3413
|
-
}
|
|
3414
|
-
if (ws._socket === null) return;
|
|
3415
|
-
if (ws._socket._writableState.finished) {
|
|
3416
|
-
callback();
|
|
3417
|
-
if (duplex._readableState.endEmitted) duplex.destroy();
|
|
3418
|
-
} else {
|
|
3419
|
-
ws._socket.once("finish", function finish() {
|
|
3420
|
-
callback();
|
|
3421
|
-
});
|
|
3422
|
-
ws.close();
|
|
3423
|
-
}
|
|
3424
|
-
};
|
|
3425
|
-
duplex._read = function() {
|
|
3426
|
-
if (ws.isPaused) ws.resume();
|
|
3427
|
-
};
|
|
3428
|
-
duplex._write = function(chunk, encoding, callback) {
|
|
3429
|
-
if (ws.readyState === ws.CONNECTING) {
|
|
3430
|
-
ws.once("open", function open() {
|
|
3431
|
-
duplex._write(chunk, encoding, callback);
|
|
3432
|
-
});
|
|
3433
|
-
return;
|
|
3434
|
-
}
|
|
3435
|
-
ws.send(chunk, callback);
|
|
3436
|
-
};
|
|
3437
|
-
duplex.on("end", duplexOnEnd);
|
|
3438
|
-
duplex.on("error", duplexOnError);
|
|
3439
|
-
return duplex;
|
|
3440
|
-
}
|
|
3441
|
-
module.exports = createWebSocketStream2;
|
|
3442
|
-
}
|
|
3443
|
-
});
|
|
3444
|
-
|
|
3445
|
-
// ../../node_modules/.pnpm/ws@8.18.3_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js
|
|
3440
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js
|
|
3446
3441
|
var require_subprotocol = __commonJS({
|
|
3447
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
3442
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3448
3443
|
"use strict";
|
|
3449
3444
|
var { tokenChars } = require_validation();
|
|
3450
3445
|
function parse(header) {
|
|
@@ -3487,9 +3482,9 @@ var require_subprotocol = __commonJS({
|
|
|
3487
3482
|
}
|
|
3488
3483
|
});
|
|
3489
3484
|
|
|
3490
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
3485
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js
|
|
3491
3486
|
var require_websocket_server = __commonJS({
|
|
3492
|
-
"../../node_modules/.pnpm/ws@8.18.
|
|
3487
|
+
"../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3493
3488
|
"use strict";
|
|
3494
3489
|
var EventEmitter = __require("events");
|
|
3495
3490
|
var http = __require("http");
|
|
@@ -3701,11 +3696,9 @@ var require_websocket_server = __commonJS({
|
|
|
3701
3696
|
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
3702
3697
|
return;
|
|
3703
3698
|
}
|
|
3704
|
-
if (version !==
|
|
3699
|
+
if (version !== 8 && version !== 13) {
|
|
3705
3700
|
const message = "Missing or invalid Sec-WebSocket-Version header";
|
|
3706
|
-
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message
|
|
3707
|
-
"Sec-WebSocket-Version": "13, 8"
|
|
3708
|
-
});
|
|
3701
|
+
abortHandshakeOrEmitwsClientError(this, req, socket, 400, message);
|
|
3709
3702
|
return;
|
|
3710
3703
|
}
|
|
3711
3704
|
if (!this.shouldHandle(req)) {
|
|
@@ -3864,19 +3857,19 @@ var require_websocket_server = __commonJS({
|
|
|
3864
3857
|
` + Object.keys(headers).map((h) => `${h}: ${headers[h]}`).join("\r\n") + "\r\n\r\n" + message
|
|
3865
3858
|
);
|
|
3866
3859
|
}
|
|
3867
|
-
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message
|
|
3860
|
+
function abortHandshakeOrEmitwsClientError(server, req, socket, code, message) {
|
|
3868
3861
|
if (server.listenerCount("wsClientError")) {
|
|
3869
3862
|
const err = new Error(message);
|
|
3870
3863
|
Error.captureStackTrace(err, abortHandshakeOrEmitwsClientError);
|
|
3871
3864
|
server.emit("wsClientError", err, socket, req);
|
|
3872
3865
|
} else {
|
|
3873
|
-
abortHandshake(socket, code, message
|
|
3866
|
+
abortHandshake(socket, code, message);
|
|
3874
3867
|
}
|
|
3875
3868
|
}
|
|
3876
3869
|
}
|
|
3877
3870
|
});
|
|
3878
3871
|
|
|
3879
|
-
// ../../node_modules/.pnpm/ws@8.18.
|
|
3872
|
+
// ../../node_modules/.pnpm/ws@8.18.0_bufferutil@4.0.9_utf-8-validate@5.0.10/node_modules/ws/wrapper.mjs
|
|
3880
3873
|
var wrapper_exports = {};
|
|
3881
3874
|
__export(wrapper_exports, {
|
|
3882
3875
|
Receiver: () => import_receiver.default,
|
|
@@ -3893,7 +3886,7 @@ var import_websocket = __toESM(require_websocket(), 1);
|
|
|
3893
3886
|
var import_websocket_server = __toESM(require_websocket_server(), 1);
|
|
3894
3887
|
var wrapper_default = import_websocket.default;
|
|
3895
3888
|
|
|
3896
|
-
// ../../node_modules/.pnpm/isows@1.0.
|
|
3889
|
+
// ../../node_modules/.pnpm/isows@1.0.6_ws@8.18.0/node_modules/isows/_esm/utils.js
|
|
3897
3890
|
function getNativeWebSocket() {
|
|
3898
3891
|
if (typeof WebSocket !== "undefined")
|
|
3899
3892
|
return WebSocket;
|
|
@@ -3906,7 +3899,7 @@ function getNativeWebSocket() {
|
|
|
3906
3899
|
throw new Error("`WebSocket` is not supported in this environment");
|
|
3907
3900
|
}
|
|
3908
3901
|
|
|
3909
|
-
// ../../node_modules/.pnpm/isows@1.0.
|
|
3902
|
+
// ../../node_modules/.pnpm/isows@1.0.6_ws@8.18.0/node_modules/isows/_esm/index.js
|
|
3910
3903
|
var WebSocket3 = (() => {
|
|
3911
3904
|
try {
|
|
3912
3905
|
return getNativeWebSocket();
|
|
@@ -3919,4 +3912,4 @@ var WebSocket3 = (() => {
|
|
|
3919
3912
|
export {
|
|
3920
3913
|
WebSocket3 as WebSocket
|
|
3921
3914
|
};
|
|
3922
|
-
//# sourceMappingURL=_esm-
|
|
3915
|
+
//# sourceMappingURL=_esm-AN6HMJZC.js.map
|