@polkadot/api-augment 6.12.2-19 → 6.12.2-23

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/augment/index.cjs CHANGED
@@ -1,5 +1,7 @@
1
1
  "use strict";
2
2
 
3
+ require("@polkadot/rpc-augment");
4
+
3
5
  require("@polkadot/types-augment");
4
6
 
5
7
  require("./consts.cjs");
@@ -10,8 +12,4 @@ require("./events.cjs");
10
12
 
11
13
  require("./query.cjs");
12
14
 
13
- require("./tx.cjs");
14
-
15
- require("./api.cjs");
16
-
17
- require("./rpc");
15
+ require("./tx.cjs");
package/augment/index.js CHANGED
@@ -1,11 +1,11 @@
1
1
  // Copyright 2017-2021 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import '@polkadot/types-augment';
3
+ // for the API, we decorate not only the endpoints, but all types
4
+ import '@polkadot/rpc-augment';
5
+ import '@polkadot/types-augment'; // the augmentated types (on top of @polkadot/api-base)
6
+
4
7
  import "./consts.js";
5
8
  import "./errors.js";
6
9
  import "./events.js";
7
10
  import "./query.js";
8
- import "./tx.js"; // these are external to this module
9
-
10
- import "./api.js";
11
- import "./rpc";
11
+ import "./tx.js";
package/bundle.cjs CHANGED
@@ -3,9 +3,6 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
- var _exportNames = {
7
- packageInfo: true
8
- };
9
6
  Object.defineProperty(exports, "packageInfo", {
10
7
  enumerable: true,
11
8
  get: function () {
@@ -15,18 +12,4 @@ Object.defineProperty(exports, "packageInfo", {
15
12
 
16
13
  require("./augment/index.cjs");
17
14
 
18
- var _packageInfo = require("./packageInfo.cjs");
19
-
20
- var _types = require("./types.cjs");
21
-
22
- Object.keys(_types).forEach(function (key) {
23
- if (key === "default" || key === "__esModule") return;
24
- if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
25
- if (key in exports && exports[key] === _types[key]) return;
26
- Object.defineProperty(exports, key, {
27
- enumerable: true,
28
- get: function () {
29
- return _types[key];
30
- }
31
- });
32
- });
15
+ var _packageInfo = require("./packageInfo.cjs");
package/bundle.js CHANGED
@@ -1,6 +1,4 @@
1
1
  // Copyright 2017-2021 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- // trigger in the same way as we do externally
4
3
  import "./augment/index.js";
5
- export { packageInfo } from "./packageInfo.js";
6
- export * from "./types.js";
4
+ export { packageInfo } from "./packageInfo.js";
package/detectPackage.cjs CHANGED
@@ -1,13 +1,15 @@
1
1
  "use strict";
2
2
 
3
- var _packageInfo = require("@polkadot/rpc-core/packageInfo");
3
+ var _packageInfo = require("@polkadot/api-base/packageInfo");
4
4
 
5
5
  var _packageInfo2 = require("@polkadot/types/packageInfo");
6
6
 
7
+ var _packageInfo3 = require("@polkadot/types-codec/packageInfo");
8
+
7
9
  var _util = require("@polkadot/util");
8
10
 
9
- var _packageInfo3 = require("./packageInfo.cjs");
11
+ var _packageInfo4 = require("./packageInfo.cjs");
10
12
 
11
13
  // Copyright 2017-2021 @polkadot/api-augment authors & contributors
12
14
  // SPDX-License-Identifier: Apache-2.0
13
- (0, _util.detectPackage)(_packageInfo3.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_packageInfo.packageInfo, _packageInfo2.packageInfo]);
15
+ (0, _util.detectPackage)(_packageInfo4.packageInfo, typeof __dirname !== 'undefined' && __dirname, [_packageInfo.packageInfo, _packageInfo2.packageInfo, _packageInfo3.packageInfo]);
package/detectPackage.js CHANGED
@@ -1,7 +1,8 @@
1
1
  // Copyright 2017-2021 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
- import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
3
+ import { packageInfo as baseInfo } from '@polkadot/api-base/packageInfo';
4
4
  import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5
+ import { packageInfo as codecInfo } from '@polkadot/types-codec/packageInfo';
5
6
  import { detectPackage } from '@polkadot/util';
6
7
  import { packageInfo } from "./packageInfo.js";
7
- detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [rpcInfo, typesInfo]);
8
+ detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo, codecInfo]);
package/package.json CHANGED
@@ -20,13 +20,16 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.12.2-19",
23
+ "version": "6.12.2-23",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.5",
27
- "@polkadot/api-base": "6.12.2-19",
28
- "@polkadot/rpc-core": "6.12.2-19",
29
- "@polkadot/types": "6.12.2-19"
27
+ "@polkadot/api-base": "6.12.2-23",
28
+ "@polkadot/rpc-augment": "6.12.2-23",
29
+ "@polkadot/types": "6.12.2-23",
30
+ "@polkadot/types-augment": "6.12.2-23",
31
+ "@polkadot/types-codec": "6.12.2-23",
32
+ "@polkadot/util": "^8.2.2"
30
33
  },
31
34
  "exports": {
32
35
  ".": {
@@ -37,84 +40,39 @@
37
40
  "require": "./augment/index.cjs",
38
41
  "default": "./augment/index.js"
39
42
  },
40
- "./augment/api": {
41
- "require": "./augment/api.cjs",
42
- "default": "./augment/api.js"
43
- },
44
- "./augment/api.d.ts": "./augment/api.d.ts",
45
43
  "./augment/consts": {
46
44
  "require": "./augment/consts.cjs",
47
45
  "default": "./augment/consts.js"
48
46
  },
49
- "./augment/consts.d.ts": "./augment/consts.d.ts",
50
47
  "./augment/errors": {
51
48
  "require": "./augment/errors.cjs",
52
49
  "default": "./augment/errors.js"
53
50
  },
54
- "./augment/errors.d.ts": "./augment/errors.d.ts",
55
51
  "./augment/events": {
56
52
  "require": "./augment/events.cjs",
57
53
  "default": "./augment/events.js"
58
54
  },
59
- "./augment/events.d.ts": "./augment/events.d.ts",
60
- "./augment/index.d.ts": "./augment/index.d.ts",
61
55
  "./augment/query": {
62
56
  "require": "./augment/query.cjs",
63
57
  "default": "./augment/query.js"
64
58
  },
65
- "./augment/query.d.ts": "./augment/query.d.ts",
66
59
  "./augment/tx": {
67
60
  "require": "./augment/tx.cjs",
68
61
  "default": "./augment/tx.js"
69
62
  },
70
- "./augment/tx.d.ts": "./augment/tx.d.ts",
71
63
  "./bundle": {
72
64
  "require": "./bundle.cjs",
73
65
  "default": "./bundle.js"
74
66
  },
75
- "./bundle.d.ts": "./bundle.d.ts",
76
- "./consts": {
77
- "require": "./consts.cjs",
78
- "default": "./consts.js"
79
- },
80
- "./consts.d.ts": "./consts.d.ts",
81
67
  "./detectPackage": {
82
68
  "require": "./detectPackage.cjs",
83
69
  "default": "./detectPackage.js"
84
70
  },
85
- "./detectPackage.d.ts": "./detectPackage.d.ts",
86
- "./errors": {
87
- "require": "./errors.cjs",
88
- "default": "./errors.js"
89
- },
90
- "./errors.d.ts": "./errors.d.ts",
91
- "./events": {
92
- "require": "./events.cjs",
93
- "default": "./events.js"
94
- },
95
- "./events.d.ts": "./events.d.ts",
96
- "./index.d.ts": "./index.d.ts",
97
71
  "./package.json": "./package.json",
98
72
  "./packageInfo": {
99
73
  "require": "./packageInfo.cjs",
100
74
  "default": "./packageInfo.js"
101
75
  },
102
- "./packageInfo.d.ts": "./packageInfo.d.ts",
103
- "./query": {
104
- "require": "./query.cjs",
105
- "default": "./query.js"
106
- },
107
- "./query.d.ts": "./query.d.ts",
108
- "./README.md": "./README.md",
109
- "./tx": {
110
- "require": "./tx.cjs",
111
- "default": "./tx.js"
112
- },
113
- "./tx.d.ts": "./tx.d.ts",
114
- "./types": {
115
- "require": "./types.cjs",
116
- "default": "./types.js"
117
- },
118
- "./types.d.ts": "./types.d.ts"
76
+ "./README.md": "./README.md"
119
77
  }
120
78
  }
package/packageInfo.cjs CHANGED
@@ -9,6 +9,6 @@ exports.packageInfo = void 0;
9
9
  // Auto-generated by @polkadot/dev, do not edit
10
10
  const packageInfo = {
11
11
  name: '@polkadot/api-augment',
12
- version: '6.12.2-19'
12
+ version: '6.12.2-23'
13
13
  };
14
14
  exports.packageInfo = packageInfo;
package/packageInfo.js CHANGED
@@ -3,5 +3,5 @@
3
3
  // Auto-generated by @polkadot/dev, do not edit
4
4
  export const packageInfo = {
5
5
  name: '@polkadot/api-augment',
6
- version: '6.12.2-19'
6
+ version: '6.12.2-23'
7
7
  };
package/augment/api.cjs DELETED
@@ -1 +0,0 @@
1
- "use strict";
package/augment/api.d.ts DELETED
@@ -1,26 +0,0 @@
1
- import type { Observable } from 'rxjs';
2
- import type { QueryableConsts } from '@polkadot/api-augment/consts';
3
- import type { QueryableStorage } from '@polkadot/api-augment/query';
4
- import type { SubmittableExtrinsics } from '@polkadot/api-augment/tx';
5
- import type { DecoratedRpc, QueryableStorageMulti } from '@polkadot/api-base/types';
6
- import type { RpcInterface } from '@polkadot/rpc-core/types';
7
- import type { Metadata } from '@polkadot/types';
8
- import type { Hash, RuntimeVersion } from '@polkadot/types/interfaces';
9
- import type { Registry, Signer } from '@polkadot/types/types';
10
- declare module '@polkadot/api-base/types/api' {
11
- interface ApiInterfaceRx {
12
- consts: QueryableConsts<'rxjs'>;
13
- extrinsicType: number;
14
- genesisHash?: Hash;
15
- hasSubscriptions: boolean;
16
- registry: Registry;
17
- runtimeMetadata: Metadata;
18
- runtimeVersion: RuntimeVersion;
19
- query: QueryableStorage<'rxjs'>;
20
- queryAt: (blockHash: Uint8Array | string, knownVersion?: RuntimeVersion) => Observable<QueryableStorage<'rxjs'>>;
21
- queryMulti: QueryableStorageMulti<'rxjs'>;
22
- rpc: DecoratedRpc<'rxjs', RpcInterface>;
23
- tx: SubmittableExtrinsics<'rxjs'>;
24
- signer?: Signer;
25
- }
26
- }
package/augment/api.js DELETED
@@ -1 +0,0 @@
1
- export {};