web_api_base 2.6.0 → 2.6.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/__tests__/classes/ControllerTest.d.ts +10 -0
- package/dist/__tests__/classes/ControllerTest.js +63 -0
- package/dist/__tests__/classes/ControllerTest.js.map +1 -0
- package/dist/__tests__/classes/SampleServiceTest.d.ts +9 -0
- package/dist/__tests__/classes/SampleServiceTest.js +19 -0
- package/dist/__tests__/classes/SampleServiceTest.js.map +1 -0
- package/dist/__tests__/tests/controllers/ControllerDecorators.spec.d.ts +1 -0
- package/dist/__tests__/tests/controllers/ControllerDecorators.spec.js +41 -0
- package/dist/__tests__/tests/controllers/ControllerDecorators.spec.js.map +1 -0
- package/dist/__tests__/tests/dependecyInjection/DependecyInjection.spec.d.ts +1 -0
- package/dist/__tests__/tests/dependecyInjection/DependecyInjection.spec.js +45 -0
- package/dist/__tests__/tests/dependecyInjection/DependecyInjection.spec.js.map +1 -0
- package/package.json +11 -12
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { SampleServiceAbstract } from "./SampleServiceTest";
|
|
2
|
+
import { ControllerBase } from '../../index';
|
|
3
|
+
export declare class ControllerTest extends ControllerBase {
|
|
4
|
+
SomeDepency: SampleServiceAbstract;
|
|
5
|
+
AnotherDepency: SampleServiceAbstract;
|
|
6
|
+
private _somePrivateDepency;
|
|
7
|
+
constructor(some: SampleServiceAbstract);
|
|
8
|
+
TestAction(name: string): void;
|
|
9
|
+
TestActionTwo(name: string, age: number): void;
|
|
10
|
+
}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/* istanbul ignore next */
|
|
3
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
4
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
5
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
6
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
7
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
8
|
+
};
|
|
9
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
10
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
11
|
+
};
|
|
12
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
13
|
+
exports.ControllerTest = void 0;
|
|
14
|
+
const SampleServiceTest_1 = require("./SampleServiceTest");
|
|
15
|
+
const index_1 = require("../../index");
|
|
16
|
+
let ControllerTest = class ControllerTest extends index_1.ControllerBase {
|
|
17
|
+
constructor(some) {
|
|
18
|
+
super();
|
|
19
|
+
this.SomeDepency = some;
|
|
20
|
+
this.AnotherDepency = some;
|
|
21
|
+
this._somePrivateDepency = some;
|
|
22
|
+
}
|
|
23
|
+
TestAction(name) {
|
|
24
|
+
console.log(name);
|
|
25
|
+
}
|
|
26
|
+
TestActionTwo(name, age) {
|
|
27
|
+
console.log(name, age);
|
|
28
|
+
}
|
|
29
|
+
};
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, index_1.Inject)(),
|
|
32
|
+
__metadata("design:type", SampleServiceTest_1.SampleServiceAbstract)
|
|
33
|
+
], ControllerTest.prototype, "SomeDepency", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, index_1.InjectAbstract)(SampleServiceTest_1.SampleServiceAbstract),
|
|
36
|
+
__metadata("design:type", SampleServiceTest_1.SampleServiceAbstract)
|
|
37
|
+
], ControllerTest.prototype, "AnotherDepency", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, index_1.Inject)(),
|
|
40
|
+
__metadata("design:type", SampleServiceTest_1.SampleServiceAbstract)
|
|
41
|
+
], ControllerTest.prototype, "_somePrivateDepency", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, index_1.Action)("Test"),
|
|
44
|
+
(0, index_1.Verb)(index_1.HTTPVerbs.GET),
|
|
45
|
+
(0, index_1.Argument)('name'),
|
|
46
|
+
__metadata("design:type", Function),
|
|
47
|
+
__metadata("design:paramtypes", [String]),
|
|
48
|
+
__metadata("design:returntype", void 0)
|
|
49
|
+
], ControllerTest.prototype, "TestAction", null);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, index_1.Action)("Test"),
|
|
52
|
+
(0, index_1.Verb)(index_1.HTTPVerbs.GET),
|
|
53
|
+
(0, index_1.Argument)('name', 'age'),
|
|
54
|
+
__metadata("design:type", Function),
|
|
55
|
+
__metadata("design:paramtypes", [String, Number]),
|
|
56
|
+
__metadata("design:returntype", void 0)
|
|
57
|
+
], ControllerTest.prototype, "TestActionTwo", null);
|
|
58
|
+
ControllerTest = __decorate([
|
|
59
|
+
(0, index_1.Route)("/test"),
|
|
60
|
+
__metadata("design:paramtypes", [SampleServiceTest_1.SampleServiceAbstract])
|
|
61
|
+
], ControllerTest);
|
|
62
|
+
exports.ControllerTest = ControllerTest;
|
|
63
|
+
//# sourceMappingURL=ControllerTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerTest.js","sourceRoot":"","sources":["../../../__tests__/classes/ControllerTest.ts"],"names":[],"mappings":";AAAA,0BAA0B;;;;;;;;;;;;AAE1B,2DAA4D;AAE5D,uCAA2H;AAG3H,IAAa,cAAc,GAA3B,MAAa,cAAe,SAAQ,sBAAc;IAY9C,YAAY,IAA4B;QAEpC,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,IAAI,CAAC;QACxB,IAAI,CAAC,cAAc,GAAG,IAAI,CAAC;QAC3B,IAAI,CAAC,mBAAmB,GAAG,IAAI,CAAC;IACpC,CAAC;IAKM,UAAU,CAAC,IAAa;QAE3B,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IACtB,CAAC;IAKM,aAAa,CAAC,IAAa,EAAE,GAAY;QAE5C,OAAO,CAAC,GAAG,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC;IAC3B,CAAC;CAEJ,CAAA;AAhCG;IADC,IAAA,cAAM,GAAE;8BACY,yCAAqB;mDAAC;AAG3C;IADC,IAAA,sBAAc,EAAC,yCAAqB,CAAC;8BACd,yCAAqB;sDAAC;AAG9C;IADC,IAAA,cAAM,GAAE;8BACqB,yCAAqB;2DAAC;AAapD;IAHC,IAAA,cAAM,EAAC,MAAM,CAAC;IACd,IAAA,YAAI,EAAC,iBAAS,CAAC,GAAG,CAAC;IACnB,IAAA,gBAAQ,EAAS,MAAM,CAAC;;;;gDAIxB;AAKD;IAHC,IAAA,cAAM,EAAC,MAAM,CAAC;IACd,IAAA,YAAI,EAAC,iBAAS,CAAC,GAAG,CAAC;IACnB,IAAA,gBAAQ,EAAiB,MAAM,EAAE,KAAK,CAAC;;;;mDAIvC;AAlCQ,cAAc;IAD1B,IAAA,aAAK,EAAC,OAAO,CAAC;qCAaQ,yCAAqB;GAZ/B,cAAc,CAoC1B;AApCY,wCAAc"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare abstract class SampleServiceAbstract {
|
|
2
|
+
abstract DoSomething(): void;
|
|
3
|
+
}
|
|
4
|
+
export declare class SampleService extends SampleServiceAbstract {
|
|
5
|
+
DoSomething(): void;
|
|
6
|
+
}
|
|
7
|
+
export declare class AnotherService extends SampleServiceAbstract {
|
|
8
|
+
DoSomething(): void;
|
|
9
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.AnotherService = exports.SampleService = exports.SampleServiceAbstract = void 0;
|
|
4
|
+
class SampleServiceAbstract {
|
|
5
|
+
}
|
|
6
|
+
exports.SampleServiceAbstract = SampleServiceAbstract;
|
|
7
|
+
class SampleService extends SampleServiceAbstract {
|
|
8
|
+
DoSomething() {
|
|
9
|
+
console.log("Doing in SampleServices");
|
|
10
|
+
}
|
|
11
|
+
}
|
|
12
|
+
exports.SampleService = SampleService;
|
|
13
|
+
class AnotherService extends SampleServiceAbstract {
|
|
14
|
+
DoSomething() {
|
|
15
|
+
console.log("Doing another job in AnotherService");
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
exports.AnotherService = AnotherService;
|
|
19
|
+
//# sourceMappingURL=SampleServiceTest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SampleServiceTest.js","sourceRoot":"","sources":["../../../__tests__/classes/SampleServiceTest.ts"],"names":[],"mappings":";;;AAAA,MAAsB,qBAAqB;CAG1C;AAHD,sDAGC;AAID,MAAa,aAAc,SAAQ,qBAAqB;IAE7C,WAAW;QACd,OAAO,CAAC,GAAG,CAAC,yBAAyB,CAAC,CAAC;IAC3C,CAAC;CACJ;AALD,sCAKC;AAID,MAAa,cAAe,SAAQ,qBAAqB;IAE9C,WAAW;QACd,OAAO,CAAC,GAAG,CAAC,qCAAqC,CAAC,CAAC;IACvD,CAAC;CACJ;AALD,wCAKC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ControllerTest_1 = require("../../classes/ControllerTest");
|
|
7
|
+
const ControllerDecorators_1 = __importDefault(require("../../../decorators/controllers/ControllerDecorators"));
|
|
8
|
+
const HttpVerbs_1 = require("../../../enums/httpVerbs/HttpVerbs");
|
|
9
|
+
const SampleServiceTest_1 = require("../../classes/SampleServiceTest");
|
|
10
|
+
describe('testing controllers decorators', () => {
|
|
11
|
+
test("action name", () => {
|
|
12
|
+
var controller = new ControllerTest_1.ControllerTest(new SampleServiceTest_1.SampleService());
|
|
13
|
+
let action = ControllerDecorators_1.default.GetAction(controller, "TestAction");
|
|
14
|
+
expect(action).toBe("Test");
|
|
15
|
+
}, 10 ^ 5);
|
|
16
|
+
test("http verb", () => {
|
|
17
|
+
var controller = new ControllerTest_1.ControllerTest(new SampleServiceTest_1.SampleService());
|
|
18
|
+
let verb = ControllerDecorators_1.default.GetVerb(controller, "TestAction");
|
|
19
|
+
expect(verb).toBe(HttpVerbs_1.HTTPVerbs.GET);
|
|
20
|
+
}, 10 ^ 5);
|
|
21
|
+
test("action with one arg", () => {
|
|
22
|
+
var controller = new ControllerTest_1.ControllerTest(new SampleServiceTest_1.SampleService());
|
|
23
|
+
var handler = ControllerDecorators_1.default.GetArgumentsHandler(controller, 'TestAction');
|
|
24
|
+
var arr = handler === null || handler === void 0 ? void 0 : handler.CreateArgumentsList({ name: "adriano" });
|
|
25
|
+
Reflect.apply(controller.TestAction, controller, arr !== null && arr !== void 0 ? arr : []);
|
|
26
|
+
expect(arr).not.toBeNull();
|
|
27
|
+
}, 10 ^ 5);
|
|
28
|
+
test("action with two args", () => {
|
|
29
|
+
var controller = new ControllerTest_1.ControllerTest(new SampleServiceTest_1.SampleService());
|
|
30
|
+
var handler = ControllerDecorators_1.default.GetArgumentsHandler(controller, 'TestActionTwo');
|
|
31
|
+
var arr = handler === null || handler === void 0 ? void 0 : handler.CreateArgumentsList({ name: "adriano", age: 30 });
|
|
32
|
+
Reflect.apply(controller.TestActionTwo, controller, arr !== null && arr !== void 0 ? arr : []);
|
|
33
|
+
expect(arr).not.toBeNull();
|
|
34
|
+
}, 10 ^ 5);
|
|
35
|
+
test("controller route", () => {
|
|
36
|
+
var controller = new ControllerTest_1.ControllerTest(new SampleServiceTest_1.SampleService());
|
|
37
|
+
var route = ControllerDecorators_1.default.GetRoute(controller);
|
|
38
|
+
expect(route).toBe("/test");
|
|
39
|
+
}, 10 ^ 5);
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=ControllerDecorators.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ControllerDecorators.spec.js","sourceRoot":"","sources":["../../../../__tests__/tests/controllers/ControllerDecorators.spec.ts"],"names":[],"mappings":";;;;;AAAA,iEAA8D;AAC9D,gHAAyF;AACzF,kEAA+D;AAC/D,uEAAgE;AAEhE,QAAQ,CAAC,gCAAgC,EAAE,GAAE,EAAE;IAG3C,IAAI,CAAC,aAAa,EAAE,GAAE,EAAE;QAEpB,IAAI,UAAU,GAAG,IAAI,+BAAc,CAAC,IAAI,iCAAa,EAAE,CAAC,CAAC;QACzD,IAAI,MAAM,GAAG,8BAAqB,CAAC,SAAS,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACvE,MAAM,CAAC,MAAM,CAAC,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;IAEhC,CAAC,EAAC,EAAE,GAAC,CAAC,CAAC,CAAA;IAEP,IAAI,CAAC,WAAW,EAAE,GAAE,EAAE;QAElB,IAAI,UAAU,GAAG,IAAI,+BAAc,CAAC,IAAI,iCAAa,EAAE,CAAC,CAAC;QACzD,IAAI,IAAI,GAAG,8BAAqB,CAAC,OAAO,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QACnE,MAAM,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,qBAAS,CAAC,GAAG,CAAC,CAAC;IAErC,CAAC,EAAC,EAAE,GAAC,CAAC,CAAC,CAAA;IAEP,IAAI,CAAC,qBAAqB,EAAE,GAAE,EAAE;QAE5B,IAAI,UAAU,GAAG,IAAI,+BAAc,CAAC,IAAI,iCAAa,EAAE,CAAC,CAAC;QAEzD,IAAI,OAAO,GAAG,8BAAqB,CAAC,mBAAmB,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;QAElF,IAAI,GAAG,GAAG,OAAO,aAAP,OAAO,uBAAP,OAAO,CAAE,mBAAmB,CAAC,EAAC,IAAI,EAAG,SAAS,EAAC,CAAC,CAAC;QAE3D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"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const ControllerTest_1 = require("../../classes/ControllerTest");
|
|
7
|
+
const SampleServiceTest_1 = require("../../classes/SampleServiceTest");
|
|
8
|
+
const DependecyService_1 = __importDefault(require("../../../dependencyInjection/DependecyService"));
|
|
9
|
+
describe("testing the dependecy injection service", () => {
|
|
10
|
+
DependecyService_1.default.RegisterFor(SampleServiceTest_1.SampleServiceAbstract, SampleServiceTest_1.SampleService);
|
|
11
|
+
test("testing the creation of a controller", () => {
|
|
12
|
+
let controller = DependecyService_1.default.Build(ControllerTest_1.ControllerTest);
|
|
13
|
+
expect(controller).not.toBeNull();
|
|
14
|
+
});
|
|
15
|
+
test("testing Inject decorator", () => {
|
|
16
|
+
let controller = DependecyService_1.default.Build(ControllerTest_1.ControllerTest);
|
|
17
|
+
expect(controller).not.toBeNull();
|
|
18
|
+
expect(controller.SomeDepency).not.toBeNull();
|
|
19
|
+
expect(controller.SomeDepency instanceof SampleServiceTest_1.SampleService).toBeTruthy();
|
|
20
|
+
});
|
|
21
|
+
test("testing InjectAbstract decorator", () => {
|
|
22
|
+
let controller = DependecyService_1.default.Build(ControllerTest_1.ControllerTest);
|
|
23
|
+
expect(controller).not.toBeNull();
|
|
24
|
+
expect(controller.AnotherDepency).not.toBeNull();
|
|
25
|
+
expect(controller.AnotherDepency instanceof SampleServiceTest_1.SampleService).toBeTruthy();
|
|
26
|
+
});
|
|
27
|
+
test("testing injection on a private property", () => {
|
|
28
|
+
let controller = DependecyService_1.default.Build(ControllerTest_1.ControllerTest);
|
|
29
|
+
let prop = Reflect.get(controller, "_somePrivateDepency");
|
|
30
|
+
expect(prop).not.toBeNull();
|
|
31
|
+
expect(prop instanceof SampleServiceTest_1.SampleService).toBeTruthy();
|
|
32
|
+
});
|
|
33
|
+
test("test change implementation of a abstract class on DI service", () => {
|
|
34
|
+
let controller1 = DependecyService_1.default.Build(ControllerTest_1.ControllerTest);
|
|
35
|
+
DependecyService_1.default.RegisterFor(SampleServiceTest_1.SampleServiceAbstract, SampleServiceTest_1.AnotherService);
|
|
36
|
+
let controller2 = DependecyService_1.default.Build(ControllerTest_1.ControllerTest);
|
|
37
|
+
expect(controller1).not.toBeNull();
|
|
38
|
+
expect(controller1.AnotherDepency).not.toBeNull();
|
|
39
|
+
expect(controller1.AnotherDepency instanceof SampleServiceTest_1.SampleService).toBeTruthy();
|
|
40
|
+
expect(controller2).not.toBeNull();
|
|
41
|
+
expect(controller2.AnotherDepency).not.toBeNull();
|
|
42
|
+
expect(controller2.AnotherDepency instanceof SampleServiceTest_1.AnotherService).toBeTruthy();
|
|
43
|
+
});
|
|
44
|
+
});
|
|
45
|
+
//# sourceMappingURL=DependecyInjection.spec.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"DependecyInjection.spec.js","sourceRoot":"","sources":["../../../../__tests__/tests/dependecyInjection/DependecyInjection.spec.ts"],"names":[],"mappings":";;;;;AAAA,iEAA8D;AAC9D,uEAAuG;AACvG,qGAA6E;AAK7E,QAAQ,CAAC,yCAAyC,EAAE,GAAE,EAAE;IAEpD,0BAAgB,CAAC,WAAW,CAAC,yCAAqB,EAAE,iCAAa,CAAC,CAAC;IAEnE,IAAI,CAAC,sCAAsC,EAAE,GAAE,EAAE;QAE7C,IAAI,UAAU,GAAG,0BAAgB,CAAC,KAAK,CAAC,+BAAc,CAA8B,CAAC;QAErF,MAAM,CAAC,UAAU,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;IAEtC,CAAC,CAAC,CAAC;IAGH,IAAI,CAAC,0BAA0B,EAAE,GAAE,EAAE;QAEjC,IAAI,UAAU,GAAG,0BAAgB,CAAC,KAAK,CAAC,+BAAc,CAA8B,CAAC;QAErF,MAAM,CAAC,UAAU,CAAC,CAAC,GA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,GAAG,CAAC,QAAQ,EAAE,CAAC;QAEnC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAElD,MAAM,CAAC,WAAW,CAAC,cAAc,YAAY,iCAAa,CAAC,CAAC,UAAU,EAAE,CAAC;QAEzE,MAAM,CAAC,WAAW,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAEnC,MAAM,CAAC,WAAW,CAAC,cAAc,CAAC,CAAC,GAAG,CAAC,QAAQ,EAAE,CAAC;QAElD,MAAM,CAAC,WAAW,CAAC,cAAc,YAAY,kCAAc,CAAC,CAAC,UAAU,EAAE,CAAC;IAE9E,CAAC,CAAC,CAAC;AAGP,CAAC,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web_api_base",
|
|
3
|
-
"version": "2.6.
|
|
3
|
+
"version": "2.6.1",
|
|
4
4
|
"description": "web api base",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -16,22 +16,21 @@
|
|
|
16
16
|
"author": "adriano.marino1992@gmail.com",
|
|
17
17
|
"repository": "https://github.com/adrianomarino1992/web_api_base.git",
|
|
18
18
|
"license": "ISC",
|
|
19
|
-
"dependencies": {
|
|
19
|
+
"dependencies": {
|
|
20
|
+
"cors": "^2.8.5",
|
|
21
|
+
"express": "^4.18.2",
|
|
22
|
+
"platform-folders": "^0.6.0",
|
|
23
|
+
"reflect-metadata": "^0.1.13"
|
|
24
|
+
|
|
25
|
+
},
|
|
26
|
+
"devDependencies": {
|
|
20
27
|
"@types/express": "^4.17.15",
|
|
21
28
|
"@types/jest": "^29.2.4",
|
|
22
29
|
"@types/node": "^18.11.17",
|
|
23
30
|
"@types/reflect-metadata": "^0.1.0",
|
|
24
|
-
"cors": "^2.8.5",
|
|
25
|
-
"express": "^4.18.2",
|
|
26
|
-
"formidable": "^2.1.1",
|
|
27
31
|
"jest": "^29.3.1",
|
|
28
|
-
"platform-folders": "^0.6.0",
|
|
29
|
-
"reflect-metadata": "^0.1.13",
|
|
30
32
|
"ts-jest": "^29.0.3",
|
|
31
|
-
"ts-node": "^10.9.1"
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
"devDependencies": {
|
|
35
|
-
"@types/formidable": "^2.0.5"
|
|
33
|
+
"ts-node": "^10.9.1"
|
|
34
|
+
|
|
36
35
|
}
|
|
37
36
|
}
|