c2-http 1.0.157 → 1.0.158
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/model/Controller.js +1 -1
- package/package.json +1 -1
package/dist/model/Controller.js
CHANGED
|
@@ -61,7 +61,7 @@ function HttpDispatchHandling(target, methodName, descriptor) {
|
|
|
61
61
|
try {
|
|
62
62
|
const blockedDate = express_http_context_1.default.get("accountBlockDate");
|
|
63
63
|
if (blockedDate && (0, moment_1.default)().isAfter((0, moment_1.default)(blockedDate))) {
|
|
64
|
-
return response.status(http_status_1.PAYMENT_REQUIRED);
|
|
64
|
+
return response.status(http_status_1.PAYMENT_REQUIRED).end();
|
|
65
65
|
}
|
|
66
66
|
const returnHttp = await originalMethod.apply(this, args);
|
|
67
67
|
return response.status(returnHttp[0]).json(returnHttp[1]);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.158",
|
|
4
4
|
"description": "Biblioteca Typescript para API NodeJS",
|
|
5
5
|
"repository": "https://cabralsilva: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@github.com/cabralsilva/c2-http.git",
|
|
6
6
|
"author": "Daniel Cabral <cabralconsultoriaemsoftware@gmail.com>",
|