Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SylarLong committed Nov 7, 2023
1 parent ab7c368 commit 0fcf253
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "iztro-hook",
"version": "1.2.2",
"version": "1.2.3",
"description": "A hook of iztro。紫微斗数开源库iztro的react钩子函数。",
"main": "lib/index.js",
"types": "lib/index.d.ts",
Expand Down Expand Up @@ -39,7 +39,7 @@
},
"homepage": "https://docs.iztro.com",
"dependencies": {
"iztro": "2.0.3"
"iztro": "2.0.5"
},
"devDependencies": {
"@testing-library/react-hooks": "^8.0.1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ export function useIztro(input: IztroInput) {
}

if (birthdayType === 'lunar') {
const data = astro.astrolabeByLunarDate(birthday, birthTime, gender, isLeapMonth, fixLeap);
const data = astro.byLunar(birthday, birthTime, gender, isLeapMonth, fixLeap);

_setAstrolabe(data);

return;
}

const data = astro.astrolabeBySolarDate(birthday, birthTime, gender, fixLeap, lang);
const data = astro.bySolar(birthday, birthTime, gender, fixLeap, lang);

_setAstrolabe(data);
}, [birthTime, birthday, birthdayType, fixLeap, isLeapMonth, gender, lang]);
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2222,10 +2222,10 @@ istanbul-reports@^3.1.3:
html-escaper "^2.0.0"
istanbul-lib-report "^3.0.0"

iztro@2.0.3:
version "2.0.3"
resolved "https://registry.npmjs.org/iztro/-/iztro-2.0.3.tgz#74e2264c5b39360603d3692d6ed02a05ca64dbfa"
integrity sha512-Jqg+wqitzqSiiKmzcfeywxGd0Oq/JAIM0cLzxzdzkkCoJt05M9JminFNfnzsYhXdJ5uqDRDkIhgprobQL9N4Rw==
iztro@2.0.5:
version "2.0.5"
resolved "https://registry.npmjs.org/iztro/-/iztro-2.0.5.tgz#3a5895d0152c882c3d93013b4b2df03fac74053d"
integrity sha512-0scYrMZs0zZZmRXYTeqwHLZIqjuyZHC9OfVgGLf7AoGGatxOGPESJi/UQyNGGVvIR2BOBJ/TZjzOM0233C0FbA==
dependencies:
dayjs "^1.11.10"
i18next "^23.5.1"
Expand Down

0 comments on commit 0fcf253

Please sign in to comment.