@4pm/cli 0.7.0 → 0.8.2
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.
|
@@ -40,9 +40,9 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
40
40
|
mod
|
|
41
41
|
));
|
|
42
42
|
|
|
43
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
43
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/constants.js
|
|
44
44
|
var require_constants = __commonJS({
|
|
45
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
45
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/constants.js"(exports, module) {
|
|
46
46
|
"use strict";
|
|
47
47
|
var BINARY_TYPES = ["nodebuffer", "arraybuffer", "fragments"];
|
|
48
48
|
var hasBlob = typeof Blob !== "undefined";
|
|
@@ -63,9 +63,9 @@ var require_constants = __commonJS({
|
|
|
63
63
|
}
|
|
64
64
|
});
|
|
65
65
|
|
|
66
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
66
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/buffer-util.js
|
|
67
67
|
var require_buffer_util = __commonJS({
|
|
68
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
68
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/buffer-util.js"(exports, module) {
|
|
69
69
|
"use strict";
|
|
70
70
|
var { EMPTY_BUFFER } = require_constants();
|
|
71
71
|
var FastBuffer = Buffer[Symbol.species];
|
|
@@ -138,9 +138,9 @@ var require_buffer_util = __commonJS({
|
|
|
138
138
|
}
|
|
139
139
|
});
|
|
140
140
|
|
|
141
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
141
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/limiter.js
|
|
142
142
|
var require_limiter = __commonJS({
|
|
143
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
143
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/limiter.js"(exports, module) {
|
|
144
144
|
"use strict";
|
|
145
145
|
var kDone = /* @__PURE__ */ Symbol("kDone");
|
|
146
146
|
var kRun = /* @__PURE__ */ Symbol("kRun");
|
|
@@ -188,9 +188,9 @@ var require_limiter = __commonJS({
|
|
|
188
188
|
}
|
|
189
189
|
});
|
|
190
190
|
|
|
191
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
191
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/permessage-deflate.js
|
|
192
192
|
var require_permessage_deflate = __commonJS({
|
|
193
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
193
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/permessage-deflate.js"(exports, module) {
|
|
194
194
|
"use strict";
|
|
195
195
|
var zlib = __require("zlib");
|
|
196
196
|
var bufferUtil = require_buffer_util();
|
|
@@ -571,9 +571,9 @@ var require_permessage_deflate = __commonJS({
|
|
|
571
571
|
}
|
|
572
572
|
});
|
|
573
573
|
|
|
574
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
574
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/validation.js
|
|
575
575
|
var require_validation = __commonJS({
|
|
576
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
576
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/validation.js"(exports, module) {
|
|
577
577
|
"use strict";
|
|
578
578
|
var { isUtf8 } = __require("buffer");
|
|
579
579
|
var { hasBlob } = require_constants();
|
|
@@ -772,9 +772,9 @@ var require_validation = __commonJS({
|
|
|
772
772
|
}
|
|
773
773
|
});
|
|
774
774
|
|
|
775
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
775
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/receiver.js
|
|
776
776
|
var require_receiver = __commonJS({
|
|
777
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
777
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/receiver.js"(exports, module) {
|
|
778
778
|
"use strict";
|
|
779
779
|
var { Writable } = __require("stream");
|
|
780
780
|
var PerMessageDeflate2 = require_permessage_deflate();
|
|
@@ -837,6 +837,7 @@ var require_receiver = __commonJS({
|
|
|
837
837
|
this._opcode = 0;
|
|
838
838
|
this._totalPayloadLength = 0;
|
|
839
839
|
this._messageLength = 0;
|
|
840
|
+
this._numFragments = 0;
|
|
840
841
|
this._fragments = [];
|
|
841
842
|
this._errored = false;
|
|
842
843
|
this._loop = false;
|
|
@@ -1187,23 +1188,23 @@ var require_receiver = __commonJS({
|
|
|
1187
1188
|
this.controlMessage(data, cb);
|
|
1188
1189
|
return;
|
|
1189
1190
|
}
|
|
1191
|
+
if (this._maxFragments > 0 && ++this._numFragments > this._maxFragments) {
|
|
1192
|
+
const error = this.createError(
|
|
1193
|
+
RangeError,
|
|
1194
|
+
"Too many message fragments",
|
|
1195
|
+
false,
|
|
1196
|
+
1008,
|
|
1197
|
+
"WS_ERR_TOO_MANY_BUFFERED_PARTS"
|
|
1198
|
+
);
|
|
1199
|
+
cb(error);
|
|
1200
|
+
return;
|
|
1201
|
+
}
|
|
1190
1202
|
if (this._compressed) {
|
|
1191
1203
|
this._state = INFLATING;
|
|
1192
1204
|
this.decompress(data, cb);
|
|
1193
1205
|
return;
|
|
1194
1206
|
}
|
|
1195
1207
|
if (data.length) {
|
|
1196
|
-
if (this._maxFragments > 0 && this._fragments.length >= this._maxFragments) {
|
|
1197
|
-
const error = this.createError(
|
|
1198
|
-
RangeError,
|
|
1199
|
-
"Too many message fragments",
|
|
1200
|
-
false,
|
|
1201
|
-
1008,
|
|
1202
|
-
"WS_ERR_TOO_MANY_BUFFERED_PARTS"
|
|
1203
|
-
);
|
|
1204
|
-
cb(error);
|
|
1205
|
-
return;
|
|
1206
|
-
}
|
|
1207
1208
|
this._messageLength = this._totalPayloadLength;
|
|
1208
1209
|
this._fragments.push(data);
|
|
1209
1210
|
}
|
|
@@ -1233,17 +1234,6 @@ var require_receiver = __commonJS({
|
|
|
1233
1234
|
cb(error);
|
|
1234
1235
|
return;
|
|
1235
1236
|
}
|
|
1236
|
-
if (this._maxFragments > 0 && this._fragments.length >= this._maxFragments) {
|
|
1237
|
-
const error = this.createError(
|
|
1238
|
-
RangeError,
|
|
1239
|
-
"Too many message fragments",
|
|
1240
|
-
false,
|
|
1241
|
-
1008,
|
|
1242
|
-
"WS_ERR_TOO_MANY_BUFFERED_PARTS"
|
|
1243
|
-
);
|
|
1244
|
-
cb(error);
|
|
1245
|
-
return;
|
|
1246
|
-
}
|
|
1247
1237
|
this._fragments.push(buf);
|
|
1248
1238
|
}
|
|
1249
1239
|
this.dataMessage(cb);
|
|
@@ -1266,6 +1256,7 @@ var require_receiver = __commonJS({
|
|
|
1266
1256
|
this._totalPayloadLength = 0;
|
|
1267
1257
|
this._messageLength = 0;
|
|
1268
1258
|
this._fragmented = 0;
|
|
1259
|
+
this._numFragments = 0;
|
|
1269
1260
|
this._fragments = [];
|
|
1270
1261
|
if (this._opcode === 2) {
|
|
1271
1262
|
let data;
|
|
@@ -1404,9 +1395,9 @@ var require_receiver = __commonJS({
|
|
|
1404
1395
|
}
|
|
1405
1396
|
});
|
|
1406
1397
|
|
|
1407
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
1398
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/sender.js
|
|
1408
1399
|
var require_sender = __commonJS({
|
|
1409
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
1400
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/sender.js"(exports, module) {
|
|
1410
1401
|
"use strict";
|
|
1411
1402
|
var { Duplex } = __require("stream");
|
|
1412
1403
|
var { randomFillSync } = __require("crypto");
|
|
@@ -1897,9 +1888,9 @@ var require_sender = __commonJS({
|
|
|
1897
1888
|
}
|
|
1898
1889
|
});
|
|
1899
1890
|
|
|
1900
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
1891
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/event-target.js
|
|
1901
1892
|
var require_event_target = __commonJS({
|
|
1902
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
1893
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/event-target.js"(exports, module) {
|
|
1903
1894
|
"use strict";
|
|
1904
1895
|
var { kForOnEventAttribute, kListener } = require_constants();
|
|
1905
1896
|
var kCode = /* @__PURE__ */ Symbol("kCode");
|
|
@@ -2126,9 +2117,9 @@ var require_event_target = __commonJS({
|
|
|
2126
2117
|
}
|
|
2127
2118
|
});
|
|
2128
2119
|
|
|
2129
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
2120
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/extension.js
|
|
2130
2121
|
var require_extension = __commonJS({
|
|
2131
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
2122
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/extension.js"(exports, module) {
|
|
2132
2123
|
"use strict";
|
|
2133
2124
|
var { tokenChars } = require_validation();
|
|
2134
2125
|
function push(dest, name, elem) {
|
|
@@ -2279,9 +2270,9 @@ var require_extension = __commonJS({
|
|
|
2279
2270
|
}
|
|
2280
2271
|
});
|
|
2281
2272
|
|
|
2282
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
2273
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/websocket.js
|
|
2283
2274
|
var require_websocket = __commonJS({
|
|
2284
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
2275
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/websocket.js"(exports, module) {
|
|
2285
2276
|
"use strict";
|
|
2286
2277
|
var EventEmitter = __require("events");
|
|
2287
2278
|
var https = __require("https");
|
|
@@ -2766,8 +2757,8 @@ var require_websocket = __commonJS({
|
|
|
2766
2757
|
autoPong: true,
|
|
2767
2758
|
closeTimeout: CLOSE_TIMEOUT,
|
|
2768
2759
|
protocolVersion: protocolVersions[1],
|
|
2769
|
-
maxBufferedChunks:
|
|
2770
|
-
maxFragments:
|
|
2760
|
+
maxBufferedChunks: 256 * 1024,
|
|
2761
|
+
maxFragments: 16 * 1024,
|
|
2771
2762
|
maxPayload: 100 * 1024 * 1024,
|
|
2772
2763
|
skipUTF8Validation: false,
|
|
2773
2764
|
perMessageDeflate: true,
|
|
@@ -3175,9 +3166,9 @@ var require_websocket = __commonJS({
|
|
|
3175
3166
|
}
|
|
3176
3167
|
});
|
|
3177
3168
|
|
|
3178
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
3169
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/stream.js
|
|
3179
3170
|
var require_stream = __commonJS({
|
|
3180
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
3171
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/stream.js"(exports, module) {
|
|
3181
3172
|
"use strict";
|
|
3182
3173
|
var WebSocket2 = require_websocket();
|
|
3183
3174
|
var { Duplex } = __require("stream");
|
|
@@ -3273,9 +3264,9 @@ var require_stream = __commonJS({
|
|
|
3273
3264
|
}
|
|
3274
3265
|
});
|
|
3275
3266
|
|
|
3276
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
3267
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/subprotocol.js
|
|
3277
3268
|
var require_subprotocol = __commonJS({
|
|
3278
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
3269
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/subprotocol.js"(exports, module) {
|
|
3279
3270
|
"use strict";
|
|
3280
3271
|
var { tokenChars } = require_validation();
|
|
3281
3272
|
function parse(header) {
|
|
@@ -3318,9 +3309,9 @@ var require_subprotocol = __commonJS({
|
|
|
3318
3309
|
}
|
|
3319
3310
|
});
|
|
3320
3311
|
|
|
3321
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
3312
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/websocket-server.js
|
|
3322
3313
|
var require_websocket_server = __commonJS({
|
|
3323
|
-
"../../node_modules/.pnpm/ws@8.21.
|
|
3314
|
+
"../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/lib/websocket-server.js"(exports, module) {
|
|
3324
3315
|
"use strict";
|
|
3325
3316
|
var EventEmitter = __require("events");
|
|
3326
3317
|
var http = __require("http");
|
|
@@ -3354,9 +3345,9 @@ var require_websocket_server = __commonJS({
|
|
|
3354
3345
|
* called
|
|
3355
3346
|
* @param {Function} [options.handleProtocols] A hook to handle protocols
|
|
3356
3347
|
* @param {String} [options.host] The hostname where to bind the server
|
|
3357
|
-
* @param {Number} [options.maxBufferedChunks=
|
|
3348
|
+
* @param {Number} [options.maxBufferedChunks=262144] The maximum number of
|
|
3358
3349
|
* buffered data chunks
|
|
3359
|
-
* @param {Number} [options.maxFragments=
|
|
3350
|
+
* @param {Number} [options.maxFragments=16384] The maximum number of message
|
|
3360
3351
|
* fragments
|
|
3361
3352
|
* @param {Number} [options.maxPayload=104857600] The maximum allowed message
|
|
3362
3353
|
* size
|
|
@@ -3379,8 +3370,8 @@ var require_websocket_server = __commonJS({
|
|
|
3379
3370
|
options = {
|
|
3380
3371
|
allowSynchronousEvents: true,
|
|
3381
3372
|
autoPong: true,
|
|
3382
|
-
maxBufferedChunks:
|
|
3383
|
-
maxFragments:
|
|
3373
|
+
maxBufferedChunks: 256 * 1024,
|
|
3374
|
+
maxFragments: 16 * 1024,
|
|
3384
3375
|
maxPayload: 100 * 1024 * 1024,
|
|
3385
3376
|
skipUTF8Validation: false,
|
|
3386
3377
|
perMessageDeflate: false,
|
|
@@ -3719,7 +3710,7 @@ var require_websocket_server = __commonJS({
|
|
|
3719
3710
|
}
|
|
3720
3711
|
});
|
|
3721
3712
|
|
|
3722
|
-
// ../../node_modules/.pnpm/ws@8.21.
|
|
3713
|
+
// ../../node_modules/.pnpm/ws@8.21.1/node_modules/ws/wrapper.mjs
|
|
3723
3714
|
var import_stream = __toESM(require_stream(), 1);
|
|
3724
3715
|
var import_extension = __toESM(require_extension(), 1);
|
|
3725
3716
|
var import_permessage_deflate = __toESM(require_permessage_deflate(), 1);
|
|
@@ -6,7 +6,7 @@ const __filename = __fileURLToPath(import.meta.url);
|
|
|
6
6
|
const __dirname = __pathDirname(__filename);
|
|
7
7
|
import {
|
|
8
8
|
wrapper_default
|
|
9
|
-
} from "./chunk-
|
|
9
|
+
} from "./chunk-I7WQWC33.js";
|
|
10
10
|
|
|
11
11
|
// ../../node_modules/.pnpm/ink@5.2.1_@types+react@18.3.31_react@18.3.1/node_modules/ink/build/devtools-window-polyfill.js
|
|
12
12
|
var customGlobal = global;
|