feat(Microsoft SQL Node): Upgrade mssql package (no-changelog) (#8873)

Co-authored-by: Michael Kret <michael.k@radency.com>
This commit is contained in:
कारतोफ्फेलस्क्रिप्ट™ 2024-03-13 14:27:12 +01:00 committed by GitHub
parent a1f6c570d6
commit a6f7d23ce1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 529 additions and 153 deletions

View file

@ -78,22 +78,20 @@
"sqlite3"
],
"overrides": {
"@langchain/core": "0.1.41",
"@types/node": "^18.16.16",
"axios": "1.6.7",
"chokidar": "3.5.2",
"formidable": "3.5.1",
"ip": "2.0.1",
"jsonwebtoken": "9.0.0",
"prettier": "^3.1.0",
"semver": "^7.5.4",
"tough-cookie": "^4.1.3",
"tslib": "^2.6.1",
"tsconfig-paths": "^4.2.0",
"typescript": "^5.3.0",
"xml2js": "^0.5.0",
"cpy@8>globby": "^11.1.0",
"qqjs>globby": "^11.1.0",
"@langchain/core": "0.1.41"
"qqjs>globby": "^11.1.0"
},
"patchedDependencies": {
"typedi@0.10.0": "patches/typedi@0.10.0.patch",

View file

@ -156,7 +156,6 @@
"langchain": "0.1.25",
"lodash": "4.17.21",
"mammoth": "1.6.0",
"mssql": "9.1.1",
"n8n-nodes-base": "workspace:*",
"n8n-workflow": "workspace:*",
"openai": "4.26.1",

View file

@ -70,7 +70,7 @@
"@types/express": "^4.17.21",
"@types/formidable": "^3.4.5",
"@types/json-diff": "^1.0.0",
"@types/jsonwebtoken": "^9.0.1",
"@types/jsonwebtoken": "^9.0.6",
"@types/lodash": "^4.14.195",
"@types/psl": "^1.1.0",
"@types/replacestream": "^4.0.1",
@ -133,7 +133,7 @@
"isbot": "3.6.13",
"json-diff": "1.0.6",
"jsonschema": "1.4.1",
"jsonwebtoken": "9.0.0",
"jsonwebtoken": "9.0.2",
"ldapts": "4.2.6",
"lodash": "4.17.21",
"luxon": "3.3.0",

View file

@ -1,3 +1,4 @@
import type { IResult } from 'mssql';
import type {
IExecuteFunctions,
ICredentialDataDecryptedObject,
@ -261,12 +262,9 @@ export class MicrosoftSql implements INodeType {
rawQuery = rawQuery.replace(resolvable, this.evaluateExpression(resolvable, 0) as string);
}
const queryResult = await pool.request().query(rawQuery);
const { recordsets }: IResult<any[]> = await pool.request().query(rawQuery);
const result =
queryResult.recordsets.length > 1
? flatten(queryResult.recordsets)
: queryResult.recordsets[0];
const result = recordsets.length > 1 ? flatten(recordsets) : recordsets[0];
responseData = result;
} else if (operation === 'insert') {

View file

@ -810,12 +810,12 @@
"@types/gm": "^1.25.0",
"@types/imap-simple": "^4.2.0",
"@types/js-nacl": "^1.3.0",
"@types/jsonwebtoken": "^9.0.1",
"@types/jsonwebtoken": "^9.0.6",
"@types/lodash": "^4.14.195",
"@types/lossless-json": "^1.0.0",
"@types/mailparser": "^3.4.4",
"@types/mime-types": "^2.1.0",
"@types/mssql": "^6.0.2",
"@types/mssql": "^9.1.5",
"@types/node-ssh": "^7.0.1",
"@types/nodemailer": "^6.4.14",
"@types/promise-ftp": "^1.3.4",
@ -854,7 +854,7 @@
"isbot": "3.6.13",
"iso-639-1": "2.1.15",
"js-nacl": "1.4.0",
"jsonwebtoken": "9.0.0",
"jsonwebtoken": "9.0.2",
"kafkajs": "1.16.0",
"ldapts": "4.2.6",
"lodash": "4.17.21",
@ -865,7 +865,7 @@
"moment-timezone": "0.5.37",
"mongodb": "6.3.0",
"mqtt": "5.0.2",
"mssql": "8.1.4",
"mssql": "10.0.2",
"mysql2": "2.3.3",
"n8n-workflow": "workspace:*",
"nanoid": "3.3.6",

File diff suppressed because it is too large Load diff