build-url-ts
Advanced tools
Comparing version 6.1.0 to 6.1.1
@@ -1,2 +0,2 @@ | ||
"use strict";function buildQueryString(r,n,a){var i=[];for(var e in r)!function(e){var t;Object.prototype.hasOwnProperty.call(r,e)&&void 0!==r[e]&&(a&&Array.isArray(r[e])&&r[e].length?r[e].forEach(function(r){t=0!==r?r||"":0,i.push(e+"="+encodeURIComponent(String(t).trim()))}):(t=n?String(r[e]).toLowerCase()||"":0!==r[e]?r[e]||"":0,i.push(e+"="+encodeURIComponent(String(t).trim()))))}(e);return"?"+i.join("&")}function appendPath(r,e,t){"/"===e[e.length-1]&&(e=e.slice(0,-1));var n=String(r).trim();return t&&(n=n.toLowerCase()),0===n.indexOf("/")?e+=n:e+="/"+n,e}function buildHash(r,e){var t="#"+String(r).trim();return e?t.toLowerCase():t}function buildUrl(r,e){var t;return null===r?t="":"object"==typeof r?(t="",e=r):t=r,null!=e&&e.path&&(t=appendPath(e.path,t,e.lowerCase)),null!=e&&e.queryParams&&(t+=buildQueryString(e.queryParams,e.lowerCase,e.disableCSV)),null!=e&&e.hash&&(t+=buildHash(e.hash,e.lowerCase)),t}Object.defineProperty(exports,"__esModule",{value:!0}),exports.appendPath=appendPath,exports.buildHash=buildHash,exports.buildQueryString=buildQueryString,exports.default=buildUrl; | ||
"use strict";function buildQueryString(r,n,a){var o=[];for(var t in r)!function(t){var e;Object.prototype.hasOwnProperty.call(r,t)&&void 0!==r[t]&&(a&&Array.isArray(r[t])&&r[t].length?r[t].forEach(function(r){e=0!==r?r||"":0,o.push("".concat(t,"=").concat(encodeURIComponent(String(e).trim())))}):(e=n?String(r[t]).toLowerCase()||"":0!==r[t]?r[t]||"":0,o.push("".concat(t,"=").concat(encodeURIComponent(String(e).trim())))))}(t);return"?".concat(o.join("&"))}function appendPath(r,t,e){"/"===t[t.length-1]&&(t=t.slice(0,-1));var n=String(r).trim();return e&&(n=n.toLowerCase()),0===n.indexOf("/")?t+=n:t+="/".concat(n),t}function buildHash(r,t){var e="#".concat(String(r).trim());return t?e.toLowerCase():e}function buildUrl(r,t){var e;return null===r?e="":"object"==typeof r?(e="",t=r):e=r,null!=t&&t.path&&(e=appendPath(t.path,e,t.lowerCase)),null!=t&&t.queryParams&&(e+=buildQueryString(t.queryParams,t.lowerCase,t.disableCSV)),null!=t&&t.hash&&(e+=buildHash(t.hash,t.lowerCase)),e}Object.defineProperty(exports,"__esModule",{value:!0}),exports.appendPath=appendPath,exports.buildHash=buildHash,exports.buildQueryString=buildQueryString,exports.default=buildUrl; | ||
//# sourceMappingURL=build-url.js.map |
{ | ||
"name": "build-url-ts", | ||
"version": "6.1.0", | ||
"version": "6.1.1", | ||
"description": "A small library that builds a URL given its components", | ||
@@ -49,22 +49,22 @@ "main": "./dist/build-url.js", | ||
"devDependencies": { | ||
"@rollup/plugin-commonjs": "^19.0.1", | ||
"@rollup/plugin-node-resolve": "^13.0.2", | ||
"@rollup/plugin-commonjs": "^21.0.1", | ||
"@rollup/plugin-node-resolve": "^13.0.6", | ||
"@rollup/plugin-replace": "^3.0.0", | ||
"@rollup/plugin-typescript": "8.2.3", | ||
"@types/eslint": "7.28.0", | ||
"@types/jasmine": "3.8.1", | ||
"@types/jest": "26.0.24", | ||
"@types/prettier": "2.3.2", | ||
"@typescript-eslint/eslint-plugin": "4.28.3", | ||
"@typescript-eslint/parser": "4.28.3", | ||
"eslint": "7.30.0", | ||
"@rollup/plugin-typescript": "8.3.0", | ||
"@types/eslint": "8.2.0", | ||
"@types/jasmine": "3.10.2", | ||
"@types/jest": "27.0.3", | ||
"@types/prettier": "2.4.2", | ||
"@typescript-eslint/eslint-plugin": "5.5.0", | ||
"@typescript-eslint/parser": "5.5.0", | ||
"eslint": "8.3.0", | ||
"eslint-config-prettier": "8.3.0", | ||
"jest": "27.0.6", | ||
"prettier": "2.3.2", | ||
"rollup": "2.53.2", | ||
"jest": "27.4.2", | ||
"prettier": "2.5.0", | ||
"rollup": "2.60.2", | ||
"rollup-plugin-uglify": "^6.0.4", | ||
"ts-jest": "27.0.3", | ||
"tslib": "2.3.0", | ||
"typescript": "4.3.5" | ||
"ts-jest": "27.0.7", | ||
"tslib": "2.3.1", | ||
"typescript": "4.5.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
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
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
10134