@secretlint/secretlint-rule-sendgrid
Advanced tools
Comparing version 8.1.0 to 8.1.1
@@ -9,3 +9,3 @@ import { matchPatterns } from "@textlint/regexp-string-matcher"; | ||
function reportIfFoundKey({ source, options, context, t, }) { | ||
const SENDGRID_KEY_PATTERN = /SG\.\w{1,128}\.\w{1,128}-\w{1,128}/g; | ||
const SENDGRID_KEY_PATTERN = /SG\.\w{1,128}\.\w{1,128}([-_]?)\w{1,128}/g; | ||
const results = source.content.matchAll(SENDGRID_KEY_PATTERN); | ||
@@ -12,0 +12,0 @@ for (const result of results) { |
{ | ||
"name": "@secretlint/secretlint-rule-sendgrid", | ||
"version": "8.1.0", | ||
"version": "8.1.1", | ||
"description": "A secretlint rule for sendgrid api keys.", | ||
@@ -58,8 +58,8 @@ "keywords": [ | ||
"dependencies": { | ||
"@secretlint/types": "^8.1.0", | ||
"@secretlint/types": "^8.1.1", | ||
"@textlint/regexp-string-matcher": "^2.0.2" | ||
}, | ||
"devDependencies": { | ||
"@secretlint/tester": "^8.1.0", | ||
"@types/node": "^20.10.5", | ||
"@secretlint/tester": "^8.1.1", | ||
"@types/node": "^20.11.5", | ||
"prettier": "^2.8.1", | ||
@@ -77,3 +77,3 @@ "rimraf": "^3.0.2", | ||
}, | ||
"gitHead": "4573b820cb1863edf15b43706f69ced3a8d54fae" | ||
"gitHead": "267c761fd636d6f82d0562c4b7ddfdff34643a96" | ||
} |
@@ -35,3 +35,3 @@ import { | ||
}) { | ||
const SENDGRID_KEY_PATTERN = /SG\.\w{1,128}\.\w{1,128}-\w{1,128}/g; | ||
const SENDGRID_KEY_PATTERN = /SG\.\w{1,128}\.\w{1,128}([-_]?)\w{1,128}/g; | ||
const results = source.content.matchAll(SENDGRID_KEY_PATTERN); | ||
@@ -38,0 +38,0 @@ for (const result of results) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
10830
Updated@secretlint/types@^8.1.1