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
5
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 23.2.0 to 24.0.0-alpha.0

LICENSE

7

build/index.js

@@ -78,5 +78,6 @@ 'use strict';

const IDVisitor = {
ReferencedIdentifier(path) {
ReferencedIdentifier: function(path) {
this.ids.add(path);
},
blacklist: ['TypeAnnotation']

@@ -98,3 +99,3 @@ };

const parentScope = moduleFactory.parentPath.scope;
moduleFactory.traverse(IDVisitor, {ids});
moduleFactory.traverse(IDVisitor, {ids: ids});
for (const id of ids) {

@@ -168,3 +169,3 @@ const name = id.node.name;

visitor: {
ExpressionStatement(path) {
ExpressionStatement: function(path) {
if (shouldHoistExpression(path.get('expression'))) {

@@ -171,0 +172,0 @@ path.node._blockHoist = Infinity;

{
"name": "babel-plugin-jest-hoist",
"version": "23.2.0",
"version": "24.0.0-alpha.0",
"repository": {

@@ -9,3 +9,4 @@ "type": "git",

"license": "MIT",
"main": "build/index.js"
"main": "build/index.js",
"gitHead": "22f67d49ffcce7a5b6d6891438b837b3b26ba9db"
}
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