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
3
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 19.1.0-alpha.eed82034 to 19.2.0-alpha.993e64af

16

build/index.js

@@ -7,2 +7,4 @@ /**

* of patent rights can be found in the PATENTS file in the same directory.
*
*
*/

@@ -140,3 +142,3 @@

module.exports = babel => {
module.exports = () => {
const isJest = callee =>

@@ -153,7 +155,9 @@ callee.get('object').isIdentifier(JEST_GLOBAL) ||

const property = callee.get('property');
return property.isIdentifier() &&
FUNCTIONS[property.node.name] && (
object.isIdentifier(JEST_GLOBAL) ||
callee.isMemberExpression() && shouldHoistExpression(object)) &&
FUNCTIONS[property.node.name](expr.get('arguments'));
return (
property.isIdentifier() &&
FUNCTIONS[property.node.name] && (
object.isIdentifier(JEST_GLOBAL) ||
callee.isMemberExpression() && shouldHoistExpression(object)) &&
FUNCTIONS[property.node.name](expr.get('arguments')));
};

@@ -160,0 +164,0 @@ return {

{
"name": "babel-plugin-jest-hoist",
"version": "19.1.0-alpha.eed82034",
"version": "19.2.0-alpha.993e64af",
"repository": {

@@ -5,0 +5,0 @@ "type": "git",

Sorry, the diff of this file is not supported yet

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