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

eslint-plugin-no-use-extend-native

Package Overview
Dependencies
Maintainers
1
Versions
31
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-use-extend-native - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

package.json
{
"name": "eslint-plugin-no-use-extend-native",
"version": "0.3.0",
"version": "0.3.1",
"description": "ESLint plugin to prevent use of extended native objects",

@@ -5,0 +5,0 @@ "scripts": {

@@ -52,4 +52,5 @@ 'use strict';

proto = binaryExpressionProduces(node.object);
} else if (node.object.type === 'Identifier') {
} else if (node.object.type === 'Identifier' && node.property.name === 'prototype') {
proto = node.object.name;
methodName = node.parent.property.name;
} else {

@@ -59,10 +60,5 @@ proto = node.object.type.replace('Expression', '');

methodName = node.property.name || node.property.value;
methodName = methodName || node.property.name || node.property.value;
type = node.parent.type;
if (methodName === 'prototype') {
// Array.prototype.map, etc.
methodName = node.parent.property.name;
}
if (!isJsType(proto)) {

@@ -69,0 +65,0 @@ return;

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