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.7.3 to 4.7.4

.npmignore

9

CHANGELOG.md

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

## 4.7.4
* **Bug Fix**
* Rewrite named function expressions in optional async function transformers.
* Hoist directives.
* Remove `Number` from the list of valid `runtime` constructors.
* **Internal**
* `spec.typeofSymbol` transformer has been renamed to `es6.symbols`.
## 4.7.2

@@ -18,0 +27,0 @@

8

lib/babel/messages.js

@@ -35,9 +35,9 @@ "use strict";

function get(key) {
for (var _len = arguments.length, args = Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
args[_key - 1] = arguments[_key];
}
var msg = messages[key];
if (!msg) throw new ReferenceError("Unknown message " + JSON.stringify(key));
var args = [];
for (var i = 1; i < arguments.length; i++) {
args.push(arguments[i]);
}
args = parseArgs(args);

@@ -44,0 +44,0 @@

@@ -7,4 +7,4 @@ "use strict";

var visitor = {
enter: function enter(node) {
var awaitVisitor = {
enter: function enter(node, parent, scope, state) {
if (t.isFunction(node)) this.skip();

@@ -24,2 +24,13 @@

var referenceVisitor = {
enter: function enter(node, parent, scope, state) {
var name = state.id.name;
if (t.isReferencedIdentifier(node, parent, { name: name }) && scope.bindingIdentifierEquals(name, state.id)) {
var _state;
return (_state = state, !_state.ref && (_state.ref = scope.generateUidIdentifier(name)), _state.ref);
}
}
};
module.exports = function (node, callId, scope) {

@@ -29,5 +40,6 @@ node.async = false;

scope.traverse(node, visitor);
scope.traverse(node, awaitVisitor, state);
var call = t.callExpression(callId, [node]);
var id = node.id;

@@ -41,4 +53,14 @@ node.id = null;

} else {
if (id) {
var state = { id: id };
scope.traverse(node, referenceVisitor, state);
if (state.ref) {
scope.parent.push({ id: state.ref });
return t.assignmentExpression("=", state.ref, call);
}
}
return call;
}
};

@@ -60,8 +60,7 @@ "use strict";

* Description
*
* @param {Object} opts
* @param {Boolean} [inClass]
*/
function ReplaceSupers(opts, inClass) {
function ReplaceSupers(opts) {
var inClass = arguments[1] === undefined ? false : arguments[1];
_classCallCheck(this, ReplaceSupers);

@@ -92,8 +91,2 @@

*
* @param {Node} property
* @param {Node} value
* @param {Boolean} isComputed
* @param {Node} thisExpression
*
* @returns {Node}
*/

@@ -112,7 +105,2 @@

*
* @param {Node} property
* @param {Boolean} isComputed
* @param {Node} thisExpression
*
* @returns {Node}
*/

@@ -134,5 +122,2 @@

* Description
*
* @param {Object} node
* @param {Boolean} topLevel
*/

@@ -161,7 +146,2 @@

* Description
*
* @param {Object} node
* @param {Object} id
* @param {Object} parent
* @returns {Object}
*/

@@ -204,6 +184,2 @@

* Description
*
* @param {Function} getThisReference
* @param {Object} node
* @param {Object} parent
*/

@@ -229,6 +205,2 @@

* Description
*
* @param {Function} getThisReference
* @param {Object} node
* @param {Object} parent
*/

@@ -235,0 +207,0 @@

{
"selfContained": "runtime",
"unicode-regex": "regex.unicode",
"spec.typeofSymbol": "es6.symbols",

@@ -5,0 +6,0 @@ "minification.deadCodeElimination": "utility.deadCodeElimination",

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

if (!t.isLoop(parent)) {
var blockScoping = new BlockScoping(false, block, parent, scope, file);
var blockScoping = new BlockScoping(null, block, parent, scope, file);
blockScoping.run();

@@ -243,8 +243,2 @@ }

* Description
*
* @param {Boolean|Node} loopParent
* @param {Node} block
* @param {Node} parent
* @param {Scope} scope
* @param {File} file
*/

@@ -490,5 +484,2 @@

* their declarations hoisted to before the closure wrapper.
*
* @param {Node} node VariableDeclaration
* @returns {Array}
*/

@@ -516,5 +507,2 @@

* Push the closure to the body.
*
* @param {Node} ret Identifier
* @param {Node} call CallExpression
*/

@@ -533,5 +521,2 @@

* Description
*
* @param {Node} ret Identifier
* @param {Node} call CallExpression
*/

@@ -538,0 +523,0 @@

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

* Description
*
* @param {Node} node
* @param {Node} parent
* @param {Scope} scope
* @param {File} file
*/

@@ -253,4 +248,2 @@

* Description
*
* @param {Node} node
*/

@@ -276,4 +269,2 @@

* Push a method to its respective mutatorMap.
*
* @param {Node} node MethodDefinition
*/

@@ -318,4 +309,2 @@

* Description
*
* @param {Node} node
*/

@@ -339,4 +328,2 @@

* Replace the constructor body of our class.
*
* @param {Node} method MethodDefinition
*/

@@ -343,0 +330,0 @@

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

"spec.typeofSymbol": require("./spec/typeof-symbol"),
"es6.symbols": require("./es6/symbols"),
"spec.undefinedToVoid": require("./spec/undefined-to-void"),

@@ -102,0 +102,0 @@

@@ -18,2 +18,17 @@ "use strict";

};
var Binary = exports.Binary = {
exit: function exit(node) {
var right = node.right;
var left = node.left;
if (!left && !right) {
this.remove();
} else if (!left) {
return right;
} else if (!right) {
return left;
}
}
};
exports.__esModule = true;

@@ -42,5 +42,7 @@ "use strict";

if (t.isClassDeclaration(declar)) {
// export default class Foo {};
this.node = [getDeclar(), node];
node.declaration = declar.id;
return [getDeclar(), node];
} else if (t.isClassExpression(declar)) {
// export default class {};
var temp = scope.generateUidIdentifier("default");

@@ -51,2 +53,3 @@ declar = t.variableDeclaration("var", [t.variableDeclarator(temp, declar)]);

} else if (t.isFunctionDeclaration(declar)) {
// export default function Foo() {}
node._blockHoist = 2;

@@ -58,2 +61,3 @@ node.declaration = declar.id;

if (t.isFunctionDeclaration(declar)) {
// export function Foo() {}
node.specifiers = [t.importSpecifier(declar.id, declar.id)];

@@ -64,4 +68,4 @@ node.declaration = null;

} else if (t.isVariableDeclaration(declar)) {
// export var foo = "bar";
var specifiers = [];
var bindings = t.getBindingIdentifiers(declar);

@@ -72,3 +76,2 @@ for (var key in bindings) {

}
return [declar, t.exportDeclaration(null, specifiers)];

@@ -75,0 +78,0 @@ }

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

exports.Property = Property;
exports.BlockStatement = BlockStatement;

@@ -39,2 +40,15 @@ var messages = _interopRequireWildcard(require("../../../messages"));

exports.MethodDefinition = Property;
function BlockStatement(node) {
for (var i = 0; i < node.body.length; i++) {
var bodyNode = node.body[i];
if (t.isExpressionStatement(bodyNode) && t.isLiteral(bodyNode.expression)) {
bodyNode._blockHoist = Infinity;
} else {
return;
}
}
}
exports.Program = BlockStatement;
exports.__esModule = true;

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

var ALIASABLE_CONSTRUCTORS = ["Symbol", "Promise", "Map", "WeakMap", "Set", "WeakSet", "Number"];
var ALIASABLE_CONSTRUCTORS = ["Symbol", "Promise", "Map", "WeakMap", "Set", "WeakSet"];

@@ -31,0 +31,0 @@ var astVisitor = {

"use strict";
// istanbul ignore next
var _interopRequire = function (obj) { return obj && obj.__esModule ? obj["default"] : obj; };

@@ -4,0 +6,0 @@

@@ -13,2 +13,4 @@ "use strict";

var t = _interopRequire(require("../types"));
var TraversalContext = (function () {

@@ -56,3 +58,3 @@ function TraversalContext(scope, opts, state, parentPath) {

if (key === "body" || key === "expressions") {
if (t.FLATTENABLE_KEYS.indexOf(key) >= 0) {
// we can safely compact this

@@ -59,0 +61,0 @@ node[key] = compact(node[key]);

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

TraversalPath.prototype.setContext = function setContext(parentPath, context, key) {
this.shouldRemove = false;
this.shouldSkip = false;

@@ -90,4 +89,5 @@ this.shouldStop = false;

TraversalPath.prototype.remove = function remove() {
this.shouldRemove = true;
this.shouldSkip = true;
this._refresh(this.node, []);
this.container[this.key] = null;
this.flatten();
};

@@ -108,2 +108,9 @@

TraversalPath.prototype._refresh = function _refresh(oldNode, newNodes) {};
TraversalPath.prototype.refresh = function refresh() {
var node = this.node;
this._refresh(node, [node]);
};
TraversalPath.prototype.call = function call(key) {

@@ -122,7 +129,2 @@ var node = this.node;

}
if (this.shouldRemove) {
this.container[this.key] = null;
this.flatten();
}
};

@@ -147,12 +149,13 @@

if (Array.isArray(node)) {
// traverse over these replacement nodes we purposely don't call exitNode
// as the original node has been destroyed
for (var i = 0; i < node.length; i++) {
traverse.node(node[i], opts, this.scope, this.state, this);
if (node) {
if (Array.isArray(node)) {
// traverse over these replacement nodes we purposely don't call exitNode
// as the original node has been destroyed
for (var i = 0; i < node.length; i++) {
traverse.node(node[i], opts, this.scope, this.state, this);
}
} else {
traverse.node(node, opts, this.scope, this.state, this);
this.call("exit");
}
} else {
traverse.node(node, opts, this.scope, this.state, this);
this.call("exit");
}

@@ -189,21 +192,25 @@

set: function (replacement) {
if (!replacement) return this.remove();
var oldNode = this.node;
var isArray = Array.isArray(replacement);
var replacements = isArray ? replacement : [replacement];
// inherit comments from original node to the first replacement node
var inheritTo = replacement;
if (isArray) inheritTo = replacement[0];
if (inheritTo) t.inheritsComments(inheritTo, this.node);
var inheritTo = replacements[0];
if (inheritTo) t.inheritsComments(inheritTo, oldNode);
// replace the node
this.container[this.key] = replacement;
// potentially create new scope
this.setScope();
// refresh scope with new/removed bindings
this._refresh(oldNode, replacements);
var file = this.scope && this.scope.file;
if (file) {
if (isArray) {
for (var i = 0; i < replacement.length; i++) {
file.checkNode(replacement[i], this.scope);
}
} else {
file.checkNode(replacement, this.scope);
for (var i = 0; i < replacements.length; i++) {
file.checkNode(replacements[i], this.scope);
}

@@ -220,2 +227,3 @@ }

this.flatten();
// TODO: duplicate internal path metadata across the new node paths
}

@@ -240,2 +248,4 @@ },

})();
}
}
// todo

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

* within.
*
* @param {Node} block
* @param {Node} parentBlock
* @param {Scope} [parent]
* @param {File} [file]
*/

@@ -104,10 +99,6 @@

Scope.globals = flatten([globals.builtin, globals.browser, globals.node].map(Object.keys));
Scope.contextVariables = ["this", "arguments"];
Scope.contextVariables = ["this", "arguments", "super"];
/**
* Description
*
* @param {Object} node
* @param {Object} opts
* @param [state]
*/

@@ -131,8 +122,8 @@

* Description
*
* @param {String} [name="temp"]
*/
Scope.prototype.generateTemp = function generateTemp(name) {
var id = this.generateUidIdentifier(name || "temp");
Scope.prototype.generateTemp = function generateTemp() {
var name = arguments[0] === undefined ? "temp" : arguments[0];
var id = this.generateUidIdentifier(name);
this.push({

@@ -147,4 +138,2 @@ key: id.name,

* Description
*
* @param {String} name
*/

@@ -160,4 +149,2 @@

* Description
*
* @param {String} name
*/

@@ -185,5 +172,2 @@

* Description
*
* @param {Object} parent
* @returns {Object}
*/

@@ -237,5 +221,2 @@

* Description
*
* @param {Object} node
* @returns {Object}
*/

@@ -256,2 +237,6 @@

/**
* Description
*/
Scope.prototype.checkBlockScopedCollisions = function checkBlockScopedCollisions(kind, name, id) {

@@ -269,2 +254,6 @@ var local = this.getOwnBindingInfo(name);

/**
* Description
*/
Scope.prototype.rename = function rename(oldName, newName) {

@@ -296,3 +285,3 @@ if (!newName) newName = this.generateUidIdentifier(oldName).name;

this.clearOwnBinding(oldName);
scope.removeOwnBinding(oldName);
scope.bindings[newName] = info;

@@ -303,2 +292,6 @@

/**
* Description
*/
Scope.prototype.inferType = function inferType(node) {

@@ -336,2 +329,6 @@ var target;

/**
* Description
*/
Scope.prototype.isTypeGeneric = function isTypeGeneric(name, genericName) {

@@ -345,2 +342,6 @@ var info = this.getBindingInfo(name);

/**
* Description
*/
Scope.prototype.assignTypeGeneric = function assignTypeGeneric(name, type) {

@@ -350,2 +351,6 @@ this.assignType(name, t.genericTypeAnnotation(t.identifier(type)));

/**
* Description
*/
Scope.prototype.assignType = function assignType(name, type) {

@@ -358,3 +363,7 @@ var info = this.getBindingInfo(name);

Scope.prototype.getTypeAnnotation = function getTypeAnnotation(name, id, node) {
/**
* Description
*/
Scope.prototype.getTypeAnnotation = function getTypeAnnotation(id, node) {
var info = {

@@ -384,2 +393,6 @@ annotation: null,

/**
* Description
*/
Scope.prototype.toArray = function toArray(node, i) {

@@ -411,6 +424,20 @@ var file = this.file;

Scope.prototype.clearOwnBinding = function clearOwnBinding(name) {
delete this.bindings[name];
/**
* Description
*/
Scope.prototype.refreshDeclaration = function refreshDeclaration(node) {
if (t.isBlockScoped(node)) {
this.getBlockParent().registerDeclaration(node);
} else if (t.isVariableDeclaration(node, { kind: "var" })) {
this.getFunctionParent().registerDeclaration(node);
} else if (node === this.block) {
this.recrawl();
}
};
/**
* Description
*/
Scope.prototype.registerDeclaration = function registerDeclaration(node) {

@@ -432,2 +459,6 @@ if (t.isFunctionDeclaration(node)) {

/**
* Description
*/
Scope.prototype.registerBindingReassignment = function registerBindingReassignment(node) {

@@ -448,2 +479,6 @@ var ids = t.getBindingIdentifiers(node);

/**
* Description
*/
Scope.prototype.registerBinding = function registerBinding(kind, node) {

@@ -459,3 +494,3 @@ if (!kind) throw new ReferenceError("no `kind`");

var typeInfo = this.getTypeAnnotation(name, id, node);
var typeInfo = this.getTypeAnnotation(id, node);

@@ -474,8 +509,5 @@ this.bindings[name] = {

Scope.prototype.registerVariableDeclaration = function registerVariableDeclaration(declar) {
var declars = declar.declarations;
for (var i = 0; i < declars.length; i++) {
this.registerBinding(declar.kind, declars[i]);
}
};
/**
* Description
*/

@@ -486,2 +518,6 @@ Scope.prototype.addGlobal = function addGlobal(node) {

/**
* Description
*/
Scope.prototype.hasGlobal = function hasGlobal(name) {

@@ -497,2 +533,15 @@ var scope = this;

/**
* Description
*/
Scope.prototype.recrawl = function recrawl() {
this.block._scopeInfo = null;
this.crawl();
};
/**
* Description
*/
Scope.prototype.crawl = function crawl() {

@@ -538,2 +587,8 @@ var block = this.block;

// Class
if (t.isClass(block) && block.id) {
this.registerBinding("var", block.id);
}
// Function - params, rest

@@ -584,4 +639,2 @@

* Description
*
* @param {Object} opts
*/

@@ -601,3 +654,3 @@

block._declarations[opts.key] = {
block._declarations[opts.key || opts.id.name] = {
kind: opts.kind || "var",

@@ -626,5 +679,16 @@ id: opts.id,

/**
* Walk up the scope tree until we hit either a BlockStatement/Loop or reach the
* very top and hit Program.
*/
Scope.prototype.getBlockParent = function getBlockParent() {
var scope = this;
while (scope.parent && !t.isFunction(scope.block) && !t.isLoop(scope.block) && !t.isFunction(scope.block)) {
scope = scope.parent;
}
return scope;
};
/**
* Walks the scope tree and gathers **all** bindings.
*
* @returns {Object}
*/

@@ -646,5 +710,2 @@

* Walks the scope tree and gathers all declarations of `kind`.
*
* @param {String} kind
* @returns {Object}
*/

@@ -667,3 +728,5 @@

// misc
/**
* Description
*/

@@ -674,3 +737,5 @@ Scope.prototype.bindingIdentifierEquals = function bindingIdentifierEquals(name, node) {

// get
/**
* Description
*/

@@ -686,2 +751,6 @@ Scope.prototype.getBindingInfo = function getBindingInfo(name) {

/**
* Description
*/
Scope.prototype.getOwnBindingInfo = function getOwnBindingInfo(name) {

@@ -691,2 +760,6 @@ return this.bindings[name];

/**
* Description
*/
Scope.prototype.getBindingIdentifier = function getBindingIdentifier(name) {

@@ -697,2 +770,6 @@ var info = this.getBindingInfo(name);

/**
* Description
*/
Scope.prototype.getOwnBindingIdentifier = function getOwnBindingIdentifier(name) {

@@ -703,2 +780,6 @@ var binding = this.bindings[name];

/**
* Description
*/
Scope.prototype.getOwnImmutableBindingValue = function getOwnImmutableBindingValue(name) {

@@ -708,2 +789,6 @@ return this._immutableBindingInfoToValue(this.getOwnBindingInfo(name));

/**
* Description
*/
Scope.prototype.getImmutableBindingValue = function getImmutableBindingValue(name) {

@@ -735,3 +820,5 @@ return this._immutableBindingInfoToValue(this.getBindingInfo(name));

// has
/**
* Description
*/

@@ -742,2 +829,6 @@ Scope.prototype.hasOwnBinding = function hasOwnBinding(name) {

/**
* Description
*/
Scope.prototype.hasBinding = function hasBinding(name) {

@@ -752,2 +843,6 @@ if (!name) return false;

/**
* Description
*/
Scope.prototype.parentHasBinding = function parentHasBinding(name) {

@@ -757,2 +852,19 @@ return this.parent && this.parent.hasBinding(name);

/**
* Description
*/
Scope.prototype.removeOwnBinding = function removeOwnBinding(name) {
this.bindings[name] = null;
};
/**
* Description
*/
Scope.prototype.removeBinding = function removeBinding(name) {
var info = this.getBindingInfo(name);
if (info) info.scope.removeOwnBinding(name);
};
return Scope;

@@ -759,0 +871,0 @@ })();

@@ -28,3 +28,3 @@ {

"BlockStatement": ["Statement", "Scopable"],
"BlockStatement": ["Scopable", "Statement"],
"Program": ["Scopable"],

@@ -40,4 +40,4 @@ "CatchClause": ["Scopable"],

"ClassDeclaration": ["Statement", "Declaration", "Class"],
"ClassExpression": ["Class", "Expression"],
"ClassDeclaration": ["Scopable", "Class", "Statement", "Declaration"],
"ClassExpression": ["Scopable", "Class", "Expression"],

@@ -44,0 +44,0 @@ "ForOfStatement": ["Scopable", "Statement", "For", "Loop"],

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

* Pass `skipAliasCheck` to force it to directly compare `node.type` with `type`.
*
* @param {String} type
* @param {Boolean?} skipAliasCheck
*/

@@ -55,2 +52,3 @@

t.NATIVE_TYPE_NAMES = ["Array", "Object", "Number", "Boolean", "Date", "Array", "String"];
t.FLATTENABLE_KEYS = ["body", "expressions"];
t.FOR_INIT_KEYS = ["left", "init"];

@@ -88,8 +86,2 @@

* Optionally, pass `skipAliasCheck` to directly compare `node.type` with `type`.
*
* @param {String} type
* @param {Node} node
* @param {Object?} opts
* @param {Boolean?} skipAliasCheck
* @returns {Boolean} isOfType
*/

@@ -155,5 +147,2 @@

* Description
*
* @param {Object} node
* @returns {Object}
*/

@@ -175,5 +164,2 @@

* Expression statements are just resolved to their standard expression.
*
* @param {Array} nodes
* @param {Scope} scope
*/

@@ -210,6 +196,2 @@

* Description
*
* @param {Object} actual
* @param {Object} expected
* @returns {Boolean}
*/

@@ -233,7 +215,2 @@

* Description
*
* @param {Object} member
* @param {Object} append
* @param {Boolean} [computed]
* @returns {Object} member
*/

@@ -250,6 +227,2 @@

* Description
*
* @param {Object} member
* @param {Object} append
* @returns {Object} member
*/

@@ -264,6 +237,2 @@

* Check if the input `node` is a reference to a bound variable.
*
* @param {Object} node
* @param {Object} parent
* @returns {Boolean}
*/

@@ -375,6 +344,2 @@

* Check if the input `node` is an `Identifier` and `isReferenced`.
*
* @param {Node} node
* @parma {Node} parent
* @returns {Boolean}
*/

@@ -389,5 +354,2 @@

* and isn't a reserved word.
*
* @param {String} name
* @returns {Boolean}
*/

@@ -401,5 +363,2 @@

* Description
*
* @param {String} name
* @returns {String}
*/

@@ -432,9 +391,6 @@

* Description
*
* @param {Object} node
* @param {String=} key
*/
t.ensureBlock = function (node, key) {
if (!key) key = "body";
t.ensureBlock = function (node) {
var key = arguments[1] === undefined ? "body" : arguments[1];

@@ -446,5 +402,2 @@ return node[key] = t.toBlock(node[key], node);

* Description
*
* @param {Object} node
* @returns {Object}
*/

@@ -463,5 +416,2 @@

* Description
*
* @param {Object} node
* @returns {Object}
*/

@@ -497,6 +447,2 @@

* parsed nodes of `React.createClass` and `React["createClass"]`.
*
* @param {String} match Dot-delimited string
* @param {Boolean} [allowPartial] Allow a partial match
* @returns {Function}
*/

@@ -554,4 +500,2 @@

*
* @param {Object} node
* @param {Boolean} [ignore]
* @returns {Object|Boolean}

@@ -597,5 +541,2 @@ */

* Description
*
* @param {Object} node
* @returns {Object}
*/

@@ -623,6 +564,2 @@

* Description
*
* @param {Object} node
* @param {Object} parent
* @returns {Object}
*/

@@ -657,5 +594,2 @@

* the input `node`.
*
* @param {Object} node
* @returns {Array|Object}
*/

@@ -698,3 +632,5 @@

FunctionDeclaration: ["id"],
FunctionExpression: ["id"],
ClassDeclaration: ["id"],
ClassExpression: ["id"],
SpreadElement: ["argument"],

@@ -717,5 +653,2 @@ RestElement: ["argument"],

* Description
*
* @param {Object} node
* @returns {Boolean}
*/

@@ -729,5 +662,2 @@

* Description
*
* @param {Object} node
* @returns {Boolean}
*/

@@ -741,5 +671,2 @@

* Description
*
* @param {Object} node
* @returns {Boolean}
*/

@@ -757,5 +684,2 @@

* Description
*
* @param {Object} child
* @returns {Object} child
*/

@@ -772,6 +696,2 @@

* Description
*
* @param {Object} child
* @param {Object} parent
* @returns {Object} child
*/

@@ -788,6 +708,2 @@

* Description
*
* @param {Object} child
* @param {Object} parent
* @returns {Object} child
*/

@@ -812,5 +728,2 @@

* Description
*
* @param {Object} node
* @returns {Array}
*/

@@ -841,5 +754,2 @@

* Description
*
* @param {Object} specifier
* @returns {String}
*/

@@ -853,5 +763,2 @@

* Description
*
* @param {Object} specifier
* @returns {String}
*/

@@ -869,5 +776,2 @@

* Description
*
* @param {Object} specifier
* @returns {Boolean}
*/

@@ -881,6 +785,2 @@

* Description
*
* @param {Node} node
* @param {Node} parent
* @returns {Boolean}
*/

@@ -904,5 +804,2 @@

* Description
*
* @param {Node} node
* @returns {Boolean}
*/

@@ -948,5 +845,2 @@

*
* @param {Node} node
* @param {Scope} scope
* @returns {Boolean}
*/

@@ -972,5 +866,2 @@

*
* @param {Node} node
* @param {Scope} scope
* @returns {Object}
*/

@@ -1085,5 +976,2 @@

* Description
*
* @param value
* @returns {Node}
*/

@@ -1090,0 +978,0 @@

{
"name": "babel",
"description": "Turn ES6 code into readable vanilla ES5 with source maps",
"version": "4.7.3",
"version": "4.7.4",
"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