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

babel-core

Package Overview
Dependencies
Maintainers
1
Versions
257
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-core - npm Package Compare versions

Comparing version 4.4.1 to 4.4.2

5

CHANGELOG.md

@@ -16,2 +16,7 @@ # Changelog

## 4.4.2
* **New Feature**
* Add `moduleId` option for specifying a custom module id.
## 4.4.0

@@ -18,0 +23,0 @@

6

lib/babel/transformation/file.js

@@ -92,3 +92,3 @@ "use strict";

"resolveModuleSource",
"getModuleName",
"moduleId",

@@ -142,2 +142,6 @@ // legacy

if (opts.moduleId) {
opts.moduleIds = true;
}
opts.basename = path.basename(opts.filename, path.extname(opts.filename));

@@ -144,0 +148,0 @@

2

lib/babel/transformation/modules/_default.js

@@ -149,3 +149,3 @@ "use strict";

var opts = this.file.opts;
if (opts.getModuleName) return opts.getModuleName(opts.filename);
if (opts.moduleId) return opts.moduleId;

@@ -152,0 +152,0 @@ var filenameRelative = opts.filenameRelative;

{
"name": "babel-core",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "4.4.1",
"version": "4.4.2",
"author": "Sebastian McKenzie <sebmck@gmail.com>",

@@ -6,0 +6,0 @@ "homepage": "https://babeljs.io/",

Sorry, the diff of this file is too big to display

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