@gustavo-valsechi/node 1.0.30 → 1.0.32
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/dist/index.js +1 -1
- package/dist/index.mjs +1 -1
- package/dist/src/router/index.js +1 -1
- package/dist/src/router/index.mjs +1 -1
- package/dist/src/server/index.js +1 -1
- package/dist/src/server/index.mjs +1 -1
- package/dist/src/tools/index.js +1 -1
- package/dist/src/tools/index.mjs +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -93,7 +93,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
93
93
|
const status = error.statusCode || 500;
|
|
94
94
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
95
95
|
if (error instanceof import_zod.ZodError) {
|
|
96
|
-
response = import_lodash.default.transform(response, (acc, item) => {
|
|
96
|
+
response = import_lodash.default.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
97
97
|
var _a2;
|
|
98
98
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
99
99
|
}, {});
|
package/dist/index.mjs
CHANGED
|
@@ -52,7 +52,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
52
52
|
const status = error.statusCode || 500;
|
|
53
53
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
54
54
|
if (error instanceof ZodError) {
|
|
55
|
-
response = _.transform(response, (acc, item) => {
|
|
55
|
+
response = _.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
56
56
|
var _a2;
|
|
57
57
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
58
58
|
}, {});
|
package/dist/src/router/index.js
CHANGED
|
@@ -47,7 +47,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
47
47
|
const status = error.statusCode || 500;
|
|
48
48
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
49
49
|
if (error instanceof import_zod.ZodError) {
|
|
50
|
-
response = import_lodash.default.transform(response, (acc, item) => {
|
|
50
|
+
response = import_lodash.default.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
51
51
|
var _a2;
|
|
52
52
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
53
53
|
}, {});
|
|
@@ -10,7 +10,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
10
10
|
const status = error.statusCode || 500;
|
|
11
11
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
12
12
|
if (error instanceof ZodError) {
|
|
13
|
-
response = _.transform(response, (acc, item) => {
|
|
13
|
+
response = _.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
14
14
|
var _a2;
|
|
15
15
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
16
16
|
}, {});
|
package/dist/src/server/index.js
CHANGED
|
@@ -48,7 +48,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
48
48
|
const status = error.statusCode || 500;
|
|
49
49
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
50
50
|
if (error instanceof import_zod.ZodError) {
|
|
51
|
-
response = import_lodash.default.transform(response, (acc, item) => {
|
|
51
|
+
response = import_lodash.default.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
52
52
|
var _a2;
|
|
53
53
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
54
54
|
}, {});
|
|
@@ -13,7 +13,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
13
13
|
const status = error.statusCode || 500;
|
|
14
14
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
15
15
|
if (error instanceof ZodError) {
|
|
16
|
-
response = _.transform(response, (acc, item) => {
|
|
16
|
+
response = _.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
17
17
|
var _a2;
|
|
18
18
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
19
19
|
}, {});
|
package/dist/src/tools/index.js
CHANGED
|
@@ -52,7 +52,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
52
52
|
const status = error.statusCode || 500;
|
|
53
53
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
54
54
|
if (error instanceof import_zod.ZodError) {
|
|
55
|
-
response = import_lodash.default.transform(response, (acc, item) => {
|
|
55
|
+
response = import_lodash.default.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
56
56
|
var _a2;
|
|
57
57
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
58
58
|
}, {});
|
package/dist/src/tools/index.mjs
CHANGED
|
@@ -17,7 +17,7 @@ var responseWrapper = async (res, promise) => {
|
|
|
17
17
|
const status = error.statusCode || 500;
|
|
18
18
|
let response = ((_a = error == null ? void 0 : error.response) == null ? void 0 : _a.data) || (error == null ? void 0 : error.message) || error;
|
|
19
19
|
if (error instanceof ZodError) {
|
|
20
|
-
response = _.transform(response, (acc, item) => {
|
|
20
|
+
response = _.transform(JSON.parse(response || "[]"), (acc, item) => {
|
|
21
21
|
var _a2;
|
|
22
22
|
acc[(_a2 = item == null ? void 0 : item.path) == null ? void 0 : _a2.join(",")] = (item == null ? void 0 : item.message) || "";
|
|
23
23
|
}, {});
|