更新版本至 0.0.47,升级 @kevisual/remote-app 依赖至 0.0.4,并在 QueryApp 类中扩展 getApp 方法的参数以支持创建新应用

This commit is contained in:
2026-02-05 18:34:54 +08:00
parent 4e36d01fb1
commit e4990d5e3d
4 changed files with 22 additions and 9 deletions

View File

@@ -1,6 +1,6 @@
{
"name": "@kevisual/api",
"version": "0.0.45",
"version": "0.0.47",
"description": "",
"main": "mod.ts",
"scripts": {
@@ -23,7 +23,7 @@
"@kevisual/cache": "^0.0.5",
"@kevisual/code-builder": "^0.0.6",
"@kevisual/query": "^0.0.39",
"@kevisual/remote-app": "^0.0.2",
"@kevisual/remote-app": "^0.0.4",
"@kevisual/router": "^0.0.70",
"@kevisual/types": "^0.0.12",
"@kevisual/use-config": "^1.0.30",

10
pnpm-lock.yaml generated
View File

@@ -43,8 +43,8 @@ importers:
specifier: ^0.0.39
version: 0.0.39
'@kevisual/remote-app':
specifier: ^0.0.2
version: 0.0.2
specifier: ^0.0.4
version: 0.0.4
'@kevisual/router':
specifier: ^0.0.70
version: 0.0.70
@@ -120,8 +120,8 @@ packages:
'@kevisual/query@0.0.39':
resolution: {integrity: sha512-3UEPBIvtdykNkrby3hvrgrHdgd17Uq+Pnr4zs+JBzATkU2eKaOqtTUJqdyIEwuySCwzGTxrnlUzWP4tziDQDLQ==}
'@kevisual/remote-app@0.0.2':
resolution: {integrity: sha512-GzXpaGEy5Alt/SDiKtmjitAw2XT7cpvo+gjvJFGLQtixYQwd3KMVfObqjmny8z1nGnZ9aSuWDbxOJQYvLm8DXw==}
'@kevisual/remote-app@0.0.4':
resolution: {integrity: sha512-2yIlWY98pLCcxG+DJsqXXkd5YYEgymuOsyElH+31AoEPb7mlNREnYS81zN0KM9nvdSmU2G51vV4UVirJlYBZCQ==}
'@kevisual/router@0.0.20':
resolution: {integrity: sha512-uSwDYWh+kvAu6i0m0SJVgcLR/CYz7WvIWGz0nSF8Vg6smJuAgI+laHR4ESO8Fbz+Xn8bPHuSwmM//HHLMLx2FA==}
@@ -469,7 +469,7 @@ snapshots:
dependencies:
tslib: 2.8.1
'@kevisual/remote-app@0.0.2': {}
'@kevisual/remote-app@0.0.4': {}
'@kevisual/router@0.0.20':
dependencies:

View File

@@ -22,7 +22,15 @@ export class QueryApp extends BaseQuery {
data: data,
}, opts);
}
getApp(data: any, opts?: DataOpts) {
getApp(data: {
key?: string;
version?: string;
/**
* 当app不存在会创建一个新的
* 之后上传文件就好了,会执行检测任务
*/
create?: boolean;
}, opts?: DataOpts) {
return this.query.post({
path: 'app',
key: 'get',
@@ -39,6 +47,8 @@ export class QueryApp extends BaseQuery {
id?: string;
username?: string,
detect?: boolean,
appKey?: string;
version?: string;
}, opts?: DataOpts) {
return this.query.post({
path: 'app',

View File

@@ -1,2 +1,5 @@
import { RemoteApp } from '@Kevisual/remote-app'
import { RemoteApp } from '@kevisual/remote-app'
export {
RemoteApp
}