From 4a6e46177e1cfd4087ac0800e99b376a6ee4ea29 Mon Sep 17 00:00:00 2001 From: imtaotao Date: Wed, 9 Oct 2024 14:16:23 +0800 Subject: [PATCH] chore: update deps --- demo/package.json | 2 +- package.json | 2 +- pnpm-lock.yaml | 16 ++++++++-------- src/utils.ts | 4 ++-- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/demo/package.json b/demo/package.json index da899fc6..0d41175d 100644 --- a/demo/package.json +++ b/demo/package.json @@ -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:*", diff --git a/package.json b/package.json index 5fc19e71..0bf954d7 100644 --- a/package.json +++ b/package.json @@ -90,7 +90,7 @@ "typescript": "^4.5.5" }, "dependencies": { - "aidly": "^1.8.0", + "aidly": "^1.9.0", "hooks-plugin": "^1.3.0" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b6a3b55b..3efa5447 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -9,8 +9,8 @@ importers: .: dependencies: aidly: - specifier: ^1.8.0 - version: 1.8.0 + specifier: ^1.9.0 + version: 1.9.0 hooks-plugin: specifier: ^1.3.0 version: 1.3.0 @@ -136,8 +136,8 @@ importers: specifier: ^1.1.2 version: 1.1.2(@types/react-dom@18.3.0)(@types/react@18.3.3)(react-dom@18.3.1(react@18.3.1))(react@18.3.1) aidly: - specifier: ^1.8.0 - version: 1.8.0 + specifier: ^1.9.0 + version: 1.9.0 class-variance-authority: specifier: ^0.7.0 version: 0.7.0 @@ -1759,8 +1759,8 @@ packages: '@vueuse/shared@11.0.1': resolution: {integrity: sha512-eAPf5CQB3HR0S76HqrhjBqFYstZfiHWZq8xF9EQmobGBkrhPfErJEhr8aMNQMqd6MkENIx2pblIEfJGlHpClug==} - aidly@1.8.0: - resolution: {integrity: sha512-7iujssLxRLdEnSDm6mgxKXVtLio44yGUvcSTLyNbMWGTUnuAuZntcgJmMl+BXE+Mm3R3KA5FtnFD0jJ9savyzA==} + aidly@1.9.0: + resolution: {integrity: sha512-OREY4n7SkhJZpxn94Exd4MeYni1MVPpHGe8dBxkuOSjqrlOTHchgjguaX8BNd0g3idoRNrkFBrmyJ+JWK+AROw==} algoliasearch@4.24.0: resolution: {integrity: sha512-bf0QV/9jVejssFBmz2HQLxUadxk574t4iwjCKp5E7NBzwKkrDEhKPISIIjAU/p6K5qDx3qoeh4+26zWN1jmw3g==} @@ -5576,7 +5576,7 @@ snapshots: - '@vue/composition-api' - vue - aidly@1.8.0: + aidly@1.9.0: dependencies: small-queue: 1.1.2 @@ -6407,7 +6407,7 @@ snapshots: hooks-plugin@1.3.0: dependencies: - aidly: 1.8.0 + aidly: 1.9.0 html-escaper@2.0.2: {} diff --git a/src/utils.ts b/src/utils.ts index 5a8fc9ed..433d19bb 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -1,4 +1,4 @@ -import { raf, once, mathExpreEvaluate } from 'aidly'; +import { raf, once, mathExprEvaluate } from 'aidly'; export const INTERNAL_FLAG = Symbol(); @@ -17,7 +17,7 @@ export const randomIdx = (founds: Set, 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,