babel-jest
Advanced tools
Comparing version 9.0.0 to 9.0.1
{ | ||
"name": "babel-jest", | ||
"version": "9.0.0", | ||
"version": "9.0.1", | ||
"repository": { | ||
@@ -5,0 +5,0 @@ "type": "git", |
@@ -9,2 +9,4 @@ /** | ||
'use strict'; | ||
const babel = require('babel-core'); | ||
@@ -16,5 +18,12 @@ const jestPreset = require('babel-preset-jest'); | ||
const isNodeModule = filename => { | ||
if (filename.includes(NODE_MODULES)) { | ||
return !filename.includes(NODE_MODULES + 'react-native' + path.sep); | ||
} | ||
return false; | ||
}; | ||
module.exports = { | ||
process(src, filename) { | ||
if (!filename.includes(NODE_MODULES) && babel.util.canCompile(filename)) { | ||
if (!isNodeModule(filename) && babel.util.canCompile(filename)) { | ||
return babel.transform(src, { | ||
@@ -21,0 +30,0 @@ filename, |
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
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
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
1733
30
0