Comparing version 1.2.5 to 1.2.6
@@ -10,6 +10,26 @@ # 紫微斗数 @sylarlong/astro | ||
## v1.2.6 | ||
- 🛠️ 修复(fix) | ||
🇨🇳 | ||
- 流月索引错误 #54 | ||
🇺🇸 | ||
- monthly index is incorrect #54 | ||
## v1.2.5 | ||
- 🛠️ 修复(fix) | ||
🇨🇳 | ||
- 修复丢失的星耀翻译(ja_JP -> 月德) | ||
🇺🇸 | ||
- fix missed star translation for (ja_JP -> 月德) | ||
## v1.2.4 | ||
@@ -16,0 +36,0 @@ |
@@ -82,3 +82,3 @@ "use strict"; | ||
monthlyIndex = (0, utils_1.fixIndex)(yearlyIndex - | ||
data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)($.rawDates.chineseDate.monthly[1])) + | ||
(0, utils_1.fixEarthlyBranchIndex)($.rawDates.chineseDate.monthly[1]) + | ||
data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)($.rawDates.chineseDate.hourly[1])) + | ||
@@ -115,2 +115,3 @@ (0, utils_1.fixEarthlyBranchIndex)(monthly[1])); | ||
stars: (0, star_1.getHoroscopeStar)(yearly[0], yearly[1], 'yearly'), | ||
yearlyDecStar: (0, star_1.getYearly12)(targetDate), | ||
}, | ||
@@ -117,0 +118,0 @@ monthly: { |
@@ -49,2 +49,2 @@ import { HeavenlyStemAndEarthlyBranch, HeavenlyStemAndEarthlyBranchDate } from '../data/types'; | ||
*/ | ||
export declare const getHeavenlyStemAndEarthlyBranchBySolarDate: (dateStr: string, timeIndex: number) => HeavenlyStemAndEarthlyBranchDate; | ||
export declare const getHeavenlyStemAndEarthlyBranchBySolarDate: (dateStr: string | Date, timeIndex: number) => HeavenlyStemAndEarthlyBranchDate; |
@@ -82,3 +82,8 @@ import { IFunctionalPalace } from '../../astro/FunctionalPalace'; | ||
/** 流年 */ | ||
yearly: HoroscopeItem; | ||
yearly: HoroscopeItem & { | ||
yearlyDecStar: { | ||
jiangqian12: StarName[]; | ||
suiqian12: StarName[]; | ||
}; | ||
}; | ||
/** 流月 */ | ||
@@ -85,0 +90,0 @@ monthly: HoroscopeItem; |
@@ -7,3 +7,3 @@ import { Star } from '../data/types'; | ||
export * from './adjectiveStar'; | ||
export * from './decorationStar'; | ||
export * from './decorativeStar'; | ||
export * from './horoscopeStar'; |
@@ -24,3 +24,3 @@ "use strict"; | ||
__exportStar(require("./adjectiveStar"), exports); | ||
__exportStar(require("./decorationStar"), exports); | ||
__exportStar(require("./decorativeStar"), exports); | ||
__exportStar(require("./horoscopeStar"), exports); |
@@ -93,3 +93,2 @@ "use strict"; | ||
var earthlyBranch = (0, i18n_1.kot)(earthlyBranchName, 'Earthly'); | ||
// console.log('ten tieng viet',heavenlyStemName, earthlyBranchName , heavenlyStem,earthlyBranch ) | ||
switch (earthlyBranch) { | ||
@@ -117,3 +116,2 @@ case 'yinEarthly': | ||
} | ||
// console.log('Tim maIndex',heavenlyStemName, earthlyBranchName , heavenlyStem,earthlyBranch , maIndex) | ||
switch (heavenlyStem) { | ||
@@ -120,0 +118,0 @@ case 'jiaHeavenly': { |
@@ -17,3 +17,2 @@ "use strict"; | ||
if (max === void 0) { max = 12; } | ||
// console.log('dau vao', index, max) | ||
if (index < 0) { | ||
@@ -26,3 +25,2 @@ return (0, exports.fixIndex)(index + max, max); | ||
var res = 1 / index === -Infinity ? 0 : index; | ||
// console.log('dau ra', res) | ||
return res; | ||
@@ -29,0 +27,0 @@ }; |
{ | ||
"name": "iztro", | ||
"version": "1.2.5", | ||
"version": "1.2.6", | ||
"description": "轻量级紫微斗数星盘生成库。可以通过出生年月日获取到紫微斗数星盘信息、生肖、星座等信息。A lightweight kit to astrolabe generator of The Purple Star Astrology (Zi Wei Dou Shu). The Purple Star Astrology(Zi Wei Dou Shu) is a Chinese ancient astrology. You're able to get your horoscope and personality from the astrolabe", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -0,0 +0,0 @@ <div align="center"> |
@@ -0,0 +0,0 @@ <div align="center"> |
@@ -0,0 +0,0 @@ <div align="center"> |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
456056
222
12288