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

babel-core

Package Overview
Dependencies
Maintainers
6
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 7.0.0-beta.1 to 7.0.0-beta.2

22

lib/transformation/file/index.js

@@ -319,19 +319,4 @@ "use strict";

File.prototype.addTemplateObject = function addTemplateObject(helperName, strings, raw) {
var stringIds = raw.elements.map(function (string) {
return string.value;
});
var name = helperName + "_" + raw.elements.length + "_" + stringIds.join(",");
var declar = this.declarations[name];
if (declar) return declar;
var uid = this.declarations[name] = this.scope.generateUidIdentifier("templateObject");
var helperId = this.addHelper(helperName);
var init = t.callExpression(helperId, [strings, raw]);
init._compact = true;
this.scope.push({
id: uid,
init: init,
_blockHoist: 1.9
});
return uid;
File.prototype.addTemplateObject = function addTemplateObject() {
throw new Error("This function has been moved into the template literal transform itself.");
};

@@ -388,3 +373,4 @@

},
generated: generatedPosition
generated: generatedPosition,
name: mapping.name
});

@@ -391,0 +377,0 @@ }

22

package.json
{
"name": "babel-core",
"version": "7.0.0-beta.1",
"version": "7.0.0-beta.2",
"description": "Babel compiler core.",

@@ -28,10 +28,10 @@ "author": "Sebastian McKenzie <sebmck@gmail.com>",

"dependencies": {
"babel-code-frame": "7.0.0-beta.1",
"babel-generator": "7.0.0-beta.1",
"babel-helpers": "7.0.0-beta.1",
"babel-messages": "7.0.0-beta.1",
"babel-template": "7.0.0-beta.1",
"babel-traverse": "7.0.0-beta.1",
"babel-types": "7.0.0-beta.1",
"babylon": "7.0.0-beta.22",
"babel-code-frame": "7.0.0-beta.2",
"babel-generator": "7.0.0-beta.2",
"babel-helpers": "7.0.0-beta.2",
"babel-messages": "7.0.0-beta.2",
"babel-template": "7.0.0-beta.2",
"babel-traverse": "7.0.0-beta.2",
"babel-types": "7.0.0-beta.2",
"babylon": "7.0.0-beta.25",
"convert-source-map": "^1.1.0",

@@ -46,5 +46,5 @@ "debug": "^3.0.1",

"devDependencies": {
"babel-helper-transform-fixture-test-runner": "7.0.0-beta.1",
"babel-register": "7.0.0-beta.1"
"babel-helper-transform-fixture-test-runner": "7.0.0-beta.2",
"babel-register": "7.0.0-beta.2"
}
}
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