@azrico/webobject 1.5.50 → 1.5.52
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.
|
@@ -1280,6 +1280,10 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
1280
1280
|
obj[_key4] = initObject[_key4];
|
|
1281
1281
|
}
|
|
1282
1282
|
}
|
|
1283
|
+
/* --------------------- special case 1, temp properties -------------------- */
|
|
1284
|
+
if ("__temp" in initObject) {
|
|
1285
|
+
obj["__temp"] = initObject["__temp"];
|
|
1286
|
+
}
|
|
1283
1287
|
}
|
|
1284
1288
|
return true;
|
|
1285
1289
|
}
|
|
@@ -1514,7 +1518,7 @@ var SimpleObject = exports.SimpleObject = /*#__PURE__*/function (_MapableObject)
|
|
|
1514
1518
|
var varKeys = ["products", "variations"];
|
|
1515
1519
|
for (var _i = 0, _varKeys = varKeys; _i < _varKeys.length; _i++) {
|
|
1516
1520
|
var vk = _varKeys[_i];
|
|
1517
|
-
if (!(vk in result_object)) continue;
|
|
1521
|
+
if (!(vk in result_object) || (0, _object.array_isEmpty)(result_object[vk])) continue;
|
|
1518
1522
|
/**
|
|
1519
1523
|
* if one product is not valid the result is not valid
|
|
1520
1524
|
* but if all products are valid we still need to check the object itself
|