@opra/client 0.33.11 → 0.33.13
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opra/client",
|
|
3
|
-
"version": "0.33.
|
|
3
|
+
"version": "0.33.13",
|
|
4
4
|
"description": "Opra Client package",
|
|
5
5
|
"author": "Panates",
|
|
6
6
|
"license": "MIT",
|
|
@@ -40,7 +40,7 @@
|
|
|
40
40
|
"@browsery/stream": "^0.6.0",
|
|
41
41
|
"@browsery/type-is": "^0.6.3",
|
|
42
42
|
"@browsery/util": "^0.4.0",
|
|
43
|
-
"@opra/common": "^0.33.
|
|
43
|
+
"@opra/common": "^0.33.13",
|
|
44
44
|
"accepts": "^1.3.8",
|
|
45
45
|
"buffer": "^6.0.3",
|
|
46
46
|
"cookie": "^0.6.0",
|
|
@@ -15,14 +15,14 @@ export declare abstract class HttpClientBase<TRequestOptions = {}, TResponseExt
|
|
|
15
15
|
[kBackend]: HttpBackend;
|
|
16
16
|
protected _collectionCache: ResponsiveMap<HttpCollectionNode<any, {}, {}>>;
|
|
17
17
|
protected _singletonCache: ResponsiveMap<HttpCollectionNode<any, {}, {}>>;
|
|
18
|
-
protected _storageCache: ResponsiveMap<HttpStorageNode<any, {}>>;
|
|
18
|
+
protected _storageCache: ResponsiveMap<HttpStorageNode<any, {}, {}>>;
|
|
19
19
|
protected _metadataPromise?: Promise<any>;
|
|
20
20
|
protected constructor(backend: HttpBackend);
|
|
21
21
|
get serviceUrl(): string;
|
|
22
22
|
getMetadata(): Promise<ApiDocument>;
|
|
23
23
|
collection<TType = any>(path: string): HttpCollectionNode<TType, TRequestOptions, TResponseExt>;
|
|
24
24
|
singleton<TType = any>(path: string): HttpSingletonNode<TType, TRequestOptions, TResponseExt>;
|
|
25
|
-
storage(path: string): HttpStorageNode<TRequestOptions, TResponseExt>;
|
|
25
|
+
storage<TType = any>(path: string): HttpStorageNode<TType, TRequestOptions, TResponseExt>;
|
|
26
26
|
action<T = any>(path: string, params?: Record<string, any>): HttpRequestObservable<T, T, TRequestOptions, TResponseExt>;
|
|
27
27
|
}
|
|
28
28
|
/**
|
|
@@ -4,11 +4,11 @@ import { HttpRequestObservable } from './http-request-observable.js';
|
|
|
4
4
|
/**
|
|
5
5
|
* @class HttpStorageNode
|
|
6
6
|
*/
|
|
7
|
-
export declare class HttpStorageNode<TRequestOptions = {}, TResponseExt = {}> {
|
|
7
|
+
export declare class HttpStorageNode<TType = never, TRequestOptions = {}, TResponseExt = {}> {
|
|
8
8
|
protected _backend: HttpBackend;
|
|
9
9
|
protected _path: string;
|
|
10
10
|
constructor(backend: HttpBackend, path: string);
|
|
11
11
|
delete(path?: string): HttpRequestObservable<OperationResult<never>, OperationResult<never>, TRequestOptions, TResponseExt>;
|
|
12
12
|
get(path?: string): HttpRequestObservable<OperationResult<any>, OperationResult<any>, TRequestOptions, TResponseExt>;
|
|
13
|
-
post(data: FormData, path?: string): HttpRequestObservable<OperationResult<
|
|
13
|
+
post(data: FormData, path?: string): HttpRequestObservable<OperationResult<TType>, OperationResult<TType>, TRequestOptions, TResponseExt>;
|
|
14
14
|
}
|