Socket
Socket
Sign inDemoInstall

jest-environment-node

Package Overview
Dependencies
Maintainers
6
Versions
275
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

jest-environment-node - npm Package Compare versions

Comparing version 29.6.3 to 29.6.4

17

build/index.js

@@ -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"
}
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc