Socket
Socket
Sign inDemoInstall

@babel/plugin-transform-spread

Package Overview
Dependencies
Maintainers
5
Versions
81
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@babel/plugin-transform-spread - npm Package Compare versions

Comparing version 7.0.0-beta.47 to 7.0.0-beta.48

41

lib/index.js

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

_helperPluginUtils = function _helperPluginUtils() {
_helperPluginUtils = function () {
return data;

@@ -22,3 +22,3 @@ };

_core = function _core() {
_core = function () {
return data;

@@ -32,3 +32,5 @@ };

api.assertVersion(7);
const loose = options.loose;
const {
loose
} = options;

@@ -65,16 +67,3 @@ function getSpreadLiteral(spread, scope) {

for (var _iterator = props, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {
var _ref;
if (_isArray) {
if (_i >= _iterator.length) break;
_ref = _iterator[_i++];
} else {
_i = _iterator.next();
if (_i.done) break;
_ref = _i.value;
}
const prop = _ref;
for (const prop of props) {
if (_core().types.isSpreadElement(prop)) {

@@ -95,4 +84,6 @@ _props = push(_props, nodes);

ArrayExpression(path) {
const node = path.node,
scope = path.scope;
const {
node,
scope
} = path;
const elements = node.elements;

@@ -112,4 +103,6 @@ if (!hasSpread(elements)) return;

CallExpression(path) {
const node = path.node,
scope = path.scope;
const {
node,
scope
} = path;
const args = node.arguments;

@@ -162,4 +155,6 @@ if (!hasSpread(args)) return;

NewExpression(path) {
const node = path.node,
scope = path.scope;
const {
node,
scope
} = path;
let args = node.arguments;

@@ -166,0 +161,0 @@ if (!hasSpread(args)) return;

{
"name": "@babel/plugin-transform-spread",
"version": "7.0.0-beta.47",
"version": "7.0.0-beta.48",
"description": "Compile ES2015 spread to ES5",

@@ -12,11 +12,11 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-spread",

"dependencies": {
"@babel/helper-plugin-utils": "7.0.0-beta.47"
"@babel/helper-plugin-utils": "7.0.0-beta.48"
},
"peerDependencies": {
"@babel/core": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48"
},
"devDependencies": {
"@babel/core": "7.0.0-beta.47",
"@babel/helper-plugin-test-runner": "7.0.0-beta.47"
"@babel/core": "7.0.0-beta.48",
"@babel/helper-plugin-test-runner": "7.0.0-beta.48"
}
}
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