Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-jest-hoist

Package Overview
Dependencies
Maintainers
7
Versions
190
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-jest-hoist - npm Package Compare versions

Comparing version 26.1.0 to 26.2.0

9

build/index.js

@@ -41,3 +41,3 @@ 'use strict';

const WHITELISTED_IDENTIFIERS = new Set(
const ALLOWED_IDENTIFIERS = new Set(
[

@@ -144,3 +144,3 @@ 'Array',

const isAllowedIdentifier =
(scope.hasGlobal(name) && WHITELISTED_IDENTIFIERS.has(name)) ||
(scope.hasGlobal(name) && ALLOWED_IDENTIFIERS.has(name)) ||
/^mock/i.test(name) || // Allow istanbul's coverage variable to pass.

@@ -156,4 +156,4 @@ /^(?:__)?cov/.test(name);

'\n' +
'Whitelisted objects: ' +
Array.from(WHITELISTED_IDENTIFIERS).join(', ') +
'Allowed objects: ' +
Array.from(ALLOWED_IDENTIFIERS).join(', ') +
'.\n' +

@@ -213,2 +213,3 @@ 'Note: This is a precaution to guard against uninitialized mock ' +

expression.get('object').referencesImport(JEST_GLOBALS_MODULE_NAME, '*') &&
expression.node.property.type === 'Identifier' &&
expression.node.property.name === JEST_GLOBALS_MODULE_JEST_EXPORT_NAME

@@ -215,0 +216,0 @@ ) {

{
"name": "babel-plugin-jest-hoist",
"version": "26.1.0",
"version": "26.2.0",
"repository": {

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

},
"gitHead": "817d8b6aca845dd4fcfd7f8316293e69f3a116c5"
"gitHead": "4a716811a309dae135b780a87dc1647b285800eb"
}
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