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

@commercetools/frontend-sdk

Package Overview
Dependencies
Maintainers
0
Versions
76
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@commercetools/frontend-sdk - npm Package Compare versions

Comparing version 1.13.0 to 1.13.1

lib/chunk-5A7CVJXU.mjs

5

CHANGELOG.md
## 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 @@

20

lib/helpers/urlHelpers.js

@@ -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 @@ }

2

package.json
{
"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

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