babel-plugin-jest-hoist
Advanced tools
Comparing version 23.2.0 to 24.0.0-alpha.0
@@ -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" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6541
4
2