Socket
Socket
Sign inDemoInstall

@secretlint/secretlint-rule-basicauth

Package Overview
Dependencies
Maintainers
1
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@secretlint/secretlint-rule-basicauth - npm Package Compare versions

Comparing version 2.2.0 to 3.0.0

1

lib/index.js

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

const regexp_string_matcher_1 = require("@textlint/regexp-string-matcher");
require("string.prototype.matchall").shim();
exports.messages = {

@@ -8,0 +7,0 @@ BasicAuth: {

9

package.json
{
"name": "@secretlint/secretlint-rule-basicauth",
"version": "2.2.0",
"version": "3.0.0",
"description": "A secretlint rule that check Basic Authentication.",

@@ -46,5 +46,4 @@ "keywords": [

"dependencies": {
"@secretlint/types": "^2.2.0",
"@textlint/regexp-string-matcher": "^1.1.0",
"string.prototype.matchall": "^4.0.2"
"@secretlint/types": "^3.0.0",
"@textlint/regexp-string-matcher": "^1.1.0"
},

@@ -65,3 +64,3 @@ "devDependencies": {

},
"gitHead": "64bf33d6ee6e31a8416bf2bde6ee27a700955fb1"
"gitHead": "06a6a5c0aedc4bfa89b91891c04095d04bdf09d6"
}

@@ -9,4 +9,2 @@ import {

require("string.prototype.matchall").shim();
export const messages = {

@@ -40,3 +38,4 @@ BasicAuth: {

// 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})@[-a-zA-Z0-9%._+~#=]{1,256}\.[a-zA-Z0-9()]{1,6}\b/g;
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);

@@ -68,4 +67,3 @@ for (const result of results) {

docs: {
url:
"https://github.com/secretlint/secretlint/blob/master/packages/%40secretlint/secretlint-rule-basicauth/README.md",
url: "https://github.com/secretlint/secretlint/blob/master/packages/%40secretlint/secretlint-rule-basicauth/README.md",
},

@@ -72,0 +70,0 @@ },

Sorry, the diff of this file is not supported yet

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