Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@arcteryx/js-url

Package Overview
Dependencies
Maintainers
6
Versions
59
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@arcteryx/js-url - npm Package Compare versions

Comparing version 1.27.8 to 1.27.9

8

CHANGELOG.md

@@ -6,2 +6,10 @@ # Change Log

## [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)
**Note:** Version bump only for package @arcteryx/js-url
## [1.27.8](https://bitbucket.org/arcteryx/arcteryx-js-helpers/compare/@arcteryx/js-url@1.27.5...@arcteryx/js-url@1.27.8) (2020-02-06)

@@ -8,0 +16,0 @@

40

dist/cjs/index.js

@@ -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,11 +86,15 @@ 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,6 +110,8 @@ }

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]);
}

@@ -112,0 +118,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,11 +82,15 @@ 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;

@@ -102,6 +106,8 @@ }

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]);
}

@@ -112,3 +118,10 @@

export { endsWith, modelConversionForNewPDP, querySt, removeQueryStringParameter, toQueryParams, updateQueryStringParameter };
export {
endsWith,
modelConversionForNewPDP,
querySt,
removeQueryStringParameter,
toQueryParams,
updateQueryStringParameter,
};
//# sourceMappingURL=index.js.map

@@ -1,6 +0,9 @@

(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";

@@ -41,5 +44,5 @@ /**

var hu = or ? or : window.location.search.substring(1),
gy = hu.split("&"),
ft,
i;
gy = hu.split("&"),
ft,
i;

@@ -58,3 +61,3 @@ for (i = 0; i < gy.length; i++) {

var newUrl = url,
urlparts = url.split("?");
urlparts = url.split("?");

@@ -65,3 +68,3 @@ if (urlparts.length >= 2) {

for (var i = pars.length; i-- > 0;) {
for (var i = pars.length; i-- > 0; ) {
// Idiom for string.startsWith

@@ -88,11 +91,15 @@ 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;

@@ -108,6 +115,8 @@ }

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]);
}

@@ -125,5 +134,4 @@

Object.defineProperty(exports, '__esModule', { value: true });
})));
Object.defineProperty(exports, "__esModule", { value: true });
});
//# sourceMappingURL=index.js.map
{
"name": "@arcteryx/js-url",
"version": "1.27.8",
"version": "1.27.9",
"source": "src/index.js",

@@ -13,3 +13,3 @@ "main": "dist/cjs/index.js",

"license": "ISC",
"gitHead": "7ba99f591c4c1283535b6ee103bc3f3d2e0a836d"
"gitHead": "c75f236b38d80f2a0eae1fb2a6820072d2b12e86"
}
SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc