jest-environment-node
Advanced tools
Comparing version
@@ -43,12 +43,2 @@ 'use strict'; | ||
function _semver() { | ||
const data = require('semver'); | ||
_semver = function () { | ||
return data; | ||
}; | ||
return data; | ||
} | ||
function _defineProperty(obj, key, value) { | ||
@@ -174,10 +164,4 @@ if (key in obj) { | ||
} | ||
} // node 10 had a bug in `vm.compileFunction` that was fixed in https://github.com/nodejs/node/pull/23206. | ||
// Let's just pretend the env doesn't support the function. | ||
// Make sure engine requirement is high enough when we drop node 8 so we can remove this condition | ||
if ((0, _semver().lt)(process.version, '10.14.2')) { | ||
delete NodeEnvironment.prototype.getVmContext; | ||
} | ||
module.exports = NodeEnvironment; |
{ | ||
"name": "jest-environment-node", | ||
"version": "25.5.0", | ||
"version": "26.0.0-alpha.0", | ||
"repository": { | ||
@@ -12,22 +12,11 @@ "type": "git", | ||
"types": "build/index.d.ts", | ||
"typesVersions": { | ||
"<3.8": { | ||
"build/*": [ | ||
"build/ts3.4/*" | ||
] | ||
} | ||
}, | ||
"dependencies": { | ||
"@jest/environment": "^25.5.0", | ||
"@jest/fake-timers": "^25.5.0", | ||
"@jest/types": "^25.5.0", | ||
"jest-mock": "^25.5.0", | ||
"jest-util": "^25.5.0", | ||
"semver": "^6.3.0" | ||
"@jest/environment": "^26.0.0-alpha.0", | ||
"@jest/fake-timers": "^26.0.0-alpha.0", | ||
"@jest/types": "^26.0.0-alpha.0", | ||
"jest-mock": "^26.0.0-alpha.0", | ||
"jest-util": "^26.0.0-alpha.0" | ||
}, | ||
"devDependencies": { | ||
"@types/semver": "^6.2.1" | ||
}, | ||
"engines": { | ||
"node": ">= 8.3" | ||
"node": ">= 10.14.2" | ||
}, | ||
@@ -37,3 +26,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "ddd73d18adfb982b9b0d94bad7d41c9f78567ca7" | ||
"gitHead": "ba962e7e9669a4a2f723c2536c97462c8ddfff2d" | ||
} |
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
5
-16.67%0
-100%6429
-21.4%4
-20%158
-21.39%2
100%+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
+ Added
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
- Removed
Updated
Updated
Updated