tsondb 0.20.3 → 0.20.4
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/src/node/schema/dsl/declarations/EntityDecl.js +0 -1
- package/dist/src/node/utils/error.js +1 -1
- package/dist/src/web/web.js +6615 -1
- package/package.json +17 -17
- package/dist/src/web/488.js +0 -6633
- package/dist/src/web/prerender.js +0 -422
|
@@ -9,7 +9,6 @@ export const EntityDecl = (sourceUrl, options) => {
|
|
|
9
9
|
return {
|
|
10
10
|
...options,
|
|
11
11
|
instanceDisplayNameCustomizer: options.instanceDisplayNameCustomizer, // ignore contravariance of registered entity type
|
|
12
|
-
customConstraints: options.customConstraints, // ignore contravariance of registered entity type
|
|
13
12
|
kind: NodeKind.EntityDecl,
|
|
14
13
|
sourceUrl,
|
|
15
14
|
parameters: [],
|
|
@@ -43,7 +43,7 @@ export const sendErrorResponse = (res, error) => {
|
|
|
43
43
|
res.status(error.code).send(error.message);
|
|
44
44
|
}
|
|
45
45
|
else if (error instanceof Error) {
|
|
46
|
-
res.status(500).send(error
|
|
46
|
+
res.status(500).send(getErrorMessageForDisplay(error));
|
|
47
47
|
}
|
|
48
48
|
else {
|
|
49
49
|
res.status(500).send(String(error));
|