cdk-rds-sql 6.2.0 → 7.0.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/.jsii +4 -4
- package/lib/database.js +1 -1
- package/lib/handler/handler.js +584 -410
- package/lib/provider.js +1 -1
- package/lib/role.js +1 -1
- package/lib/schema.js +1 -1
- package/lib/sql.js +1 -1
- package/node_modules/@types/aws-lambda/README.md +1 -1
- package/node_modules/@types/aws-lambda/handler.d.ts +1 -0
- package/node_modules/@types/aws-lambda/package.json +2 -2
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/index.d.ts +2 -0
- package/node_modules/@types/aws-lambda/trigger/cognito-user-pool-trigger/pre-token-generation-v3.d.ts +50 -0
- package/package.json +14 -14
package/lib/handler/handler.js
CHANGED
|
@@ -121,7 +121,7 @@ var require_delay_base = __commonJS({
|
|
|
121
121
|
var jitter_factory_1 = require_jitter_factory();
|
|
122
122
|
var Delay = (
|
|
123
123
|
/** @class */
|
|
124
|
-
function() {
|
|
124
|
+
(function() {
|
|
125
125
|
function Delay2(options) {
|
|
126
126
|
this.options = options;
|
|
127
127
|
this.attempt = 0;
|
|
@@ -162,7 +162,7 @@ var require_delay_base = __commonJS({
|
|
|
162
162
|
configurable: true
|
|
163
163
|
});
|
|
164
164
|
return Delay2;
|
|
165
|
-
}()
|
|
165
|
+
})()
|
|
166
166
|
);
|
|
167
167
|
exports2.Delay = Delay;
|
|
168
168
|
}
|
|
@@ -172,7 +172,7 @@ var require_delay_base = __commonJS({
|
|
|
172
172
|
var require_skip_first_delay = __commonJS({
|
|
173
173
|
"node_modules/exponential-backoff/dist/delay/skip-first/skip-first.delay.js"(exports2) {
|
|
174
174
|
"use strict";
|
|
175
|
-
var __extends = exports2 && exports2.__extends || /* @__PURE__ */ function() {
|
|
175
|
+
var __extends = exports2 && exports2.__extends || /* @__PURE__ */ (function() {
|
|
176
176
|
var extendStatics = function(d, b) {
|
|
177
177
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
178
178
|
d2.__proto__ = b2;
|
|
@@ -188,7 +188,7 @@ var require_skip_first_delay = __commonJS({
|
|
|
188
188
|
}
|
|
189
189
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
190
190
|
};
|
|
191
|
-
}();
|
|
191
|
+
})();
|
|
192
192
|
var __awaiter = exports2 && exports2.__awaiter || function(thisArg, _arguments, P, generator) {
|
|
193
193
|
function adopt(value) {
|
|
194
194
|
return value instanceof P ? value : new P(function(resolve) {
|
|
@@ -289,7 +289,7 @@ var require_skip_first_delay = __commonJS({
|
|
|
289
289
|
var delay_base_1 = require_delay_base();
|
|
290
290
|
var SkipFirstDelay = (
|
|
291
291
|
/** @class */
|
|
292
|
-
function(_super) {
|
|
292
|
+
(function(_super) {
|
|
293
293
|
__extends(SkipFirstDelay2, _super);
|
|
294
294
|
function SkipFirstDelay2() {
|
|
295
295
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
@@ -316,7 +316,7 @@ var require_skip_first_delay = __commonJS({
|
|
|
316
316
|
configurable: true
|
|
317
317
|
});
|
|
318
318
|
return SkipFirstDelay2;
|
|
319
|
-
}(delay_base_1.Delay)
|
|
319
|
+
})(delay_base_1.Delay)
|
|
320
320
|
);
|
|
321
321
|
exports2.SkipFirstDelay = SkipFirstDelay;
|
|
322
322
|
}
|
|
@@ -326,7 +326,7 @@ var require_skip_first_delay = __commonJS({
|
|
|
326
326
|
var require_always_delay = __commonJS({
|
|
327
327
|
"node_modules/exponential-backoff/dist/delay/always/always.delay.js"(exports2) {
|
|
328
328
|
"use strict";
|
|
329
|
-
var __extends = exports2 && exports2.__extends || /* @__PURE__ */ function() {
|
|
329
|
+
var __extends = exports2 && exports2.__extends || /* @__PURE__ */ (function() {
|
|
330
330
|
var extendStatics = function(d, b) {
|
|
331
331
|
extendStatics = Object.setPrototypeOf || { __proto__: [] } instanceof Array && function(d2, b2) {
|
|
332
332
|
d2.__proto__ = b2;
|
|
@@ -342,18 +342,18 @@ var require_always_delay = __commonJS({
|
|
|
342
342
|
}
|
|
343
343
|
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
344
344
|
};
|
|
345
|
-
}();
|
|
345
|
+
})();
|
|
346
346
|
Object.defineProperty(exports2, "__esModule", { value: true });
|
|
347
347
|
var delay_base_1 = require_delay_base();
|
|
348
348
|
var AlwaysDelay = (
|
|
349
349
|
/** @class */
|
|
350
|
-
function(_super) {
|
|
350
|
+
(function(_super) {
|
|
351
351
|
__extends(AlwaysDelay2, _super);
|
|
352
352
|
function AlwaysDelay2() {
|
|
353
353
|
return _super !== null && _super.apply(this, arguments) || this;
|
|
354
354
|
}
|
|
355
355
|
return AlwaysDelay2;
|
|
356
|
-
}(delay_base_1.Delay)
|
|
356
|
+
})(delay_base_1.Delay)
|
|
357
357
|
);
|
|
358
358
|
exports2.AlwaysDelay = AlwaysDelay;
|
|
359
359
|
}
|
|
@@ -505,7 +505,7 @@ var require_backoff = __commonJS({
|
|
|
505
505
|
exports2.backOff = backOff2;
|
|
506
506
|
var BackOff = (
|
|
507
507
|
/** @class */
|
|
508
|
-
function() {
|
|
508
|
+
(function() {
|
|
509
509
|
function BackOff2(request, options) {
|
|
510
510
|
this.request = request;
|
|
511
511
|
this.options = options;
|
|
@@ -571,7 +571,7 @@ var require_backoff = __commonJS({
|
|
|
571
571
|
});
|
|
572
572
|
};
|
|
573
573
|
return BackOff2;
|
|
574
|
-
}()
|
|
574
|
+
})()
|
|
575
575
|
);
|
|
576
576
|
}
|
|
577
577
|
});
|
|
@@ -1028,7 +1028,7 @@ var require_parser_cache = __commonJS({
|
|
|
1028
1028
|
Boolean(options.rowsAsArray),
|
|
1029
1029
|
Boolean(options.supportBigNumbers || config.supportBigNumbers),
|
|
1030
1030
|
Boolean(options.bigNumberStrings || config.bigNumberStrings),
|
|
1031
|
-
typeof options.typeCast,
|
|
1031
|
+
typeof options.typeCast === "boolean" ? options.typeCast : typeof options.typeCast,
|
|
1032
1032
|
options.timezone || config.timezone,
|
|
1033
1033
|
Boolean(options.decimalNumbers),
|
|
1034
1034
|
options.dateStrings
|
|
@@ -6382,9 +6382,9 @@ var require_safer = __commonJS({
|
|
|
6382
6382
|
}
|
|
6383
6383
|
});
|
|
6384
6384
|
|
|
6385
|
-
// node_modules/iconv-lite/lib/bom-handling.js
|
|
6385
|
+
// node_modules/mysql2/node_modules/iconv-lite/lib/bom-handling.js
|
|
6386
6386
|
var require_bom_handling = __commonJS({
|
|
6387
|
-
"node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
6387
|
+
"node_modules/mysql2/node_modules/iconv-lite/lib/bom-handling.js"(exports2) {
|
|
6388
6388
|
"use strict";
|
|
6389
6389
|
var BOMChar = "\uFEFF";
|
|
6390
6390
|
exports2.PrependBOM = PrependBOMWrapper;
|
|
@@ -6410,12 +6410,14 @@ var require_bom_handling = __commonJS({
|
|
|
6410
6410
|
}
|
|
6411
6411
|
StripBOMWrapper.prototype.write = function(buf) {
|
|
6412
6412
|
var res = this.decoder.write(buf);
|
|
6413
|
-
if (this.pass || !res)
|
|
6413
|
+
if (this.pass || !res) {
|
|
6414
6414
|
return res;
|
|
6415
|
+
}
|
|
6415
6416
|
if (res[0] === BOMChar) {
|
|
6416
6417
|
res = res.slice(1);
|
|
6417
|
-
if (typeof this.options.stripBOM === "function")
|
|
6418
|
+
if (typeof this.options.stripBOM === "function") {
|
|
6418
6419
|
this.options.stripBOM();
|
|
6420
|
+
}
|
|
6419
6421
|
}
|
|
6420
6422
|
this.pass = true;
|
|
6421
6423
|
return res;
|
|
@@ -6426,9 +6428,25 @@ var require_bom_handling = __commonJS({
|
|
|
6426
6428
|
}
|
|
6427
6429
|
});
|
|
6428
6430
|
|
|
6429
|
-
// node_modules/iconv-lite/
|
|
6431
|
+
// node_modules/mysql2/node_modules/iconv-lite/lib/helpers/merge-exports.js
|
|
6432
|
+
var require_merge_exports = __commonJS({
|
|
6433
|
+
"node_modules/mysql2/node_modules/iconv-lite/lib/helpers/merge-exports.js"(exports2, module2) {
|
|
6434
|
+
"use strict";
|
|
6435
|
+
var hasOwn = typeof Object.hasOwn === "undefined" ? Function.call.bind(Object.prototype.hasOwnProperty) : Object.hasOwn;
|
|
6436
|
+
function mergeModules(target, module3) {
|
|
6437
|
+
for (var key in module3) {
|
|
6438
|
+
if (hasOwn(module3, key)) {
|
|
6439
|
+
target[key] = module3[key];
|
|
6440
|
+
}
|
|
6441
|
+
}
|
|
6442
|
+
}
|
|
6443
|
+
module2.exports = mergeModules;
|
|
6444
|
+
}
|
|
6445
|
+
});
|
|
6446
|
+
|
|
6447
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/internal.js
|
|
6430
6448
|
var require_internal = __commonJS({
|
|
6431
|
-
"node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
6449
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/internal.js"(exports2, module2) {
|
|
6432
6450
|
"use strict";
|
|
6433
6451
|
var Buffer2 = require_safer().Buffer;
|
|
6434
6452
|
module2.exports = {
|
|
@@ -6447,9 +6465,11 @@ var require_internal = __commonJS({
|
|
|
6447
6465
|
function InternalCodec(codecOptions, iconv) {
|
|
6448
6466
|
this.enc = codecOptions.encodingName;
|
|
6449
6467
|
this.bomAware = codecOptions.bomAware;
|
|
6450
|
-
if (this.enc === "base64")
|
|
6468
|
+
if (this.enc === "base64") {
|
|
6451
6469
|
this.encoder = InternalEncoderBase64;
|
|
6452
|
-
else if (this.enc === "
|
|
6470
|
+
} else if (this.enc === "utf8") {
|
|
6471
|
+
this.encoder = InternalEncoderUtf8;
|
|
6472
|
+
} else if (this.enc === "cesu8") {
|
|
6453
6473
|
this.enc = "utf8";
|
|
6454
6474
|
this.encoder = InternalEncoderCesu8;
|
|
6455
6475
|
if (Buffer2.from("eda0bdedb2a9", "hex").toString() !== "\u{1F4A9}") {
|
|
@@ -6461,9 +6481,6 @@ var require_internal = __commonJS({
|
|
|
6461
6481
|
InternalCodec.prototype.encoder = InternalEncoder;
|
|
6462
6482
|
InternalCodec.prototype.decoder = InternalDecoder;
|
|
6463
6483
|
var StringDecoder = require("string_decoder").StringDecoder;
|
|
6464
|
-
if (!StringDecoder.prototype.end)
|
|
6465
|
-
StringDecoder.prototype.end = function() {
|
|
6466
|
-
};
|
|
6467
6484
|
function InternalDecoder(options, codec) {
|
|
6468
6485
|
this.decoder = new StringDecoder(codec.enc);
|
|
6469
6486
|
}
|
|
@@ -6500,12 +6517,13 @@ var require_internal = __commonJS({
|
|
|
6500
6517
|
function InternalEncoderCesu8(options, codec) {
|
|
6501
6518
|
}
|
|
6502
6519
|
InternalEncoderCesu8.prototype.write = function(str) {
|
|
6503
|
-
var buf = Buffer2.alloc(str.length * 3)
|
|
6520
|
+
var buf = Buffer2.alloc(str.length * 3);
|
|
6521
|
+
var bufIdx = 0;
|
|
6504
6522
|
for (var i = 0; i < str.length; i++) {
|
|
6505
6523
|
var charCode = str.charCodeAt(i);
|
|
6506
|
-
if (charCode < 128)
|
|
6524
|
+
if (charCode < 128) {
|
|
6507
6525
|
buf[bufIdx++] = charCode;
|
|
6508
|
-
else if (charCode < 2048) {
|
|
6526
|
+
} else if (charCode < 2048) {
|
|
6509
6527
|
buf[bufIdx++] = 192 + (charCode >>> 6);
|
|
6510
6528
|
buf[bufIdx++] = 128 + (charCode & 63);
|
|
6511
6529
|
} else {
|
|
@@ -6525,7 +6543,10 @@ var require_internal = __commonJS({
|
|
|
6525
6543
|
this.defaultCharUnicode = codec.defaultCharUnicode;
|
|
6526
6544
|
}
|
|
6527
6545
|
InternalDecoderCesu8.prototype.write = function(buf) {
|
|
6528
|
-
var acc = this.acc
|
|
6546
|
+
var acc = this.acc;
|
|
6547
|
+
var contBytes = this.contBytes;
|
|
6548
|
+
var accBytes = this.accBytes;
|
|
6549
|
+
var res = "";
|
|
6529
6550
|
for (var i = 0; i < buf.length; i++) {
|
|
6530
6551
|
var curByte = buf[i];
|
|
6531
6552
|
if ((curByte & 192) !== 128) {
|
|
@@ -6552,12 +6573,13 @@ var require_internal = __commonJS({
|
|
|
6552
6573
|
contBytes--;
|
|
6553
6574
|
accBytes++;
|
|
6554
6575
|
if (contBytes === 0) {
|
|
6555
|
-
if (accBytes === 2 && acc < 128 && acc > 0)
|
|
6576
|
+
if (accBytes === 2 && acc < 128 && acc > 0) {
|
|
6556
6577
|
res += this.defaultCharUnicode;
|
|
6557
|
-
else if (accBytes === 3 && acc < 2048)
|
|
6578
|
+
} else if (accBytes === 3 && acc < 2048) {
|
|
6558
6579
|
res += this.defaultCharUnicode;
|
|
6559
|
-
else
|
|
6580
|
+
} else {
|
|
6560
6581
|
res += String.fromCharCode(acc);
|
|
6582
|
+
}
|
|
6561
6583
|
}
|
|
6562
6584
|
} else {
|
|
6563
6585
|
res += this.defaultCharUnicode;
|
|
@@ -6571,16 +6593,41 @@ var require_internal = __commonJS({
|
|
|
6571
6593
|
};
|
|
6572
6594
|
InternalDecoderCesu8.prototype.end = function() {
|
|
6573
6595
|
var res = 0;
|
|
6574
|
-
if (this.contBytes > 0)
|
|
6596
|
+
if (this.contBytes > 0) {
|
|
6575
6597
|
res += this.defaultCharUnicode;
|
|
6598
|
+
}
|
|
6576
6599
|
return res;
|
|
6577
6600
|
};
|
|
6601
|
+
function InternalEncoderUtf8(options, codec) {
|
|
6602
|
+
this.highSurrogate = "";
|
|
6603
|
+
}
|
|
6604
|
+
InternalEncoderUtf8.prototype.write = function(str) {
|
|
6605
|
+
if (this.highSurrogate) {
|
|
6606
|
+
str = this.highSurrogate + str;
|
|
6607
|
+
this.highSurrogate = "";
|
|
6608
|
+
}
|
|
6609
|
+
if (str.length > 0) {
|
|
6610
|
+
var charCode = str.charCodeAt(str.length - 1);
|
|
6611
|
+
if (charCode >= 55296 && charCode < 56320) {
|
|
6612
|
+
this.highSurrogate = str[str.length - 1];
|
|
6613
|
+
str = str.slice(0, str.length - 1);
|
|
6614
|
+
}
|
|
6615
|
+
}
|
|
6616
|
+
return Buffer2.from(str, this.enc);
|
|
6617
|
+
};
|
|
6618
|
+
InternalEncoderUtf8.prototype.end = function() {
|
|
6619
|
+
if (this.highSurrogate) {
|
|
6620
|
+
var str = this.highSurrogate;
|
|
6621
|
+
this.highSurrogate = "";
|
|
6622
|
+
return Buffer2.from(str, this.enc);
|
|
6623
|
+
}
|
|
6624
|
+
};
|
|
6578
6625
|
}
|
|
6579
6626
|
});
|
|
6580
6627
|
|
|
6581
|
-
// node_modules/iconv-lite/encodings/utf32.js
|
|
6628
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/utf32.js
|
|
6582
6629
|
var require_utf32 = __commonJS({
|
|
6583
|
-
"node_modules/iconv-lite/encodings/utf32.js"(exports2) {
|
|
6630
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/utf32.js"(exports2) {
|
|
6584
6631
|
"use strict";
|
|
6585
6632
|
var Buffer2 = require_safer().Buffer;
|
|
6586
6633
|
exports2._utf32 = Utf32Codec;
|
|
@@ -6606,8 +6653,8 @@ var require_utf32 = __commonJS({
|
|
|
6606
6653
|
var offset = 0;
|
|
6607
6654
|
for (var i = 0; i < src.length; i += 2) {
|
|
6608
6655
|
var code = src.readUInt16LE(i);
|
|
6609
|
-
var isHighSurrogate =
|
|
6610
|
-
var isLowSurrogate =
|
|
6656
|
+
var isHighSurrogate = code >= 55296 && code < 56320;
|
|
6657
|
+
var isLowSurrogate = code >= 56320 && code < 57344;
|
|
6611
6658
|
if (this.highSurrogate) {
|
|
6612
6659
|
if (isHighSurrogate || !isLowSurrogate) {
|
|
6613
6660
|
write32.call(dst, this.highSurrogate, offset);
|
|
@@ -6620,26 +6667,29 @@ var require_utf32 = __commonJS({
|
|
|
6620
6667
|
continue;
|
|
6621
6668
|
}
|
|
6622
6669
|
}
|
|
6623
|
-
if (isHighSurrogate)
|
|
6670
|
+
if (isHighSurrogate) {
|
|
6624
6671
|
this.highSurrogate = code;
|
|
6625
|
-
else {
|
|
6672
|
+
} else {
|
|
6626
6673
|
write32.call(dst, code, offset);
|
|
6627
6674
|
offset += 4;
|
|
6628
6675
|
this.highSurrogate = 0;
|
|
6629
6676
|
}
|
|
6630
6677
|
}
|
|
6631
|
-
if (offset < dst.length)
|
|
6678
|
+
if (offset < dst.length) {
|
|
6632
6679
|
dst = dst.slice(0, offset);
|
|
6680
|
+
}
|
|
6633
6681
|
return dst;
|
|
6634
6682
|
};
|
|
6635
6683
|
Utf32Encoder.prototype.end = function() {
|
|
6636
|
-
if (!this.highSurrogate)
|
|
6684
|
+
if (!this.highSurrogate) {
|
|
6637
6685
|
return;
|
|
6686
|
+
}
|
|
6638
6687
|
var buf = Buffer2.alloc(4);
|
|
6639
|
-
if (this.isLE)
|
|
6688
|
+
if (this.isLE) {
|
|
6640
6689
|
buf.writeUInt32LE(this.highSurrogate, 0);
|
|
6641
|
-
else
|
|
6690
|
+
} else {
|
|
6642
6691
|
buf.writeUInt32BE(this.highSurrogate, 0);
|
|
6692
|
+
}
|
|
6643
6693
|
this.highSurrogate = 0;
|
|
6644
6694
|
return buf;
|
|
6645
6695
|
};
|
|
@@ -6649,8 +6699,9 @@ var require_utf32 = __commonJS({
|
|
|
6649
6699
|
this.overflow = [];
|
|
6650
6700
|
}
|
|
6651
6701
|
Utf32Decoder.prototype.write = function(src) {
|
|
6652
|
-
if (src.length === 0)
|
|
6702
|
+
if (src.length === 0) {
|
|
6653
6703
|
return "";
|
|
6704
|
+
}
|
|
6654
6705
|
var i = 0;
|
|
6655
6706
|
var codepoint = 0;
|
|
6656
6707
|
var dst = Buffer2.alloc(src.length + 4);
|
|
@@ -6659,8 +6710,9 @@ var require_utf32 = __commonJS({
|
|
|
6659
6710
|
var overflow = this.overflow;
|
|
6660
6711
|
var badChar = this.badChar;
|
|
6661
6712
|
if (overflow.length > 0) {
|
|
6662
|
-
for (; i < src.length && overflow.length < 4; i++)
|
|
6713
|
+
for (; i < src.length && overflow.length < 4; i++) {
|
|
6663
6714
|
overflow.push(src[i]);
|
|
6715
|
+
}
|
|
6664
6716
|
if (overflow.length === 4) {
|
|
6665
6717
|
if (isLE) {
|
|
6666
6718
|
codepoint = overflow[i] | overflow[i + 1] << 8 | overflow[i + 2] << 16 | overflow[i + 3] << 24;
|
|
@@ -6711,8 +6763,9 @@ var require_utf32 = __commonJS({
|
|
|
6711
6763
|
Utf32AutoCodec.prototype.decoder = Utf32AutoDecoder;
|
|
6712
6764
|
function Utf32AutoEncoder(options, codec) {
|
|
6713
6765
|
options = options || {};
|
|
6714
|
-
if (options.addBOM === void 0)
|
|
6766
|
+
if (options.addBOM === void 0) {
|
|
6715
6767
|
options.addBOM = true;
|
|
6768
|
+
}
|
|
6716
6769
|
this.encoder = codec.iconv.getEncoder(options.defaultEncoding || "utf-32le", options);
|
|
6717
6770
|
}
|
|
6718
6771
|
Utf32AutoEncoder.prototype.write = function(str) {
|
|
@@ -6732,13 +6785,15 @@ var require_utf32 = __commonJS({
|
|
|
6732
6785
|
if (!this.decoder) {
|
|
6733
6786
|
this.initialBufs.push(buf);
|
|
6734
6787
|
this.initialBufsLen += buf.length;
|
|
6735
|
-
if (this.initialBufsLen < 32)
|
|
6788
|
+
if (this.initialBufsLen < 32) {
|
|
6736
6789
|
return "";
|
|
6790
|
+
}
|
|
6737
6791
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
6738
6792
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
6739
6793
|
var resStr = "";
|
|
6740
|
-
for (var i = 0; i < this.initialBufs.length; i++)
|
|
6794
|
+
for (var i = 0; i < this.initialBufs.length; i++) {
|
|
6741
6795
|
resStr += this.decoder.write(this.initialBufs[i]);
|
|
6796
|
+
}
|
|
6742
6797
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
6743
6798
|
return resStr;
|
|
6744
6799
|
}
|
|
@@ -6749,11 +6804,13 @@ var require_utf32 = __commonJS({
|
|
|
6749
6804
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
6750
6805
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
6751
6806
|
var resStr = "";
|
|
6752
|
-
for (var i = 0; i < this.initialBufs.length; i++)
|
|
6807
|
+
for (var i = 0; i < this.initialBufs.length; i++) {
|
|
6753
6808
|
resStr += this.decoder.write(this.initialBufs[i]);
|
|
6809
|
+
}
|
|
6754
6810
|
var trail = this.decoder.end();
|
|
6755
|
-
if (trail)
|
|
6811
|
+
if (trail) {
|
|
6756
6812
|
resStr += trail;
|
|
6813
|
+
}
|
|
6757
6814
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
6758
6815
|
return resStr;
|
|
6759
6816
|
}
|
|
@@ -6762,9 +6819,11 @@ var require_utf32 = __commonJS({
|
|
|
6762
6819
|
function detectEncoding(bufs, defaultEncoding) {
|
|
6763
6820
|
var b = [];
|
|
6764
6821
|
var charsProcessed = 0;
|
|
6765
|
-
var invalidLE = 0
|
|
6766
|
-
var
|
|
6767
|
-
|
|
6822
|
+
var invalidLE = 0;
|
|
6823
|
+
var invalidBE = 0;
|
|
6824
|
+
var bmpCharsLE = 0;
|
|
6825
|
+
var bmpCharsBE = 0;
|
|
6826
|
+
outerLoop:
|
|
6768
6827
|
for (var i = 0; i < bufs.length; i++) {
|
|
6769
6828
|
var buf = bufs[i];
|
|
6770
6829
|
for (var j = 0; j < buf.length; j++) {
|
|
@@ -6785,7 +6844,7 @@ var require_utf32 = __commonJS({
|
|
|
6785
6844
|
b.length = 0;
|
|
6786
6845
|
charsProcessed++;
|
|
6787
6846
|
if (charsProcessed >= 100) {
|
|
6788
|
-
break
|
|
6847
|
+
break outerLoop;
|
|
6789
6848
|
}
|
|
6790
6849
|
}
|
|
6791
6850
|
}
|
|
@@ -6797,9 +6856,9 @@ var require_utf32 = __commonJS({
|
|
|
6797
6856
|
}
|
|
6798
6857
|
});
|
|
6799
6858
|
|
|
6800
|
-
// node_modules/iconv-lite/encodings/utf16.js
|
|
6859
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/utf16.js
|
|
6801
6860
|
var require_utf16 = __commonJS({
|
|
6802
|
-
"node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
6861
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/utf16.js"(exports2) {
|
|
6803
6862
|
"use strict";
|
|
6804
6863
|
var Buffer2 = require_safer().Buffer;
|
|
6805
6864
|
exports2.utf16be = Utf16BECodec;
|
|
@@ -6825,9 +6884,12 @@ var require_utf16 = __commonJS({
|
|
|
6825
6884
|
this.overflowByte = -1;
|
|
6826
6885
|
}
|
|
6827
6886
|
Utf16BEDecoder.prototype.write = function(buf) {
|
|
6828
|
-
if (buf.length == 0)
|
|
6887
|
+
if (buf.length == 0) {
|
|
6829
6888
|
return "";
|
|
6830
|
-
|
|
6889
|
+
}
|
|
6890
|
+
var buf2 = Buffer2.alloc(buf.length + 1);
|
|
6891
|
+
var i = 0;
|
|
6892
|
+
var j = 0;
|
|
6831
6893
|
if (this.overflowByte !== -1) {
|
|
6832
6894
|
buf2[0] = buf[0];
|
|
6833
6895
|
buf2[1] = this.overflowByte;
|
|
@@ -6852,8 +6914,9 @@ var require_utf16 = __commonJS({
|
|
|
6852
6914
|
Utf16Codec.prototype.decoder = Utf16Decoder;
|
|
6853
6915
|
function Utf16Encoder(options, codec) {
|
|
6854
6916
|
options = options || {};
|
|
6855
|
-
if (options.addBOM === void 0)
|
|
6917
|
+
if (options.addBOM === void 0) {
|
|
6856
6918
|
options.addBOM = true;
|
|
6919
|
+
}
|
|
6857
6920
|
this.encoder = codec.iconv.getEncoder("utf-16le", options);
|
|
6858
6921
|
}
|
|
6859
6922
|
Utf16Encoder.prototype.write = function(str) {
|
|
@@ -6873,13 +6936,15 @@ var require_utf16 = __commonJS({
|
|
|
6873
6936
|
if (!this.decoder) {
|
|
6874
6937
|
this.initialBufs.push(buf);
|
|
6875
6938
|
this.initialBufsLen += buf.length;
|
|
6876
|
-
if (this.initialBufsLen < 16)
|
|
6939
|
+
if (this.initialBufsLen < 16) {
|
|
6877
6940
|
return "";
|
|
6941
|
+
}
|
|
6878
6942
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
6879
6943
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
6880
6944
|
var resStr = "";
|
|
6881
|
-
for (var i = 0; i < this.initialBufs.length; i++)
|
|
6945
|
+
for (var i = 0; i < this.initialBufs.length; i++) {
|
|
6882
6946
|
resStr += this.decoder.write(this.initialBufs[i]);
|
|
6947
|
+
}
|
|
6883
6948
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
6884
6949
|
return resStr;
|
|
6885
6950
|
}
|
|
@@ -6890,11 +6955,13 @@ var require_utf16 = __commonJS({
|
|
|
6890
6955
|
var encoding = detectEncoding(this.initialBufs, this.options.defaultEncoding);
|
|
6891
6956
|
this.decoder = this.iconv.getDecoder(encoding, this.options);
|
|
6892
6957
|
var resStr = "";
|
|
6893
|
-
for (var i = 0; i < this.initialBufs.length; i++)
|
|
6958
|
+
for (var i = 0; i < this.initialBufs.length; i++) {
|
|
6894
6959
|
resStr += this.decoder.write(this.initialBufs[i]);
|
|
6960
|
+
}
|
|
6895
6961
|
var trail = this.decoder.end();
|
|
6896
|
-
if (trail)
|
|
6962
|
+
if (trail) {
|
|
6897
6963
|
resStr += trail;
|
|
6964
|
+
}
|
|
6898
6965
|
this.initialBufs.length = this.initialBufsLen = 0;
|
|
6899
6966
|
return resStr;
|
|
6900
6967
|
}
|
|
@@ -6903,8 +6970,9 @@ var require_utf16 = __commonJS({
|
|
|
6903
6970
|
function detectEncoding(bufs, defaultEncoding) {
|
|
6904
6971
|
var b = [];
|
|
6905
6972
|
var charsProcessed = 0;
|
|
6906
|
-
var asciiCharsLE = 0
|
|
6907
|
-
|
|
6973
|
+
var asciiCharsLE = 0;
|
|
6974
|
+
var asciiCharsBE = 0;
|
|
6975
|
+
outerLoop:
|
|
6908
6976
|
for (var i = 0; i < bufs.length; i++) {
|
|
6909
6977
|
var buf = bufs[i];
|
|
6910
6978
|
for (var j = 0; j < buf.length; j++) {
|
|
@@ -6919,7 +6987,7 @@ var require_utf16 = __commonJS({
|
|
|
6919
6987
|
b.length = 0;
|
|
6920
6988
|
charsProcessed++;
|
|
6921
6989
|
if (charsProcessed >= 100) {
|
|
6922
|
-
break
|
|
6990
|
+
break outerLoop;
|
|
6923
6991
|
}
|
|
6924
6992
|
}
|
|
6925
6993
|
}
|
|
@@ -6931,9 +6999,9 @@ var require_utf16 = __commonJS({
|
|
|
6931
6999
|
}
|
|
6932
7000
|
});
|
|
6933
7001
|
|
|
6934
|
-
// node_modules/iconv-lite/encodings/utf7.js
|
|
7002
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/utf7.js
|
|
6935
7003
|
var require_utf7 = __commonJS({
|
|
6936
|
-
"node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
7004
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/utf7.js"(exports2) {
|
|
6937
7005
|
"use strict";
|
|
6938
7006
|
var Buffer2 = require_safer().Buffer;
|
|
6939
7007
|
exports2.utf7 = Utf7Codec;
|
|
@@ -6962,14 +7030,18 @@ var require_utf7 = __commonJS({
|
|
|
6962
7030
|
}
|
|
6963
7031
|
var base64Regex = /[A-Za-z0-9\/+]/;
|
|
6964
7032
|
var base64Chars = [];
|
|
6965
|
-
for (i = 0; i < 256; i++)
|
|
7033
|
+
for (i = 0; i < 256; i++) {
|
|
6966
7034
|
base64Chars[i] = base64Regex.test(String.fromCharCode(i));
|
|
7035
|
+
}
|
|
6967
7036
|
var i;
|
|
6968
7037
|
var plusChar = "+".charCodeAt(0);
|
|
6969
7038
|
var minusChar = "-".charCodeAt(0);
|
|
6970
7039
|
var andChar = "&".charCodeAt(0);
|
|
6971
7040
|
Utf7Decoder.prototype.write = function(buf) {
|
|
6972
|
-
var res = ""
|
|
7041
|
+
var res = "";
|
|
7042
|
+
var lastI = 0;
|
|
7043
|
+
var inBase64 = this.inBase64;
|
|
7044
|
+
var base64Accum = this.base64Accum;
|
|
6973
7045
|
for (var i2 = 0; i2 < buf.length; i2++) {
|
|
6974
7046
|
if (!inBase64) {
|
|
6975
7047
|
if (buf[i2] == plusChar) {
|
|
@@ -6985,8 +7057,9 @@ var require_utf7 = __commonJS({
|
|
|
6985
7057
|
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii");
|
|
6986
7058
|
res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
|
|
6987
7059
|
}
|
|
6988
|
-
if (buf[i2] != minusChar)
|
|
7060
|
+
if (buf[i2] != minusChar) {
|
|
6989
7061
|
i2--;
|
|
7062
|
+
}
|
|
6990
7063
|
lastI = i2 + 1;
|
|
6991
7064
|
inBase64 = false;
|
|
6992
7065
|
base64Accum = "";
|
|
@@ -7008,8 +7081,9 @@ var require_utf7 = __commonJS({
|
|
|
7008
7081
|
};
|
|
7009
7082
|
Utf7Decoder.prototype.end = function() {
|
|
7010
7083
|
var res = "";
|
|
7011
|
-
if (this.inBase64 && this.base64Accum.length > 0)
|
|
7084
|
+
if (this.inBase64 && this.base64Accum.length > 0) {
|
|
7012
7085
|
res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
|
|
7086
|
+
}
|
|
7013
7087
|
this.inBase64 = false;
|
|
7014
7088
|
this.base64Accum = "";
|
|
7015
7089
|
return res;
|
|
@@ -7028,10 +7102,14 @@ var require_utf7 = __commonJS({
|
|
|
7028
7102
|
this.base64AccumIdx = 0;
|
|
7029
7103
|
}
|
|
7030
7104
|
Utf7IMAPEncoder.prototype.write = function(str) {
|
|
7031
|
-
var inBase64 = this.inBase64
|
|
7105
|
+
var inBase64 = this.inBase64;
|
|
7106
|
+
var base64Accum = this.base64Accum;
|
|
7107
|
+
var base64AccumIdx = this.base64AccumIdx;
|
|
7108
|
+
var buf = Buffer2.alloc(str.length * 5 + 10);
|
|
7109
|
+
var bufIdx = 0;
|
|
7032
7110
|
for (var i2 = 0; i2 < str.length; i2++) {
|
|
7033
7111
|
var uChar = str.charCodeAt(i2);
|
|
7034
|
-
if (
|
|
7112
|
+
if (uChar >= 32 && uChar <= 126) {
|
|
7035
7113
|
if (inBase64) {
|
|
7036
7114
|
if (base64AccumIdx > 0) {
|
|
7037
7115
|
bufIdx += buf.write(base64Accum.slice(0, base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
|
|
@@ -7042,8 +7120,9 @@ var require_utf7 = __commonJS({
|
|
|
7042
7120
|
}
|
|
7043
7121
|
if (!inBase64) {
|
|
7044
7122
|
buf[bufIdx++] = uChar;
|
|
7045
|
-
if (uChar === andChar)
|
|
7123
|
+
if (uChar === andChar) {
|
|
7046
7124
|
buf[bufIdx++] = minusChar;
|
|
7125
|
+
}
|
|
7047
7126
|
}
|
|
7048
7127
|
} else {
|
|
7049
7128
|
if (!inBase64) {
|
|
@@ -7065,7 +7144,8 @@ var require_utf7 = __commonJS({
|
|
|
7065
7144
|
return buf.slice(0, bufIdx);
|
|
7066
7145
|
};
|
|
7067
7146
|
Utf7IMAPEncoder.prototype.end = function() {
|
|
7068
|
-
var buf = Buffer2.alloc(10)
|
|
7147
|
+
var buf = Buffer2.alloc(10);
|
|
7148
|
+
var bufIdx = 0;
|
|
7069
7149
|
if (this.inBase64) {
|
|
7070
7150
|
if (this.base64AccumIdx > 0) {
|
|
7071
7151
|
bufIdx += buf.write(this.base64Accum.slice(0, this.base64AccumIdx).toString("base64").replace(/\//g, ",").replace(/=+$/, ""), bufIdx);
|
|
@@ -7084,7 +7164,10 @@ var require_utf7 = __commonJS({
|
|
|
7084
7164
|
var base64IMAPChars = base64Chars.slice();
|
|
7085
7165
|
base64IMAPChars[",".charCodeAt(0)] = true;
|
|
7086
7166
|
Utf7IMAPDecoder.prototype.write = function(buf) {
|
|
7087
|
-
var res = ""
|
|
7167
|
+
var res = "";
|
|
7168
|
+
var lastI = 0;
|
|
7169
|
+
var inBase64 = this.inBase64;
|
|
7170
|
+
var base64Accum = this.base64Accum;
|
|
7088
7171
|
for (var i2 = 0; i2 < buf.length; i2++) {
|
|
7089
7172
|
if (!inBase64) {
|
|
7090
7173
|
if (buf[i2] == andChar) {
|
|
@@ -7100,8 +7183,9 @@ var require_utf7 = __commonJS({
|
|
|
7100
7183
|
var b64str = base64Accum + this.iconv.decode(buf.slice(lastI, i2), "ascii").replace(/,/g, "/");
|
|
7101
7184
|
res += this.iconv.decode(Buffer2.from(b64str, "base64"), "utf16-be");
|
|
7102
7185
|
}
|
|
7103
|
-
if (buf[i2] != minusChar)
|
|
7186
|
+
if (buf[i2] != minusChar) {
|
|
7104
7187
|
i2--;
|
|
7188
|
+
}
|
|
7105
7189
|
lastI = i2 + 1;
|
|
7106
7190
|
inBase64 = false;
|
|
7107
7191
|
base64Accum = "";
|
|
@@ -7123,8 +7207,9 @@ var require_utf7 = __commonJS({
|
|
|
7123
7207
|
};
|
|
7124
7208
|
Utf7IMAPDecoder.prototype.end = function() {
|
|
7125
7209
|
var res = "";
|
|
7126
|
-
if (this.inBase64 && this.base64Accum.length > 0)
|
|
7210
|
+
if (this.inBase64 && this.base64Accum.length > 0) {
|
|
7127
7211
|
res = this.iconv.decode(Buffer2.from(this.base64Accum, "base64"), "utf16-be");
|
|
7212
|
+
}
|
|
7128
7213
|
this.inBase64 = false;
|
|
7129
7214
|
this.base64Accum = "";
|
|
7130
7215
|
return res;
|
|
@@ -7132,27 +7217,31 @@ var require_utf7 = __commonJS({
|
|
|
7132
7217
|
}
|
|
7133
7218
|
});
|
|
7134
7219
|
|
|
7135
|
-
// node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
7220
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/sbcs-codec.js
|
|
7136
7221
|
var require_sbcs_codec = __commonJS({
|
|
7137
|
-
"node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
7222
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/sbcs-codec.js"(exports2) {
|
|
7138
7223
|
"use strict";
|
|
7139
7224
|
var Buffer2 = require_safer().Buffer;
|
|
7140
7225
|
exports2._sbcs = SBCSCodec;
|
|
7141
7226
|
function SBCSCodec(codecOptions, iconv) {
|
|
7142
|
-
if (!codecOptions)
|
|
7227
|
+
if (!codecOptions) {
|
|
7143
7228
|
throw new Error("SBCS codec is called without the data.");
|
|
7144
|
-
|
|
7229
|
+
}
|
|
7230
|
+
if (!codecOptions.chars || codecOptions.chars.length !== 128 && codecOptions.chars.length !== 256) {
|
|
7145
7231
|
throw new Error("Encoding '" + codecOptions.type + "' has incorrect 'chars' (must be of len 128 or 256)");
|
|
7232
|
+
}
|
|
7146
7233
|
if (codecOptions.chars.length === 128) {
|
|
7147
7234
|
var asciiString = "";
|
|
7148
|
-
for (var i = 0; i < 128; i++)
|
|
7235
|
+
for (var i = 0; i < 128; i++) {
|
|
7149
7236
|
asciiString += String.fromCharCode(i);
|
|
7237
|
+
}
|
|
7150
7238
|
codecOptions.chars = asciiString + codecOptions.chars;
|
|
7151
7239
|
}
|
|
7152
7240
|
this.decodeBuf = Buffer2.from(codecOptions.chars, "ucs2");
|
|
7153
7241
|
var encodeBuf = Buffer2.alloc(65536, iconv.defaultCharSingleByte.charCodeAt(0));
|
|
7154
|
-
for (var i = 0; i < codecOptions.chars.length; i++)
|
|
7242
|
+
for (var i = 0; i < codecOptions.chars.length; i++) {
|
|
7155
7243
|
encodeBuf[codecOptions.chars.charCodeAt(i)] = i;
|
|
7244
|
+
}
|
|
7156
7245
|
this.encodeBuf = encodeBuf;
|
|
7157
7246
|
}
|
|
7158
7247
|
SBCSCodec.prototype.encoder = SBCSEncoder;
|
|
@@ -7162,8 +7251,9 @@ var require_sbcs_codec = __commonJS({
|
|
|
7162
7251
|
}
|
|
7163
7252
|
SBCSEncoder.prototype.write = function(str) {
|
|
7164
7253
|
var buf = Buffer2.alloc(str.length);
|
|
7165
|
-
for (var i = 0; i < str.length; i++)
|
|
7254
|
+
for (var i = 0; i < str.length; i++) {
|
|
7166
7255
|
buf[i] = this.encodeBuf[str.charCodeAt(i)];
|
|
7256
|
+
}
|
|
7167
7257
|
return buf;
|
|
7168
7258
|
};
|
|
7169
7259
|
SBCSEncoder.prototype.end = function() {
|
|
@@ -7174,7 +7264,8 @@ var require_sbcs_codec = __commonJS({
|
|
|
7174
7264
|
SBCSDecoder.prototype.write = function(buf) {
|
|
7175
7265
|
var decodeBuf = this.decodeBuf;
|
|
7176
7266
|
var newBuf = Buffer2.alloc(buf.length * 2);
|
|
7177
|
-
var idx1 = 0
|
|
7267
|
+
var idx1 = 0;
|
|
7268
|
+
var idx2 = 0;
|
|
7178
7269
|
for (var i = 0; i < buf.length; i++) {
|
|
7179
7270
|
idx1 = buf[i] * 2;
|
|
7180
7271
|
idx2 = i * 2;
|
|
@@ -7188,162 +7279,162 @@ var require_sbcs_codec = __commonJS({
|
|
|
7188
7279
|
}
|
|
7189
7280
|
});
|
|
7190
7281
|
|
|
7191
|
-
// node_modules/iconv-lite/encodings/sbcs-data.js
|
|
7282
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/sbcs-data.js
|
|
7192
7283
|
var require_sbcs_data = __commonJS({
|
|
7193
|
-
"node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
7284
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/sbcs-data.js"(exports2, module2) {
|
|
7194
7285
|
"use strict";
|
|
7195
7286
|
module2.exports = {
|
|
7196
7287
|
// Not supported by iconv, not sure why.
|
|
7197
|
-
|
|
7198
|
-
|
|
7199
|
-
|
|
7200
|
-
|
|
7288
|
+
10029: "maccenteuro",
|
|
7289
|
+
maccenteuro: {
|
|
7290
|
+
type: "_sbcs",
|
|
7291
|
+
chars: "\xC4\u0100\u0101\xC9\u0104\xD6\xDC\xE1\u0105\u010C\xE4\u010D\u0106\u0107\xE9\u0179\u017A\u010E\xED\u010F\u0112\u0113\u0116\xF3\u0117\xF4\xF6\xF5\xFA\u011A\u011B\xFC\u2020\xB0\u0118\xA3\xA7\u2022\xB6\xDF\xAE\xA9\u2122\u0119\xA8\u2260\u0123\u012E\u012F\u012A\u2264\u2265\u012B\u0136\u2202\u2211\u0142\u013B\u013C\u013D\u013E\u0139\u013A\u0145\u0146\u0143\xAC\u221A\u0144\u0147\u2206\xAB\xBB\u2026\xA0\u0148\u0150\xD5\u0151\u014C\u2013\u2014\u201C\u201D\u2018\u2019\xF7\u25CA\u014D\u0154\u0155\u0158\u2039\u203A\u0159\u0156\u0157\u0160\u201A\u201E\u0161\u015A\u015B\xC1\u0164\u0165\xCD\u017D\u017E\u016A\xD3\xD4\u016B\u016E\xDA\u016F\u0170\u0171\u0172\u0173\xDD\xFD\u0137\u017B\u0141\u017C\u0122\u02C7"
|
|
7201
7292
|
},
|
|
7202
|
-
|
|
7203
|
-
|
|
7204
|
-
|
|
7205
|
-
|
|
7206
|
-
|
|
7293
|
+
808: "cp808",
|
|
7294
|
+
ibm808: "cp808",
|
|
7295
|
+
cp808: {
|
|
7296
|
+
type: "_sbcs",
|
|
7297
|
+
chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u0401\u0451\u0404\u0454\u0407\u0457\u040E\u045E\xB0\u2219\xB7\u221A\u2116\u20AC\u25A0\xA0"
|
|
7207
7298
|
},
|
|
7208
|
-
|
|
7209
|
-
|
|
7210
|
-
|
|
7299
|
+
mik: {
|
|
7300
|
+
type: "_sbcs",
|
|
7301
|
+
chars: "\u0410\u0411\u0412\u0413\u0414\u0415\u0416\u0417\u0418\u0419\u041A\u041B\u041C\u041D\u041E\u041F\u0420\u0421\u0422\u0423\u0424\u0425\u0426\u0427\u0428\u0429\u042A\u042B\u042C\u042D\u042E\u042F\u0430\u0431\u0432\u0433\u0434\u0435\u0436\u0437\u0438\u0439\u043A\u043B\u043C\u043D\u043E\u043F\u0440\u0441\u0442\u0443\u0444\u0445\u0446\u0447\u0448\u0449\u044A\u044B\u044C\u044D\u044E\u044F\u2514\u2534\u252C\u251C\u2500\u253C\u2563\u2551\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2510\u2591\u2592\u2593\u2502\u2524\u2116\xA7\u2557\u255D\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u03B1\xDF\u0393\u03C0\u03A3\u03C3\xB5\u03C4\u03A6\u0398\u03A9\u03B4\u221E\u03C6\u03B5\u2229\u2261\xB1\u2265\u2264\u2320\u2321\xF7\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
|
|
7211
7302
|
},
|
|
7212
|
-
|
|
7213
|
-
|
|
7214
|
-
|
|
7303
|
+
cp720: {
|
|
7304
|
+
type: "_sbcs",
|
|
7305
|
+
chars: "\x80\x81\xE9\xE2\x84\xE0\x86\xE7\xEA\xEB\xE8\xEF\xEE\x8D\x8E\x8F\x90\u0651\u0652\xF4\xA4\u0640\xFB\xF9\u0621\u0622\u0623\u0624\xA3\u0625\u0626\u0627\u0628\u0629\u062A\u062B\u062C\u062D\u062E\u062F\u0630\u0631\u0632\u0633\u0634\u0635\xAB\xBB\u2591\u2592\u2593\u2502\u2524\u2561\u2562\u2556\u2555\u2563\u2551\u2557\u255D\u255C\u255B\u2510\u2514\u2534\u252C\u251C\u2500\u253C\u255E\u255F\u255A\u2554\u2569\u2566\u2560\u2550\u256C\u2567\u2568\u2564\u2565\u2559\u2558\u2552\u2553\u256B\u256A\u2518\u250C\u2588\u2584\u258C\u2590\u2580\u0636\u0637\u0638\u0639\u063A\u0641\xB5\u0642\u0643\u0644\u0645\u0646\u0647\u0648\u0649\u064A\u2261\u064B\u064C\u064D\u064E\u064F\u0650\u2248\xB0\u2219\xB7\u221A\u207F\xB2\u25A0\xA0"
|
|
7215
7306
|
},
|
|
7216
7307
|
// Aliases of generated encodings.
|
|
7217
|
-
|
|
7218
|
-
|
|
7219
|
-
|
|
7220
|
-
|
|
7221
|
-
|
|
7222
|
-
|
|
7223
|
-
|
|
7224
|
-
|
|
7225
|
-
|
|
7226
|
-
|
|
7227
|
-
|
|
7228
|
-
|
|
7229
|
-
|
|
7230
|
-
|
|
7231
|
-
|
|
7232
|
-
|
|
7233
|
-
|
|
7234
|
-
|
|
7235
|
-
|
|
7236
|
-
|
|
7237
|
-
|
|
7238
|
-
|
|
7239
|
-
|
|
7240
|
-
|
|
7241
|
-
|
|
7242
|
-
|
|
7243
|
-
|
|
7244
|
-
|
|
7245
|
-
|
|
7246
|
-
|
|
7247
|
-
|
|
7248
|
-
|
|
7249
|
-
|
|
7250
|
-
|
|
7251
|
-
|
|
7252
|
-
|
|
7253
|
-
|
|
7254
|
-
|
|
7255
|
-
|
|
7256
|
-
|
|
7257
|
-
|
|
7258
|
-
|
|
7259
|
-
|
|
7260
|
-
|
|
7261
|
-
|
|
7262
|
-
|
|
7263
|
-
|
|
7264
|
-
|
|
7265
|
-
|
|
7266
|
-
|
|
7267
|
-
|
|
7268
|
-
|
|
7269
|
-
|
|
7270
|
-
|
|
7271
|
-
|
|
7272
|
-
|
|
7273
|
-
|
|
7274
|
-
|
|
7275
|
-
|
|
7276
|
-
|
|
7277
|
-
|
|
7278
|
-
|
|
7279
|
-
|
|
7280
|
-
|
|
7281
|
-
|
|
7282
|
-
|
|
7283
|
-
|
|
7284
|
-
|
|
7285
|
-
|
|
7286
|
-
|
|
7287
|
-
|
|
7288
|
-
|
|
7289
|
-
|
|
7290
|
-
|
|
7291
|
-
|
|
7292
|
-
|
|
7293
|
-
|
|
7294
|
-
|
|
7295
|
-
|
|
7296
|
-
|
|
7297
|
-
|
|
7298
|
-
|
|
7299
|
-
|
|
7300
|
-
|
|
7301
|
-
|
|
7302
|
-
|
|
7303
|
-
|
|
7304
|
-
|
|
7305
|
-
|
|
7306
|
-
|
|
7307
|
-
|
|
7308
|
-
|
|
7309
|
-
|
|
7310
|
-
|
|
7311
|
-
|
|
7312
|
-
|
|
7313
|
-
|
|
7314
|
-
|
|
7315
|
-
|
|
7316
|
-
|
|
7317
|
-
|
|
7318
|
-
|
|
7319
|
-
|
|
7320
|
-
|
|
7321
|
-
|
|
7322
|
-
|
|
7323
|
-
|
|
7324
|
-
|
|
7325
|
-
|
|
7326
|
-
|
|
7327
|
-
|
|
7328
|
-
|
|
7329
|
-
|
|
7330
|
-
|
|
7331
|
-
|
|
7332
|
-
|
|
7333
|
-
|
|
7334
|
-
|
|
7335
|
-
|
|
7336
|
-
|
|
7337
|
-
|
|
7338
|
-
|
|
7339
|
-
|
|
7308
|
+
ascii8bit: "ascii",
|
|
7309
|
+
usascii: "ascii",
|
|
7310
|
+
ansix34: "ascii",
|
|
7311
|
+
ansix341968: "ascii",
|
|
7312
|
+
ansix341986: "ascii",
|
|
7313
|
+
csascii: "ascii",
|
|
7314
|
+
cp367: "ascii",
|
|
7315
|
+
ibm367: "ascii",
|
|
7316
|
+
isoir6: "ascii",
|
|
7317
|
+
iso646us: "ascii",
|
|
7318
|
+
iso646irv: "ascii",
|
|
7319
|
+
us: "ascii",
|
|
7320
|
+
latin1: "iso88591",
|
|
7321
|
+
latin2: "iso88592",
|
|
7322
|
+
latin3: "iso88593",
|
|
7323
|
+
latin4: "iso88594",
|
|
7324
|
+
latin5: "iso88599",
|
|
7325
|
+
latin6: "iso885910",
|
|
7326
|
+
latin7: "iso885913",
|
|
7327
|
+
latin8: "iso885914",
|
|
7328
|
+
latin9: "iso885915",
|
|
7329
|
+
latin10: "iso885916",
|
|
7330
|
+
csisolatin1: "iso88591",
|
|
7331
|
+
csisolatin2: "iso88592",
|
|
7332
|
+
csisolatin3: "iso88593",
|
|
7333
|
+
csisolatin4: "iso88594",
|
|
7334
|
+
csisolatincyrillic: "iso88595",
|
|
7335
|
+
csisolatinarabic: "iso88596",
|
|
7336
|
+
csisolatingreek: "iso88597",
|
|
7337
|
+
csisolatinhebrew: "iso88598",
|
|
7338
|
+
csisolatin5: "iso88599",
|
|
7339
|
+
csisolatin6: "iso885910",
|
|
7340
|
+
l1: "iso88591",
|
|
7341
|
+
l2: "iso88592",
|
|
7342
|
+
l3: "iso88593",
|
|
7343
|
+
l4: "iso88594",
|
|
7344
|
+
l5: "iso88599",
|
|
7345
|
+
l6: "iso885910",
|
|
7346
|
+
l7: "iso885913",
|
|
7347
|
+
l8: "iso885914",
|
|
7348
|
+
l9: "iso885915",
|
|
7349
|
+
l10: "iso885916",
|
|
7350
|
+
isoir14: "iso646jp",
|
|
7351
|
+
isoir57: "iso646cn",
|
|
7352
|
+
isoir100: "iso88591",
|
|
7353
|
+
isoir101: "iso88592",
|
|
7354
|
+
isoir109: "iso88593",
|
|
7355
|
+
isoir110: "iso88594",
|
|
7356
|
+
isoir144: "iso88595",
|
|
7357
|
+
isoir127: "iso88596",
|
|
7358
|
+
isoir126: "iso88597",
|
|
7359
|
+
isoir138: "iso88598",
|
|
7360
|
+
isoir148: "iso88599",
|
|
7361
|
+
isoir157: "iso885910",
|
|
7362
|
+
isoir166: "tis620",
|
|
7363
|
+
isoir179: "iso885913",
|
|
7364
|
+
isoir199: "iso885914",
|
|
7365
|
+
isoir203: "iso885915",
|
|
7366
|
+
isoir226: "iso885916",
|
|
7367
|
+
cp819: "iso88591",
|
|
7368
|
+
ibm819: "iso88591",
|
|
7369
|
+
cyrillic: "iso88595",
|
|
7370
|
+
arabic: "iso88596",
|
|
7371
|
+
arabic8: "iso88596",
|
|
7372
|
+
ecma114: "iso88596",
|
|
7373
|
+
asmo708: "iso88596",
|
|
7374
|
+
greek: "iso88597",
|
|
7375
|
+
greek8: "iso88597",
|
|
7376
|
+
ecma118: "iso88597",
|
|
7377
|
+
elot928: "iso88597",
|
|
7378
|
+
hebrew: "iso88598",
|
|
7379
|
+
hebrew8: "iso88598",
|
|
7380
|
+
turkish: "iso88599",
|
|
7381
|
+
turkish8: "iso88599",
|
|
7382
|
+
thai: "iso885911",
|
|
7383
|
+
thai8: "iso885911",
|
|
7384
|
+
celtic: "iso885914",
|
|
7385
|
+
celtic8: "iso885914",
|
|
7386
|
+
isoceltic: "iso885914",
|
|
7387
|
+
tis6200: "tis620",
|
|
7388
|
+
tis62025291: "tis620",
|
|
7389
|
+
tis62025330: "tis620",
|
|
7390
|
+
1e4: "macroman",
|
|
7391
|
+
10006: "macgreek",
|
|
7392
|
+
10007: "maccyrillic",
|
|
7393
|
+
10079: "maciceland",
|
|
7394
|
+
10081: "macturkish",
|
|
7395
|
+
cspc8codepage437: "cp437",
|
|
7396
|
+
cspc775baltic: "cp775",
|
|
7397
|
+
cspc850multilingual: "cp850",
|
|
7398
|
+
cspcp852: "cp852",
|
|
7399
|
+
cspc862latinhebrew: "cp862",
|
|
7400
|
+
cpgr: "cp869",
|
|
7401
|
+
msee: "cp1250",
|
|
7402
|
+
mscyrl: "cp1251",
|
|
7403
|
+
msansi: "cp1252",
|
|
7404
|
+
msgreek: "cp1253",
|
|
7405
|
+
msturk: "cp1254",
|
|
7406
|
+
mshebr: "cp1255",
|
|
7407
|
+
msarab: "cp1256",
|
|
7408
|
+
winbaltrim: "cp1257",
|
|
7409
|
+
cp20866: "koi8r",
|
|
7410
|
+
20866: "koi8r",
|
|
7411
|
+
ibm878: "koi8r",
|
|
7412
|
+
cskoi8r: "koi8r",
|
|
7413
|
+
cp21866: "koi8u",
|
|
7414
|
+
21866: "koi8u",
|
|
7415
|
+
ibm1168: "koi8u",
|
|
7416
|
+
strk10482002: "rk1048",
|
|
7417
|
+
tcvn5712: "tcvn",
|
|
7418
|
+
tcvn57121: "tcvn",
|
|
7419
|
+
gb198880: "iso646cn",
|
|
7420
|
+
cn: "iso646cn",
|
|
7421
|
+
csiso14jisc6220ro: "iso646jp",
|
|
7422
|
+
jisc62201969ro: "iso646jp",
|
|
7423
|
+
jp: "iso646jp",
|
|
7424
|
+
cshproman8: "hproman8",
|
|
7425
|
+
r8: "hproman8",
|
|
7426
|
+
roman8: "hproman8",
|
|
7427
|
+
xroman8: "hproman8",
|
|
7428
|
+
ibm1051: "hproman8",
|
|
7429
|
+
mac: "macintosh",
|
|
7430
|
+
csmacintosh: "macintosh"
|
|
7340
7431
|
};
|
|
7341
7432
|
}
|
|
7342
7433
|
});
|
|
7343
7434
|
|
|
7344
|
-
// node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
7435
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/sbcs-data-generated.js
|
|
7345
7436
|
var require_sbcs_data_generated = __commonJS({
|
|
7346
|
-
"node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
7437
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/sbcs-data-generated.js"(exports2, module2) {
|
|
7347
7438
|
"use strict";
|
|
7348
7439
|
module2.exports = {
|
|
7349
7440
|
"437": "cp437",
|
|
@@ -7796,9 +7887,9 @@ var require_sbcs_data_generated = __commonJS({
|
|
|
7796
7887
|
}
|
|
7797
7888
|
});
|
|
7798
7889
|
|
|
7799
|
-
// node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
7890
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/dbcs-codec.js
|
|
7800
7891
|
var require_dbcs_codec = __commonJS({
|
|
7801
|
-
"node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
7892
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/dbcs-codec.js"(exports2) {
|
|
7802
7893
|
"use strict";
|
|
7803
7894
|
var Buffer2 = require_safer().Buffer;
|
|
7804
7895
|
exports2._dbcs = DBCSCodec;
|
|
@@ -7808,21 +7899,25 @@ var require_dbcs_codec = __commonJS({
|
|
|
7808
7899
|
var NODE_START = -1e3;
|
|
7809
7900
|
var UNASSIGNED_NODE = new Array(256);
|
|
7810
7901
|
var DEF_CHAR = -1;
|
|
7811
|
-
for (i = 0; i < 256; i++)
|
|
7902
|
+
for (i = 0; i < 256; i++) {
|
|
7812
7903
|
UNASSIGNED_NODE[i] = UNASSIGNED;
|
|
7904
|
+
}
|
|
7813
7905
|
var i;
|
|
7814
7906
|
function DBCSCodec(codecOptions, iconv) {
|
|
7815
7907
|
this.encodingName = codecOptions.encodingName;
|
|
7816
|
-
if (!codecOptions)
|
|
7908
|
+
if (!codecOptions) {
|
|
7817
7909
|
throw new Error("DBCS codec is called without the data.");
|
|
7818
|
-
|
|
7910
|
+
}
|
|
7911
|
+
if (!codecOptions.table) {
|
|
7819
7912
|
throw new Error("Encoding '" + this.encodingName + "' has no data.");
|
|
7913
|
+
}
|
|
7820
7914
|
var mappingTable = codecOptions.table();
|
|
7821
7915
|
this.decodeTables = [];
|
|
7822
7916
|
this.decodeTables[0] = UNASSIGNED_NODE.slice(0);
|
|
7823
7917
|
this.decodeTableSeq = [];
|
|
7824
|
-
for (var i2 = 0; i2 < mappingTable.length; i2++)
|
|
7918
|
+
for (var i2 = 0; i2 < mappingTable.length; i2++) {
|
|
7825
7919
|
this._addDecodeChunk(mappingTable[i2]);
|
|
7920
|
+
}
|
|
7826
7921
|
if (typeof codecOptions.gb18030 === "function") {
|
|
7827
7922
|
this.gb18030 = codecOptions.gb18030();
|
|
7828
7923
|
var commonThirdByteNodeIdx = this.decodeTables.length;
|
|
@@ -7849,8 +7944,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
7849
7944
|
}
|
|
7850
7945
|
var fourthByteNode = this.decodeTables[NODE_START - thirdByteNode[k]];
|
|
7851
7946
|
for (var l = 48; l <= 57; l++) {
|
|
7852
|
-
if (fourthByteNode[l] === UNASSIGNED)
|
|
7947
|
+
if (fourthByteNode[l] === UNASSIGNED) {
|
|
7853
7948
|
fourthByteNode[l] = GB18030_CODE;
|
|
7949
|
+
}
|
|
7854
7950
|
}
|
|
7855
7951
|
}
|
|
7856
7952
|
}
|
|
@@ -7860,20 +7956,25 @@ var require_dbcs_codec = __commonJS({
|
|
|
7860
7956
|
this.encodeTable = [];
|
|
7861
7957
|
this.encodeTableSeq = [];
|
|
7862
7958
|
var skipEncodeChars = {};
|
|
7863
|
-
if (codecOptions.encodeSkipVals)
|
|
7959
|
+
if (codecOptions.encodeSkipVals) {
|
|
7864
7960
|
for (var i2 = 0; i2 < codecOptions.encodeSkipVals.length; i2++) {
|
|
7865
7961
|
var val = codecOptions.encodeSkipVals[i2];
|
|
7866
|
-
if (typeof val === "number")
|
|
7962
|
+
if (typeof val === "number") {
|
|
7867
7963
|
skipEncodeChars[val] = true;
|
|
7868
|
-
else
|
|
7869
|
-
for (var j = val.from; j <= val.to; j++)
|
|
7964
|
+
} else {
|
|
7965
|
+
for (var j = val.from; j <= val.to; j++) {
|
|
7870
7966
|
skipEncodeChars[j] = true;
|
|
7967
|
+
}
|
|
7968
|
+
}
|
|
7871
7969
|
}
|
|
7970
|
+
}
|
|
7872
7971
|
this._fillEncodeTable(0, 0, skipEncodeChars);
|
|
7873
7972
|
if (codecOptions.encodeAdd) {
|
|
7874
|
-
for (var uChar in codecOptions.encodeAdd)
|
|
7875
|
-
if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar))
|
|
7973
|
+
for (var uChar in codecOptions.encodeAdd) {
|
|
7974
|
+
if (Object.prototype.hasOwnProperty.call(codecOptions.encodeAdd, uChar)) {
|
|
7876
7975
|
this._setEncodeChar(uChar.charCodeAt(0), codecOptions.encodeAdd[uChar]);
|
|
7976
|
+
}
|
|
7977
|
+
}
|
|
7877
7978
|
}
|
|
7878
7979
|
this.defCharSB = this.encodeTable[0][iconv.defaultCharSingleByte.charCodeAt(0)];
|
|
7879
7980
|
if (this.defCharSB === UNASSIGNED) this.defCharSB = this.encodeTable[0]["?"];
|
|
@@ -7883,10 +7984,12 @@ var require_dbcs_codec = __commonJS({
|
|
|
7883
7984
|
DBCSCodec.prototype.decoder = DBCSDecoder;
|
|
7884
7985
|
DBCSCodec.prototype._getDecodeTrieNode = function(addr) {
|
|
7885
7986
|
var bytes = [];
|
|
7886
|
-
for (; addr > 0; addr >>>= 8)
|
|
7987
|
+
for (; addr > 0; addr >>>= 8) {
|
|
7887
7988
|
bytes.push(addr & 255);
|
|
7888
|
-
|
|
7989
|
+
}
|
|
7990
|
+
if (bytes.length == 0) {
|
|
7889
7991
|
bytes.push(0);
|
|
7992
|
+
}
|
|
7890
7993
|
var node = this.decodeTables[0];
|
|
7891
7994
|
for (var i2 = bytes.length - 1; i2 > 0; i2--) {
|
|
7892
7995
|
var val = node[bytes[i2]];
|
|
@@ -7895,8 +7998,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
7895
7998
|
this.decodeTables.push(node = UNASSIGNED_NODE.slice(0));
|
|
7896
7999
|
} else if (val <= NODE_START) {
|
|
7897
8000
|
node = this.decodeTables[NODE_START - val];
|
|
7898
|
-
} else
|
|
8001
|
+
} else {
|
|
7899
8002
|
throw new Error("Overwrite byte in " + this.encodingName + ", addr: " + addr.toString(16));
|
|
8003
|
+
}
|
|
7900
8004
|
}
|
|
7901
8005
|
return node;
|
|
7902
8006
|
};
|
|
@@ -7909,45 +8013,53 @@ var require_dbcs_codec = __commonJS({
|
|
|
7909
8013
|
if (typeof part === "string") {
|
|
7910
8014
|
for (var l = 0; l < part.length; ) {
|
|
7911
8015
|
var code = part.charCodeAt(l++);
|
|
7912
|
-
if (
|
|
8016
|
+
if (code >= 55296 && code < 56320) {
|
|
7913
8017
|
var codeTrail = part.charCodeAt(l++);
|
|
7914
|
-
if (
|
|
8018
|
+
if (codeTrail >= 56320 && codeTrail < 57344) {
|
|
7915
8019
|
writeTable[curAddr++] = 65536 + (code - 55296) * 1024 + (codeTrail - 56320);
|
|
7916
|
-
else
|
|
8020
|
+
} else {
|
|
7917
8021
|
throw new Error("Incorrect surrogate pair in " + this.encodingName + " at chunk " + chunk[0]);
|
|
7918
|
-
|
|
8022
|
+
}
|
|
8023
|
+
} else if (code > 4080 && code <= 4095) {
|
|
7919
8024
|
var len = 4095 - code + 2;
|
|
7920
8025
|
var seq = [];
|
|
7921
|
-
for (var m = 0; m < len; m++)
|
|
8026
|
+
for (var m = 0; m < len; m++) {
|
|
7922
8027
|
seq.push(part.charCodeAt(l++));
|
|
8028
|
+
}
|
|
7923
8029
|
writeTable[curAddr++] = SEQ_START - this.decodeTableSeq.length;
|
|
7924
8030
|
this.decodeTableSeq.push(seq);
|
|
7925
|
-
} else
|
|
8031
|
+
} else {
|
|
7926
8032
|
writeTable[curAddr++] = code;
|
|
8033
|
+
}
|
|
7927
8034
|
}
|
|
7928
8035
|
} else if (typeof part === "number") {
|
|
7929
8036
|
var charCode = writeTable[curAddr - 1] + 1;
|
|
7930
|
-
for (var l = 0; l < part; l++)
|
|
8037
|
+
for (var l = 0; l < part; l++) {
|
|
7931
8038
|
writeTable[curAddr++] = charCode++;
|
|
7932
|
-
|
|
8039
|
+
}
|
|
8040
|
+
} else {
|
|
7933
8041
|
throw new Error("Incorrect type '" + typeof part + "' given in " + this.encodingName + " at chunk " + chunk[0]);
|
|
8042
|
+
}
|
|
7934
8043
|
}
|
|
7935
|
-
if (curAddr > 255)
|
|
8044
|
+
if (curAddr > 255) {
|
|
7936
8045
|
throw new Error("Incorrect chunk in " + this.encodingName + " at addr " + chunk[0] + ": too long" + curAddr);
|
|
8046
|
+
}
|
|
7937
8047
|
};
|
|
7938
8048
|
DBCSCodec.prototype._getEncodeBucket = function(uCode) {
|
|
7939
8049
|
var high = uCode >> 8;
|
|
7940
|
-
if (this.encodeTable[high] === void 0)
|
|
8050
|
+
if (this.encodeTable[high] === void 0) {
|
|
7941
8051
|
this.encodeTable[high] = UNASSIGNED_NODE.slice(0);
|
|
8052
|
+
}
|
|
7942
8053
|
return this.encodeTable[high];
|
|
7943
8054
|
};
|
|
7944
8055
|
DBCSCodec.prototype._setEncodeChar = function(uCode, dbcsCode) {
|
|
7945
8056
|
var bucket = this._getEncodeBucket(uCode);
|
|
7946
8057
|
var low = uCode & 255;
|
|
7947
|
-
if (bucket[low] <= SEQ_START)
|
|
8058
|
+
if (bucket[low] <= SEQ_START) {
|
|
7948
8059
|
this.encodeTableSeq[SEQ_START - bucket[low]][DEF_CHAR] = dbcsCode;
|
|
7949
|
-
else if (bucket[low] == UNASSIGNED)
|
|
8060
|
+
} else if (bucket[low] == UNASSIGNED) {
|
|
7950
8061
|
bucket[low] = dbcsCode;
|
|
8062
|
+
}
|
|
7951
8063
|
};
|
|
7952
8064
|
DBCSCodec.prototype._setEncodeSequence = function(seq, dbcsCode) {
|
|
7953
8065
|
var uCode = seq[0];
|
|
@@ -7964,12 +8076,13 @@ var require_dbcs_codec = __commonJS({
|
|
|
7964
8076
|
}
|
|
7965
8077
|
for (var j = 1; j < seq.length - 1; j++) {
|
|
7966
8078
|
var oldVal = node[uCode];
|
|
7967
|
-
if (typeof oldVal === "object")
|
|
8079
|
+
if (typeof oldVal === "object") {
|
|
7968
8080
|
node = oldVal;
|
|
7969
|
-
else {
|
|
8081
|
+
} else {
|
|
7970
8082
|
node = node[uCode] = {};
|
|
7971
|
-
if (oldVal !== void 0)
|
|
8083
|
+
if (oldVal !== void 0) {
|
|
7972
8084
|
node[DEF_CHAR] = oldVal;
|
|
8085
|
+
}
|
|
7973
8086
|
}
|
|
7974
8087
|
}
|
|
7975
8088
|
uCode = seq[seq.length - 1];
|
|
@@ -7982,8 +8095,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
7982
8095
|
for (var i2 = 0; i2 < 256; i2++) {
|
|
7983
8096
|
var uCode = node[i2];
|
|
7984
8097
|
var mbCode = prefix + i2;
|
|
7985
|
-
if (skipEncodeChars[mbCode])
|
|
8098
|
+
if (skipEncodeChars[mbCode]) {
|
|
7986
8099
|
continue;
|
|
8100
|
+
}
|
|
7987
8101
|
if (uCode >= 0) {
|
|
7988
8102
|
this._setEncodeChar(uCode, mbCode);
|
|
7989
8103
|
hasValues = true;
|
|
@@ -7991,10 +8105,11 @@ var require_dbcs_codec = __commonJS({
|
|
|
7991
8105
|
var subNodeIdx = NODE_START - uCode;
|
|
7992
8106
|
if (!subNodeEmpty[subNodeIdx]) {
|
|
7993
8107
|
var newPrefix = mbCode << 8 >>> 0;
|
|
7994
|
-
if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars))
|
|
8108
|
+
if (this._fillEncodeTable(subNodeIdx, newPrefix, skipEncodeChars)) {
|
|
7995
8109
|
hasValues = true;
|
|
7996
|
-
else
|
|
8110
|
+
} else {
|
|
7997
8111
|
subNodeEmpty[subNodeIdx] = true;
|
|
8112
|
+
}
|
|
7998
8113
|
}
|
|
7999
8114
|
} else if (uCode <= SEQ_START) {
|
|
8000
8115
|
this._setEncodeSequence(this.decodeTableSeq[SEQ_START - uCode], mbCode);
|
|
@@ -8012,7 +8127,12 @@ var require_dbcs_codec = __commonJS({
|
|
|
8012
8127
|
this.gb18030 = codec.gb18030;
|
|
8013
8128
|
}
|
|
8014
8129
|
DBCSEncoder.prototype.write = function(str) {
|
|
8015
|
-
var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3))
|
|
8130
|
+
var newBuf = Buffer2.alloc(str.length * (this.gb18030 ? 4 : 3));
|
|
8131
|
+
var leadSurrogate = this.leadSurrogate;
|
|
8132
|
+
var seqObj = this.seqObj;
|
|
8133
|
+
var nextChar = -1;
|
|
8134
|
+
var i2 = 0;
|
|
8135
|
+
var j = 0;
|
|
8016
8136
|
while (true) {
|
|
8017
8137
|
if (nextChar === -1) {
|
|
8018
8138
|
if (i2 == str.length) break;
|
|
@@ -8021,7 +8141,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
8021
8141
|
var uCode = nextChar;
|
|
8022
8142
|
nextChar = -1;
|
|
8023
8143
|
}
|
|
8024
|
-
if (
|
|
8144
|
+
if (uCode >= 55296 && uCode < 57344) {
|
|
8025
8145
|
if (uCode < 56320) {
|
|
8026
8146
|
if (leadSurrogate === -1) {
|
|
8027
8147
|
leadSurrogate = uCode;
|
|
@@ -8049,7 +8169,7 @@ var require_dbcs_codec = __commonJS({
|
|
|
8049
8169
|
if (typeof resCode === "object") {
|
|
8050
8170
|
seqObj = resCode;
|
|
8051
8171
|
continue;
|
|
8052
|
-
} else if (typeof resCode
|
|
8172
|
+
} else if (typeof resCode === "number") {
|
|
8053
8173
|
dbcsCode = resCode;
|
|
8054
8174
|
} else if (resCode == void 0) {
|
|
8055
8175
|
resCode = seqObj[DEF_CHAR];
|
|
@@ -8062,8 +8182,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
8062
8182
|
seqObj = void 0;
|
|
8063
8183
|
} else if (uCode >= 0) {
|
|
8064
8184
|
var subtable = this.encodeTable[uCode >> 8];
|
|
8065
|
-
if (subtable !== void 0)
|
|
8185
|
+
if (subtable !== void 0) {
|
|
8066
8186
|
dbcsCode = subtable[uCode & 255];
|
|
8187
|
+
}
|
|
8067
8188
|
if (dbcsCode <= SEQ_START) {
|
|
8068
8189
|
seqObj = this.encodeTableSeq[SEQ_START - dbcsCode];
|
|
8069
8190
|
continue;
|
|
@@ -8083,8 +8204,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
8083
8204
|
}
|
|
8084
8205
|
}
|
|
8085
8206
|
}
|
|
8086
|
-
if (dbcsCode === UNASSIGNED)
|
|
8207
|
+
if (dbcsCode === UNASSIGNED) {
|
|
8087
8208
|
dbcsCode = this.defaultCharSingleByte;
|
|
8209
|
+
}
|
|
8088
8210
|
if (dbcsCode < 256) {
|
|
8089
8211
|
newBuf[j++] = dbcsCode;
|
|
8090
8212
|
} else if (dbcsCode < 65536) {
|
|
@@ -8106,9 +8228,11 @@ var require_dbcs_codec = __commonJS({
|
|
|
8106
8228
|
return newBuf.slice(0, j);
|
|
8107
8229
|
};
|
|
8108
8230
|
DBCSEncoder.prototype.end = function() {
|
|
8109
|
-
if (this.leadSurrogate === -1 && this.seqObj === void 0)
|
|
8231
|
+
if (this.leadSurrogate === -1 && this.seqObj === void 0) {
|
|
8110
8232
|
return;
|
|
8111
|
-
|
|
8233
|
+
}
|
|
8234
|
+
var newBuf = Buffer2.alloc(10);
|
|
8235
|
+
var j = 0;
|
|
8112
8236
|
if (this.seqObj) {
|
|
8113
8237
|
var dbcsCode = this.seqObj[DEF_CHAR];
|
|
8114
8238
|
if (dbcsCode !== void 0) {
|
|
@@ -8138,7 +8262,12 @@ var require_dbcs_codec = __commonJS({
|
|
|
8138
8262
|
this.gb18030 = codec.gb18030;
|
|
8139
8263
|
}
|
|
8140
8264
|
DBCSDecoder.prototype.write = function(buf) {
|
|
8141
|
-
var newBuf = Buffer2.alloc(buf.length * 2)
|
|
8265
|
+
var newBuf = Buffer2.alloc(buf.length * 2);
|
|
8266
|
+
var nodeIdx = this.nodeIdx;
|
|
8267
|
+
var prevBytes = this.prevBytes;
|
|
8268
|
+
var prevOffset = this.prevBytes.length;
|
|
8269
|
+
var seqStart = -this.prevBytes.length;
|
|
8270
|
+
var uCode;
|
|
8142
8271
|
for (var i2 = 0, j = 0; i2 < buf.length; i2++) {
|
|
8143
8272
|
var curByte = i2 >= 0 ? buf[i2] : prevBytes[i2 + prevOffset];
|
|
8144
8273
|
var uCode = this.decodeTables[nodeIdx][curByte];
|
|
@@ -8165,8 +8294,9 @@ var require_dbcs_codec = __commonJS({
|
|
|
8165
8294
|
newBuf[j++] = uCode >> 8;
|
|
8166
8295
|
}
|
|
8167
8296
|
uCode = seq[seq.length - 1];
|
|
8168
|
-
} else
|
|
8297
|
+
} else {
|
|
8169
8298
|
throw new Error("iconv-lite internal error: invalid decoding table value " + uCode + " at " + nodeIdx + "/" + curByte);
|
|
8299
|
+
}
|
|
8170
8300
|
if (uCode >= 65536) {
|
|
8171
8301
|
uCode -= 65536;
|
|
8172
8302
|
var uCodeLead = 55296 | uCode >> 10;
|
|
@@ -8190,32 +8320,36 @@ var require_dbcs_codec = __commonJS({
|
|
|
8190
8320
|
var bytesArr = this.prevBytes.slice(1);
|
|
8191
8321
|
this.prevBytes = [];
|
|
8192
8322
|
this.nodeIdx = 0;
|
|
8193
|
-
if (bytesArr.length > 0)
|
|
8323
|
+
if (bytesArr.length > 0) {
|
|
8194
8324
|
ret += this.write(bytesArr);
|
|
8325
|
+
}
|
|
8195
8326
|
}
|
|
8196
8327
|
this.prevBytes = [];
|
|
8197
8328
|
this.nodeIdx = 0;
|
|
8198
8329
|
return ret;
|
|
8199
8330
|
};
|
|
8200
8331
|
function findIdx(table, val) {
|
|
8201
|
-
if (table[0] > val)
|
|
8332
|
+
if (table[0] > val) {
|
|
8202
8333
|
return -1;
|
|
8203
|
-
|
|
8334
|
+
}
|
|
8335
|
+
var l = 0;
|
|
8336
|
+
var r = table.length;
|
|
8204
8337
|
while (l < r - 1) {
|
|
8205
8338
|
var mid = l + (r - l + 1 >> 1);
|
|
8206
|
-
if (table[mid] <= val)
|
|
8339
|
+
if (table[mid] <= val) {
|
|
8207
8340
|
l = mid;
|
|
8208
|
-
else
|
|
8341
|
+
} else {
|
|
8209
8342
|
r = mid;
|
|
8343
|
+
}
|
|
8210
8344
|
}
|
|
8211
8345
|
return l;
|
|
8212
8346
|
}
|
|
8213
8347
|
}
|
|
8214
8348
|
});
|
|
8215
8349
|
|
|
8216
|
-
// node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
8350
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/shiftjis.json
|
|
8217
8351
|
var require_shiftjis = __commonJS({
|
|
8218
|
-
"node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
8352
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/shiftjis.json"(exports2, module2) {
|
|
8219
8353
|
module2.exports = [
|
|
8220
8354
|
["0", "\0", 128],
|
|
8221
8355
|
["a1", "\uFF61", 62],
|
|
@@ -8344,9 +8478,9 @@ var require_shiftjis = __commonJS({
|
|
|
8344
8478
|
}
|
|
8345
8479
|
});
|
|
8346
8480
|
|
|
8347
|
-
// node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
8481
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/eucjp.json
|
|
8348
8482
|
var require_eucjp = __commonJS({
|
|
8349
|
-
"node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
8483
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/eucjp.json"(exports2, module2) {
|
|
8350
8484
|
module2.exports = [
|
|
8351
8485
|
["0", "\0", 127],
|
|
8352
8486
|
["8ea1", "\uFF61", 62],
|
|
@@ -8532,9 +8666,9 @@ var require_eucjp = __commonJS({
|
|
|
8532
8666
|
}
|
|
8533
8667
|
});
|
|
8534
8668
|
|
|
8535
|
-
// node_modules/iconv-lite/encodings/tables/cp936.json
|
|
8669
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/cp936.json
|
|
8536
8670
|
var require_cp936 = __commonJS({
|
|
8537
|
-
"node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
8671
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/cp936.json"(exports2, module2) {
|
|
8538
8672
|
module2.exports = [
|
|
8539
8673
|
["0", "\0", 127, "\u20AC"],
|
|
8540
8674
|
["8140", "\u4E02\u4E04\u4E05\u4E06\u4E0F\u4E12\u4E17\u4E1F\u4E20\u4E21\u4E23\u4E26\u4E29\u4E2E\u4E2F\u4E31\u4E33\u4E35\u4E37\u4E3C\u4E40\u4E41\u4E42\u4E44\u4E46\u4E4A\u4E51\u4E55\u4E57\u4E5A\u4E5B\u4E62\u4E63\u4E64\u4E65\u4E67\u4E68\u4E6A", 5, "\u4E72\u4E74", 9, "\u4E7F", 6, "\u4E87\u4E8A"],
|
|
@@ -8802,9 +8936,9 @@ var require_cp936 = __commonJS({
|
|
|
8802
8936
|
}
|
|
8803
8937
|
});
|
|
8804
8938
|
|
|
8805
|
-
// node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
8939
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/gbk-added.json
|
|
8806
8940
|
var require_gbk_added = __commonJS({
|
|
8807
|
-
"node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
8941
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/gbk-added.json"(exports2, module2) {
|
|
8808
8942
|
module2.exports = [
|
|
8809
8943
|
["a140", "\uE4C6", 62],
|
|
8810
8944
|
["a180", "\uE505", 32],
|
|
@@ -8864,16 +8998,16 @@ var require_gbk_added = __commonJS({
|
|
|
8864
8998
|
}
|
|
8865
8999
|
});
|
|
8866
9000
|
|
|
8867
|
-
// node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
9001
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json
|
|
8868
9002
|
var require_gb18030_ranges = __commonJS({
|
|
8869
|
-
"node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
9003
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/gb18030-ranges.json"(exports2, module2) {
|
|
8870
9004
|
module2.exports = { uChars: [128, 165, 169, 178, 184, 216, 226, 235, 238, 244, 248, 251, 253, 258, 276, 284, 300, 325, 329, 334, 364, 463, 465, 467, 469, 471, 473, 475, 477, 506, 594, 610, 712, 716, 730, 930, 938, 962, 970, 1026, 1104, 1106, 8209, 8215, 8218, 8222, 8231, 8241, 8244, 8246, 8252, 8365, 8452, 8454, 8458, 8471, 8482, 8556, 8570, 8596, 8602, 8713, 8720, 8722, 8726, 8731, 8737, 8740, 8742, 8748, 8751, 8760, 8766, 8777, 8781, 8787, 8802, 8808, 8816, 8854, 8858, 8870, 8896, 8979, 9322, 9372, 9548, 9588, 9616, 9622, 9634, 9652, 9662, 9672, 9676, 9680, 9702, 9735, 9738, 9793, 9795, 11906, 11909, 11913, 11917, 11928, 11944, 11947, 11951, 11956, 11960, 11964, 11979, 12284, 12292, 12312, 12319, 12330, 12351, 12436, 12447, 12535, 12543, 12586, 12842, 12850, 12964, 13200, 13215, 13218, 13253, 13263, 13267, 13270, 13384, 13428, 13727, 13839, 13851, 14617, 14703, 14801, 14816, 14964, 15183, 15471, 15585, 16471, 16736, 17208, 17325, 17330, 17374, 17623, 17997, 18018, 18212, 18218, 18301, 18318, 18760, 18811, 18814, 18820, 18823, 18844, 18848, 18872, 19576, 19620, 19738, 19887, 40870, 59244, 59336, 59367, 59413, 59417, 59423, 59431, 59437, 59443, 59452, 59460, 59478, 59493, 63789, 63866, 63894, 63976, 63986, 64016, 64018, 64021, 64025, 64034, 64037, 64042, 65074, 65093, 65107, 65112, 65127, 65132, 65375, 65510, 65536], gbChars: [0, 36, 38, 45, 50, 81, 89, 95, 96, 100, 103, 104, 105, 109, 126, 133, 148, 172, 175, 179, 208, 306, 307, 308, 309, 310, 311, 312, 313, 341, 428, 443, 544, 545, 558, 741, 742, 749, 750, 805, 819, 820, 7922, 7924, 7925, 7927, 7934, 7943, 7944, 7945, 7950, 8062, 8148, 8149, 8152, 8164, 8174, 8236, 8240, 8262, 8264, 8374, 8380, 8381, 8384, 8388, 8390, 8392, 8393, 8394, 8396, 8401, 8406, 8416, 8419, 8424, 8437, 8439, 8445, 8482, 8485, 8496, 8521, 8603, 8936, 8946, 9046, 9050, 9063, 9066, 9076, 9092, 9100, 9108, 9111, 9113, 9131, 9162, 9164, 9218, 9219, 11329, 11331, 11334, 11336, 11346, 11361, 11363, 11366, 11370, 11372, 11375, 11389, 11682, 11686, 11687, 11692, 11694, 11714, 11716, 11723, 11725, 11730, 11736, 11982, 11989, 12102, 12336, 12348, 12350, 12384, 12393, 12395, 12397, 12510, 12553, 12851, 12962, 12973, 13738, 13823, 13919, 13933, 14080, 14298, 14585, 14698, 15583, 15847, 16318, 16434, 16438, 16481, 16729, 17102, 17122, 17315, 17320, 17402, 17418, 17859, 17909, 17911, 17915, 17916, 17936, 17939, 17961, 18664, 18703, 18814, 18962, 19043, 33469, 33470, 33471, 33484, 33485, 33490, 33497, 33501, 33505, 33513, 33520, 33536, 33550, 37845, 37921, 37948, 38029, 38038, 38064, 38065, 38066, 38069, 38075, 38076, 38078, 39108, 39109, 39113, 39114, 39115, 39116, 39265, 39394, 189e3] };
|
|
8871
9005
|
}
|
|
8872
9006
|
});
|
|
8873
9007
|
|
|
8874
|
-
// node_modules/iconv-lite/encodings/tables/cp949.json
|
|
9008
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/cp949.json
|
|
8875
9009
|
var require_cp949 = __commonJS({
|
|
8876
|
-
"node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
9010
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/cp949.json"(exports2, module2) {
|
|
8877
9011
|
module2.exports = [
|
|
8878
9012
|
["0", "\0", 127],
|
|
8879
9013
|
["8141", "\uAC02\uAC03\uAC05\uAC06\uAC0B", 4, "\uAC18\uAC1E\uAC1F\uAC21\uAC22\uAC23\uAC25", 6, "\uAC2E\uAC32\uAC33\uAC34"],
|
|
@@ -9150,9 +9284,9 @@ var require_cp949 = __commonJS({
|
|
|
9150
9284
|
}
|
|
9151
9285
|
});
|
|
9152
9286
|
|
|
9153
|
-
// node_modules/iconv-lite/encodings/tables/cp950.json
|
|
9287
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/cp950.json
|
|
9154
9288
|
var require_cp950 = __commonJS({
|
|
9155
|
-
"node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
9289
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/cp950.json"(exports2, module2) {
|
|
9156
9290
|
module2.exports = [
|
|
9157
9291
|
["0", "\0", 127],
|
|
9158
9292
|
["a140", "\u3000\uFF0C\u3001\u3002\uFF0E\u2027\uFF1B\uFF1A\uFF1F\uFF01\uFE30\u2026\u2025\uFE50\uFE51\uFE52\xB7\uFE54\uFE55\uFE56\uFE57\uFF5C\u2013\uFE31\u2014\uFE33\u2574\uFE34\uFE4F\uFF08\uFF09\uFE35\uFE36\uFF5B\uFF5D\uFE37\uFE38\u3014\u3015\uFE39\uFE3A\u3010\u3011\uFE3B\uFE3C\u300A\u300B\uFE3D\uFE3E\u3008\u3009\uFE3F\uFE40\u300C\u300D\uFE41\uFE42\u300E\u300F\uFE43\uFE44\uFE59\uFE5A"],
|
|
@@ -9333,9 +9467,9 @@ var require_cp950 = __commonJS({
|
|
|
9333
9467
|
}
|
|
9334
9468
|
});
|
|
9335
9469
|
|
|
9336
|
-
// node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
9470
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/tables/big5-added.json
|
|
9337
9471
|
var require_big5_added = __commonJS({
|
|
9338
|
-
"node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
9472
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/tables/big5-added.json"(exports2, module2) {
|
|
9339
9473
|
module2.exports = [
|
|
9340
9474
|
["8740", "\u43F0\u4C32\u4603\u45A6\u4578\u{27267}\u4D77\u45B3\u{27CB1}\u4CE2\u{27CC5}\u3B95\u4736\u4744\u4C47\u4C40\u{242BF}\u{23617}\u{27352}\u{26E8B}\u{270D2}\u4C57\u{2A351}\u474F\u45DA\u4C85\u{27C6C}\u4D07\u4AA4\u46A1\u{26B23}\u7225\u{25A54}\u{21A63}\u{23E06}\u{23F61}\u664D\u56FB"],
|
|
9341
9475
|
["8767", "\u7D95\u591D\u{28BB9}\u3DF4\u9734\u{27BEF}\u5BDB\u{21D5E}\u5AA4\u3625\u{29EB0}\u5AD1\u5BB7\u5CFC\u676E\u8593\u{29945}\u7461\u749D\u3875\u{21D53}\u{2369E}\u{26021}\u3EEC"],
|
|
@@ -9461,15 +9595,15 @@ var require_big5_added = __commonJS({
|
|
|
9461
9595
|
}
|
|
9462
9596
|
});
|
|
9463
9597
|
|
|
9464
|
-
// node_modules/iconv-lite/encodings/dbcs-data.js
|
|
9598
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/dbcs-data.js
|
|
9465
9599
|
var require_dbcs_data = __commonJS({
|
|
9466
|
-
"node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
9600
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/dbcs-data.js"(exports2, module2) {
|
|
9467
9601
|
"use strict";
|
|
9468
9602
|
module2.exports = {
|
|
9469
9603
|
// == Japanese/ShiftJIS ====================================================
|
|
9470
9604
|
// All japanese encodings are based on JIS X set of standards:
|
|
9471
9605
|
// JIS X 0201 - Single-byte encoding of ASCII + ¥ + Kana chars at 0xA1-0xDF.
|
|
9472
|
-
// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
|
|
9606
|
+
// JIS X 0208 - Main set of 6879 characters, placed in 94x94 plane, to be encoded by 2 bytes.
|
|
9473
9607
|
// Has several variations in 1978, 1983, 1990 and 1997.
|
|
9474
9608
|
// JIS X 0212 - Supplementary plane of 6067 chars in 94x94 plane. 1990. Effectively dead.
|
|
9475
9609
|
// JIS X 0213 - Extension and modern replacement of 0208 and 0212. Total chars: 11233.
|
|
@@ -9486,7 +9620,7 @@ var require_dbcs_data = __commonJS({
|
|
|
9486
9620
|
// 0x8F, (0xA1-0xFE)x2 - 0212 plane (94x94).
|
|
9487
9621
|
// * JIS X 208: 7-bit, direct encoding of 0208. Byte ranges: 0x21-0x7E (94 values). Uncommon.
|
|
9488
9622
|
// Used as-is in ISO2022 family.
|
|
9489
|
-
// * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
|
|
9623
|
+
// * ISO2022-JP: Stateful encoding, with escape sequences to switch between ASCII,
|
|
9490
9624
|
// 0201-1976 Roman, 0208-1978, 0208-1983.
|
|
9491
9625
|
// * ISO2022-JP-1: Adds esc seq for 0212-1990.
|
|
9492
9626
|
// * ISO2022-JP-2: Adds esc seq for GB2313-1980, KSX1001-1992, ISO8859-1, ISO8859-7.
|
|
@@ -9496,7 +9630,7 @@ var require_dbcs_data = __commonJS({
|
|
|
9496
9630
|
// After JIS X 0213 appeared, Shift_JIS-2004, EUC-JISX0213 and ISO2022-JP-2004 followed, with just changing the planes.
|
|
9497
9631
|
//
|
|
9498
9632
|
// Overall, it seems that it's a mess :( http://www8.plala.or.jp/tkubota1/unicode-symbols-map2.html
|
|
9499
|
-
|
|
9633
|
+
shiftjis: {
|
|
9500
9634
|
type: "_dbcs",
|
|
9501
9635
|
table: function() {
|
|
9502
9636
|
return require_shiftjis();
|
|
@@ -9504,17 +9638,17 @@ var require_dbcs_data = __commonJS({
|
|
|
9504
9638
|
encodeAdd: { "\xA5": 92, "\u203E": 126 },
|
|
9505
9639
|
encodeSkipVals: [{ from: 60736, to: 63808 }]
|
|
9506
9640
|
},
|
|
9507
|
-
|
|
9508
|
-
|
|
9509
|
-
|
|
9510
|
-
|
|
9511
|
-
|
|
9512
|
-
|
|
9513
|
-
|
|
9514
|
-
|
|
9515
|
-
|
|
9516
|
-
|
|
9517
|
-
|
|
9641
|
+
csshiftjis: "shiftjis",
|
|
9642
|
+
mskanji: "shiftjis",
|
|
9643
|
+
sjis: "shiftjis",
|
|
9644
|
+
windows31j: "shiftjis",
|
|
9645
|
+
ms31j: "shiftjis",
|
|
9646
|
+
xsjis: "shiftjis",
|
|
9647
|
+
windows932: "shiftjis",
|
|
9648
|
+
ms932: "shiftjis",
|
|
9649
|
+
932: "shiftjis",
|
|
9650
|
+
cp932: "shiftjis",
|
|
9651
|
+
eucjp: {
|
|
9518
9652
|
type: "_dbcs",
|
|
9519
9653
|
table: function() {
|
|
9520
9654
|
return require_eucjp();
|
|
@@ -9528,37 +9662,37 @@ var require_dbcs_data = __commonJS({
|
|
|
9528
9662
|
// http://en.wikipedia.org/wiki/GBK
|
|
9529
9663
|
// We mostly implement W3C recommendation: https://www.w3.org/TR/encoding/#gbk-encoder
|
|
9530
9664
|
// Oldest GB2312 (1981, ~7600 chars) is a subset of CP936
|
|
9531
|
-
|
|
9532
|
-
|
|
9533
|
-
|
|
9534
|
-
|
|
9535
|
-
|
|
9536
|
-
|
|
9665
|
+
gb2312: "cp936",
|
|
9666
|
+
gb231280: "cp936",
|
|
9667
|
+
gb23121980: "cp936",
|
|
9668
|
+
csgb2312: "cp936",
|
|
9669
|
+
csiso58gb231280: "cp936",
|
|
9670
|
+
euccn: "cp936",
|
|
9537
9671
|
// Microsoft's CP936 is a subset and approximation of GBK.
|
|
9538
|
-
|
|
9539
|
-
|
|
9540
|
-
|
|
9541
|
-
|
|
9672
|
+
windows936: "cp936",
|
|
9673
|
+
ms936: "cp936",
|
|
9674
|
+
936: "cp936",
|
|
9675
|
+
cp936: {
|
|
9542
9676
|
type: "_dbcs",
|
|
9543
9677
|
table: function() {
|
|
9544
9678
|
return require_cp936();
|
|
9545
9679
|
}
|
|
9546
9680
|
},
|
|
9547
9681
|
// GBK (~22000 chars) is an extension of CP936 that added user-mapped chars and some other.
|
|
9548
|
-
|
|
9682
|
+
gbk: {
|
|
9549
9683
|
type: "_dbcs",
|
|
9550
9684
|
table: function() {
|
|
9551
9685
|
return require_cp936().concat(require_gbk_added());
|
|
9552
9686
|
}
|
|
9553
9687
|
},
|
|
9554
|
-
|
|
9555
|
-
|
|
9688
|
+
xgbk: "gbk",
|
|
9689
|
+
isoir58: "gbk",
|
|
9556
9690
|
// GB18030 is an algorithmic extension of GBK.
|
|
9557
9691
|
// Main source: https://www.w3.org/TR/encoding/#gbk-encoder
|
|
9558
9692
|
// http://icu-project.org/docs/papers/gb18030.html
|
|
9559
9693
|
// http://source.icu-project.org/repos/icu/data/trunk/charset/data/xml/gb-18030-2000.xml
|
|
9560
9694
|
// http://www.khngai.com/chinese/charmap/tblgbk.php?page=0
|
|
9561
|
-
|
|
9695
|
+
gb18030: {
|
|
9562
9696
|
type: "_dbcs",
|
|
9563
9697
|
table: function() {
|
|
9564
9698
|
return require_cp936().concat(require_gbk_added());
|
|
@@ -9569,26 +9703,26 @@ var require_dbcs_data = __commonJS({
|
|
|
9569
9703
|
encodeSkipVals: [128],
|
|
9570
9704
|
encodeAdd: { "\u20AC": 41699 }
|
|
9571
9705
|
},
|
|
9572
|
-
|
|
9706
|
+
chinese: "gb18030",
|
|
9573
9707
|
// == Korean ===============================================================
|
|
9574
9708
|
// EUC-KR, KS_C_5601 and KS X 1001 are exactly the same.
|
|
9575
|
-
|
|
9576
|
-
|
|
9577
|
-
|
|
9578
|
-
|
|
9709
|
+
windows949: "cp949",
|
|
9710
|
+
ms949: "cp949",
|
|
9711
|
+
949: "cp949",
|
|
9712
|
+
cp949: {
|
|
9579
9713
|
type: "_dbcs",
|
|
9580
9714
|
table: function() {
|
|
9581
9715
|
return require_cp949();
|
|
9582
9716
|
}
|
|
9583
9717
|
},
|
|
9584
|
-
|
|
9585
|
-
|
|
9586
|
-
|
|
9587
|
-
|
|
9588
|
-
|
|
9589
|
-
|
|
9590
|
-
|
|
9591
|
-
|
|
9718
|
+
cseuckr: "cp949",
|
|
9719
|
+
csksc56011987: "cp949",
|
|
9720
|
+
euckr: "cp949",
|
|
9721
|
+
isoir149: "cp949",
|
|
9722
|
+
korean: "cp949",
|
|
9723
|
+
ksc56011987: "cp949",
|
|
9724
|
+
ksc56011989: "cp949",
|
|
9725
|
+
ksc5601: "cp949",
|
|
9592
9726
|
// == Big5/Taiwan/Hong Kong ================================================
|
|
9593
9727
|
// There are lots of tables for Big5 and cp950. Please see the following links for history:
|
|
9594
9728
|
// http://moztw.org/docs/big5/ http://www.haible.de/bruno/charsets/conversion-tables/Big5.html
|
|
@@ -9597,7 +9731,7 @@ var require_dbcs_data = __commonJS({
|
|
|
9597
9731
|
// * Windows CP 951: Microsoft variant of Big5-HKSCS-2001. Seems to be never public. http://me.abelcheung.org/articles/research/what-is-cp951/
|
|
9598
9732
|
// * Big5-2003 (Taiwan standard) almost superset of cp950.
|
|
9599
9733
|
// * Unicode-at-on (UAO) / Mozilla 1.8. Falling out of use on the Web. Not supported by other browsers.
|
|
9600
|
-
// * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
|
|
9734
|
+
// * Big5-HKSCS (-2001, -2004, -2008). Hong Kong standard.
|
|
9601
9735
|
// many unicode code points moved from PUA to Supplementary plane (U+2XXXX) over the years.
|
|
9602
9736
|
// Plus, it has 4 combining sequences.
|
|
9603
9737
|
// Seems that Mozilla refused to support it for 10 yrs. https://bugzilla.mozilla.org/show_bug.cgi?id=162431 https://bugzilla.mozilla.org/show_bug.cgi?id=310299
|
|
@@ -9608,21 +9742,21 @@ var require_dbcs_data = __commonJS({
|
|
|
9608
9742
|
// In the encoder, it might make sense to support encoding old PUA mappings to Big5 bytes seq-s.
|
|
9609
9743
|
// Official spec: http://www.ogcio.gov.hk/en/business/tech_promotion/ccli/terms/doc/2003cmp_2008.txt
|
|
9610
9744
|
// http://www.ogcio.gov.hk/tc/business/tech_promotion/ccli/terms/doc/hkscs-2008-big5-iso.txt
|
|
9611
|
-
//
|
|
9745
|
+
//
|
|
9612
9746
|
// Current understanding of how to deal with Big5(-HKSCS) is in the Encoding Standard, http://encoding.spec.whatwg.org/#big5-encoder
|
|
9613
9747
|
// Unicode mapping (http://www.unicode.org/Public/MAPPINGS/OBSOLETE/EASTASIA/OTHER/BIG5.TXT) is said to be wrong.
|
|
9614
|
-
|
|
9615
|
-
|
|
9616
|
-
|
|
9617
|
-
|
|
9748
|
+
windows950: "cp950",
|
|
9749
|
+
ms950: "cp950",
|
|
9750
|
+
950: "cp950",
|
|
9751
|
+
cp950: {
|
|
9618
9752
|
type: "_dbcs",
|
|
9619
9753
|
table: function() {
|
|
9620
9754
|
return require_cp950();
|
|
9621
9755
|
}
|
|
9622
9756
|
},
|
|
9623
9757
|
// Big5 has many variations and is an extension of cp950. We use Encoding Standard's as a consensus.
|
|
9624
|
-
|
|
9625
|
-
|
|
9758
|
+
big5: "big5hkscs",
|
|
9759
|
+
big5hkscs: {
|
|
9626
9760
|
type: "_dbcs",
|
|
9627
9761
|
table: function() {
|
|
9628
9762
|
return require_cp950().concat(require_big5_added());
|
|
@@ -9701,17 +9835,18 @@ var require_dbcs_data = __commonJS({
|
|
|
9701
9835
|
41678
|
|
9702
9836
|
]
|
|
9703
9837
|
},
|
|
9704
|
-
|
|
9705
|
-
|
|
9706
|
-
|
|
9838
|
+
cnbig5: "big5hkscs",
|
|
9839
|
+
csbig5: "big5hkscs",
|
|
9840
|
+
xxbig5: "big5hkscs"
|
|
9707
9841
|
};
|
|
9708
9842
|
}
|
|
9709
9843
|
});
|
|
9710
9844
|
|
|
9711
|
-
// node_modules/iconv-lite/encodings/index.js
|
|
9845
|
+
// node_modules/mysql2/node_modules/iconv-lite/encodings/index.js
|
|
9712
9846
|
var require_encodings = __commonJS({
|
|
9713
|
-
"node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
9847
|
+
"node_modules/mysql2/node_modules/iconv-lite/encodings/index.js"(exports2, module2) {
|
|
9714
9848
|
"use strict";
|
|
9849
|
+
var mergeModules = require_merge_exports();
|
|
9715
9850
|
var modules = [
|
|
9716
9851
|
require_internal(),
|
|
9717
9852
|
require_utf32(),
|
|
@@ -9725,23 +9860,20 @@ var require_encodings = __commonJS({
|
|
|
9725
9860
|
];
|
|
9726
9861
|
for (i = 0; i < modules.length; i++) {
|
|
9727
9862
|
module2 = modules[i];
|
|
9728
|
-
|
|
9729
|
-
if (Object.prototype.hasOwnProperty.call(module2, enc))
|
|
9730
|
-
exports2[enc] = module2[enc];
|
|
9863
|
+
mergeModules(exports2, module2);
|
|
9731
9864
|
}
|
|
9732
9865
|
var module2;
|
|
9733
|
-
var enc;
|
|
9734
9866
|
var i;
|
|
9735
9867
|
}
|
|
9736
9868
|
});
|
|
9737
9869
|
|
|
9738
|
-
// node_modules/iconv-lite/lib/streams.js
|
|
9870
|
+
// node_modules/mysql2/node_modules/iconv-lite/lib/streams.js
|
|
9739
9871
|
var require_streams = __commonJS({
|
|
9740
|
-
"node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
9872
|
+
"node_modules/mysql2/node_modules/iconv-lite/lib/streams.js"(exports2, module2) {
|
|
9741
9873
|
"use strict";
|
|
9742
9874
|
var Buffer2 = require_safer().Buffer;
|
|
9743
|
-
module2.exports = function(
|
|
9744
|
-
var Transform =
|
|
9875
|
+
module2.exports = function(streamModule) {
|
|
9876
|
+
var Transform = streamModule.Transform;
|
|
9745
9877
|
function IconvLiteEncoderStream(conv, options) {
|
|
9746
9878
|
this.conv = conv;
|
|
9747
9879
|
options = options || {};
|
|
@@ -9752,8 +9884,9 @@ var require_streams = __commonJS({
|
|
|
9752
9884
|
constructor: { value: IconvLiteEncoderStream }
|
|
9753
9885
|
});
|
|
9754
9886
|
IconvLiteEncoderStream.prototype._transform = function(chunk, encoding, done) {
|
|
9755
|
-
if (typeof chunk
|
|
9887
|
+
if (typeof chunk !== "string") {
|
|
9756
9888
|
return done(new Error("Iconv encoding stream needs strings as its input."));
|
|
9889
|
+
}
|
|
9757
9890
|
try {
|
|
9758
9891
|
var res = this.conv.write(chunk);
|
|
9759
9892
|
if (res && res.length) this.push(res);
|
|
@@ -9792,8 +9925,9 @@ var require_streams = __commonJS({
|
|
|
9792
9925
|
constructor: { value: IconvLiteDecoderStream }
|
|
9793
9926
|
});
|
|
9794
9927
|
IconvLiteDecoderStream.prototype._transform = function(chunk, encoding, done) {
|
|
9795
|
-
if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array))
|
|
9928
|
+
if (!Buffer2.isBuffer(chunk) && !(chunk instanceof Uint8Array)) {
|
|
9796
9929
|
return done(new Error("Iconv decoding stream needs buffers as its input."));
|
|
9930
|
+
}
|
|
9797
9931
|
try {
|
|
9798
9932
|
var res = this.conv.write(chunk);
|
|
9799
9933
|
if (res && res.length) this.push(res, this.encoding);
|
|
@@ -9830,12 +9964,13 @@ var require_streams = __commonJS({
|
|
|
9830
9964
|
}
|
|
9831
9965
|
});
|
|
9832
9966
|
|
|
9833
|
-
// node_modules/iconv-lite/lib/index.js
|
|
9967
|
+
// node_modules/mysql2/node_modules/iconv-lite/lib/index.js
|
|
9834
9968
|
var require_lib2 = __commonJS({
|
|
9835
|
-
"node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
9969
|
+
"node_modules/mysql2/node_modules/iconv-lite/lib/index.js"(exports2, module2) {
|
|
9836
9970
|
"use strict";
|
|
9837
9971
|
var Buffer2 = require_safer().Buffer;
|
|
9838
9972
|
var bomHandling = require_bom_handling();
|
|
9973
|
+
var mergeModules = require_merge_exports();
|
|
9839
9974
|
var iconv = module2.exports;
|
|
9840
9975
|
iconv.encodings = null;
|
|
9841
9976
|
iconv.defaultCharUnicode = "\uFFFD";
|
|
@@ -9870,31 +10005,38 @@ var require_lib2 = __commonJS({
|
|
|
9870
10005
|
};
|
|
9871
10006
|
iconv.toEncoding = iconv.encode;
|
|
9872
10007
|
iconv.fromEncoding = iconv.decode;
|
|
9873
|
-
iconv._codecDataCache = {};
|
|
10008
|
+
iconv._codecDataCache = { __proto__: null };
|
|
9874
10009
|
iconv.getCodec = function getCodec(encoding) {
|
|
9875
|
-
if (!iconv.encodings)
|
|
9876
|
-
|
|
10010
|
+
if (!iconv.encodings) {
|
|
10011
|
+
var raw = require_encodings();
|
|
10012
|
+
iconv.encodings = { __proto__: null };
|
|
10013
|
+
mergeModules(iconv.encodings, raw);
|
|
10014
|
+
}
|
|
9877
10015
|
var enc = iconv._canonicalizeEncoding(encoding);
|
|
9878
10016
|
var codecOptions = {};
|
|
9879
10017
|
while (true) {
|
|
9880
10018
|
var codec = iconv._codecDataCache[enc];
|
|
9881
|
-
if (codec)
|
|
10019
|
+
if (codec) {
|
|
9882
10020
|
return codec;
|
|
10021
|
+
}
|
|
9883
10022
|
var codecDef = iconv.encodings[enc];
|
|
9884
10023
|
switch (typeof codecDef) {
|
|
9885
10024
|
case "string":
|
|
9886
10025
|
enc = codecDef;
|
|
9887
10026
|
break;
|
|
9888
10027
|
case "object":
|
|
9889
|
-
for (var key in codecDef)
|
|
10028
|
+
for (var key in codecDef) {
|
|
9890
10029
|
codecOptions[key] = codecDef[key];
|
|
9891
|
-
|
|
10030
|
+
}
|
|
10031
|
+
if (!codecOptions.encodingName) {
|
|
9892
10032
|
codecOptions.encodingName = enc;
|
|
10033
|
+
}
|
|
9893
10034
|
enc = codecDef.type;
|
|
9894
10035
|
break;
|
|
9895
10036
|
case "function":
|
|
9896
|
-
if (!codecOptions.encodingName)
|
|
10037
|
+
if (!codecOptions.encodingName) {
|
|
9897
10038
|
codecOptions.encodingName = enc;
|
|
10039
|
+
}
|
|
9898
10040
|
codec = new codecDef(codecOptions, iconv);
|
|
9899
10041
|
iconv._codecDataCache[codecOptions.encodingName] = codec;
|
|
9900
10042
|
return codec;
|
|
@@ -9907,21 +10049,26 @@ var require_lib2 = __commonJS({
|
|
|
9907
10049
|
return ("" + encoding).toLowerCase().replace(/:\d{4}$|[^0-9a-z]/g, "");
|
|
9908
10050
|
};
|
|
9909
10051
|
iconv.getEncoder = function getEncoder(encoding, options) {
|
|
9910
|
-
var codec = iconv.getCodec(encoding)
|
|
9911
|
-
|
|
10052
|
+
var codec = iconv.getCodec(encoding);
|
|
10053
|
+
var encoder = new codec.encoder(options, codec);
|
|
10054
|
+
if (codec.bomAware && options && options.addBOM) {
|
|
9912
10055
|
encoder = new bomHandling.PrependBOM(encoder, options);
|
|
10056
|
+
}
|
|
9913
10057
|
return encoder;
|
|
9914
10058
|
};
|
|
9915
10059
|
iconv.getDecoder = function getDecoder(encoding, options) {
|
|
9916
|
-
var codec = iconv.getCodec(encoding)
|
|
9917
|
-
|
|
10060
|
+
var codec = iconv.getCodec(encoding);
|
|
10061
|
+
var decoder = new codec.decoder(options, codec);
|
|
10062
|
+
if (codec.bomAware && !(options && options.stripBOM === false)) {
|
|
9918
10063
|
decoder = new bomHandling.StripBOM(decoder, options);
|
|
10064
|
+
}
|
|
9919
10065
|
return decoder;
|
|
9920
10066
|
};
|
|
9921
|
-
iconv.enableStreamingAPI = function enableStreamingAPI(
|
|
9922
|
-
if (iconv.supportsStreams)
|
|
10067
|
+
iconv.enableStreamingAPI = function enableStreamingAPI(streamModule2) {
|
|
10068
|
+
if (iconv.supportsStreams) {
|
|
9923
10069
|
return;
|
|
9924
|
-
|
|
10070
|
+
}
|
|
10071
|
+
var streams = require_streams()(streamModule2);
|
|
9925
10072
|
iconv.IconvLiteEncoderStream = streams.IconvLiteEncoderStream;
|
|
9926
10073
|
iconv.IconvLiteDecoderStream = streams.IconvLiteDecoderStream;
|
|
9927
10074
|
iconv.encodeStream = function encodeStream(encoding, options) {
|
|
@@ -9932,13 +10079,13 @@ var require_lib2 = __commonJS({
|
|
|
9932
10079
|
};
|
|
9933
10080
|
iconv.supportsStreams = true;
|
|
9934
10081
|
};
|
|
9935
|
-
var
|
|
10082
|
+
var streamModule;
|
|
9936
10083
|
try {
|
|
9937
|
-
|
|
10084
|
+
streamModule = require("stream");
|
|
9938
10085
|
} catch (e) {
|
|
9939
10086
|
}
|
|
9940
|
-
if (
|
|
9941
|
-
iconv.enableStreamingAPI(
|
|
10087
|
+
if (streamModule && streamModule.Transform) {
|
|
10088
|
+
iconv.enableStreamingAPI(streamModule);
|
|
9942
10089
|
} else {
|
|
9943
10090
|
iconv.encodeStream = iconv.decodeStream = function() {
|
|
9944
10091
|
throw new Error("iconv-lite Streaming API is not enabled. Use iconv.enableStreamingAPI(require('stream')); to enable it.");
|
|
@@ -15078,30 +15225,51 @@ var require_query2 = __commonJS({
|
|
|
15078
15225
|
return this.doneInsert(rs);
|
|
15079
15226
|
}
|
|
15080
15227
|
stream(options) {
|
|
15081
|
-
options = options ||
|
|
15228
|
+
options = options || /* @__PURE__ */ Object.create(null);
|
|
15082
15229
|
options.objectMode = true;
|
|
15083
|
-
const stream = new Readable(
|
|
15084
|
-
|
|
15085
|
-
|
|
15086
|
-
|
|
15087
|
-
|
|
15088
|
-
|
|
15089
|
-
this._connection.pause();
|
|
15230
|
+
const stream = new Readable({
|
|
15231
|
+
...options,
|
|
15232
|
+
emitClose: true,
|
|
15233
|
+
autoDestroy: true,
|
|
15234
|
+
read: () => {
|
|
15235
|
+
this._connection && this._connection.resume();
|
|
15090
15236
|
}
|
|
15091
|
-
stream.emit("result", row, resultSetIndex);
|
|
15092
|
-
});
|
|
15093
|
-
this.on("error", (err) => {
|
|
15094
|
-
stream.emit("error", err);
|
|
15095
15237
|
});
|
|
15096
|
-
|
|
15097
|
-
stream.
|
|
15238
|
+
stream.once("close", () => {
|
|
15239
|
+
if (!stream.readableEnded) {
|
|
15240
|
+
stream.emit("end");
|
|
15241
|
+
}
|
|
15098
15242
|
});
|
|
15099
|
-
|
|
15243
|
+
const onResult = (row, index) => {
|
|
15244
|
+
if (stream.destroyed) return;
|
|
15245
|
+
if (!stream.push(row)) {
|
|
15246
|
+
this._connection && this._connection.pause();
|
|
15247
|
+
}
|
|
15248
|
+
stream.emit("result", row, index);
|
|
15249
|
+
};
|
|
15250
|
+
const onFields = (fields) => {
|
|
15251
|
+
if (stream.destroyed) return;
|
|
15100
15252
|
stream.emit("fields", fields);
|
|
15101
|
-
}
|
|
15102
|
-
|
|
15103
|
-
stream.
|
|
15104
|
-
|
|
15253
|
+
};
|
|
15254
|
+
const onEnd = () => {
|
|
15255
|
+
if (stream.destroyed) return;
|
|
15256
|
+
stream.push(null);
|
|
15257
|
+
};
|
|
15258
|
+
const onError = (err) => {
|
|
15259
|
+
stream.destroy(err);
|
|
15260
|
+
};
|
|
15261
|
+
stream._destroy = (err, cb) => {
|
|
15262
|
+
this._connection && this._connection.resume();
|
|
15263
|
+
this.removeListener("result", onResult);
|
|
15264
|
+
this.removeListener("fields", onFields);
|
|
15265
|
+
this.removeListener("end", onEnd);
|
|
15266
|
+
this.removeListener("error", onError);
|
|
15267
|
+
cb(err);
|
|
15268
|
+
};
|
|
15269
|
+
this.on("result", onResult);
|
|
15270
|
+
this.on("fields", onFields);
|
|
15271
|
+
this.on("end", onEnd);
|
|
15272
|
+
this.on("error", onError);
|
|
15105
15273
|
return stream;
|
|
15106
15274
|
}
|
|
15107
15275
|
_setTimeout() {
|
|
@@ -15247,7 +15415,11 @@ var require_binary_parser = __commonJS({
|
|
|
15247
15415
|
if ([Types.DATETIME, Types.NEWDATE, Types.TIMESTAMP, Types.DATE].includes(
|
|
15248
15416
|
field.columnType
|
|
15249
15417
|
)) {
|
|
15250
|
-
return packet.readDateTimeString(
|
|
15418
|
+
return packet.readDateTimeString(
|
|
15419
|
+
parseInt(field.decimals, 10),
|
|
15420
|
+
" ",
|
|
15421
|
+
field.columnType
|
|
15422
|
+
);
|
|
15251
15423
|
}
|
|
15252
15424
|
if (field.columnType === Types.TINY) {
|
|
15253
15425
|
const unsigned = field.flags & FieldFlags.UNSIGNED;
|
|
@@ -15453,7 +15625,9 @@ var require_static_binary_parser = __commonJS({
|
|
|
15453
15625
|
Types.DATE
|
|
15454
15626
|
].includes(field.columnType)) {
|
|
15455
15627
|
return packet.readDateTimeString(
|
|
15456
|
-
parseInt(field.decimals, 10)
|
|
15628
|
+
parseInt(field.decimals, 10),
|
|
15629
|
+
" ",
|
|
15630
|
+
field.columnType
|
|
15457
15631
|
);
|
|
15458
15632
|
}
|
|
15459
15633
|
if (field.columnType === Types.TINY) {
|
|
@@ -16129,7 +16303,7 @@ var require_package = __commonJS({
|
|
|
16129
16303
|
"node_modules/mysql2/package.json"(exports2, module2) {
|
|
16130
16304
|
module2.exports = {
|
|
16131
16305
|
name: "mysql2",
|
|
16132
|
-
version: "3.14.
|
|
16306
|
+
version: "3.14.5",
|
|
16133
16307
|
description: "fast mysql driver. Implements core protocol, prepared statements, ssl and compression in native JS",
|
|
16134
16308
|
main: "index.js",
|
|
16135
16309
|
typings: "typings/mysql/index",
|
|
@@ -16178,7 +16352,7 @@ var require_package = __commonJS({
|
|
|
16178
16352
|
"aws-ssl-profiles": "^1.1.1",
|
|
16179
16353
|
denque: "^2.1.0",
|
|
16180
16354
|
"generate-function": "^2.3.1",
|
|
16181
|
-
"iconv-lite": "^0.
|
|
16355
|
+
"iconv-lite": "^0.7.0",
|
|
16182
16356
|
long: "^5.2.1",
|
|
16183
16357
|
"lru.min": "^1.0.0",
|
|
16184
16358
|
"named-placeholders": "^1.1.3",
|
|
@@ -16188,8 +16362,8 @@ var require_package = __commonJS({
|
|
|
16188
16362
|
devDependencies: {
|
|
16189
16363
|
"@eslint/eslintrc": "^3.3.0",
|
|
16190
16364
|
"@eslint/js": "^9.21.0",
|
|
16191
|
-
"@eslint/markdown": "^
|
|
16192
|
-
"@types/node": "^
|
|
16365
|
+
"@eslint/markdown": "^7.0.0",
|
|
16366
|
+
"@types/node": "^24.0.0",
|
|
16193
16367
|
"@typescript-eslint/eslint-plugin": "^8.26.0",
|
|
16194
16368
|
"@typescript-eslint/parser": "^8.26.0",
|
|
16195
16369
|
"assert-diff": "^3.0.2",
|
|
@@ -18109,7 +18283,7 @@ var require_connection = __commonJS({
|
|
|
18109
18283
|
secureSocket.on("data", (data) => {
|
|
18110
18284
|
this.packetParser.execute(data);
|
|
18111
18285
|
});
|
|
18112
|
-
this.
|
|
18286
|
+
this.stream = secureSocket;
|
|
18113
18287
|
}
|
|
18114
18288
|
protocolError(message, code) {
|
|
18115
18289
|
if (this._closing) {
|
|
@@ -18892,14 +19066,14 @@ var require_connection2 = __commonJS({
|
|
|
18892
19066
|
for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
|
|
18893
19067
|
const func = functionsToWrap[i];
|
|
18894
19068
|
if (typeof BaseConnection.prototype[func] === "function" && PromiseConnection.prototype[func] === void 0) {
|
|
18895
|
-
PromiseConnection.prototype[func] = /* @__PURE__ */ function factory(funcName) {
|
|
19069
|
+
PromiseConnection.prototype[func] = /* @__PURE__ */ (function factory(funcName) {
|
|
18896
19070
|
return function() {
|
|
18897
19071
|
return BaseConnection.prototype[funcName].apply(
|
|
18898
19072
|
this.connection,
|
|
18899
19073
|
arguments
|
|
18900
19074
|
);
|
|
18901
19075
|
};
|
|
18902
|
-
}(func);
|
|
19076
|
+
})(func);
|
|
18903
19077
|
}
|
|
18904
19078
|
}
|
|
18905
19079
|
})([
|
|
@@ -19249,11 +19423,11 @@ var require_pool2 = __commonJS({
|
|
|
19249
19423
|
for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
|
|
19250
19424
|
const func = functionsToWrap[i];
|
|
19251
19425
|
if (typeof BasePool.prototype[func] === "function" && PromisePool.prototype[func] === void 0) {
|
|
19252
|
-
PromisePool.prototype[func] = /* @__PURE__ */ function factory(funcName) {
|
|
19426
|
+
PromisePool.prototype[func] = /* @__PURE__ */ (function factory(funcName) {
|
|
19253
19427
|
return function() {
|
|
19254
19428
|
return BasePool.prototype[funcName].apply(this.pool, arguments);
|
|
19255
19429
|
};
|
|
19256
|
-
}(func);
|
|
19430
|
+
})(func);
|
|
19257
19431
|
}
|
|
19258
19432
|
}
|
|
19259
19433
|
})([
|
|
@@ -19842,14 +20016,14 @@ var require_promise = __commonJS({
|
|
|
19842
20016
|
for (let i = 0; functionsToWrap && i < functionsToWrap.length; i++) {
|
|
19843
20017
|
const func = functionsToWrap[i];
|
|
19844
20018
|
if (typeof PoolCluster.prototype[func] === "function" && PromisePoolCluster.prototype[func] === void 0) {
|
|
19845
|
-
PromisePoolCluster.prototype[func] = /* @__PURE__ */ function factory(funcName) {
|
|
20019
|
+
PromisePoolCluster.prototype[func] = /* @__PURE__ */ (function factory(funcName) {
|
|
19846
20020
|
return function() {
|
|
19847
20021
|
return PoolCluster.prototype[funcName].apply(
|
|
19848
20022
|
this.poolCluster,
|
|
19849
20023
|
arguments
|
|
19850
20024
|
);
|
|
19851
20025
|
};
|
|
19852
|
-
}(func);
|
|
20026
|
+
})(func);
|
|
19853
20027
|
}
|
|
19854
20028
|
}
|
|
19855
20029
|
})(["add", "remove"]);
|