Comparing version 0.6.11 to 0.6.12
@@ -7,3 +7,3 @@ 'use strict'; | ||
const t = /[\x2E\u3002\uFF0E\uFF61]/g; | ||
const o = {overflow: "Overflow Error", "not-basic": "Illegal Input", "invalid-input": "Invalid Input"}; | ||
const o = { overflow: "Overflow Error", "not-basic": "Illegal Input", "invalid-input": "Invalid Input" }; | ||
const e = Math.floor; | ||
@@ -234,3 +234,3 @@ const r = String.fromCharCode; | ||
} | ||
const {username, password} = parseAuth(this.auth); | ||
const { username, password } = parseAuth(this.auth); | ||
return encodeURIComponent(username) + (password ? ":" + encodeURIComponent(password) : ""); | ||
@@ -312,3 +312,3 @@ } | ||
const parsed = parseURL(input); | ||
const mergedQuery = {...parseQuery(parsed.search), ...query}; | ||
const mergedQuery = { ...parseQuery(parsed.search), ...query }; | ||
parsed.search = stringifyQuery(mergedQuery); | ||
@@ -354,5 +354,5 @@ return stringifyParsedURL(parsed); | ||
} | ||
const [protocol = "", auth, hostAndPath] = (input.match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1); | ||
const [host = "", path = ""] = (hostAndPath.match(/([^/]*)(.*)?/) || []).splice(1); | ||
const {pathname, search, hash} = parsePath(path); | ||
const [protocol = "", auth, hostAndPath] = (input.replace(/\\/g, "/").match(/([^:/]+:)?\/\/([^/@]+@)?(.*)/) || []).splice(1); | ||
const [host = "", path = ""] = (hostAndPath.match(/([^/?]*)(.*)?/) || []).splice(1); | ||
const { pathname, search, hash } = parsePath(path); | ||
return { | ||
@@ -359,0 +359,0 @@ protocol, |
{ | ||
"name": "ufo", | ||
"version": "0.6.11", | ||
"version": "0.6.12", | ||
"description": "URL utils for humans", | ||
@@ -5,0 +5,0 @@ "repository": "unjs/ufo", |
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
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
0
34964
6