@opra/http 1.4.0 → 1.4.2

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.
@@ -96,6 +96,7 @@ class HttpContext extends core_1.ExecutionContext {
96
96
  partial: operation?.requestBody?.partial,
97
97
  projection: '*',
98
98
  ignoreReadonlyFields: true,
99
+ allowPatchOperators: operation?.requestBody?.allowPatchOperators,
99
100
  }) || valgen_1.vg.isAny();
100
101
  this.adapter[core_1.kAssetCache].set(mediaType, 'decode', decode);
101
102
  }
@@ -28,7 +28,7 @@ class BodyReader extends events_1.EventEmitter {
28
28
  this.limit = options?.limit
29
29
  ? typeof options.limit === 'number'
30
30
  ? options.limit
31
- : (0, bytes_1.default)(options.limit)
31
+ : (0, bytes_1.default)(options.limit) || undefined
32
32
  : undefined;
33
33
  }
34
34
  async read() {
@@ -92,6 +92,7 @@ export class HttpContext extends ExecutionContext {
92
92
  partial: operation?.requestBody?.partial,
93
93
  projection: '*',
94
94
  ignoreReadonlyFields: true,
95
+ allowPatchOperators: operation?.requestBody?.allowPatchOperators,
95
96
  }) || vg.isAny();
96
97
  this.adapter[kAssetCache].set(mediaType, 'decode', decode);
97
98
  }
@@ -24,7 +24,7 @@ export class BodyReader extends EventEmitter {
24
24
  this.limit = options?.limit
25
25
  ? typeof options.limit === 'number'
26
26
  ? options.limit
27
- : byteParser(options.limit)
27
+ : byteParser(options.limit) || undefined
28
28
  : undefined;
29
29
  }
30
30
  async read() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/http",
3
- "version": "1.4.0",
3
+ "version": "1.4.2",
4
4
  "description": "Opra Http Server Adapter",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -9,8 +9,8 @@
9
9
  "@browsery/http-parser": "^0.5.9-r1",
10
10
  "@browsery/type-is": "^1.6.18-r5",
11
11
  "@jsopen/objects": "^1.5.0",
12
- "@opra/common": "^1.4.0",
13
- "@opra/core": "^1.4.0",
12
+ "@opra/common": "^1.4.2",
13
+ "@opra/core": "^1.4.2",
14
14
  "accepts": "^1.3.8",
15
15
  "base64-stream": "^1.0.0",
16
16
  "busboy": "^1.6.0",