Comparing version 0.1.5 to 0.1.6
@@ -5,2 +5,9 @@ # Changelog | ||
### [0.1.6](https://github.com/nuxt-contrib/ufo/compare/v0.1.5...v0.1.6) (2020-12-15) | ||
### Bug Fixes | ||
* enforce double slash ([90d8172](https://github.com/nuxt-contrib/ufo/commit/90d8172189081a173b721a5c3d3bb53e8bed1e4b)) | ||
### [0.1.5](https://github.com/nuxt-contrib/ufo/compare/v0.1.4...v0.1.5) (2020-12-15) | ||
@@ -7,0 +14,0 @@ |
@@ -17,3 +17,3 @@ (function (global, factory) { | ||
function hasProtocol(inputStr) { | ||
return /^\w+:\//.test(inputStr); | ||
return /^\w+:\/\//.test(inputStr); | ||
} | ||
@@ -29,3 +29,3 @@ function parseURL(input = "") { | ||
const isRelative = _hasProtocol ? false : input[0] !== "/"; | ||
const url = new URL(input, _hasProtocol ? void 0 : "default:/"); | ||
const url = new URL(input, _hasProtocol ? void 0 : "http://default"); | ||
return {url, hasProtocol: _hasProtocol, isRelative}; | ||
@@ -32,0 +32,0 @@ } |
@@ -15,3 +15,3 @@ 'use strict'; | ||
function hasProtocol(inputStr) { | ||
return /^\w+:\//.test(inputStr); | ||
return /^\w+:\/\//.test(inputStr); | ||
} | ||
@@ -27,3 +27,3 @@ function parseURL(input = "") { | ||
const isRelative = _hasProtocol ? false : input[0] !== "/"; | ||
const url = new URL(input, _hasProtocol ? void 0 : "default:/"); | ||
const url = new URL(input, _hasProtocol ? void 0 : "http://default"); | ||
return {url, hasProtocol: _hasProtocol, isRelative}; | ||
@@ -30,0 +30,0 @@ } |
{ | ||
"name": "@nuxt/ufo", | ||
"version": "0.1.5", | ||
"version": "0.1.6", | ||
"description": "URL utils for humans", | ||
@@ -5,0 +5,0 @@ "repository": "nuxt-contrib/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
16183