@arkyn/server 2.0.1-beta.7 → 2.0.1-beta.9
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/package.json +3 -2
- package/src/http/badResponses/badGateway.ts +1 -1
- package/src/http/badResponses/badRequest.ts +1 -1
- package/src/http/badResponses/conflict.ts +1 -1
- package/src/http/badResponses/forbidden.ts +1 -1
- package/src/http/badResponses/notFound.ts +1 -1
- package/src/http/badResponses/notImplemented.ts +1 -1
- package/src/http/badResponses/serverError.ts +1 -1
- package/src/http/badResponses/unauthorized.ts +1 -1
- package/src/services/getCaller.ts +3 -6
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@arkyn/server",
|
|
3
|
-
"version": "2.0.1-beta.
|
|
3
|
+
"version": "2.0.1-beta.9",
|
|
4
4
|
"main": "./dist/bundle.js",
|
|
5
5
|
"module": "./src/index.ts",
|
|
6
6
|
"type": "module",
|
|
@@ -15,7 +15,8 @@
|
|
|
15
15
|
"@arkyn/shared": "*",
|
|
16
16
|
"@aws-sdk/client-s3": "^3.775.0",
|
|
17
17
|
"@remix-run/node": "^2.16.2",
|
|
18
|
-
"sharp": "^0.33.5"
|
|
18
|
+
"sharp": "^0.33.5",
|
|
19
|
+
"zod": "^3.24.2"
|
|
19
20
|
},
|
|
20
21
|
"devDependencies": {
|
|
21
22
|
"bun-types": "latest",
|
|
@@ -12,12 +12,9 @@ function getCaller() {
|
|
|
12
12
|
let functionName = "Unknown function";
|
|
13
13
|
|
|
14
14
|
for (const line of stackLines) {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
!line.includes("BadRequest")
|
|
19
|
-
) {
|
|
20
|
-
// Captura formatos diferentes de stack trace
|
|
15
|
+
// Ignora chamadas dentro de @arkyn/server
|
|
16
|
+
if (!line.includes("@arkyn/server")) {
|
|
17
|
+
// Captura diferentes formatos de stack trace
|
|
21
18
|
const match = line.match(/at (.+?) \((.+?)\)/) || line.match(/at (.+)/);
|
|
22
19
|
if (match) {
|
|
23
20
|
functionName = match[1].split(" ")[0]; // Nome da função
|