babel-plugin-check-es2015-constants
Advanced tools
Comparing version 6.6.4 to 6.6.5
"use strict"; | ||
var _getIterator = require("babel-runtime/core-js/get-iterator")["default"]; | ||
exports.__esModule = true; | ||
exports["default"] = function (_ref2) { | ||
var messages = _ref2.messages; | ||
exports["default"] = function (_ref) { | ||
var messages = _ref.messages; | ||
return { | ||
visitor: { | ||
Scope: function Scope(_ref3) { | ||
var scope = _ref3.scope; | ||
Scope: function Scope(_ref2) { | ||
var scope = _ref2.scope; | ||
@@ -19,16 +17,5 @@ for (var _name in scope.bindings) { | ||
for (var _iterator = binding.constantViolations, _isArray = Array.isArray(_iterator), _i = 0, _iterator = _isArray ? _iterator : _getIterator(_iterator);;) { | ||
var _ref; | ||
if (_isArray) { | ||
if (_i >= _iterator.length) break; | ||
_ref = _iterator[_i++]; | ||
} else { | ||
_i = _iterator.next(); | ||
if (_i.done) break; | ||
_ref = _i.value; | ||
} | ||
var violation = _ref; | ||
var _arr = binding.constantViolations; | ||
for (var _i = 0; _i < _arr.length; _i++) { | ||
var violation = _arr[_i]; | ||
throw violation.buildCodeFrameError(messages.get("readOnly", _name)); | ||
@@ -35,0 +22,0 @@ } |
{ | ||
"name": "babel-plugin-check-es2015-constants", | ||
"version": "6.6.4", | ||
"version": "6.6.5", | ||
"description": "Compile ES2015 constants to ES5", | ||
@@ -5,0 +5,0 @@ "repository": "https://github.com/babel/babel/tree/master/packages/babel-plugin-check-es2015-constants", |
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
1829
21