New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

babel-plugin-es5-array-autopolyfill

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

babel-plugin-es5-array-autopolyfill - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

16

lib/index.js

@@ -35,3 +35,7 @@ 'use strict';

CallExpression: function CallExpression(path) {
var callee = path.node.callee;
var property = path.get('callee.property').node;
if (!t.isIdentifier(property) || replaceProperties.indexOf(property.name) < 0) {
return;
}
var identifierPath = path.get("callee.object", true);

@@ -48,8 +52,6 @@

var property = path.get('callee.property').node;
if (t.isIdentifier(property) && replaceProperties.indexOf(property.name) >= 0) {
usedMethods[property.name] = true;
property.name = prefix + property.name;
path.replaceWith(t.callExpression(property, [callee.object].concat(path.node.arguments)));
}
var callee = path.node.callee;
usedMethods[property.name] = true;
property.name = prefix + property.name;
path.replaceWith(t.callExpression(property, [callee.object].concat(path.node.arguments)));
}

@@ -56,0 +58,0 @@ }

{
"name": "babel-plugin-es5-array-autopolyfill",
"version": "3.0.0",
"version": "3.0.1",
"description": "",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

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