Join our webinar on Wednesday, June 26, at 1pm EDTHow Chia Mitigates Risk in the Crypto Industry.Register
Socket
Socket
Sign inDemoInstall

babelify

Package Overview
Dependencies
126
Maintainers
1
Versions
26
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.0.4 to 6.0.0

8

index.js

@@ -13,11 +13,5 @@ var through = require("through");

if (opts.sourceMap !== false) opts.sourceMap = "inline" ;
if (opts.extensions) opts.extensions = babel._util.arrayify(opts.extensions);
opts.ignore = babel._util.regexify(opts.ignore);
if (opts.only) opts.only = babel._util.regexify(opts.only);
if (opts.extensions) opts.extensions = babel.util.arrayify(opts.extensions);
return function (filename) {
if (opts.ignore.test(filename) || (opts.only && !opts.only.test(filename)) || !babel.canCompile(filename, opts.extensions)) {
return through();
}
if (opts.sourceMapRelative) {

@@ -24,0 +18,0 @@ filename = path.relative(opts.sourceMapRelative, filename);

4

package.json
{
"name": "babelify",
"description": "Babel browserify transform",
"version": "5.0.4",
"version": "6.0.0",
"author": "Sebastian McKenzie <sebmck@gmail.com>",

@@ -15,3 +15,3 @@ "homepage": "https://github.com/babel/babelify",

"dependencies": {
"babel-core": "^4.0.0",
"babel-core": "^5.0.0",
"through": "2.3.4",

@@ -18,0 +18,0 @@ "lodash": "^3.0.0"

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc