@avleon/core 0.0.8 → 0.0.11
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/authentication.d.ts +6 -0
- package/dist/authentication.js +7 -2
- package/dist/collection.js +7 -0
- package/dist/config.d.ts +7 -1
- package/dist/config.js +6 -0
- package/dist/container.d.ts +8 -0
- package/dist/container.js +9 -1
- package/dist/controller.js +6 -0
- package/dist/decorators.d.ts +6 -0
- package/dist/decorators.js +6 -0
- package/dist/environment-variables.d.ts +7 -0
- package/dist/environment-variables.js +10 -1
- package/dist/exceptions/http-exceptions.d.ts +6 -0
- package/dist/exceptions/http-exceptions.js +6 -0
- package/dist/exceptions/system-exception.d.ts +6 -0
- package/dist/file-storage.d.ts +17 -0
- package/dist/file-storage.js +153 -0
- package/dist/helpers.js +7 -1
- package/dist/icore.d.ts +105 -9
- package/dist/icore.js +193 -40
- package/dist/index.d.ts +9 -0
- package/dist/index.js +9 -1
- package/dist/map-types.d.ts +6 -1
- package/dist/map-types.js +6 -1
- package/dist/middleware.js +6 -0
- package/dist/multipart.d.ts +17 -0
- package/dist/multipart.js +62 -0
- package/dist/openapi.d.ts +6 -0
- package/dist/params.js +6 -0
- package/dist/queue.d.ts +6 -0
- package/dist/queue.js +6 -0
- package/dist/response.d.ts +6 -0
- package/dist/response.js +8 -1
- package/dist/security.d.ts +4 -0
- package/dist/security.js +15 -0
- package/dist/swagger-schema.d.ts +6 -0
- package/dist/swagger-schema.js +6 -0
- package/dist/types/app-builder.interface.d.ts +6 -0
- package/dist/types/app-builder.interface.js +6 -0
- package/dist/types/application.interface.d.ts +6 -0
- package/dist/validation.d.ts +6 -0
- package/dist/validation.js +6 -0
- package/dist/validator-extend.d.ts +6 -0
- package/dist/validator-extend.js +6 -0
- package/package.json +15 -8
package/dist/swagger-schema.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.generateSwaggerSchema = generateSwaggerSchema;
|
|
4
|
+
/**
|
|
5
|
+
* @copyright 2024
|
|
6
|
+
* @author Tareq Hossain
|
|
7
|
+
* @email xtrinsic96@gmail.com
|
|
8
|
+
* @url https://github.com/xtareq
|
|
9
|
+
*/
|
|
4
10
|
function generateSwaggerSchema(classType) {
|
|
5
11
|
const { getMetadataStorage } = require("class-validator");
|
|
6
12
|
const { plainToInstance } = require("class-transformer");
|
package/dist/validation.d.ts
CHANGED
package/dist/validation.js
CHANGED
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* @copyright 2024
|
|
4
|
+
* @author Tareq Hossain
|
|
5
|
+
* @email xtrinsic96@gmail.com
|
|
6
|
+
* @url https://github.com/xtareq
|
|
7
|
+
*/
|
|
2
8
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
9
|
exports.validateOrThrow = validateOrThrow;
|
|
4
10
|
const exceptions_1 = require("./exceptions");
|
package/dist/validator-extend.js
CHANGED
|
@@ -1,6 +1,12 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.IsArrayNotEmpty = IsArrayNotEmpty;
|
|
4
|
+
/**
|
|
5
|
+
* @copyright 2024
|
|
6
|
+
* @author Tareq Hossain
|
|
7
|
+
* @email xtrinsic96@gmail.com
|
|
8
|
+
* @url https://github.com/xtareq
|
|
9
|
+
*/
|
|
4
10
|
function IsArrayNotEmpty(validationOptions) {
|
|
5
11
|
const { registerDecorator, ValidationArguments } = require("class-validator");
|
|
6
12
|
return function (object, propertyName) {
|
package/package.json
CHANGED
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@avleon/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.11",
|
|
4
4
|
"main": "./dist/index.js",
|
|
5
|
-
"types":
|
|
5
|
+
"types": [
|
|
6
|
+
"./dist/index.d.ts",
|
|
7
|
+
"./exceptions/index.d.ts"
|
|
8
|
+
],
|
|
6
9
|
"scripts": {
|
|
7
10
|
"build": "rimraf dist && tsc",
|
|
8
11
|
"watch": "tsc-watch",
|
|
@@ -14,27 +17,31 @@
|
|
|
14
17
|
"license": "ISC",
|
|
15
18
|
"devDependencies": {
|
|
16
19
|
"@types/jest": "^29.5.14",
|
|
20
|
+
"class-transformer": "^0.5.1",
|
|
21
|
+
"class-validator": "^0.14.1",
|
|
17
22
|
"jest": "^29.7.0",
|
|
18
23
|
"nodemon": "^3.1.7",
|
|
24
|
+
"sharp": "^0.33.5",
|
|
19
25
|
"ts-jest": "^29.2.5",
|
|
20
26
|
"ts-node": "^10.9.2",
|
|
21
27
|
"tsc-watch": "^6.2.1",
|
|
28
|
+
"typeorm": "^0.3.20",
|
|
22
29
|
"typescript": "^5.7.2"
|
|
23
30
|
},
|
|
24
31
|
"dependencies": {
|
|
32
|
+
"@fastify/cors": "^11.0.0",
|
|
33
|
+
"@fastify/multipart": "^9.0.3",
|
|
25
34
|
"@fastify/static": "^8.1.1",
|
|
26
35
|
"@fastify/swagger": "^9.4.0",
|
|
27
36
|
"@fastify/swagger-ui": "^5.1.0",
|
|
28
|
-
"
|
|
29
|
-
"class-validator": "^0.14.1",
|
|
37
|
+
"bcryptjs": "^3.0.2",
|
|
30
38
|
"dotenv": "^16.4.7",
|
|
31
39
|
"fastify": "^5.1.0",
|
|
32
40
|
"reflect-metadata": "^0.2.2",
|
|
33
|
-
"typedi": "^0.10.0"
|
|
34
|
-
"typeorm": "^0.3.20"
|
|
41
|
+
"typedi": "^0.10.0"
|
|
35
42
|
},
|
|
36
43
|
"peerDependencies": {
|
|
37
|
-
"
|
|
44
|
+
"typeorm": "^0.3.20"
|
|
38
45
|
},
|
|
39
46
|
"directories": {
|
|
40
47
|
"test": "tests"
|
|
@@ -44,4 +51,4 @@
|
|
|
44
51
|
"type": "git",
|
|
45
52
|
"url": "git+https://github.com/avleonjs/avleon-core"
|
|
46
53
|
}
|
|
47
|
-
}
|
|
54
|
+
}
|