@adaptivestone/framework 5.0.0-alpha.7 → 5.0.0-alpha.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.
- package/CHANGELOG.md +6 -0
- package/package.json +5 -7
- package/server.js +7 -2
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adaptivestone/framework",
|
|
3
|
-
"version": "5.0.0-alpha.
|
|
3
|
+
"version": "5.0.0-alpha.8",
|
|
4
4
|
"description": "Adaptive stone node js framework",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"engines": {
|
|
8
|
-
"node": ">=
|
|
8
|
+
"node": ">=20.12.0"
|
|
9
9
|
},
|
|
10
10
|
"repository": {
|
|
11
11
|
"type": "git",
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
},
|
|
14
14
|
"homepage": "https://framework.adaptivestone.com/",
|
|
15
15
|
"scripts": {
|
|
16
|
-
"dev": "
|
|
17
|
-
"prod": "
|
|
16
|
+
"dev": "node --watch ./index.js",
|
|
17
|
+
"prod": "node --watch ./cluster.js",
|
|
18
18
|
"test": "vitest run",
|
|
19
19
|
"prettier": "prettier --check '**/*.(js|jsx|ts|tsx|json|css|scss|md)'",
|
|
20
20
|
"lint": "eslint '**/*.js'",
|
|
@@ -30,7 +30,6 @@
|
|
|
30
30
|
"license": "MIT",
|
|
31
31
|
"dependencies": {
|
|
32
32
|
"deepmerge": "^4.2.2",
|
|
33
|
-
"dotenv": "^16.0.0",
|
|
34
33
|
"express": "^4.17.1",
|
|
35
34
|
"formidable": "^3.5.1",
|
|
36
35
|
"html-to-text": "^9.0.3",
|
|
@@ -57,11 +56,10 @@
|
|
|
57
56
|
"eslint-config-airbnb-base": "^15.0.0",
|
|
58
57
|
"eslint-config-prettier": "^9.0.0",
|
|
59
58
|
"eslint-plugin-prettier": "^5.0.0",
|
|
60
|
-
"eslint-plugin-vitest": "^0.
|
|
59
|
+
"eslint-plugin-vitest": "^0.4.0",
|
|
61
60
|
"husky": "^9.0.0",
|
|
62
61
|
"lint-staged": "^15.0.0",
|
|
63
62
|
"mongodb-memory-server": "^9.0.0",
|
|
64
|
-
"nodemon": "^3.0.1",
|
|
65
63
|
"prettier": "^3.0.0",
|
|
66
64
|
"vitest": "^1.0.0"
|
|
67
65
|
},
|
package/server.js
CHANGED
|
@@ -1,16 +1,21 @@
|
|
|
1
1
|
/* eslint-disable no-console */
|
|
2
2
|
import EventEmitter from 'node:events';
|
|
3
|
-
import { hrtime } from 'node:process';
|
|
3
|
+
import { hrtime, loadEnvFile } from 'node:process';
|
|
4
4
|
import * as url from 'node:url';
|
|
5
5
|
import path from 'node:path';
|
|
6
6
|
|
|
7
|
-
import 'dotenv/config';
|
|
8
7
|
import merge from 'deepmerge';
|
|
9
8
|
import winston from 'winston';
|
|
10
9
|
import { getFilesPathWithInheritance } from './helpers/files.js';
|
|
11
10
|
import { consoleLogger } from './helpers/logger.js';
|
|
12
11
|
import Cache from './services/cache/Cache.js';
|
|
13
12
|
|
|
13
|
+
try {
|
|
14
|
+
loadEnvFile();
|
|
15
|
+
} catch (e) {
|
|
16
|
+
console.warn('No env file found. This is ok. But please check youself.');
|
|
17
|
+
}
|
|
18
|
+
|
|
14
19
|
/**
|
|
15
20
|
* Main framework class.
|
|
16
21
|
*/
|