@opra/core 1.19.5 → 1.20.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
|
@@ -9,9 +9,9 @@ class ExecutionContext extends node_events_async_1.AsyncEventEmitter {
|
|
|
9
9
|
constructor(init) {
|
|
10
10
|
super();
|
|
11
11
|
this.errors = [];
|
|
12
|
-
this.
|
|
13
|
-
this.
|
|
14
|
-
this.
|
|
12
|
+
this.__adapter = init.__adapter;
|
|
13
|
+
this.__docNode = init.__docNode || init.__adapter.document.node;
|
|
14
|
+
this.transport = init.transport || 'custom';
|
|
15
15
|
this.platform = init.platform || '';
|
|
16
16
|
}
|
|
17
17
|
}
|
package/esm/execution-context.js
CHANGED
|
@@ -6,9 +6,9 @@ export class ExecutionContext extends AsyncEventEmitter {
|
|
|
6
6
|
constructor(init) {
|
|
7
7
|
super();
|
|
8
8
|
this.errors = [];
|
|
9
|
-
this.
|
|
10
|
-
this.
|
|
11
|
-
this.
|
|
9
|
+
this.__adapter = init.__adapter;
|
|
10
|
+
this.__docNode = init.__docNode || init.__adapter.document.node;
|
|
11
|
+
this.transport = init.transport || 'custom';
|
|
12
12
|
this.platform = init.platform || '';
|
|
13
13
|
}
|
|
14
14
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/core",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.20.0",
|
|
4
4
|
"description": "Opra schema package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"tslib": "^2.8.1"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.
|
|
13
|
+
"@opra/common": "^1.20.0"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
@@ -1,24 +1,25 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { DocumentNode, OpraSchema } from '@opra/common';
|
|
2
2
|
import { AsyncEventEmitter } from 'node-events-async';
|
|
3
|
+
import { PlatformAdapter } from './platform-adapter.js';
|
|
4
|
+
/**
|
|
5
|
+
* @class ExecutionContext
|
|
6
|
+
*/
|
|
7
|
+
export declare class ExecutionContext extends AsyncEventEmitter {
|
|
8
|
+
readonly __docNode: DocumentNode;
|
|
9
|
+
readonly __adapter: PlatformAdapter;
|
|
10
|
+
readonly transport: OpraSchema.Transport;
|
|
11
|
+
readonly platform: string;
|
|
12
|
+
errors: Error[];
|
|
13
|
+
constructor(init: ExecutionContext.Initiator);
|
|
14
|
+
}
|
|
3
15
|
/**
|
|
4
16
|
* @namespace ExecutionContext
|
|
5
17
|
*/
|
|
6
18
|
export declare namespace ExecutionContext {
|
|
7
19
|
interface Initiator {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
20
|
+
__adapter: PlatformAdapter;
|
|
21
|
+
__docNode?: DocumentNode;
|
|
22
|
+
transport?: OpraSchema.Transport;
|
|
11
23
|
platform?: string;
|
|
12
24
|
}
|
|
13
25
|
}
|
|
14
|
-
/**
|
|
15
|
-
* @class ExecutionContext
|
|
16
|
-
*/
|
|
17
|
-
export declare class ExecutionContext extends AsyncEventEmitter {
|
|
18
|
-
readonly document: ApiDocument;
|
|
19
|
-
documentNode: DocumentNode;
|
|
20
|
-
readonly protocol: OpraSchema.Transport;
|
|
21
|
-
readonly platform: string;
|
|
22
|
-
errors: OpraException[];
|
|
23
|
-
constructor(init: ExecutionContext.Initiator);
|
|
24
|
-
}
|
|
@@ -10,7 +10,7 @@ import { ILogger } from './interfaces/logger.interface.js';
|
|
|
10
10
|
export declare abstract class PlatformAdapter<T extends EventMap<T> = DefaultEventMap> extends AsyncEventEmitter<T> {
|
|
11
11
|
protected [kAssetCache]: AssetCache;
|
|
12
12
|
protected _document: ApiDocument;
|
|
13
|
-
abstract readonly
|
|
13
|
+
abstract readonly transform: OpraSchema.Transport;
|
|
14
14
|
i18n: I18n;
|
|
15
15
|
logger?: ILogger;
|
|
16
16
|
protected constructor(options?: PlatformAdapter.Options);
|