@maioradv/nestjs-core 1.0.6 → 1.0.8
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,6 +2,6 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.joinFromRoot = exports.ROOT_PATH = void 0;
|
|
4
4
|
const path_1 = require("path");
|
|
5
|
-
exports.ROOT_PATH = (0, path_1.join)(__dirname, '..', '../../');
|
|
5
|
+
exports.ROOT_PATH = (0, path_1.join)(__dirname, '..', '../../', '../../');
|
|
6
6
|
const joinFromRoot = (...paths) => (0, path_1.join)(exports.ROOT_PATH, ...paths);
|
|
7
7
|
exports.joinFromRoot = joinFromRoot;
|
|
@@ -27,9 +27,10 @@ const fs = __importStar(require("fs"));
|
|
|
27
27
|
const util_1 = require("util");
|
|
28
28
|
const path_1 = require("path");
|
|
29
29
|
const os_1 = require("os");
|
|
30
|
+
const path_helper_1 = require("./path.helper");
|
|
30
31
|
class StorageHelper {
|
|
31
32
|
constructor() {
|
|
32
|
-
this.rootPath = (0,
|
|
33
|
+
this.rootPath = (0, path_helper_1.joinFromRoot)('public');
|
|
33
34
|
}
|
|
34
35
|
async read(path) {
|
|
35
36
|
const realPath = (0, path_1.join)(this.rootPath, path);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@maioradv/nestjs-core",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
4
4
|
"description": "NestJS helpers by MaiorADV",
|
|
5
5
|
"repository": "https://github.com/maioradv/nestjs-core.git",
|
|
6
6
|
"author": "Maior ADV Srl",
|
|
@@ -15,20 +15,33 @@
|
|
|
15
15
|
"build": "tsc",
|
|
16
16
|
"publish:npm": "npm publish --access public"
|
|
17
17
|
},
|
|
18
|
-
"
|
|
18
|
+
"dependencies": {
|
|
19
19
|
"@nestjs/common": "^10.3.8",
|
|
20
20
|
"@nestjs/graphql": "^12.1.1",
|
|
21
21
|
"@nestjs/swagger": "^7.3.1",
|
|
22
|
+
"@nestjs/platform-express": "^10.0.0",
|
|
22
23
|
"class-transformer": "^0.5.1",
|
|
23
24
|
"class-validator": "^0.14.1",
|
|
24
|
-
"express": "^4.19.2",
|
|
25
25
|
"nest-winston": "^1.10.0",
|
|
26
26
|
"winston": "^3.13.0",
|
|
27
|
-
"winston-daily-rotate-file": "^5.0.0"
|
|
27
|
+
"winston-daily-rotate-file": "^5.0.0"
|
|
28
|
+
},
|
|
29
|
+
"devDependencies": {
|
|
28
30
|
"@types/node": "^20.12.13",
|
|
29
31
|
"ts-node": "^10.9.2",
|
|
30
32
|
"typescript": "^5.4.5"
|
|
31
33
|
},
|
|
34
|
+
"peerDependencies": {
|
|
35
|
+
"@nestjs/common": "^10.3.8",
|
|
36
|
+
"@nestjs/graphql": "^12.1.1",
|
|
37
|
+
"@nestjs/swagger": "^7.3.1",
|
|
38
|
+
"@nestjs/platform-express": "^10.0.0",
|
|
39
|
+
"class-transformer": "^0.5.1",
|
|
40
|
+
"class-validator": "^0.14.1",
|
|
41
|
+
"nest-winston": "^1.10.0",
|
|
42
|
+
"winston": "^3.13.0",
|
|
43
|
+
"winston-daily-rotate-file": "^5.0.0"
|
|
44
|
+
},
|
|
32
45
|
"keywords": [
|
|
33
46
|
"typescript",
|
|
34
47
|
"netjs"
|