Socket
Socket
Sign inDemoInstall

@babel/node

Package Overview
Dependencies
Maintainers
4
Versions
115
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/node - npm Package Compare versions

Comparing version 7.20.7 to 7.22.5

8

lib/_babel-node.js

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

function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
const program = new _commander.Command("babel-node");

@@ -40,3 +39,3 @@ function collect(value, previousValue) {

program.option("-b, --presets [string]", "", collect);
program.version("7.20.7");
program.version("7.22.5");
program.usage("[options] [ -e script | script.js ] [arguments]");

@@ -83,3 +82,2 @@ program.parse(process.argv);

if (hasExpressionStatement) return;
path.pushContainer("body", t.expressionStatement(t.identifier("undefined")));

@@ -146,3 +144,2 @@ }

requireArgs();
const filename = args[0];

@@ -152,3 +149,2 @@ if (!_path.isAbsolute(filename)) {

}
process.argv = ["node", ...args];

@@ -162,3 +158,2 @@ process.execArgv.push(__filename);

}
function requireArgs() {

@@ -186,3 +181,2 @@ if (program.require) {

}
result = _eval(code, filename);

@@ -189,0 +183,0 @@ } catch (e) {

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

let userArgs;
const argSeparator = babelArgs.indexOf("--");

@@ -21,3 +20,2 @@ if (argSeparator > -1) {

}
function getNormalizedV8Flag(arg) {

@@ -30,3 +28,2 @@ const matches = arg.match(/--(?:no)?(.+)/);

}
const aliases = new Map([["-d", "--debug"], ["-gc", "--expose-gc"]]);

@@ -42,4 +39,3 @@ _v8flags(_asyncToGenerator(function* (err, v8Flags) {

args.unshift(aliases.get(flag));
} else if (flag === "debug" ||
flag === "inspect" || v8Flags.indexOf(getNormalizedV8Flag(flag)) >= 0 || (process.allowedNodeEnvironmentFlags || require("node-environment-flags")).has(flag)) {
} else if (flag === "debug" || flag === "inspect" || v8Flags.indexOf(getNormalizedV8Flag(flag)) >= 0 || (process.allowedNodeEnvironmentFlags || require("node-environment-flags")).has(flag)) {
args.unshift(arg);

@@ -50,3 +46,2 @@ } else {

}
if (argSeparator > -1) {

@@ -64,3 +59,2 @@ args.push(...userArgs);

}
const shouldPassthroughIPC = process.send !== undefined;

@@ -67,0 +61,0 @@ const proc = _child_process.spawn(process.argv[0], args, {

12

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

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

"dependencies": {
"@babel/register": "^7.18.9",
"@babel/register": "^7.22.5",
"commander": "^4.0.1",
"core-js": "^3.26.0",
"core-js": "^3.30.2",
"node-environment-flags": "^1.0.5",

@@ -38,5 +38,5 @@ "regenerator-runtime": "^0.13.11",

"devDependencies": {
"@babel/core": "^7.20.7",
"@babel/helper-fixtures": "^7.19.4",
"@babel/runtime": "^7.20.7",
"@babel/core": "^7.22.5",
"@babel/helper-fixtures": "^7.22.5",
"@babel/runtime": "^7.22.5",
"@types/v8flags": "^3.1.1",

@@ -43,0 +43,0 @@ "fs-readdir-recursive": "^1.0.0",

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