@polkadot/api-augment 6.12.2-21 → 6.12.2-22

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.js CHANGED
@@ -1,7 +1,9 @@
1
1
  // Copyright 2017-2021 @polkadot/api-augment authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+ // for the API, we decorate not only the endpoints, but all types
3
4
  import '@polkadot/rpc-augment';
4
- import '@polkadot/types-augment';
5
+ import '@polkadot/types-augment'; // the augmentated types (on top of @polkadot/api-base)
6
+
5
7
  import "./consts.js";
6
8
  import "./errors.js";
7
9
  import "./events.js";
package/detectPackage.cjs CHANGED
@@ -4,10 +4,12 @@ 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
@@ -2,6 +2,7 @@
2
2
  // SPDX-License-Identifier: Apache-2.0
3
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, [baseInfo, typesInfo]);
8
+ detectPackage(packageInfo, typeof __dirname !== 'undefined' && __dirname, [baseInfo, typesInfo, codecInfo]);
package/package.json CHANGED
@@ -20,13 +20,15 @@
20
20
  "./detectPackage.cjs"
21
21
  ],
22
22
  "type": "module",
23
- "version": "6.12.2-21",
23
+ "version": "6.12.2-22",
24
24
  "main": "index.js",
25
25
  "dependencies": {
26
26
  "@babel/runtime": "^7.16.5",
27
- "@polkadot/api-base": "6.12.2-21",
28
- "@polkadot/types": "6.12.2-21",
29
- "@polkadot/types-codec": "6.12.2-21"
27
+ "@polkadot/api-base": "6.12.2-22",
28
+ "@polkadot/rpc-augment": "6.12.2-22",
29
+ "@polkadot/types": "6.12.2-22",
30
+ "@polkadot/types-augment": "6.12.2-22",
31
+ "@polkadot/types-codec": "6.12.2-22"
30
32
  },
31
33
  "exports": {
32
34
  ".": {
@@ -37,10 +39,6 @@
37
39
  "require": "./augment/index.cjs",
38
40
  "default": "./augment/index.js"
39
41
  },
40
- "./augment/augment": {
41
- "require": "./augment/augment.cjs",
42
- "default": "./augment/augment.js"
43
- },
44
42
  "./augment/consts": {
45
43
  "require": "./augment/consts.cjs",
46
44
  "default": "./augment/consts.js"
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-21'
12
+ version: '6.12.2-22'
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-21'
6
+ version: '6.12.2-22'
7
7
  };
@@ -1,3 +0,0 @@
1
- "use strict";
2
-
3
- require("@polkadot/types-augment");
@@ -1,3 +0,0 @@
1
- // Copyright 2017-2021 @polkadot/api-augment authors & contributors
2
- // SPDX-License-Identifier: Apache-2.0
3
- import '@polkadot/types-augment';