@alanszp/express 20.4.0 → 20.4.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.
|
@@ -3,6 +3,9 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
exports.getRequestBaseLog = getRequestBaseLog;
|
|
4
4
|
const lodash_1 = require("lodash");
|
|
5
5
|
function getRequestBaseLog(req) {
|
|
6
|
-
|
|
6
|
+
var _a, _b, _c;
|
|
7
|
+
const routePath = (_b = (_a = req.route) === null || _a === void 0 ? void 0 : _a.path) !== null && _b !== void 0 ? _b : req.path;
|
|
8
|
+
const fullPath = `${(_c = req.baseUrl) !== null && _c !== void 0 ? _c : ""}${routePath}`;
|
|
9
|
+
return `${(0, lodash_1.snakeCase)(fullPath)}.${(0, lodash_1.snakeCase)(req.method)}`;
|
|
7
10
|
}
|
|
8
11
|
//# sourceMappingURL=getRequestBaseLog.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getRequestBaseLog.js","sourceRoot":"","sources":["../../src/helpers/getRequestBaseLog.ts"],"names":[],"mappings":";;AAGA,
|
|
1
|
+
{"version":3,"file":"getRequestBaseLog.js","sourceRoot":"","sources":["../../src/helpers/getRequestBaseLog.ts"],"names":[],"mappings":";;AAGA,8CAIC;AAND,mCAAmC;AAEnC,SAAgB,iBAAiB,CAAC,GAAY;;IAC5C,MAAM,SAAS,GAAG,MAAA,MAAA,GAAG,CAAC,KAAK,0CAAE,IAAI,mCAAI,GAAG,CAAC,IAAI,CAAC;IAC9C,MAAM,QAAQ,GAAG,GAAG,MAAA,GAAG,CAAC,OAAO,mCAAI,EAAE,GAAG,SAAS,EAAE,CAAC;IACpD,OAAO,GAAG,IAAA,kBAAS,EAAC,QAAQ,CAAC,IAAI,IAAA,kBAAS,EAAC,GAAG,CAAC,MAAM,CAAC,EAAE,CAAC;AAC3D,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@alanszp/express",
|
|
3
|
-
"version": "20.4.
|
|
3
|
+
"version": "20.4.1",
|
|
4
4
|
"description": "Alan's express utils and middlewares.",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"typings": "dist/index.d.ts",
|
|
@@ -12,9 +12,9 @@
|
|
|
12
12
|
"compile": "rm -rf ./dist && tsc --declaration",
|
|
13
13
|
"compile-watch": "tsc -w",
|
|
14
14
|
"test": "TZ=Etc/UTC jest",
|
|
15
|
-
"build": "
|
|
16
|
-
"prepack": "
|
|
17
|
-
"yalc-publish": "
|
|
15
|
+
"build": "pnpm run compile",
|
|
16
|
+
"prepack": "pnpm run build",
|
|
17
|
+
"yalc-publish": "pnpm run yalc publish"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"@alanszp/errors": ">=16.0.0",
|
|
@@ -24,7 +24,7 @@
|
|
|
24
24
|
"typeorm": "^0.3.28"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
|
-
"@alanszp/jwt": "^20.4.
|
|
27
|
+
"@alanszp/jwt": "^20.4.1",
|
|
28
28
|
"@types/body-parser": "^1.19.1",
|
|
29
29
|
"@types/cookie": "^0.6.0",
|
|
30
30
|
"@types/express": "^4.17.12",
|
|
@@ -38,20 +38,23 @@
|
|
|
38
38
|
"ts-node": "^10.0.0",
|
|
39
39
|
"tslint": "^6.1.3",
|
|
40
40
|
"tsoa": "^6.2.0",
|
|
41
|
-
"typeorm": "^0.3.
|
|
41
|
+
"typeorm": "^0.3.29",
|
|
42
42
|
"typescript": "^5.9.3"
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"@alanszp/audit": "^20.4.
|
|
46
|
-
"@alanszp/
|
|
47
|
-
"@alanszp/
|
|
45
|
+
"@alanszp/audit": "^20.4.1",
|
|
46
|
+
"@alanszp/core": "^20.4.1",
|
|
47
|
+
"@alanszp/logger": "^20.4.1",
|
|
48
|
+
"@alanszp/shared-context": "^20.4.1",
|
|
49
|
+
"@alanszp/validations": "^20.4.1",
|
|
48
50
|
"@babel/core": "^7.23.9",
|
|
49
51
|
"@paralleldrive/cuid2": "^2.2.2",
|
|
50
52
|
"@types/cookies": "^0.7.0",
|
|
51
53
|
"body-parser": "^2.2.2",
|
|
52
54
|
"cookie": "^0.7.0",
|
|
55
|
+
"dotenv": "^16.0.0",
|
|
53
56
|
"lodash": "^4.17.23",
|
|
54
|
-
"newrelic": "^13.
|
|
57
|
+
"newrelic": "^13.20.0"
|
|
55
58
|
},
|
|
56
|
-
"gitHead": "
|
|
59
|
+
"gitHead": "f365044a8917622b2e3bf847e712d9192750dbd0"
|
|
57
60
|
}
|