lixnet 1.3.6 → 1.3.7

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.
@@ -94,7 +94,7 @@ export default class LixnetServer {
94
94
  response.error("Invalid input");
95
95
  return response.format();
96
96
  }
97
- response.error("Invalid input");
97
+ response.error("Handler error");
98
98
  return response.format();
99
99
  }
100
100
  }
@@ -51,6 +51,14 @@ export default function (defaultHeaders) {
51
51
  throw new Error(`Unknown cookie type: ${cookie.type}`);
52
52
  }
53
53
  }
54
+ if (this.responseError) {
55
+ return Response.json({
56
+ error: this.responseError,
57
+ }, {
58
+ status: this.responseCode ?? 500,
59
+ headers: headers,
60
+ });
61
+ }
54
62
  return Response.json({
55
63
  data: this.responseData,
56
64
  }, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "lixnet",
3
- "version": "1.3.6",
3
+ "version": "1.3.7",
4
4
  "author": "nitlix",
5
5
  "license": "MIT",
6
6
  "repository": {