@dcupl/cli 1.2.2 → 1.3.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.
- package/dist/functions/generate/files/generate.helper.d.ts +2 -0
- package/dist/functions/generate/files/generate.helper.js +19 -1
- package/dist/functions/generate/files/generate.helper.js.map +1 -1
- package/dist/functions/serve/dev-server/dev-server.controller.d.ts +6 -3
- package/dist/functions/serve/dev-server/dev-server.controller.js +28 -8
- package/dist/functions/serve/dev-server/dev-server.controller.js.map +1 -1
- package/dist/functions/serve/dev-server/dev-server.service.d.ts +11 -28
- package/dist/functions/serve/dev-server/dev-server.service.js +107 -59
- package/dist/functions/serve/dev-server/dev-server.service.js.map +1 -1
- package/dist/functions/serve/dev-server/types/file.types.d.ts +17 -0
- package/dist/functions/serve/dev-server/types/file.types.js +3 -0
- package/dist/functions/serve/dev-server/types/file.types.js.map +1 -0
- package/dist/functions/serve/main.js +13 -3
- package/dist/functions/serve/main.js.map +1 -1
- package/dist/functions/testing/testing-helper.d.ts +0 -1
- package/files/common/.vscode/settings.json +5 -1
- package/files/dev-server/swagger.txt +81 -0
- package/files/starters/starter_01/package.json +1 -1
- package/package.json +4 -4
|
@@ -8,3 +8,5 @@ export declare const getModelDefinitions: () => ModelDefinition[] | undefined;
|
|
|
8
8
|
export declare const writeFile: (pathToFile: string, content: string) => string;
|
|
9
9
|
export declare const readFile: (pathToFile: string) => string | null;
|
|
10
10
|
export declare const deleteFile: (pathToFile: string) => true | null;
|
|
11
|
+
export declare const moveFile: (fromPath: string, toPath: string) => true | null;
|
|
12
|
+
export declare const createFolder: (path: string) => boolean;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteFile = exports.readFile = exports.writeFile = exports.getModelDefinitions = exports.loadModelFile = exports.getAllModelFilePaths = exports.loadModels = exports.loadLoaderConfig = void 0;
|
|
3
|
+
exports.createFolder = exports.moveFile = exports.deleteFile = exports.readFile = exports.writeFile = exports.getModelDefinitions = exports.loadModelFile = exports.getAllModelFilePaths = exports.loadModels = exports.loadLoaderConfig = void 0;
|
|
4
4
|
const fs_extra_1 = require("fs-extra");
|
|
5
5
|
const lodash_1 = require("lodash");
|
|
6
6
|
const path_1 = require("path");
|
|
@@ -103,4 +103,22 @@ const deleteFile = (pathToFile) => {
|
|
|
103
103
|
return true;
|
|
104
104
|
};
|
|
105
105
|
exports.deleteFile = deleteFile;
|
|
106
|
+
const moveFile = (fromPath, toPath) => {
|
|
107
|
+
const currentBasePath = (0, path_1.join)(process.cwd());
|
|
108
|
+
const fromBasePath = (0, path_1.join)(currentBasePath, fromPath);
|
|
109
|
+
const toBasePath = (0, path_1.join)(currentBasePath, toPath);
|
|
110
|
+
if (!(0, fs_extra_1.pathExistsSync)(fromBasePath)) {
|
|
111
|
+
return null;
|
|
112
|
+
}
|
|
113
|
+
(0, fs_extra_1.moveSync)(fromBasePath, toBasePath);
|
|
114
|
+
return true;
|
|
115
|
+
};
|
|
116
|
+
exports.moveFile = moveFile;
|
|
117
|
+
const createFolder = (path) => {
|
|
118
|
+
const currentBasePath = (0, path_1.join)(process.cwd());
|
|
119
|
+
const fileBasePath = (0, path_1.join)(currentBasePath, path);
|
|
120
|
+
(0, fs_extra_1.ensureDirSync)(fileBasePath);
|
|
121
|
+
return true;
|
|
122
|
+
};
|
|
123
|
+
exports.createFolder = createFolder;
|
|
106
124
|
//# sourceMappingURL=generate.helper.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generate.helper.js","sourceRoot":"","sources":["../../../../src/functions/generate/files/generate.helper.ts"],"names":[],"mappings":";;;AACA,
|
|
1
|
+
{"version":3,"file":"generate.helper.js","sourceRoot":"","sources":["../../../../src/functions/generate/files/generate.helper.ts"],"names":[],"mappings":";;;AACA,uCASkB;AAClB,mCAAwC;AACxC,+BAA4B;AAE5B,8DAAgE;AAGzD,MAAM,gB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G,IAAA,WAAI,EAAC,eAAe,EAAE,IAAI,CAAC,CAAC;IAEjD,IAAA,wBAAa,EAAC,YAAY,CAAC,CAAC;IAC5B,OAAO,IAAI,CAAC;AACd,CAAC,CAAC;AAPW,QAAA,YAAY,gBAOvB"}
|
|
@@ -1,17 +1,20 @@
|
|
|
1
1
|
import { TestRunnerOptions } from '@dcupl/common';
|
|
2
2
|
import { DcuplCliConfig } from '../../helper/config.helper';
|
|
3
|
-
import { DevServerService
|
|
3
|
+
import { DevServerService } from './dev-server.service';
|
|
4
|
+
import { CreateFolderBody, DeleteFileBody, MoveFileBody, ReadFileBody, WriteFileBody } from './types/file.types';
|
|
4
5
|
export declare class DevServerController {
|
|
5
6
|
private readonly devServerService;
|
|
6
7
|
constructor(devServerService: DevServerService);
|
|
7
8
|
hello(): string;
|
|
8
9
|
config(): DcuplCliConfig;
|
|
9
|
-
writeFile(data: WriteFileBody): string;
|
|
10
10
|
getFile(data: ReadFileBody): string | null;
|
|
11
|
+
writeFile(data: WriteFileBody): string;
|
|
11
12
|
deleteFiles(data: DeleteFileBody): true | null;
|
|
13
|
+
moveFile(data: MoveFileBody): true | null;
|
|
14
|
+
createFolder(data: CreateFolderBody): boolean;
|
|
12
15
|
listFiles(search?: string): Promise<{
|
|
13
16
|
list: string[];
|
|
14
|
-
nested: import("
|
|
17
|
+
nested: import("@dcupl/common").ApiFiles.FileTreeItem[];
|
|
15
18
|
}>;
|
|
16
19
|
subscribe(): any;
|
|
17
20
|
runTests(data: TestRunnerOptions): Promise<unknown>;
|
|
@@ -12,17 +12,23 @@ let DevServerController = class DevServerController {
|
|
|
12
12
|
return 'Dcupl CLI Server';
|
|
13
13
|
}
|
|
14
14
|
config() {
|
|
15
|
-
return this.devServerService.
|
|
16
|
-
}
|
|
17
|
-
writeFile(data) {
|
|
18
|
-
return this.devServerService.writeFile(data);
|
|
15
|
+
return this.devServerService.config;
|
|
19
16
|
}
|
|
20
17
|
getFile(data) {
|
|
21
18
|
return this.devServerService.getFile(data);
|
|
22
19
|
}
|
|
20
|
+
writeFile(data) {
|
|
21
|
+
return this.devServerService.writeFile(data);
|
|
22
|
+
}
|
|
23
23
|
deleteFiles(data) {
|
|
24
24
|
return this.devServerService.deleteFile(data);
|
|
25
25
|
}
|
|
26
|
+
moveFile(data) {
|
|
27
|
+
return this.devServerService.moveFile(data);
|
|
28
|
+
}
|
|
29
|
+
createFolder(data) {
|
|
30
|
+
return this.devServerService.createFolder(data);
|
|
31
|
+
}
|
|
26
32
|
listFiles(search) {
|
|
27
33
|
return this.devServerService.listFiles(search);
|
|
28
34
|
}
|
|
@@ -56,19 +62,19 @@ tslib_1.__decorate([
|
|
|
56
62
|
tslib_1.__metadata("design:returntype", Object)
|
|
57
63
|
], DevServerController.prototype, "config", null);
|
|
58
64
|
tslib_1.__decorate([
|
|
59
|
-
(0, common_1.Post)('files/
|
|
65
|
+
(0, common_1.Post)('files/read'),
|
|
60
66
|
tslib_1.__param(0, (0, common_1.Body)()),
|
|
61
67
|
tslib_1.__metadata("design:type", Function),
|
|
62
68
|
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
63
69
|
tslib_1.__metadata("design:returntype", void 0)
|
|
64
|
-
], DevServerController.prototype, "
|
|
70
|
+
], DevServerController.prototype, "getFile", null);
|
|
65
71
|
tslib_1.__decorate([
|
|
66
|
-
(0, common_1.Post)('files/
|
|
72
|
+
(0, common_1.Post)('files/write'),
|
|
67
73
|
tslib_1.__param(0, (0, common_1.Body)()),
|
|
68
74
|
tslib_1.__metadata("design:type", Function),
|
|
69
75
|
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
70
76
|
tslib_1.__metadata("design:returntype", void 0)
|
|
71
|
-
], DevServerController.prototype, "
|
|
77
|
+
], DevServerController.prototype, "writeFile", null);
|
|
72
78
|
tslib_1.__decorate([
|
|
73
79
|
(0, common_1.Post)('files/delete'),
|
|
74
80
|
tslib_1.__param(0, (0, common_1.Body)()),
|
|
@@ -76,6 +82,20 @@ tslib_1.__decorate([
|
|
|
76
82
|
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
77
83
|
tslib_1.__metadata("design:returntype", void 0)
|
|
78
84
|
], DevServerController.prototype, "deleteFiles", null);
|
|
85
|
+
tslib_1.__decorate([
|
|
86
|
+
(0, common_1.Post)('files/move'),
|
|
87
|
+
tslib_1.__param(0, (0, common_1.Body)()),
|
|
88
|
+
tslib_1.__metadata("design:type", Function),
|
|
89
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
90
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
91
|
+
], DevServerController.prototype, "moveFile", null);
|
|
92
|
+
tslib_1.__decorate([
|
|
93
|
+
(0, common_1.Post)('files/createFolder'),
|
|
94
|
+
tslib_1.__param(0, (0, common_1.Body)()),
|
|
95
|
+
tslib_1.__metadata("design:type", Function),
|
|
96
|
+
tslib_1.__metadata("design:paramtypes", [Object]),
|
|
97
|
+
tslib_1.__metadata("design:returntype", void 0)
|
|
98
|
+
], DevServerController.prototype, "createFolder", null);
|
|
79
99
|
tslib_1.__decorate([
|
|
80
100
|
(0, common_1.Get)('files/list'),
|
|
81
101
|
tslib_1.__param(0, (0, common_1.Query)('search')),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.controller.js","sourceRoot":"","sources":["../../../../src/functions/serve/dev-server/dev-server.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAyE;AAGzE,
|
|
1
|
+
{"version":3,"file":"dev-server.controller.js","sourceRoot":"","sources":["../../../../src/functions/serve/dev-server/dev-server.controller.ts"],"names":[],"mappings":";;;;AAAA,2CAAyE;AAGzE,6DAAwD;AAIjD,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YAA6B,gBAAkC;QAAlC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAAG,CAAC;IAGnE,KAAK;QACH,OAAO,kBAAkB,CAAC;IAC5B,CAAC;IAGD,MAAM;QACJ,OAAO,IAAI,CAAC,gBAAgB,CAAC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;IADC,IAAA,aAAI,EAAC,YAAY,CAAC;IACV,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;kDAEd;AAGD;IADC,IAAA,aAAI,EAAC,aAAa,CAAC;IACT,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;oDAEhB;AAGD;IADC,IAAA,aAAI,EAAC,cAAc,CAAC;IACR,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;sDAElB;AAGD;IADC,IAAA,aAAI,EAAC,YAAY,CAAC;IACT,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;mDAEf;AAGD;IADC,IAAA,aAAI,EAAC,oBAAoB,CAAC;IACb,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;uDAEnB;AAGD;IADC,IAAA,YAAG,EAAC,YAAY,CAAC;IACP,mBAAA,IAAA,cAAK,EAAC,QAAQ,CAAC,CAAA;;;;oDAEzB;AAGD;IADC,IAAA,YAAG,EAAC,SAAS,CAAC;;;;oDAGd;AAGD;IADC,IAAA,aAAI,EAAC,WAAW,CAAC;IACR,mBAAA,IAAA,aAAI,GAAE,CAAA;;;;mDAEf;AAGD;IADC,IAAA,YAAG,EAAC,eAAe,CAAC;;;;qDAGpB;AAGD;IADC,IAAA,YAAG,EAAC,cAAc,CAAC;;;;wDAGnB;AAGD;IADC,IAAA,YAAG,EAAC,cAAc,CAAC;;;;8DAGnB;8BAlEU,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;6CAEoC,qCAAgB;GADpD,mBAAmB,CAmE/B"}
|
|
@@ -1,44 +1,27 @@
|
|
|
1
1
|
import { DcuplCliConfig } from '../../helper/config.helper';
|
|
2
2
|
import { TestRunner } from '../../testing/testing';
|
|
3
|
-
import { TestRunnerOptions } from '@dcupl/common';
|
|
4
|
-
|
|
5
|
-
export type FileTreeItem = {
|
|
6
|
-
path: string;
|
|
7
|
-
fullPath: string;
|
|
8
|
-
type: TreeItemType;
|
|
9
|
-
root: boolean;
|
|
10
|
-
children: FileTreeItem[];
|
|
11
|
-
};
|
|
12
|
-
export type ListFilesResponse = {
|
|
13
|
-
list: string[];
|
|
14
|
-
nested: FileTreeItem[];
|
|
15
|
-
};
|
|
16
|
-
export type WriteFileBody = {
|
|
17
|
-
path: string;
|
|
18
|
-
content: string;
|
|
19
|
-
};
|
|
20
|
-
export type ReadFileBody = {
|
|
21
|
-
path: string;
|
|
22
|
-
};
|
|
23
|
-
export type DeleteFileBody = {
|
|
24
|
-
path: string;
|
|
25
|
-
};
|
|
3
|
+
import { ApiFiles, TestRunnerOptions } from '@dcupl/common';
|
|
4
|
+
import { CreateFolderBody, DeleteFileBody, MoveFileBody, ReadFileBody, WriteFileBody } from './types/file.types';
|
|
26
5
|
export declare class DevServerService {
|
|
27
|
-
|
|
6
|
+
private _config;
|
|
28
7
|
runner: TestRunner;
|
|
29
|
-
|
|
30
|
-
watchFiles(): import("rxjs").Observable<unknown
|
|
8
|
+
get config(): DcuplCliConfig;
|
|
9
|
+
watchFiles(): import("rxjs").Observable<unknown> | undefined;
|
|
31
10
|
writeFile(data: WriteFileBody): string;
|
|
11
|
+
createFolder(data: CreateFolderBody): boolean;
|
|
32
12
|
listFiles(search?: string): Promise<{
|
|
33
13
|
list: string[];
|
|
34
|
-
nested: FileTreeItem[];
|
|
14
|
+
nested: ApiFiles.FileTreeItem[];
|
|
35
15
|
}>;
|
|
36
16
|
private getFilesAsFlatList;
|
|
17
|
+
private getFilesAndFoldersAsNested;
|
|
18
|
+
private createFileTree;
|
|
37
19
|
runTests(data: TestRunnerOptions): Promise<unknown>;
|
|
38
20
|
getTestConfigs(): Promise<import("@dcupl/common").DcuplApplicationTestingConfig[] | undefined>;
|
|
39
21
|
getTestLoader(): Promise<import("@dcupl/common").DcuplTestScenario[] | undefined>;
|
|
40
|
-
private getNestedTreeStructure;
|
|
41
22
|
getFile(data: DeleteFileBody): string | null;
|
|
42
23
|
deleteFile(data: ReadFileBody): true | null;
|
|
24
|
+
moveFile(data: MoveFileBody): true | null;
|
|
43
25
|
private getFiles;
|
|
26
|
+
private isInScope;
|
|
44
27
|
}
|
|
@@ -11,18 +11,20 @@ const generate_helper_1 = require("../../generate/files/generate.helper");
|
|
|
11
11
|
const glob_1 = require("glob");
|
|
12
12
|
const testing_1 = require("../../testing/testing");
|
|
13
13
|
const kleur_1 = require("kleur");
|
|
14
|
+
const lodash_1 = require("lodash");
|
|
15
|
+
const fs_extra_1 = require("fs-extra");
|
|
14
16
|
const currentBasePath = (0, path_1.join)(process.cwd());
|
|
15
17
|
let DevServerService = class DevServerService {
|
|
16
18
|
constructor() {
|
|
17
19
|
this.runner = new testing_1.TestRunner();
|
|
18
20
|
}
|
|
19
|
-
|
|
20
|
-
if (this.
|
|
21
|
-
return this.
|
|
21
|
+
get config() {
|
|
22
|
+
if (this._config) {
|
|
23
|
+
return this._config;
|
|
22
24
|
}
|
|
23
25
|
const configFile = (0, config_helper_1.getConfigFileValue)(currentBasePath);
|
|
24
26
|
if (configFile) {
|
|
25
|
-
this.
|
|
27
|
+
this._config = configFile;
|
|
26
28
|
return configFile;
|
|
27
29
|
}
|
|
28
30
|
else {
|
|
@@ -31,36 +33,101 @@ let DevServerService = class DevServerService {
|
|
|
31
33
|
}
|
|
32
34
|
watchFiles() {
|
|
33
35
|
const subject = new rxjs_1.Subject();
|
|
34
|
-
|
|
35
|
-
|
|
36
|
+
const baseFolderName = this.config?.baseFolder || 'dcupl';
|
|
37
|
+
const baseFolderPath = (0, path_1.join)(currentBasePath, baseFolderName);
|
|
38
|
+
if (!(0, fs_extra_1.existsSync)(baseFolderPath)) {
|
|
39
|
+
console.log(`${(0, kleur_1.blue)((0, kleur_1.bold)('INFO'))} ${(0, kleur_1.underline)('dcupl')} folder not found at ${baseFolderPath}`);
|
|
40
|
+
return;
|
|
41
|
+
}
|
|
42
|
+
(0, fs_1.watch)(baseFolderPath, { recursive: true }, (_event, fileName) => {
|
|
43
|
+
const event = _event;
|
|
44
|
+
const path = fileName?.toString() || '';
|
|
45
|
+
const data = {
|
|
46
|
+
data: {
|
|
47
|
+
projectId: this.config.projectId,
|
|
48
|
+
triggerType: 'dev-server',
|
|
49
|
+
data: { event, path },
|
|
50
|
+
},
|
|
51
|
+
};
|
|
36
52
|
subject.next(data);
|
|
37
53
|
});
|
|
38
54
|
return subject.asObservable().pipe((0, rxjs_1.debounceTime)(300));
|
|
39
55
|
}
|
|
40
56
|
writeFile(data) {
|
|
41
|
-
const config = this.
|
|
57
|
+
const config = this.config;
|
|
42
58
|
return (0, generate_helper_1.writeFile)((0, path_1.join)(config.baseFolder, data.path), data.content);
|
|
43
59
|
}
|
|
60
|
+
createFolder(data) {
|
|
61
|
+
const config = this.config;
|
|
62
|
+
return (0, generate_helper_1.createFolder)((0, path_1.join)(config.baseFolder, data.path));
|
|
63
|
+
}
|
|
44
64
|
async listFiles(search) {
|
|
45
65
|
let list = await this.getFilesAsFlatList();
|
|
46
66
|
if (search) {
|
|
47
67
|
list = list.filter((item) => item.includes(`${search}`));
|
|
48
68
|
}
|
|
49
|
-
const nested = this.
|
|
69
|
+
const nested = await this.getFilesAndFoldersAsNested();
|
|
50
70
|
return {
|
|
51
71
|
list,
|
|
52
72
|
nested: nested,
|
|
53
73
|
};
|
|
54
74
|
}
|
|
55
75
|
async getFilesAsFlatList() {
|
|
56
|
-
const includes = ['
|
|
57
|
-
const config = this.
|
|
76
|
+
const includes = ['**/*'];
|
|
77
|
+
const config = this.config;
|
|
58
78
|
const includedFiles = await Promise.all(includes.map((pattern) => this.getFiles(pattern, config.baseFolder)));
|
|
59
|
-
const list = includedFiles
|
|
79
|
+
const list = includedFiles
|
|
80
|
+
.flat()
|
|
81
|
+
.filter((item) => (0, fs_1.statSync)(item).isFile())
|
|
82
|
+
.map((filePath) => {
|
|
60
83
|
return filePath.slice(config.baseFolder.length + 1);
|
|
61
84
|
});
|
|
62
85
|
return list;
|
|
63
86
|
}
|
|
87
|
+
async getFilesAndFoldersAsNested() {
|
|
88
|
+
const includes = ['**/*'];
|
|
89
|
+
const config = this.config;
|
|
90
|
+
const includedFiles = await Promise.all(includes.map((pattern) => this.getFiles(pattern, config.baseFolder)));
|
|
91
|
+
const cleanFiles = includedFiles.flat().map((filePath) => {
|
|
92
|
+
return filePath.slice(config.baseFolder.length + 1);
|
|
93
|
+
});
|
|
94
|
+
const fileTree = this.createFileTree(cleanFiles);
|
|
95
|
+
return fileTree;
|
|
96
|
+
}
|
|
97
|
+
createFileTree(paths) {
|
|
98
|
+
const config = this.config;
|
|
99
|
+
const root = {
|
|
100
|
+
path: '',
|
|
101
|
+
fullPath: '',
|
|
102
|
+
type: 'dir',
|
|
103
|
+
root: true,
|
|
104
|
+
children: [],
|
|
105
|
+
};
|
|
106
|
+
paths.forEach((path) => {
|
|
107
|
+
const parts = path.split('/');
|
|
108
|
+
let current = root;
|
|
109
|
+
parts.forEach((part, index) => {
|
|
110
|
+
let child = current.children.find((child) => child.path === part);
|
|
111
|
+
const fullPath = current.fullPath ? `${current.fullPath}/${part}` : part;
|
|
112
|
+
const fullPathIncludingBaseFolder = (0, path_1.join)(config.baseFolder, path);
|
|
113
|
+
const type = (0, fs_1.statSync)(fullPathIncludingBaseFolder).isDirectory() ? 'dir' : 'file';
|
|
114
|
+
if (!child) {
|
|
115
|
+
child = {
|
|
116
|
+
path: part,
|
|
117
|
+
fullPath: fullPath,
|
|
118
|
+
type: type,
|
|
119
|
+
root: false,
|
|
120
|
+
children: [],
|
|
121
|
+
};
|
|
122
|
+
current.children.push(child);
|
|
123
|
+
current.children = (0, lodash_1.orderBy)(current.children, ['type', 'path']);
|
|
124
|
+
}
|
|
125
|
+
current = child;
|
|
126
|
+
});
|
|
127
|
+
});
|
|
128
|
+
root.children.map((child) => (child.root = true));
|
|
129
|
+
return root.children;
|
|
130
|
+
}
|
|
64
131
|
async runTests(data) {
|
|
65
132
|
return this.runner.runTests(data);
|
|
66
133
|
}
|
|
@@ -76,58 +143,35 @@ let DevServerService = class DevServerService {
|
|
|
76
143
|
try {
|
|
77
144
|
return this.runner.getTestLoader();
|
|
78
145
|
}
|
|
79
|
-
catch (err) {
|
|
80
|
-
console.log('could not load test loader configuration. Try running:');
|
|
81
|
-
console.log('');
|
|
82
|
-
console.log(`${(0, kleur_1.bold)('npm i chai @dcupl/core @dcupl/common @dcupl/loader')} to add your dependencies`);
|
|
83
|
-
console.log(`${(0, kleur_1.bold)('dcupl generate test-setup')} to create a test loader configuration`);
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
getNestedTreeStructure(files) {
|
|
87
|
-
const nested = [];
|
|
88
|
-
const add = (filePath, parent, tree, isRoot) => {
|
|
89
|
-
const elements = filePath.split('/');
|
|
90
|
-
const currentElement = elements.shift();
|
|
91
|
-
let fullPath = '';
|
|
92
|
-
if (parent) {
|
|
93
|
-
fullPath += parent.fullPath + '/' + currentElement;
|
|
94
|
-
}
|
|
95
|
-
else {
|
|
96
|
-
fullPath = currentElement;
|
|
97
|
-
}
|
|
98
|
-
const type = elements.length ? 'dir' : 'file';
|
|
99
|
-
const item = {
|
|
100
|
-
fullPath: fullPath,
|
|
101
|
-
type: type,
|
|
102
|
-
path: currentElement,
|
|
103
|
-
root: isRoot,
|
|
104
|
-
children: [],
|
|
105
|
-
};
|
|
106
|
-
let idx = tree.findIndex((t) => t.path === item.path);
|
|
107
|
-
if (idx === -1) {
|
|
108
|
-
tree.push(item);
|
|
109
|
-
idx = tree.length - 1;
|
|
110
|
-
}
|
|
111
|
-
const children = tree[idx].children;
|
|
112
|
-
tree.sort((a) => {
|
|
113
|
-
if (a.type === 'dir')
|
|
114
|
-
return -1;
|
|
115
|
-
return 1;
|
|
116
|
-
});
|
|
117
|
-
if (elements.length) {
|
|
118
|
-
add(elements.join('/'), item, children, false);
|
|
119
|
-
}
|
|
120
|
-
};
|
|
121
|
-
files.forEach((item) => add(item, undefined, nested, true));
|
|
122
|
-
return nested;
|
|
146
|
+
catch (err) { }
|
|
123
147
|
}
|
|
124
148
|
getFile(data) {
|
|
125
|
-
const config = this.
|
|
126
|
-
|
|
149
|
+
const config = this.config;
|
|
150
|
+
const pathToFile = (0, path_1.join)(config.baseFolder, data.path);
|
|
151
|
+
if (!this.isInScope(pathToFile)) {
|
|
152
|
+
throw new Error('File not in scope');
|
|
153
|
+
}
|
|
154
|
+
return (0, generate_helper_1.readFile)(pathToFile);
|
|
127
155
|
}
|
|
128
156
|
deleteFile(data) {
|
|
129
|
-
const config = this.
|
|
130
|
-
|
|
157
|
+
const config = this.config;
|
|
158
|
+
const pathToFile = (0, path_1.join)(config.baseFolder, data.path);
|
|
159
|
+
if (!this.isInScope(pathToFile)) {
|
|
160
|
+
throw new Error('File not in scope');
|
|
161
|
+
}
|
|
162
|
+
return (0, generate_helper_1.deleteFile)(pathToFile);
|
|
163
|
+
}
|
|
164
|
+
moveFile(data) {
|
|
165
|
+
const config = this.config;
|
|
166
|
+
const pathToFromFile = (0, path_1.join)(config.baseFolder, data.from);
|
|
167
|
+
const pathToToFile = (0, path_1.join)(config.baseFolder, data.to);
|
|
168
|
+
if (!this.isInScope(pathToFromFile)) {
|
|
169
|
+
throw new Error('File not in scope');
|
|
170
|
+
}
|
|
171
|
+
if (!this.isInScope(pathToToFile)) {
|
|
172
|
+
throw new Error('File not in scope');
|
|
173
|
+
}
|
|
174
|
+
return (0, generate_helper_1.moveFile)(pathToFromFile, pathToToFile);
|
|
131
175
|
}
|
|
132
176
|
getFiles(pattern, prefix) {
|
|
133
177
|
if (prefix) {
|
|
@@ -135,6 +179,10 @@ let DevServerService = class DevServerService {
|
|
|
135
179
|
}
|
|
136
180
|
return (0, glob_1.glob)(pattern);
|
|
137
181
|
}
|
|
182
|
+
isInScope(path) {
|
|
183
|
+
const config = this.config;
|
|
184
|
+
return path.startsWith(config.baseFolder);
|
|
185
|
+
}
|
|
138
186
|
};
|
|
139
187
|
exports.DevServerService = DevServerService;
|
|
140
188
|
exports.DevServerService = DevServerService = tslib_1.__decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dev-server.service.js","sourceRoot":"","sources":["../../../../src/functions/serve/dev-server/dev-server.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,
|
|
1
|
+
{"version":3,"file":"dev-server.service.js","sourceRoot":"","sources":["../../../../src/functions/serve/dev-server/dev-server.service.ts"],"names":[],"mappings":";;;;AAAA,2CAA4C;AAC5C,2BAAqC;AACrC,+BAA4B;AAC5B,+BAA6C;AAC7C,8DAAgF;AAEhF,0EAA+G;AAC/G,+BAA4B;AAC5B,mDAAmD;AAEnD,iCAA8C;AAC9C,mCAAiC;AAEjC,uCAAsC;AAEtC,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,OAAO,CAAC,GAAG,EAAE,CAAC,CAAC;AAGrC,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAAtB;QAGE,WAAM,GAAG,IAAI,oBAAU,EAAE,CAAC;IAyNnC,CAAC;IAvNC,IAAI,MAAM;QACR,IAAI,IAAI,CAAC,OAAO,EAAE,CAAC;YACjB,OAAO,IAAI,CAAC,OAAO,CAAC;QACtB,CAAC;QAED,MAAM,UAAU,GAAG,IAAA,kCAAkB,EAAC,eAAe,CAAC,CAAC;QAEvD,IAAI,UAAU,EAAE,CAAC;YACf,IAAI,CAAC,OAAO,GAAG,UAAU,CAAC;YAC1B,OAAO,UAAU,CAAC;QACpB,CAAC;aAAM,CAAC;YACN,MAAM,IAAI,KAAK,CACb,+EAA+E,eAAe,oBAAoB,CACnH,CAAC;QACJ,CAAC;IACH,CAAC;IAED,UAAU;QACR,MAAM,OAAO,GAAG,IAAI,cAAO,EAAE,CAAC;QAE9B,MAAM,cAAc,GAAG,IAAI,CAAC,MAAM,EAAE,UAAU,IAAI,OAAO,CAAC;QAC1D,MAAM,cAAc,GAAG,IAAA,WAAI,EAAC,eAAe,EAAE,cAAc,CAAC,CAAC;QAE7D,IAAI,CAAC,IAAA,qBAAU,EAAC,cAAc,CAAC,EAAE,CAAC;YAChC,OAAO,CAAC,GAAG,CAAC,GAAG,IAAA,YAAI,EAAC,IAAA,YAAI,EAA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AQ,EAAC,cAAc,EAAE,YAAY,CAAC,CAAC;IAChD,CAAC;IAEO,QAAQ,CAAC,OAAe,EAAE,MAAc;QAC9C,IAAI,MAAM,EAAE,CAAC;YACX,OAAO,GAAG,IAAA,WAAI,EAAC,MAAM,EAAE,OAAO,CAAC,CAAC;QAClC,CAAC;QAED,OAAO,IAAA,WAAI,EAAC,OAAO,CAAC,CAAC;IACvB,CAAC;IAEO,SAAS,CAAC,IAAY;QAC5B,MAAM,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC;QAE3B,OAAO,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,UAAW,CAAC,CAAC;IAC7C,CAAC;CACF,CAAA;AA5NY,4CAAgB;2BAAhB,gBAAgB;IAD5B,IAAA,mBAAU,GAAE;GACA,gBAAgB,CA4N5B"}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
export type WriteFileBody = {
|
|
2
|
+
path: string;
|
|
3
|
+
content: string;
|
|
4
|
+
};
|
|
5
|
+
export type ReadFileBody = {
|
|
6
|
+
path: string;
|
|
7
|
+
};
|
|
8
|
+
export type MoveFileBody = {
|
|
9
|
+
from: string;
|
|
10
|
+
to: string;
|
|
11
|
+
};
|
|
12
|
+
export type DeleteFileBody = {
|
|
13
|
+
path: string;
|
|
14
|
+
};
|
|
15
|
+
export type CreateFolderBody = {
|
|
16
|
+
path: string;
|
|
17
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"file.types.js","sourceRoot":"","sources":["../../../../../src/functions/serve/dev-server/types/file.types.ts"],"names":[],"mappings":""}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.bootstrap =
|
|
3
|
+
exports.bootstrap = bootstrap;
|
|
4
4
|
const tslib_1 = require("tslib");
|
|
5
5
|
const core_1 = require("@nestjs/core");
|
|
6
6
|
const dev_server_module_1 = require("./dev-server/dev-server.module");
|
|
@@ -10,6 +10,7 @@ const express_1 = require("express");
|
|
|
10
10
|
const serve_favicon_1 = tslib_1.__importDefault(require("serve-favicon"));
|
|
11
11
|
const compression_1 = tslib_1.__importDefault(require("compression"));
|
|
12
12
|
const config_helper_1 = require("../helper/config.helper");
|
|
13
|
+
const fs_extra_1 = require("fs-extra");
|
|
13
14
|
async function openBrowser(url) {
|
|
14
15
|
try {
|
|
15
16
|
const open = await import('open');
|
|
@@ -42,8 +43,18 @@ async function bootstrap(argv) {
|
|
|
42
43
|
console.log(`Make sure to use a valid ${(0, kleur_1.bold)((0, kleur_1.blue)('projectId'))} and ${(0, kleur_1.bold)((0, kleur_1.blue)('apiKey'))} present in your local workspace.`);
|
|
43
44
|
console.log('');
|
|
44
45
|
}
|
|
46
|
+
const certBasePath = (0, path_1.join)(currentBasePath, 'cert');
|
|
47
|
+
const certKeyPath = (0, path_1.join)(certBasePath, 'localhost-key.pem');
|
|
48
|
+
const certPath = (0, path_1.join)(certBasePath, 'localhost.pem');
|
|
49
|
+
const nestOptions = {};
|
|
50
|
+
if ((0, fs_extra_1.existsSync)(certKeyPath) && (0, fs_extra_1.existsSync)(certPath)) {
|
|
51
|
+
nestOptions.httpsOptions = {
|
|
52
|
+
key: (0, fs_extra_1.readFileSync)(certKeyPath),
|
|
53
|
+
cert: (0, fs_extra_1.readFileSync)(certPath),
|
|
54
|
+
};
|
|
55
|
+
}
|
|
45
56
|
let app;
|
|
46
|
-
app = await core_1.NestFactory.create(dev_server_module_1.DevServerModule);
|
|
57
|
+
app = await core_1.NestFactory.create(dev_server_module_1.DevServerModule, nestOptions);
|
|
47
58
|
app.setGlobalPrefix('api');
|
|
48
59
|
app.enableCors({ exposedHeaders: ['Content-Range'] });
|
|
49
60
|
app.use((0, compression_1.default)());
|
|
@@ -77,5 +88,4 @@ async function bootstrap(argv) {
|
|
|
77
88
|
openBrowser(serverUrl);
|
|
78
89
|
}
|
|
79
90
|
}
|
|
80
|
-
exports.bootstrap = bootstrap;
|
|
81
91
|
//# sourceMappingURL=main.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/functions/serve/main.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"main.js","sourceRoot":"","sources":["../../../src/functions/serve/main.ts"],"names":[],"mappings":";;AAgCA,8BAgFC;;AAhHD,uCAA2C;AAC3C,sEAAiE;AACjE,iCAAmD;AACnD,+BAAqC;AAErC,qCAAkD;AAClD,0EAAoC;AACpC,sEAAsC;AACtC,2DAAiF;AAEjF,uCAAoD;AAOpD,KAAK,UAAU,WAAW,CAAC,GAAW;IACpC,IAAI,CAAC;QACH,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,MAAM,CAAC,CAAC;QAClC,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC;IAAC,OAAO,GAAG,EAAE,CAAC,CAAA,CAAC;AAClB,CAAC;AAED,SAAS,eAAe,CAAC,GAAqB;IAC5C,GAAG,CAAC,cAAc,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,GAAY,EAAE,GAAa,EAAE,EAAE;QAC3D,MAAM,YAAY,GAAG,IAAA,cAAO,EAAC,SAAS,EAAE,UAAU,CAAC,CAAC;QACpD,MAAM,aAAa,GAAG,IAAA,WAAI,EAAC,YAAY,EAAE,OAAO,CAAC,CAAC;QAClD,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAA,WAAI,EAAC,aAAa,EAAE,YAAY,EAAE,YAAY,CAAC,CAAC,CAAC;IACvE,CAAC,CAAC,CAAC;AACL,CAAC;AAEM,KAAK,UAAU,SAAS,CAAC,IAAuB;IAErD,MAAM,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;IACvB,MAAM,SAAS,GAAG,IAAI,CAAC,IAAI,CAAC;IAC3B,MAAc,CAAC,SAAS,GAAG,SAAS,CAAC;IAEtC,MAAM,eAAe,GAAG,IAAA,WAAI,EAAC,OAAO,C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oB,IAAI,EAAE,CAAC;IAC7C,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,IAAA,YAAI,EAAC,oEAAoE,CAAC,CAAC,CAAC;IACxF,OAAO,CAAC,GAAG,CAAC,IAAA,YAAI,EAAC,oEAAoE,CAAC,CAAC,CAAC;IACxF,OAAO,CAAC,GAAG,CAAC,IAAA,YAAI,EAAC,0CAA0C,IAAA,iBAAS,EAAC,IAAA,YAAI,EAAC,SAAS,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC;IAChG,OAAO,CAAC,GAAG,CAAC,IAAA,YAAI,EAAC,oEAAoE,CAAC,CAAC,CAAC;IACxF,OAAO,CAAC,GAAG,CAAC,IAAA,YAAI,EAAC,oEAAoE,CAAC,CAAC,CAAC;IACxF,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAChB,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC;IAEhB,IAAI,CAAC,SAAS,CAAC,aAAa,EAAE,CAAC;QAC7B,WAAW,CAAC,SAAS,CAAC,CAAC;IACzB,CAAC;AACH,CAAC"}
|
|
@@ -17,8 +17,12 @@
|
|
|
17
17
|
"url": "https://raw.githubusercontent.com/dcupl/dcupl-schema/main/bin/dcupl.test-config.vscode.schema.json"
|
|
18
18
|
},
|
|
19
19
|
{
|
|
20
|
-
"fileMatch": ["
|
|
20
|
+
"fileMatch": ["*.workflow.json"],
|
|
21
21
|
"url": "https://raw.githubusercontent.com/dcupl/dcupl-schema/main/bin/dcupl.workflow.vscode.schema.json"
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"fileMatch": ["*.api.json"],
|
|
25
|
+
"url": "https://raw.githubusercontent.com/dcupl/dcupl-schema/main/bin/dcupl.api.vscode.schema.json"
|
|
22
26
|
}
|
|
23
27
|
]
|
|
24
28
|
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
|
|
2
|
+
<!-- HTML for static distribution bundle build -->
|
|
3
|
+
<!DOCTYPE html>
|
|
4
|
+
<html lang="en">
|
|
5
|
+
<head>
|
|
6
|
+
<meta charset="UTF-8">
|
|
7
|
+
<title>Swagger UI</title>
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="./swagger/swagger-ui.css" >
|
|
9
|
+
<link rel="icon" type="image/png" href="./swagger/favicon-32x32.png" sizes="32x32" /><link rel="icon" type="image/png" href="./swagger/favicon-16x16.png" sizes="16x16" />
|
|
10
|
+
<style>
|
|
11
|
+
html
|
|
12
|
+
{
|
|
13
|
+
box-sizing: border-box;
|
|
14
|
+
overflow: -moz-scrollbars-vertical;
|
|
15
|
+
overflow-y: scroll;
|
|
16
|
+
}
|
|
17
|
+
*,
|
|
18
|
+
*:before,
|
|
19
|
+
*:after
|
|
20
|
+
{
|
|
21
|
+
box-sizing: inherit;
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
body {
|
|
25
|
+
margin:0;
|
|
26
|
+
background: #fafafa;
|
|
27
|
+
}
|
|
28
|
+
</style>
|
|
29
|
+
</head>
|
|
30
|
+
|
|
31
|
+
<body>
|
|
32
|
+
|
|
33
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
|
|
34
|
+
<defs>
|
|
35
|
+
<symbol viewBox="0 0 20 20" id="unlocked">
|
|
36
|
+
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
|
|
37
|
+
</symbol>
|
|
38
|
+
|
|
39
|
+
<symbol viewBox="0 0 20 20" id="locked">
|
|
40
|
+
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"/>
|
|
41
|
+
</symbol>
|
|
42
|
+
|
|
43
|
+
<symbol viewBox="0 0 20 20" id="close">
|
|
44
|
+
<path d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"/>
|
|
45
|
+
</symbol>
|
|
46
|
+
|
|
47
|
+
<symbol viewBox="0 0 20 20" id="large-arrow">
|
|
48
|
+
<path d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"/>
|
|
49
|
+
</symbol>
|
|
50
|
+
|
|
51
|
+
<symbol viewBox="0 0 20 20" id="large-arrow-down">
|
|
52
|
+
<path d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"/>
|
|
53
|
+
</symbol>
|
|
54
|
+
|
|
55
|
+
|
|
56
|
+
<symbol viewBox="0 0 24 24" id="jump-to">
|
|
57
|
+
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
|
|
58
|
+
</symbol>
|
|
59
|
+
|
|
60
|
+
<symbol viewBox="0 0 24 24" id="expand">
|
|
61
|
+
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
|
|
62
|
+
</symbol>
|
|
63
|
+
|
|
64
|
+
</defs>
|
|
65
|
+
</svg>
|
|
66
|
+
|
|
67
|
+
<div id="swagger-ui"></div>
|
|
68
|
+
|
|
69
|
+
<script src="./swagger/swagger-ui-bundle.js"> </script>
|
|
70
|
+
<script src="./swagger/swagger-ui-standalone-preset.js"> </script>
|
|
71
|
+
<script src="./swagger/swagger-ui-init.js"> </script>
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
|
|
75
|
+
<style>
|
|
76
|
+
|
|
77
|
+
.swagger-ui .topbar .download-url-wrapper { display: none }
|
|
78
|
+
</style>
|
|
79
|
+
</body>
|
|
80
|
+
|
|
81
|
+
</html>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dcupl/cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.1",
|
|
4
4
|
"description": "The official dcupl CLI",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -38,9 +38,9 @@
|
|
|
38
38
|
"typescript": "^5.3.3"
|
|
39
39
|
},
|
|
40
40
|
"dependencies": {
|
|
41
|
-
"@dcupl/common": "
|
|
42
|
-
"@dcupl/core": "
|
|
43
|
-
"@dcupl/loader": "
|
|
41
|
+
"@dcupl/common": "1.7.2",
|
|
42
|
+
"@dcupl/core": "1.7.2",
|
|
43
|
+
"@dcupl/loader": "1.7.2",
|
|
44
44
|
"@nestjs/common": "^10.3.2",
|
|
45
45
|
"@nestjs/core": "^10.3.2",
|
|
46
46
|
"@nestjs/platform-express": "^10.3.2",
|