c2-http 1.0.159 → 1.0.160
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
|
@@ -102,7 +102,7 @@ function HttpDispatchDownload(target, methodName, descriptor) {
|
|
|
102
102
|
try {
|
|
103
103
|
const blockedDate = express_http_context_1.default.get("accountBlockDate");
|
|
104
104
|
if (blockedDate && (0, moment_1.default)().isAfter((0, moment_1.default)(blockedDate))) {
|
|
105
|
-
return response.status(http_status_1.PAYMENT_REQUIRED);
|
|
105
|
+
return response.status(http_status_1.PAYMENT_REQUIRED).end();
|
|
106
106
|
}
|
|
107
107
|
const [status, data] = await originalMethod.apply(this, args);
|
|
108
108
|
return response.status(status).send(data);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "c2-http",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.160",
|
|
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>",
|