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

babel-plugin-check-es2015-constants

Package Overview
Dependencies
Maintainers
6
Versions
41
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-check-es2015-constants - npm Package Compare versions

Comparing version 6.6.4 to 6.6.5

27

lib/index.js
"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",

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