Socket
Socket
Sign inDemoInstall

ufo

Package Overview
Dependencies
Maintainers
3
Versions
57
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ufo - npm Package Compare versions

Comparing version 0.6.11 to 0.6.12

12

dist/index.js

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

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