mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Upgrade @types/node to match Node.js runtime (#60368)
Kibana uses Node.js v10.19.0. The closest version of @types/node to this version is currently v10.17.17. This commit updates the resolutions field in package.json to ensure that the latest version less than 10.20.0 is always used.
This commit is contained in:
parent
2a8a7d7970
commit
59a522b4ef
7 changed files with 26 additions and 12 deletions
|
@ -77,7 +77,7 @@
|
|||
"url": "https://github.com/elastic/kibana.git"
|
||||
},
|
||||
"resolutions": {
|
||||
"**/@types/node": "10.12.27",
|
||||
"**/@types/node": ">=10.17.17 <10.20.0",
|
||||
"**/@types/react": "^16.9.19",
|
||||
"**/@types/react-router": "^5.1.3",
|
||||
"**/@types/hapi": "^17.0.18",
|
||||
|
@ -350,7 +350,7 @@
|
|||
"@types/mocha": "^5.2.7",
|
||||
"@types/moment-timezone": "^0.5.12",
|
||||
"@types/mustache": "^0.8.31",
|
||||
"@types/node": "^10.12.27",
|
||||
"@types/node": ">=10.17.17 <10.20.0",
|
||||
"@types/node-forge": "^0.9.0",
|
||||
"@types/normalize-path": "^3.0.0",
|
||||
"@types/numeral": "^0.0.26",
|
||||
|
|
|
@ -17,6 +17,8 @@
|
|||
* under the License.
|
||||
*/
|
||||
|
||||
import { inspect } from 'util';
|
||||
|
||||
// @ts-ignore @types are outdated and module is super simple
|
||||
import exitHook from 'exit-hook';
|
||||
|
||||
|
@ -62,7 +64,11 @@ export async function run(fn: RunFn, options: Options = {}) {
|
|||
|
||||
process.on('unhandledRejection', error => {
|
||||
log.error('UNHANDLED PROMISE REJECTION');
|
||||
log.error(error);
|
||||
log.error(
|
||||
error instanceof Error
|
||||
? error
|
||||
: new Error(`non-Error type rejection value: ${inspect(error)}`)
|
||||
);
|
||||
process.exit(1);
|
||||
});
|
||||
|
||||
|
|
5
packages/kbn-pm/dist/index.js
vendored
5
packages/kbn-pm/dist/index.js
vendored
|
@ -39806,6 +39806,7 @@ exports.isFailError = fail_1.isFailError;
|
|||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
const tslib_1 = __webpack_require__(36);
|
||||
const util_1 = __webpack_require__(29);
|
||||
// @ts-ignore @types are outdated and module is super simple
|
||||
const exit_hook_1 = tslib_1.__importDefault(__webpack_require__(348));
|
||||
const tooling_log_1 = __webpack_require__(415);
|
||||
|
@ -39825,7 +39826,9 @@ async function run(fn, options = {}) {
|
|||
});
|
||||
process.on('unhandledRejection', error => {
|
||||
log.error('UNHANDLED PROMISE REJECTION');
|
||||
log.error(error);
|
||||
log.error(error instanceof Error
|
||||
? error
|
||||
: new Error(`non-Error type rejection value: ${util_1.inspect(error)}`));
|
||||
process.exit(1);
|
||||
});
|
||||
const handleErrorWithoutExit = (error) => {
|
||||
|
|
|
@ -26,7 +26,7 @@
|
|||
"@types/lodash.clonedeepwith": "^4.5.3",
|
||||
"@types/log-symbols": "^2.0.0",
|
||||
"@types/ncp": "^2.0.1",
|
||||
"@types/node": "^10.12.27",
|
||||
"@types/node": ">=10.17.17 <10.20.0",
|
||||
"@types/ora": "^1.3.5",
|
||||
"@types/read-pkg": "^4.0.0",
|
||||
"@types/strip-ansi": "^3.0.0",
|
||||
|
|
|
@ -18,6 +18,7 @@
|
|||
*/
|
||||
|
||||
import { resolve } from 'path';
|
||||
import { inspect } from 'util';
|
||||
import { run, createFlagError, Flags } from '@kbn/dev-utils';
|
||||
import { FunctionalTestRunner } from './functional_test_runner';
|
||||
|
||||
|
@ -86,7 +87,11 @@ export function runFtrCli() {
|
|||
}
|
||||
};
|
||||
|
||||
process.on('unhandledRejection', err => teardown(err));
|
||||
process.on('unhandledRejection', err =>
|
||||
teardown(
|
||||
err instanceof Error ? err : new Error(`non-Error type rejection value: ${inspect(err)}`)
|
||||
)
|
||||
);
|
||||
process.on('SIGTERM', () => teardown());
|
||||
process.on('SIGINT', () => teardown());
|
||||
|
||||
|
|
|
@ -23,7 +23,7 @@
|
|||
}
|
||||
},
|
||||
"resolutions": {
|
||||
"**/@types/node": "10.12.27"
|
||||
"**/@types/node": ">=10.17.17 <10.20.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@cypress/webpack-preprocessor": "^4.1.0",
|
||||
|
@ -80,7 +80,7 @@
|
|||
"@types/mime": "^2.0.1",
|
||||
"@types/mocha": "^5.2.7",
|
||||
"@types/nock": "^10.0.3",
|
||||
"@types/node": "^10.12.27",
|
||||
"@types/node": ">=10.17.17 <10.20.0",
|
||||
"@types/node-fetch": "^2.5.0",
|
||||
"@types/nodemailer": "^6.2.1",
|
||||
"@types/object-hash": "^1.3.0",
|
||||
|
|
|
@ -4894,10 +4894,10 @@
|
|||
dependencies:
|
||||
"@types/node" "*"
|
||||
|
||||
"@types/node@*", "@types/node@10.12.27", "@types/node@8.10.54", "@types/node@>=8.9.0", "@types/node@^10.12.27", "@types/node@^12.0.2":
|
||||
version "10.12.27"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.12.27.tgz#eb3843f15d0ba0986cc7e4d734d2ee8b50709ef8"
|
||||
integrity sha512-e9wgeY6gaY21on3ve0xAjgBVjGDWq/xUteK0ujsE53bUoxycMkqfnkUgMt6ffZtykZ5X12Mg3T7Pw4TRCObDKg==
|
||||
"@types/node@*", "@types/node@8.10.54", "@types/node@>=10.17.17 <10.20.0", "@types/node@>=8.9.0", "@types/node@^12.0.2":
|
||||
version "10.17.17"
|
||||
resolved "https://registry.yarnpkg.com/@types/node/-/node-10.17.17.tgz#7a183163a9e6ff720d86502db23ba4aade5999b8"
|
||||
integrity sha512-gpNnRnZP3VWzzj5k3qrpRC6Rk3H/uclhAVo1aIvwzK5p5cOrs9yEyQ8H/HBsBY0u5rrWxXEiVPQ0dEB6pkjE8Q==
|
||||
|
||||
"@types/nodemailer@^6.2.1":
|
||||
version "6.2.1"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue