@azrico/webobject 1.5.46 → 1.5.47

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.
@@ -1501,7 +1501,6 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
1501
1501
  }
1502
1502
  /* ----------------- maybe website sends the result as array ---------------- */
1503
1503
  if (Array.isArray(result_object)) {
1504
- if (depth > 0) return false; //avoid going too deep
1505
1504
  var allResults = result_object.map(function (r) {
1506
1505
  return Boolean(_this4.isResultValid(r, depth + 1));
1507
1506
  });
@@ -1517,6 +1516,12 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
1517
1516
  */
1518
1517
  if (!this.isResultValid(result_object.products, depth + 1)) return false;
1519
1518
  }
1519
+ if (result_object.order) {
1520
+ /**
1521
+ * if we get a order-products pair, checking the order is enough
1522
+ */
1523
+ return this.isResultValid(result_object.order, depth + 1);
1524
+ }
1520
1525
  /* -------------------------- check if acknowledged ------------------------- */
1521
1526
  if ((0, _object.object_isTrue)(result_object.acknowledged)) {
1522
1527
  return true;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.5.46",
3
+ "version": "1.5.47",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",