Skip to content

Commit

Permalink
chore: update
Browse files Browse the repository at this point in the history
  • Loading branch information
zyyv committed Dec 20, 2023
1 parent de51093 commit c0ce9ad
Show file tree
Hide file tree
Showing 4 changed files with 694 additions and 528 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"editor.codeActionsOnSave": {
"source.fixAll.eslint": true
"source.fixAll.eslint": "explicit"
}
}
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,24 +19,24 @@
"magicAnimate": "esno scripts/magicAnimate.ts"
},
"devDependencies": {
"@antfu/eslint-config": "2.2.2",
"@babel/types": "^7.23.5",
"@antfu/eslint-config": "2.4.6",
"@babel/types": "^7.23.6",
"@types/fs-extra": "^11.0.4",
"@types/node": "^20.10.3",
"@types/node": "^20.10.5",
"@types/postcss-js": "^4.0.4",
"@unocss/eslint-plugin": "^0.58.0",
"bumpp": "^9.2.0",
"eslint": "^8.55.0",
"bumpp": "^9.2.1",
"eslint": "^8.56.0",
"esno": "^4.0.0",
"fs-extra": "^11.2.0",
"lint-staged": "^15.2.0",
"simple-git-hooks": "^2.9.0",
"typescript": "5.3.2",
"typescript": "5.3.3",
"unbuild": "^2.0.0",
"unocss": "^0.58.0",
"unocss-preset-useful": "workspace:*",
"vite": "^5.0.4",
"vitest": "^0.34.6"
"vite": "^5.0.10",
"vitest": "^1.1.0"
},
"simple-git-hooks": {
"pre-commit": "npx lint-staged"
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ export function isObject(val: unknown): val is Record<any, any> {

export function getKeyframes(css: string) {
const root = postcss.parse(css)
const obj = objectify(root)
const obj = objectify(root as any)

return Object.keys(obj).reduce<Record<string, Record<string, CSSObject>>>((acc, key) => {
if (key.startsWith('@keyframes'))
Expand Down
Loading

0 comments on commit c0ce9ad

Please sign in to comment.