Socket
Socket
Sign inDemoInstall

@polka/url

Package Overview
Dependencies
Maintainers
1
Versions
17
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@polka/url - npm Package Compare versions

Comparing version 1.0.0-next.9 to 1.0.0-next.11

7

build.js
function parse(str) {
let i=0, j=0, k, v;
let out={}, arr=str.split('&');
for (let i=0, k, v; i < arr.length; i++) {
[k, v=''] = arr[i].split('=');
for (; i < arr.length; i++) {
j = arr[i].indexOf('=');
v = !!~j && arr[i].substring(j+1) || '';
k = !!~j ? arr[i].substring(0, j) : arr[i];
out[k] = out[k] !== void 0 ? [].concat(out[k], v) : v;

@@ -6,0 +9,0 @@ }

{
"version": "1.0.0-next.9",
"version": "1.0.0-next.11",
"name": "@polka/url",

@@ -20,3 +20,3 @@ "repository": "lukeed/polka",

},
"gitHead": "5c8f314e57c1edb3132f2556ce13fb6c2b4e839b"
"gitHead": "4edc74c28fde992eb10e23a6f6f4fd6040ccb34a"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc