@azrico/webobject 1.4.33 → 1.4.35

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.
@@ -52,7 +52,7 @@ export declare class WebObject extends SimpleObject {
52
52
  */
53
53
  static getMetaValue(o: WebObject | null | undefined, key: string): any;
54
54
  static zipSaveList(svlist: any): string;
55
- static unzipSaveList(svlist: any): any;
55
+ static unzipSaveList(svlist: any): any[];
56
56
  static saveList(itemList: WebObject[], extraOptions?: {
57
57
  [key: string]: any;
58
58
  }): Promise<boolean>;
@@ -573,10 +573,12 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
573
573
  key: "unzipSaveList",
574
574
  value: function unzipSaveList(svlist) {
575
575
  try {
576
- if (_typeof(svlist) === "object") return svlist;
577
- if (typeof svlist === "string") return JSON.parse((0, _string.string_decompress)(svlist));
576
+ if (_typeof(svlist) === "object") {
577
+ if (Array.isArray(svlist)) return svlist;
578
+ if (svlist.__save_list) return this.unzipSaveList(svlist.__save_list);
579
+ } else if (typeof svlist === "string") return (0, _object.wrap_array)(JSON.parse((0, _string.string_decompress)(svlist)));
578
580
  } catch (_unused) {}
579
- return svlist;
581
+ return (0, _object.wrap_array)(svlist);
580
582
  }
581
583
  }, {
582
584
  key: "saveList",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.33",
3
+ "version": "1.4.35",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",