@azrico/webobject 1.2.23 → 1.2.24

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.
@@ -104,7 +104,7 @@ export declare class SimpleObject extends MapableObject {
104
104
  * @param result_object
105
105
  * @returns
106
106
  */
107
- static isResultValid(result_object: any): any;
107
+ static isResultValid(result_object: any, sub?: boolean): any;
108
108
  /**
109
109
  * set the response of last save from site
110
110
  * and its type
@@ -697,7 +697,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
697
697
  } //check if the given object is a valid save result
698
698
 
699
699
 
700
- this.__saveResultIsSuccess = Boolean(type === "nothing" || this.constructor["isResultValid"](toObj));
700
+ if (type === "error") this.__saveResultIsSuccess = false;else this.__saveResultIsSuccess = Boolean(type === "nothing" || this.constructor["isResultValid"](toObj));
701
701
 
702
702
  if (type === "auto") {
703
703
  type = this.__saveResultIsSuccess ? "normal" : "error";
@@ -938,6 +938,7 @@ var SimpleObject = /*#__PURE__*/function (_MapableObject) {
938
938
  }, {
939
939
  key: "isResultValid",
940
940
  value: function isResultValid(result_object) {
941
+ var sub = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
941
942
  if ((0, _object.object_isEmpty)(result_object)) return false;
942
943
 
943
944
  switch (_typeof(result_object)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.2.23",
3
+ "version": "1.2.24",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",