Bump jest and typescript versions
This commit is contained in:
parent
2b373356cb
commit
039214a996
135
dist/index.js
vendored
135
dist/index.js
vendored
@ -8,7 +8,11 @@
|
|||||||
|
|
||||||
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
|
var desc = Object.getOwnPropertyDescriptor(m, k);
|
||||||
|
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
||||||
|
desc = { enumerable: true, get: function() { return m[k]; } };
|
||||||
|
}
|
||||||
|
Object.defineProperty(o, k2, desc);
|
||||||
}) : (function(o, m, k, k2) {
|
}) : (function(o, m, k, k2) {
|
||||||
if (k2 === undefined) k2 = k;
|
if (k2 === undefined) k2 = k;
|
||||||
o[k2] = m[k];
|
o[k2] = m[k];
|
||||||
@ -21,7 +25,7 @@ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (
|
|||||||
var __importStar = (this && this.__importStar) || function (mod) {
|
var __importStar = (this && this.__importStar) || function (mod) {
|
||||||
if (mod && mod.__esModule) return mod;
|
if (mod && mod.__esModule) return mod;
|
||||||
var result = {};
|
var result = {};
|
||||||
if (mod != null) for (var k in mod) if (k !== "default" && Object.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
||||||
__setModuleDefault(result, mod);
|
__setModuleDefault(result, mod);
|
||||||
return result;
|
return result;
|
||||||
};
|
};
|
||||||
@ -15566,35 +15570,61 @@ module.exports = /^#!.*/;
|
|||||||
// Note: since nyc uses this module to output coverage, any lines
|
// Note: since nyc uses this module to output coverage, any lines
|
||||||
// that are in the direct sync flow of nyc's outputCoverage are
|
// that are in the direct sync flow of nyc's outputCoverage are
|
||||||
// ignored, since we can never get coverage for them.
|
// ignored, since we can never get coverage for them.
|
||||||
var assert = __nccwpck_require__(9491)
|
// grab a reference to node's real process object right away
|
||||||
var signals = __nccwpck_require__(3710)
|
var process = global.process
|
||||||
var isWin = /^win/i.test(process.platform)
|
|
||||||
|
|
||||||
var EE = __nccwpck_require__(2361)
|
const processOk = function (process) {
|
||||||
/* istanbul ignore if */
|
return process &&
|
||||||
if (typeof EE !== 'function') {
|
typeof process === 'object' &&
|
||||||
EE = EE.EventEmitter
|
typeof process.removeListener === 'function' &&
|
||||||
|
typeof process.emit === 'function' &&
|
||||||
|
typeof process.reallyExit === 'function' &&
|
||||||
|
typeof process.listeners === 'function' &&
|
||||||
|
typeof process.kill === 'function' &&
|
||||||
|
typeof process.pid === 'number' &&
|
||||||
|
typeof process.on === 'function'
|
||||||
}
|
}
|
||||||
|
|
||||||
var emitter
|
// some kind of non-node environment, just no-op
|
||||||
if (process.__signal_exit_emitter__) {
|
/* istanbul ignore if */
|
||||||
emitter = process.__signal_exit_emitter__
|
if (!processOk(process)) {
|
||||||
|
module.exports = function () {
|
||||||
|
return function () {}
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
|
var assert = __nccwpck_require__(9491)
|
||||||
|
var signals = __nccwpck_require__(3710)
|
||||||
|
var isWin = /^win/i.test(process.platform)
|
||||||
|
|
||||||
|
var EE = __nccwpck_require__(2361)
|
||||||
|
/* istanbul ignore if */
|
||||||
|
if (typeof EE !== 'function') {
|
||||||
|
EE = EE.EventEmitter
|
||||||
|
}
|
||||||
|
|
||||||
|
var emitter
|
||||||
|
if (process.__signal_exit_emitter__) {
|
||||||
|
emitter = process.__signal_exit_emitter__
|
||||||
|
} else {
|
||||||
emitter = process.__signal_exit_emitter__ = new EE()
|
emitter = process.__signal_exit_emitter__ = new EE()
|
||||||
emitter.count = 0
|
emitter.count = 0
|
||||||
emitter.emitted = {}
|
emitter.emitted = {}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Because this emitter is a global, we have to check to see if a
|
// Because this emitter is a global, we have to check to see if a
|
||||||
// previous version of this library failed to enable infinite listeners.
|
// previous version of this library failed to enable infinite listeners.
|
||||||
// I know what you're about to say. But literally everything about
|
// I know what you're about to say. But literally everything about
|
||||||
// signal-exit is a compromise with evil. Get used to it.
|
// signal-exit is a compromise with evil. Get used to it.
|
||||||
if (!emitter.infinite) {
|
if (!emitter.infinite) {
|
||||||
emitter.setMaxListeners(Infinity)
|
emitter.setMaxListeners(Infinity)
|
||||||
emitter.infinite = true
|
emitter.infinite = true
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = function (cb, opts) {
|
module.exports = function (cb, opts) {
|
||||||
|
/* istanbul ignore if */
|
||||||
|
if (!processOk(global.process)) {
|
||||||
|
return function () {}
|
||||||
|
}
|
||||||
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
|
assert.equal(typeof cb, 'function', 'a callback must be provided for exit handler')
|
||||||
|
|
||||||
if (loaded === false) {
|
if (loaded === false) {
|
||||||
@ -15616,11 +15646,10 @@ module.exports = function (cb, opts) {
|
|||||||
emitter.on(ev, cb)
|
emitter.on(ev, cb)
|
||||||
|
|
||||||
return remove
|
return remove
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.unload = unload
|
var unload = function unload () {
|
||||||
function unload () {
|
if (!loaded || !processOk(global.process)) {
|
||||||
if (!loaded) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
loaded = false
|
loaded = false
|
||||||
@ -15633,20 +15662,26 @@ function unload () {
|
|||||||
process.emit = originalProcessEmit
|
process.emit = originalProcessEmit
|
||||||
process.reallyExit = originalProcessReallyExit
|
process.reallyExit = originalProcessReallyExit
|
||||||
emitter.count -= 1
|
emitter.count -= 1
|
||||||
}
|
}
|
||||||
|
module.exports.unload = unload
|
||||||
|
|
||||||
function emit (event, code, signal) {
|
var emit = function emit (event, code, signal) {
|
||||||
|
/* istanbul ignore if */
|
||||||
if (emitter.emitted[event]) {
|
if (emitter.emitted[event]) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
emitter.emitted[event] = true
|
emitter.emitted[event] = true
|
||||||
emitter.emit(event, code, signal)
|
emitter.emit(event, code, signal)
|
||||||
}
|
}
|
||||||
|
|
||||||
// { <signal>: <listener fn>, ... }
|
// { <signal>: <listener fn>, ... }
|
||||||
var sigListeners = {}
|
var sigListeners = {}
|
||||||
signals.forEach(function (sig) {
|
signals.forEach(function (sig) {
|
||||||
sigListeners[sig] = function listener () {
|
sigListeners[sig] = function listener () {
|
||||||
|
/* istanbul ignore if */
|
||||||
|
if (!processOk(global.process)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
// If there are no other listeners, an exit is coming!
|
// If there are no other listeners, an exit is coming!
|
||||||
// Simplest way: remove us and then re-send the signal.
|
// Simplest way: remove us and then re-send the signal.
|
||||||
// We know that this will kill the process, so we can
|
// We know that this will kill the process, so we can
|
||||||
@ -15663,21 +15698,20 @@ signals.forEach(function (sig) {
|
|||||||
// so use a supported signal instead
|
// so use a supported signal instead
|
||||||
sig = 'SIGINT'
|
sig = 'SIGINT'
|
||||||
}
|
}
|
||||||
|
/* istanbul ignore next */
|
||||||
process.kill(process.pid, sig)
|
process.kill(process.pid, sig)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|
||||||
module.exports.signals = function () {
|
module.exports.signals = function () {
|
||||||
return signals
|
return signals
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports.load = load
|
var loaded = false
|
||||||
|
|
||||||
var loaded = false
|
var load = function load () {
|
||||||
|
if (loaded || !processOk(global.process)) {
|
||||||
function load () {
|
|
||||||
if (loaded) {
|
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
loaded = true
|
loaded = true
|
||||||
@ -15699,32 +15733,41 @@ function load () {
|
|||||||
|
|
||||||
process.emit = processEmit
|
process.emit = processEmit
|
||||||
process.reallyExit = processReallyExit
|
process.reallyExit = processReallyExit
|
||||||
}
|
}
|
||||||
|
module.exports.load = load
|
||||||
|
|
||||||
var originalProcessReallyExit = process.reallyExit
|
var originalProcessReallyExit = process.reallyExit
|
||||||
function processReallyExit (code) {
|
var processReallyExit = function processReallyExit (code) {
|
||||||
process.exitCode = code || 0
|
/* istanbul ignore if */
|
||||||
|
if (!processOk(global.process)) {
|
||||||
|
return
|
||||||
|
}
|
||||||
|
process.exitCode = code || /* istanbul ignore next */ 0
|
||||||
emit('exit', process.exitCode, null)
|
emit('exit', process.exitCode, null)
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
emit('afterexit', process.exitCode, null)
|
emit('afterexit', process.exitCode, null)
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
originalProcessReallyExit.call(process, process.exitCode)
|
originalProcessReallyExit.call(process, process.exitCode)
|
||||||
}
|
}
|
||||||
|
|
||||||
var originalProcessEmit = process.emit
|
var originalProcessEmit = process.emit
|
||||||
function processEmit (ev, arg) {
|
var processEmit = function processEmit (ev, arg) {
|
||||||
if (ev === 'exit') {
|
if (ev === 'exit' && processOk(global.process)) {
|
||||||
|
/* istanbul ignore else */
|
||||||
if (arg !== undefined) {
|
if (arg !== undefined) {
|
||||||
process.exitCode = arg
|
process.exitCode = arg
|
||||||
}
|
}
|
||||||
var ret = originalProcessEmit.apply(this, arguments)
|
var ret = originalProcessEmit.apply(this, arguments)
|
||||||
|
/* istanbul ignore next */
|
||||||
emit('exit', process.exitCode, null)
|
emit('exit', process.exitCode, null)
|
||||||
/* istanbul ignore next */
|
/* istanbul ignore next */
|
||||||
emit('afterexit', process.exitCode, null)
|
emit('afterexit', process.exitCode, null)
|
||||||
|
/* istanbul ignore next */
|
||||||
return ret
|
return ret
|
||||||
} else {
|
} else {
|
||||||
return originalProcessEmit.apply(this, arguments)
|
return originalProcessEmit.apply(this, arguments)
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
9431
package-lock.json
generated
9431
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -33,18 +33,18 @@
|
|||||||
"glob": "^7.1.6"
|
"glob": "^7.1.6"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jest": "^24.9.1",
|
"@types/jest": "^29",
|
||||||
"@types/node": "^16",
|
"@types/node": "^16",
|
||||||
"@typescript-eslint/parser": "^3.5.0",
|
"@typescript-eslint/parser": "^3.5.0",
|
||||||
"@vercel/ncc": "^0.36.0",
|
"@vercel/ncc": "^0.36.0",
|
||||||
"eslint": "^7.10.0",
|
"eslint": "^7.10.0",
|
||||||
"eslint-plugin-github": "^4.0.1",
|
"eslint-plugin-github": "^4.0.1",
|
||||||
"eslint-plugin-jest": "^23.17.1",
|
"eslint-plugin-jest": "^23.17.1",
|
||||||
"jest": "^26.5.2",
|
"jest": "^29",
|
||||||
"jest-circus": "^26.5.2",
|
"jest-circus": "^26.5.2",
|
||||||
"js-yaml": "^3.14.0",
|
"js-yaml": "^3.14.0",
|
||||||
"prettier": "^2.0.5",
|
"prettier": "^2.0.5",
|
||||||
"ts-jest": "^26.4.1",
|
"ts-jest": "^29",
|
||||||
"typescript": "^3.9.6"
|
"typescript": "^4"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user