@elasticpath/js-sdk 33.2.0 → 33.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.cjs.js +11 -2
- package/dist/index.esm.js +11 -2
- package/dist/index.js +11 -2
- package/package.json +1 -1
package/dist/index.cjs.js
CHANGED
|
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
|
|
|
530
530
|
globalThis.Response = fetch$1.Response;
|
|
531
531
|
}
|
|
532
532
|
|
|
533
|
-
var version = "33.
|
|
533
|
+
var version = "33.3.1";
|
|
534
534
|
|
|
535
535
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
536
536
|
function LocalStorageFactory() {
|
|
@@ -705,6 +705,15 @@ var DEFAULT_CART_KEY = 'epcart';
|
|
|
705
705
|
var DEFAULT_CURRENCY_KEY = 'epcurrency';
|
|
706
706
|
|
|
707
707
|
function formatFilterString(type, filter) {
|
|
708
|
+
// Handle is_null filter usage { is_null: field } or { is_null: [field1, field2] }
|
|
709
|
+
if (type === 'is_null') {
|
|
710
|
+
if (Array.isArray(filter)) {
|
|
711
|
+
return filter.map(function (item) {
|
|
712
|
+
return "".concat(type, "(").concat(item, ")");
|
|
713
|
+
}).join(':');
|
|
714
|
+
}
|
|
715
|
+
return "".concat(type, "(").concat(filter, ")");
|
|
716
|
+
}
|
|
708
717
|
var filterStringArray = Object.keys(filter).map(function (key) {
|
|
709
718
|
var value = filter[key];
|
|
710
719
|
var queryString = "".concat(key, ",").concat(value);
|
|
@@ -5363,7 +5372,7 @@ var Releases = /*#__PURE__*/function (_CRUDExtend3) {
|
|
|
5363
5372
|
var catalogId = _ref13.catalogId,
|
|
5364
5373
|
_ref13$token = _ref13.token,
|
|
5365
5374
|
token = _ref13$token === void 0 ? null : _ref13$token;
|
|
5366
|
-
return this.request.send("catalogs/".concat(
|
|
5375
|
+
return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'GET', undefined, token);
|
|
5367
5376
|
}
|
|
5368
5377
|
}, {
|
|
5369
5378
|
key: "Get",
|
package/dist/index.esm.js
CHANGED
|
@@ -519,7 +519,7 @@ if (!globalThis.fetch) {
|
|
|
519
519
|
globalThis.Response = Response;
|
|
520
520
|
}
|
|
521
521
|
|
|
522
|
-
var version = "33.
|
|
522
|
+
var version = "33.3.1";
|
|
523
523
|
|
|
524
524
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
525
525
|
function LocalStorageFactory() {
|
|
@@ -694,6 +694,15 @@ var DEFAULT_CART_KEY = 'epcart';
|
|
|
694
694
|
var DEFAULT_CURRENCY_KEY = 'epcurrency';
|
|
695
695
|
|
|
696
696
|
function formatFilterString(type, filter) {
|
|
697
|
+
// Handle is_null filter usage { is_null: field } or { is_null: [field1, field2] }
|
|
698
|
+
if (type === 'is_null') {
|
|
699
|
+
if (Array.isArray(filter)) {
|
|
700
|
+
return filter.map(function (item) {
|
|
701
|
+
return "".concat(type, "(").concat(item, ")");
|
|
702
|
+
}).join(':');
|
|
703
|
+
}
|
|
704
|
+
return "".concat(type, "(").concat(filter, ")");
|
|
705
|
+
}
|
|
697
706
|
var filterStringArray = Object.keys(filter).map(function (key) {
|
|
698
707
|
var value = filter[key];
|
|
699
708
|
var queryString = "".concat(key, ",").concat(value);
|
|
@@ -5352,7 +5361,7 @@ var Releases = /*#__PURE__*/function (_CRUDExtend3) {
|
|
|
5352
5361
|
var catalogId = _ref13.catalogId,
|
|
5353
5362
|
_ref13$token = _ref13.token,
|
|
5354
5363
|
token = _ref13$token === void 0 ? null : _ref13$token;
|
|
5355
|
-
return this.request.send("catalogs/".concat(
|
|
5364
|
+
return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'GET', undefined, token);
|
|
5356
5365
|
}
|
|
5357
5366
|
}, {
|
|
5358
5367
|
key: "Get",
|
package/dist/index.js
CHANGED
|
@@ -1085,7 +1085,7 @@
|
|
|
1085
1085
|
globalThis.Response = browserPonyfill.exports.Response;
|
|
1086
1086
|
}
|
|
1087
1087
|
|
|
1088
|
-
var version = "33.
|
|
1088
|
+
var version = "33.3.1";
|
|
1089
1089
|
|
|
1090
1090
|
var LocalStorageFactory = /*#__PURE__*/function () {
|
|
1091
1091
|
function LocalStorageFactory() {
|
|
@@ -1862,6 +1862,15 @@
|
|
|
1862
1862
|
var DEFAULT_CURRENCY_KEY = 'epcurrency';
|
|
1863
1863
|
|
|
1864
1864
|
function formatFilterString(type, filter) {
|
|
1865
|
+
// Handle is_null filter usage { is_null: field } or { is_null: [field1, field2] }
|
|
1866
|
+
if (type === 'is_null') {
|
|
1867
|
+
if (Array.isArray(filter)) {
|
|
1868
|
+
return filter.map(function (item) {
|
|
1869
|
+
return "".concat(type, "(").concat(item, ")");
|
|
1870
|
+
}).join(':');
|
|
1871
|
+
}
|
|
1872
|
+
return "".concat(type, "(").concat(filter, ")");
|
|
1873
|
+
}
|
|
1865
1874
|
var filterStringArray = Object.keys(filter).map(function (key) {
|
|
1866
1875
|
var value = filter[key];
|
|
1867
1876
|
var queryString = "".concat(key, ",").concat(value);
|
|
@@ -6524,7 +6533,7 @@
|
|
|
6524
6533
|
var catalogId = _ref13.catalogId,
|
|
6525
6534
|
_ref13$token = _ref13.token,
|
|
6526
6535
|
token = _ref13$token === void 0 ? null : _ref13$token;
|
|
6527
|
-
return this.request.send("catalogs/".concat(
|
|
6536
|
+
return this.request.send("catalogs/".concat(catalogId, "/").concat(this.endpoint), 'GET', undefined, token);
|
|
6528
6537
|
}
|
|
6529
6538
|
}, {
|
|
6530
6539
|
key: "Get",
|
package/package.json
CHANGED