@dcupl/cli 0.0.38-beta.0 → 0.0.38-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -2,11 +2,11 @@ import { DcuplGlobalQueryOptionsNew } from '@dcupl/common';
|
|
|
2
2
|
import { Dcupl } from '@dcupl/core';
|
|
3
3
|
import { AppLoaderProcessOptions } from '@dcupl/loader';
|
|
4
4
|
import { DcuplCliConfig } from '../../helper/config.helper';
|
|
5
|
-
export type QueryStatus = '
|
|
5
|
+
export type QueryStatus = 'idle' | 'ready' | 'error';
|
|
6
6
|
export declare class AppInstanceService {
|
|
7
7
|
config: DcuplCliConfig;
|
|
8
8
|
dcupl: Dcupl | undefined;
|
|
9
|
-
status:
|
|
9
|
+
status: QueryStatus;
|
|
10
10
|
query(query: DcuplGlobalQueryOptionsNew<any>): Promise<any>;
|
|
11
11
|
init(options: AppLoaderProcessOptions): Promise<any>;
|
|
12
12
|
}
|
|
@@ -11,7 +11,7 @@ const config_helper_1 = require("../../helper/config.helper");
|
|
|
11
11
|
let AppInstanceService = class AppInstanceService {
|
|
12
12
|
config;
|
|
13
13
|
dcupl;
|
|
14
|
-
status = '
|
|
14
|
+
status = 'idle';
|
|
15
15
|
async query(query) {
|
|
16
16
|
if (this.status !== 'ready') {
|
|
17
17
|
throw new common_1.BadRequestException('dcupl instance not initialized');
|
|
@@ -20,7 +20,7 @@ let AppInstanceService = class AppInstanceService {
|
|
|
20
20
|
return result;
|
|
21
21
|
}
|
|
22
22
|
async init(options) {
|
|
23
|
-
this.status = '
|
|
23
|
+
this.status = 'idle';
|
|
24
24
|
try {
|
|
25
25
|
const currentBasePath = (0, path_1.join)(process.cwd());
|
|
26
26
|
const configFile = (0, config_helper_1.getConfigFileValue)(currentBasePath);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"app-instance.service.js","sourceRoot":"","sources":["../../../../src/functions/serve/app-instance-api/app-instance.service.ts"],"names":[],"mappings":";;;;AACA,sCAAoC;AACpC,0CAAwE;AACxE,2CAAiE;AACjE,+BAA4B;AAC5B,0GAAuG;AACvG,8DAAoG;AAK7F,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IACtB,MAAM,CAAkB;IACxB,KAAK,CAAoB;IACzB,MAAM,
|
|
1
|
+
{"version":3,"file":"app-instance.service.js","sourceRoot":"","sources":["../../../../src/functions/serve/app-instance-api/app-instance.service.ts"],"names":[],"mappings":";;;;AACA,sCAAoC;AACpC,0CAAwE;AACxE,2CAAiE;AACjE,+BAA4B;AAC5B,0GAAuG;AACvG,8DAAoG;AAK7F,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;IACtB,MAAM,CAAkB;IACxB,KAAK,CAAoB;IACzB,MAAM,GAAgB,MAAM,CAAC;IAE7B,KAAK,CAAC,KAAK,CAAC,KAAsC;QACvD,IAAI,IAAI,CAAC,MAAM,KAAK,OAAO,EAAE;YAC3B,MAAM,IAAI,4BAAmB,CAAC,gCAAgC,CAAC,CAAC;SACjE;QACD,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,EAAE,KAAK,CAAC,KAAK,CAAC,CAAC;QACxC,OAAO,MAAM,CAAC;IAChB,CAAC;IAEM,KAAK,CAAC,IAAI,CAAC,OAAgC;QAChD,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI;YACF,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;YAC5C,MAAM,UAAU,GAAG,IAAA,kCAAkB,EAAC,eAAe,CAAC,CAAC;YACvD,MAAM,UAAU,GAAG,IAAA,kCAAkB,EAAC,eAAe,CAAC,CAAC;YAEvD,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,IAAI,CAAC,UAAU,CAAC,SAAS,IAAI,CAAC,UAAU,CAAC,MAAM,EAAE;gBAC7E,MAAM,IAAI,KAAK,CAAC,sCAAsC,CAAC,CAAC;aACzD;YAED,IAAI,CAAC,KAAK,GAAG,IAAI,YAAK,CAAC;gBACrB,MAAM,EAAE;oBACN,SAAS,EAAE,UAAU,CAAC,SAAS;oBAC/B,MAAM,EAAE,UAAU,CAAC,MAAM;iBAC1B;aACF,CAAC,CAAC;YAEH,MAAM,MAAM,GAAG,IAAI,uBAAc,EAAE,CAAC;YAEpC,MAAM,CAAC,cAAc,CAAC,qCAAqC,EAAE,yEAAmC,CAAC,CAAC;YAClG,IAAI,CAAC,KAAK,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;YAC7B,OAAO,CAAC,IAAI,CAAC,aAAa,CAAC,CAAC;YAC5B,MAAM,MAAM,CAAC,WAAW,EAAE,CAAC;YAC3B,OAAO,CAAC,OAAO,CAAC,aAAa,CAAC,CAAC;YAE/B,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;YACxB,MAAM,MAAM,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC;YAC9B,MAAM,IAAI,CAAC,KAAK,CAAC,IAAI,EAAE,CAAC;YACxB,OAAO,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;YAE3B,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;SACvB;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;YACnB,IAAI,CAAC,MAAM,GAAG,OAAO,CAAC;YACtB,MAAM,IAAI,4BAAmB,EAAE,CAAC;SACjC;IACH,CAAC;CACF,CAAA;AAnDY,kBAAkB;IAD9B,IAAA,mBAAU,GAAE;GACA,kBAAkB,CAmD9B;AAnDY,gDAAkB"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcupl/cli",
|
|
3
|
-
"version": "0.0.38-beta.
|
|
3
|
+
"version": "0.0.38-beta.1",
|
|
4
4
|
"description": "The official dcupl CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -35,9 +35,9 @@
|
|
|
35
35
|
"typescript": "^4.5.5"
|
|
36
36
|
},
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@dcupl/common": "0.0.81-beta.
|
|
39
|
-
"@dcupl/core": "0.0.81-beta.
|
|
40
|
-
"@dcupl/loader": "0.0.81-beta.
|
|
38
|
+
"@dcupl/common": "0.0.81-beta.1",
|
|
39
|
+
"@dcupl/core": "0.0.81-beta.1",
|
|
40
|
+
"@dcupl/loader": "0.0.81-beta.1",
|
|
41
41
|
"@nestjs/common": "^8.4.5",
|
|
42
42
|
"@nestjs/core": "^8.4.5",
|
|
43
43
|
"@nestjs/platform-express": "^8.4.5",
|