resora 1.2.0 → 1.2.2

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/index.cjs CHANGED
@@ -1396,7 +1396,7 @@ var ServerResponse = class {
1396
1396
  this.response.status(this._status);
1397
1397
  this.response.__resoraStatus = this._status;
1398
1398
  } else if ("status" in this.response && typeof this.response.status !== "function") this.response.status = this._status;
1399
- if ("body" in this.response) {
1399
+ if ("body" in this.response && typeof this.response.body !== "function") {
1400
1400
  this.response.body = this.body;
1401
1401
  this.response.__resoraStatus = this._status;
1402
1402
  }
package/dist/index.mjs CHANGED
@@ -1367,7 +1367,7 @@ var ServerResponse = class {
1367
1367
  this.response.status(this._status);
1368
1368
  this.response.__resoraStatus = this._status;
1369
1369
  } else if ("status" in this.response && typeof this.response.status !== "function") this.response.status = this._status;
1370
- if ("body" in this.response) {
1370
+ if ("body" in this.response && typeof this.response.body !== "function") {
1371
1371
  this.response.body = this.body;
1372
1372
  this.response.__resoraStatus = this._status;
1373
1373
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "resora",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "A structured API response layer for Node.js and TypeScript with automatic JSON responses, collection support, and pagination handling.",
5
5
  "keywords": [
6
6
  "api",
@@ -51,7 +51,7 @@
51
51
  "@types/express": "^4.17.21",
52
52
  "@types/node": "^20.10.6",
53
53
  "@vitest/coverage-v8": "4.0.18",
54
- "arkormx": "^0.2.6",
54
+ "arkormx": "^2.0.9",
55
55
  "barrelize": "^1.7.3",
56
56
  "eslint": "^10.0.0",
57
57
  "express": "^5.1.0",
@@ -61,8 +61,9 @@
61
61
  "tsx": "^4.21.0",
62
62
  "typescript": "^5.3.3",
63
63
  "typescript-eslint": "^8.56.0",
64
+ "unrun": "^0.3.0",
64
65
  "vite-tsconfig-paths": "^6.1.1",
65
- "vitepress": "2.0.0-alpha.16",
66
+ "vitepress": "^2.0.0-alpha.17",
66
67
  "vitest": "^4.0.18",
67
68
  "vue": "^3.5.28"
68
69
  },