@elasticpath/js-sdk 33.2.0 → 33.3.0

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 CHANGED
@@ -530,7 +530,7 @@ if (!globalThis.fetch) {
530
530
  globalThis.Response = fetch$1.Response;
531
531
  }
532
532
 
533
- var version = "33.2.0";
533
+ var version = "33.3.0";
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);
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.2.0";
522
+ var version = "33.3.0";
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);
package/dist/index.js CHANGED
@@ -1085,7 +1085,7 @@
1085
1085
  globalThis.Response = browserPonyfill.exports.Response;
1086
1086
  }
1087
1087
 
1088
- var version = "33.2.0";
1088
+ var version = "33.3.0";
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);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@elasticpath/js-sdk",
3
3
  "description": "SDK for the Elastic Path eCommerce API",
4
- "version": "33.2.0",
4
+ "version": "33.3.0",
5
5
  "homepage": "https://github.com/elasticpath/js-sdk",
6
6
  "author": "Elastic Path (https://elasticpath.com/)",
7
7
  "files": [