Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

tiny-parse

Package Overview
Dependencies
Maintainers
1
Versions
16
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

tiny-parse - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

4

lib/parse.js

@@ -52,4 +52,4 @@ "use strict";

function parse (arg, coerce = true) {
const uri = arg.url || arg || "",
function parse (arg = "", coerce = true) {
const uri = typeof arg === "string" ? arg : `http://${arg.headers.host || `localhost:${arg.socket.server._connectionKey.replace(/.*::/, "")}`}${arg.url}`,
parsed = new URL(uri),

@@ -56,0 +56,0 @@ result = {query: queryString(parsed, coerce)};

{
"name": "tiny-parse",
"version": "3.0.0",
"version": "3.0.1",
"description": "URL parsing with coercion of `query`",

@@ -5,0 +5,0 @@ "main": "index.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