remult 0.27.10 → 0.27.11
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/esm/server/remult-api-server.js +1 -1
- package/esm/src/data-api.js +1 -1
- package/esm/src/remult3/remult3.js +7 -0
- package/package.json +1 -1
- package/server/remult-api-server.d.ts +1 -1
- package/server/remult-api-server.js +1 -1
- package/src/data-api.js +1 -1
- package/src/remult3/remult3.js +7 -0
package/esm/src/data-api.js
CHANGED
|
@@ -7,6 +7,13 @@ export const GroupByOperators = [
|
|
|
7
7
|
'max',
|
|
8
8
|
'distinctCount',
|
|
9
9
|
];
|
|
10
|
+
const wn = [{ n: 1 }, { n: { $gt: 1 } }];
|
|
11
|
+
const wnu = [{ nu: 1 }, { nu: { $gt: 1 } }];
|
|
12
|
+
const wnn = [
|
|
13
|
+
{ nn: 1 },
|
|
14
|
+
{ nn: { $gt: 1 } },
|
|
15
|
+
{ nn: null },
|
|
16
|
+
];
|
|
10
17
|
export const flags = {
|
|
11
18
|
error500RetryCount: 4,
|
|
12
19
|
};
|
package/package.json
CHANGED
|
@@ -73,7 +73,7 @@ export interface RemultServerOptions<RequestType> {
|
|
|
73
73
|
* @example
|
|
74
74
|
* export const api = remultExpress({
|
|
75
75
|
* error: async (e) => {
|
|
76
|
-
* if (e.httpStatusCode ==
|
|
76
|
+
* if (e.httpStatusCode == 400) {
|
|
77
77
|
* e.sendError(500, { message: "An error occurred" })
|
|
78
78
|
* }
|
|
79
79
|
* }
|
package/src/data-api.js
CHANGED
|
@@ -578,7 +578,7 @@ var DataApi = /** @class */ (function () {
|
|
|
578
578
|
response.error({
|
|
579
579
|
message: "id \"".concat(id, "\" is not unique for entity ") +
|
|
580
580
|
this.repository.metadata.key,
|
|
581
|
-
}, this.repository.metadata,
|
|
581
|
+
}, this.repository.metadata, 400);
|
|
582
582
|
return [3 /*break*/, 4];
|
|
583
583
|
case 2: return [4 /*yield*/, what(r[0])];
|
|
584
584
|
case 3:
|
package/src/remult3/remult3.js
CHANGED
|
@@ -10,6 +10,13 @@ exports.GroupByOperators = [
|
|
|
10
10
|
'max',
|
|
11
11
|
'distinctCount',
|
|
12
12
|
];
|
|
13
|
+
var wn = [{ n: 1 }, { n: { $gt: 1 } }];
|
|
14
|
+
var wnu = [{ nu: 1 }, { nu: { $gt: 1 } }];
|
|
15
|
+
var wnn = [
|
|
16
|
+
{ nn: 1 },
|
|
17
|
+
{ nn: { $gt: 1 } },
|
|
18
|
+
{ nn: null },
|
|
19
|
+
];
|
|
13
20
|
exports.flags = {
|
|
14
21
|
error500RetryCount: 4,
|
|
15
22
|
};
|