Socket
Socket
Sign inDemoInstall

@nuxt/ufo

Package Overview
Dependencies
Maintainers
3
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nuxt/ufo - npm Package Compare versions

Comparing version 0.1.5 to 0.1.6

7

CHANGELOG.md

@@ -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 @@

4

dist/index.browser.js

@@ -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

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