Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tedious

Package Overview
Dependencies
Maintainers
8
Versions
227
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tedious - npm Package Compare versions

Comparing version 18.6.2 to 19.0.0

26

lib/connector.js

@@ -11,8 +11,5 @@ "use strict";

var _nodeUrl = _interopRequireDefault(require("node:url"));
var _abortError = _interopRequireDefault(require("./errors/abort-error"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
async function connectInParallel(options, lookup, signal) {
if (signal.aborted) {
throw new _abortError.default();
}
signal.throwIfAborted();
const addresses = await lookupAllAddresses(options.host, lookup, signal);

@@ -52,3 +49,3 @@ return await new Promise((resolve, reject) => {

}
reject(new _abortError.default());
reject(signal.reason);
};

@@ -70,5 +67,3 @@ for (let i = 0, len = addresses.length; i < len; i++) {

async function connectInSequence(options, lookup, signal) {
if (signal.aborted) {
throw new _abortError.default();
}
signal.throwIfAborted();
const errors = [];

@@ -88,3 +83,3 @@ const addresses = await lookupAllAddresses(options.host, lookup, signal);

socket.destroy();
reject(new _abortError.default());
reject(signal.reason);
};

@@ -111,5 +106,4 @@ const onError = err => {

} catch (err) {
if (err instanceof Error && err.name === 'AbortError') {
throw err;
}
// If the signal was aborted, re-throw the error.
signal.throwIfAborted();
errors.push(err);

@@ -126,5 +120,3 @@ continue;

async function lookupAllAddresses(host, lookup, signal) {
if (signal.aborted) {
throw new _abortError.default();
}
signal.throwIfAborted();
if (_net.default.isIPv6(host)) {

@@ -143,3 +135,3 @@ return [{

const onAbort = () => {
reject(new _abortError.default());
reject(signal.reason);
};

@@ -157,2 +149,2 @@ signal.addEventListener('abort', onAbort);

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJuYW1lcyI6WyJfbmV0IiwiX2ludGVyb3BSZXF1aXJlRGVmYXVsdCIsInJlcXVpcmUiLCJfbm9kZ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LFxuICAgICAgICAgIGZhbWlseTogYWRkcmVzcy5mYW1pbHlcbiAgICAgICAgfSk7XG5cbiAgICAgICAgY29uc3Qgb25BYm9ydCA9ICgpID0+IHtcbiAgICAgICAgICBzb2NrZXQucmVtb3ZlTGlzdGVuZXIoJ2Vycm9yJywgb25FcnJvcik7XG4gICAgICAgICAgc29ja2V0LnJlbW92ZUxpc3RlbmVyKCdjb25uZWN0Jywgb25Db25uZWN0KTtcblxuICAgICAgICAgIHNvY2tldC5kZXN0cm95KCk7XG5cbiAgICAgICAgICByZWplY3Qoc2lnbmFsLnJlYXNvbik7XG4gICAgICAgIH07XG5cbiAgICAgICAgY29uc3Qgb25FcnJvciA9IChlcnI6IEVycm9yKSA9PiB7XG4gICAgICAgICAgc2lnbmFsLnJlbW92ZUV2ZW50TGlzdGVuZXIoJ2Fib3J0Jywgb25BYm9ydCk7XG5cbiAgICAgICAgICBzb2NrZXQucmVtb3ZlTGlzdGVuZXIoJ2Vycm9yJywgb25FcnJvcik7XG4gICAgICAgICAgc29ja2V0LnJlbW92ZUxpc3RlbmVyKCdjb25uZWN0Jywgb25Db25uZWN0KTtcblxuICAgICAgICAgIHNvY2tldC5kZXN0cm95KCk7XG5cbiAgICAgICAgICByZWplY3QoZXJyKTtcbiAgICAgICAgfTtcblxuICAgICAgICBjb25zdCBvbkNvbm5lY3QgPSAoKSA9PiB7XG4gICAgICAgICAgc2lnbmFsLnJlbW92ZUV2ZW50TGlzdGVuZXIoJ2Fib3J0Jywgb25BYm9ydCk7XG5cbiAgICAgICAgICBzb2NrZXQucmVtb3ZlTGlzdGVuZXIoJ2Vycm9yJywgb25FcnJvcik7XG4gICAgICAgICAgc29ja2V0LnJlbW92ZUxpc3RlbmVyKCdjb25uZWN0Jywgb25Db25uZWN0KTtcblxuICAgICAgICAgIHJlc29sdmUoc29ja2V0KTtcbiAgICAgICAgfTtcblxuICAgICAgICBzaWduYWwuYWRkRXZlbnRMaXN0ZW5lcignYWJvcnQnLCBvbkFib3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BTyxDQUFDO01BRXpDLE1BQU1pQixhQUFhLEdBQUdDLGdCQUFHLENBQUNDLGFBQWEsQ0FBQ2xDLElBQUksQ0FBQztNQUM3Q0wsTUFBTSxDQUFDcUMsYUFBYSxLQUFLLEVBQUUsR0FBR2hDLElBQUksR0FBR2dDLGFBQWEsRUFBRTtRQUFFRyxHQUFHLEVBQUU7TUFBSyxDQUFDLEVBQUUsQ0FBQzFCLEdBQUcsRUFBRVgsU0FBUyxLQUFLO1FBQ3JGRixNQUFNLENBQUNrQixtQkFBbUIsQ0FBQyxPQUFPLEVBQUVDLE9BQU8sQ0FBQztRQUU1Q04sR0FBRyxHQUFHTixNQUFNLENBQUNNLEdBQUcsQ0FBQyxHQUFHUCxPQUFPLENBQUNKLFNBQVMsQ0FBQztNQUN4QyxDQUFDLENBQUM7SUFDSixDQUFDLENBQUM7RUFDSjtBQUNGIn0=

@@ -9,5 +9,3 @@ "use strict";

var _dns = _interopRequireDefault(require("dns"));
var _abortError = _interopRequireDefault(require("./errors/abort-error"));
var _sender = require("./sender");
var _withTimeout = require("./utils/with-timeout");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

@@ -46,15 +44,12 @@ const SQL_SERVER_BROWSER_PORT = 1434;

const signal = options.signal;
if (signal.aborted) {
throw new _abortError.default();
}
signal.throwIfAborted();
let response;
const request = Buffer.from([0x02]);
for (let i = 0; i <= retries; i++) {
const timeoutSignal = AbortSignal.timeout(timeout);
try {
response = await (0, _withTimeout.withTimeout)(timeout, async signal => {
const request = Buffer.from([0x02]);
return await (0, _sender.sendMessage)(options.server, port, lookup, signal, request);
}, signal);
response = await (0, _sender.sendMessage)(options.server, port, lookup, AbortSignal.any([signal, timeoutSignal]), request);
} catch (err) {
// If the current attempt timed out, continue with the next
if (!signal.aborted && err instanceof Error && err.name === 'TimeoutError') {
if (timeoutSignal.aborted) {
continue;

@@ -98,2 +93,2 @@ }

}
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2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sRUFBRUQsQ0FBQyxJQUFJLENBQUMsRUFBRTtNQUM3RCxNQUFNRSxJQUFJLEdBQUdILEtBQUssQ0FBQ0MsQ0FBQyxDQUFDO01BQ3JCLE1BQU1HLEtBQUssR0FBR0osS0FBSyxDQUFDQyxDQUFDLEdBQUcsQ0FBQyxDQUFDO01BRTFCLElBQUlFLElBQUksS0FBSyxLQUFLLElBQUlULE9BQU8sRUFBRTtRQUM3QixNQUFNbkIsSUFBSSxHQUFHOEIsUUFBUSxDQUFDRCxLQUFLLEVBQUUsRUFBRSxDQUFDO1FBQ2hDLE9BQU83QixJQUFJO01BQ2I7TUFFQSxJQUFJNEIsSUFBSSxLQUFLLGNBQWMsRUFBRTtRQUMzQixJQUFJQyxLQUFLLENBQUNFLFdBQVcsQ0FBQyxDQUFDLEtBQUtyQyxZQUFZLENBQUNxQyxXQUFXLENBQUMsQ0FBQyxFQUFFO1VBQ3REWixPQUFPLEdBQUcsSUFBSTtRQUNoQixDQUFDLE1BQU07VUFDTEEsT0FBTyxHQUFHLEtBQUs7UUFDakI7TUFDRjtJQUNGO0VBQ0Y7QUFDRiJ9

@@ -11,8 +11,5 @@ "use strict";

var _nodeUrl = _interopRequireDefault(require("node:url"));
var _abortError = _interopRequireDefault(require("./errors/abort-error"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
async function sendInParallel(addresses, port, request, signal) {
if (signal.aborted) {
throw new _abortError.default();
}
signal.throwIfAborted();
return await new Promise((resolve, reject) => {

@@ -36,3 +33,3 @@ const sockets = [];

clearSockets();
reject(new _abortError.default());
reject(signal.reason);
};

@@ -60,5 +57,3 @@ const clearSockets = () => {

async function sendMessage(host, port, lookup, signal, request) {
if (signal.aborted) {
throw new _abortError.default();
}
signal.throwIfAborted();
let addresses;

@@ -73,3 +68,3 @@ if (_net.default.isIP(host)) {

const onAbort = () => {
reject(new _abortError.default());
reject(signal.reason);
};

@@ -87,2 +82,2 @@ const domainInASCII = _nodeUrl.default.domainToASC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0FBQyxHQUFHO0lBQUUsQ0FBQyxDQUNwRDtFQUNILENBQUMsTUFBTTtJQUNMbEMsU0FBUyxHQUFHLE1BQU0sSUFBSUssT0FBTyxDQUFzQixDQUFDQyxPQUFPLEVBQUVDLE1BQU0sS0FBSztNQUN0RSxNQUFNTyxPQUFPLEdBQUdBLENBQUEsS0FBTTtRQUNwQlAsTUFBTSxDQUFDSixNQUFNLENBQUNlLE1BQU0sQ0FBQztNQUN2QixDQUFDO01BRUQsTUFBTXFCLGFBQWEsR0FBR0MsZ0JBQUcsQ0FBQ0MsYUFBYSxDQUFDUCxJQUFJLENBQUM7TUFDN0NDLE1BQU0sQ0FBQ0ksYUFBYSxLQUFLLEVBQUUsR0FBR0wsSUFBSSxHQUFHSyxhQUFhLEVBQUU7UUFBRUcsR0FBRyxFQUFFO01BQUssQ0FBQyxFQUFFLENBQUMvQixHQUFHLEVBQUVYLFNBQVMsS0FBSztRQUNyRkcsTUFBTSxDQUFDVSxtQkFBbUIsQ0FBQyxPQUFPLEVBQUVDLE9BQU8sQ0FBQztRQUU1Q0gsR0FBRyxHQUFHSixNQUFNLENBQUNJLEdBQUcsQ0FBQyxHQUFHTCxPQUFPLENBQUNOLFNBQVMsQ0FBQztNQUN4QyxDQUFDLENBQUM7SUFDSixDQUFDLENBQUM7RUFDSjtFQUVBLE9BQU8sTUFBTUQsY0FBYyxDQUFDQyxTQUFTLEVBQUVDLElBQUksRUFBRUMsT0FBTyxFQUFFQyxNQUFNLENBQUM7QUFDL0QifQ==

@@ -30,3 +30,3 @@ {

"license": "MIT",
"version": "18.6.2",
"version": "19.0.0",
"main": "./lib/tedious.js",

@@ -39,3 +39,3 @@ "types": "./lib/tedious.d.ts",

"engines": {
"node": ">=18"
"node": ">=18.17"
},

@@ -42,0 +42,0 @@ "publishConfig": {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc