Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

babel-autonode

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-autonode - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

14

babel-autonode.js

@@ -54,7 +54,7 @@ #!/usr/bin/env node

return mkdirp(path.dirname(file.dest.name)).then(function () {
console.log("generating", file.dest.name)
return execFile('babel', [
'--babelrc', require.resolve('babelrc-v8/babelrcs/'+babelrcs[file.ver]),
file.src.name, '-o', file.dest.name
]).catch(function (er) {
var args = ['--babelrc', path.relative(
process.cwd(), require.resolve('babelrc-v8/babelrcs/'+babelrcs[file.ver])),
file.src.name, '-o', file.dest.name]
console.log("> babel", args.join(' ', args))
return execFile('babel', args, {stdio: 'inherit'}).catch(function (er) {
console.error("Error running babel: " + er.message)

@@ -64,4 +64,4 @@ process.exit(1)

})
}).then(function () {
console.log('done!')
}).then(function (files) {
if (files.length) console.log('> build complete')
})

@@ -68,0 +68,0 @@

{
"name": "babel-autonode",
"version": "1.0.2",
"version": "1.0.3",
"description": "Automatically and transparently use as little babel as possible with whatever version of node is in use.",

@@ -5,0 +5,0 @@ "main": "index.js",

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