diff --git a/package.json b/package.json index 97efa9dc8..9d0456adf 100644 --- a/package.json +++ b/package.json @@ -29,7 +29,7 @@ "devDependencies": { "@142vip/fairy-cli": "^0.0.3-alpha.11", "@142vip/release-version": "^0.0.1-alpha.9", - "@142vip/utils": "0.0.1-alpha.4", + "@142vip/utils": "^0.0.1-alpha.5", "@antfu/eslint-config": "^2.27.3", "@vue/repl": "^4.3.1", "@vuepress/bundler-vite": "2.0.0-rc.15", @@ -37,6 +37,7 @@ "eslint": "8.55.0", "hls.js": "^1.5.13", "mermaid": "^10.9.1", + "only-allow": "^1.2.1", "reveal.js": "^5.1.0", "simple-git-hooks": "^2.11.1", "typescript": "^5.5.4", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 62a357418..19eca8b11 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -15,8 +15,8 @@ importers: specifier: ^0.0.1-alpha.9 version: 0.0.1-alpha.9 '@142vip/utils': - specifier: 0.0.1-alpha.4 - version: 0.0.1-alpha.4 + specifier: ^0.0.1-alpha.5 + version: 0.0.1-alpha.5 '@antfu/eslint-config': specifier: ^2.27.3 version: 2.27.3(@typescript-eslint/utils@8.6.0(eslint@8.55.0)(typescript@5.6.2))(@vue/compiler-sfc@3.5.8)(eslint-plugin-format@0.1.2(eslint@8.55.0))(eslint@8.55.0)(typescript@5.6.2) @@ -38,6 +38,9 @@ importers: mermaid: specifier: ^10.9.1 version: 10.9.1 + only-allow: + specifier: ^1.2.1 + version: 1.2.1 reveal.js: specifier: ^5.1.0 version: 5.1.0 @@ -156,8 +159,8 @@ packages: resolution: {integrity: sha512-AzeWlLpD/M6KKqygywKLx0mNOensWN8VJ2q3Bk+ffWwXjdsh/pR1goHd1cATbYwuFBEVlcIRwxRSDNupSzKi4Q==} engines: {node: '>=16.0.0'} - '@142vip/utils@0.0.1-alpha.4': - resolution: {integrity: sha512-taq4Ocqoq9ac28MyfFJkw3YuvXGdu/TcMABXcwW3pmG2x91+3K0hHNnp8wQi0KPoLvOoz/RtyGhShrodnIEZ1w==} + '@142vip/utils@0.0.1-alpha.5': + resolution: {integrity: sha512-w+2zcFBGwO+tfKaSjWuOrK8HUgHptF4yCHIKqPyC62W9ZYsH2eHuaLqj9fMrOK56/Gp+1gyVXijeKOkiN/QxUA==} engines: {node: '>=16.0.0'} '@antfu/eslint-config@2.27.3': @@ -3821,6 +3824,10 @@ packages: oniguruma-to-js@0.4.3: resolution: {integrity: sha512-X0jWUcAlxORhOqqBREgPMgnshB7ZGYszBNspP+tS9hPD3l13CdaXcHbgImoHUHlrvGx/7AvFEkTRhAGYh+jzjQ==} + only-allow@1.2.1: + resolution: {integrity: sha512-M7CJbmv7UCopc0neRKdzfoGWaVZC+xC1925GitKH9EAqYFzX9//25Q7oX4+jw0tiCCj+t5l6VZh8UPH23NZkMA==} + hasBin: true + only@0.0.2: resolution: {integrity: sha512-Fvw+Jemq5fjjyWz6CpKx6w9s7xxqo3+JCyM0WXWeCSOboZ8ABkyvP8ID4CZuChA/wxSx+XSJmdOm8rGVyJ1hdQ==} @@ -5220,6 +5227,10 @@ packages: which-module@2.0.1: resolution: {integrity: sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ==} + which-pm-runs@1.1.0: + resolution: {integrity: sha512-n1brCuqClxfFfq/Rb0ICg9giSZqCS+pLtccdag6C2HyufBrh3fBOiy9nb6ggRMvWOVH5GrdJskj5iGTZNxd7SA==} + engines: {node: '>=4'} + which@2.0.2: resolution: {integrity: sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==} engines: {node: '>= 8'} @@ -5380,7 +5391,7 @@ snapshots: dayjs: 1.11.13 inquirer: 7.3.3 - '@142vip/utils@0.0.1-alpha.4': + '@142vip/utils@0.0.1-alpha.5': dependencies: '@inquirer/confirm': 3.2.0 ansi-colors: 4.1.3 @@ -9531,6 +9542,10 @@ snapshots: dependencies: regex: 4.3.2 + only-allow@1.2.1: + dependencies: + which-pm-runs: 1.1.0 + only@0.0.2: {} open@9.1.0: @@ -10815,6 +10830,8 @@ snapshots: which-module@2.0.1: {} + which-pm-runs@1.1.0: {} + which@2.0.2: dependencies: isexe: 2.0.0