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-node": "^8.9.1",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "~3.9.7"
|
||||
"typescript": "~4.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@oclif/command": "^1.5.18",
|
||||
|
|
|
@ -58,6 +58,7 @@ export class ActiveExecutions {
|
|||
// Save the Execution in DB
|
||||
const executionResult = await Db.collections.Execution!.save(execution as IExecutionFlattedDb);
|
||||
|
||||
// @ts-ignore
|
||||
const executionId = typeof executionResult.id === "object" ? executionResult.id!.toString() : executionResult.id + "";
|
||||
|
||||
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);
|
||||
}
|
||||
|
||||
// @ts-ignore
|
||||
path = webhook!.webhookPath;
|
||||
// extracting params from path
|
||||
// @ts-ignore
|
||||
webhook!.webhookPath.split('/').forEach((ele, index) => {
|
||||
if (ele.startsWith(':')) {
|
||||
// write params to req.params
|
||||
|
|
|
@ -38,7 +38,7 @@
|
|||
"source-map-support": "^0.5.9",
|
||||
"ts-jest": "^26.3.0",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "~3.9.7"
|
||||
"typescript": "~4.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"client-oauth2": "^4.2.5",
|
||||
|
|
|
@ -6,5 +6,8 @@ module.exports = {
|
|||
// transpileDependencies: [
|
||||
// /\/node_modules\/quill/
|
||||
// ]
|
||||
plugins: [
|
||||
"@babel/plugin-proposal-class-properties",
|
||||
],
|
||||
};
|
||||
// // https://stackoverflow.com/questions/44625868/es6-babel-class-constructor-cannot-be-invoked-without-new
|
||||
|
|
|
@ -80,7 +80,7 @@
|
|||
"string-template-parser": "^1.2.6",
|
||||
"ts-jest": "^26.3.0",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "~3.9.7",
|
||||
"typescript": "~4.3.5",
|
||||
"uuid": "^8.3.0",
|
||||
"vue": "^2.6.9",
|
||||
"vue-cli-plugin-webpack-bundle-analyzer": "^2.0.0",
|
||||
|
|
|
@ -65,6 +65,6 @@
|
|||
"replace-in-file": "^6.0.0",
|
||||
"request": "^2.88.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
|
||||
await new Promise((resolve) => {
|
||||
setTimeout(async () => {
|
||||
// @ts-ignore
|
||||
resolve();
|
||||
}, get(error, 'response.body.retry_after', 150));
|
||||
});
|
||||
|
|
|
@ -552,6 +552,7 @@ export class Slack implements INodeType {
|
|||
attachment.fields = attachment.fields.item;
|
||||
} else {
|
||||
// If it does not have any items set remove it
|
||||
// @ts-ignore
|
||||
delete attachment.fields;
|
||||
}
|
||||
}
|
||||
|
@ -786,6 +787,7 @@ export class Slack implements INodeType {
|
|||
attachment.fields = attachment.fields.item;
|
||||
} else {
|
||||
// If it does not have any items set remove it
|
||||
// @ts-ignore
|
||||
delete attachment.fields;
|
||||
}
|
||||
}
|
||||
|
@ -1037,11 +1039,11 @@ export class Slack implements INodeType {
|
|||
const additionalFields = this.getNodeParameter('additionalFields', i) as IDataObject;
|
||||
|
||||
const qs: IDataObject = {};
|
||||
|
||||
|
||||
Object.assign(qs, additionalFields);
|
||||
|
||||
|
||||
responseData = await slackApiRequest.call(this, 'POST', '/users.profile.get', undefined, qs);
|
||||
|
||||
|
||||
responseData = responseData.profile;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -9,6 +9,7 @@ export function connect(conn: snowflake.Connection) {
|
|||
return new Promise((resolve, reject) => {
|
||||
conn.connect((err, conn) => {
|
||||
if (!err) {
|
||||
// @ts-ignore
|
||||
resolve();
|
||||
} else {
|
||||
reject(err);
|
||||
|
@ -21,6 +22,7 @@ export function destroy(conn: snowflake.Connection) {
|
|||
return new Promise((resolve, reject) => {
|
||||
conn.destroy((err, conn) => {
|
||||
if (!err) {
|
||||
// @ts-ignore
|
||||
resolve();
|
||||
} else {
|
||||
reject(err);
|
||||
|
|
|
@ -165,6 +165,7 @@ export async function uploadAttachments(this: IExecuteFunctions, binaryPropertie
|
|||
const { check_after_secs } = (response.processing_info as IDataObject);
|
||||
await new Promise((resolve, reject) => {
|
||||
setTimeout(() => {
|
||||
// @ts-ignore
|
||||
resolve();
|
||||
}, (check_after_secs as number) * 1000);
|
||||
});
|
||||
|
|
|
@ -638,7 +638,7 @@
|
|||
"nodelinter": "^0.1.9",
|
||||
"ts-jest": "^26.3.0",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "~3.9.7"
|
||||
"typescript": "~4.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"@types/lossless-json": "^1.0.0",
|
||||
|
|
|
@ -34,7 +34,7 @@
|
|||
"jest": "^26.4.2",
|
||||
"ts-jest": "^26.3.0",
|
||||
"tslint": "^6.1.2",
|
||||
"typescript": "~3.9.7"
|
||||
"typescript": "~4.3.5"
|
||||
},
|
||||
"dependencies": {
|
||||
"lodash.get": "^4.4.2",
|
||||
|
|
Loading…
Reference in a new issue