@opra/http 1.28.2 → 1.28.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/http-context.js CHANGED
@@ -148,6 +148,7 @@ export class HttpContext extends ExecutionContext {
148
148
  projection: '*',
149
149
  ignoreReadonlyFields: true,
150
150
  allowPatchOperators: __oprDef?.requestBody?.allowPatchOperators,
151
+ allowNullOptionals: __oprDef?.requestBody?.allowNullOptionals,
151
152
  keepKeyFields: __oprDef?.requestBody?.keepKeyFields,
152
153
  });
153
154
  this.__adapter[kAssetCache].set(mediaType, 'decode', decode);
package/http-handler.js CHANGED
@@ -258,7 +258,7 @@ export class HttpHandler {
258
258
  for (const prm of paramsLeft) {
259
259
  key = String(prm.name);
260
260
  // Throw error for required parameters
261
- if (prm.default && typeof prm.name === 'string') {
261
+ if (prm.default !== undefined && typeof prm.name === 'string') {
262
262
  context.queryParams[prm.name] = prm.default;
263
263
  }
264
264
  else if (prm.required) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/http",
3
- "version": "1.28.2",
3
+ "version": "1.28.4",
4
4
  "description": "Opra Http Server Adapter",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -8,7 +8,7 @@
8
8
  "@browsery/antlr4": "^4.13.3-r7",
9
9
  "@browsery/http-parser": "^0.5.10-r3",
10
10
  "@browsery/type-is": "^2.0.2-r1",
11
- "@jsopen/objects": "^2.2.1",
11
+ "@jsopen/objects": "^2.2.2",
12
12
  "accepts": "^1.3.8",
13
13
  "base64-stream": "^1.0.0",
14
14
  "busboy": "^1.6.0",
@@ -33,13 +33,13 @@
33
33
  "toml": "^4.1.1",
34
34
  "tslib": "^2.8.1",
35
35
  "uid": "^2.0.2",
36
- "valgen": "^6.1.0",
36
+ "valgen": "^6.2.0",
37
37
  "vary": "^1.1.2",
38
38
  "yaml": "^2.9.0"
39
39
  },
40
40
  "peerDependencies": {
41
- "@opra/common": "^1.28.2",
42
- "@opra/core": "^1.28.2"
41
+ "@opra/common": "^1.28.4",
42
+ "@opra/core": "^1.28.4"
43
43
  },
44
44
  "optionalDependencies": {
45
45
  "express": "^4.0.0 || ^5.0.0",