gg-express 1.0.151 → 1.0.153
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/v3/GGExpressV3.js +3 -2
- package/package.json +1 -1
- package/src/v3/GGExpressV3.ts +3 -2
package/dist/v3/GGExpressV3.js
CHANGED
|
@@ -49,6 +49,7 @@ class GGExpressV3 {
|
|
|
49
49
|
// (req: Request, res: Response, next: NextFunction) => next(),
|
|
50
50
|
// autoTypeMiddleware,
|
|
51
51
|
(req, res, next) => {
|
|
52
|
+
var _a, _b, _c;
|
|
52
53
|
// console.log("req.url", req.url)
|
|
53
54
|
// if (req.query) console.log("req.query", req.query)
|
|
54
55
|
// if (req.body) console.log("req.body", req.body)
|
|
@@ -64,9 +65,9 @@ class GGExpressV3 {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
catch (error) {
|
|
67
|
-
if (req.body)
|
|
68
|
+
if ((_b = (_a = req.body) === null || _a === void 0 ? void 0 : _a.data) === null || _b === void 0 ? void 0 : _b.data)
|
|
68
69
|
console.log(`req.body.data.data`, req.body.data.data);
|
|
69
|
-
if (req.query)
|
|
70
|
+
if ((_c = req.query) === null || _c === void 0 ? void 0 : _c.data)
|
|
70
71
|
console.log(`req.query.data`, req.query.data);
|
|
71
72
|
new Error(error);
|
|
72
73
|
}
|
package/package.json
CHANGED
package/src/v3/GGExpressV3.ts
CHANGED
|
@@ -126,8 +126,9 @@ export default class GGExpressV3<
|
|
|
126
126
|
)
|
|
127
127
|
}
|
|
128
128
|
} catch (error) {
|
|
129
|
-
if (req.body
|
|
130
|
-
|
|
129
|
+
if (req.body?.data?.data)
|
|
130
|
+
console.log(`req.body.data.data`, req.body.data.data)
|
|
131
|
+
if (req.query?.data) console.log(`req.query.data`, req.query.data)
|
|
131
132
|
new Error(error as any)
|
|
132
133
|
}
|
|
133
134
|
next()
|