remult 0.13.24 → 0.13.25
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 +1 -1
- package/server/expressBridge.js +6 -3
package/package.json
CHANGED
package/server/expressBridge.js
CHANGED
|
@@ -582,7 +582,10 @@ var ExpressResponseBridgeToDataApiResponse = /** @class */ (function () {
|
|
|
582
582
|
this.req = req;
|
|
583
583
|
}
|
|
584
584
|
ExpressResponseBridgeToDataApiResponse.prototype.forbidden = function () {
|
|
585
|
-
this.
|
|
585
|
+
this.sendStatus(403);
|
|
586
|
+
};
|
|
587
|
+
ExpressResponseBridgeToDataApiResponse.prototype.sendStatus = function (status) {
|
|
588
|
+
this.r.writeHead(status).end();
|
|
586
589
|
};
|
|
587
590
|
ExpressResponseBridgeToDataApiResponse.prototype.progress = function (progress) {
|
|
588
591
|
};
|
|
@@ -594,10 +597,10 @@ var ExpressResponseBridgeToDataApiResponse = /** @class */ (function () {
|
|
|
594
597
|
this.r.json(data);
|
|
595
598
|
};
|
|
596
599
|
ExpressResponseBridgeToDataApiResponse.prototype.deleted = function () {
|
|
597
|
-
this.
|
|
600
|
+
this.sendStatus(204);
|
|
598
601
|
};
|
|
599
602
|
ExpressResponseBridgeToDataApiResponse.prototype.notFound = function () {
|
|
600
|
-
this.
|
|
603
|
+
this.sendStatus(404);
|
|
601
604
|
};
|
|
602
605
|
ExpressResponseBridgeToDataApiResponse.prototype.error = function (data) {
|
|
603
606
|
var _a, _b;
|