@azrico/webobject 1.4.34 → 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>;
@@ -576,11 +576,9 @@ var WebObject = /*#__PURE__*/function (_SimpleObject) {
576
576
  if (_typeof(svlist) === "object") {
577
577
  if (Array.isArray(svlist)) return svlist;
578
578
  if (svlist.__save_list) return this.unzipSaveList(svlist.__save_list);
579
- return svlist;
580
- }
581
- if (typeof svlist === "string") return JSON.parse((0, _string.string_decompress)(svlist));
579
+ } else if (typeof svlist === "string") return (0, _object.wrap_array)(JSON.parse((0, _string.string_decompress)(svlist)));
582
580
  } catch (_unused) {}
583
- return svlist;
581
+ return (0, _object.wrap_array)(svlist);
584
582
  }
585
583
  }, {
586
584
  key: "saveList",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@azrico/webobject",
3
- "version": "1.4.34",
3
+ "version": "1.4.35",
4
4
  "description": "Stateful object",
5
5
  "author": "Azrideus",
6
6
  "license": "MIT",