jest-environment-node
Advanced tools
Comparing version 29.6.3 to 29.6.4
@@ -47,2 +47,3 @@ 'use strict'; | ||
'global', | ||
'globalThis', | ||
'Buffer', | ||
@@ -99,4 +100,3 @@ 'ArrayBuffer', | ||
get() { | ||
// @ts-expect-error: no index signature | ||
const val = globalThis[nodeGlobalsKey]; | ||
const value = globalThis[nodeGlobalsKey]; | ||
@@ -107,11 +107,8 @@ // override lazy getter | ||
enumerable: descriptor.enumerable, | ||
value: val, | ||
writable: | ||
descriptor.writable === true || | ||
// Node 19 makes performance non-readable. This is probably not the correct solution. | ||
nodeGlobalsKey === 'performance' | ||
value, | ||
writable: true | ||
}); | ||
return val; | ||
return value; | ||
}, | ||
set(val) { | ||
set(value) { | ||
// override lazy getter | ||
@@ -121,3 +118,3 @@ Object.defineProperty(global, nodeGlobalsKey, { | ||
enumerable: descriptor.enumerable, | ||
value: val, | ||
value, | ||
writable: true | ||
@@ -124,0 +121,0 @@ }); |
{ | ||
"name": "jest-environment-node", | ||
"version": "29.6.3", | ||
"version": "29.6.4", | ||
"repository": { | ||
@@ -20,4 +20,4 @@ "type": "git", | ||
"dependencies": { | ||
"@jest/environment": "^29.6.3", | ||
"@jest/fake-timers": "^29.6.3", | ||
"@jest/environment": "^29.6.4", | ||
"@jest/fake-timers": "^29.6.4", | ||
"@jest/types": "^29.6.3", | ||
@@ -29,3 +29,3 @@ "@types/node": "*", | ||
"devDependencies": { | ||
"@jest/test-utils": "^29.6.3" | ||
"@jest/test-utils": "^29.6.4" | ||
}, | ||
@@ -38,3 +38,3 @@ "engines": { | ||
}, | ||
"gitHead": "fb7d95c8af6e0d65a8b65348433d8a0ea0725b5b" | ||
"gitHead": "55cd6a0aaf6f9178199dfa7af7a00fcaa7c421fd" | ||
} |
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
9365
242
Updated@jest/environment@^29.6.4
Updated@jest/fake-timers@^29.6.4