@commercetools/frontend-sdk
Advanced tools
Comparing version 1.13.0 to 1.13.1
## Version 1.13.1 (2024-06-20) | ||
* Erronously passed undefined values are no longer serialised into the query | ||
## Version 1.13.0 (2024-06-19) | ||
@@ -3,0 +8,0 @@ |
@@ -59,12 +59,2 @@ "use strict"; | ||
}; | ||
var nullOrUndefinedToString = (value) => { | ||
switch (value) { | ||
case void 0: | ||
return "undefined"; | ||
case null: | ||
return "null"; | ||
default: | ||
return ""; | ||
} | ||
}; | ||
var toQueryObject = function(key, value) { | ||
@@ -86,8 +76,6 @@ let obj = {}; | ||
let value = query[key]; | ||
if (value === null || value === void 0) { | ||
queryString += `${toQueryString( | ||
toQueryObject(key, nullOrUndefinedToString(value)) | ||
)}&`; | ||
} else { | ||
if (typeof value !== "function") { | ||
if (value !== void 0 && typeof value !== "function") { | ||
if (value === null) { | ||
queryString += `${key}=null&`; | ||
} else { | ||
queryString += `${toQueryString(toQueryObject(key, value))}&`; | ||
@@ -94,0 +82,0 @@ } |
@@ -610,12 +610,2 @@ "use strict"; | ||
}; | ||
var nullOrUndefinedToString = (value) => { | ||
switch (value) { | ||
case void 0: | ||
return "undefined"; | ||
case null: | ||
return "null"; | ||
default: | ||
return ""; | ||
} | ||
}; | ||
var toQueryObject = function(key, value) { | ||
@@ -637,8 +627,6 @@ let obj = {}; | ||
let value = query[key]; | ||
if (value === null || value === void 0) { | ||
queryString += `${toQueryString( | ||
toQueryObject(key, nullOrUndefinedToString(value)) | ||
)}&`; | ||
} else { | ||
if (typeof value !== "function") { | ||
if (value !== void 0 && typeof value !== "function") { | ||
if (value === null) { | ||
queryString += `${key}=null&`; | ||
} else { | ||
queryString += `${toQueryString(toQueryObject(key, value))}&`; | ||
@@ -645,0 +633,0 @@ } |
@@ -390,12 +390,2 @@ "use strict"; | ||
}; | ||
var nullOrUndefinedToString = (value) => { | ||
switch (value) { | ||
case void 0: | ||
return "undefined"; | ||
case null: | ||
return "null"; | ||
default: | ||
return ""; | ||
} | ||
}; | ||
var toQueryObject = function(key, value) { | ||
@@ -417,8 +407,6 @@ let obj = {}; | ||
let value = query[key]; | ||
if (value === null || value === void 0) { | ||
queryString += `${toQueryString( | ||
toQueryObject(key, nullOrUndefinedToString(value)) | ||
)}&`; | ||
} else { | ||
if (typeof value !== "function") { | ||
if (value !== void 0 && typeof value !== "function") { | ||
if (value === null) { | ||
queryString += `${key}=null&`; | ||
} else { | ||
queryString += `${toQueryString(toQueryObject(key, value))}&`; | ||
@@ -425,0 +413,0 @@ } |
{ | ||
"name": "@commercetools/frontend-sdk", | ||
"version": "1.13.0", | ||
"version": "1.13.1", | ||
"license": "UNLICENSED", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
491294
6151