@things-factory/shell 5.0.0-alpha.25 → 5.0.0-alpha.28
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/db.test.sqlite
ADDED
Binary file
|
@@ -32,8 +32,8 @@ function initMiddlewares(app) {
|
|
32
32
|
await next();
|
33
33
|
}
|
34
34
|
catch (err) {
|
35
|
-
context.status = err.status || 500;
|
36
|
-
context.body = err.message;
|
35
|
+
context.status = (err === null || err === void 0 ? void 0 : err.status) || 500;
|
36
|
+
context.body = err === null || err === void 0 ? void 0 : err.message;
|
37
37
|
// emitting error to app.on('error', ...)
|
38
38
|
context.app.emit('error', err, context);
|
39
39
|
}
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAAoD;
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,6CAAoD;AAEpD,2DAAsD;AAEtD,MAAM,KAAK,GAAG,OAAO,CAAC,OAAO,CAAC,CAAC,iCAAiC,CAAC,CAAA;AAEjE,SAAgB,eAAe,CAAC,GAAG;IACjC,GAAG,CAAC,eAAe,GAAG,YAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAEtD,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC/B,YAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACnB,CAAC,CAAC,CAAA;IAEF;;;OAGG;IACH,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,IAAI;YACF,MAAM,IAAI,EAAE,CAAA;SACb;QAAC,OAAO,GAAG,EAAE;YACZ,OAAO,CAAC,MAAM,GAAG,CAAA,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,MAAM,KAAI,GAAG,CAAA;YACnC,OAAO,CAAC,IAAI,GAAG,GAAG,aAAH,GAAG,uBAAH,GAAG,CAAE,OAAO,CAAA;YAE3B,yCAAyC;YACzC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAA;SACxC;IACH,CAAC,CAAC,CAAA;IAEF;;;OAGG;IACH,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;QAEhC,IAAI,MAAM,IAAI,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE;YACnD,OAAO,MAAM,IAAA,oCAAgB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;SAC7C;QAED,MAAM,IAAI,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACJ,CAAC;AApCD,0CAoCC;AAED,OAAO,CAAC,EAAE,CAAC,+BAAsC,EAAE,CAAC,GAAG,EAAE,sBAAsB,EAAE,EAAE;IACjF,KAAK,CAAC,+BAA+B,CAAC,CAAA;IAEtC,sBAAsB,CAAC,IAAI,CAAC,oCAAgB,CAAC,CAAA;AAC/C,CAAC,CAAC,CAAA;AAEF,sDAAmC"}
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@things-factory/shell",
|
3
|
-
"version": "5.0.0-alpha.
|
3
|
+
"version": "5.0.0-alpha.28",
|
4
4
|
"description": "Core module for framework",
|
5
5
|
"bin": {
|
6
6
|
"things-factory": "bin/things-factory",
|
@@ -44,16 +44,16 @@
|
|
44
44
|
"@material/mwc-icon-button": "^0.25.3",
|
45
45
|
"@material/mwc-slider": "^0.25.3",
|
46
46
|
"@material/mwc-textfield": "^0.25.3",
|
47
|
-
"@operato/board": "1.0.0-alpha.
|
48
|
-
"@operato/graphql": "1.0.0-alpha.
|
49
|
-
"@operato/help": "1.0.0-alpha.
|
50
|
-
"@operato/layout": "1.0.0-alpha.
|
51
|
-
"@operato/shell": "1.0.0-alpha.
|
52
|
-
"@operato/utils": "1.0.0-alpha.
|
53
|
-
"@things-factory/ejs-remote": "^5.0.0-alpha.
|
54
|
-
"@things-factory/env": "^5.0.0-alpha.
|
55
|
-
"@things-factory/styles": "^5.0.0-alpha.
|
56
|
-
"@things-factory/utils": "^5.0.0-alpha.
|
47
|
+
"@operato/board": "1.0.0-alpha.51",
|
48
|
+
"@operato/graphql": "1.0.0-alpha.51",
|
49
|
+
"@operato/help": "1.0.0-alpha.51",
|
50
|
+
"@operato/layout": "1.0.0-alpha.51",
|
51
|
+
"@operato/shell": "1.0.0-alpha.51",
|
52
|
+
"@operato/utils": "1.0.0-alpha.51",
|
53
|
+
"@things-factory/ejs-remote": "^5.0.0-alpha.28",
|
54
|
+
"@things-factory/env": "^5.0.0-alpha.28",
|
55
|
+
"@things-factory/styles": "^5.0.0-alpha.28",
|
56
|
+
"@things-factory/utils": "^5.0.0-alpha.28",
|
57
57
|
"@webcomponents/webcomponentsjs": "^2.6.0",
|
58
58
|
"@webpack-contrib/schema-utils": "^1.0.0-beta.0",
|
59
59
|
"apollo-server-core": "^3.6.4",
|
@@ -63,7 +63,7 @@
|
|
63
63
|
"args": "^5.0.0",
|
64
64
|
"broadcastchannel-polyfill": "^1.0.1",
|
65
65
|
"chalk": "^4.1.0",
|
66
|
-
"class-validator": "^0.
|
66
|
+
"class-validator": "^0.13.2",
|
67
67
|
"core-js": "^3.16.0",
|
68
68
|
"csvtojson": "^2.0.10",
|
69
69
|
"debug": "^4.1.1",
|
@@ -77,7 +77,7 @@
|
|
77
77
|
"graphql-tag": "^2.12.6",
|
78
78
|
"graphql-upload": "^13.0.0",
|
79
79
|
"haunted": "^4.8.2",
|
80
|
-
"html-webpack-plugin": "^
|
80
|
+
"html-webpack-plugin": "^5.5.0",
|
81
81
|
"husky": "7.0.1",
|
82
82
|
"imports-loader": "^3.0.0",
|
83
83
|
"inquirer": "^8.2.0",
|
@@ -92,14 +92,13 @@
|
|
92
92
|
"koa-static": "^5.0.0",
|
93
93
|
"koa-unless": "^1.0.7",
|
94
94
|
"koa2-connect-history-api-fallback": "^0.1.2",
|
95
|
-
"lit": "^2.2.
|
95
|
+
"lit": "^2.2.1",
|
96
96
|
"loader-utils": "^2.0.0",
|
97
97
|
"lodash": "^4.17.15",
|
98
98
|
"lodash-es": "^4.17.15",
|
99
99
|
"mkdirp": "^1.0.3",
|
100
100
|
"mqtt": "^4.3.4",
|
101
101
|
"node-fetch": "^2.6.0",
|
102
|
-
"node-sass": "^6.0.1",
|
103
102
|
"nodemon": "^2.0.2",
|
104
103
|
"npm-license-crawler": "^0.2.1",
|
105
104
|
"pluralize": "^8.0.0",
|
@@ -109,6 +108,7 @@
|
|
109
108
|
"redux-thunk": "^2.3.0",
|
110
109
|
"regenerator-runtime": "^0.13.2",
|
111
110
|
"reselect": "^4.0.0",
|
111
|
+
"sass": "^1.49.11",
|
112
112
|
"scrollbooster": "^3.0.2",
|
113
113
|
"subscriptions-transport-ws": "^0.11.0",
|
114
114
|
"sweetalert2": "^10.9.0",
|
@@ -129,5 +129,5 @@
|
|
129
129
|
"resolutions": {
|
130
130
|
"core-js": "^3.16.0"
|
131
131
|
},
|
132
|
-
"gitHead": "
|
132
|
+
"gitHead": "9adb6cdfd07c7730800f84a2d532d96f0f436288"
|
133
133
|
}
|
@@ -1,4 +1,5 @@
|
|
1
1
|
import { config, logger } from '@things-factory/env'
|
2
|
+
|
2
3
|
import { domainMiddleware } from './domain-middleware'
|
3
4
|
|
4
5
|
const debug = require('debug')('things-factory:shell:middleware')
|
@@ -18,8 +19,8 @@ export function initMiddlewares(app) {
|
|
18
19
|
try {
|
19
20
|
await next()
|
20
21
|
} catch (err) {
|
21
|
-
context.status = err
|
22
|
-
context.body = err
|
22
|
+
context.status = err?.status || 500
|
23
|
+
context.body = err?.message
|
23
24
|
|
24
25
|
// emitting error to app.on('error', ...)
|
25
26
|
context.app.emit('error', err, context)
|