Comparing version 1.3.1 to 1.3.2
@@ -0,5 +1,6 @@ | ||
"use strict"; | ||
// Dependencies | ||
const protocols = require("protocols") | ||
, isSsh = require("is-ssh") | ||
; | ||
var protocols = require("protocols"), | ||
isSsh = require("is-ssh"); | ||
@@ -27,19 +28,17 @@ /** | ||
var output = { | ||
protocols: protocols(url) | ||
, protocol: null | ||
, port: null | ||
, resource: "" | ||
, user: "" | ||
, pathname: "" | ||
, hash: "" | ||
, search: "" | ||
, href: url | ||
} | ||
, protocolIndex = url.indexOf("://") | ||
, resourceIndex = -1 | ||
, splits = null | ||
, parts = null | ||
; | ||
protocols: protocols(url), | ||
protocol: null, | ||
port: null, | ||
resource: "", | ||
user: "", | ||
pathname: "", | ||
hash: "", | ||
search: "", | ||
href: url | ||
}, | ||
protocolIndex = url.indexOf("://"), | ||
resourceIndex = -1, | ||
splits = null, | ||
parts = null; | ||
output.protocol = output.protocols[0] || (isSsh(url) ? "ssh" : "file"); | ||
@@ -61,3 +60,2 @@ | ||
// domain.com:port | ||
@@ -97,2 +95,2 @@ splits = output.resource.split(":"); | ||
module.exports = parseUrl; | ||
module.exports = parseUrl; |
{ | ||
"name": "parse-url", | ||
"version": "1.3.1", | ||
"version": "1.3.2", | ||
"description": "An advanced url parser supporting git urls too.", | ||
@@ -45,2 +45,3 @@ "main": "lib/index.js", | ||
"menu/", | ||
"scripts/", | ||
"cli.js", | ||
@@ -47,0 +48,0 @@ "index.js" |
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
No README
QualityPackage does not have a README. This may indicate a failed publish or a low quality package.
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
4494
3
79
1
0