Socket
Socket
Sign inDemoInstall

whatwg-url

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

whatwg-url - npm Package Compare versions

Comparing version 0.3.0 to 0.3.1

4

lib/url.js

@@ -149,6 +149,6 @@ "use strict";

if (input.length >= 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
if (input.length > 2 && input.charAt(0) === "0" && input.charAt(1).toLowerCase() === "x") {
input = input.substring(2);
R = 16;
} else if (input.length >= 1 && input.charAt(0) === "0") {
} else if (input.length > 1 && input.charAt(0) === "0") {
input = input.substring(1);

@@ -155,0 +155,0 @@ R = 8;

{
"name": "whatwg-url",
"version": "0.3.0",
"version": "0.3.1",
"description": "An implementation of the WHATWG URL algorithm",

@@ -5,0 +5,0 @@ "main": "lib/url.js",

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