astro-bazi-utils 1.0.4 → 1.0.5

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.
package/dist/index.cjs CHANGED
@@ -3561,7 +3561,8 @@ var ShenshaItem = /* @__PURE__ */ ((ShenshaItem2) => {
3561
3561
  })(ShenshaItem || {});
3562
3562
  var Shensha = class {
3563
3563
  static getDetails(key) {
3564
- return this.Map[key].text;
3564
+ var _a;
3565
+ return (_a = this.Map[key]) == null ? void 0 : _a.text;
3565
3566
  }
3566
3567
  static getData(bazi, target, yinli, gender) {
3567
3568
  const res = [];
package/dist/index.d.cts CHANGED
@@ -907,7 +907,7 @@ declare class Shensha {
907
907
  rule(bazi: [JZ_60, JZ_60, JZ_60, JZ_60], target: JZ_60): false | ShenshaItem.劫煞;
908
908
  };
909
909
  };
910
- static getDetails(key: ShenshaItem): string;
910
+ static getDetails(key: ShenshaItem): string | undefined;
911
911
  static getData(bazi: [JZ_60, JZ_60, JZ_60, JZ_60], target: JZ_60, yinli: number[], gender: 0 | 1): ShenshaItem[];
912
912
  }
913
913
 
package/dist/index.d.ts CHANGED
@@ -907,7 +907,7 @@ declare class Shensha {
907
907
  rule(bazi: [JZ_60, JZ_60, JZ_60, JZ_60], target: JZ_60): false | ShenshaItem.劫煞;
908
908
  };
909
909
  };
910
- static getDetails(key: ShenshaItem): string;
910
+ static getDetails(key: ShenshaItem): string | undefined;
911
911
  static getData(bazi: [JZ_60, JZ_60, JZ_60, JZ_60], target: JZ_60, yinli: number[], gender: 0 | 1): ShenshaItem[];
912
912
  }
913
913
 
package/dist/index.js CHANGED
@@ -3512,7 +3512,8 @@ var ShenshaItem = /* @__PURE__ */ ((ShenshaItem2) => {
3512
3512
  })(ShenshaItem || {});
3513
3513
  var Shensha = class {
3514
3514
  static getDetails(key) {
3515
- return this.Map[key].text;
3515
+ var _a;
3516
+ return (_a = this.Map[key]) == null ? void 0 : _a.text;
3516
3517
  }
3517
3518
  static getData(bazi, target, yinli, gender) {
3518
3519
  const res = [];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "astro-bazi-utils",
3
- "version": "1.0.4",
3
+ "version": "1.0.5",
4
4
  "type": "module",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "dist/index.js",