New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

jest-environment-node

Package Overview
Dependencies
Maintainers
7
Versions
276
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 27.0.0-next.3 to 27.0.0-next.4

3

build/index.d.ts

@@ -8,3 +8,3 @@ /**

/// <reference types="node" />
import { Context, Script } from 'vm';
import { Context } from 'vm';
import type { JestEnvironment } from '@jest/environment';

@@ -28,5 +28,4 @@ import { LegacyFakeTimers, ModernFakeTimers } from '@jest/fake-timers';

teardown(): Promise<void>;
runScript<T = unknown>(script: Script): T | null;
getVmContext(): Context | null;
}
export = NodeEnvironment;

@@ -149,11 +149,2 @@ 'use strict';

this.fakeTimersModern = null;
} // TS infers the return type to be `any`, since that's what `runInContext`
// returns.
runScript(script) {
if (this.context) {
return script.runInContext(this.context);
}
return null;
}

@@ -160,0 +151,0 @@

{
"name": "jest-environment-node",
"version": "27.0.0-next.3",
"version": "27.0.0-next.4",
"repository": {

@@ -17,3 +17,3 @@ "type": "git",

"dependencies": {
"@jest/environment": "^27.0.0-next.3",
"@jest/environment": "^27.0.0-next.4",
"@jest/fake-timers": "^27.0.0-next.3",

@@ -34,3 +34,3 @@ "@jest/types": "^27.0.0-next.3",

},
"gitHead": "2e34f2cfaf9b6864c3ad4bdca05d3097d3108a41"
"gitHead": "941c414f0b757fdc619778c46c21fda26b3e5504"
}
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