Comparing version 3.0.0 to 3.0.1
/** | ||
* build-url - A small library that builds a URL given its components | ||
* @version v3.0.0 | ||
* @version v3.0.1 | ||
* @link https://github.com/steverydz/build-url#readme | ||
@@ -5,0 +5,0 @@ * @license MIT |
@@ -1,1 +0,1 @@ | ||
(function(){"use strict";var r=this,e=r.buildUrl,l=function(r){return null===r?"":encodeURIComponent(String(r).trim())},a=function(r,e){var a,t,i,o=[];if(i=!(!e||!e.lowerCase)&&!!e.lowerCase,null===r?t="":"object"==typeof r?(t="",e=r):t=r,e){if(e.path){t&&"/"===t[t.length-1]&&(t=t.slice(0,-1));var s=String(e.path).trim();i&&(s=s.toLowerCase()),0===s.indexOf("/")?t+=s:t+="/"+s}if(e.queryParams){for(a in e.queryParams){var n;if(e.queryParams.hasOwnProperty(a)&&void 0!==e.queryParams[a])if(e.disableCSV&&Array.isArray(e.queryParams[a])&&e.queryParams[a].length)for(var u=0;u<e.queryParams[a].length;u++)n=e.queryParams[a][u],o.push(a+"="+l(n));else n=i?e.queryParams[a].toLowerCase():e.queryParams[a],o.push(a+"="+l(n))}t+="?"+o.join("&")}e.hash&&(t+=i?"#"+String(e.hash).trim().toLowerCase():"#"+String(e.hash).trim())}return t};a.noConflict=function(){return r.buildUrl=e,a},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=a),exports.buildUrl=a):r.buildUrl=a}).call(this); | ||
(function(){"use strict";function l(r){return null===r?"":encodeURIComponent(String(r).trim())}function r(r,e){var t,a,o,s,i=[],n=!(!e||!e.lowerCase)&&!!e.lowerCase;if(null===r?a="":"object"==typeof r?(a="",e=r):a=r,e){if(e.path&&(a&&"/"===a[a.length-1]&&(a=a.slice(0,-1)),o=String(e.path).trim(),n&&(o=o.toLowerCase()),0===o.indexOf("/")?a+=o:a+="/"+o),e.queryParams){for(t in e.queryParams){if(e.queryParams.hasOwnProperty(t)&&void 0!==e.queryParams[t])if(e.disableCSV&&Array.isArray(e.queryParams[t])&&e.queryParams[t].length)for(var u=0;u<e.queryParams[t].length;u++)s=e.queryParams[t][u],i.push(t+"="+l(s));else s=n?e.queryParams[t].toLowerCase():e.queryParams[t],i.push(t+"="+l(s))}a+="?"+i.join("&")}e.hash&&(a+=n?"#"+String(e.hash).trim().toLowerCase():"#"+String(e.hash).trim())}return a}var e=this,t=e.buildUrl;r.noConflict=function(){return e.buildUrl=t,r},"undefined"!=typeof exports?("undefined"!=typeof module&&module.exports&&(exports=module.exports=r),exports.buildUrl=r):e.buildUrl=r}).call(this); |
{ | ||
"name": "build-url", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "A small library that builds a URL given its components", | ||
@@ -8,3 +8,3 @@ "main": "./dist/build-url.js", | ||
"scripts": { | ||
"test": "./node_modules/jasmine/bin/jasmine.js" | ||
"test": "jest" | ||
}, | ||
@@ -43,5 +43,5 @@ "repository": { | ||
"gulp-uglify": "3.0.1", | ||
"jasmine": "3.3.0", | ||
"jest": "26.4.2", | ||
"pump": "3.0.0" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22790
10
504
1