remult 0.20.0-exp.2 → 0.20.0-exp.3
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.
|
@@ -255,7 +255,7 @@ export class RemultServerImplementation {
|
|
|
255
255
|
}
|
|
256
256
|
process(what) {
|
|
257
257
|
return async (req, origRes) => {
|
|
258
|
-
let myReq = new ExpressRequestBridgeToDataApiRequest(req);
|
|
258
|
+
let myReq = new ExpressRequestBridgeToDataApiRequest(this.coreOptions.buildGenericRequest(req));
|
|
259
259
|
let myRes = new ExpressResponseBridgeToDataApiResponse(origRes, req);
|
|
260
260
|
await this.runWithRemult(async (remult) => {
|
|
261
261
|
remult.liveQueryPublisher = new LiveQueryPublisher(() => remult.subscriptionServer, () => remult.liveQueryStorage, this.runWithSerializedJsonContextData);
|
|
@@ -892,7 +892,7 @@ class RouteImplementation {
|
|
|
892
892
|
if (!req.params)
|
|
893
893
|
req.params = {};
|
|
894
894
|
req.params.id = path.substring(idPosition + 1);
|
|
895
|
-
h(
|
|
895
|
+
h(origReq, res, next);
|
|
896
896
|
return;
|
|
897
897
|
}
|
|
898
898
|
}
|
package/package.json
CHANGED
package/server/expressBridge.js
CHANGED
|
@@ -477,7 +477,7 @@ var RemultServerImplementation = /** @class */ (function () {
|
|
|
477
477
|
return tslib_1.__generator(this, function (_a) {
|
|
478
478
|
switch (_a.label) {
|
|
479
479
|
case 0:
|
|
480
|
-
myReq = new ExpressRequestBridgeToDataApiRequest(req);
|
|
480
|
+
myReq = new ExpressRequestBridgeToDataApiRequest(this.coreOptions.buildGenericRequest(req));
|
|
481
481
|
myRes = new ExpressResponseBridgeToDataApiResponse(origRes, req);
|
|
482
482
|
return [4 /*yield*/, this.runWithRemult(function (remult) { return tslib_1.__awaiter(_this, void 0, void 0, function () {
|
|
483
483
|
var _a, user;
|
|
@@ -1266,7 +1266,7 @@ var RouteImplementation = /** @class */ (function () {
|
|
|
1266
1266
|
if (!req.params)
|
|
1267
1267
|
req.params = {};
|
|
1268
1268
|
req.params.id = path.substring(idPosition + 1);
|
|
1269
|
-
h(
|
|
1269
|
+
h(origReq, res, next);
|
|
1270
1270
|
return;
|
|
1271
1271
|
}
|
|
1272
1272
|
}
|