Skip to content

Commit

Permalink
feat: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
SylarLong committed Dec 19, 2023
1 parent 9dd18be commit b52d1b8
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 17 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,8 @@
},
"dependencies": {
"classnames": "^2.3.2",
"iztro": "^2.0.8",
"iztro-hook": "^1.2.6",
"iztro": "^2.2.0",
"iztro-hook": "^1.2.8",
"lunar-lite": "^0.0.3"
},
"resolutions": {
Expand Down
4 changes: 2 additions & 2 deletions src/Izpalace/Izpalace.type.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
import FunctionalHoroscope from "iztro/lib/astro/FunctionalHoroscope";
import { IFunctionalHoroscope } from "iztro/lib/astro/FunctionalHoroscope";
import { IFunctionalPalace } from "iztro/lib/astro/FunctionalPalace";
import { HoroscopeItem, Scope } from "iztro/lib/data/types";
import { HeavenlyStemKey } from "iztro/lib/i18n";

export type IzpalaceProps = {
index: number;
focusedIndex?: number;
horoscope?: FunctionalHoroscope;
horoscope?: IFunctionalHoroscope;
showDecadalScope?: boolean;
showYearlyScope?: boolean;
showMonthlyScope?: boolean;
Expand Down
4 changes: 2 additions & 2 deletions src/IzpalaceCenter/IzpalaceCenter.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import "./IzpalaceCenter.css";
import { Line } from "./Line";
import { fixEarthlyBranchIndex } from "iztro/lib/utils";
import { Scope } from "iztro/lib/data/types";
import FunctionalHoroscope from "iztro/lib/astro/FunctionalHoroscope";
import { IFunctionalHoroscope } from "iztro/lib/astro/FunctionalHoroscope";
import { normalizeDateStr, solar2lunar } from "lunar-lite";
import { GenderName, kot, t } from "iztro/lib/i18n";
import { CHINESE_TIME } from "iztro/lib/data";
Expand All @@ -16,7 +16,7 @@ const MAX_DATETIME = new Date(2101, 0, 1).getTime();

type IzpalaceCenterProps = {
astrolabe?: FunctionalAstrolabe;
horoscope?: FunctionalHoroscope;
horoscope?: IFunctionalHoroscope;
horoscopeDate?: string | Date;
horoscopeHour?: number;
arrowIndex?: number;
Expand Down
3 changes: 1 addition & 2 deletions src/Iztrolabe/Iztrolabe.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,10 @@ export const Iztrolabe: React.FC<IztrolabeProps> = (props) => {
<div
className={classNames("iztro-astrolabe", "iztro-astrolabe-theme-default")}
>
{astrolabe?.palaces.map((palace, index) => {
{astrolabe?.palaces.map((palace) => {
return (
<Izpalace
key={palace.earthlyBranch}
index={index}
focusedIndex={focusedIndex}
onFocused={setFocusedIndex}
horoscope={horoscope}
Expand Down
18 changes: 9 additions & 9 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5761,17 +5761,17 @@ istanbul-reports@^3.1.4:
html-escaper "^2.0.0"
istanbul-lib-report "^3.0.0"

iztro-hook@^1.2.6:
version "1.2.6"
resolved "https://registry.npmjs.org/iztro-hook/-/iztro-hook-1.2.6.tgz#ea18ca53d2e78c315ea9647df9a38fec134a0629"
integrity sha512-qMCko1WmlE2sktHoJG+UGAu8sdAfK201k9B/z6/90r9DrlPR8I89jJIHzknC4VVY+NTt2BQfGpjVzYng54FIbQ==
iztro-hook@^1.2.8:
version "1.2.8"
resolved "https://registry.npmjs.org/iztro-hook/-/iztro-hook-1.2.8.tgz#e74d6de5fb60323bc21abac577f3c1330cda7116"
integrity sha512-m7UZd/B4KhuaepsOWwvbMDMozlVggKaxacknJHE+NYbgqo5FeIA74NWRPYH62wNYJm5n8dvl22trgDj+Lso7uA==
dependencies:
iztro "2.0.8"
iztro "2.2.0"

iztro@2.0.8, iztro@^2.0.8:
version "2.0.8"
resolved "https://registry.npmjs.org/iztro/-/iztro-2.0.8.tgz#8558ea9a21cdd3c4582d52b17ee18bc80339f8ab"
integrity sha512-QPy69ohmC/cX+9IQ4uHM01Idu9Lc/NxhRFf9aV72JHIPJmi3qY5foQmVCQshKziaZm9VTBcFtfvyLCeGLKkBog==
iztro@2.2.0, iztro@^2.2.0:
version "2.2.0"
resolved "https://registry.npmjs.org/iztro/-/iztro-2.2.0.tgz#9529b138c9f727c4ea17dbc4404091571f05e927"
integrity sha512-YnCtzhzKQoZwHRhPAUzP9ooU2mcQkvliQ6e5TwvKrzz4ooec3jaH5O4KqyqOpsLFcMTySgSt2WYmt3e9usgmYA==
dependencies:
dayjs "^1.11.10"
i18next "^23.5.1"
Expand Down

0 comments on commit b52d1b8

Please sign in to comment.