@opra/core 1.0.9 → 1.0.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.
@@ -8,9 +8,9 @@ const node_events_async_1 = require("node-events-async");
8
8
  class ExecutionContext extends node_events_async_1.AsyncEventEmitter {
9
9
  constructor(init) {
10
10
  super();
11
- this.shared = new Map();
12
11
  this.errors = [];
13
12
  this.document = init.document;
13
+ this.documentNode = init.documentNode || init.document.node;
14
14
  this.protocol = init.protocol;
15
15
  this.platform = init.platform;
16
16
  }
@@ -5,9 +5,9 @@ import { AsyncEventEmitter } from 'node-events-async';
5
5
  export class ExecutionContext extends AsyncEventEmitter {
6
6
  constructor(init) {
7
7
  super();
8
- this.shared = new Map();
9
8
  this.errors = [];
10
9
  this.document = init.document;
10
+ this.documentNode = init.documentNode || init.document.node;
11
11
  this.protocol = init.protocol;
12
12
  this.platform = init.platform;
13
13
  }
package/package.json CHANGED
@@ -1,14 +1,14 @@
1
1
  {
2
2
  "name": "@opra/core",
3
- "version": "1.0.9",
3
+ "version": "1.0.10",
4
4
  "description": "Opra schema package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
7
7
  "dependencies": {
8
- "@opra/common": "^1.0.9",
8
+ "@opra/common": "^1.0.10",
9
9
  "node-events-async": "^1.0.0",
10
10
  "reflect-metadata": "^0.2.2",
11
- "tslib": "^2.8.0"
11
+ "tslib": "^2.8.1"
12
12
  },
13
13
  "type": "module",
14
14
  "exports": {
@@ -1,4 +1,4 @@
1
- import { ApiDocument, OpraException, OpraSchema } from '@opra/common';
1
+ import { ApiDocument, DocumentNode, OpraException, OpraSchema } from '@opra/common';
2
2
  import { AsyncEventEmitter } from 'node-events-async';
3
3
  /**
4
4
  * @namespace ExecutionContext
@@ -6,6 +6,7 @@ import { AsyncEventEmitter } from 'node-events-async';
6
6
  export declare namespace ExecutionContext {
7
7
  interface Initiator {
8
8
  document: ApiDocument;
9
+ documentNode?: DocumentNode;
9
10
  protocol: OpraSchema.Transport;
10
11
  platform: string;
11
12
  }
@@ -14,8 +15,8 @@ export declare namespace ExecutionContext {
14
15
  * @class ExecutionContext
15
16
  */
16
17
  export declare abstract class ExecutionContext extends AsyncEventEmitter {
17
- readonly shared: Map<any, any>;
18
18
  readonly document: ApiDocument;
19
+ documentNode: DocumentNode;
19
20
  readonly protocol: OpraSchema.Transport;
20
21
  readonly platform: string;
21
22
  errors: OpraException[];