@opra/http 1.17.6 → 1.19.0

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.
@@ -506,7 +506,9 @@ class HttpHandler {
506
506
  let responseBody = this[core_1.kAssetCache].get(doc, `$schema`);
507
507
  /** Create response if response cache does not exists */
508
508
  if (!responseBody) {
509
- const schema = doc.export();
509
+ const schema = doc.export({
510
+ scope: this.adapter.scope,
511
+ });
510
512
  responseBody = JSON.stringify(schema);
511
513
  this[core_1.kAssetCache].set(doc, `$schema`, responseBody);
512
514
  }
@@ -502,7 +502,9 @@ export class HttpHandler {
502
502
  let responseBody = this[kAssetCache].get(doc, `$schema`);
503
503
  /** Create response if response cache does not exists */
504
504
  if (!responseBody) {
505
- const schema = doc.export();
505
+ const schema = doc.export({
506
+ scope: this.adapter.scope,
507
+ });
506
508
  responseBody = JSON.stringify(schema);
507
509
  this[kAssetCache].set(doc, `$schema`, responseBody);
508
510
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/http",
3
- "version": "1.17.6",
3
+ "version": "1.19.0",
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-r4",
9
9
  "@browsery/http-parser": "^0.5.9-r4",
10
10
  "@browsery/type-is": "^1.6.18-r8",
11
- "@jsopen/objects": "^1.6.2",
11
+ "@jsopen/objects": "^1.6.3",
12
12
  "accepts": "^1.3.8",
13
13
  "base64-stream": "^1.0.0",
14
14
  "busboy": "^1.6.0",
@@ -18,7 +18,7 @@
18
18
  "cookie": "^1.0.2",
19
19
  "cookie-signature": "^1.2.2",
20
20
  "encodeurl": "^2.0.0",
21
- "expect": "^30.0.2",
21
+ "expect": "^30.0.5",
22
22
  "fast-tokenizer": "^1.7.0",
23
23
  "fresh": "^0.5.2",
24
24
  "iconv-lite": "^0.6.3",
@@ -31,12 +31,12 @@
31
31
  "reflect-metadata": "^0.2.2",
32
32
  "super-fast-md5": "^1.0.3",
33
33
  "tslib": "^2.8.1",
34
- "valgen": "^5.15.2",
34
+ "valgen": "^5.17.1",
35
35
  "vary": "^1.1.2"
36
36
  },
37
37
  "peerDependencies": {
38
- "@opra/common": "^1.17.6",
39
- "@opra/core": "^1.17.6"
38
+ "@opra/common": "^1.19.0",
39
+ "@opra/core": "^1.19.0"
40
40
  },
41
41
  "optionalDependencies": {
42
42
  "express": "^4.0.0 || ^5.0.0",