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.0 to 9.0.1

2

package.json
{
"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,

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