Socket
Socket
Sign inDemoInstall

eslint-plugin-node

Package Overview
Dependencies
99
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 5.2.0 to 5.2.1

13

lib/util/get-npmignore.js

@@ -24,3 +24,3 @@ /**

const cache = new Cache()
const SLASH_AT_BEGIN_END = /(?:^\/+|\/+$)/g
const SLASH_AT_BEGIN_AND_END = /^!?\/+|^!|\/+$/g
const PARENT_RELATIVE_PATH = /^\.\./

@@ -100,6 +100,7 @@ const NEVER_IGNORED = /^(?:readme\.[^.]*|(?:licen[cs]e|changes|changelog|history)(?:\.[^.]*)?)$/i

for (const file of files) {
if (typeof file === "string") {
const normalized = `/${file.replace(SLASH_AT_BEGIN_END, "")}`
ig.add(`!${normalized}`)
ig.add(`!${normalized}/**`)
if (typeof file === "string" && file) {
const prefix = file.startsWith("!") ? "" : "!"
const body = file.replace(SLASH_AT_BEGIN_AND_END, "")
ig.add(`${prefix}/${body}`)
ig.add(`${prefix}/${body}/**`)
}

@@ -141,3 +142,3 @@ }

/**
* Gets an object to check whther or not a given path should be ignored.
* Gets an object to check whether or not a given path should be ignored.
* The object is created from:

@@ -144,0 +145,0 @@ *

{
"name": "eslint-plugin-node",
"version": "5.2.0",
"version": "5.2.1",
"description": "Additional ESLint's rules for Node.js",

@@ -29,3 +29,3 @@ "main": "lib/index.js",

"dependencies": {
"ignore": "^3.3.3",
"ignore": "^3.3.6",
"minimatch": "^3.0.4",

@@ -32,0 +32,0 @@ "resolve": "^1.3.3",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc