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.5.0 to 29.6.0

1

build/index.d.ts

@@ -25,2 +25,3 @@ /**

customExportConditions: string[];
private _configuredExportConditions?;
constructor(config: JestEnvironmentConfig, _context: EnvironmentContext);

@@ -27,0 +28,0 @@ setup(): Promise<void>;

5

build/index.js

@@ -79,2 +79,3 @@ 'use strict';

customExportConditions = ['node', 'node-addons'];
_configuredExportConditions;

@@ -160,3 +161,3 @@ // while `context` is unused, it should always be passed

) {
this.customExportConditions = customExportConditions;
this._configuredExportConditions = customExportConditions;
} else {

@@ -208,3 +209,3 @@ throw new Error(

exportConditions() {
return this.customExportConditions;
return this._configuredExportConditions ?? this.customExportConditions;
}

@@ -211,0 +212,0 @@ getVmContext() {

{
"name": "jest-environment-node",
"version": "29.5.0",
"version": "29.6.0",
"repository": {

@@ -20,11 +20,11 @@ "type": "git",

"dependencies": {
"@jest/environment": "^29.5.0",
"@jest/fake-timers": "^29.5.0",
"@jest/types": "^29.5.0",
"@jest/environment": "^29.6.0",
"@jest/fake-timers": "^29.6.0",
"@jest/types": "^29.6.0",
"@types/node": "*",
"jest-mock": "^29.5.0",
"jest-util": "^29.5.0"
"jest-mock": "^29.6.0",
"jest-util": "^29.6.0"
},
"devDependencies": {
"@jest/test-utils": "^29.5.0"
"@jest/test-utils": "^29.6.0"
},

@@ -37,3 +37,3 @@ "engines": {

},
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c"
"gitHead": "c1e5b8a38ef54bb138409f89831942ebf6a7a67e"
}
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