Socket
Socket
Sign inDemoInstall

babel-jest

Package Overview
Dependencies
Maintainers
2
Versions
280
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-jest - npm Package Compare versions

Comparing version 9.0.1 to 9.0.2

2

package.json
{
"name": "babel-jest",
"version": "9.0.1",
"version": "9.0.2",
"repository": {

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

@@ -13,16 +13,6 @@ /**

const jestPreset = require('babel-preset-jest');
const path = require('path');
const NODE_MODULES = path.sep + 'node_modules' + path.sep;
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 (!isNodeModule(filename) && babel.util.canCompile(filename)) {
if (babel.util.canCompile(filename)) {
return babel.transform(src, {

@@ -29,0 +19,0 @@ filename,

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