chore: update dependencies

This commit is contained in:
AIsouler
2024-03-04 23:45:20 +08:00
parent 86a5588238
commit 1bf6fd6838
3 changed files with 205 additions and 540 deletions

View File

@@ -21,24 +21,24 @@
"updateSubs": "tsx ./scripts/updateSubs.ts" "updateSubs": "tsx ./scripts/updateSubs.ts"
}, },
"devDependencies": { "devDependencies": {
"@commitlint/cli": "^18.6.1", "@commitlint/cli": "^19.0.3",
"@commitlint/config-conventional": "^18.6.2", "@commitlint/config-conventional": "^19.0.3",
"@commitlint/types": "^18.6.1", "@commitlint/types": "^19.0.3",
"@gkd-kit/selector": "0.0.21", "@gkd-kit/selector": "0.0.21",
"@types/lodash": "^4.14.202", "@types/lodash": "^4.14.202",
"@types/node": "^20.11.24", "@types/node": "^20.11.24",
"@typescript-eslint/eslint-plugin": "6.19.0", "@typescript-eslint/eslint-plugin": "7.1.0",
"@typescript-eslint/parser": "6.19.0", "@typescript-eslint/parser": "7.1.0",
"dayjs": "^1.11.10", "dayjs": "^1.11.10",
"eslint": "^8.57.0", "eslint": "^8.57.0",
"eslint-config-prettier": "9.1.0", "eslint-config-prettier": "9.1.0",
"eslint-define-config": "2.1.0", "eslint-define-config": "2.1.0",
"husky": "^8.0.3", "husky": "^9.0.11",
"json5": "^2.2.3", "json5": "^2.2.3",
"lint-staged": "^15.2.2", "lint-staged": "^15.2.2",
"lodash": "^4.17.21", "lodash": "^4.17.21",
"picocolors": "^1.0.0", "picocolors": "^1.0.0",
"pinyin-pro": "3.19.2", "pinyin-pro": "3.19.6",
"prettier": "^3.2.5", "prettier": "^3.2.5",
"tsx": "^4.7.1", "tsx": "^4.7.1",
"typescript": "^5.3.3" "typescript": "^5.3.3"

727
pnpm-lock.yaml generated

File diff suppressed because it is too large Load Diff

View File

@@ -1,7 +1,7 @@
import { CommonSelector } from '@gkd-kit/selector'; import { MultiplatformSelector } from '@gkd-kit/selector';
export const parseSelector = (source: string) => { export const parseSelector = (source: string) => {
const selector = CommonSelector.Companion.parse(source); const selector = MultiplatformSelector.Companion.parse(source);
selector.propertyNames.forEach((name: string) => { selector.propertyNames.forEach((name: string) => {
if (!allowPropertyNames.has(name)) { if (!allowPropertyNames.has(name)) {
throw new Error(`Property ${name} is not allowed in selector`); throw new Error(`Property ${name} is not allowed in selector`);