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

babel-plugin-transform-es2015-computed-properties

Package Overview
Dependencies
Maintainers
6
Versions
37
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-transform-es2015-computed-properties - npm Package Compare versions

Comparing version 7.0.0-beta.2 to 7.0.0-beta.3

17

lib/index.js
"use strict";
exports.__esModule = true;
exports.default = _default;
exports.default = function (_ref) {
function _default(_ref, options) {
var t = _ref.types,
template = _ref.template;
var loose = options.loose;
var pushComputedProps = loose ? pushComputedPropsLoose : pushComputedPropsSpec;
var buildMutatorMapAssign = template("\n MUTATOR_MAP_REF[KEY] = MUTATOR_MAP_REF[KEY] || {};\n MUTATOR_MAP_REF[KEY].KIND = VALUE;\n ");

@@ -46,3 +49,3 @@

function loose(info) {
function pushComputedPropsLoose(info) {
for (var _iterator = info.computedProps, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _iterator[Symbol.iterator]();;) {

@@ -70,3 +73,3 @@ var _ref3;

function spec(info) {
function pushComputedPropsSpec(info) {
var objId = info.objId,

@@ -158,5 +161,3 @@ body = info.body,

body.push(t.variableDeclaration("var", [t.variableDeclarator(objId, initPropExpression)]));
var callback = spec;
if (state.opts.loose) callback = loose;
var mutatorRef = void 0;
var mutatorRef;

@@ -172,3 +173,3 @@ var getMutatorId = function getMutatorId() {

var single = callback({
var single = pushComputedProps({
scope: scope,

@@ -197,2 +198,2 @@ objId: objId,

};
};
}
{
"name": "babel-plugin-transform-es2015-computed-properties",
"version": "7.0.0-beta.2",
"version": "7.0.0-beta.3",
"description": "Compile ES2015 computed properties to ES5",

@@ -12,7 +12,7 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-transform-es2015-computed-properties",

"dependencies": {
"babel-template": "7.0.0-beta.2"
"babel-template": "7.0.0-beta.3"
},
"devDependencies": {
"babel-helper-plugin-test-runner": "7.0.0-beta.2"
"babel-helper-plugin-test-runner": "7.0.0-beta.3"
}
}
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