@opra/core 1.9.3 → 1.10.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.
package/cjs/execution-context.js
CHANGED
|
@@ -11,8 +11,8 @@ class ExecutionContext extends node_events_async_1.AsyncEventEmitter {
|
|
|
11
11
|
this.errors = [];
|
|
12
12
|
this.document = init.document;
|
|
13
13
|
this.documentNode = init.documentNode || init.document.node;
|
|
14
|
-
this.protocol = init.protocol;
|
|
15
|
-
this.platform = init.platform;
|
|
14
|
+
this.protocol = init.protocol || 'custom';
|
|
15
|
+
this.platform = init.platform || '';
|
|
16
16
|
}
|
|
17
17
|
}
|
|
18
18
|
exports.ExecutionContext = ExecutionContext;
|
package/esm/execution-context.js
CHANGED
|
@@ -8,7 +8,7 @@ export class ExecutionContext extends AsyncEventEmitter {
|
|
|
8
8
|
this.errors = [];
|
|
9
9
|
this.document = init.document;
|
|
10
10
|
this.documentNode = init.documentNode || init.document.node;
|
|
11
|
-
this.protocol = init.protocol;
|
|
12
|
-
this.platform = init.platform;
|
|
11
|
+
this.protocol = init.protocol || 'custom';
|
|
12
|
+
this.platform = init.platform || '';
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.10.0",
|
|
4
4
|
"description": "Opra schema package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"@opra/common": "^1.
|
|
8
|
+
"@opra/common": "^1.10.0",
|
|
9
9
|
"node-events-async": "^1.0.0",
|
|
10
10
|
"reflect-metadata": "^0.2.2",
|
|
11
11
|
"tslib": "^2.8.1"
|
|
@@ -7,18 +7,18 @@ export declare namespace ExecutionContext {
|
|
|
7
7
|
interface Initiator {
|
|
8
8
|
document: ApiDocument;
|
|
9
9
|
documentNode?: DocumentNode;
|
|
10
|
-
protocol
|
|
11
|
-
platform
|
|
10
|
+
protocol?: OpraSchema.Transport;
|
|
11
|
+
platform?: string;
|
|
12
12
|
}
|
|
13
13
|
}
|
|
14
14
|
/**
|
|
15
15
|
* @class ExecutionContext
|
|
16
16
|
*/
|
|
17
|
-
export declare
|
|
17
|
+
export declare class ExecutionContext extends AsyncEventEmitter {
|
|
18
18
|
readonly document: ApiDocument;
|
|
19
19
|
documentNode: DocumentNode;
|
|
20
20
|
readonly protocol: OpraSchema.Transport;
|
|
21
21
|
readonly platform: string;
|
|
22
22
|
errors: OpraException[];
|
|
23
|
-
|
|
23
|
+
constructor(init: ExecutionContext.Initiator);
|
|
24
24
|
}
|