@opra/core 0.25.1 → 0.25.2

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.
@@ -7,7 +7,7 @@ var EndpointContext;
7
7
  const out = {
8
8
  request,
9
9
  response,
10
- space: {}
10
+ session: {}
11
11
  };
12
12
  Object.setPrototypeOf(out, executionContext);
13
13
  return out;
@@ -8,7 +8,7 @@ class ExecutionContextHost extends strict_typed_events_1.AsyncEventEmitter {
8
8
  this.api = api;
9
9
  this.platform = platform;
10
10
  this.errors = [];
11
- this.space = {};
11
+ this.session = {};
12
12
  this.ws = protocol.ws;
13
13
  this.rpc = protocol.rpc;
14
14
  if (protocol.http) {
@@ -4,7 +4,7 @@ export var EndpointContext;
4
4
  const out = {
5
5
  request,
6
6
  response,
7
- space: {}
7
+ session: {}
8
8
  };
9
9
  Object.setPrototypeOf(out, executionContext);
10
10
  return out;
@@ -5,7 +5,7 @@ export class ExecutionContextHost extends AsyncEventEmitter {
5
5
  this.api = api;
6
6
  this.platform = platform;
7
7
  this.errors = [];
8
- this.space = {};
8
+ this.session = {};
9
9
  this.ws = protocol.ws;
10
10
  this.rpc = protocol.rpc;
11
11
  if (protocol.http) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@opra/core",
3
- "version": "0.25.1",
3
+ "version": "0.25.2",
4
4
  "description": "Opra schema package",
5
5
  "author": "Panates",
6
6
  "license": "MIT",
@@ -94,4 +94,4 @@
94
94
  "swagger",
95
95
  "raml"
96
96
  ]
97
- }
97
+ }
@@ -1,10 +1,10 @@
1
1
  import type { HttpServerRequest } from './http/http-server-request';
2
2
  import type { HttpServerResponse } from './http/http-server-response';
3
3
  import type { Protocol } from './platform-adapter';
4
- export interface ExecutionContext<TSpace extends {} = {}> {
4
+ export interface ExecutionContext<TSession extends {} = {}> {
5
5
  readonly protocol: Protocol;
6
6
  readonly platform: string;
7
- space: TSpace;
7
+ session: TSession;
8
8
  errors: Error[];
9
9
  switchToHttp(): HttpMessageContext;
10
10
  switchToWs(): WsMessageContext;
@@ -4,7 +4,7 @@ import type { HttpServerResponse } from './/http/http-server-response.js';
4
4
  import type { ExecutionContext, HttpMessageContext, RpcMessageContext, WsMessageContext } from './execution-context.js';
5
5
  import type { HttpServerRequest } from './http/http-server-request.js';
6
6
  import { Protocol } from './platform-adapter.js';
7
- export declare class ExecutionContextHost<TSpace extends {} = {}> extends AsyncEventEmitter implements ExecutionContext<TSpace> {
7
+ export declare class ExecutionContextHost<TSession extends {} = {}> extends AsyncEventEmitter implements ExecutionContext<TSession> {
8
8
  readonly api: ApiDocument;
9
9
  readonly platform: string;
10
10
  readonly protocol: Protocol;
@@ -12,7 +12,7 @@ export declare class ExecutionContextHost<TSpace extends {} = {}> extends AsyncE
12
12
  readonly ws?: WsMessageContext;
13
13
  readonly rpc?: RpcMessageContext;
14
14
  errors: Error[];
15
- space: TSpace;
15
+ session: TSession;
16
16
  constructor(api: ApiDocument, platform: string, protocol: {
17
17
  http?: {
18
18
  incoming: HttpServerRequest;