@polkadot/api-base 9.6.2 → 9.7.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/cjs/packageInfo.js +1 -1
- package/package.json +4 -4
- package/packageInfo.js +1 -1
- package/types/rpc.d.ts +3 -2
package/cjs/packageInfo.js
CHANGED
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
"./cjs/detectPackage.js"
|
|
21
21
|
],
|
|
22
22
|
"type": "module",
|
|
23
|
-
"version": "9.
|
|
23
|
+
"version": "9.7.1",
|
|
24
24
|
"main": "./cjs/index.js",
|
|
25
25
|
"module": "./index.js",
|
|
26
26
|
"types": "./index.d.ts",
|
|
@@ -115,9 +115,9 @@
|
|
|
115
115
|
}
|
|
116
116
|
},
|
|
117
117
|
"dependencies": {
|
|
118
|
-
"@babel/runtime": "^7.20.
|
|
119
|
-
"@polkadot/rpc-core": "9.
|
|
120
|
-
"@polkadot/types": "9.
|
|
118
|
+
"@babel/runtime": "^7.20.1",
|
|
119
|
+
"@polkadot/rpc-core": "9.7.1",
|
|
120
|
+
"@polkadot/types": "9.7.1",
|
|
121
121
|
"@polkadot/util": "^10.1.11",
|
|
122
122
|
"rxjs": "^7.5.7"
|
|
123
123
|
}
|
package/packageInfo.js
CHANGED
|
@@ -7,5 +7,5 @@ export const packageInfo = {
|
|
|
7
7
|
name: '@polkadot/api-base',
|
|
8
8
|
path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
|
|
9
9
|
type: 'esm',
|
|
10
|
-
version: '9.
|
|
10
|
+
version: '9.7.1'
|
|
11
11
|
};
|
package/types/rpc.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Observable } from 'rxjs';
|
|
2
|
-
import type { AnyFunction, Callback, DefinitionRpc } from '@polkadot/types/types';
|
|
2
|
+
import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
|
|
3
3
|
import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
|
|
4
4
|
export type { AugmentedRpc } from '@polkadot/rpc-core/types';
|
|
5
5
|
export interface RxRpcResult<F extends AnyFunction> extends RxResult<F> {
|
|
@@ -15,6 +15,7 @@ export declare type RpcMethodResult<ApiType extends ApiTypes, F extends AnyFunct
|
|
|
15
15
|
export declare type DecoratedRpcSection<ApiType extends ApiTypes, Section> = {
|
|
16
16
|
[M in keyof Section]: Section[M] extends AnyFunction ? RpcMethodResult<ApiType, Section[M]> : never;
|
|
17
17
|
};
|
|
18
|
+
export declare type RawRpcType<ApiType extends ApiTypes> = (method: string, ...params: unknown[]) => ApiType extends 'rxjs' ? Observable<AnyJson> : Promise<AnyJson>;
|
|
18
19
|
export declare type DecoratedRpc<ApiType extends ApiTypes, AllSections> = {
|
|
19
20
|
[S in keyof AllSections]: DecoratedRpcSection<ApiType, AllSections[S]>;
|
|
20
|
-
}
|
|
21
|
+
} & RawRpcType<ApiType>;
|