@opra/core 1.0.0-alpha.12 → 1.0.0-alpha.14
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.
|
@@ -325,7 +325,9 @@ class HttpHandler {
|
|
|
325
325
|
else
|
|
326
326
|
body = encode(body);
|
|
327
327
|
}
|
|
328
|
-
if (body instanceof common_1.OperationResult &&
|
|
328
|
+
if (body instanceof common_1.OperationResult &&
|
|
329
|
+
operationResponse.type &&
|
|
330
|
+
operationResponse.type !== document.node.getDataType(common_1.OperationResult)) {
|
|
329
331
|
body.type = operationResponse.type.name ? operationResponse.type.name : '#embedded';
|
|
330
332
|
}
|
|
331
333
|
}
|
|
@@ -321,7 +321,9 @@ export class HttpHandler {
|
|
|
321
321
|
else
|
|
322
322
|
body = encode(body);
|
|
323
323
|
}
|
|
324
|
-
if (body instanceof OperationResult &&
|
|
324
|
+
if (body instanceof OperationResult &&
|
|
325
|
+
operationResponse.type &&
|
|
326
|
+
operationResponse.type !== document.node.getDataType(OperationResult)) {
|
|
325
327
|
body.type = operationResponse.type.name ? operationResponse.type.name : '#embedded';
|
|
326
328
|
}
|
|
327
329
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/core",
|
|
3
|
-
"version": "1.0.0-alpha.
|
|
3
|
+
"version": "1.0.0-alpha.14",
|
|
4
4
|
"description": "Opra schema package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@browsery/http-parser": "^0.5.8",
|
|
35
35
|
"@browsery/type-is": "^1.6.18-r2",
|
|
36
|
-
"@opra/common": "^1.0.0-alpha.
|
|
36
|
+
"@opra/common": "^1.0.0-alpha.14",
|
|
37
37
|
"@types/formidable": "^3.4.5",
|
|
38
38
|
"accepts": "^1.3.8",
|
|
39
39
|
"base64-stream": "^1.0.0",
|