Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
imtaotao committed Oct 9, 2024
1 parent 7f9dbe1 commit 4a6e461
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 12 deletions.
2 changes: 1 addition & 1 deletion demo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@radix-ui/react-toggle": "^1.1.0",
"@radix-ui/react-toggle-group": "^1.1.0",
"@radix-ui/react-tooltip": "^1.1.2",
"aidly": "^1.8.0",
"aidly": "^1.9.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.1",
"danmu": "workspace:*",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@
"typescript": "^4.5.5"
},
"dependencies": {
"aidly": "^1.8.0",
"aidly": "^1.9.0",
"hooks-plugin": "^1.3.0"
}
}
16 changes: 8 additions & 8 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/utils.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { raf, once, mathExpreEvaluate } from 'aidly';
import { raf, once, mathExprEvaluate } from 'aidly';

export const INTERNAL_FLAG = Symbol();

Expand All @@ -17,7 +17,7 @@ export const randomIdx = (founds: Set<number>, rows: number): number => {
};

export const toNumber = (val: string, all: number) => {
return mathExpreEvaluate(val, {
return mathExprEvaluate(val, {
units: {
px: (n) => n,
'%': (n) => (Number(n) / 100) * all,
Expand Down

0 comments on commit 4a6e461

Please sign in to comment.