UNPKG

383 kBJavaScriptView Raw
1"use strict";
2
3Object.defineProperty(exports, "__esModule", {
4 value: true
5});
6exports.default = void 0;
7var _crypto = _interopRequireDefault(require("crypto"));
8var _os = _interopRequireDefault(require("os"));
9var tls = _interopRequireWildcard(require("tls"));
10var net = _interopRequireWildcard(require("net"));
11var _dns = _interopRequireDefault(require("dns"));
12var _constants = _interopRequireDefault(require("constants"));
13var _stream = require("stream");
14var _identity = require("@azure/identity");
15var _bulkLoad = _interopRequireDefault(require("./bulk-load"));
16var _debug = _interopRequireDefault(require("./debug"));
17var _events = require("events");
18var _instanceLookup = require("./instance-lookup");
19var _transientErrorLookup = require("./transient-error-lookup");
20var _packet = require("./packet");
21var _preloginPayload = _interopRequireDefault(require("./prelogin-payload"));
22var _login7Payload = _interopRequireDefault(require("./login7-payload"));
23var _ntlmPayload = _interopRequireDefault(require("./ntlm-payload"));
24var _request = _interopRequireDefault(require("./request"));
25var _rpcrequestPayload = _interopRequireDefault(require("./rpcrequest-payload"));
26var _sqlbatchPayload = _interopRequireDefault(require("./sqlbatch-payload"));
27var _messageIo = _interopRequireDefault(require("./message-io"));
28var _tokenStreamParser = require("./token/token-stream-parser");
29var _transaction = require("./transaction");
30var _errors = require("./errors");
31var _connector = require("./connector");
32var _library = require("./library");
33var _tdsVersions = require("./tds-versions");
34var _message = _interopRequireDefault(require("./message"));
35var _ntlm = require("./ntlm");
36var _dataType = require("./data-type");
37var _bulkLoadPayload = require("./bulk-load-payload");
38var _specialStoredProcedure = _interopRequireDefault(require("./special-stored-procedure"));
39var _package = require("../package.json");
40var _url = require("url");
41var _handler = require("./token/handler");
42function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
43function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && Object.prototype.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
44function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
45// eslint-disable-next-line @typescript-eslint/no-unused-vars
46
47/**
48 * @private
49 */
50const KEEP_ALIVE_INITIAL_DELAY = 30 * 1000;
51/**
52 * @private
53 */
54const DEFAULT_CONNECT_TIMEOUT = 15 * 1000;
55/**
56 * @private
57 */
58const DEFAULT_CLIENT_REQUEST_TIMEOUT = 15 * 1000;
59/**
60 * @private
61 */
62const DEFAULT_CANCEL_TIMEOUT = 5 * 1000;
63/**
64 * @private
65 */
66const DEFAULT_CONNECT_RETRY_INTERVAL = 500;
67/**
68 * @private
69 */
70const DEFAULT_PACKET_SIZE = 4 * 1024;
71/**
72 * @private
73 */
74const DEFAULT_TEXTSIZE = 2147483647;
75/**
76 * @private
77 */
78const DEFAULT_DATEFIRST = 7;
79/**
80 * @private
81 */
82const DEFAULT_PORT = 1433;
83/**
84 * @private
85 */
86const DEFAULT_TDS_VERSION = '7_4';
87/**
88 * @private
89 */
90const DEFAULT_LANGUAGE = 'us_english';
91/**
92 * @private
93 */
94const DEFAULT_DATEFORMAT = 'mdy';
95
96/**
97 * @private
98 */
99
100/**
101 * @private
102 */
103const CLEANUP_TYPE = {
104 NORMAL: 0,
105 REDIRECT: 1,
106 RETRY: 2
107};
108/**
109 * A [[Connection]] instance represents a single connection to a database server.
110 *
111 * ```js
112 * var Connection = require('tedious').Connection;
113 * var config = {
114 * "authentication": {
115 * ...,
116 * "options": {...}
117 * },
118 * "options": {...}
119 * };
120 * var connection = new Connection(config);
121 * ```
122 *
123 * Only one request at a time may be executed on a connection. Once a [[Request]]
124 * has been initiated (with [[Connection.callProcedure]], [[Connection.execSql]],
125 * or [[Connection.execSqlBatch]]), another should not be initiated until the
126 * [[Request]]'s completion callback is called.
127 */
128class Connection extends _events.EventEmitter {
129 /**
130 * @private
131 */
132
133 /**
134 * @private
135 */
136
137 /**
138 * @private
139 */
140
141 /**
142 * @private
143 */
144
145 /**
146 * @private
147 */
148
149 /**
150 * @private
151 */
152
153 /**
154 * @private
155 */
156
157 /**
158 * @private
159 */
160
161 /**
162 * @private
163 */
164
165 /**
166 * @private
167 */
168
169 /**
170 * @private
171 */
172
173 /**
174 * @private
175 */
176
177 /**
178 * @private
179 */
180
181 /**
182 * @private
183 */
184
185 /**
186 * @private
187 */
188
189 /**
190 * @private
191 */
192
193 /**
194 * @private
195 */
196
197 /**
198 * @private
199 */
200
201 /**
202 * @private
203 */
204
205 /**
206 * @private
207 */
208
209 /**
210 * @private
211 */
212
213 /**
214 * @private
215 */
216
217 /**
218 * @private
219 */
220
221 /**
222 * @private
223 */
224
225 /**
226 * @private
227 */
228
229 /**
230 * @private
231 */
232
233 /**
234 * @private
235 */
236
237 /**
238 * @private
239 */
240 _cancelAfterRequestSent;
241
242 /**
243 * @private
244 */
245
246 /**
247 * Note: be aware of the different options field:
248 * 1. config.authentication.options
249 * 2. config.options
250 *
251 * ```js
252 * const { Connection } = require('tedious');
253 *
254 * const config = {
255 * "authentication": {
256 * ...,
257 * "options": {...}
258 * },
259 * "options": {...}
260 * };
261 *
262 * const connection = new Connection(config);
263 * ```
264 *
265 * @param config
266 */
267 constructor(config) {
268 super();
269 if (typeof config !== 'object' || config === null) {
270 throw new TypeError('The "config" argument is required and must be of type Object.');
271 }
272 if (typeof config.server !== 'string') {
273 throw new TypeError('The "config.server" property is required and must be of type string.');
274 }
275 this.fedAuthRequired = false;
276 let authentication;
277 if (config.authentication !== undefined) {
278 if (typeof config.authentication !== 'object' || config.authentication === null) {
279 throw new TypeError('The "config.authentication" property must be of type Object.');
280 }
281 const type = config.authentication.type;
282 const options = config.authentication.options === undefined ? {} : config.authentication.options;
283 if (typeof type !== 'string') {
284 throw new TypeError('The "config.authentication.type" property must be of type string.');
285 }
286 if (type !== 'default' && type !== 'ntlm' && type !== 'azure-active-directory-password' && type !== 'azure-active-directory-access-token' && type !== 'azure-active-directory-msi-vm' && type !== 'azure-active-directory-msi-app-service' && type !== 'azure-active-directory-service-principal-secret' && type !== 'azure-active-directory-default') {
287 throw new TypeError('The "type" property must one of "default", "ntlm", "azure-active-directory-password", "azure-active-directory-access-token", "azure-active-directory-default", "azure-active-directory-msi-vm" or "azure-active-directory-msi-app-service" or "azure-active-directory-service-principal-secret".');
288 }
289 if (typeof options !== 'object' || options === null) {
290 throw new TypeError('The "config.authentication.options" property must be of type object.');
291 }
292 if (type === 'ntlm') {
293 if (typeof options.domain !== 'string') {
294 throw new TypeError('The "config.authentication.options.domain" property must be of type string.');
295 }
296 if (options.userName !== undefined && typeof options.userName !== 'string') {
297 throw new TypeError('The "config.authentication.options.userName" property must be of type string.');
298 }
299 if (options.password !== undefined && typeof options.password !== 'string') {
300 throw new TypeError('The "config.authentication.options.password" property must be of type string.');
301 }
302 authentication = {
303 type: 'ntlm',
304 options: {
305 userName: options.userName,
306 password: options.password,
307 domain: options.domain && options.domain.toUpperCase()
308 }
309 };
310 } else if (type === 'azure-active-directory-password') {
311 if (typeof options.clientId !== 'string') {
312 throw new TypeError('The "config.authentication.options.clientId" property must be of type string.');
313 }
314 if (options.userName !== undefined && typeof options.userName !== 'string') {
315 throw new TypeError('The "config.authentication.options.userName" property must be of type string.');
316 }
317 if (options.password !== undefined && typeof options.password !== 'string') {
318 throw new TypeError('The "config.authentication.options.password" property must be of type string.');
319 }
320 if (options.tenantId !== undefined && typeof options.tenantId !== 'string') {
321 throw new TypeError('The "config.authentication.options.tenantId" property must be of type string.');
322 }
323 authentication = {
324 type: 'azure-active-directory-password',
325 options: {
326 userName: options.userName,
327 password: options.password,
328 tenantId: options.tenantId,
329 clientId: options.clientId
330 }
331 };
332 } else if (type === 'azure-active-directory-access-token') {
333 if (typeof options.token !== 'string') {
334 throw new TypeError('The "config.authentication.options.token" property must be of type string.');
335 }
336 authentication = {
337 type: 'azure-active-directory-access-token',
338 options: {
339 token: options.token
340 }
341 };
342 } else if (type === 'azure-active-directory-msi-vm') {
343 if (options.clientId !== undefined && typeof options.clientId !== 'string') {
344 throw new TypeError('The "config.authentication.options.clientId" property must be of type string.');
345 }
346 authentication = {
347 type: 'azure-active-directory-msi-vm',
348 options: {
349 clientId: options.clientId
350 }
351 };
352 } else if (type === 'azure-active-directory-default') {
353 if (options.clientId !== undefined && typeof options.clientId !== 'string') {
354 throw new TypeError('The "config.authentication.options.clientId" property must be of type string.');
355 }
356 authentication = {
357 type: 'azure-active-directory-default',
358 options: {
359 clientId: options.clientId
360 }
361 };
362 } else if (type === 'azure-active-directory-msi-app-service') {
363 if (options.clientId !== undefined && typeof options.clientId !== 'string') {
364 throw new TypeError('The "config.authentication.options.clientId" property must be of type string.');
365 }
366 authentication = {
367 type: 'azure-active-directory-msi-app-service',
368 options: {
369 clientId: options.clientId
370 }
371 };
372 } else if (type === 'azure-active-directory-service-principal-secret') {
373 if (typeof options.clientId !== 'string') {
374 throw new TypeError('The "config.authentication.options.clientId" property must be of type string.');
375 }
376 if (typeof options.clientSecret !== 'string') {
377 throw new TypeError('The "config.authentication.options.clientSecret" property must be of type string.');
378 }
379 if (typeof options.tenantId !== 'string') {
380 throw new TypeError('The "config.authentication.options.tenantId" property must be of type string.');
381 }
382 authentication = {
383 type: 'azure-active-directory-service-principal-secret',
384 options: {
385 clientId: options.clientId,
386 clientSecret: options.clientSecret,
387 tenantId: options.tenantId
388 }
389 };
390 } else {
391 if (options.userName !== undefined && typeof options.userName !== 'string') {
392 throw new TypeError('The "config.authentication.options.userName" property must be of type string.');
393 }
394 if (options.password !== undefined && typeof options.password !== 'string') {
395 throw new TypeError('The "config.authentication.options.password" property must be of type string.');
396 }
397 authentication = {
398 type: 'default',
399 options: {
400 userName: options.userName,
401 password: options.password
402 }
403 };
404 }
405 } else {
406 authentication = {
407 type: 'default',
408 options: {
409 userName: undefined,
410 password: undefined
411 }
412 };
413 }
414 this.config = {
415 server: config.server,
416 authentication: authentication,
417 options: {
418 abortTransactionOnError: false,
419 appName: undefined,
420 camelCaseColumns: false,
421 cancelTimeout: DEFAULT_CANCEL_TIMEOUT,
422 columnEncryptionKeyCacheTTL: 2 * 60 * 60 * 1000,
423 // Units: milliseconds
424 columnEncryptionSetting: false,
425 columnNameReplacer: undefined,
426 connectionRetryInterval: DEFAULT_CONNECT_RETRY_INTERVAL,
427 connectTimeout: DEFAULT_CONNECT_TIMEOUT,
428 connector: undefined,
429 connectionIsolationLevel: _transaction.ISOLATION_LEVEL.READ_COMMITTED,
430 cryptoCredentialsDetails: {},
431 database: undefined,
432 datefirst: DEFAULT_DATEFIRST,
433 dateFormat: DEFAULT_DATEFORMAT,
434 debug: {
435 data: false,
436 packet: false,
437 payload: false,
438 token: false
439 },
440 enableAnsiNull: true,
441 enableAnsiNullDefault: true,
442 enableAnsiPadding: true,
443 enableAnsiWarnings: true,
444 enableArithAbort: true,
445 enableConcatNullYieldsNull: true,
446 enableCursorCloseOnCommit: null,
447 enableImplicitTransactions: false,
448 enableNumericRoundabort: false,
449 enableQuotedIdentifier: true,
450 encrypt: true,
451 fallbackToDefaultDb: false,
452 encryptionKeyStoreProviders: undefined,
453 instanceName: undefined,
454 isolationLevel: _transaction.ISOLATION_LEVEL.READ_COMMITTED,
455 language: DEFAULT_LANGUAGE,
456 localAddress: undefined,
457 maxRetriesOnTransientErrors: 3,
458 multiSubnetFailover: false,
459 packetSize: DEFAULT_PACKET_SIZE,
460 port: DEFAULT_PORT,
461 readOnlyIntent: false,
462 requestTimeout: DEFAULT_CLIENT_REQUEST_TIMEOUT,
463 rowCollectionOnDone: false,
464 rowCollectionOnRequestCompletion: false,
465 serverName: undefined,
466 serverSupportsColumnEncryption: false,
467 tdsVersion: DEFAULT_TDS_VERSION,
468 textsize: DEFAULT_TEXTSIZE,
469 trustedServerNameAE: undefined,
470 trustServerCertificate: false,
471 useColumnNames: false,
472 useUTC: true,
473 workstationId: undefined,
474 lowerCaseGuids: false
475 }
476 };
477 if (config.options) {
478 if (config.options.port && config.options.instanceName) {
479 throw new Error('Port and instanceName are mutually exclusive, but ' + config.options.port + ' and ' + config.options.instanceName + ' provided');
480 }
481 if (config.options.abortTransactionOnError !== undefined) {
482 if (typeof config.options.abortTransactionOnError !== 'boolean' && config.options.abortTransactionOnError !== null) {
483 throw new TypeError('The "config.options.abortTransactionOnError" property must be of type string or null.');
484 }
485 this.config.options.abortTransactionOnError = config.options.abortTransactionOnError;
486 }
487 if (config.options.appName !== undefined) {
488 if (typeof config.options.appName !== 'string') {
489 throw new TypeError('The "config.options.appName" property must be of type string.');
490 }
491 this.config.options.appName = config.options.appName;
492 }
493 if (config.options.camelCaseColumns !== undefined) {
494 if (typeof config.options.camelCaseColumns !== 'boolean') {
495 throw new TypeError('The "config.options.camelCaseColumns" property must be of type boolean.');
496 }
497 this.config.options.camelCaseColumns = config.options.camelCaseColumns;
498 }
499 if (config.options.cancelTimeout !== undefined) {
500 if (typeof config.options.cancelTimeout !== 'number') {
501 throw new TypeError('The "config.options.cancelTimeout" property must be of type number.');
502 }
503 this.config.options.cancelTimeout = config.options.cancelTimeout;
504 }
505 if (config.options.columnNameReplacer) {
506 if (typeof config.options.columnNameReplacer !== 'function') {
507 throw new TypeError('The "config.options.cancelTimeout" property must be of type function.');
508 }
509 this.config.options.columnNameReplacer = config.options.columnNameReplacer;
510 }
511 if (config.options.connectionIsolationLevel !== undefined) {
512 (0, _transaction.assertValidIsolationLevel)(config.options.connectionIsolationLevel, 'config.options.connectionIsolationLevel');
513 this.config.options.connectionIsolationLevel = config.options.connectionIsolationLevel;
514 }
515 if (config.options.connectTimeout !== undefined) {
516 if (typeof config.options.connectTimeout !== 'number') {
517 throw new TypeError('The "config.options.connectTimeout" property must be of type number.');
518 }
519 this.config.options.connectTimeout = config.options.connectTimeout;
520 }
521 if (config.options.connector !== undefined) {
522 if (typeof config.options.connector !== 'function') {
523 throw new TypeError('The "config.options.connector" property must be a function.');
524 }
525 this.config.options.connector = config.options.connector;
526 }
527 if (config.options.cryptoCredentialsDetails !== undefined) {
528 if (typeof config.options.cryptoCredentialsDetails !== 'object' || config.options.cryptoCredentialsDetails === null) {
529 throw new TypeError('The "config.options.cryptoCredentialsDetails" property must be of type Object.');
530 }
531 this.config.options.cryptoCredentialsDetails = config.options.cryptoCredentialsDetails;
532 }
533 if (config.options.database !== undefined) {
534 if (typeof config.options.database !== 'string') {
535 throw new TypeError('The "config.options.database" property must be of type string.');
536 }
537 this.config.options.database = config.options.database;
538 }
539 if (config.options.datefirst !== undefined) {
540 if (typeof config.options.datefirst !== 'number' && config.options.datefirst !== null) {
541 throw new TypeError('The "config.options.datefirst" property must be of type number.');
542 }
543 if (config.options.datefirst !== null && (config.options.datefirst < 1 || config.options.datefirst > 7)) {
544 throw new RangeError('The "config.options.datefirst" property must be >= 1 and <= 7');
545 }
546 this.config.options.datefirst = config.options.datefirst;
547 }
548 if (config.options.dateFormat !== undefined) {
549 if (typeof config.options.dateFormat !== 'string' && config.options.dateFormat !== null) {
550 throw new TypeError('The "config.options.dateFormat" property must be of type string or null.');
551 }
552 this.config.options.dateFormat = config.options.dateFormat;
553 }
554 if (config.options.debug) {
555 if (config.options.debug.data !== undefined) {
556 if (typeof config.options.debug.data !== 'boolean') {
557 throw new TypeError('The "config.options.debug.data" property must be of type boolean.');
558 }
559 this.config.options.debug.data = config.options.debug.data;
560 }
561 if (config.options.debug.packet !== undefined) {
562 if (typeof config.options.debug.packet !== 'boolean') {
563 throw new TypeError('The "config.options.debug.packet" property must be of type boolean.');
564 }
565 this.config.options.debug.packet = config.options.debug.packet;
566 }
567 if (config.options.debug.payload !== undefined) {
568 if (typeof config.options.debug.payload !== 'boolean') {
569 throw new TypeError('The "config.options.debug.payload" property must be of type boolean.');
570 }
571 this.config.options.debug.payload = config.options.debug.payload;
572 }
573 if (config.options.debug.token !== undefined) {
574 if (typeof config.options.debug.token !== 'boolean') {
575 throw new TypeError('The "config.options.debug.token" property must be of type boolean.');
576 }
577 this.config.options.debug.token = config.options.debug.token;
578 }
579 }
580 if (config.options.enableAnsiNull !== undefined) {
581 if (typeof config.options.enableAnsiNull !== 'boolean' && config.options.enableAnsiNull !== null) {
582 throw new TypeError('The "config.options.enableAnsiNull" property must be of type boolean or null.');
583 }
584 this.config.options.enableAnsiNull = config.options.enableAnsiNull;
585 }
586 if (config.options.enableAnsiNullDefault !== undefined) {
587 if (typeof config.options.enableAnsiNullDefault !== 'boolean' && config.options.enableAnsiNullDefault !== null) {
588 throw new TypeError('The "config.options.enableAnsiNullDefault" property must be of type boolean or null.');
589 }
590 this.config.options.enableAnsiNullDefault = config.options.enableAnsiNullDefault;
591 }
592 if (config.options.enableAnsiPadding !== undefined) {
593 if (typeof config.options.enableAnsiPadding !== 'boolean' && config.options.enableAnsiPadding !== null) {
594 throw new TypeError('The "config.options.enableAnsiPadding" property must be of type boolean or null.');
595 }
596 this.config.options.enableAnsiPadding = config.options.enableAnsiPadding;
597 }
598 if (config.options.enableAnsiWarnings !== undefined) {
599 if (typeof config.options.enableAnsiWarnings !== 'boolean' && config.options.enableAnsiWarnings !== null) {
600 throw new TypeError('The "config.options.enableAnsiWarnings" property must be of type boolean or null.');
601 }
602 this.config.options.enableAnsiWarnings = config.options.enableAnsiWarnings;
603 }
604 if (config.options.enableArithAbort !== undefined) {
605 if (typeof config.options.enableArithAbort !== 'boolean' && config.options.enableArithAbort !== null) {
606 throw new TypeError('The "config.options.enableArithAbort" property must be of type boolean or null.');
607 }
608 this.config.options.enableArithAbort = config.options.enableArithAbort;
609 }
610 if (config.options.enableConcatNullYieldsNull !== undefined) {
611 if (typeof config.options.enableConcatNullYieldsNull !== 'boolean' && config.options.enableConcatNullYieldsNull !== null) {
612 throw new TypeError('The "config.options.enableConcatNullYieldsNull" property must be of type boolean or null.');
613 }
614 this.config.options.enableConcatNullYieldsNull = config.options.enableConcatNullYieldsNull;
615 }
616 if (config.options.enableCursorCloseOnCommit !== undefined) {
617 if (typeof config.options.enableCursorCloseOnCommit !== 'boolean' && config.options.enableCursorCloseOnCommit !== null) {
618 throw new TypeError('The "config.options.enableCursorCloseOnCommit" property must be of type boolean or null.');
619 }
620 this.config.options.enableCursorCloseOnCommit = config.options.enableCursorCloseOnCommit;
621 }
622 if (config.options.enableImplicitTransactions !== undefined) {
623 if (typeof config.options.enableImplicitTransactions !== 'boolean' && config.options.enableImplicitTransactions !== null) {
624 throw new TypeError('The "config.options.enableImplicitTransactions" property must be of type boolean or null.');
625 }
626 this.config.options.enableImplicitTransactions = config.options.enableImplicitTransactions;
627 }
628 if (config.options.enableNumericRoundabort !== undefined) {
629 if (typeof config.options.enableNumericRoundabort !== 'boolean' && config.options.enableNumericRoundabort !== null) {
630 throw new TypeError('The "config.options.enableNumericRoundabort" property must be of type boolean or null.');
631 }
632 this.config.options.enableNumericRoundabort = config.options.enableNumericRoundabort;
633 }
634 if (config.options.enableQuotedIdentifier !== undefined) {
635 if (typeof config.options.enableQuotedIdentifier !== 'boolean' && config.options.enableQuotedIdentifier !== null) {
636 throw new TypeError('The "config.options.enableQuotedIdentifier" property must be of type boolean or null.');
637 }
638 this.config.options.enableQuotedIdentifier = config.options.enableQuotedIdentifier;
639 }
640 if (config.options.encrypt !== undefined) {
641 if (typeof config.options.encrypt !== 'boolean') {
642 if (config.options.encrypt !== 'strict') {
643 throw new TypeError('The "encrypt" property must be set to "strict", or of type boolean.');
644 }
645 }
646 this.config.options.encrypt = config.options.encrypt;
647 }
648 if (config.options.fallbackToDefaultDb !== undefined) {
649 if (typeof config.options.fallbackToDefaultDb !== 'boolean') {
650 throw new TypeError('The "config.options.fallbackToDefaultDb" property must be of type boolean.');
651 }
652 this.config.options.fallbackToDefaultDb = config.options.fallbackToDefaultDb;
653 }
654 if (config.options.instanceName !== undefined) {
655 if (typeof config.options.instanceName !== 'string') {
656 throw new TypeError('The "config.options.instanceName" property must be of type string.');
657 }
658 this.config.options.instanceName = config.options.instanceName;
659 this.config.options.port = undefined;
660 }
661 if (config.options.isolationLevel !== undefined) {
662 (0, _transaction.assertValidIsolationLevel)(config.options.isolationLevel, 'config.options.isolationLevel');
663 this.config.options.isolationLevel = config.options.isolationLevel;
664 }
665 if (config.options.language !== undefined) {
666 if (typeof config.options.language !== 'string' && config.options.language !== null) {
667 throw new TypeError('The "config.options.language" property must be of type string or null.');
668 }
669 this.config.options.language = config.options.language;
670 }
671 if (config.options.localAddress !== undefined) {
672 if (typeof config.options.localAddress !== 'string') {
673 throw new TypeError('The "config.options.localAddress" property must be of type string.');
674 }
675 this.config.options.localAddress = config.options.localAddress;
676 }
677 if (config.options.multiSubnetFailover !== undefined) {
678 if (typeof config.options.multiSubnetFailover !== 'boolean') {
679 throw new TypeError('The "config.options.multiSubnetFailover" property must be of type boolean.');
680 }
681 this.config.options.multiSubnetFailover = config.options.multiSubnetFailover;
682 }
683 if (config.options.packetSize !== undefined) {
684 if (typeof config.options.packetSize !== 'number') {
685 throw new TypeError('The "config.options.packetSize" property must be of type number.');
686 }
687 this.config.options.packetSize = config.options.packetSize;
688 }
689 if (config.options.port !== undefined) {
690 if (typeof config.options.port !== 'number') {
691 throw new TypeError('The "config.options.port" property must be of type number.');
692 }
693 if (config.options.port <= 0 || config.options.port >= 65536) {
694 throw new RangeError('The "config.options.port" property must be > 0 and < 65536');
695 }
696 this.config.options.port = config.options.port;
697 this.config.options.instanceName = undefined;
698 }
699 if (config.options.readOnlyIntent !== undefined) {
700 if (typeof config.options.readOnlyIntent !== 'boolean') {
701 throw new TypeError('The "config.options.readOnlyIntent" property must be of type boolean.');
702 }
703 this.config.options.readOnlyIntent = config.options.readOnlyIntent;
704 }
705 if (config.options.requestTimeout !== undefined) {
706 if (typeof config.options.requestTimeout !== 'number') {
707 throw new TypeError('The "config.options.requestTimeout" property must be of type number.');
708 }
709 this.config.options.requestTimeout = config.options.requestTimeout;
710 }
711 if (config.options.maxRetriesOnTransientErrors !== undefined) {
712 if (typeof config.options.maxRetriesOnTransientErrors !== 'number') {
713 throw new TypeError('The "config.options.maxRetriesOnTransientErrors" property must be of type number.');
714 }
715 if (config.options.maxRetriesOnTransientErrors < 0) {
716 throw new TypeError('The "config.options.maxRetriesOnTransientErrors" property must be equal or greater than 0.');
717 }
718 this.config.options.maxRetriesOnTransientErrors = config.options.maxRetriesOnTransientErrors;
719 }
720 if (config.options.connectionRetryInterval !== undefined) {
721 if (typeof config.options.connectionRetryInterval !== 'number') {
722 throw new TypeError('The "config.options.connectionRetryInterval" property must be of type number.');
723 }
724 if (config.options.connectionRetryInterval <= 0) {
725 throw new TypeError('The "config.options.connectionRetryInterval" property must be greater than 0.');
726 }
727 this.config.options.connectionRetryInterval = config.options.connectionRetryInterval;
728 }
729 if (config.options.rowCollectionOnDone !== undefined) {
730 if (typeof config.options.rowCollectionOnDone !== 'boolean') {
731 throw new TypeError('The "config.options.rowCollectionOnDone" property must be of type boolean.');
732 }
733 this.config.options.rowCollectionOnDone = config.options.rowCollectionOnDone;
734 }
735 if (config.options.rowCollectionOnRequestCompletion !== undefined) {
736 if (typeof config.options.rowCollectionOnRequestCompletion !== 'boolean') {
737 throw new TypeError('The "config.options.rowCollectionOnRequestCompletion" property must be of type boolean.');
738 }
739 this.config.options.rowCollectionOnRequestCompletion = config.options.rowCollectionOnRequestCompletion;
740 }
741 if (config.options.tdsVersion !== undefined) {
742 if (typeof config.options.tdsVersion !== 'string') {
743 throw new TypeError('The "config.options.tdsVersion" property must be of type string.');
744 }
745 this.config.options.tdsVersion = config.options.tdsVersion;
746 }
747 if (config.options.textsize !== undefined) {
748 if (typeof config.options.textsize !== 'number' && config.options.textsize !== null) {
749 throw new TypeError('The "config.options.textsize" property must be of type number or null.');
750 }
751 if (config.options.textsize > 2147483647) {
752 throw new TypeError('The "config.options.textsize" can\'t be greater than 2147483647.');
753 } else if (config.options.textsize < -1) {
754 throw new TypeError('The "config.options.textsize" can\'t be smaller than -1.');
755 }
756 this.config.options.textsize = config.options.textsize | 0;
757 }
758 if (config.options.trustServerCertificate !== undefined) {
759 if (typeof config.options.trustServerCertificate !== 'boolean') {
760 throw new TypeError('The "config.options.trustServerCertificate" property must be of type boolean.');
761 }
762 this.config.options.trustServerCertificate = config.options.trustServerCertificate;
763 }
764 if (config.options.serverName !== undefined) {
765 if (typeof config.options.serverName !== 'string') {
766 throw new TypeError('The "config.options.serverName" property must be of type string.');
767 }
768 this.config.options.serverName = config.options.serverName;
769 }
770 if (config.options.useColumnNames !== undefined) {
771 if (typeof config.options.useColumnNames !== 'boolean') {
772 throw new TypeError('The "config.options.useColumnNames" property must be of type boolean.');
773 }
774 this.config.options.useColumnNames = config.options.useColumnNames;
775 }
776 if (config.options.useUTC !== undefined) {
777 if (typeof config.options.useUTC !== 'boolean') {
778 throw new TypeError('The "config.options.useUTC" property must be of type boolean.');
779 }
780 this.config.options.useUTC = config.options.useUTC;
781 }
782 if (config.options.workstationId !== undefined) {
783 if (typeof config.options.workstationId !== 'string') {
784 throw new TypeError('The "config.options.workstationId" property must be of type string.');
785 }
786 this.config.options.workstationId = config.options.workstationId;
787 }
788 if (config.options.lowerCaseGuids !== undefined) {
789 if (typeof config.options.lowerCaseGuids !== 'boolean') {
790 throw new TypeError('The "config.options.lowerCaseGuids" property must be of type boolean.');
791 }
792 this.config.options.lowerCaseGuids = config.options.lowerCaseGuids;
793 }
794 }
795 this.secureContextOptions = this.config.options.cryptoCredentialsDetails;
796 if (this.secureContextOptions.secureOptions === undefined) {
797 // If the caller has not specified their own `secureOptions`,
798 // we set `SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS` here.
799 // Older SQL Server instances running on older Windows versions have
800 // trouble with the BEAST workaround in OpenSSL.
801 // As BEAST is a browser specific exploit, we can just disable this option here.
802 this.secureContextOptions = Object.create(this.secureContextOptions, {
803 secureOptions: {
804 value: _constants.default.SSL_OP_DONT_INSERT_EMPTY_FRAGMENTS
805 }
806 });
807 }
808 this.debug = this.createDebug();
809 this.inTransaction = false;
810 this.transactionDescriptors = [Buffer.from([0, 0, 0, 0, 0, 0, 0, 0])];
811
812 // 'beginTransaction', 'commitTransaction' and 'rollbackTransaction'
813 // events are utilized to maintain inTransaction property state which in
814 // turn is used in managing transactions. These events are only fired for
815 // TDS version 7.2 and beyond. The properties below are used to emulate
816 // equivalent behavior for TDS versions before 7.2.
817 this.transactionDepth = 0;
818 this.isSqlBatch = false;
819 this.closed = false;
820 this.messageBuffer = Buffer.alloc(0);
821 this.curTransientRetryCount = 0;
822 this.transientErrorLookup = new _transientErrorLookup.TransientErrorLookup();
823 this.state = this.STATE.INITIALIZED;
824 this._cancelAfterRequestSent = () => {
825 this.messageIo.sendMessage(_packet.TYPE.ATTENTION);
826 this.createCancelTimer();
827 };
828 }
829 connect(connectListener) {
830 if (this.state !== this.STATE.INITIALIZED) {
831 throw new _errors.ConnectionError('`.connect` can not be called on a Connection in `' + this.state.name + '` state.');
832 }
833 if (connectListener) {
834 const onConnect = err => {
835 this.removeListener('error', onError);
836 connectListener(err);
837 };
838 const onError = err => {
839 this.removeListener('connect', onConnect);
840 connectListener(err);
841 };
842 this.once('connect', onConnect);
843 this.once('error', onError);
844 }
845 this.transitionTo(this.STATE.CONNECTING);
846 }
847
848 /**
849 * The server has reported that the charset has changed.
850 */
851
852 /**
853 * The attempt to connect and validate has completed.
854 */
855
856 /**
857 * The server has reported that the active database has changed.
858 * This may be as a result of a successful login, or a `use` statement.
859 */
860
861 /**
862 * A debug message is available. It may be logged or ignored.
863 */
864
865 /**
866 * Internal error occurs.
867 */
868
869 /**
870 * The server has issued an error message.
871 */
872
873 /**
874 * The connection has ended.
875 *
876 * This may be as a result of the client calling [[close]], the server
877 * closing the connection, or a network error.
878 */
879
880 /**
881 * The server has issued an information message.
882 */
883
884 /**
885 * The server has reported that the language has changed.
886 */
887
888 /**
889 * The connection was reset.
890 */
891
892 /**
893 * A secure connection has been established.
894 */
895
896 on(event, listener) {
897 return super.on(event, listener);
898 }
899
900 /**
901 * @private
902 */
903
904 /**
905 * @private
906 */
907
908 /**
909 * @private
910 */
911
912 /**
913 * @private
914 */
915
916 /**
917 * @private
918 */
919
920 /**
921 * @private
922 */
923
924 /**
925 * @private
926 */
927
928 /**
929 * @private
930 */
931
932 /**
933 * @private
934 */
935
936 /**
937 * @private
938 */
939
940 /**
941 * @private
942 */
943
944 /**
945 * @private
946 */
947
948 /**
949 * @private
950 */
951
952 /**
953 * @private
954 */
955
956 emit(event, ...args) {
957 return super.emit(event, ...args);
958 }
959
960 /**
961 * Closes the connection to the database.
962 *
963 * The [[Event_end]] will be emitted once the connection has been closed.
964 */
965 close() {
966 this.transitionTo(this.STATE.FINAL);
967 }
968
969 /**
970 * @private
971 */
972 initialiseConnection() {
973 const signal = this.createConnectTimer();
974 if (this.config.options.port) {
975 return this.connectOnPort(this.config.options.port, this.config.options.multiSubnetFailover, signal, this.config.options.connector);
976 } else {
977 return (0, _instanceLookup.instanceLookup)({
978 server: this.config.server,
979 instanceName: this.config.options.instanceName,
980 timeout: this.config.options.connectTimeout,
981 signal: signal
982 }).then(port => {
983 process.nextTick(() => {
984 this.connectOnPort(port, this.config.options.multiSubnetFailover, signal, this.config.options.connector);
985 });
986 }, err => {
987 this.clearConnectTimer();
988 if (signal.aborted) {
989 // Ignore the AbortError for now, this is still handled by the connectTimer firing
990 return;
991 }
992 process.nextTick(() => {
993 this.emit('connect', new _errors.ConnectionError(err.message, 'EINSTLOOKUP'));
994 });
995 });
996 }
997 }
998
999 /**
1000 * @private
1001 */
1002 cleanupConnection(cleanupType) {
1003 if (!this.closed) {
1004 this.clearConnectTimer();
1005 this.clearRequestTimer();
1006 this.clearRetryTimer();
1007 this.closeConnection();
1008 if (cleanupType === CLEANUP_TYPE.REDIRECT) {
1009 this.emit('rerouting');
1010 } else if (cleanupType !== CLEANUP_TYPE.RETRY) {
1011 process.nextTick(() => {
1012 this.emit('end');
1013 });
1014 }
1015 const request = this.request;
1016 if (request) {
1017 const err = new _errors.RequestError('Connection closed before request completed.', 'ECLOSE');
1018 request.callback(err);
1019 this.request = undefined;
1020 }
1021 this.closed = true;
1022 this.loginError = undefined;
1023 }
1024 }
1025
1026 /**
1027 * @private
1028 */
1029 createDebug() {
1030 const debug = new _debug.default(this.config.options.debug);
1031 debug.on('debug', message => {
1032 this.emit('debug', message);
1033 });
1034 return debug;
1035 }
1036
1037 /**
1038 * @private
1039 */
1040 createTokenStreamParser(message, handler) {
1041 return new _tokenStreamParser.Parser(message, this.debug, handler, this.config.options);
1042 }
1043 socketHandlingForSendPreLogin(socket) {
1044 socket.on('error', error => {
1045 this.socketError(error);
1046 });
1047 socket.on('close', () => {
1048 this.socketClose();
1049 });
1050 socket.on('end', () => {
1051 this.socketEnd();
1052 });
1053 socket.setKeepAlive(true, KEEP_ALIVE_INITIAL_DELAY);
1054 this.messageIo = new _messageIo.default(socket, this.config.options.packetSize, this.debug);
1055 this.messageIo.on('secure', cleartext => {
1056 this.emit('secure', cleartext);
1057 });
1058 this.socket = socket;
1059 this.closed = false;
1060 this.debug.log('connected to ' + this.config.server + ':' + this.config.options.port);
1061 this.sendPreLogin();
1062 this.transitionTo(this.STATE.SENT_PRELOGIN);
1063 }
1064 wrapWithTls(socket, signal) {
1065 signal.throwIfAborted();
1066 return new Promise((resolve, reject) => {
1067 const secureContext = tls.createSecureContext(this.secureContextOptions);
1068 // If connect to an ip address directly,
1069 // need to set the servername to an empty string
1070 // if the user has not given a servername explicitly
1071 const serverName = !net.isIP(this.config.server) ? this.config.server : '';
1072 const encryptOptions = {
1073 host: this.config.server,
1074 socket: socket,
1075 ALPNProtocols: ['tds/8.0'],
1076 secureContext: secureContext,
1077 servername: this.config.options.serverName ? this.config.options.serverName : serverName
1078 };
1079 const encryptsocket = tls.connect(encryptOptions);
1080 const onAbort = () => {
1081 encryptsocket.removeListener('error', onError);
1082 encryptsocket.removeListener('connect', onConnect);
1083 encryptsocket.destroy();
1084 reject(signal.reason);
1085 };
1086 const onError = err => {
1087 signal.removeEventListener('abort', onAbort);
1088 encryptsocket.removeListener('error', onError);
1089 encryptsocket.removeListener('connect', onConnect);
1090 encryptsocket.destroy();
1091 reject(err);
1092 };
1093 const onConnect = () => {
1094 signal.removeEventListener('abort', onAbort);
1095 encryptsocket.removeListener('error', onError);
1096 encryptsocket.removeListener('connect', onConnect);
1097 resolve(encryptsocket);
1098 };
1099 signal.addEventListener('abort', onAbort, {
1100 once: true
1101 });
1102 encryptsocket.on('error', onError);
1103 encryptsocket.on('secureConnect', onConnect);
1104 });
1105 }
1106 connectOnPort(port, multiSubnetFailover, signal, customConnector) {
1107 const connectOpts = {
1108 host: this.routingData ? this.routingData.server : this.config.server,
1109 port: this.routingData ? this.routingData.port : port,
1110 localAddress: this.config.options.localAddress
1111 };
1112 const connect = customConnector || (multiSubnetFailover ? _connector.connectInParallel : _connector.connectInSequence);
1113 (async () => {
1114 let socket = await connect(connectOpts, _dns.default.lookup, signal);
1115 if (this.config.options.encrypt === 'strict') {
1116 try {
1117 // Wrap the socket with TLS for TDS 8.0
1118 socket = await this.wrapWithTls(socket, signal);
1119 } catch (err) {
1120 socket.end();
1121 throw err;
1122 }
1123 }
1124 this.socketHandlingForSendPreLogin(socket);
1125 })().catch(err => {
1126 this.clearConnectTimer();
1127 if (signal.aborted) {
1128 return;
1129 }
1130 process.nextTick(() => {
1131 this.socketError(err);
1132 });
1133 });
1134 }
1135
1136 /**
1137 * @private
1138 */
1139 closeConnection() {
1140 if (this.socket) {
1141 this.socket.destroy();
1142 }
1143 }
1144
1145 /**
1146 * @private
1147 */
1148 createConnectTimer() {
1149 const controller = new AbortController();
1150 this.connectTimer = setTimeout(() => {
1151 controller.abort();
1152 this.connectTimeout();
1153 }, this.config.options.connectTimeout);
1154 return controller.signal;
1155 }
1156
1157 /**
1158 * @private
1159 */
1160 createCancelTimer() {
1161 this.clearCancelTimer();
1162 const timeout = this.config.options.cancelTimeout;
1163 if (timeout > 0) {
1164 this.cancelTimer = setTimeout(() => {
1165 this.cancelTimeout();
1166 }, timeout);
1167 }
1168 }
1169
1170 /**
1171 * @private
1172 */
1173 createRequestTimer() {
1174 this.clearRequestTimer(); // release old timer, just to be safe
1175 const request = this.request;
1176 const timeout = request.timeout !== undefined ? request.timeout : this.config.options.requestTimeout;
1177 if (timeout) {
1178 this.requestTimer = setTimeout(() => {
1179 this.requestTimeout();
1180 }, timeout);
1181 }
1182 }
1183
1184 /**
1185 * @private
1186 */
1187 createRetryTimer() {
1188 this.clearRetryTimer();
1189 this.retryTimer = setTimeout(() => {
1190 this.retryTimeout();
1191 }, this.config.options.connectionRetryInterval);
1192 }
1193
1194 /**
1195 * @private
1196 */
1197 connectTimeout() {
1198 const hostPostfix = this.config.options.port ? `:${this.config.options.port}` : `\\${this.config.options.instanceName}`;
1199 // If we have routing data stored, this connection has been redirected
1200 const server = this.routingData ? this.routingData.server : this.config.server;
1201 const port = this.routingData ? `:${this.routingData.port}` : hostPostfix;
1202 // Grab the target host from the connection configuration, and from a redirect message
1203 // otherwise, leave the message empty.
1204 const routingMessage = this.routingData ? ` (redirected from ${this.config.server}${hostPostfix})` : '';
1205 const message = `Failed to connect to ${server}${port}${routingMessage} in ${this.config.options.connectTimeout}ms`;
1206 this.debug.log(message);
1207 this.emit('connect', new _errors.ConnectionError(message, 'ETIMEOUT'));
1208 this.connectTimer = undefined;
1209 this.dispatchEvent('connectTimeout');
1210 }
1211
1212 /**
1213 * @private
1214 */
1215 cancelTimeout() {
1216 const message = `Failed to cancel request in ${this.config.options.cancelTimeout}ms`;
1217 this.debug.log(message);
1218 this.dispatchEvent('socketError', new _errors.ConnectionError(message, 'ETIMEOUT'));
1219 }
1220
1221 /**
1222 * @private
1223 */
1224 requestTimeout() {
1225 this.requestTimer = undefined;
1226 const request = this.request;
1227 request.cancel();
1228 const timeout = request.timeout !== undefined ? request.timeout : this.config.options.requestTimeout;
1229 const message = 'Timeout: Request failed to complete in ' + timeout + 'ms';
1230 request.error = new _errors.RequestError(message, 'ETIMEOUT');
1231 }
1232
1233 /**
1234 * @private
1235 */
1236 retryTimeout() {
1237 this.retryTimer = undefined;
1238 this.emit('retry');
1239 this.transitionTo(this.STATE.CONNECTING);
1240 }
1241
1242 /**
1243 * @private
1244 */
1245 clearConnectTimer() {
1246 if (this.connectTimer) {
1247 clearTimeout(this.connectTimer);
1248 this.connectTimer = undefined;
1249 }
1250 }
1251
1252 /**
1253 * @private
1254 */
1255 clearCancelTimer() {
1256 if (this.cancelTimer) {
1257 clearTimeout(this.cancelTimer);
1258 this.cancelTimer = undefined;
1259 }
1260 }
1261
1262 /**
1263 * @private
1264 */
1265 clearRequestTimer() {
1266 if (this.requestTimer) {
1267 clearTimeout(this.requestTimer);
1268 this.requestTimer = undefined;
1269 }
1270 }
1271
1272 /**
1273 * @private
1274 */
1275 clearRetryTimer() {
1276 if (this.retryTimer) {
1277 clearTimeout(this.retryTimer);
1278 this.retryTimer = undefined;
1279 }
1280 }
1281
1282 /**
1283 * @private
1284 */
1285 transitionTo(newState) {
1286 if (this.state === newState) {
1287 this.debug.log('State is already ' + newState.name);
1288 return;
1289 }
1290 if (this.state && this.state.exit) {
1291 this.state.exit.call(this, newState);
1292 }
1293 this.debug.log('State change: ' + (this.state ? this.state.name : 'undefined') + ' -> ' + newState.name);
1294 this.state = newState;
1295 if (this.state.enter) {
1296 this.state.enter.apply(this);
1297 }
1298 }
1299
1300 /**
1301 * @private
1302 */
1303 getEventHandler(eventName) {
1304 const handler = this.state.events[eventName];
1305 if (!handler) {
1306 throw new Error(`No event '${eventName}' in state '${this.state.name}'`);
1307 }
1308 return handler;
1309 }
1310
1311 /**
1312 * @private
1313 */
1314 dispatchEvent(eventName, ...args) {
1315 const handler = this.state.events[eventName];
1316 if (handler) {
1317 handler.apply(this, args);
1318 } else {
1319 this.emit('error', new Error(`No event '${eventName}' in state '${this.state.name}'`));
1320 this.close();
1321 }
1322 }
1323
1324 /**
1325 * @private
1326 */
1327 socketError(error) {
1328 if (this.state === this.STATE.CONNECTING || this.state === this.STATE.SENT_TLSSSLNEGOTIATION) {
1329 const hostPostfix = this.config.options.port ? `:${this.config.options.port}` : `\\${this.config.options.instanceName}`;
1330 // If we have routing data stored, this connection has been redirected
1331 const server = this.routingData ? this.routingData.server : this.config.server;
1332 const port = this.routingData ? `:${this.routingData.port}` : hostPostfix;
1333 // Grab the target host from the connection configuration, and from a redirect message
1334 // otherwise, leave the message empty.
1335 const routingMessage = this.routingData ? ` (redirected from ${this.config.server}${hostPostfix})` : '';
1336 const message = `Failed to connect to ${server}${port}${routingMessage} - ${error.message}`;
1337 this.debug.log(message);
1338 this.emit('connect', new _errors.ConnectionError(message, 'ESOCKET'));
1339 } else {
1340 const message = `Connection lost - ${error.message}`;
1341 this.debug.log(message);
1342 this.emit('error', new _errors.ConnectionError(message, 'ESOCKET'));
1343 }
1344 this.dispatchEvent('socketError', error);
1345 }
1346
1347 /**
1348 * @private
1349 */
1350 socketEnd() {
1351 this.debug.log('socket ended');
1352 if (this.state !== this.STATE.FINAL) {
1353 const error = new Error('socket hang up');
1354 error.code = 'ECONNRESET';
1355 this.socketError(error);
1356 }
1357 }
1358
1359 /**
1360 * @private
1361 */
1362 socketClose() {
1363 this.debug.log('connection to ' + this.config.server + ':' + this.config.options.port + ' closed');
1364 if (this.state === this.STATE.REROUTING) {
1365 this.debug.log('Rerouting to ' + this.routingData.server + ':' + this.routingData.port);
1366 this.dispatchEvent('reconnect');
1367 } else if (this.state === this.STATE.TRANSIENT_FAILURE_RETRY) {
1368 const server = this.routingData ? this.routingData.server : this.config.server;
1369 const port = this.routingData ? this.routingData.port : this.config.options.port;
1370 this.debug.log('Retry after transient failure connecting to ' + server + ':' + port);
1371 this.dispatchEvent('retry');
1372 } else {
1373 this.transitionTo(this.STATE.FINAL);
1374 }
1375 }
1376
1377 /**
1378 * @private
1379 */
1380 sendPreLogin() {
1381 const [, major, minor, build] = /^(\d+)\.(\d+)\.(\d+)/.exec(_package.version) ?? ['0.0.0', '0', '0', '0'];
1382 const payload = new _preloginPayload.default({
1383 // If encrypt setting is set to 'strict', then we should have already done the encryption before calling
1384 // this function. Therefore, the encrypt will be set to false here.
1385 // Otherwise, we will set encrypt here based on the encrypt Boolean value from the configuration.
1386 encrypt: typeof this.config.options.encrypt === 'boolean' && this.config.options.encrypt,
1387 version: {
1388 major: Number(major),
1389 minor: Number(minor),
1390 build: Number(build),
1391 subbuild: 0
1392 }
1393 });
1394 this.messageIo.sendMessage(_packet.TYPE.PRELOGIN, payload.data);
1395 this.debug.payload(function () {
1396 return payload.toString(' ');
1397 });
1398 }
1399
1400 /**
1401 * @private
1402 */
1403 sendLogin7Packet() {
1404 const payload = new _login7Payload.default({
1405 tdsVersion: _tdsVersions.versions[this.config.options.tdsVersion],
1406 packetSize: this.config.options.packetSize,
1407 clientProgVer: 0,
1408 clientPid: process.pid,
1409 connectionId: 0,
1410 clientTimeZone: new Date().getTimezoneOffset(),
1411 clientLcid: 0x00000409
1412 });
1413 const {
1414 authentication
1415 } = this.config;
1416 switch (authentication.type) {
1417 case 'azure-active-directory-password':
1418 payload.fedAuth = {
1419 type: 'ADAL',
1420 echo: this.fedAuthRequired,
1421 workflow: 'default'
1422 };
1423 break;
1424 case 'azure-active-directory-access-token':
1425 payload.fedAuth = {
1426 type: 'SECURITYTOKEN',
1427 echo: this.fedAuthRequired,
1428 fedAuthToken: authentication.options.token
1429 };
1430 break;
1431 case 'azure-active-directory-msi-vm':
1432 case 'azure-active-directory-default':
1433 case 'azure-active-directory-msi-app-service':
1434 case 'azure-active-directory-service-principal-secret':
1435 payload.fedAuth = {
1436 type: 'ADAL',
1437 echo: this.fedAuthRequired,
1438 workflow: 'integrated'
1439 };
1440 break;
1441 case 'ntlm':
1442 payload.sspi = (0, _ntlm.createNTLMRequest)({
1443 domain: authentication.options.domain
1444 });
1445 break;
1446 default:
1447 payload.userName = authentication.options.userName;
1448 payload.password = authentication.options.password;
1449 }
1450 payload.hostname = this.config.options.workstationId || _os.default.hostname();
1451 payload.serverName = this.routingData ? this.routingData.server : this.config.server;
1452 payload.appName = this.config.options.appName || 'Tedious';
1453 payload.libraryName = _library.name;
1454 payload.language = this.config.options.language;
1455 payload.database = this.config.options.database;
1456 payload.clientId = Buffer.from([1, 2, 3, 4, 5, 6]);
1457 payload.readOnlyIntent = this.config.options.readOnlyIntent;
1458 payload.initDbFatal = !this.config.options.fallbackToDefaultDb;
1459 this.routingData = undefined;
1460 this.messageIo.sendMessage(_packet.TYPE.LOGIN7, payload.toBuffer());
1461 this.debug.payload(function () {
1462 return payload.toString(' ');
1463 });
1464 }
1465
1466 /**
1467 * @private
1468 */
1469 sendFedAuthTokenMessage(token) {
1470 const accessTokenLen = Buffer.byteLength(token, 'ucs2');
1471 const data = Buffer.alloc(8 + accessTokenLen);
1472 let offset = 0;
1473 offset = data.writeUInt32LE(accessTokenLen + 4, offset);
1474 offset = data.writeUInt32LE(accessTokenLen, offset);
1475 data.write(token, offset, 'ucs2');
1476 this.messageIo.sendMessage(_packet.TYPE.FEDAUTH_TOKEN, data);
1477 // sent the fedAuth token message, the rest is similar to standard login 7
1478 this.transitionTo(this.STATE.SENT_LOGIN7_WITH_STANDARD_LOGIN);
1479 }
1480
1481 /**
1482 * @private
1483 */
1484 sendInitialSql() {
1485 const payload = new _sqlbatchPayload.default(this.getInitialSql(), this.currentTransactionDescriptor(), this.config.options);
1486 const message = new _message.default({
1487 type: _packet.TYPE.SQL_BATCH
1488 });
1489 this.messageIo.outgoingMessageStream.write(message);
1490 _stream.Readable.from(payload).pipe(message);
1491 }
1492
1493 /**
1494 * @private
1495 */
1496 getInitialSql() {
1497 const options = [];
1498 if (this.config.options.enableAnsiNull === true) {
1499 options.push('set ansi_nulls on');
1500 } else if (this.config.options.enableAnsiNull === false) {
1501 options.push('set ansi_nulls off');
1502 }
1503 if (this.config.options.enableAnsiNullDefault === true) {
1504 options.push('set ansi_null_dflt_on on');
1505 } else if (this.config.options.enableAnsiNullDefault === false) {
1506 options.push('set ansi_null_dflt_on off');
1507 }
1508 if (this.config.options.enableAnsiPadding === true) {
1509 options.push('set ansi_padding on');
1510 } else if (this.config.options.enableAnsiPadding === false) {
1511 options.push('set ansi_padding off');
1512 }
1513 if (this.config.options.enableAnsiWarnings === true) {
1514 options.push('set ansi_warnings on');
1515 } else if (this.config.options.enableAnsiWarnings === false) {
1516 options.push('set ansi_warnings off');
1517 }
1518 if (this.config.options.enableArithAbort === true) {
1519 options.push('set arithabort on');
1520 } else if (this.config.options.enableArithAbort === false) {
1521 options.push('set arithabort off');
1522 }
1523 if (this.config.options.enableConcatNullYieldsNull === true) {
1524 options.push('set concat_null_yields_null on');
1525 } else if (this.config.options.enableConcatNullYieldsNull === false) {
1526 options.push('set concat_null_yields_null off');
1527 }
1528 if (this.config.options.enableCursorCloseOnCommit === true) {
1529 options.push('set cursor_close_on_commit on');
1530 } else if (this.config.options.enableCursorCloseOnCommit === false) {
1531 options.push('set cursor_close_on_commit off');
1532 }
1533 if (this.config.options.datefirst !== null) {
1534 options.push(`set datefirst ${this.config.options.datefirst}`);
1535 }
1536 if (this.config.options.dateFormat !== null) {
1537 options.push(`set dateformat ${this.config.options.dateFormat}`);
1538 }
1539 if (this.config.options.enableImplicitTransactions === true) {
1540 options.push('set implicit_transactions on');
1541 } else if (this.config.options.enableImplicitTransactions === false) {
1542 options.push('set implicit_transactions off');
1543 }
1544 if (this.config.options.language !== null) {
1545 options.push(`set language ${this.config.options.language}`);
1546 }
1547 if (this.config.options.enableNumericRoundabort === true) {
1548 options.push('set numeric_roundabort on');
1549 } else if (this.config.options.enableNumericRoundabort === false) {
1550 options.push('set numeric_roundabort off');
1551 }
1552 if (this.config.options.enableQuotedIdentifier === true) {
1553 options.push('set quoted_identifier on');
1554 } else if (this.config.options.enableQuotedIdentifier === false) {
1555 options.push('set quoted_identifier off');
1556 }
1557 if (this.config.options.textsize !== null) {
1558 options.push(`set textsize ${this.config.options.textsize}`);
1559 }
1560 if (this.config.options.connectionIsolationLevel !== null) {
1561 options.push(`set transaction isolation level ${this.getIsolationLevelText(this.config.options.connectionIsolationLevel)}`);
1562 }
1563 if (this.config.options.abortTransactionOnError === true) {
1564 options.push('set xact_abort on');
1565 } else if (this.config.options.abortTransactionOnError === false) {
1566 options.push('set xact_abort off');
1567 }
1568 return options.join('\n');
1569 }
1570
1571 /**
1572 * @private
1573 */
1574 processedInitialSql() {
1575 this.clearConnectTimer();
1576 this.emit('connect');
1577 }
1578
1579 /**
1580 * Execute the SQL batch represented by [[Request]].
1581 * There is no param support, and unlike [[Request.execSql]],
1582 * it is not likely that SQL Server will reuse the execution plan it generates for the SQL.
1583 *
1584 * In almost all cases, [[Request.execSql]] will be a better choice.
1585 *
1586 * @param request A [[Request]] object representing the request.
1587 */
1588 execSqlBatch(request) {
1589 this.makeRequest(request, _packet.TYPE.SQL_BATCH, new _sqlbatchPayload.default(request.sqlTextOrProcedure, this.currentTransactionDescriptor(), this.config.options));
1590 }
1591
1592 /**
1593 * Execute the SQL represented by [[Request]].
1594 *
1595 * As `sp_executesql` is used to execute the SQL, if the same SQL is executed multiples times
1596 * using this function, the SQL Server query optimizer is likely to reuse the execution plan it generates
1597 * for the first execution. This may also result in SQL server treating the request like a stored procedure
1598 * which can result in the [[Event_doneInProc]] or [[Event_doneProc]] events being emitted instead of the
1599 * [[Event_done]] event you might expect. Using [[execSqlBatch]] will prevent this from occurring but may have a negative performance impact.
1600 *
1601 * Beware of the way that scoping rules apply, and how they may [affect local temp tables](http://weblogs.sqlteam.com/mladenp/archive/2006/11/03/17197.aspx)
1602 * If you're running in to scoping issues, then [[execSqlBatch]] may be a better choice.
1603 * See also [issue #24](https://github.com/pekim/tedious/issues/24)
1604 *
1605 * @param request A [[Request]] object representing the request.
1606 */
1607 execSql(request) {
1608 try {
1609 request.validateParameters(this.databaseCollation);
1610 } catch (error) {
1611 request.error = error;
1612 process.nextTick(() => {
1613 this.debug.log(error.message);
1614 request.callback(error);
1615 });
1616 return;
1617 }
1618 const parameters = [];
1619 parameters.push({
1620 type: _dataType.TYPES.NVarChar,
1621 name: 'statement',
1622 value: request.sqlTextOrProcedure,
1623 output: false,
1624 length: undefined,
1625 precision: undefined,
1626 scale: undefined
1627 });
1628 if (request.parameters.length) {
1629 parameters.push({
1630 type: _dataType.TYPES.NVarChar,
1631 name: 'params',
1632 value: request.makeParamsParameter(request.parameters),
1633 output: false,
1634 length: undefined,
1635 precision: undefined,
1636 scale: undefined
1637 });
1638 parameters.push(...request.parameters);
1639 }
1640 this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default(_specialStoredProcedure.default.Sp_ExecuteSql, parameters, this.currentTransactionDescriptor(), this.config.options, this.databaseCollation));
1641 }
1642
1643 /**
1644 * Creates a new BulkLoad instance.
1645 *
1646 * @param table The name of the table to bulk-insert into.
1647 * @param options A set of bulk load options.
1648 */
1649
1650 newBulkLoad(table, callbackOrOptions, callback) {
1651 let options;
1652 if (callback === undefined) {
1653 callback = callbackOrOptions;
1654 options = {};
1655 } else {
1656 options = callbackOrOptions;
1657 }
1658 if (typeof options !== 'object') {
1659 throw new TypeError('"options" argument must be an object');
1660 }
1661 return new _bulkLoad.default(table, this.databaseCollation, this.config.options, options, callback);
1662 }
1663
1664 /**
1665 * Execute a [[BulkLoad]].
1666 *
1667 * ```js
1668 * // We want to perform a bulk load into a table with the following format:
1669 * // CREATE TABLE employees (first_name nvarchar(255), last_name nvarchar(255), day_of_birth date);
1670 *
1671 * const bulkLoad = connection.newBulkLoad('employees', (err, rowCount) => {
1672 * // ...
1673 * });
1674 *
1675 * // First, we need to specify the columns that we want to write to,
1676 * // and their definitions. These definitions must match the actual table,
1677 * // otherwise the bulk load will fail.
1678 * bulkLoad.addColumn('first_name', TYPES.NVarchar, { nullable: false });
1679 * bulkLoad.addColumn('last_name', TYPES.NVarchar, { nullable: false });
1680 * bulkLoad.addColumn('date_of_birth', TYPES.Date, { nullable: false });
1681 *
1682 * // Execute a bulk load with a predefined list of rows.
1683 * //
1684 * // Note that these rows are held in memory until the
1685 * // bulk load was performed, so if you need to write a large
1686 * // number of rows (e.g. by reading from a CSV file),
1687 * // passing an `AsyncIterable` is advisable to keep memory usage low.
1688 * connection.execBulkLoad(bulkLoad, [
1689 * { 'first_name': 'Steve', 'last_name': 'Jobs', 'day_of_birth': new Date('02-24-1955') },
1690 * { 'first_name': 'Bill', 'last_name': 'Gates', 'day_of_birth': new Date('10-28-1955') }
1691 * ]);
1692 * ```
1693 *
1694 * @param bulkLoad A previously created [[BulkLoad]].
1695 * @param rows A [[Iterable]] or [[AsyncIterable]] that contains the rows that should be bulk loaded.
1696 */
1697
1698 execBulkLoad(bulkLoad, rows) {
1699 bulkLoad.executionStarted = true;
1700 if (rows) {
1701 if (bulkLoad.streamingMode) {
1702 throw new Error("Connection.execBulkLoad can't be called with a BulkLoad that was put in streaming mode.");
1703 }
1704 if (bulkLoad.firstRowWritten) {
1705 throw new Error("Connection.execBulkLoad can't be called with a BulkLoad that already has rows written to it.");
1706 }
1707 const rowStream = _stream.Readable.from(rows);
1708
1709 // Destroy the packet transform if an error happens in the row stream,
1710 // e.g. if an error is thrown from within a generator or stream.
1711 rowStream.on('error', err => {
1712 bulkLoad.rowToPacketTransform.destroy(err);
1713 });
1714
1715 // Destroy the row stream if an error happens in the packet transform,
1716 // e.g. if the bulk load is cancelled.
1717 bulkLoad.rowToPacketTransform.on('error', err => {
1718 rowStream.destroy(err);
1719 });
1720 rowStream.pipe(bulkLoad.rowToPacketTransform);
1721 } else if (!bulkLoad.streamingMode) {
1722 // If the bulkload was not put into streaming mode by the user,
1723 // we end the rowToPacketTransform here for them.
1724 //
1725 // If it was put into streaming mode, it's the user's responsibility
1726 // to end the stream.
1727 bulkLoad.rowToPacketTransform.end();
1728 }
1729 const onCancel = () => {
1730 request.cancel();
1731 };
1732 const payload = new _bulkLoadPayload.BulkLoadPayload(bulkLoad);
1733 const request = new _request.default(bulkLoad.getBulkInsertSql(), error => {
1734 bulkLoad.removeListener('cancel', onCancel);
1735 if (error) {
1736 if (error.code === 'UNKNOWN') {
1737 error.message += ' This is likely because the schema of the BulkLoad does not match the schema of the table you are attempting to insert into.';
1738 }
1739 bulkLoad.error = error;
1740 bulkLoad.callback(error);
1741 return;
1742 }
1743 this.makeRequest(bulkLoad, _packet.TYPE.BULK_LOAD, payload);
1744 });
1745 bulkLoad.once('cancel', onCancel);
1746 this.execSqlBatch(request);
1747 }
1748
1749 /**
1750 * Prepare the SQL represented by the request.
1751 *
1752 * The request can then be used in subsequent calls to
1753 * [[execute]] and [[unprepare]]
1754 *
1755 * @param request A [[Request]] object representing the request.
1756 * Parameters only require a name and type. Parameter values are ignored.
1757 */
1758 prepare(request) {
1759 const parameters = [];
1760 parameters.push({
1761 type: _dataType.TYPES.Int,
1762 name: 'handle',
1763 value: undefined,
1764 output: true,
1765 length: undefined,
1766 precision: undefined,
1767 scale: undefined
1768 });
1769 parameters.push({
1770 type: _dataType.TYPES.NVarChar,
1771 name: 'params',
1772 value: request.parameters.length ? request.makeParamsParameter(request.parameters) : null,
1773 output: false,
1774 length: undefined,
1775 precision: undefined,
1776 scale: undefined
1777 });
1778 parameters.push({
1779 type: _dataType.TYPES.NVarChar,
1780 name: 'stmt',
1781 value: request.sqlTextOrProcedure,
1782 output: false,
1783 length: undefined,
1784 precision: undefined,
1785 scale: undefined
1786 });
1787 request.preparing = true;
1788
1789 // TODO: We need to clean up this event handler, otherwise this leaks memory
1790 request.on('returnValue', (name, value) => {
1791 if (name === 'handle') {
1792 request.handle = value;
1793 } else {
1794 request.error = new _errors.RequestError(`Tedious > Unexpected output parameter ${name} from sp_prepare`);
1795 }
1796 });
1797 this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default(_specialStoredProcedure.default.Sp_Prepare, parameters, this.currentTransactionDescriptor(), this.config.options, this.databaseCollation));
1798 }
1799
1800 /**
1801 * Release the SQL Server resources associated with a previously prepared request.
1802 *
1803 * @param request A [[Request]] object representing the request.
1804 * Parameters only require a name and type.
1805 * Parameter values are ignored.
1806 */
1807 unprepare(request) {
1808 const parameters = [];
1809 parameters.push({
1810 type: _dataType.TYPES.Int,
1811 name: 'handle',
1812 // TODO: Abort if `request.handle` is not set
1813 value: request.handle,
1814 output: false,
1815 length: undefined,
1816 precision: undefined,
1817 scale: undefined
1818 });
1819 this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default(_specialStoredProcedure.default.Sp_Unprepare, parameters, this.currentTransactionDescriptor(), this.config.options, this.databaseCollation));
1820 }
1821
1822 /**
1823 * Execute previously prepared SQL, using the supplied parameters.
1824 *
1825 * @param request A previously prepared [[Request]].
1826 * @param parameters An object whose names correspond to the names of
1827 * parameters that were added to the [[Request]] before it was prepared.
1828 * The object's values are passed as the parameters' values when the
1829 * request is executed.
1830 */
1831 execute(request, parameters) {
1832 const executeParameters = [];
1833 executeParameters.push({
1834 type: _dataType.TYPES.Int,
1835 name: '',
1836 // TODO: Abort if `request.handle` is not set
1837 value: request.handle,
1838 output: false,
1839 length: undefined,
1840 precision: undefined,
1841 scale: undefined
1842 });
1843 try {
1844 for (let i = 0, len = request.parameters.length; i < len; i++) {
1845 const parameter = request.parameters[i];
1846 executeParameters.push({
1847 ...parameter,
1848 value: parameter.type.validate(parameters ? parameters[parameter.name] : null, this.databaseCollation)
1849 });
1850 }
1851 } catch (error) {
1852 request.error = error;
1853 process.nextTick(() => {
1854 this.debug.log(error.message);
1855 request.callback(error);
1856 });
1857 return;
1858 }
1859 this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default(_specialStoredProcedure.default.Sp_Execute, executeParameters, this.currentTransactionDescriptor(), this.config.options, this.databaseCollation));
1860 }
1861
1862 /**
1863 * Call a stored procedure represented by [[Request]].
1864 *
1865 * @param request A [[Request]] object representing the request.
1866 */
1867 callProcedure(request) {
1868 try {
1869 request.validateParameters(this.databaseCollation);
1870 } catch (error) {
1871 request.error = error;
1872 process.nextTick(() => {
1873 this.debug.log(error.message);
1874 request.callback(error);
1875 });
1876 return;
1877 }
1878 this.makeRequest(request, _packet.TYPE.RPC_REQUEST, new _rpcrequestPayload.default(request.sqlTextOrProcedure, request.parameters, this.currentTransactionDescriptor(), this.config.options, this.databaseCollation));
1879 }
1880
1881 /**
1882 * Start a transaction.
1883 *
1884 * @param callback
1885 * @param name A string representing a name to associate with the transaction.
1886 * Optional, and defaults to an empty string. Required when `isolationLevel`
1887 * is present.
1888 * @param isolationLevel The isolation level that the transaction is to be run with.
1889 *
1890 * The isolation levels are available from `require('tedious').ISOLATION_LEVEL`.
1891 * * `READ_UNCOMMITTED`
1892 * * `READ_COMMITTED`
1893 * * `REPEATABLE_READ`
1894 * * `SERIALIZABLE`
1895 * * `SNAPSHOT`
1896 *
1897 * Optional, and defaults to the Connection's isolation level.
1898 */
1899 beginTransaction(callback, name = '', isolationLevel = this.config.options.isolationLevel) {
1900 (0, _transaction.assertValidIsolationLevel)(isolationLevel, 'isolationLevel');
1901 const transaction = new _transaction.Transaction(name, isolationLevel);
1902 if (this.config.options.tdsVersion < '7_2') {
1903 return this.execSqlBatch(new _request.default('SET TRANSACTION ISOLATION LEVEL ' + transaction.isolationLevelToTSQL() + ';BEGIN TRAN ' + transaction.name, err => {
1904 this.transactionDepth++;
1905 if (this.transactionDepth === 1) {
1906 this.inTransaction = true;
1907 }
1908 callback(err);
1909 }));
1910 }
1911 const request = new _request.default(undefined, err => {
1912 return callback(err, this.currentTransactionDescriptor());
1913 });
1914 return this.makeRequest(request, _packet.TYPE.TRANSACTION_MANAGER, transaction.beginPayload(this.currentTransactionDescriptor()));
1915 }
1916
1917 /**
1918 * Commit a transaction.
1919 *
1920 * There should be an active transaction - that is, [[beginTransaction]]
1921 * should have been previously called.
1922 *
1923 * @param callback
1924 * @param name A string representing a name to associate with the transaction.
1925 * Optional, and defaults to an empty string. Required when `isolationLevel`is present.
1926 */
1927 commitTransaction(callback, name = '') {
1928 const transaction = new _transaction.Transaction(name);
1929 if (this.config.options.tdsVersion < '7_2') {
1930 return this.execSqlBatch(new _request.default('COMMIT TRAN ' + transaction.name, err => {
1931 this.transactionDepth--;
1932 if (this.transactionDepth === 0) {
1933 this.inTransaction = false;
1934 }
1935 callback(err);
1936 }));
1937 }
1938 const request = new _request.default(undefined, callback);
1939 return this.makeRequest(request, _packet.TYPE.TRANSACTION_MANAGER, transaction.commitPayload(this.currentTransactionDescriptor()));
1940 }
1941
1942 /**
1943 * Rollback a transaction.
1944 *
1945 * There should be an active transaction - that is, [[beginTransaction]]
1946 * should have been previously called.
1947 *
1948 * @param callback
1949 * @param name A string representing a name to associate with the transaction.
1950 * Optional, and defaults to an empty string.
1951 * Required when `isolationLevel` is present.
1952 */
1953 rollbackTransaction(callback, name = '') {
1954 const transaction = new _transaction.Transaction(name);
1955 if (this.config.options.tdsVersion < '7_2') {
1956 return this.execSqlBatch(new _request.default('ROLLBACK TRAN ' + transaction.name, err => {
1957 this.transactionDepth--;
1958 if (this.transactionDepth === 0) {
1959 this.inTransaction = false;
1960 }
1961 callback(err);
1962 }));
1963 }
1964 const request = new _request.default(undefined, callback);
1965 return this.makeRequest(request, _packet.TYPE.TRANSACTION_MANAGER, transaction.rollbackPayload(this.currentTransactionDescriptor()));
1966 }
1967
1968 /**
1969 * Set a savepoint within a transaction.
1970 *
1971 * There should be an active transaction - that is, [[beginTransaction]]
1972 * should have been previously called.
1973 *
1974 * @param callback
1975 * @param name A string representing a name to associate with the transaction.\
1976 * Optional, and defaults to an empty string.
1977 * Required when `isolationLevel` is present.
1978 */
1979 saveTransaction(callback, name) {
1980 const transaction = new _transaction.Transaction(name);
1981 if (this.config.options.tdsVersion < '7_2') {
1982 return this.execSqlBatch(new _request.default('SAVE TRAN ' + transaction.name, err => {
1983 this.transactionDepth++;
1984 callback(err);
1985 }));
1986 }
1987 const request = new _request.default(undefined, callback);
1988 return this.makeRequest(request, _packet.TYPE.TRANSACTION_MANAGER, transaction.savePayload(this.currentTransactionDescriptor()));
1989 }
1990
1991 /**
1992 * Run the given callback after starting a transaction, and commit or
1993 * rollback the transaction afterwards.
1994 *
1995 * This is a helper that employs [[beginTransaction]], [[commitTransaction]],
1996 * [[rollbackTransaction]], and [[saveTransaction]] to greatly simplify the
1997 * use of database transactions and automatically handle transaction nesting.
1998 *
1999 * @param cb
2000 * @param isolationLevel
2001 * The isolation level that the transaction is to be run with.
2002 *
2003 * The isolation levels are available from `require('tedious').ISOLATION_LEVEL`.
2004 * * `READ_UNCOMMITTED`
2005 * * `READ_COMMITTED`
2006 * * `REPEATABLE_READ`
2007 * * `SERIALIZABLE`
2008 * * `SNAPSHOT`
2009 *
2010 * Optional, and defaults to the Connection's isolation level.
2011 */
2012 transaction(cb, isolationLevel) {
2013 if (typeof cb !== 'function') {
2014 throw new TypeError('`cb` must be a function');
2015 }
2016 const useSavepoint = this.inTransaction;
2017 const name = '_tedious_' + _crypto.default.randomBytes(10).toString('hex');
2018 const txDone = (err, done, ...args) => {
2019 if (err) {
2020 if (this.inTransaction && this.state === this.STATE.LOGGED_IN) {
2021 this.rollbackTransaction(txErr => {
2022 done(txErr || err, ...args);
2023 }, name);
2024 } else {
2025 done(err, ...args);
2026 }
2027 } else if (useSavepoint) {
2028 if (this.config.options.tdsVersion < '7_2') {
2029 this.transactionDepth--;
2030 }
2031 done(null, ...args);
2032 } else {
2033 this.commitTransaction(txErr => {
2034 done(txErr, ...args);
2035 }, name);
2036 }
2037 };
2038 if (useSavepoint) {
2039 return this.saveTransaction(err => {
2040 if (err) {
2041 return cb(err);
2042 }
2043 if (isolationLevel) {
2044 return this.execSqlBatch(new _request.default('SET transaction isolation level ' + this.getIsolationLevelText(isolationLevel), err => {
2045 return cb(err, txDone);
2046 }));
2047 } else {
2048 return cb(null, txDone);
2049 }
2050 }, name);
2051 } else {
2052 return this.beginTransaction(err => {
2053 if (err) {
2054 return cb(err);
2055 }
2056 return cb(null, txDone);
2057 }, name, isolationLevel);
2058 }
2059 }
2060
2061 /**
2062 * @private
2063 */
2064 makeRequest(request, packetType, payload) {
2065 if (this.state !== this.STATE.LOGGED_IN) {
2066 const message = 'Requests can only be made in the ' + this.STATE.LOGGED_IN.name + ' state, not the ' + this.state.name + ' state';
2067 this.debug.log(message);
2068 request.callback(new _errors.RequestError(message, 'EINVALIDSTATE'));
2069 } else if (request.canceled) {
2070 process.nextTick(() => {
2071 request.callback(new _errors.RequestError('Canceled.', 'ECANCEL'));
2072 });
2073 } else {
2074 if (packetType === _packet.TYPE.SQL_BATCH) {
2075 this.isSqlBatch = true;
2076 } else {
2077 this.isSqlBatch = false;
2078 }
2079 this.request = request;
2080 request.connection = this;
2081 request.rowCount = 0;
2082 request.rows = [];
2083 request.rst = [];
2084 const onCancel = () => {
2085 payloadStream.unpipe(message);
2086 payloadStream.destroy(new _errors.RequestError('Canceled.', 'ECANCEL'));
2087
2088 // set the ignore bit and end the message.
2089 message.ignore = true;
2090 message.end();
2091 if (request instanceof _request.default && request.paused) {
2092 // resume the request if it was paused so we can read the remaining tokens
2093 request.resume();
2094 }
2095 };
2096 request.once('cancel', onCancel);
2097 this.createRequestTimer();
2098 const message = new _message.default({
2099 type: packetType,
2100 resetConnection: this.resetConnectionOnNextRequest
2101 });
2102 this.messageIo.outgoingMessageStream.write(message);
2103 this.transitionTo(this.STATE.SENT_CLIENT_REQUEST);
2104 message.once('finish', () => {
2105 request.removeListener('cancel', onCancel);
2106 request.once('cancel', this._cancelAfterRequestSent);
2107 this.resetConnectionOnNextRequest = false;
2108 this.debug.payload(function () {
2109 return payload.toString(' ');
2110 });
2111 });
2112 const payloadStream = _stream.Readable.from(payload);
2113 payloadStream.once('error', error => {
2114 payloadStream.unpipe(message);
2115
2116 // Only set a request error if no error was set yet.
2117 request.error ??= error;
2118 message.ignore = true;
2119 message.end();
2120 });
2121 payloadStream.pipe(message);
2122 }
2123 }
2124
2125 /**
2126 * Cancel currently executed request.
2127 */
2128 cancel() {
2129 if (!this.request) {
2130 return false;
2131 }
2132 if (this.request.canceled) {
2133 return false;
2134 }
2135 this.request.cancel();
2136 return true;
2137 }
2138
2139 /**
2140 * Reset the connection to its initial state.
2141 * Can be useful for connection pool implementations.
2142 *
2143 * @param callback
2144 */
2145 reset(callback) {
2146 const request = new _request.default(this.getInitialSql(), err => {
2147 if (this.config.options.tdsVersion < '7_2') {
2148 this.inTransaction = false;
2149 }
2150 callback(err);
2151 });
2152 this.resetConnectionOnNextRequest = true;
2153 this.execSqlBatch(request);
2154 }
2155
2156 /**
2157 * @private
2158 */
2159 currentTransactionDescriptor() {
2160 return this.transactionDescriptors[this.transactionDescriptors.length - 1];
2161 }
2162
2163 /**
2164 * @private
2165 */
2166 getIsolationLevelText(isolationLevel) {
2167 switch (isolationLevel) {
2168 case _transaction.ISOLATION_LEVEL.READ_UNCOMMITTED:
2169 return 'read uncommitted';
2170 case _transaction.ISOLATION_LEVEL.REPEATABLE_READ:
2171 return 'repeatable read';
2172 case _transaction.ISOLATION_LEVEL.SERIALIZABLE:
2173 return 'serializable';
2174 case _transaction.ISOLATION_LEVEL.SNAPSHOT:
2175 return 'snapshot';
2176 default:
2177 return 'read committed';
2178 }
2179 }
2180}
2181function isTransientError(error) {
2182 if (error instanceof AggregateError) {
2183 error = error.errors[0];
2184 }
2185 return error instanceof _errors.ConnectionError && !!error.isTransient;
2186}
2187var _default = exports.default = Connection;
2188module.exports = Connection;
2189Connection.prototype.STATE = {
2190 INITIALIZED: {
2191 name: 'Initialized',
2192 events: {}
2193 },
2194 CONNECTING: {
2195 name: 'Connecting',
2196 enter: function () {
2197 this.initialiseConnection();
2198 },
2199 events: {
2200 socketError: function () {
2201 this.transitionTo(this.STATE.FINAL);
2202 },
2203 connectTimeout: function () {
2204 this.transitionTo(this.STATE.FINAL);
2205 }
2206 }
2207 },
2208 SENT_PRELOGIN: {
2209 name: 'SentPrelogin',
2210 enter: function () {
2211 (async () => {
2212 let messageBuffer = Buffer.alloc(0);
2213 let message;
2214 try {
2215 message = await this.messageIo.readMessage();
2216 } catch (err) {
2217 return this.socketError(err);
2218 }
2219 for await (const data of message) {
2220 messageBuffer = Buffer.concat([messageBuffer, data]);
2221 }
2222 const preloginPayload = new _preloginPayload.default(messageBuffer);
2223 this.debug.payload(function () {
2224 return preloginPayload.toString(' ');
2225 });
2226 if (preloginPayload.fedAuthRequired === 1) {
2227 this.fedAuthRequired = true;
2228 }
2229 if ('strict' !== this.config.options.encrypt && (preloginPayload.encryptionString === 'ON' || preloginPayload.encryptionString === 'REQ')) {
2230 if (!this.config.options.encrypt) {
2231 this.emit('connect', new _errors.ConnectionError("Server requires encryption, set 'encrypt' config option to true.", 'EENCRYPT'));
2232 return this.close();
2233 }
2234 try {
2235 this.transitionTo(this.STATE.SENT_TLSSSLNEGOTIATION);
2236 await this.messageIo.startTls(this.secureContextOptions, this.config.options.serverName ? this.config.options.serverName : this.routingData?.server ?? this.config.server, this.config.options.trustServerCertificate);
2237 } catch (err) {
2238 return this.socketError(err);
2239 }
2240 }
2241 this.sendLogin7Packet();
2242 const {
2243 authentication
2244 } = this.config;
2245 switch (authentication.type) {
2246 case 'azure-active-directory-password':
2247 case 'azure-active-directory-msi-vm':
2248 case 'azure-active-directory-msi-app-service':
2249 case 'azure-active-directory-service-principal-secret':
2250 case 'azure-active-directory-default':
2251 this.transitionTo(this.STATE.SENT_LOGIN7_WITH_FEDAUTH);
2252 break;
2253 case 'ntlm':
2254 this.transitionTo(this.STATE.SENT_LOGIN7_WITH_NTLM);
2255 break;
2256 default:
2257 this.transitionTo(this.STATE.SENT_LOGIN7_WITH_STANDARD_LOGIN);
2258 break;
2259 }
2260 })().catch(err => {
2261 process.nextTick(() => {
2262 throw err;
2263 });
2264 });
2265 },
2266 events: {
2267 socketError: function () {
2268 this.transitionTo(this.STATE.FINAL);
2269 },
2270 connectTimeout: function () {
2271 this.transitionTo(this.STATE.FINAL);
2272 }
2273 }
2274 },
2275 REROUTING: {
2276 name: 'ReRouting',
2277 enter: function () {
2278 this.cleanupConnection(CLEANUP_TYPE.REDIRECT);
2279 },
2280 events: {
2281 message: function () {},
2282 socketError: function () {
2283 this.transitionTo(this.STATE.FINAL);
2284 },
2285 connectTimeout: function () {
2286 this.transitionTo(this.STATE.FINAL);
2287 },
2288 reconnect: function () {
2289 this.transitionTo(this.STATE.CONNECTING);
2290 }
2291 }
2292 },
2293 TRANSIENT_FAILURE_RETRY: {
2294 name: 'TRANSIENT_FAILURE_RETRY',
2295 enter: function () {
2296 this.curTransientRetryCount++;
2297 this.cleanupConnection(CLEANUP_TYPE.RETRY);
2298 },
2299 events: {
2300 message: function () {},
2301 socketError: function () {
2302 this.transitionTo(this.STATE.FINAL);
2303 },
2304 connectTimeout: function () {
2305 this.transitionTo(this.STATE.FINAL);
2306 },
2307 retry: function () {
2308 this.createRetryTimer();
2309 }
2310 }
2311 },
2312 SENT_TLSSSLNEGOTIATION: {
2313 name: 'SentTLSSSLNegotiation',
2314 events: {
2315 socketError: function () {
2316 this.transitionTo(this.STATE.FINAL);
2317 },
2318 connectTimeout: function () {
2319 this.transitionTo(this.STATE.FINAL);
2320 }
2321 }
2322 },
2323 SENT_LOGIN7_WITH_STANDARD_LOGIN: {
2324 name: 'SentLogin7WithStandardLogin',
2325 enter: function () {
2326 (async () => {
2327 let message;
2328 try {
2329 message = await this.messageIo.readMessage();
2330 } catch (err) {
2331 return this.socketError(err);
2332 }
2333 const handler = new _handler.Login7TokenHandler(this);
2334 const tokenStreamParser = this.createTokenStreamParser(message, handler);
2335 await (0, _events.once)(tokenStreamParser, 'end');
2336 if (handler.loginAckReceived) {
2337 if (handler.routingData) {
2338 this.routingData = handler.routingData;
2339 this.transitionTo(this.STATE.REROUTING);
2340 } else {
2341 this.transitionTo(this.STATE.LOGGED_IN_SENDING_INITIAL_SQL);
2342 }
2343 } else if (this.loginError) {
2344 if (isTransientError(this.loginError)) {
2345 this.debug.log('Initiating retry on transient error');
2346 this.transitionTo(this.STATE.TRANSIENT_FAILURE_RETRY);
2347 } else {
2348 this.emit('connect', this.loginError);
2349 this.transitionTo(this.STATE.FINAL);
2350 }
2351 } else {
2352 this.emit('connect', new _errors.ConnectionError('Login failed.', 'ELOGIN'));
2353 this.transitionTo(this.STATE.FINAL);
2354 }
2355 })().catch(err => {
2356 process.nextTick(() => {
2357 throw err;
2358 });
2359 });
2360 },
2361 events: {
2362 socketError: function () {
2363 this.transitionTo(this.STATE.FINAL);
2364 },
2365 connectTimeout: function () {
2366 this.transitionTo(this.STATE.FINAL);
2367 }
2368 }
2369 },
2370 SENT_LOGIN7_WITH_NTLM: {
2371 name: 'SentLogin7WithNTLMLogin',
2372 enter: function () {
2373 (async () => {
2374 while (true) {
2375 let message;
2376 try {
2377 message = await this.messageIo.readMessage();
2378 } catch (err) {
2379 return this.socketError(err);
2380 }
2381 const handler = new _handler.Login7TokenHandler(this);
2382 const tokenStreamParser = this.createTokenStreamParser(message, handler);
2383 await (0, _events.once)(tokenStreamParser, 'end');
2384 if (handler.loginAckReceived) {
2385 if (handler.routingData) {
2386 this.routingData = handler.routingData;
2387 return this.transitionTo(this.STATE.REROUTING);
2388 } else {
2389 return this.transitionTo(this.STATE.LOGGED_IN_SENDING_INITIAL_SQL);
2390 }
2391 } else if (this.ntlmpacket) {
2392 const authentication = this.config.authentication;
2393 const payload = new _ntlmPayload.default({
2394 domain: authentication.options.domain,
2395 userName: authentication.options.userName,
2396 password: authentication.options.password,
2397 ntlmpacket: this.ntlmpacket
2398 });
2399 this.messageIo.sendMessage(_packet.TYPE.NTLMAUTH_PKT, payload.data);
2400 this.debug.payload(function () {
2401 return payload.toString(' ');
2402 });
2403 this.ntlmpacket = undefined;
2404 } else if (this.loginError) {
2405 if (isTransientError(this.loginError)) {
2406 this.debug.log('Initiating retry on transient error');
2407 return this.transitionTo(this.STATE.TRANSIENT_FAILURE_RETRY);
2408 } else {
2409 this.emit('connect', this.loginError);
2410 return this.transitionTo(this.STATE.FINAL);
2411 }
2412 } else {
2413 this.emit('connect', new _errors.ConnectionError('Login failed.', 'ELOGIN'));
2414 return this.transitionTo(this.STATE.FINAL);
2415 }
2416 }
2417 })().catch(err => {
2418 process.nextTick(() => {
2419 throw err;
2420 });
2421 });
2422 },
2423 events: {
2424 socketError: function () {
2425 this.transitionTo(this.STATE.FINAL);
2426 },
2427 connectTimeout: function () {
2428 this.transitionTo(this.STATE.FINAL);
2429 }
2430 }
2431 },
2432 SENT_LOGIN7_WITH_FEDAUTH: {
2433 name: 'SentLogin7Withfedauth',
2434 enter: function () {
2435 (async () => {
2436 let message;
2437 try {
2438 message = await this.messageIo.readMessage();
2439 } catch (err) {
2440 return this.socketError(err);
2441 }
2442 const handler = new _handler.Login7TokenHandler(this);
2443 const tokenStreamParser = this.createTokenStreamParser(message, handler);
2444 await (0, _events.once)(tokenStreamParser, 'end');
2445 if (handler.loginAckReceived) {
2446 if (handler.routingData) {
2447 this.routingData = handler.routingData;
2448 this.transitionTo(this.STATE.REROUTING);
2449 } else {
2450 this.transitionTo(this.STATE.LOGGED_IN_SENDING_INITIAL_SQL);
2451 }
2452 return;
2453 }
2454 const fedAuthInfoToken = handler.fedAuthInfoToken;
2455 if (fedAuthInfoToken && fedAuthInfoToken.stsurl && fedAuthInfoToken.spn) {
2456 const authentication = this.config.authentication;
2457 const tokenScope = new _url.URL('/.default', fedAuthInfoToken.spn).toString();
2458 let credentials;
2459 switch (authentication.type) {
2460 case 'azure-active-directory-password':
2461 credentials = new _identity.UsernamePasswordCredential(authentication.options.tenantId ?? 'common', authentication.options.clientId, authentication.options.userName, authentication.options.password);
2462 break;
2463 case 'azure-active-directory-msi-vm':
2464 case 'azure-active-directory-msi-app-service':
2465 const msiArgs = authentication.options.clientId ? [authentication.options.clientId, {}] : [{}];
2466 credentials = new _identity.ManagedIdentityCredential(...msiArgs);
2467 break;
2468 case 'azure-active-directory-default':
2469 const args = authentication.options.clientId ? {
2470 managedIdentityClientId: authentication.options.clientId
2471 } : {};
2472 credentials = new _identity.DefaultAzureCredential(args);
2473 break;
2474 case 'azure-active-directory-service-principal-secret':
2475 credentials = new _identity.ClientSecretCredential(authentication.options.tenantId, authentication.options.clientId, authentication.options.clientSecret);
2476 break;
2477 }
2478 let tokenResponse;
2479 try {
2480 tokenResponse = await credentials.getToken(tokenScope);
2481 } catch (err) {
2482 this.loginError = new AggregateError([new _errors.ConnectionError('Security token could not be authenticated or authorized.', 'EFEDAUTH'), err]);
2483 this.emit('connect', this.loginError);
2484 this.transitionTo(this.STATE.FINAL);
2485 return;
2486 }
2487 const token = tokenResponse.token;
2488 this.sendFedAuthTokenMessage(token);
2489 } else if (this.loginError) {
2490 if (isTransientError(this.loginError)) {
2491 this.debug.log('Initiating retry on transient error');
2492 this.transitionTo(this.STATE.TRANSIENT_FAILURE_RETRY);
2493 } else {
2494 this.emit('connect', this.loginError);
2495 this.transitionTo(this.STATE.FINAL);
2496 }
2497 } else {
2498 this.emit('connect', new _errors.ConnectionError('Login failed.', 'ELOGIN'));
2499 this.transitionTo(this.STATE.FINAL);
2500 }
2501 })().catch(err => {
2502 process.nextTick(() => {
2503 throw err;
2504 });
2505 });
2506 },
2507 events: {
2508 socketError: function () {
2509 this.transitionTo(this.STATE.FINAL);
2510 },
2511 connectTimeout: function () {
2512 this.transitionTo(this.STATE.FINAL);
2513 }
2514 }
2515 },
2516 LOGGED_IN_SENDING_INITIAL_SQL: {
2517 name: 'LoggedInSendingInitialSql',
2518 enter: function () {
2519 (async () => {
2520 this.sendInitialSql();
2521 let message;
2522 try {
2523 message = await this.messageIo.readMessage();
2524 } catch (err) {
2525 return this.socketError(err);
2526 }
2527 const tokenStreamParser = this.createTokenStreamParser(message, new _handler.InitialSqlTokenHandler(this));
2528 await (0, _events.once)(tokenStreamParser, 'end');
2529 this.transitionTo(this.STATE.LOGGED_IN);
2530 this.processedInitialSql();
2531 })().catch(err => {
2532 process.nextTick(() => {
2533 throw err;
2534 });
2535 });
2536 },
2537 events: {
2538 socketError: function socketError() {
2539 this.transitionTo(this.STATE.FINAL);
2540 },
2541 connectTimeout: function () {
2542 this.transitionTo(this.STATE.FINAL);
2543 }
2544 }
2545 },
2546 LOGGED_IN: {
2547 name: 'LoggedIn',
2548 events: {
2549 socketError: function () {
2550 this.transitionTo(this.STATE.FINAL);
2551 }
2552 }
2553 },
2554 SENT_CLIENT_REQUEST: {
2555 name: 'SentClientRequest',
2556 enter: function () {
2557 (async () => {
2558 let message;
2559 try {
2560 message = await this.messageIo.readMessage();
2561 } catch (err) {
2562 return this.socketError(err);
2563 }
2564 // request timer is stopped on first data package
2565 this.clearRequestTimer();
2566 const tokenStreamParser = this.createTokenStreamParser(message, new _handler.RequestTokenHandler(this, this.request));
2567
2568 // If the request was canceled and we have a `cancelTimer`
2569 // defined, we send a attention message after the
2570 // request message was fully sent off.
2571 //
2572 // We already started consuming the current message
2573 // (but all the token handlers should be no-ops), and
2574 // need to ensure the next message is handled by the
2575 // `SENT_ATTENTION` state.
2576 if (this.request?.canceled && this.cancelTimer) {
2577 return this.transitionTo(this.STATE.SENT_ATTENTION);
2578 }
2579 const onResume = () => {
2580 tokenStreamParser.resume();
2581 };
2582 const onPause = () => {
2583 tokenStreamParser.pause();
2584 this.request?.once('resume', onResume);
2585 };
2586 this.request?.on('pause', onPause);
2587 if (this.request instanceof _request.default && this.request.paused) {
2588 onPause();
2589 }
2590 const onCancel = () => {
2591 tokenStreamParser.removeListener('end', onEndOfMessage);
2592 if (this.request instanceof _request.default && this.request.paused) {
2593 // resume the request if it was paused so we can read the remaining tokens
2594 this.request.resume();
2595 }
2596 this.request?.removeListener('pause', onPause);
2597 this.request?.removeListener('resume', onResume);
2598
2599 // The `_cancelAfterRequestSent` callback will have sent a
2600 // attention message, so now we need to also switch to
2601 // the `SENT_ATTENTION` state to make sure the attention ack
2602 // message is processed correctly.
2603 this.transitionTo(this.STATE.SENT_ATTENTION);
2604 };
2605 const onEndOfMessage = () => {
2606 this.request?.removeListener('cancel', this._cancelAfterRequestSent);
2607 this.request?.removeListener('cancel', onCancel);
2608 this.request?.removeListener('pause', onPause);
2609 this.request?.removeListener('resume', onResume);
2610 this.transitionTo(this.STATE.LOGGED_IN);
2611 const sqlRequest = this.request;
2612 this.request = undefined;
2613 if (this.config.options.tdsVersion < '7_2' && sqlRequest.error && this.isSqlBatch) {
2614 this.inTransaction = false;
2615 }
2616 sqlRequest.callback(sqlRequest.error, sqlRequest.rowCount, sqlRequest.rows);
2617 };
2618 tokenStreamParser.once('end', onEndOfMessage);
2619 this.request?.once('cancel', onCancel);
2620 })();
2621 },
2622 exit: function (nextState) {
2623 this.clearRequestTimer();
2624 },
2625 events: {
2626 socketError: function (err) {
2627 const sqlRequest = this.request;
2628 this.request = undefined;
2629 this.transitionTo(this.STATE.FINAL);
2630 sqlRequest.callback(err);
2631 }
2632 }
2633 },
2634 SENT_ATTENTION: {
2635 name: 'SentAttention',
2636 enter: function () {
2637 (async () => {
2638 let message;
2639 try {
2640 message = await this.messageIo.readMessage();
2641 } catch (err) {
2642 return this.socketError(err);
2643 }
2644 const handler = new _handler.AttentionTokenHandler(this, this.request);
2645 const tokenStreamParser = this.createTokenStreamParser(message, handler);
2646 await (0, _events.once)(tokenStreamParser, 'end');
2647 // 3.2.5.7 Sent Attention State
2648 // Discard any data contained in the response, until we receive the attention response
2649 if (handler.attentionReceived) {
2650 this.clearCancelTimer();
2651 const sqlRequest = this.request;
2652 this.request = undefined;
2653 this.transitionTo(this.STATE.LOGGED_IN);
2654 if (sqlRequest.error && sqlRequest.error instanceof _errors.RequestError && sqlRequest.error.code === 'ETIMEOUT') {
2655 sqlRequest.callback(sqlRequest.error);
2656 } else {
2657 sqlRequest.callback(new _errors.RequestError('Canceled.', 'ECANCEL'));
2658 }
2659 }
2660 })().catch(err => {
2661 process.nextTick(() => {
2662 throw err;
2663 });
2664 });
2665 },
2666 events: {
2667 socketError: function (err) {
2668 const sqlRequest = this.request;
2669 this.request = undefined;
2670 this.transitionTo(this.STATE.FINAL);
2671 sqlRequest.callback(err);
2672 }
2673 }
2674 },
2675 FINAL: {
2676 name: 'Final',
2677 enter: function () {
2678 this.cleanupConnection(CLEANUP_TYPE.NORMAL);
2679 },
2680 events: {
2681 connectTimeout: function () {
2682 // Do nothing, as the timer should be cleaned up.
2683 },
2684 message: function () {
2685 // Do nothing
2686 },
2687 socketError: function () {
2688 // Do nothing
2689 }
2690 }
2691 }
2692};
2693//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfY3J5cHRvIiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsInJlcXVpcmUiLCJfb3MiLCJ0bHMiLCJfaW50ZXJvcFJlcXVpcmVXaWxkY2FyZCIsIm5ldCIsIl9kbnMiLCJfY29uc3RhbnRzIiwiX3N0cmVhbSIsIl9pZGVudGl0eSIsIl9idWxrTG9hZCIsIl9kZWJ1ZyIsIl9ldmVudHMiLCJfaW5zdGFuY2VMb29rdXAiLCJfdHJhbnNpZW50RXJyb3JMb29rdXAiLCJfcGFja2V0IiwiX3ByZWxvZ2luUGF5bG9hZCIsIl9sb2dpbjdQYXlsb2FkIiwiX250bG1QYXlsb2FkIiwiX3JlcXVlc3QiLCJfcnBjcmVxdWVzdFBheWxvYWQiLCJfc3FsYmF0Y2hQYXlsb2FkIiwiX21lc3NhZ2VJbyIsIl90b2tlblN0cmVhbVBhcnNlciIsIl90cmFuc2FjdGlvbiIsIl9lcnJvcnMiLCJfY29ubmVjdG9yIiwiX2xpYnJhcnkiLCJfdGRzVmVyc2lvbnMiLCJfbWVzc2FnZSIsIl9udGxtIiwiX2RhdGFUeXBlIiwiX2J1bGtMb2FkUGF5bG9hZCIsIl9zcGVjaWFsU3RvcmVkUHJvY2VkdXJlIiwiX3BhY2thZ2UiLCJfdXJsIiwiX2hhbmRsZXIiLCJfZ2V0UmVxdWlyZVdpbGRjYXJkQ2FjaGUiLCJlIiwiV2Vha01hcCIsInIiLCJ0IiwiX19lc01vZHVsZSIsImRlZmF1bHQiLCJoYXMiLCJnZXQiLCJuIiwiX19wcm90b19fIiwiYSIsIk9iamVjdCIsImRlZmluZVByb3BlcnR5IiwiZ2V0T3duUHJvcGVydHlEZXNjcmlwdG9yIiwidSIsInByb3RvdHlwZSIsImhhc093blByb3BlcnR5IiwiY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ciBjb25uZWN0aW9uLlxuICAgKi9cbiAgYXV0aGVudGljYXRpb24/OiBBdXRoZW50aWNhdGlvbk9wdGlvbnM7XG59XG5cbmludGVyZmFjZSBEZWJ1Z09wdGlvbnMge1xuICAvKipcbiAgICogQSBib29sZWFuLCBjb250cm9sbGluZyB3aGV0aGVyIFtbZGVidWddXSBldmVudHMgd2lsbCBiZSBlbWl0dGVkIHdpdGggdGV4dCBkZXNjcmliaW5nIHBhY2tldCBkYXRhIGRldGFpbHNcbiAgICpcbiAgICogKGRlZmF1bHQ6IGBmYWxzZWApXG4gICAqL1xuICBkYXRhOiBib29sZWFuO1xuICAvKipcbiAgICogQSBib29sZWFuLCBjb250cm9sbGluZyB3aGV0aGVyIFtbZGVidWddXSBldmVudHMgd2lsbCBiZSBlbWl0dGVkIHdpdGggdGV4dCBkZXNjcmliaW5nIHBhY2tldCBkZXRhaWxzXG4gICAqXG4gICAqIChkZWZhdWx0OiBgZmFsc2VgKVxuICAgKi9cbiAgcGFja2V0OiBib29sZWFuO1xuICAvKipcbiAgICogQSBib29sZWFuLCBjb250cm9sbGluZyB3aGV0aGVyIFtbZGVidWddXSBldmVudHMgd2lsbCBiZSBlbWl0dGVkIHdpdGggdGV4dCBkZXNjcmliaW5nIHBhY2tldCBwYXlsb2FkIGRldGFpbHNcbiAgICpcbiAgICogKGRlZmF1bHQ6IGBmYWxzZWApXG4gICAqL1xuICBwYXlsb2FkOiBib29sZWFuO1xuICAvKipcbiAgICogQSBib29sZWFuLCBjb250cm9sbGluZyB3aGV0aGVyIFtbZGVidWddXSBldmVudHMgd2lsbCBiZSBlbWl0dGVkIHdpdGggdGV4dCBkZXNjcmliaW5nIHRva2VuIHN0cmVhbSB0b2tlbnNcbiAgICpcbiAgICogKGRlZmF1bHQ6IGBmYWxzZWApXG4gICAqL1xuICB0b2tlbjogYm9vbGVhbjtcbn1cblxuaW50ZXJmYWNlIEF1dGhlbnRpY2F0aW9uT3B0aW9ucyB7XG4gIC8qKlxuICAgK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VudElkOiBvcHRpb25zLmNsaWVudElkLFxuICAgICAgICAgICAgY2xpZW50U2VjcmV0OiBvcHRpb25zLmNsaWVudFNlY3JldCxcbiAgICAgICAgICAgIHRlbmFudElkOiBvcHRpb25zLnRlbmFudElkXG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgfSBlbHNlIHtcbiAgICAgICAgaWYgKG9wdGlvbnMudXNlck5hbWUgIT09IHVuZGVmaW5lZCAmJiB0eXBlb2Ygb3B0aW9ucy51c2VyTmFtZSAhPT0gJ3N0cmluZycpIHtcbiAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCdUaGUgXCJjb25maWcuYXV0aGVudGljYXRpb24ub3B0aW9ucy51c2VyTmFtZVwiIHByb3BlcnR5IG11c3QgYmUgb2YgdHlwZSBzdHJpbmcuJyk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAob3B0aW9ucy5wYXNzd29yZCAhPT0gdW5kZWZpbmVkICYmIHR5cGVvZiBvcHRpb25zLnBhc3N3b3JkICE9PSAnc3RyaW5nJykge1xuICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ1RoZSBcImNvbmZpZy5hdXRoZW50aWNhdGlvbi5vcHRpb25zLnBhc3N3b3JkXCIgcHJvcGVydHkgbXVzdCBiZSBvZiB0eXBlIHN0cmluZy4nKTtcbiAgICAgICAgfVxuXG4gICAgICAgIGF1dGhlbnRpY2F0aW9uID0ge1xuICAgICAgICAgIHR5cGU6ICdkZWZhdWx0JyxcbiAgICAgICAgICBvcHRpb25zOiB7XG4gICAgICAgICAgICB1c2VyTmFtZTogb3B0aW9ucy51c2VyTmFtZSxcbiAgICAgICAgICAgIHBhc3N3b3JkOiBvcHRpb25zLnBhc3N3b3JkXG4gICAgICAgICAgfVxuICAgICAgICB9O1xuICAgICAgfVxuICAgIH0gZWxzZSB7XG4gICAgICBhdXRoZW50aWNhdGlvbiA9IHtcbiAgICAgICAgdHlwZTogJ2RlZmF1bHQnLFxuICAg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ykge1xuICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ1RoZSBcImNvbmZpZy5vcHRpb25zLm1heFJldHJpZXNPblRyYW5zaWVudEVycm9yc1wiIHByb3BlcnR5IG11c3QgYmUgb2YgdHlwZSBudW1iZXIuJyk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoY29uZmlnLm9wdGlvbnMubWF4UmV0cmllc09uVHJhbnNpZW50RXJyb3JzIDwgMCkge1xuICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ1RoZSBcImNvbmZpZy5vcHRpb25zLm1heFJldHJpZXNPblRyYW5zaWVudEVycm9yc1wiIHByb3BlcnR5IG11c3QgYmUgZXF1YWwgb3IgZ3JlYXRlciB0aGFuIDAuJyk7XG4gICAgICAgIH1cblxuICAgICAgICB0aGlzLmNvbmZpZy5vcHRpb25zLm1heFJldHJpZXNPblRyYW5zaWVudEVycm9ycyA9IGNvbmZpZy5vcHRpb25zLm1heFJldHJpZXNPblRyYW5zaWVudEVycm9ycztcbiAgICAgIH1cblxuICAgICAgaWYgKGNvbmZpZy5vcHRpb25zLmNvbm5lY3Rpb25SZXRyeUludGVydmFsICE9PSB1bmRlZmluZWQpIHtcbiAgICAgICAgaWYgKHR5cGVvZiBjb25maWcub3B0aW9ucy5jb25uZWN0aW9uUmV0cnlJbnRlcnZhbCAhPT0gJ251bWJlcicpIHtcbiAgICAgICAgICB0aHJvdyBuZXcgVHlwZUVycm9yKCdUaGUgXCJjb25maWcub3B0aW9ucy5jb25uZWN0aW9uUmV0cnlJbnRlcnZhbFwiIHByb3BlcnR5IG11c3QgYmUgb2YgdHlwZSBudW1iZXIuJyk7XG4gICAgICAgIH1cblxuICAgICAgICBpZiAoY29uZmlnLm9wdGlvbnMuY29ubmVjdGlvblJldHJ5SW50ZXJ2YWwgPD0gMCkge1xuICAgICAgICAgIHRocm93IG5ldyBUeXBlRXJyb3IoJ1RoZSBcImNvbmZpZy5vcHRpb25zLmNvbm5lY3Rp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CBoYW5kbGVyKTtcblxuICAgICAgICAgIGF3YWl0IG9uY2UodG9rZW5TdHJlYW1QYXJzZXIsICdlbmQnKTtcblxuICAgICAgICAgIGlmIChoYW5kbGVyLmxvZ2luQWNrUmVjZWl2ZWQpIHtcbiAgICAgICAgICAgIGlmIChoYW5kbGVyLnJvdXRpbmdEYXRhKSB7XG4gICAgICAgICAgICAgIHRoaXMucm91dGluZ0RhdGEgPSBoYW5kbGVyLnJvdXRpbmdEYXRhO1xuICAgICAgICAgICAgICByZXR1cm4gdGhpcy50cmFuc2l0aW9uVG8odGhpcy5TVEFURS5SRVJPVVRJTkcpO1xuICAgICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgICAgcmV0dXJuIHRoaXMudHJhbnNpdGlvblRvKHRoaXMuU1RBVEUuTE9HR0VEX0lOX1NFTkRJTkdfSU5JVElBTF9TUUwpO1xuICAgICAgICAgICAgfVxuICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5udGxtcGFja2V0KSB7XG4gICAgICAgICAgICBjb25zdCBhdXRoZW50aWNhdGlvbiA9IHRoaXMuY29uZmlnLmF1dGhlbnRpY2F0aW9uIGFzIE50bG1BdXRoZW50aWNhdGlvbjtcblxuICAgICAgICAgICAgY29uc3QgcGF5bG9hZCA9IG5ldyBOVExNUmVzcG9uc2VQYXlsb2FkKHtcbiAgICAgICAgICAgICAgZG9tYWluOiBhdXRoZW50aWNhdGlvbi5vcHRpb25zLmRvbWFpbixcbiAgICAgICAgICAgICAgdXNlck5hbWU6IGF1dGhlbnRpY2F0aW9uLm9wdGlvbnMudXNlck5hbWUsXG4gICAgICAgICAgICAgIHBhc3N3b3JkOiBhdXRoZW50aWNhdGlvbi5vcHRpb25zLnBhc3N3b3JkLFxuICAgICAgICAgICAgICBudGxtcGFja2V0OiB0aGlzLm50bG1wYWNrZXRcbiAgICAgICAgICAgIH0pO1xuXG4gICAgICAgICAgICB0aGlzLm1lc3NhZ2VJby5zZW5kTWVzc2FnZShUWVBFLk5UTE1BVVRIX1BLVCwgcGF5bG9hZC5kYXRhKTtcbiAgICAgICAgICAgIHRoaXMuZGVidWcucGF5bG9hZChmdW5jdGlvbigpIHtcbiAgICAgICAgICAgICAgcmV0dXJuIHBheWxvYWQudG9TdHJpbmcoJyAgJyk7XG4gICAgICAgICAgICB9KTtcblxuICAgICAgICAgICAgdGhpcy5udGxtcGFja2V0ID0gdW5kZWZpbmVkO1xuICAgICAgICAgIH0gZWxzZSBpZiAodGhpcy5sb2dpbkVycm9yKSB7XG4gICAgICAgICAgICBpZiAoaXNUcmFuc2llbnRFcnJvcih0aGlzLmxvZ2luRXJyb3IpKSB7XG4gICAgICAgICAgICAgIHRoaXMuZGVidWcubG9nKCdJbml0aWF0aW5nIHJldHJ5IG9uIHRyYW5zaWVudCBlcnJvcicpO1xuICAgICAgICAgICAgICByZXR1cm4gdGhpcy50cmFuc2l0aW9uVG8odGhpcy5TVEFURS5UUkFOU0lFTlRfRkFJTFVSRV9SRVRSWSk7XG4gICAgICAgICAgICB9IGVsc2Uge1xuICAgICAgICAgICAgICB0aGlzLmVtaXQoJ2Nvbm5lY3QnLCB0aGlzLmxvZ2luRXJyb3IpO1xuICAgICAgICAgICAgICByZXR1cm4gdGhpcy50cmFuc2l0aW9uVG8odGhpcy5TVEFURS5GSU5BTCk7XG4gICAgICAgICAgICB9XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuZW1pdCgnY29ubmVjdCcsIG5ldyBDb25uZWN0aW9uRXJyb3IoJ0xvZ2luIGZhaWxlZC4nLCAnRUxPR0lOJykpO1xuICAgICAgICAgICAgcmV0dXJuIHRoaXMudHJhbnNpdGlvblRvKHRoaXMuU1RBVEUuRklOQUwpO1xuICAgICAgICAgIH1cbiAgICAgICAgfVxuXG4gICAgICB9KSgpLmNhdGNoKChlcnIpID0+IHtcbiAgICAgICAgcHJvY2Vzcy5uZXh0VGljaygoKSA9PiB7XG4gICAgICAgICAgdGhyb3cgZXJyO1x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gICAgICAgICAgY3JlZGVudGlhbHMgPSBuZXcgRGVmYXVsdEF6dXJlQ3JlZGVudGlhbChhcmdzKTtcbiAgICAgICAgICAgICAgYnJlYWs7XG4gICAgICAgICAgICBjYXNlICdhenVyZS1hY3RpdmUtZGlyZWN0b3J5LXNlcnZpY2UtcHJpbmNpcGFsLXNlY3JldCc6XG4gICAgICAgICAgICAgIGNyZWRlbnRpYWxzID0gbmV3IENsaWVudFNlY3JldENyZWRlbnRpYWwoXG4gICAgICAgICAgICAgICAgYXV0aGVudGljYXRpb24ub3B0aW9ucy50ZW5hbnRJZCxcbiAgICAgICAgICAgICAgICBhdXRoZW50aWNhdGlvbi5vcHRpb25zLmNsaWVudElkLFxuICAgICAgICAgICAgICAgIGF1dGhlbnRpY2F0aW9uLm9wdGlvbnMuY2xpZW50U2VjcmV0XG4gICAgICAgICAgICAgICk7XG4gICAgICAgICAgICAgIGJyZWFrO1xuICAgICAgICAgIH1cblxuICAgICAgICAgIGxldCB0b2tlblJlc3BvbnNlO1xuICAgICAgICAgIHRyeSB7XG4gICAgICAgICAgICB0b2tlblJlc3BvbnNlID0gYXdhaXQgY3JlZGVudGlhbHMuZ2V0VG9rZW4odG9rZW5TY29wZSk7XG4gICAgICAgICAgfSBjYXRjaCAoZXJyKSB7XG4gICAgICAgICAgICB0aGlzLmxvZ2luRXJyb3IgPSBuZXcgQWdncmVnYXRlRXJyb3IoXG4gICAgICAgICAgICAgIFtuZXcgQ29ubmVjdGlvbkVycm9yKCdTZWN1cml0eSB0b2tlbiBjb3VsZCBub3QgYmUgYXV0aGVudGljYXRlZCBvciBhdXRob3JpemVkLicsICdFRkVEQVVUSCcpLCBlcnJdKTtcbiAgICAgICAgICAgIHRoaXMuZW1pdCgnY29ubmVjdCcsIHRoaXMubG9naW5FcnJvcik7XG4gICAgICAgICAgICB0aGlzLnRyYW5zaXRpb25Ubyh0aGlzLlNUQVRFLkZJTkFMKTtcbiAgICAgICAgICAgIHJldHVybjtcbiAgICAgICAgICB9XG5cblxuICAgICAgICAgIGNvbnN0IHRva2VuID0gdG9rZW5SZXNwb25zZS50b2tlbjtcbiAgICAgICAgICB0aGlzLnNlbmRGZWRBdXRoVG9rZW5NZXNzYWdlKHRva2VuKTtcblxuICAgICAgICB9IGVsc2UgaWYgKHRoaXMubG9naW5FcnJvcikge1xuICAgICAgICAgIGlmIChpc1RyYW5zaWVudEVycm9yKHRoaXMubG9naW5FcnJvcikpIHtcbiAgICAgICAgICAgIHRoaXMuZGVidWcubG9nKCdJbml0aWF0aW5nIHJldHJ5IG9uIHRyYW5zaWVudCBlcnJvcicpO1xuICAgICAgICAgICAgdGhpcy50cmFuc2l0aW9uVG8odGhpcy5TVEFURS5UUkFOU0lFTlRfRkFJTFVSRV9SRVRSWSk7XG4gICAgICAgICAgfSBlbHNlIHtcbiAgICAgICAgICAgIHRoaXMuZW1pdCgnY29ubmVjdCcsIHRoaXMubG9naW5FcnJvcik7XG4gICAgICAgICAgICB0aGlzLnRyYW5zaXRpb25Ubyh0aGlzLlNUQVRFLkZJTkFMKTtcbiAgICAgICAgICB9XG4gICAgICAgIH0gZWxzZSB7XG4gICAgICAgICAgdGhpcy5lbWl0KCdjb25uZWN0JywgbmV3IENvbm5lY3Rpb25FcnJvcignTG9naW4gZmFpbGVkLicsICdFTE9HSU4nKSk7XG4gICAgICAgICAgdGhpcy50cmFuc2l0aW9uVG8odGhpcy5TVEFURS5GSU5BTCk7XG4gICAgICAgIH1cblxuICAgICAgfSkoKS5jYXRjaCgoZXJyKSA9PiB7XG4gICAgICAgIHByb2Nlc3MubmV4dFRpY2soKCkgPT4ge1xuICAgICAgICAgIHRocm93IGVycjtcbiAgICAgICAgfSk7XG4gICAgICB9KTtcbiAgICB9LFxuICAgIGV2ZW50czoge1xuICAgICAgc29ja2V0RXJyb3I6IGZ1bmN0aW9uKCkge1xuICAgICAgICB0aGlzLnRyYW5zaXRpb25Ubyh0aGlzLlNUQVRFLkZJTkFMKTtcbiAgICAgIH0sXG4gICAg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