remult 0.20.5-exp.2 → 0.20.5-exp.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/esm/remult-next.js +3 -3
- package/package.json +1 -1
- package/remult-next.js +3 -3
package/esm/remult-next.js
CHANGED
|
@@ -40,8 +40,8 @@ export function remultNextApp(options) {
|
|
|
40
40
|
let result = createRemultServer(options, {
|
|
41
41
|
getRequestBody: req => req.json(),
|
|
42
42
|
buildGenericRequestInfo: (req) => ({
|
|
43
|
-
url: req
|
|
44
|
-
method: req
|
|
43
|
+
url: req?.url,
|
|
44
|
+
method: req?.method,
|
|
45
45
|
on: (e, do1) => {
|
|
46
46
|
if (e === "close") {
|
|
47
47
|
req["_tempOnClose"] = do1;
|
|
@@ -103,6 +103,6 @@ export function remultNextApp(options) {
|
|
|
103
103
|
POST: handler,
|
|
104
104
|
PUT: handler,
|
|
105
105
|
DELETE: handler,
|
|
106
|
-
withRemult: (what) => result.withRemultPromise(
|
|
106
|
+
withRemult: (what) => result.withRemultPromise({}, what),
|
|
107
107
|
};
|
|
108
108
|
}
|
package/package.json
CHANGED
package/remult-next.js
CHANGED
|
@@ -78,8 +78,8 @@ function remultNextApp(options) {
|
|
|
78
78
|
var result = server_1.createRemultServer(options, {
|
|
79
79
|
getRequestBody: function (req) { return req.json(); },
|
|
80
80
|
buildGenericRequestInfo: function (req) { return ({
|
|
81
|
-
url: req.url,
|
|
82
|
-
method: req.method,
|
|
81
|
+
url: req === null || req === void 0 ? void 0 : req.url,
|
|
82
|
+
method: req === null || req === void 0 ? void 0 : req.method,
|
|
83
83
|
on: function (e, do1) {
|
|
84
84
|
if (e === "close") {
|
|
85
85
|
req["_tempOnClose"] = do1;
|
|
@@ -160,7 +160,7 @@ function remultNextApp(options) {
|
|
|
160
160
|
PUT: handler,
|
|
161
161
|
DELETE: handler,
|
|
162
162
|
withRemult: function (what) {
|
|
163
|
-
return result.withRemultPromise(
|
|
163
|
+
return result.withRemultPromise({}, what);
|
|
164
164
|
},
|
|
165
165
|
};
|
|
166
166
|
}
|