Comparing version 0.3.0 to 0.3.1
@@ -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 @@ |
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
4888
63