@opra/http 1.17.6 → 1.17.7
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/cjs/http-handler.js +3 -1
- package/esm/http-handler.js +3 -1
- package/package.json +3 -3
package/cjs/http-handler.js
CHANGED
|
@@ -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
|
}
|
package/esm/http-handler.js
CHANGED
|
@@ -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.
|
|
3
|
+
"version": "1.17.7",
|
|
4
4
|
"description": "Opra Http Server Adapter",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -35,8 +35,8 @@
|
|
|
35
35
|
"vary": "^1.1.2"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@opra/common": "^1.17.
|
|
39
|
-
"@opra/core": "^1.17.
|
|
38
|
+
"@opra/common": "^1.17.7",
|
|
39
|
+
"@opra/core": "^1.17.7"
|
|
40
40
|
},
|
|
41
41
|
"optionalDependencies": {
|
|
42
42
|
"express": "^4.0.0 || ^5.0.0",
|