Comparing version 1.2.2 to 1.2.3
@@ -10,2 +10,14 @@ # 紫微斗数 @sylarlong/astro | ||
## v1.2.3 | ||
- 🛠️ 修复(fix) | ||
🇨🇳 | ||
- 修复运限索引计算错误 #36 | ||
🇺🇸 | ||
- fix wrong horoscope indexes #36 | ||
## v1.2.2 | ||
@@ -12,0 +24,0 @@ |
@@ -84,5 +84,5 @@ "use strict"; | ||
data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)($.rawDates.chineseDate.hourly[1])) + | ||
data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)(monthly[1]))); | ||
(0, utils_1.fixEarthlyBranchIndex)(monthly[1])); | ||
// 获取流日索引 | ||
dailyIndex = (monthlyIndex + _date.lunarDay - 1) % 12; | ||
dailyIndex = (0, utils_1.fixIndex)(monthlyIndex + _date.lunarDay - 1); | ||
// 获取流时索引 | ||
@@ -89,0 +89,0 @@ hourlyIndex = (0, utils_1.fixIndex)(dailyIndex + data_1.EARTHLY_BRANCHES.indexOf((0, i18n_1.kot)(hourly[1]))); |
{ | ||
"name": "iztro", | ||
"version": "1.2.2", | ||
"version": "1.2.3", | ||
"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", |
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
348973
161
8888