Socket
Socket
Sign inDemoInstall

@babel/cli

Package Overview
Dependencies
166
Maintainers
6
Versions
122
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 7.13.10 to 7.13.14

20

lib/babel/options.js

@@ -45,5 +45,7 @@ "use strict";

commander.option("--source-root [filename]", "The root from which all sources are relative.");
commander.option("--module-root [filename]", "Optional prefix for the AMD module formatter that will be prepended to the filename on module definitions.");
commander.option("-M, --module-ids", "Insert an explicit id for modules.");
commander.option("--module-id [string]", "Specify a custom name for module ids.");
{
commander.option("--module-root [filename]", "Optional prefix for the AMD module formatter that will be prepended to the filename on module definitions.");
commander.option("-M, --module-ids", "Insert an explicit id for modules.");
commander.option("--module-id [string]", "Specify a custom name for module ids.");
}
commander.option("-x, --extensions [extensions]", "List of extensions to compile when a directory has been the input. [.es6,.js,.es,.jsx,.mjs]", collect);

@@ -63,3 +65,3 @@ commander.option("--keep-file-extension", "Preserve the file extensions of the input files.");

commander.option("--out-file-extension [string]", "Use a specific extension for the output files");
commander.version("7.13.10" + " (@babel/core " + _core().version + ")");
commander.version("7.13.14" + " (@babel/core " + _core().version + ")");
commander.usage("[options] <files ...>");

@@ -151,5 +153,2 @@ commander.action(() => {});

sourceRoot: opts.sourceRoot,
moduleRoot: opts.moduleRoot,
moduleIds: opts.moduleIds,
moduleId: opts.moduleId,
babelrc: opts.babelrc === true ? undefined : opts.babelrc,

@@ -159,2 +158,9 @@ highlightCode: opts.highlightCode === true ? undefined : opts.highlightCode,

};
{
Object.assign(babelOptions, {
moduleRoot: opts.moduleRoot,
moduleIds: opts.moduleIds,
moduleId: opts.moduleId
});
}

@@ -161,0 +167,0 @@ for (const key of Object.keys(babelOptions)) {

{
"name": "@babel/cli",
"version": "7.13.10",
"version": "7.13.14",
"description": "Babel command line.",

@@ -44,4 +44,4 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"devDependencies": {
"@babel/core": "7.13.10",
"@babel/helper-fixtures": "7.13.10",
"@babel/core": "7.13.14",
"@babel/helper-fixtures": "7.13.13",
"rimraf": "^3.0.0"

@@ -48,0 +48,0 @@ },

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc