babel-plugin-transform-es2015-computed-properties
Advanced tools
Comparing version 7.0.0-beta.2 to 7.0.0-beta.3
"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" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8417
163
+ Addedbabel-code-frame@7.0.0-beta.3(transitive)
+ Addedbabel-helper-function-name@7.0.0-beta.3(transitive)
+ Addedbabel-helper-get-function-arity@7.0.0-beta.3(transitive)
+ Addedbabel-template@7.0.0-beta.3(transitive)
+ Addedbabel-traverse@7.0.0-beta.3(transitive)
+ Addedbabel-types@7.0.0-beta.3(transitive)
+ Addedbabylon@7.0.0-beta.27(transitive)
- Removedbabel-code-frame@7.0.0-beta.2(transitive)
- Removedbabel-helper-function-name@7.0.0-beta.2(transitive)
- Removedbabel-helper-get-function-arity@7.0.0-beta.2(transitive)
- Removedbabel-messages@7.0.0-beta.2(transitive)
- Removedbabel-template@7.0.0-beta.2(transitive)
- Removedbabel-traverse@7.0.0-beta.2(transitive)
- Removedbabel-types@7.0.0-beta.2(transitive)
- Removedbabylon@7.0.0-beta.25(transitive)
Updatedbabel-template@7.0.0-beta.3