tedious 6.4.0 → 6.6.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.
- package/lib/bulk-load.js +17 -22
- package/lib/connection.js +363 -251
- package/lib/connector.js +3 -1
- package/lib/data-type.js +111 -109
- package/lib/data-types/bigint.js +19 -7
- package/lib/data-types/binary.js +19 -10
- package/lib/data-types/bit.js +14 -4
- package/lib/data-types/bitn.js +26 -3
- package/lib/data-types/char.js +26 -13
- package/lib/data-types/date.js +18 -9
- package/lib/data-types/datetime.js +23 -5
- package/lib/data-types/datetime2.js +10 -22
- package/lib/data-types/datetimen.js +26 -3
- package/lib/data-types/datetimeoffset.js +11 -22
- package/lib/data-types/decimal.js +14 -6
- package/lib/data-types/decimaln.js +26 -5
- package/lib/data-types/float.js +14 -4
- package/lib/data-types/floatn.js +26 -3
- package/lib/data-types/image.js +12 -5
- package/lib/data-types/int.js +14 -4
- package/lib/data-types/intn.js +26 -3
- package/lib/data-types/money.js +14 -4
- package/lib/data-types/moneyn.js +26 -3
- package/lib/data-types/nchar.js +17 -6
- package/lib/data-types/ntext.js +26 -5
- package/lib/data-types/null.js +27 -3
- package/lib/data-types/numeric.js +14 -6
- package/lib/data-types/numericn.js +26 -5
- package/lib/data-types/nvarchar.js +20 -11
- package/lib/data-types/real.js +14 -4
- package/lib/data-types/smalldatetime.js +14 -4
- package/lib/data-types/smallint.js +14 -4
- package/lib/data-types/smallmoney.js +14 -4
- package/lib/data-types/sql-variant.js +23 -4
- package/lib/data-types/text.js +13 -7
- package/lib/data-types/time.js +9 -21
- package/lib/data-types/tinyint.js +14 -4
- package/lib/data-types/tvp.js +12 -3
- package/lib/data-types/udt.js +26 -3
- package/lib/data-types/uniqueidentifier.js +12 -5
- package/lib/data-types/varbinary.js +18 -8
- package/lib/data-types/varchar.js +19 -10
- package/lib/data-types/xml.js +26 -3
- package/lib/debug.js +3 -1
- package/lib/guid-parser.js +6 -6
- package/lib/incoming-message-stream.js +10 -7
- package/lib/instance-lookup.js +12 -6
- package/lib/library.js +6 -1
- package/lib/login7-payload.js +2 -3
- package/lib/message-io.js +14 -3
- package/lib/message.js +2 -3
- package/lib/metadata-parser.js +259 -136
- package/lib/ntlm-payload.js +12 -21
- package/lib/outgoing-message-stream.js +7 -6
- package/lib/packet.js +4 -5
- package/lib/prelogin-payload.js +3 -4
- package/lib/request.js +11 -11
- package/lib/rpcrequest-payload.js +28 -22
- package/lib/sender.js +25 -11
- package/lib/special-stored-procedure.js +9 -2
- package/lib/tds-versions.js +8 -2
- package/lib/tedious.js +75 -9
- package/lib/token/colmetadata-token-parser.js +20 -10
- package/lib/token/done-token-parser.js +32 -25
- package/lib/token/env-change-token-parser.js +50 -20
- package/lib/token/feature-ext-ack-parser.js +19 -14
- package/lib/token/fedauth-info-parser.js +17 -11
- package/lib/token/infoerror-token-parser.js +14 -14
- package/lib/token/loginack-token-parser.js +21 -12
- package/lib/token/nbcrow-token-parser.js +35 -23
- package/lib/token/order-token-parser.js +14 -7
- package/lib/token/returnstatus-token-parser.js +14 -7
- package/lib/token/returnvalue-token-parser.js +22 -11
- package/lib/token/row-token-parser.js +34 -22
- package/lib/token/sspi-token-parser.js +14 -8
- package/lib/token/stream-parser.js +95 -36
- package/lib/token/token-stream-parser.js +16 -10
- package/lib/token/token.js +396 -2
- package/lib/tracking-buffer/writable-tracking-buffer.js +37 -5
- package/lib/transaction.js +25 -16
- package/lib/transient-error-lookup.js +6 -1
- package/lib/value-parser.js +412 -315
- package/package.json +24 -21
- package/pull_request_template.md +1 -1
- package/tsconfig.json +1 -1
- package/lib/tracking-buffer/bigint.js +0 -102
package/lib/debug.js
CHANGED
|
@@ -9,7 +9,9 @@ var _events = require("events");
|
|
|
9
9
|
|
|
10
10
|
var util = _interopRequireWildcard(require("util"));
|
|
11
11
|
|
|
12
|
-
function
|
|
12
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
13
|
+
|
|
14
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
13
15
|
|
|
14
16
|
class Debug extends _events.EventEmitter {
|
|
15
17
|
/*
|
package/lib/guid-parser.js
CHANGED
|
@@ -3,18 +3,18 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
-
exports.
|
|
7
|
-
exports.
|
|
6
|
+
exports.bufferToUpperCaseGuid = bufferToUpperCaseGuid;
|
|
7
|
+
exports.bufferToLowerCaseGuid = bufferToLowerCaseGuid;
|
|
8
8
|
exports.guidToArray = guidToArray;
|
|
9
9
|
const UPPER_CASE_MAP = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '0A', '0B', '0C', '0D', '0E', '0F', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '1A', '1B', '1C', '1D', '1E', '1F', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '2A', '2B', '2C', '2D', '2E', '2F', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '3A', '3B', '3C', '3D', '3E', '3F', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '4A', '4B', '4C', '4D', '4E', '4F', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '5A', '5B', '5C', '5D', '5E', '5F', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '6A', '6B', '6C', '6D', '6E', '6F', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '7A', '7B', '7C', '7D', '7E', '7F', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '8A', '8B', '8C', '8D', '8E', '8F', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '9A', '9B', '9C', '9D', '9E', '9F', 'A0', 'A1', 'A2', 'A3', 'A4', 'A5', 'A6', 'A7', 'A8', 'A9', 'AA', 'AB', 'AC', 'AD', 'AE', 'AF', 'B0', 'B1', 'B2', 'B3', 'B4', 'B5', 'B6', 'B7', 'B8', 'B9', 'BA', 'BB', 'BC', 'BD', 'BE', 'BF', 'C0', 'C1', 'C2', 'C3', 'C4', 'C5', 'C6', 'C7', 'C8', 'C9', 'CA', 'CB', 'CC', 'CD', 'CE', 'CF', 'D0', 'D1', 'D2', 'D3', 'D4', 'D5', 'D6', 'D7', 'D8', 'D9', 'DA', 'DB', 'DC', 'DD', 'DE', 'DF', 'E0', 'E1', 'E2', 'E3', 'E4', 'E5', 'E6', 'E7', 'E8', 'E9', 'EA', 'EB', 'EC', 'ED', 'EE', 'EF', 'F0', 'F1', 'F2', 'F3', 'F4', 'F5', 'F6', 'F7', 'F8', 'F9', 'FA', 'FB', 'FC', 'FD', 'FE', 'FF'];
|
|
10
10
|
const LOWER_CASE_MAP = ['00', '01', '02', '03', '04', '05', '06', '07', '08', '09', '0a', '0b', '0c', '0d', '0e', '0f', '10', '11', '12', '13', '14', '15', '16', '17', '18', '19', '1a', '1b', '1c', '1d', '1e', '1f', '20', '21', '22', '23', '24', '25', '26', '27', '28', '29', '2a', '2b', '2c', '2d', '2e', '2f', '30', '31', '32', '33', '34', '35', '36', '37', '38', '39', '3a', '3b', '3c', '3d', '3e', '3f', '40', '41', '42', '43', '44', '45', '46', '47', '48', '49', '4a', '4b', '4c', '4d', '4e', '4f', '50', '51', '52', '53', '54', '55', '56', '57', '58', '59', '5a', '5b', '5c', '5d', '5e', '5f', '60', '61', '62', '63', '64', '65', '66', '67', '68', '69', '6a', '6b', '6c', '6d', '6e', '6f', '70', '71', '72', '73', '74', '75', '76', '77', '78', '79', '7a', '7b', '7c', '7d', '7e', '7f', '80', '81', '82', '83', '84', '85', '86', '87', '88', '89', '8a', '8b', '8c', '8d', '8e', '8f', '90', '91', '92', '93', '94', '95', '96', '97', '98', '99', '9a', '9b', '9c', '9d', '9e', '9f', 'a0', 'a1', 'a2', 'a3', 'a4', 'a5', 'a6', 'a7', 'a8', 'a9', 'aa', 'ab', 'ac', 'ad', 'ae', 'af', 'b0', 'b1', 'b2', 'b3', 'b4', 'b5', 'b6', 'b7', 'b8', 'b9', 'ba', 'bb', 'bc', 'bd', 'be', 'bf', 'c0', 'c1', 'c2', 'c3', 'c4', 'c5', 'c6', 'c7', 'c8', 'c9', 'ca', 'cb', 'cc', 'cd', 'ce', 'cf', 'd0', 'd1', 'd2', 'd3', 'd4', 'd5', 'd6', 'd7', 'd8', 'd9', 'da', 'db', 'dc', 'dd', 'de', 'df', 'e0', 'e1', 'e2', 'e3', 'e4', 'e5', 'e6', 'e7', 'e8', 'e9', 'ea', 'eb', 'ec', 'ed', 'ee', 'ef', 'f0', 'f1', 'f2', 'f3', 'f4', 'f5', 'f6', 'f7', 'f8', 'f9', 'fa', 'fb', 'fc', 'fd', 'fe', 'ff'];
|
|
11
11
|
|
|
12
|
-
function
|
|
13
|
-
return UPPER_CASE_MAP[
|
|
12
|
+
function bufferToUpperCaseGuid(buffer) {
|
|
13
|
+
return UPPER_CASE_MAP[buffer[3]] + UPPER_CASE_MAP[buffer[2]] + UPPER_CASE_MAP[buffer[1]] + UPPER_CASE_MAP[buffer[0]] + '-' + UPPER_CASE_MAP[buffer[5]] + UPPER_CASE_MAP[buffer[4]] + '-' + UPPER_CASE_MAP[buffer[7]] + UPPER_CASE_MAP[buffer[6]] + '-' + UPPER_CASE_MAP[buffer[8]] + UPPER_CASE_MAP[buffer[9]] + '-' + UPPER_CASE_MAP[buffer[10]] + UPPER_CASE_MAP[buffer[11]] + UPPER_CASE_MAP[buffer[12]] + UPPER_CASE_MAP[buffer[13]] + UPPER_CASE_MAP[buffer[14]] + UPPER_CASE_MAP[buffer[15]];
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
-
function
|
|
17
|
-
return LOWER_CASE_MAP[
|
|
16
|
+
function bufferToLowerCaseGuid(buffer) {
|
|
17
|
+
return LOWER_CASE_MAP[buffer[3]] + LOWER_CASE_MAP[buffer[2]] + LOWER_CASE_MAP[buffer[1]] + LOWER_CASE_MAP[buffer[0]] + '-' + LOWER_CASE_MAP[buffer[5]] + LOWER_CASE_MAP[buffer[4]] + '-' + LOWER_CASE_MAP[buffer[7]] + LOWER_CASE_MAP[buffer[6]] + '-' + LOWER_CASE_MAP[buffer[8]] + LOWER_CASE_MAP[buffer[9]] + '-' + LOWER_CASE_MAP[buffer[10]] + LOWER_CASE_MAP[buffer[11]] + LOWER_CASE_MAP[buffer[12]] + LOWER_CASE_MAP[buffer[13]] + LOWER_CASE_MAP[buffer[14]] + LOWER_CASE_MAP[buffer[15]];
|
|
18
18
|
}
|
|
19
19
|
|
|
20
20
|
const CHARCODEMAP = {};
|
|
@@ -5,29 +5,28 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
+
var _bl = _interopRequireDefault(require("bl"));
|
|
9
|
+
|
|
10
|
+
var _readableStream = require("readable-stream");
|
|
11
|
+
|
|
8
12
|
var _message = _interopRequireDefault(require("./message"));
|
|
9
13
|
|
|
10
14
|
var _packet = require("./packet");
|
|
11
15
|
|
|
12
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
13
17
|
|
|
14
|
-
const BufferList = require('bl');
|
|
15
|
-
|
|
16
|
-
const _require = require('readable-stream'),
|
|
17
|
-
Transform = _require.Transform;
|
|
18
|
-
|
|
19
18
|
/**
|
|
20
19
|
IncomingMessageStream
|
|
21
20
|
Transform received TDS data into individual IncomingMessage streams.
|
|
22
21
|
*/
|
|
23
|
-
class IncomingMessageStream extends Transform {
|
|
22
|
+
class IncomingMessageStream extends _readableStream.Transform {
|
|
24
23
|
constructor(debug) {
|
|
25
24
|
super({
|
|
26
25
|
readableObjectMode: true
|
|
27
26
|
});
|
|
28
27
|
this.debug = debug;
|
|
29
28
|
this.currentMessage = undefined;
|
|
30
|
-
this.bl = new
|
|
29
|
+
this.bl = new _bl.default();
|
|
31
30
|
}
|
|
32
31
|
|
|
33
32
|
pause() {
|
|
@@ -36,6 +35,8 @@ class IncomingMessageStream extends Transform {
|
|
|
36
35
|
if (this.currentMessage) {
|
|
37
36
|
this.currentMessage.pause();
|
|
38
37
|
}
|
|
38
|
+
|
|
39
|
+
return this;
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
resume() {
|
|
@@ -44,6 +45,8 @@ class IncomingMessageStream extends Transform {
|
|
|
44
45
|
if (this.currentMessage) {
|
|
45
46
|
this.currentMessage.resume();
|
|
46
47
|
}
|
|
48
|
+
|
|
49
|
+
return this;
|
|
47
50
|
}
|
|
48
51
|
|
|
49
52
|
processBufferedData(callback) {
|
package/lib/instance-lookup.js
CHANGED
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.InstanceLookup = void 0;
|
|
7
|
+
|
|
8
|
+
var _sender = require("./sender");
|
|
4
9
|
|
|
5
10
|
const SQL_SERVER_BROWSER_PORT = 1434;
|
|
6
11
|
const TIMEOUT = 2 * 1000;
|
|
@@ -11,7 +16,7 @@ const MYSTERY_HEADER_LENGTH = 3; // Most of the functionality has been determine
|
|
|
11
16
|
class InstanceLookup {
|
|
12
17
|
// Wrapper allows for stubbing Sender when unit testing instance-lookup.
|
|
13
18
|
createSender(host, port, request) {
|
|
14
|
-
return new Sender(host, port, request);
|
|
19
|
+
return new _sender.Sender(host, port, request);
|
|
15
20
|
}
|
|
16
21
|
|
|
17
22
|
instanceLookup(options, callback) {
|
|
@@ -43,7 +48,8 @@ class InstanceLookup {
|
|
|
43
48
|
throw new TypeError('Invalid arguments: "callback" must be a function');
|
|
44
49
|
}
|
|
45
50
|
|
|
46
|
-
let sender
|
|
51
|
+
let sender;
|
|
52
|
+
let timer;
|
|
47
53
|
let retriesLeft = retries;
|
|
48
54
|
|
|
49
55
|
const onTimeout = () => {
|
|
@@ -56,13 +62,13 @@ class InstanceLookup {
|
|
|
56
62
|
retriesLeft--;
|
|
57
63
|
const request = Buffer.from([0x02]);
|
|
58
64
|
sender = this.createSender(options.server, SQL_SERVER_BROWSER_PORT, request);
|
|
59
|
-
sender.execute((err,
|
|
65
|
+
sender.execute((err, response) => {
|
|
60
66
|
clearTimeout(timer);
|
|
61
67
|
|
|
62
68
|
if (err) {
|
|
63
69
|
callback('Failed to lookup instance on ' + server + ' - ' + err.message);
|
|
64
70
|
} else {
|
|
65
|
-
message =
|
|
71
|
+
const message = response.toString('ascii', MYSTERY_HEADER_LENGTH);
|
|
66
72
|
const port = this.parseBrowserResponse(message, instanceName);
|
|
67
73
|
|
|
68
74
|
if (port) {
|
|
@@ -111,4 +117,4 @@ class InstanceLookup {
|
|
|
111
117
|
|
|
112
118
|
}
|
|
113
119
|
|
|
114
|
-
|
|
120
|
+
exports.InstanceLookup = InstanceLookup;
|
package/lib/library.js
CHANGED
package/lib/login7-payload.js
CHANGED
|
@@ -5,8 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
sprintf = _require.sprintf;
|
|
8
|
+
var _sprintfJs = require("sprintf-js");
|
|
10
9
|
|
|
11
10
|
const FLAGS_1 = {
|
|
12
11
|
ENDIAN_LITTLE: 0x00,
|
|
@@ -381,7 +380,7 @@ class Login7Payload {
|
|
|
381
380
|
}
|
|
382
381
|
|
|
383
382
|
toString(indent = '') {
|
|
384
|
-
return indent + 'Login7 - ' + sprintf('TDS:0x%08X, PacketSize:0x%08X, ClientProgVer:0x%08X, ClientPID:0x%08X, ConnectionID:0x%08X', this.tdsVersion, this.packetSize, this.clientProgVer, this.clientPid, this.connectionId) + '\n' + indent + ' ' + sprintf('Flags1:0x%02X, Flags2:0x%02X, TypeFlags:0x%02X, Flags3:0x%02X, ClientTimezone:%d, ClientLCID:0x%08X', this.buildOptionFlags1(), this.buildOptionFlags2(), this.buildTypeFlags(), this.buildOptionFlags3(), this.clientTimeZone, this.clientLcid) + '\n' + indent + ' ' + sprintf("Hostname:'%s', Username:'%s', Password:'%s', AppName:'%s', ServerName:'%s', LibraryName:'%s'", this.hostname, this.userName, this.password, this.appName, this.serverName, this.libraryName) + '\n' + indent + ' ' + sprintf("Language:'%s', Database:'%s', SSPI:'%s', AttachDbFile:'%s', ChangePassword:'%s'", this.language, this.database, this.sspi, this.attachDbFile, this.changePassword);
|
|
383
|
+
return indent + 'Login7 - ' + (0, _sprintfJs.sprintf)('TDS:0x%08X, PacketSize:0x%08X, ClientProgVer:0x%08X, ClientPID:0x%08X, ConnectionID:0x%08X', this.tdsVersion, this.packetSize, this.clientProgVer, this.clientPid, this.connectionId) + '\n' + indent + ' ' + (0, _sprintfJs.sprintf)('Flags1:0x%02X, Flags2:0x%02X, TypeFlags:0x%02X, Flags3:0x%02X, ClientTimezone:%d, ClientLCID:0x%08X', this.buildOptionFlags1(), this.buildOptionFlags2(), this.buildTypeFlags(), this.buildOptionFlags3(), this.clientTimeZone, this.clientLcid) + '\n' + indent + ' ' + (0, _sprintfJs.sprintf)("Hostname:'%s', Username:'%s', Password:'%s', AppName:'%s', ServerName:'%s', LibraryName:'%s'", this.hostname, this.userName, this.password, this.appName, this.serverName, this.libraryName) + '\n' + indent + ' ' + (0, _sprintfJs.sprintf)("Language:'%s', Database:'%s', SSPI:'%s', AttachDbFile:'%s', ChangePassword:'%s'", this.language, this.database, this.sspi, this.attachDbFile, this.changePassword);
|
|
385
384
|
}
|
|
386
385
|
|
|
387
386
|
}
|
package/lib/message-io.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.default = void 0;
|
|
7
|
+
|
|
3
8
|
var tls = _interopRequireWildcard(require("tls"));
|
|
4
9
|
|
|
5
10
|
var _events = require("events");
|
|
@@ -14,11 +19,13 @@ var _outgoingMessageStream = _interopRequireDefault(require("./outgoing-message-
|
|
|
14
19
|
|
|
15
20
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
21
|
|
|
17
|
-
function
|
|
22
|
+
function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
|
23
|
+
|
|
24
|
+
function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; if (obj != null) { var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
18
25
|
|
|
19
26
|
const DuplexPair = require('native-duplexpair');
|
|
20
27
|
|
|
21
|
-
|
|
28
|
+
class MessageIO extends _events.EventEmitter {
|
|
22
29
|
constructor(socket, packetSize, debug) {
|
|
23
30
|
super();
|
|
24
31
|
this.socket = socket;
|
|
@@ -130,4 +137,8 @@ module.exports = class MessageIO extends _events.EventEmitter {
|
|
|
130
137
|
this.incomingMessageStream.resume();
|
|
131
138
|
}
|
|
132
139
|
|
|
133
|
-
}
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
var _default = MessageIO;
|
|
143
|
+
exports.default = _default;
|
|
144
|
+
module.exports = MessageIO;
|
package/lib/message.js
CHANGED
|
@@ -5,10 +5,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
|
|
8
|
-
|
|
9
|
-
PassThrough = _require.PassThrough;
|
|
8
|
+
var _readableStream = require("readable-stream");
|
|
10
9
|
|
|
11
|
-
class Message extends PassThrough {
|
|
10
|
+
class Message extends _readableStream.PassThrough {
|
|
12
11
|
constructor({
|
|
13
12
|
type,
|
|
14
13
|
resetConnection = false
|