Socket
Socket
Sign inDemoInstall

jest-environment-jsdom

Package Overview
Dependencies
157
Maintainers
6
Versions
271
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 29.5.0 to 29.6.0

1

build/index.d.ts

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

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

@@ -29,0 +30,0 @@ setup(): Promise<void>;

7

build/index.js

@@ -42,2 +42,4 @@ 'use strict';

// The `Window` interface does not have an `Error.stackTraceLimit` property, but
// `JSDOMEnvironment` assumes it is there.
function isString(value) {

@@ -54,2 +56,3 @@ return typeof value === 'string';

customExportConditions = ['browser'];
_configuredExportConditions;
constructor(config, context) {

@@ -129,3 +132,3 @@ const {projectConfig} = config;

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

@@ -176,3 +179,3 @@ throw new Error(

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

@@ -179,0 +182,0 @@ getVmContext() {

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

@@ -20,13 +20,13 @@ "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/jsdom": "^20.0.0",
"@types/node": "*",
"jest-mock": "^29.5.0",
"jest-util": "^29.5.0",
"jest-mock": "^29.6.0",
"jest-util": "^29.6.0",
"jsdom": "^20.0.0"
},
"devDependencies": {
"@jest/test-utils": "^29.5.0"
"@jest/test-utils": "^29.6.0"
},

@@ -47,3 +47,3 @@ "peerDependencies": {

},
"gitHead": "39f3beda6b396665bebffab94e8d7c45be30454c"
"gitHead": "c1e5b8a38ef54bb138409f89831942ebf6a7a67e"
}
SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc