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.
@@ -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.url,
44
- method: req.method,
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(undefined, what),
106
+ withRemult: (what) => result.withRemultPromise({}, what),
107
107
  };
108
108
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "remult",
3
- "version": "0.20.5-exp.2",
3
+ "version": "0.20.5-exp.4",
4
4
  "description": "A CRUD framework for full-stack TypeScript",
5
5
  "types": "index.d.ts",
6
6
  "module": "esm/index.js",
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(undefined, what);
163
+ return result.withRemultPromise({}, what);
164
164
  },
165
165
  };
166
166
  }