Socket
Socket
Sign inDemoInstall

babel

Package Overview
Dependencies
Maintainers
1
Versions
165
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel - npm Package Compare versions

Comparing version 4.6.0 to 4.6.1

README.md

20

CHANGELOG.md

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

## 4.6.1
* **Bug Fix**
* Fix generators in template directory being transformed.
* Fix exposure of `util` for plugins.
## 4.6.0
* **New Feature**
* Desugar sticky regexes to a new constructor expression so it can be handled by a polyfill.
* **Spec Compliancy**
* `for...of` now outputs in a lengthy `try...catch` this is to ensure spec compliancy in regards to iterator returns and abrupt completions. See [google/traceur-compiler#1773](https://github.com/google/traceur-compiler/issues/1773) and [babel/babel/#838](https://github.com/babel/babel/issues/838) for more information.
* **Polish**
* Rest parameters that are only refered to via number properties on member expressions are desugared into a direct `arguments` reference. Thanks [@neVERberleRfellerER](https://github.com/neVERberleRfellerER)!
* `$ babel` no longer exits on syntax errors.
* **Internal**
* Upgrade `browserify`.
* Upgrade `source-map`.
* Publicly expose more internals.
## 4.5.5

@@ -18,0 +38,0 @@

11

lib/babel/api/node.js
"use strict";
var _interopRequireWildcard = function (obj) { return obj && obj.__esModule ? obj : { "default": obj }; };
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };

@@ -18,8 +20,9 @@

exports.acorn = _interopRequire(require("acorn-babel"));
var _util2 = require("../util");
exports._util = _interopRequire(_util2);
var util = _interopRequireWildcard(_util2);
exports._util = util;
exports.canCompile = _util2.canCompile;
exports.acorn = _interopRequire(require("acorn-babel"));
exports.transform = _interopRequire(_transformation);

@@ -30,2 +33,3 @@ exports.traverse = _interopRequire(require("../traversal"));

exports.version = require("../../../package").version;
function register(opts) {

@@ -70,2 +74,3 @@ var callback = require("./register/node");

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

exports.BlockStatement = BlockStatement;
function File(node, print) {

@@ -26,2 +27,3 @@ print(node.program);

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

exports.ComprehensionExpression = ComprehensionExpression;
function ComprehensionBlock(node, print) {

@@ -33,2 +34,3 @@ this.keyword("for");

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

function JSXEmptyExpression() {}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

File.prototype.parse = (function (_parse) {
var _parseWrapper = function parse() {
var _parseWrapper = function parse(_x) {
return _parse.apply(this, arguments);

@@ -414,3 +414,3 @@ };

File.prototype.checkNode = (function (_checkNode) {
var _checkNodeWrapper = function checkNode() {
var _checkNodeWrapper = function checkNode(_x2, _x3) {
return _checkNode.apply(this, arguments);

@@ -417,0 +417,0 @@ };

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

exports.check = require("../internal/modules").check;
function ImportDeclaration(node, parent, scope, file) {

@@ -64,2 +65,3 @@ // flow type

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;
"use strict";
exports.SequenceExpression = SequenceExpression;
function SequenceExpression(node) {

@@ -9,2 +10,3 @@ if (node.expressions.length === 1) {

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

function Scopable() {}
exports.__esModule = true;

@@ -11,0 +12,0 @@

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

is: (function (_is) {
var _isWrapper = function is() {
var _isWrapper = function is(_x, _x2) {
return _is.apply(this, arguments);

@@ -20,0 +20,0 @@ };

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

is: (function (_is) {
var _isWrapper = function is() {
var _isWrapper = function is(_x) {
return _is.apply(this, arguments);

@@ -16,0 +16,0 @@ };

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

}
exports.__esModule = true;

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

Scope.prototype.traverse = (function (_traverse) {
var _traverseWrapper = function traverse() {
var _traverseWrapper = function traverse(_x, _x2, _x3) {
return _traverse.apply(this, arguments);

@@ -199,3 +199,3 @@ };

var add = (function (_add) {
var _addWrapper = function add() {
var _addWrapper = function add(_x) {
return _add.apply(this, arguments);

@@ -202,0 +202,0 @@ };

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

@@ -70,7 +70,7 @@ "homepage": "https://babeljs.io/",

"devDependencies": {
"babel": "4.5.1",
"babel": "4.6.0",
"browserify": "^9.0.3",
"chai": "^2.0.0",
"eslint": "^0.15.1",
"babel-eslint": "^1.0.0",
"babel-eslint": "^1.0.1",
"esvalid": "^1.1.0",

@@ -77,0 +77,0 @@ "istanbul": "^0.3.5",

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

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