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

eslint-plugin-no-secrets

Package Overview
Dependencies
Maintainers
0
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

eslint-plugin-no-secrets - npm Package Compare versions

Comparing version 2.1.1 to 2.2.1-rc1

10

dist/index.js

@@ -49,2 +49,3 @@ "use strict";

create(context) {
var _a;
const { tolerance, additionalRegexes, ignoreContent, ignoreModules, ignoreIdentifiers, additionalDelimiters, ignoreCase, } = (0, utils_1.checkOptions)(context.options[0] || {});

@@ -109,5 +110,12 @@ const sourceCode = context.getSourceCode() || context.sourceCode;

//Check all comments
const comments = sourceCode.getAllComments();
const comments = ((_a = sourceCode === null || sourceCode === void 0 ? void 0 : sourceCode.getAllComments) === null || _a === void 0 ? void 0 : _a.call(sourceCode)) || [];
comments.forEach((comment) => checkString(comment.value, comment));
return {
/**
* For the official json
*/
String(node) {
const { value } = node;
checkString(value, node);
},
Literal(node) {

@@ -114,0 +122,0 @@ const { value } = node;

5

package.json
{
"name": "eslint-plugin-no-secrets",
"version": "2.1.1",
"version": "2.2.1-rc1",
"description": "An eslint rule that searches for potential secrets/keys in code",

@@ -26,2 +26,3 @@ "main": "./dist/index.js",

"devDependencies": {
"@eslint/json": "^0.10.0",
"@types/eslint": "^9.6.1",

@@ -34,3 +35,3 @@ "@types/node": "^22.9.1",

"eslint8": "npm:eslint@^8.57.0",
"eslint9": "npm:eslint@^9.0.0",
"eslint9": "npm:eslint@^9.19.0",
"ts-node": "^10.9.2",

@@ -37,0 +38,0 @@ "typescript": "^5.6.3"

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