Updated @types/node to v14, fixed TS breaking with changes

This commit is contained in:
Rupenieks 2020-08-12 12:19:41 +02:00
parent 3ef6f031ec
commit a69098a096
10 changed files with 12 additions and 9 deletions

View file

@ -181,7 +181,7 @@ export class Start extends Command {
Start.openBrowser(); Start.openBrowser();
} }
this.log(`\nPress "o" to open in Browser.`); this.log(`\nPress "o" to open in Browser.`);
process.stdin.on("data", (key) => { process.stdin.on("data", (key : string) => {
if (key === 'o') { if (key === 'o') {
Start.openBrowser(); Start.openBrowser();
inputText = ''; inputText = '';

View file

@ -62,7 +62,7 @@
"@types/jest": "^24.0.18", "@types/jest": "^24.0.18",
"@types/localtunnel": "^1.9.0", "@types/localtunnel": "^1.9.0",
"@types/lodash.get": "^4.4.6", "@types/lodash.get": "^4.4.6",
"@types/node": "^10.10.1", "@types/node": "^14.0.26",
"@types/open": "^6.1.0", "@types/open": "^6.1.0",
"@types/parseurl": "^1.3.1", "@types/parseurl": "^1.3.1",
"@types/request-promise-native": "^1.0.15", "@types/request-promise-native": "^1.0.15",

View file

@ -31,7 +31,7 @@
"@types/jest": "^24.0.18", "@types/jest": "^24.0.18",
"@types/lodash.get": "^4.4.6", "@types/lodash.get": "^4.4.6",
"@types/mime-types": "^2.1.0", "@types/mime-types": "^2.1.0",
"@types/node": "^10.10.1", "@types/node": "^14.0.26",
"@types/request-promise-native": "^1.0.15", "@types/request-promise-native": "^1.0.15",
"jest": "^24.9.0", "jest": "^24.9.0",
"source-map-support": "^0.5.9", "source-map-support": "^0.5.9",

View file

@ -37,7 +37,7 @@
"@types/jest": "^25.2.1", "@types/jest": "^25.2.1",
"@types/lodash.get": "^4.4.6", "@types/lodash.get": "^4.4.6",
"@types/lodash.set": "^4.3.6", "@types/lodash.set": "^4.3.6",
"@types/node": "12.12.22", "@types/node": "^14.0.26",
"@types/quill": "^2.0.1", "@types/quill": "^2.0.1",
"@typescript-eslint/eslint-plugin": "^2.13.0", "@typescript-eslint/eslint-plugin": "^2.13.0",
"@typescript-eslint/parser": "^2.13.0", "@typescript-eslint/parser": "^2.13.0",

View file

@ -54,7 +54,7 @@
"@oclif/command": "^1.5.18", "@oclif/command": "^1.5.18",
"@oclif/errors": "^1.2.2", "@oclif/errors": "^1.2.2",
"@types/express": "^4.16.1", "@types/express": "^4.16.1",
"@types/node": "^10.10.1", "@types/node": "^14.0.26",
"change-case": "^4.1.1", "change-case": "^4.1.1",
"copyfiles": "^2.1.1", "copyfiles": "^2.1.1",
"inquirer": "^7.0.0", "inquirer": "^7.0.0",

View file

@ -83,7 +83,9 @@ export async function buildFiles (options?: IBuildOptions): Promise<string> {
// Forward the output of the child process to the main one // Forward the output of the child process to the main one
// that the user can see what is happening // that the user can see what is happening
//@ts-ignore
buildProcess.stdout.pipe(process.stdout); buildProcess.stdout.pipe(process.stdout);
//@ts-ignore
buildProcess.stderr.pipe(process.stderr); buildProcess.stderr.pipe(process.stderr);
// Make sure that the child process gets also always terminated // Make sure that the child process gets also always terminated

View file

@ -404,7 +404,8 @@ export class JiraTrigger implements INodeType {
} }
if (additionalFields.includeFields) { if (additionalFields.includeFields) {
const parameters: IDataObject = {}; // tslint:disable-next-line: no-any
const parameters: any = {};
for (const field of additionalFields.includeFields as string[]) { for (const field of additionalFields.includeFields as string[]) {
parameters[field] = '${' + field + '}'; parameters[field] = '${' + field + '}';
} }

View file

@ -336,7 +336,7 @@ export class MoveBinaryData implements INodeType {
continue; continue;
} }
const encoding = (options.encoding as string) || 'utf8'; const encoding = (options.encoding as BufferEncoding) || 'utf8';
let convertedValue = value.data; let convertedValue = value.data;
if (setAllData === true) { if (setAllData === true) {

View file

@ -359,7 +359,7 @@
"@types/moment-timezone": "^0.5.12", "@types/moment-timezone": "^0.5.12",
"@types/mongodb": "^3.5.4", "@types/mongodb": "^3.5.4",
"@types/mssql": "^6.0.2", "@types/mssql": "^6.0.2",
"@types/node": "^10.10.1", "@types/node": "^14.0.26",
"@types/nodemailer": "^6.4.0", "@types/nodemailer": "^6.4.0",
"@types/redis": "^2.8.11", "@types/redis": "^2.8.11",
"@types/request-promise-native": "~1.0.15", "@types/request-promise-native": "~1.0.15",

View file

@ -28,7 +28,7 @@
"@types/express": "^4.16.1", "@types/express": "^4.16.1",
"@types/jest": "^24.0.18", "@types/jest": "^24.0.18",
"@types/lodash.get": "^4.4.6", "@types/lodash.get": "^4.4.6",
"@types/node": "^10.10.1", "@types/node": "^14.0.26",
"jest": "^24.9.0", "jest": "^24.9.0",
"ts-jest": "^24.0.2", "ts-jest": "^24.0.2",
"tslint": "^6.1.2", "tslint": "^6.1.2",