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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.13.24",
3
+ "version": "0.13.25",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "homepage": "https://remult.dev/",
6
6
  "repository": {
@@ -582,7 +582,10 @@ var ExpressResponseBridgeToDataApiResponse = /** @class */ (function () {
582
582
  this.req = req;
583
583
  }
584
584
  ExpressResponseBridgeToDataApiResponse.prototype.forbidden = function () {
585
- this.r.sendStatus(403);
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.r.sendStatus(204);
600
+ this.sendStatus(204);
598
601
  };
599
602
  ExpressResponseBridgeToDataApiResponse.prototype.notFound = function () {
600
- this.r.sendStatus(404);
603
+ this.sendStatus(404);
601
604
  };
602
605
  ExpressResponseBridgeToDataApiResponse.prototype.error = function (data) {
603
606
  var _a, _b;