@polkadot/api-base 10.0.1 → 10.1.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/bundle.d.ts CHANGED
@@ -1 +1 @@
1
- export { packageInfo } from './packageInfo';
1
+ export { packageInfo } from './packageInfo.js';
package/cjs/bundle.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- var packageInfo_1 = require("./packageInfo");
5
- Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_1.packageInfo; } });
4
+ var packageInfo_js_1 = require("./packageInfo.js");
5
+ Object.defineProperty(exports, "packageInfo", { enumerable: true, get: function () { return packageInfo_js_1.packageInfo; } });
@@ -2,6 +2,6 @@
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
4
  const util_1 = require("@polkadot/util");
5
- const detectOther_1 = tslib_1.__importDefault(require("./detectOther"));
6
- const packageInfo_1 = require("./packageInfo");
7
- (0, util_1.detectPackage)(packageInfo_1.packageInfo, null, detectOther_1.default);
5
+ const detectOther_js_1 = tslib_1.__importDefault(require("./detectOther.js"));
6
+ const packageInfo_js_1 = require("./packageInfo.js");
7
+ (0, util_1.detectPackage)(packageInfo_js_1.packageInfo, null, detectOther_js_1.default);
package/cjs/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const tslib_1 = require("tslib");
4
- require("./detectPackage");
5
- tslib_1.__exportStar(require("./bundle"), exports);
4
+ require("./detectPackage.js");
5
+ tslib_1.__exportStar(require("./bundle.js"), exports);
@@ -1,4 +1,4 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.packageInfo = void 0;
4
- exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.0.1' };
4
+ exports.packageInfo = { name: '@polkadot/api-base', path: typeof __dirname === 'string' ? __dirname : 'auto', type: 'cjs', version: '10.1.1' };
@@ -7,7 +7,7 @@ tslib_1.__exportStar(require("@polkadot/api-base/types/errors"), exports);
7
7
  tslib_1.__exportStar(require("@polkadot/api-base/types/events"), exports);
8
8
  tslib_1.__exportStar(require("@polkadot/api-base/types/storage"), exports);
9
9
  tslib_1.__exportStar(require("@polkadot/api-base/types/submittable"), exports);
10
- tslib_1.__exportStar(require("./api"), exports);
11
- tslib_1.__exportStar(require("./base"), exports);
12
- tslib_1.__exportStar(require("./derive"), exports);
13
- tslib_1.__exportStar(require("./rpc"), exports);
10
+ tslib_1.__exportStar(require("./api.js"), exports);
11
+ tslib_1.__exportStar(require("./base.js"), exports);
12
+ tslib_1.__exportStar(require("./derive.js"), exports);
13
+ tslib_1.__exportStar(require("./rpc.js"), exports);
package/index.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- import './detectPackage';
2
- export * from './bundle';
1
+ import './detectPackage.js';
2
+ export * from './bundle.js';
package/package.json CHANGED
@@ -20,7 +20,7 @@
20
20
  "./cjs/detectPackage.js"
21
21
  ],
22
22
  "type": "module",
23
- "version": "10.0.1",
23
+ "version": "10.1.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -118,9 +118,9 @@
118
118
  }
119
119
  },
120
120
  "dependencies": {
121
- "@polkadot/rpc-core": "10.0.1",
122
- "@polkadot/types": "10.0.1",
123
- "@polkadot/util": "^11.0.1",
121
+ "@polkadot/rpc-core": "10.1.1",
122
+ "@polkadot/types": "10.1.1",
123
+ "@polkadot/util": "^11.0.2",
124
124
  "rxjs": "^7.8.0",
125
125
  "tslib": "^2.5.0"
126
126
  }
package/packageInfo.js CHANGED
@@ -1 +1 @@
1
- export const packageInfo = { name: '@polkadot/api-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.0.1' };
1
+ export const packageInfo = { name: '@polkadot/api-base', path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto', type: 'esm', version: '10.1.1' };
package/types/calls.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { AnyFunction, Codec, DefinitionCallNamed } from '@polkadot/types/types';
3
- import type { ApiTypes, ReturnCodec } from './base';
3
+ import type { ApiTypes, ReturnCodec } from './base.js';
4
4
  export type DecoratedCallBase<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = ApiType extends 'rxjs' ? <T extends Codec | any = ReturnCodec<F>>(...args: Parameters<F>) => Observable<T> : <T extends Codec | any = ReturnCodec<F>>(...args: Parameters<F>) => Promise<T>;
5
5
  export type AugmentedCall<ApiType extends ApiTypes, F extends AnyFunction = (...args: any[]) => Observable<Codec>> = DecoratedCallBase<ApiType, F> & {
6
6
  /** The metadata/description/definition for this method */
package/types/consts.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { PalletConstantMetadataLatest } from '@polkadot/types/interfaces';
2
2
  import type { Codec } from '@polkadot/types/types';
3
- import type { ApiTypes } from './base';
3
+ import type { ApiTypes } from './base.js';
4
4
  export interface AugmentedConst<ApiType extends ApiTypes> {
5
5
  meta: PalletConstantMetadataLatest;
6
6
  }
package/types/errors.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  import type { IsError } from '@polkadot/types/metadata/decorate/types';
2
- import type { ApiTypes } from './base';
2
+ import type { ApiTypes } from './base.js';
3
3
  export type AugmentedError<ApiType extends ApiTypes> = IsError;
4
4
  export interface AugmentedErrors<ApiType extends ApiTypes> {
5
5
  }
package/types/events.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { IsEvent } from '@polkadot/types/metadata/decorate/types';
2
2
  import type { AnyTuple } from '@polkadot/types/types';
3
- import type { ApiTypes } from './base';
3
+ import type { ApiTypes } from './base.js';
4
4
  export type AugmentedEvent<ApiType extends ApiTypes, T extends AnyTuple = AnyTuple, N = unknown> = IsEvent<T, N>;
5
5
  export interface AugmentedEvents<ApiType extends ApiTypes> {
6
6
  }
package/types/index.d.ts CHANGED
@@ -4,7 +4,7 @@ export * from '@polkadot/api-base/types/errors';
4
4
  export * from '@polkadot/api-base/types/events';
5
5
  export * from '@polkadot/api-base/types/storage';
6
6
  export * from '@polkadot/api-base/types/submittable';
7
- export * from './api';
8
- export * from './base';
9
- export * from './derive';
10
- export * from './rpc';
7
+ export * from './api.js';
8
+ export * from './base.js';
9
+ export * from './derive.js';
10
+ export * from './rpc.js';
package/types/rpc.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { AnyFunction, AnyJson, Callback, DefinitionRpc } from '@polkadot/types/types';
3
- import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base';
3
+ import { ApiTypes, PromiseResult, Push, RxResult, UnsubscribePromise } from './base.js';
4
4
  export type { AugmentedRpc } from '@polkadot/rpc-core/types';
5
5
  export interface RxRpcResult<F extends AnyFunction> extends RxResult<F> {
6
6
  raw<T>(...args: Parameters<F>): Observable<T>;
@@ -3,7 +3,7 @@ import type { StorageKey, u64 } from '@polkadot/types';
3
3
  import type { Hash } from '@polkadot/types/interfaces';
4
4
  import type { StorageEntry } from '@polkadot/types/primitive/types';
5
5
  import type { AnyFunction, AnyTuple, Callback, Codec, IStorageKey } from '@polkadot/types/types';
6
- import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base';
6
+ import type { ApiTypes, DropLast, MethodResult, PaginationOptions, PromiseOrObs, ReturnCodec, UnsubscribePromise } from './base.js';
7
7
  interface StorageEntryObservableMulti<R extends Codec = Codec> {
8
8
  <T extends Codec = R>(args: (unknown[] | unknown)[]): Observable<T[]>;
9
9
  }
@@ -1,7 +1,7 @@
1
1
  import type { Observable } from 'rxjs';
2
2
  import type { AccountId, Address, ApplyExtrinsicResult, BlockNumber, Call, DispatchError, DispatchInfo, EventRecord, Extrinsic, ExtrinsicStatus, Hash, RuntimeDispatchInfo } from '@polkadot/types/interfaces';
3
3
  import type { AnyFunction, AnyNumber, AnyTuple, Callback, CallBase, Codec, IExtrinsicEra, IKeyringPair, ISubmittableResult, Signer } from '@polkadot/types/types';
4
- import type { ApiTypes, PromiseOrObs } from './base';
4
+ import type { ApiTypes, PromiseOrObs } from './base.js';
5
5
  export type AugmentedSubmittable<T extends AnyFunction, A extends AnyTuple = AnyTuple> = T & CallBase<A>;
6
6
  export type AddressOrPair = IKeyringPair | string | AccountId | Address;
7
7
  export interface SignerOptions {