Socket
Socket
Sign inDemoInstall

url-lib

Package Overview
Dependencies
0
Maintainers
1
Versions
10
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.2 to 1.0.3

CHANGELOG.md

2

dist/url-lib.min.js

@@ -7,2 +7,2 @@ /**

*/
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof module&&module.exports?module.exports=r():e.urllib=r()}(this,function(){"use strict";function e(e){return null!=e?decodeURIComponent(e):""}function r(e){return encodeURIComponent(e+"")}function n(e){for(var r=new Object(e),n=0;++n<arguments.length;){var t=arguments[n];if(t)for(var o in t)a.call(t,o)&&(r[o]=t[o])}return r}function t(e,r){var n=(e||"")+"",t=n.indexOf("?");return 0>t&&!r&&(t=n.length),{urlPath:n.slice(0,t),queryString:n.slice(t+1)}}function o(e){var t=[],o=e;Array.isArray(o)&&(o=o.length<2?o[0]:n.apply(null,o));for(var u in o)if(u){var i=o[u];null!=i&&t.push(r(u)+"="+r(i))}return t.join("&")}function u(r,n){var o={},u=t(r,n!==!1).queryString;if(u)for(var i=u.split("&"),a=i.length,f=-1;++f<a;){var l=i[f].split("="),c=l[0];c&&(o[e(c)]=e(l[1]))}return o}function i(e,r){var n,i,a,l=e,c=r;return Array.isArray(l)&&(c=l.slice(1).concat(c||f),l=l[0]),n=u(l,!1),i=Array.isArray(c)?c:[c],c=[n].concat(i),a=o(c),t(l).urlPath+(a?"?":"")+a}var a={}.hasOwnProperty,f=[];return{parseQuery:u,formatUrl:i,formatQuery:o}}),function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof module&&module.exports?module.exports=r():e.urllib.getCacheDefeatStr=r()}(this,function(){"use strict";function e(){return+new Date+""+Math.round(1e3*Math.random())+r++}var r=0;return e}),function(e,r){"function"==typeof define&&define.amd?define([],r):"object"==typeof module&&module.exports?module.exports=r():e.urllib.parseUrl=r()}(this,function(){"use strict";function e(e){function t(e){return o?o[e]||"":""}for(var o=e&&e.match(r),u={},i=-1;++i<n.length;){var a=n[i];a&&(u[n[i]]=t(i))}return u}var r=/^(([^:\\\/]+:)\/\/(([^:\\\/]*)(:(\d+))?)?)?(([^\?#]*[\\\/])?(([^\\\/\?#]*?)(\.([^\.\?#]+))?))(\?([^#]*))?(#(.*))?$/,n=["href","fullDomain","protocol","host","hostname","","port","pathname","folderPath","file","fileName","extension","fileType","search","query","hash","anchor"];return e});
!function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof module&&module.exports?module.exports=r():e.urllib=r()}(this,function(){"use strict";function e(e){return null!=e?decodeURIComponent(e):""}function r(e){return encodeURIComponent(e+"")}function n(e){for(var r=new Object(e),n=0;++n<arguments.length;){var t=arguments[n];if(t)for(var o in t)a.call(t,o)&&(r[o]=t[o])}return r}function t(e,r){var n=(e||"")+"",t=n.indexOf("?");return 0>t&&!r&&(t=n.length),{urlPath:n.slice(0,t),queryString:n.slice(t+1)}}function o(e){var t=[],o=e;Array.isArray(o)&&(o=o.length<2?o[0]:n.apply(null,o));for(var u in o)if(u){var i=o[u];null!=i&&t.push(r(u)+"="+r(i))}return t.join("&")}function u(r,n){var o={},u=t(r,n!==!1).queryString;if(u)for(var i=u.split("&"),a=i.length,f=-1;++f<a;){var l=i[f].split("="),c=l[0];c&&(o[e(c)]=e(l[1]))}return o}function i(e,r){var n,i,a,l=e,c=r;return Array.isArray(l)&&(c=l.slice(1).concat(c||f),l=l[0]),n=u(l,!1),i=Array.isArray(c)?c:[c],c=[n].concat(i),a=o(c),t(l).urlPath+(a?"?":"")+a}var a={}.hasOwnProperty,f=[];return{parseQuery:u,formatUrl:i,formatQuery:o}}),function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof module&&module.exports?module.exports=r():e.urllib.getCacheDefeatStr=r()}(this,function(){"use strict";function e(){return+new Date+""+Math.round(1e3*Math.random())+r++}var r=0;return e}),function(e,r){"function"==typeof define&&define.amd?define(r):"object"==typeof module&&module.exports?module.exports=r():e.urllib.parseUrl=r()}(this,function(){"use strict";function e(e){function t(e){return o?o[e]||"":""}for(var o=e&&e.match(r),u={},i=-1;++i<n.length;){var a=n[i];a&&(u[n[i]]=t(i))}return u}var r=/^(([^:\\\/]+:)\/\/(([^:\\\/]*)(:(\d+))?)?)?(([^\?#]*[\\\/])?(([^\\\/\?#]*?)(\.([^\.\?#]+))?))(\?([^#]*))?(#(.*))?$/,n=["href","fullDomain","protocol","host","hostname","","port","pathname","folderPath","file","fileName","extension","fileType","search","query","hash","anchor"];return e});

@@ -9,3 +9,3 @@ /**

if (typeof define === 'function' && define.amd) {
define([], factory);
define(factory);
}

@@ -12,0 +12,0 @@ else if (typeof module === 'object' && module.exports) {

{
"name": "url-lib",
"version": "1.0.2",
"version": "1.0.3",
"description": "A simple, lightweight string utility for Node and browsers that supports serializing and parsing URLs and query strings.",

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

@@ -9,3 +9,3 @@ /**

if (typeof define === 'function' && define.amd) {
define([], factory);
define(factory);
}

@@ -12,0 +12,0 @@ else if (typeof module === 'object' && module.exports) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc