remult 0.14.14 → 0.14.15
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/expressBridge.d.ts +2 -1
- package/esm/server/expressBridge.js +1 -1
- package/esm/src/backend-tests/test-http-server.backend-spec.js +1 -3
- package/package.json +1 -1
- package/{README.md → readme.md} +0 -0
- package/server/expressBridge.d.ts +2 -1
- package/server/expressBridge.js +1 -1
- package/src/backend-tests/test-http-server.backend-spec.js +1 -3
- package/esm/postgres/postgresColumnSyntax.d.ts +0 -2
- package/esm/postgres/postgresColumnSyntax.js +0 -30
|
@@ -39,8 +39,9 @@ export interface GenericRequest {
|
|
|
39
39
|
params: any;
|
|
40
40
|
}
|
|
41
41
|
export interface GenericResponse {
|
|
42
|
-
statusCode: number;
|
|
43
42
|
json(data: any): any;
|
|
43
|
+
statusCode: number;
|
|
44
|
+
end(): any;
|
|
44
45
|
}
|
|
45
46
|
export declare type GenericRouter = GenericRequestHandler & {
|
|
46
47
|
route(path: string): SpecificRoute;
|
package/package.json
CHANGED
package/{README.md → readme.md}
RENAMED
|
File without changes
|
|
@@ -39,8 +39,9 @@ export interface GenericRequest {
|
|
|
39
39
|
params: any;
|
|
40
40
|
}
|
|
41
41
|
export interface GenericResponse {
|
|
42
|
-
statusCode: number;
|
|
43
42
|
json(data: any): any;
|
|
43
|
+
statusCode: number;
|
|
44
|
+
end(): any;
|
|
44
45
|
}
|
|
45
46
|
export declare type GenericRouter = GenericRequestHandler & {
|
|
46
47
|
route(path: string): SpecificRoute;
|
package/server/expressBridge.js
CHANGED
|
@@ -581,7 +581,7 @@ var ExpressResponseBridgeToDataApiResponse = /** @class */ (function () {
|
|
|
581
581
|
};
|
|
582
582
|
ExpressResponseBridgeToDataApiResponse.prototype.sendStatus = function (status) {
|
|
583
583
|
this.r.statusCode = status;
|
|
584
|
-
this.r.
|
|
584
|
+
this.r.end();
|
|
585
585
|
};
|
|
586
586
|
ExpressResponseBridgeToDataApiResponse.prototype.progress = function (progress) {
|
|
587
587
|
};
|
|
@@ -96,9 +96,7 @@ fit("forbidden", function () { return tslib_1.__awaiter(void 0, void 0, void 0,
|
|
|
96
96
|
err = error_2;
|
|
97
97
|
return [3 /*break*/, 4];
|
|
98
98
|
case 4:
|
|
99
|
-
expect(err).toEqual(
|
|
100
|
-
httpStatusCode: 403
|
|
101
|
-
});
|
|
99
|
+
expect(err.httpStatusCode).toEqual(403);
|
|
102
100
|
return [2 /*return*/];
|
|
103
101
|
}
|
|
104
102
|
});
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { ValueConverters } from '../valueConverters';
|
|
2
|
-
export function postgresColumnSyntax(x, dbName) {
|
|
3
|
-
let result = dbName;
|
|
4
|
-
if (x.valueType == Number) {
|
|
5
|
-
if (!x.valueConverter.fieldTypeInDb)
|
|
6
|
-
result += " numeric" + (x.allowNull ? "" : " default 0 not null");
|
|
7
|
-
else
|
|
8
|
-
result += " " + x.valueConverter.fieldTypeInDb + (x.allowNull ? "" : " default 0 not null");
|
|
9
|
-
}
|
|
10
|
-
else if (x.valueType == Date) {
|
|
11
|
-
if (!x.valueConverter.fieldTypeInDb)
|
|
12
|
-
if (x.valueConverter == ValueConverters.DateOnly)
|
|
13
|
-
result += " date";
|
|
14
|
-
else
|
|
15
|
-
result += " timestamp";
|
|
16
|
-
else
|
|
17
|
-
result += " " + x.valueConverter.fieldTypeInDb;
|
|
18
|
-
}
|
|
19
|
-
else if (x.valueType == Boolean)
|
|
20
|
-
result += " boolean" + (x.allowNull ? "" : " default false not null");
|
|
21
|
-
else if (x.valueConverter.fieldTypeInDb) {
|
|
22
|
-
result += " " + x.valueConverter.fieldTypeInDb;
|
|
23
|
-
if (!x.allowNull && x.valueConverter.fieldTypeInDb == 'integer') {
|
|
24
|
-
result += " default 0 not null";
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
else
|
|
28
|
-
result += " varchar" + (x.allowNull ? "" : " default '' not null");
|
|
29
|
-
return result;
|
|
30
|
-
}
|