@steedos/service-api 2.5.3-beta.23 → 2.5.3-beta.26
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/index.js +6 -2
- package/package.json +6 -6
package/index.js
CHANGED
|
@@ -212,7 +212,7 @@ module.exports = {
|
|
|
212
212
|
path: "/api/v1",
|
|
213
213
|
|
|
214
214
|
whitelist: [
|
|
215
|
-
"
|
|
215
|
+
"rest.*",
|
|
216
216
|
],
|
|
217
217
|
|
|
218
218
|
// Route-level Express middlewares. More info: https://moleculer.services/docs/0.14/moleculer-web.html#Middlewares
|
|
@@ -284,7 +284,11 @@ module.exports = {
|
|
|
284
284
|
onError(req, res, err) {
|
|
285
285
|
res.setHeader("Content-Type", "application/json; charset=utf-8");
|
|
286
286
|
res.writeHead(err.code || 500);
|
|
287
|
-
res.end(JSON.stringify({
|
|
287
|
+
res.end(JSON.stringify({
|
|
288
|
+
"status": -1,
|
|
289
|
+
"msg": err.message,
|
|
290
|
+
"data": {}
|
|
291
|
+
}));
|
|
288
292
|
}
|
|
289
293
|
}
|
|
290
294
|
],
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@steedos/service-api",
|
|
3
|
-
"version": "2.5.3-beta.
|
|
3
|
+
"version": "2.5.3-beta.26",
|
|
4
4
|
"main": "index.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"dependencies": {
|
|
7
|
-
"@steedos/auth": "2.5.3-beta.
|
|
8
|
-
"@steedos/router": "2.5.3-beta.
|
|
9
|
-
"@steedos/service-object-graphql": "2.5.3-beta.
|
|
10
|
-
"@steedos/service-ui": "2.5.3-beta.
|
|
7
|
+
"@steedos/auth": "2.5.3-beta.26",
|
|
8
|
+
"@steedos/router": "2.5.3-beta.26",
|
|
9
|
+
"@steedos/service-object-graphql": "2.5.3-beta.26",
|
|
10
|
+
"@steedos/service-ui": "2.5.3-beta.26",
|
|
11
11
|
"graphql": "^15.8.0",
|
|
12
12
|
"graphql-iso-date": "^3.6.1",
|
|
13
13
|
"graphql-type-json": "^0.3.2",
|
|
@@ -19,5 +19,5 @@
|
|
|
19
19
|
"publishConfig": {
|
|
20
20
|
"access": "public"
|
|
21
21
|
},
|
|
22
|
-
"gitHead": "
|
|
22
|
+
"gitHead": "4a93161d2d00ecd33e7e63fe478980bc6b1fb75b"
|
|
23
23
|
}
|