@arcteryx/js-url
Advanced tools
Comparing version 1.27.9 to 1.27.10
@@ -6,2 +6,10 @@ # Change Log | ||
## 1.27.10 (2020-02-06) | ||
**Note:** Version bump only for package @arcteryx/js-url | ||
## [1.27.9](https://bitbucket.org/arcteryx/arcteryx-js-helpers/compare/@arcteryx/js-url@1.27.5...@arcteryx/js-url@1.27.9) (2020-02-06) | ||
@@ -8,0 +16,0 @@ |
@@ -1,4 +0,4 @@ | ||
"use strict"; | ||
'use strict'; | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
@@ -39,5 +39,5 @@ /** | ||
var hu = or ? or : window.location.search.substring(1), | ||
gy = hu.split("&"), | ||
ft, | ||
i; | ||
gy = hu.split("&"), | ||
ft, | ||
i; | ||
@@ -56,3 +56,3 @@ for (i = 0; i < gy.length; i++) { | ||
var newUrl = url, | ||
urlparts = url.split("?"); | ||
urlparts = url.split("?"); | ||
@@ -63,3 +63,3 @@ if (urlparts.length >= 2) { | ||
for (var i = pars.length; i-- > 0; ) { | ||
for (var i = pars.length; i-- > 0;) { | ||
// Idiom for string.startsWith | ||
@@ -86,15 +86,11 @@ if (pars[i].lastIndexOf(prefix, 0) !== -1) { | ||
function toQueryParams(obj) { | ||
var url = Object.keys(obj) | ||
.map(function(x) { | ||
if (Array.isArray(obj[x])) { | ||
return obj[x] | ||
.map(function(i) { | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(i)); | ||
}) | ||
.join("&"); | ||
} | ||
var url = Object.keys(obj).map(function (x) { | ||
if (Array.isArray(obj[x])) { | ||
return obj[x].map(function (i) { | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(i)); | ||
}).join("&"); | ||
} | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(obj[x])); | ||
}) | ||
.join("&"); | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(obj[x])); | ||
}).join("&"); | ||
return url; | ||
@@ -110,8 +106,6 @@ } | ||
if (uri.match("search=")) { | ||
var arr = uri.split("&"); | ||
return "" | ||
.concat(arr[0] + separator + key, "=") | ||
.concat(value, "&") | ||
.concat(arr[1]); | ||
return "".concat(arr[0] + separator + key, "=").concat(value, "&").concat(arr[1]); | ||
} | ||
@@ -118,0 +112,0 @@ |
@@ -35,5 +35,5 @@ /** | ||
var hu = or ? or : window.location.search.substring(1), | ||
gy = hu.split("&"), | ||
ft, | ||
i; | ||
gy = hu.split("&"), | ||
ft, | ||
i; | ||
@@ -52,3 +52,3 @@ for (i = 0; i < gy.length; i++) { | ||
var newUrl = url, | ||
urlparts = url.split("?"); | ||
urlparts = url.split("?"); | ||
@@ -59,3 +59,3 @@ if (urlparts.length >= 2) { | ||
for (var i = pars.length; i-- > 0; ) { | ||
for (var i = pars.length; i-- > 0;) { | ||
// Idiom for string.startsWith | ||
@@ -82,15 +82,11 @@ if (pars[i].lastIndexOf(prefix, 0) !== -1) { | ||
function toQueryParams(obj) { | ||
var url = Object.keys(obj) | ||
.map(function(x) { | ||
if (Array.isArray(obj[x])) { | ||
return obj[x] | ||
.map(function(i) { | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(i)); | ||
}) | ||
.join("&"); | ||
} | ||
var url = Object.keys(obj).map(function (x) { | ||
if (Array.isArray(obj[x])) { | ||
return obj[x].map(function (i) { | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(i)); | ||
}).join("&"); | ||
} | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(obj[x])); | ||
}) | ||
.join("&"); | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(obj[x])); | ||
}).join("&"); | ||
return url; | ||
@@ -106,8 +102,6 @@ } | ||
if (uri.match("search=")) { | ||
var arr = uri.split("&"); | ||
return "" | ||
.concat(arr[0] + separator + key, "=") | ||
.concat(value, "&") | ||
.concat(arr[1]); | ||
return "".concat(arr[0] + separator + key, "=").concat(value, "&").concat(arr[1]); | ||
} | ||
@@ -118,10 +112,3 @@ | ||
export { | ||
endsWith, | ||
modelConversionForNewPDP, | ||
querySt, | ||
removeQueryStringParameter, | ||
toQueryParams, | ||
updateQueryStringParameter, | ||
}; | ||
export { endsWith, modelConversionForNewPDP, querySt, removeQueryStringParameter, toQueryParams, updateQueryStringParameter }; | ||
//# sourceMappingURL=index.js.map |
@@ -1,9 +0,6 @@ | ||
(function(global, factory) { | ||
typeof exports === "object" && typeof module !== "undefined" | ||
? factory(exports) | ||
: typeof define === "function" && define.amd | ||
? define(["exports"], factory) | ||
: factory((global.ARCTERYX = {})); | ||
})(this, function(exports) { | ||
"use strict"; | ||
(function (global, factory) { | ||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) : | ||
typeof define === 'function' && define.amd ? define(['exports'], factory) : | ||
(factory((global.ARCTERYX = {}))); | ||
}(this, (function (exports) { 'use strict'; | ||
@@ -44,5 +41,5 @@ /** | ||
var hu = or ? or : window.location.search.substring(1), | ||
gy = hu.split("&"), | ||
ft, | ||
i; | ||
gy = hu.split("&"), | ||
ft, | ||
i; | ||
@@ -61,3 +58,3 @@ for (i = 0; i < gy.length; i++) { | ||
var newUrl = url, | ||
urlparts = url.split("?"); | ||
urlparts = url.split("?"); | ||
@@ -68,3 +65,3 @@ if (urlparts.length >= 2) { | ||
for (var i = pars.length; i-- > 0; ) { | ||
for (var i = pars.length; i-- > 0;) { | ||
// Idiom for string.startsWith | ||
@@ -91,15 +88,11 @@ if (pars[i].lastIndexOf(prefix, 0) !== -1) { | ||
function toQueryParams(obj) { | ||
var url = Object.keys(obj) | ||
.map(function(x) { | ||
if (Array.isArray(obj[x])) { | ||
return obj[x] | ||
.map(function(i) { | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(i)); | ||
}) | ||
.join("&"); | ||
} | ||
var url = Object.keys(obj).map(function (x) { | ||
if (Array.isArray(obj[x])) { | ||
return obj[x].map(function (i) { | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(i)); | ||
}).join("&"); | ||
} | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(obj[x])); | ||
}) | ||
.join("&"); | ||
return "".concat(encodeURIComponent(x), "=").concat(encodeURIComponent(obj[x])); | ||
}).join("&"); | ||
return url; | ||
@@ -115,8 +108,6 @@ } | ||
if (uri.match("search=")) { | ||
var arr = uri.split("&"); | ||
return "" | ||
.concat(arr[0] + separator + key, "=") | ||
.concat(value, "&") | ||
.concat(arr[1]); | ||
return "".concat(arr[0] + separator + key, "=").concat(value, "&").concat(arr[1]); | ||
} | ||
@@ -134,4 +125,5 @@ | ||
Object.defineProperty(exports, "__esModule", { value: true }); | ||
}); | ||
Object.defineProperty(exports, '__esModule', { value: true }); | ||
}))); | ||
//# sourceMappingURL=index.js.map |
{ | ||
"name": "@arcteryx/js-url", | ||
"version": "1.27.9", | ||
"version": "1.27.10", | ||
"source": "src/index.js", | ||
@@ -13,3 +13,3 @@ "main": "dist/cjs/index.js", | ||
"license": "ISC", | ||
"gitHead": "c75f236b38d80f2a0eae1fb2a6820072d2b12e86" | ||
"gitHead": "bcadc88e6f77aa08bfd74c70316a78bf5518d7f7" | ||
} |
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
34483
386