@secretlint/secretlint-rule-basicauth
Advanced tools
Comparing version 0.5.0 to 0.6.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [0.6.0](https://github.com/secretlint/secretlint/compare/v0.5.0...v0.6.0) (2020-02-29) | ||
### Bug Fixes | ||
* **secretlint-rule-basicauth:** fix regexp pattern ([5bb36be](https://github.com/secretlint/secretlint/commit/5bb36be5421f347639b9f00c867cb8cb48f81f5f)) | ||
### Features | ||
* support terminalLink ([#65](https://github.com/secretlint/secretlint/issues/65)) ([a28ef9e](https://github.com/secretlint/secretlint/commit/a28ef9eb9b3803984ec37bbbd9cdf35e7d4b67a6)) | ||
# [0.5.0](https://github.com/secretlint/secretlint/compare/v0.4.2...v0.5.0) (2020-02-28) | ||
@@ -8,0 +24,0 @@ |
@@ -14,3 +14,3 @@ "use strict"; | ||
// https://ihateregex.io/expr/url | ||
const URL_PATTERN = /(?<protocol>(:?[-a-zA-Z0-9_]{1,256})):\/\/(?<user>[-a-zA-Z0-9_]{1,256}):(?<password>[-a-zA-Z0-9_]{1,256})@(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&=]*)/gm; | ||
const URL_PATTERN = /(?<protocol>(:?[-a-zA-Z0-9_]{1,256})):\/\/(?<user>[-a-zA-Z0-9_]{1,256}):(?<password>[-a-zA-Z0-9_]{1,256})@[-a-zA-Z0-9%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b/g; | ||
const results = source.content.matchAll(URL_PATTERN); | ||
@@ -43,3 +43,6 @@ for (const result of results) { | ||
type: "scanner", | ||
supportedContentTypes: ["text"] | ||
supportedContentTypes: ["text"], | ||
docs: { | ||
url: "https://github.com/secretlint/secretlint/blob/master/packages/%40secretlint/secretlint-rule-basicauth/README.md" | ||
} | ||
}, | ||
@@ -46,0 +49,0 @@ create(context, options) { |
{ | ||
"name": "@secretlint/secretlint-rule-basicauth", | ||
"version": "0.5.0", | ||
"version": "0.6.0", | ||
"description": "A secretlint rule that check Basic Authentication.", | ||
@@ -36,2 +36,3 @@ "keywords": [ | ||
"prepublish": "npm run --if-present build", | ||
"updateSnapshot": "UPDATE_SNAPSHOT=1 npm test", | ||
"test": "mocha \"test/**/*.ts\"", | ||
@@ -46,3 +47,3 @@ "watch": "tsc -p . --watch" | ||
"dependencies": { | ||
"@secretlint/types": "^0.5.0", | ||
"@secretlint/types": "^0.6.0", | ||
"@textlint/regexp-string-matcher": "^1.1.0", | ||
@@ -65,3 +66,3 @@ "string.prototype.matchall": "^4.0.2" | ||
}, | ||
"gitHead": "5b400a28ba0837485e4b0452b3574b2634fe13be" | ||
"gitHead": "1e46857980e6edd69714e973806e414207951816" | ||
} |
@@ -39,3 +39,3 @@ import { | ||
// https://ihateregex.io/expr/url | ||
const URL_PATTERN = /(?<protocol>(:?[-a-zA-Z0-9_]{1,256})):\/\/(?<user>[-a-zA-Z0-9_]{1,256}):(?<password>[-a-zA-Z0-9_]{1,256})@(www\.)?[-a-zA-Z0-9@:%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b([-a-zA-Z0-9()@:%_+.~#?&=]*)/gm; | ||
const URL_PATTERN = /(?<protocol>(:?[-a-zA-Z0-9_]{1,256})):\/\/(?<user>[-a-zA-Z0-9_]{1,256}):(?<password>[-a-zA-Z0-9_]{1,256})@[-a-zA-Z0-9%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b/g; | ||
const results = source.content.matchAll(URL_PATTERN); | ||
@@ -69,3 +69,7 @@ for (const result of results) { | ||
type: "scanner", | ||
supportedContentTypes: ["text"] | ||
supportedContentTypes: ["text"], | ||
docs: { | ||
url: | ||
"https://github.com/secretlint/secretlint/blob/master/packages/%40secretlint/secretlint-rule-basicauth/README.md" | ||
} | ||
}, | ||
@@ -72,0 +76,0 @@ create(context, options) { |
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
12858
156
+ Added@secretlint/types@0.6.0(transitive)
- Removed@secretlint/types@0.5.0(transitive)
Updated@secretlint/types@^0.6.0