@opra/core 1.15.0 → 1.15.1
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/esm/platform-adapter.js +1 -1
- package/package.json +3 -3
- package/types/platform-adapter.d.ts +11 -11
package/esm/platform-adapter.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import './augmentation/18n.augmentation.js';
|
|
2
2
|
import { I18n } from '@opra/common';
|
|
3
|
-
import { AsyncEventEmitter } from 'node-events-async';
|
|
3
|
+
import { AsyncEventEmitter, } from 'node-events-async';
|
|
4
4
|
import { AssetCache } from './asset-cache.js';
|
|
5
5
|
import { kAssetCache } from './constants.js';
|
|
6
6
|
/**
|
package/package.json
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/core",
|
|
3
|
-
"version": "1.15.
|
|
3
|
+
"version": "1.15.1",
|
|
4
4
|
"description": "Opra schema package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"dependencies": {
|
|
8
|
-
"node-events-async": "^1.
|
|
8
|
+
"node-events-async": "^1.1.1",
|
|
9
9
|
"reflect-metadata": "^0.2.2",
|
|
10
10
|
"tslib": "^2.8.1"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"@opra/common": "^1.15.
|
|
13
|
+
"@opra/common": "^1.15.1"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
16
|
"exports": {
|
|
@@ -1,22 +1,13 @@
|
|
|
1
1
|
import './augmentation/18n.augmentation.js';
|
|
2
2
|
import { ApiDocument, I18n, OpraSchema } from '@opra/common';
|
|
3
|
-
import { AsyncEventEmitter } from 'node-events-async';
|
|
3
|
+
import { AsyncEventEmitter, DefaultEventMap, EventMap } from 'node-events-async';
|
|
4
4
|
import { AssetCache } from './asset-cache.js';
|
|
5
5
|
import { kAssetCache } from './constants.js';
|
|
6
6
|
import { ILogger } from './interfaces/logger.interface.js';
|
|
7
|
-
/**
|
|
8
|
-
* @namespace PlatformAdapter
|
|
9
|
-
*/
|
|
10
|
-
export declare namespace PlatformAdapter {
|
|
11
|
-
interface Options {
|
|
12
|
-
i18n?: I18n;
|
|
13
|
-
logger?: ILogger;
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
7
|
/**
|
|
17
8
|
* @class PlatformAdapter
|
|
18
9
|
*/
|
|
19
|
-
export declare abstract class PlatformAdapter extends AsyncEventEmitter {
|
|
10
|
+
export declare abstract class PlatformAdapter<T extends EventMap<T> = DefaultEventMap> extends AsyncEventEmitter<T> {
|
|
20
11
|
protected [kAssetCache]: AssetCache;
|
|
21
12
|
protected _document: ApiDocument;
|
|
22
13
|
abstract readonly protocol: OpraSchema.Transport;
|
|
@@ -26,3 +17,12 @@ export declare abstract class PlatformAdapter extends AsyncEventEmitter {
|
|
|
26
17
|
get document(): ApiDocument;
|
|
27
18
|
abstract close(): Promise<void>;
|
|
28
19
|
}
|
|
20
|
+
/**
|
|
21
|
+
* @namespace PlatformAdapter
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace PlatformAdapter {
|
|
24
|
+
interface Options {
|
|
25
|
+
i18n?: I18n;
|
|
26
|
+
logger?: ILogger;
|
|
27
|
+
}
|
|
28
|
+
}
|