@rdyl/node-koa-controller 0.3.7 → 0.3.8

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/CHANGELOG.md CHANGED
@@ -1,4 +1,4 @@
1
- ## 0.3.6 (2025-09-05)
1
+ ## 0.3.7 (2025-09-05)
2
2
 
3
3
 
4
4
 
package/dist/meta.js CHANGED
@@ -135,6 +135,10 @@ var BaseController = /** @class */ (function () {
135
135
  _this._ctx.body = body;
136
136
  };
137
137
  return {
138
+ raw: function (body) {
139
+ _this._ctx.status = 200;
140
+ _this._ctx.body = body;
141
+ },
138
142
  ok: function (data) {
139
143
  sendJson({ data: data, code: 200, msg: "ok" });
140
144
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdyl/node-koa-controller",
3
- "version": "0.3.7",
3
+ "version": "0.3.8",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "types": "types/index.d.ts",
package/types/meta.d.ts CHANGED
@@ -30,6 +30,7 @@ export declare class BaseController {
30
30
  get body(): any;
31
31
  files(): Promise<import("formidable").Files | undefined>;
32
32
  get status(): {
33
+ raw: (body?: unknown) => void;
33
34
  ok(data?: unknown): void;
34
35
  okCreated(data: unknown, msg?: string): void;
35
36
  okAccept(data: unknown, msg?: string): void;