jest-worker
Advanced tools
Comparing version 27.0.0-next.9 to 27.0.0-next.10
@@ -42,13 +42,13 @@ 'use strict'; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== 'function') return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function () { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function (nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -59,3 +59,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -68,3 +68,3 @@ return cache.get(obj); | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor | ||
@@ -71,0 +71,0 @@ ? Object.getOwnPropertyDescriptor(obj, key) |
@@ -6,3 +6,10 @@ 'use strict'; | ||
}); | ||
exports.PARENT_MESSAGE_CUSTOM = exports.PARENT_MESSAGE_SETUP_ERROR = exports.PARENT_MESSAGE_CLIENT_ERROR = exports.PARENT_MESSAGE_OK = exports.CHILD_MESSAGE_END = exports.CHILD_MESSAGE_CALL = exports.CHILD_MESSAGE_INITIALIZE = void 0; | ||
exports.PARENT_MESSAGE_CUSTOM = | ||
exports.PARENT_MESSAGE_SETUP_ERROR = | ||
exports.PARENT_MESSAGE_CLIENT_ERROR = | ||
exports.PARENT_MESSAGE_OK = | ||
exports.CHILD_MESSAGE_END = | ||
exports.CHILD_MESSAGE_CALL = | ||
exports.CHILD_MESSAGE_INITIALIZE = | ||
void 0; | ||
@@ -9,0 +16,0 @@ /** |
@@ -193,3 +193,5 @@ 'use strict'; | ||
if (this._retries > this._options.maxRetries) { | ||
const error = new Error('Call retries were exceeded'); | ||
const error = new Error( | ||
`Jest worker encountered ${this._retries} child process exceptions, exceeding retry limit` | ||
); | ||
@@ -196,0 +198,0 @@ this._onMessage([ |
@@ -62,13 +62,13 @@ 'use strict'; | ||
function _getRequireWildcardCache() { | ||
function _getRequireWildcardCache(nodeInterop) { | ||
if (typeof WeakMap !== 'function') return null; | ||
var cache = new WeakMap(); | ||
_getRequireWildcardCache = function () { | ||
return cache; | ||
}; | ||
return cache; | ||
var cacheBabelInterop = new WeakMap(); | ||
var cacheNodeInterop = new WeakMap(); | ||
return (_getRequireWildcardCache = function (nodeInterop) { | ||
return nodeInterop ? cacheNodeInterop : cacheBabelInterop; | ||
})(nodeInterop); | ||
} | ||
function _interopRequireWildcard(obj) { | ||
if (obj && obj.__esModule) { | ||
function _interopRequireWildcard(obj, nodeInterop) { | ||
if (!nodeInterop && obj && obj.__esModule) { | ||
return obj; | ||
@@ -79,3 +79,3 @@ } | ||
} | ||
var cache = _getRequireWildcardCache(); | ||
var cache = _getRequireWildcardCache(nodeInterop); | ||
if (cache && cache.has(obj)) { | ||
@@ -88,3 +88,3 @@ return cache.get(obj); | ||
for (var key in obj) { | ||
if (Object.prototype.hasOwnProperty.call(obj, key)) { | ||
if (key !== 'default' && Object.prototype.hasOwnProperty.call(obj, key)) { | ||
var desc = hasPropertyDescriptor | ||
@@ -91,0 +91,0 @@ ? Object.getOwnPropertyDescriptor(obj, key) |
{ | ||
"name": "jest-worker", | ||
"version": "27.0.0-next.9", | ||
"version": "27.0.0-next.10", | ||
"repository": { | ||
@@ -23,5 +23,5 @@ "type": "git", | ||
"@types/merge-stream": "^1.1.2", | ||
"@types/supports-color": "^7.2.0", | ||
"@types/supports-color": "^8.1.0", | ||
"get-stream": "^6.0.0", | ||
"jest-leak-detector": "^27.0.0-next.9", | ||
"jest-leak-detector": "^27.0.0-next.10", | ||
"worker-farm": "^1.6.0" | ||
@@ -35,3 +35,3 @@ }, | ||
}, | ||
"gitHead": "d836f33f98845794b4eae8149548a81ddcfc6521" | ||
"gitHead": "6f44529270310b7dbdf9a0b72b21b5cd50fda4b1" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
82861
2152