Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

redact-url

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

redact-url - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

2

index.js

@@ -11,3 +11,3 @@ var isURL = require("is-url")

// https://www.npmjs.org/doc/json.html#Git-URLs-as-Dependencies
if (!isURL(input) && !input.match(/^git\+(https?|ssl)/)) return input
if (!isURL(input) && !input.match(/^git\+(https?|ssh)/)) return input

@@ -14,0 +14,0 @@ var url = URL.parse(input)

{
"name": "redact-url",
"version": "0.3.0",
"version": "0.3.1",
"description": "Redact or remove authentication data from URLs",

@@ -5,0 +5,0 @@ "main": "index.js",

@@ -32,4 +32,5 @@ "use strict";

it("supports git+ssl URLs", function() {
assert.equal(redact("git+ssl://zeke:password@github.com/zeke/outlet", ""), "git+ssl://github.com/zeke/outlet")
it("supports git+ssh URLs", function() {
assert.equal(redact("git+ssh://zeke:password@github.com/zeke/outlet", ""), "git+ssh://github.com/zeke/outlet")
assert.equal(redact("git+ssh://zeke:password@github.com/zeke/outlet", ""), "git+ssh://github.com/zeke/outlet")
})

@@ -36,0 +37,0 @@

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