@cley_faye/boilerplate 3.11.2 → 3.11.4
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/lib/express/logger.js
CHANGED
|
@@ -111,19 +111,11 @@ const registerErrorLogger = (app, logOptions) => {
|
|
|
111
111
|
const config = typeof error === "boolean"
|
|
112
112
|
? {}
|
|
113
113
|
: error ?? {};
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}
|
|
121
|
-
else {
|
|
122
|
-
app.use(express_winston_1.default.errorLogger({
|
|
123
|
-
transports: winston_js_1.transports,
|
|
124
|
-
format: (0, winston_js_1.customFormat)(timestamp, config.collapseStacktrace ?? config.collapseNodeModules, getExtraFilter(config.extraFilter)),
|
|
125
|
-
meta: false,
|
|
126
|
-
}));
|
|
127
|
-
}
|
|
114
|
+
const activeTransports = logger ? logger.transports : winston_js_1.transports;
|
|
115
|
+
app.use(express_winston_1.default.errorLogger({
|
|
116
|
+
transports: activeTransports,
|
|
117
|
+
format: (0, winston_js_1.customFormat)(timestamp, config.collapseStacktrace ?? config.collapseNodeModules, getExtraFilter(config.extraFilter)),
|
|
118
|
+
meta: false,
|
|
119
|
+
}));
|
|
128
120
|
};
|
|
129
121
|
exports.registerErrorLogger = registerErrorLogger;
|
|
@@ -120,6 +120,7 @@ exports.webpackLoadersDefault = webpackLoadersDefault;
|
|
|
120
120
|
const computeWebpackOutput = (webpackOptions, targetName) => webpackOptions.output ?? {
|
|
121
121
|
path: (0, path_1.resolve)("dist", targetName, "js"),
|
|
122
122
|
filename: "[name].js",
|
|
123
|
+
chunkFilename: "[name]-[fullhash].js",
|
|
123
124
|
};
|
|
124
125
|
const lastNamePosition = 2;
|
|
125
126
|
const getHandledFiles = (webpackEntry) => Object.keys(webpackEntry).reduce((acc, cur) => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cley_faye/boilerplate",
|
|
3
|
-
"version": "3.11.
|
|
3
|
+
"version": "3.11.4",
|
|
4
4
|
"description": "Boilerplate code generator for generic projects",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -20,8 +20,8 @@
|
|
|
20
20
|
"@keeex/eslint-config": "^1.8.2",
|
|
21
21
|
"@types/express": "^4.17.14",
|
|
22
22
|
"@types/grunt": "^0.4.27",
|
|
23
|
-
"@types/http-errors": "^
|
|
24
|
-
"@types/node": "^
|
|
23
|
+
"@types/http-errors": "^2.0.1",
|
|
24
|
+
"@types/node": "^18.11.9",
|
|
25
25
|
"@typescript-eslint/eslint-plugin": "^5.41.0",
|
|
26
26
|
"@typescript-eslint/parser": "^5.41.0",
|
|
27
27
|
"eslint": "^8.26.0",
|
|
@@ -43,7 +43,7 @@
|
|
|
43
43
|
"@babel/plugin-transform-runtime": "7.x",
|
|
44
44
|
"@babel/preset-env": "7.x",
|
|
45
45
|
"@babel/preset-react": "7.x",
|
|
46
|
-
"babel-loader": "
|
|
46
|
+
"babel-loader": "9.x",
|
|
47
47
|
"babel-plugin-transform-define": "2.x",
|
|
48
48
|
"core-js": "3.x",
|
|
49
49
|
"eslint-webpack-plugin": "^3.0.1",
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"grunt-contrib-watch": "1.x",
|
|
56
56
|
"grunt-sass": "3.x",
|
|
57
57
|
"grunt-webpack": "5.x",
|
|
58
|
-
"resolve-typescript-plugin": "
|
|
58
|
+
"resolve-typescript-plugin": "2.x",
|
|
59
59
|
"sass": "1.x",
|
|
60
60
|
"ts-loader": "^9.4.1",
|
|
61
61
|
"winston": "3.x"
|