@shopify/cli 3.72.2 → 3.73.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/dist/assets/hydrogen/starter/CHANGELOG.md +814 -0
- package/dist/assets/hydrogen/starter/app/components/Aside.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/components/PaginatedResourceSection.tsx +3 -4
- package/dist/assets/hydrogen/starter/app/components/ProductForm.tsx +113 -44
- package/dist/assets/hydrogen/starter/app/components/SearchResults.tsx +8 -3
- package/dist/assets/hydrogen/starter/app/components/SearchResultsPredictive.tsx +6 -5
- package/dist/assets/hydrogen/starter/app/lib/variants.ts +3 -3
- package/dist/assets/hydrogen/starter/app/routes/account_.logout.tsx +1 -1
- package/dist/assets/hydrogen/starter/app/routes/cart.tsx +9 -16
- package/dist/assets/hydrogen/starter/app/routes/collections.$handle.tsx +1 -10
- package/dist/assets/hydrogen/starter/app/routes/collections.all.tsx +1 -10
- package/dist/assets/hydrogen/starter/app/routes/products.$handle.tsx +50 -119
- package/dist/assets/hydrogen/starter/app/routes/search.tsx +42 -38
- package/dist/assets/hydrogen/starter/app/styles/app.css +25 -1
- package/dist/assets/hydrogen/starter/guides/predictiveSearch/predictiveSearch.md +23 -20
- package/dist/assets/hydrogen/starter/guides/search/search.md +27 -25
- package/dist/assets/hydrogen/starter/package.json +3 -3
- package/dist/assets/hydrogen/starter/storefrontapi.generated.d.ts +177 -194
- package/dist/assets/hydrogen/tailwind/tailwind.css +1 -1
- package/dist/{chokidar-OESTCX4H.js → chokidar-5LLC6S6D.js} +47 -90
- package/dist/{chunk-VSLR7ET4.js → chunk-25IMI7TH.js} +8 -46
- package/dist/{chunk-NCKQIOV4.js → chunk-3HBRMIPY.js} +28 -50
- package/dist/{chunk-4HTVLK2H.js → chunk-3OXCI3HX.js} +1402 -1989
- package/dist/{chunk-2YCRDHPC.js → chunk-5OFJTURZ.js} +4 -4
- package/dist/{chunk-TAKO7LSJ.js → chunk-65GSOZHL.js} +7 -7
- package/dist/{chunk-6IUL3QZW.js → chunk-66HLUVKV.js} +4 -4
- package/dist/{chunk-N2V4IFX3.js → chunk-6PEBJVBW.js} +3 -3
- package/dist/{chunk-XVNW332R.js → chunk-75LV6AQS.js} +6 -10
- package/dist/{chunk-QXIIXX7G.js → chunk-7RKRCUFA.js} +16518 -24140
- package/dist/{chunk-ZESD7DR7.js → chunk-AFPOP3K5.js} +67 -104
- package/dist/{chunk-2HGYYNE5.js → chunk-B5EXYCV3.js} +5 -9
- package/dist/{chunk-NB4NLOEJ.js → chunk-BUFIEXZ5.js} +11 -20
- package/dist/{chunk-YXJHYEP7.js → chunk-CEIZT2W3.js} +4 -4
- package/dist/{chunk-522OB3EU.js → chunk-CFIKVUNW.js} +2 -2
- package/dist/{chunk-KYB6A4PE.js → chunk-CRHXI6PS.js} +13 -23
- package/dist/{chunk-PQQTBTYM.js → chunk-ELTOJBOJ.js} +4 -5
- package/dist/{chunk-NUP5TATA.js → chunk-EZQWZ57B.js} +2 -2
- package/dist/{chunk-YKUYPSCY.js → chunk-F7D333WQ.js} +3 -3
- package/dist/{chunk-UBB7JKND.js → chunk-G2ZZKGSV.js} +2 -2
- package/dist/{chunk-CBBS4CV7.js → chunk-G5R6YD27.js} +8 -13
- package/dist/{chunk-RCRRAFH7.js → chunk-GDLROW57.js} +3 -3
- package/dist/{chunk-KMZ5JSGS.js → chunk-I25PGLBO.js} +3 -3
- package/dist/{chunk-OXKHBIW7.js → chunk-IG5SOACB.js} +29 -34
- package/dist/{chunk-UIRMJZRW.js → chunk-IRHYYIN7.js} +4 -4
- package/dist/{chunk-OWLPHMUA.js → chunk-J673ZU5S.js} +4 -4
- package/dist/{chunk-HYGCZ6GV.js → chunk-JORKLY7M.js} +68 -49
- package/dist/{chunk-K6Y4FYT5.js → chunk-K7HGDAI4.js} +17 -20
- package/dist/{chunk-I6R52HNI.js → chunk-KF2D6QHZ.js} +39 -68
- package/dist/{chunk-KGKTCQ7H.js → chunk-KMWARALD.js} +5 -5
- package/dist/{chunk-VWNWE4HG.js → chunk-KTNFE44J.js} +110 -83
- package/dist/{chunk-BYPQXSAL.js → chunk-KUM3DVPF.js} +17 -13
- package/dist/{chunk-K7B4JJLF.js → chunk-KZBL6BQ7.js} +4 -4
- package/dist/{chunk-WNDN5FAY.js → chunk-MHUINF7I.js} +3 -3
- package/dist/{chunk-L2J5VM7R.js → chunk-NFQLKURK.js} +41 -68
- package/dist/{chunk-KCI6QCAV.js → chunk-O77L7CCL.js} +4 -4
- package/dist/{chunk-SNOECVP4.js → chunk-OAZFIMJ3.js} +2 -2
- package/dist/{chunk-GVNIHXMX.js → chunk-OE3IXTC5.js} +38 -60
- package/dist/{chunk-ECWFBV2F.js → chunk-ONOLOXLM.js} +5 -5
- package/dist/{chunk-POZ5MGPT.js → chunk-PKR7KJ6P.js} +2 -3
- package/dist/{chunk-JDM5VOXB.js → chunk-PRWEHR2C.js} +3 -3
- package/dist/{chunk-SO2RZ6TZ.js → chunk-QNK2EAZ3.js} +5 -5
- package/dist/{chunk-E37RRDIH.js → chunk-RCA7PFH4.js} +4 -4
- package/dist/{chunk-GKEFW755.js → chunk-RK7JAMCI.js} +6 -6
- package/dist/{chunk-HMUOOT55.js → chunk-SANP6FPA.js} +6 -6
- package/dist/{chunk-OJOHMVV7.js → chunk-SBPFWO4S.js} +294 -448
- package/dist/{chunk-O5K4AU7Q.js → chunk-SHWOPMLQ.js} +3 -4
- package/dist/{chunk-NE43V3EI.js → chunk-SUUVDRTQ.js} +6 -7
- package/dist/{chunk-VJ7TIVX7.js → chunk-TEHNKBLD.js} +6 -7
- package/dist/{chunk-KVEY52WG.js → chunk-VPNXQGG6.js} +4 -4
- package/dist/{chunk-NXHZX3WR.js → chunk-X5FJXK25.js} +9 -9
- package/dist/{chunk-PMUQTGZJ.js → chunk-X7YTIMNN.js} +4 -6
- package/dist/{chunk-UIAIRQSP.js → chunk-XAGT2UNE.js} +3 -3
- package/dist/{chunk-7Q3MMWAC.js → chunk-XE5EOEBL.js} +2 -2
- package/dist/{chunk-PKJLXLTR.js → chunk-YP7WU5EU.js} +5 -5
- package/dist/{chunk-QDPQB6WU.js → chunk-YPTEMDFR.js} +5 -5
- package/dist/{chunk-KWLJTNRE.js → chunk-ZENVITME.js} +4 -4
- package/dist/{chunk-HSTSRNLJ.js → chunk-ZX3L2JKV.js} +64 -86
- package/dist/cli/commands/auth/logout.js +28 -28
- package/dist/cli/commands/auth/logout.test.js +30 -30
- package/dist/cli/commands/cache/clear.js +27 -27
- package/dist/cli/commands/debug/command-flags.js +27 -27
- package/dist/cli/commands/docs/generate.js +27 -27
- package/dist/cli/commands/docs/generate.test.js +28 -28
- package/dist/cli/commands/help.js +27 -27
- package/dist/cli/commands/kitchen-sink/async.js +28 -28
- package/dist/cli/commands/kitchen-sink/async.test.js +29 -29
- package/dist/cli/commands/kitchen-sink/index.js +30 -30
- package/dist/cli/commands/kitchen-sink/index.test.js +31 -31
- package/dist/cli/commands/kitchen-sink/prompts.js +28 -28
- package/dist/cli/commands/kitchen-sink/prompts.test.js +29 -29
- package/dist/cli/commands/kitchen-sink/static.js +28 -28
- package/dist/cli/commands/kitchen-sink/static.test.js +29 -29
- package/dist/cli/commands/notifications/generate.js +28 -28
- package/dist/cli/commands/notifications/list.js +28 -28
- package/dist/cli/commands/search.js +28 -28
- package/dist/cli/commands/upgrade.js +28 -28
- package/dist/cli/commands/upgrade.test.js +3 -3
- package/dist/cli/commands/version.js +28 -28
- package/dist/cli/commands/version.test.js +29 -29
- package/dist/cli/services/commands/notifications.js +21 -21
- package/dist/cli/services/commands/search.js +15 -15
- package/dist/cli/services/commands/search.test.js +16 -16
- package/dist/cli/services/commands/version.js +16 -16
- package/dist/cli/services/commands/version.test.js +18 -18
- package/dist/cli/services/kitchen-sink/async.js +15 -15
- package/dist/cli/services/kitchen-sink/prompts.js +15 -15
- package/dist/cli/services/kitchen-sink/static.js +15 -15
- package/dist/cli/services/upgrade.js +17 -17
- package/dist/cli/services/upgrade.test.js +20 -20
- package/dist/configs/all.yml +12 -0
- package/dist/configs/recommended.yml +15 -0
- package/dist/configs/theme-app-extension.yml +3 -0
- package/dist/{custom-oclif-loader-G2DAJL7B.js → custom-oclif-loader-V3IB4SYZ.js} +15 -15
- package/dist/data/latest.json +1 -1
- package/dist/data/manifest_theme.json +1 -0
- package/dist/data/preset.json +66 -0
- package/dist/data/preset_blocks.json +20 -13
- package/dist/data/section.json +1 -15
- package/dist/data/setting.json +1 -1
- package/dist/data/theme_block.json +1 -15
- package/dist/{del-K5ZJEWTD.js → del-P2RS6GN2.js} +9 -9
- package/dist/{devtools-KYKGATNX.js → devtools-K7FXBBFZ.js} +3 -3
- package/dist/error-handler-WK3AZ7A2.js +38 -0
- package/dist/hooks/postrun.js +22 -22
- package/dist/hooks/prerun.js +22 -22
- package/dist/{http-proxy-GGTVQ6CU.js → http-proxy-FXWKYHZ3.js} +14 -24
- package/dist/index.js +7228 -7320
- package/dist/lib-JVEIEXYB.js +6 -0
- package/dist/lib-QZGSY5YB.js +13 -0
- package/dist/{local-Q5ZG2NHX.js → local-3ERK45M5.js} +15 -15
- package/dist/{magic-string.es-3RXPUXZF.js → magic-string.es-PJMYOE6F.js} +49 -96
- package/dist/{morph-SEECJQ2W.js → morph-OSHCID2F.js} +261 -347
- package/dist/{multipart-parser-QKUAJJP5.js → multipart-parser-WSNBP656.js} +8 -7
- package/dist/{node-S6CM3NTX.js → node-2KLEBSMO.js} +31 -31
- package/dist/{node-package-manager-GUY5IO3W.js → node-package-manager-QIM24GB3.js} +19 -17
- package/dist/{npa-RLWNZ3BM.js → npa-TM76BGG3.js} +10 -16
- package/dist/{open-MZGVNFZO.js → open-BHIF7E3E.js} +3 -3
- package/dist/out-JR4DWQ2G.js +7 -0
- package/dist/{path-NDLRQPLA.js → path-2HZUSAGR.js} +3 -3
- package/dist/{source-map-7AAPWPHZ.js → source-map-QCVC46UY.js} +2 -2
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{ui-AWSBLSD4.js → ui-5AHG256I.js} +15 -15
- package/dist/{workerd-3HGLHQET.js → workerd-MSNALKI2.js} +30 -30
- package/oclif.manifest.json +81 -1
- package/package.json +8 -8
- package/dist/error-handler-6HCFKLTC.js +0 -38
- package/dist/lib-PPXZBVZX.js +0 -6
- package/dist/lib-XYCLX35G.js +0 -13
- package/dist/out-MHEKZJWS.js +0 -7
|
@@ -3,7 +3,7 @@ import {
|
|
|
3
3
|
__require,
|
|
4
4
|
__toESM,
|
|
5
5
|
init_cjs_shims
|
|
6
|
-
} from "./chunk-
|
|
6
|
+
} from "./chunk-PKR7KJ6P.js";
|
|
7
7
|
|
|
8
8
|
// ../../node_modules/.pnpm/ws@8.13.0/node_modules/ws/lib/stream.js
|
|
9
9
|
var require_stream = __commonJS({
|
|
@@ -98,10 +98,8 @@ var require_buffer_util = __commonJS({
|
|
|
98
98
|
init_cjs_shims();
|
|
99
99
|
var { EMPTY_BUFFER } = require_constants(), FastBuffer = Buffer[Symbol.species];
|
|
100
100
|
function concat(list, totalLength) {
|
|
101
|
-
if (list.length === 0)
|
|
102
|
-
|
|
103
|
-
if (list.length === 1)
|
|
104
|
-
return list[0];
|
|
101
|
+
if (list.length === 0) return EMPTY_BUFFER;
|
|
102
|
+
if (list.length === 1) return list[0];
|
|
105
103
|
let target = Buffer.allocUnsafe(totalLength), offset = 0;
|
|
106
104
|
for (let i = 0; i < list.length; i++) {
|
|
107
105
|
let buf = list[i];
|
|
@@ -121,8 +119,7 @@ var require_buffer_util = __commonJS({
|
|
|
121
119
|
return buf.length === buf.buffer.byteLength ? buf.buffer : buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.length);
|
|
122
120
|
}
|
|
123
121
|
function toBuffer(data) {
|
|
124
|
-
if (toBuffer.readOnly = !0, Buffer.isBuffer(data))
|
|
125
|
-
return data;
|
|
122
|
+
if (toBuffer.readOnly = !0, Buffer.isBuffer(data)) return data;
|
|
126
123
|
let buf;
|
|
127
124
|
return data instanceof ArrayBuffer ? buf = new FastBuffer(data) : ArrayBuffer.isView(data) ? buf = new FastBuffer(data.buffer, data.byteOffset, data.byteLength) : (buf = Buffer.from(data), toBuffer.readOnly = !1), buf;
|
|
128
125
|
}
|
|
@@ -670,8 +667,7 @@ var require_receiver = __commonJS({
|
|
|
670
667
|
* @private
|
|
671
668
|
*/
|
|
672
669
|
_write(chunk, encoding, cb) {
|
|
673
|
-
if (this._opcode === 8 && this._state == GET_INFO)
|
|
674
|
-
return cb();
|
|
670
|
+
if (this._opcode === 8 && this._state == GET_INFO) return cb();
|
|
675
671
|
this._bufferedBytes += chunk.length, this._buffers.push(chunk), this.startLoop(cb);
|
|
676
672
|
}
|
|
677
673
|
/**
|
|
@@ -682,8 +678,7 @@ var require_receiver = __commonJS({
|
|
|
682
678
|
* @private
|
|
683
679
|
*/
|
|
684
680
|
consume(n) {
|
|
685
|
-
if (this._bufferedBytes -= n, n === this._buffers[0].length)
|
|
686
|
-
return this._buffers.shift();
|
|
681
|
+
if (this._bufferedBytes -= n, n === this._buffers[0].length) return this._buffers.shift();
|
|
687
682
|
if (n < this._buffers[0].length) {
|
|
688
683
|
let buf = this._buffers[0];
|
|
689
684
|
return this._buffers[0] = new FastBuffer(
|
|
@@ -843,12 +838,9 @@ var require_receiver = __commonJS({
|
|
|
843
838
|
1002,
|
|
844
839
|
"WS_ERR_UNEXPECTED_MASK"
|
|
845
840
|
);
|
|
846
|
-
if (this._payloadLength === 126)
|
|
847
|
-
|
|
848
|
-
else
|
|
849
|
-
this._state = GET_PAYLOAD_LENGTH_64;
|
|
850
|
-
else
|
|
851
|
-
return this.haveLength();
|
|
841
|
+
if (this._payloadLength === 126) this._state = GET_PAYLOAD_LENGTH_16;
|
|
842
|
+
else if (this._payloadLength === 127) this._state = GET_PAYLOAD_LENGTH_64;
|
|
843
|
+
else return this.haveLength();
|
|
852
844
|
}
|
|
853
845
|
/**
|
|
854
846
|
* Gets extended payload length (7+16).
|
|
@@ -928,8 +920,7 @@ var require_receiver = __commonJS({
|
|
|
928
920
|
}
|
|
929
921
|
data = this.consume(this._payloadLength), this._masked && this._mask[0] | this._mask[1] | this._mask[2] | this._mask[3] && unmask(data, this._mask);
|
|
930
922
|
}
|
|
931
|
-
if (this._opcode > 7)
|
|
932
|
-
return this.controlMessage(data);
|
|
923
|
+
if (this._opcode > 7) return this.controlMessage(data);
|
|
933
924
|
if (this._compressed) {
|
|
934
925
|
this._state = INFLATING, this.decompress(data, cb);
|
|
935
926
|
return;
|
|
@@ -945,8 +936,7 @@ var require_receiver = __commonJS({
|
|
|
945
936
|
*/
|
|
946
937
|
decompress(data, cb) {
|
|
947
938
|
this._extensions[PerMessageDeflate.extensionName].decompress(data, this._fin, (err, buf) => {
|
|
948
|
-
if (err)
|
|
949
|
-
return cb(err);
|
|
939
|
+
if (err) return cb(err);
|
|
950
940
|
if (buf.length) {
|
|
951
941
|
if (this._messageLength += buf.length, this._messageLength > this._maxPayload && this._maxPayload > 0)
|
|
952
942
|
return cb(
|
|
@@ -961,8 +951,7 @@ var require_receiver = __commonJS({
|
|
|
961
951
|
this._fragments.push(buf);
|
|
962
952
|
}
|
|
963
953
|
let er = this.dataMessage();
|
|
964
|
-
if (er)
|
|
965
|
-
return cb(er);
|
|
954
|
+
if (er) return cb(er);
|
|
966
955
|
this.startLoop(cb);
|
|
967
956
|
});
|
|
968
957
|
}
|
|
@@ -1029,8 +1018,7 @@ var require_receiver = __commonJS({
|
|
|
1029
1018
|
);
|
|
1030
1019
|
this.emit("conclude", code, buf), this.end();
|
|
1031
1020
|
}
|
|
1032
|
-
else
|
|
1033
|
-
this._opcode === 9 ? this.emit("ping", data) : this.emit("pong", data);
|
|
1021
|
+
else this._opcode === 9 ? this.emit("ping", data) : this.emit("pong", data);
|
|
1034
1022
|
this._state = GET_INFO;
|
|
1035
1023
|
}
|
|
1036
1024
|
};
|
|
@@ -1746,8 +1734,7 @@ var require_websocket = __commonJS({
|
|
|
1746
1734
|
close(code, data) {
|
|
1747
1735
|
if (this.readyState !== _WebSocket.CLOSED) {
|
|
1748
1736
|
if (this.readyState === _WebSocket.CONNECTING) {
|
|
1749
|
-
|
|
1750
|
-
abortHandshake(this, this._req, msg);
|
|
1737
|
+
abortHandshake(this, this._req, "WebSocket was closed before the connection was established");
|
|
1751
1738
|
return;
|
|
1752
1739
|
}
|
|
1753
1740
|
if (this.readyState === _WebSocket.CLOSING) {
|
|
@@ -1851,8 +1838,7 @@ var require_websocket = __commonJS({
|
|
|
1851
1838
|
terminate() {
|
|
1852
1839
|
if (this.readyState !== _WebSocket.CLOSED) {
|
|
1853
1840
|
if (this.readyState === _WebSocket.CONNECTING) {
|
|
1854
|
-
|
|
1855
|
-
abortHandshake(this, this._req, msg);
|
|
1841
|
+
abortHandshake(this, this._req, "WebSocket was closed before the connection was established");
|
|
1856
1842
|
return;
|
|
1857
1843
|
}
|
|
1858
1844
|
this._socket && (this._readyState = _WebSocket.CLOSING, this._socket.destroy());
|
|
@@ -1907,8 +1893,7 @@ var require_websocket = __commonJS({
|
|
|
1907
1893
|
enumerable: !0,
|
|
1908
1894
|
get() {
|
|
1909
1895
|
for (let listener of this.listeners(method))
|
|
1910
|
-
if (listener[kForOnEventAttribute])
|
|
1911
|
-
return listener[kListener];
|
|
1896
|
+
if (listener[kForOnEventAttribute]) return listener[kListener];
|
|
1912
1897
|
return null;
|
|
1913
1898
|
},
|
|
1914
1899
|
set(handler) {
|
|
@@ -2031,15 +2016,13 @@ var require_websocket = __commonJS({
|
|
|
2031
2016
|
return;
|
|
2032
2017
|
}
|
|
2033
2018
|
initAsClient(websocket, addr, protocols, options);
|
|
2034
|
-
} else
|
|
2035
|
-
websocket
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
);
|
|
2019
|
+
} else websocket.emit("unexpected-response", req, res) || abortHandshake(
|
|
2020
|
+
websocket,
|
|
2021
|
+
req,
|
|
2022
|
+
`Unexpected server response: ${res.statusCode}`
|
|
2023
|
+
);
|
|
2040
2024
|
}), req.on("upgrade", (res, socket, head) => {
|
|
2041
|
-
if (websocket.emit("upgrade", res), websocket.readyState !== WebSocket2.CONNECTING)
|
|
2042
|
-
return;
|
|
2025
|
+
if (websocket.emit("upgrade", res), websocket.readyState !== WebSocket2.CONNECTING) return;
|
|
2043
2026
|
if (req = websocket._req = null, res.headers.upgrade.toLowerCase() !== "websocket") {
|
|
2044
2027
|
abortHandshake(websocket, socket, "Invalid Upgrade header");
|
|
2045
2028
|
return;
|
|
@@ -2322,8 +2305,7 @@ var require_websocket_server = __commonJS({
|
|
|
2322
2305
|
shouldHandle(req) {
|
|
2323
2306
|
if (this.options.path) {
|
|
2324
2307
|
let index = req.url.indexOf("?");
|
|
2325
|
-
if ((index !== -1 ? req.url.slice(0, index) : req.url) !== this.options.path)
|
|
2326
|
-
return !1;
|
|
2308
|
+
if ((index !== -1 ? req.url.slice(0, index) : req.url) !== this.options.path) return !1;
|
|
2327
2309
|
}
|
|
2328
2310
|
return !0;
|
|
2329
2311
|
}
|
|
@@ -2405,8 +2387,7 @@ var require_websocket_server = __commonJS({
|
|
|
2405
2387
|
});
|
|
2406
2388
|
return;
|
|
2407
2389
|
}
|
|
2408
|
-
if (!this.options.verifyClient(info))
|
|
2409
|
-
return abortHandshake(socket, 401);
|
|
2390
|
+
if (!this.options.verifyClient(info)) return abortHandshake(socket, 401);
|
|
2410
2391
|
}
|
|
2411
2392
|
this.completeUpgrade(extensions, key, protocols, req, socket, head, cb);
|
|
2412
2393
|
}
|
|
@@ -2425,14 +2406,12 @@ var require_websocket_server = __commonJS({
|
|
|
2425
2406
|
* @private
|
|
2426
2407
|
*/
|
|
2427
2408
|
completeUpgrade(extensions, key, protocols, req, socket, head, cb) {
|
|
2428
|
-
if (!socket.readable || !socket.writable)
|
|
2429
|
-
return socket.destroy();
|
|
2409
|
+
if (!socket.readable || !socket.writable) return socket.destroy();
|
|
2430
2410
|
if (socket[kWebSocket])
|
|
2431
2411
|
throw new Error(
|
|
2432
2412
|
"server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration"
|
|
2433
2413
|
);
|
|
2434
|
-
if (this._state > RUNNING)
|
|
2435
|
-
return abortHandshake(socket, 503);
|
|
2414
|
+
if (this._state > RUNNING) return abortHandshake(socket, 503);
|
|
2436
2415
|
let headers = [
|
|
2437
2416
|
"HTTP/1.1 101 Switching Protocols",
|
|
2438
2417
|
"Upgrade: websocket",
|
|
@@ -2461,8 +2440,7 @@ var require_websocket_server = __commonJS({
|
|
|
2461
2440
|
};
|
|
2462
2441
|
module.exports = WebSocketServer2;
|
|
2463
2442
|
function addListeners(server, map) {
|
|
2464
|
-
for (let event of Object.keys(map))
|
|
2465
|
-
server.on(event, map[event]);
|
|
2443
|
+
for (let event of Object.keys(map)) server.on(event, map[event]);
|
|
2466
2444
|
return function() {
|
|
2467
2445
|
for (let event of Object.keys(map))
|
|
2468
2446
|
server.removeListener(event, map[event]);
|
|
@@ -2507,4 +2485,4 @@ export {
|
|
|
2507
2485
|
import_websocket_server,
|
|
2508
2486
|
wrapper_default
|
|
2509
2487
|
};
|
|
2510
|
-
//# sourceMappingURL=chunk-
|
|
2488
|
+
//# sourceMappingURL=chunk-3HBRMIPY.js.map
|