@opra/core 0.33.8 → 0.33.10
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.
|
@@ -623,7 +623,7 @@ class HttpAdapterHost extends platform_adapter_host_js_1.PlatformAdapterHost {
|
|
|
623
623
|
if (returnType) {
|
|
624
624
|
if (response.value == null)
|
|
625
625
|
throw new common_1.InternalServerError(`"${request.endpoint.name}" endpoint should return value`);
|
|
626
|
-
if (!returnType.
|
|
626
|
+
if (!returnType.isEmbedded) {
|
|
627
627
|
const ns = this.api.getDataTypeNs(returnType);
|
|
628
628
|
// const isOpraSpec = returnType.document.url?.startsWith('https://oprajs.com/spec/v1.0')
|
|
629
629
|
body.type = (ns ? ns + ':' : '') + returnType.name;
|
|
@@ -619,7 +619,7 @@ export class HttpAdapterHost extends PlatformAdapterHost {
|
|
|
619
619
|
if (returnType) {
|
|
620
620
|
if (response.value == null)
|
|
621
621
|
throw new InternalServerError(`"${request.endpoint.name}" endpoint should return value`);
|
|
622
|
-
if (!returnType.
|
|
622
|
+
if (!returnType.isEmbedded) {
|
|
623
623
|
const ns = this.api.getDataTypeNs(returnType);
|
|
624
624
|
// const isOpraSpec = returnType.document.url?.startsWith('https://oprajs.com/spec/v1.0')
|
|
625
625
|
body.type = (ns ? ns + ':' : '') + returnType.name;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/core",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.10",
|
|
4
4
|
"description": "Opra schema package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
},
|
|
30
30
|
"dependencies": {
|
|
31
31
|
"@browsery/type-is": "^0.6.3",
|
|
32
|
-
"@opra/common": "^0.33.
|
|
32
|
+
"@opra/common": "^0.33.10",
|
|
33
33
|
"accepts": "^1.3.8",
|
|
34
34
|
"content-disposition": "^0.5.4",
|
|
35
35
|
"content-type": "^1.0.5",
|