mirror of
https://github.com/n8n-io/n8n.git
synced 2025-03-05 20:50:17 -08:00
⬆️ Upgrade TS to 4.3.5
This commit is contained in:
parent
7ef2934626
commit
4b7311e4c5
|
@ -77,7 +77,7 @@
|
||||||
"ts-jest": "^26.3.0",
|
"ts-jest": "^26.3.0",
|
||||||
"ts-node": "^8.9.1",
|
"ts-node": "^8.9.1",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.2",
|
||||||
"typescript": "~3.9.7"
|
"typescript": "~4.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@oclif/command": "^1.5.18",
|
"@oclif/command": "^1.5.18",
|
||||||
|
|
|
@ -58,6 +58,7 @@ export class ActiveExecutions {
|
||||||
// Save the Execution in DB
|
// Save the Execution in DB
|
||||||
const executionResult = await Db.collections.Execution!.save(execution as IExecutionFlattedDb);
|
const executionResult = await Db.collections.Execution!.save(execution as IExecutionFlattedDb);
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
const executionId = typeof executionResult.id === "object" ? executionResult.id!.toString() : executionResult.id + "";
|
const executionId = typeof executionResult.id === "object" ? executionResult.id!.toString() : executionResult.id + "";
|
||||||
|
|
||||||
this.activeExecutions[executionId] = {
|
this.activeExecutions[executionId] = {
|
||||||
|
|
|
@ -174,8 +174,10 @@ export class ActiveWorkflowRunner {
|
||||||
throw new ResponseHelper.ResponseError(`The requested webhook "${httpMethod} ${path}" is not registered.`, 404, 404, WEBHOOK_PROD_UNREGISTERED_HINT);
|
throw new ResponseHelper.ResponseError(`The requested webhook "${httpMethod} ${path}" is not registered.`, 404, 404, WEBHOOK_PROD_UNREGISTERED_HINT);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
path = webhook!.webhookPath;
|
path = webhook!.webhookPath;
|
||||||
// extracting params from path
|
// extracting params from path
|
||||||
|
// @ts-ignore
|
||||||
webhook!.webhookPath.split('/').forEach((ele, index) => {
|
webhook!.webhookPath.split('/').forEach((ele, index) => {
|
||||||
if (ele.startsWith(':')) {
|
if (ele.startsWith(':')) {
|
||||||
// write params to req.params
|
// write params to req.params
|
||||||
|
|
|
@ -38,7 +38,7 @@
|
||||||
"source-map-support": "^0.5.9",
|
"source-map-support": "^0.5.9",
|
||||||
"ts-jest": "^26.3.0",
|
"ts-jest": "^26.3.0",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.2",
|
||||||
"typescript": "~3.9.7"
|
"typescript": "~4.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"client-oauth2": "^4.2.5",
|
"client-oauth2": "^4.2.5",
|
||||||
|
|
|
@ -6,5 +6,8 @@ module.exports = {
|
||||||
// transpileDependencies: [
|
// transpileDependencies: [
|
||||||
// /\/node_modules\/quill/
|
// /\/node_modules\/quill/
|
||||||
// ]
|
// ]
|
||||||
|
plugins: [
|
||||||
|
"@babel/plugin-proposal-class-properties",
|
||||||
|
],
|
||||||
};
|
};
|
||||||
// // https://stackoverflow.com/questions/44625868/es6-babel-class-constructor-cannot-be-invoked-without-new
|
// // https://stackoverflow.com/questions/44625868/es6-babel-class-constructor-cannot-be-invoked-without-new
|
||||||
|
|
|
@ -80,7 +80,7 @@
|
||||||
"string-template-parser": "^1.2.6",
|
"string-template-parser": "^1.2.6",
|
||||||
"ts-jest": "^26.3.0",
|
"ts-jest": "^26.3.0",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.2",
|
||||||
"typescript": "~3.9.7",
|
"typescript": "~4.3.5",
|
||||||
"uuid": "^8.3.0",
|
"uuid": "^8.3.0",
|
||||||
"vue": "^2.6.9",
|
"vue": "^2.6.9",
|
||||||
"vue-cli-plugin-webpack-bundle-analyzer": "^2.0.0",
|
"vue-cli-plugin-webpack-bundle-analyzer": "^2.0.0",
|
||||||
|
|
|
@ -65,6 +65,6 @@
|
||||||
"replace-in-file": "^6.0.0",
|
"replace-in-file": "^6.0.0",
|
||||||
"request": "^2.88.2",
|
"request": "^2.88.2",
|
||||||
"tmp-promise": "^2.0.2",
|
"tmp-promise": "^2.0.2",
|
||||||
"typescript": "~3.9.7"
|
"typescript": "~4.3.5"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -85,6 +85,7 @@ export class Discord implements INodeType {
|
||||||
// Waiting rating limit
|
// Waiting rating limit
|
||||||
await new Promise((resolve) => {
|
await new Promise((resolve) => {
|
||||||
setTimeout(async () => {
|
setTimeout(async () => {
|
||||||
|
// @ts-ignore
|
||||||
resolve();
|
resolve();
|
||||||
}, get(error, 'response.body.retry_after', 150));
|
}, get(error, 'response.body.retry_after', 150));
|
||||||
});
|
});
|
||||||
|
|
|
@ -552,6 +552,7 @@ export class Slack implements INodeType {
|
||||||
attachment.fields = attachment.fields.item;
|
attachment.fields = attachment.fields.item;
|
||||||
} else {
|
} else {
|
||||||
// If it does not have any items set remove it
|
// If it does not have any items set remove it
|
||||||
|
// @ts-ignore
|
||||||
delete attachment.fields;
|
delete attachment.fields;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -786,6 +787,7 @@ export class Slack implements INodeType {
|
||||||
attachment.fields = attachment.fields.item;
|
attachment.fields = attachment.fields.item;
|
||||||
} else {
|
} else {
|
||||||
// If it does not have any items set remove it
|
// If it does not have any items set remove it
|
||||||
|
// @ts-ignore
|
||||||
delete attachment.fields;
|
delete attachment.fields;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -9,6 +9,7 @@ export function connect(conn: snowflake.Connection) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
conn.connect((err, conn) => {
|
conn.connect((err, conn) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
// @ts-ignore
|
||||||
resolve();
|
resolve();
|
||||||
} else {
|
} else {
|
||||||
reject(err);
|
reject(err);
|
||||||
|
@ -21,6 +22,7 @@ export function destroy(conn: snowflake.Connection) {
|
||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
conn.destroy((err, conn) => {
|
conn.destroy((err, conn) => {
|
||||||
if (!err) {
|
if (!err) {
|
||||||
|
// @ts-ignore
|
||||||
resolve();
|
resolve();
|
||||||
} else {
|
} else {
|
||||||
reject(err);
|
reject(err);
|
||||||
|
|
|
@ -165,6 +165,7 @@ export async function uploadAttachments(this: IExecuteFunctions, binaryPropertie
|
||||||
const { check_after_secs } = (response.processing_info as IDataObject);
|
const { check_after_secs } = (response.processing_info as IDataObject);
|
||||||
await new Promise((resolve, reject) => {
|
await new Promise((resolve, reject) => {
|
||||||
setTimeout(() => {
|
setTimeout(() => {
|
||||||
|
// @ts-ignore
|
||||||
resolve();
|
resolve();
|
||||||
}, (check_after_secs as number) * 1000);
|
}, (check_after_secs as number) * 1000);
|
||||||
});
|
});
|
||||||
|
|
|
@ -638,7 +638,7 @@
|
||||||
"nodelinter": "^0.1.9",
|
"nodelinter": "^0.1.9",
|
||||||
"ts-jest": "^26.3.0",
|
"ts-jest": "^26.3.0",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.2",
|
||||||
"typescript": "~3.9.7"
|
"typescript": "~4.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/lossless-json": "^1.0.0",
|
"@types/lossless-json": "^1.0.0",
|
||||||
|
|
|
@ -34,7 +34,7 @@
|
||||||
"jest": "^26.4.2",
|
"jest": "^26.4.2",
|
||||||
"ts-jest": "^26.3.0",
|
"ts-jest": "^26.3.0",
|
||||||
"tslint": "^6.1.2",
|
"tslint": "^6.1.2",
|
||||||
"typescript": "~3.9.7"
|
"typescript": "~4.3.5"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"lodash.get": "^4.4.2",
|
"lodash.get": "^4.4.2",
|
||||||
|
|
Loading…
Reference in a new issue