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

@babel/cli

Package Overview
Dependencies
Maintainers
4
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/cli - npm Package Compare versions

Comparing version 7.20.7 to 7.21.5

1

lib/babel/file.js

@@ -83,3 +83,2 @@ "use strict";

map.sourceRoot = babelOptions.sourceRoot;
if (babelOptions.sourceMaps === "inline" || !cliOptions.outFile && babelOptions.sourceMaps) {

@@ -86,0 +85,0 @@ code += "\n" + _convertSourceMap().fromObject((0, _traceMapping().encodedMap)(map)).toComment();

@@ -41,3 +41,2 @@ "use strict";

_commander().option("--root-mode [mode]", "The project-root resolution mode. " + "One of 'root' (the default), 'upward', or 'upward-optional'.");
_commander().option("--source-type [script|module]", "");

@@ -47,5 +46,3 @@ _commander().option("--no-babelrc", "Whether or not to look up .babelrc and .babelignore files.");

_commander().option("--only [list]", "List of glob paths to **only** compile.", collect);
_commander().option("--no-highlight-code", "Enable or disable ANSI syntax highlighting of code frames. (on by default)");
_commander().option("--no-comments", "Write comments to generated output. (true by default)");

@@ -57,3 +54,2 @@ _commander().option("--retain-lines", "Retain line numbers. This will result in really ugly code.");

_commander().option("--auxiliary-comment-after [string]", "Print a comment after any injected non-user code.");
_commander().option("-s, --source-maps [true|false|inline|both]", "", booleanify, undefined);

@@ -64,8 +60,6 @@ _commander().option("--source-map-target [string]", "Set `file` on returned source map.");

{
_commander().option("--module-root [filename]",
"Optional prefix for the AMD module formatter that will be prepended to the filename on module definitions.");
_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. [" + _core().DEFAULT_EXTENSIONS.join() + "]", collect);

@@ -85,3 +79,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.20.7" + " (@babel/core " + _core().version + ")");
_commander().version("7.21.5" + " (@babel/core " + _core().version + ")");
_commander().usage("[options] <files ...>");

@@ -172,3 +166,2 @@ _commander().action(() => {});

}
for (const key of Object.keys(babelOptions)) {

@@ -175,0 +168,0 @@ if (babelOptions[key] === undefined) {

@@ -67,3 +67,2 @@ "use strict";

}
function isCompilableExtension(filename, altExts) {

@@ -103,3 +102,2 @@ const exts = altExts || babel().DEFAULT_EXTENSIONS;

});
const result = yield new Promise((resolve, reject) => {

@@ -106,0 +104,0 @@ babel().transformFile(filename, opts, (err, result) => {

@@ -11,9 +11,2 @@ "use strict";

exports.watch = watch;
function _module() {
const data = require("module");
_module = function () {
return data;
};
return data;
}
function _path() {

@@ -71,3 +64,2 @@ const data = require("path");

}
function onFilesChange(callback) {

@@ -86,3 +78,2 @@ if (!isWatchMode) {

if (!isWatchMode) return;
const absFilename = _path().resolve(filename);

@@ -89,0 +80,0 @@ const absDependencies = new Set(Array.from(dependencies, dep => _path().resolve(dep)));

8

package.json
{
"name": "@babel/cli",
"version": "7.20.7",
"version": "7.21.5",
"description": "Babel command line.",

@@ -27,3 +27,3 @@ "author": "The Babel Team (https://babel.dev/team)",

"dependencies": {
"@jridgewell/trace-mapping": "^0.3.8",
"@jridgewell/trace-mapping": "^0.3.17",
"commander": "^4.0.1",

@@ -44,4 +44,4 @@ "convert-source-map": "^1.1.0",

"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/helper-fixtures": "^7.19.4",
"@babel/core": "^7.21.5",
"@babel/helper-fixtures": "^7.21.5",
"@types/fs-readdir-recursive": "^1.1.0",

@@ -48,0 +48,0 @@ "@types/glob": "^7.2.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

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