⬆️ Upgrade TS to 4.3.5

This commit is contained in:
Iván Ovejero 2021-08-19 12:18:28 +02:00
parent 7ef2934626
commit 4b7311e4c5
13 changed files with 21 additions and 9 deletions

View file

@ -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",

View file

@ -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] = {

View file

@ -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

View file

@ -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",

View file

@ -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

View file

@ -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",

View file

@ -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"
}
}

View file

@ -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));
});

View file

@ -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;
}
}

View file

@ -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);

View file

@ -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);
});

View file

@ -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",

View file

@ -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",