@polkadot/api-base 9.5.2 → 9.6.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.js CHANGED
@@ -1,3 +1,4 @@
1
1
  // Copyright 2017-2022 @polkadot/api-contract authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+
3
4
  export { packageInfo } from "./packageInfo.js";
package/cjs/bundle.js CHANGED
@@ -9,5 +9,4 @@ Object.defineProperty(exports, "packageInfo", {
9
9
  return _packageInfo.packageInfo;
10
10
  }
11
11
  });
12
-
13
12
  var _packageInfo = require("./packageInfo");
@@ -4,11 +4,8 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _packageInfo = require("@polkadot/rpc-core/cjs/packageInfo");
9
-
10
8
  var _packageInfo2 = require("@polkadot/types/cjs/packageInfo");
11
-
12
9
  // Copyright 2017-2022 @polkadot/api-contract authors & contributors
13
10
  // SPDX-License-Identifier: Apache-2.0
14
11
  var _default = [_packageInfo.packageInfo, _packageInfo2.packageInfo];
@@ -1,14 +1,12 @@
1
1
  "use strict";
2
2
 
3
3
  var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
4
-
5
4
  var _util = require("@polkadot/util");
6
-
7
5
  var _detectOther = _interopRequireDefault(require("./detectOther"));
8
-
9
6
  var _packageInfo = require("./packageInfo");
10
-
11
7
  // Copyright 2017-2022 @polkadot/api-base authors & contributors
12
8
  // SPDX-License-Identifier: Apache-2.0
9
+
13
10
  // Do not edit, auto-generated by @polkadot/dev
11
+
14
12
  (0, _util.detectPackage)(_packageInfo.packageInfo, null, _detectOther.default);
package/cjs/index.js CHANGED
@@ -3,11 +3,8 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  require("./detectPackage");
8
-
9
7
  var _bundle = require("./bundle");
10
-
11
8
  Object.keys(_bundle).forEach(function (key) {
12
9
  if (key === "default" || key === "__esModule") return;
13
10
  if (key in exports && exports[key] === _bundle[key]) return;
@@ -6,11 +6,13 @@ Object.defineProperty(exports, "__esModule", {
6
6
  exports.packageInfo = void 0;
7
7
  // Copyright 2017-2022 @polkadot/api-base authors & contributors
8
8
  // SPDX-License-Identifier: Apache-2.0
9
+
9
10
  // Do not edit, auto-generated by @polkadot/dev
11
+
10
12
  const packageInfo = {
11
13
  name: '@polkadot/api-base',
12
14
  path: typeof __dirname === 'string' ? __dirname : 'auto',
13
15
  type: 'cjs',
14
- version: '9.5.2'
16
+ version: '9.6.1'
15
17
  };
16
18
  exports.packageInfo = packageInfo;
@@ -3,9 +3,7 @@
3
3
  Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
-
7
6
  var _calls = require("@polkadot/api-base/types/calls");
8
-
9
7
  Object.keys(_calls).forEach(function (key) {
10
8
  if (key === "default" || key === "__esModule") return;
11
9
  if (key in exports && exports[key] === _calls[key]) return;
@@ -16,9 +14,7 @@ Object.keys(_calls).forEach(function (key) {
16
14
  }
17
15
  });
18
16
  });
19
-
20
17
  var _consts = require("@polkadot/api-base/types/consts");
21
-
22
18
  Object.keys(_consts).forEach(function (key) {
23
19
  if (key === "default" || key === "__esModule") return;
24
20
  if (key in exports && exports[key] === _consts[key]) return;
@@ -29,9 +25,7 @@ Object.keys(_consts).forEach(function (key) {
29
25
  }
30
26
  });
31
27
  });
32
-
33
28
  var _errors = require("@polkadot/api-base/types/errors");
34
-
35
29
  Object.keys(_errors).forEach(function (key) {
36
30
  if (key === "default" || key === "__esModule") return;
37
31
  if (key in exports && exports[key] === _errors[key]) return;
@@ -42,9 +36,7 @@ Object.keys(_errors).forEach(function (key) {
42
36
  }
43
37
  });
44
38
  });
45
-
46
39
  var _events = require("@polkadot/api-base/types/events");
47
-
48
40
  Object.keys(_events).forEach(function (key) {
49
41
  if (key === "default" || key === "__esModule") return;
50
42
  if (key in exports && exports[key] === _events[key]) return;
@@ -55,9 +47,7 @@ Object.keys(_events).forEach(function (key) {
55
47
  }
56
48
  });
57
49
  });
58
-
59
50
  var _storage = require("@polkadot/api-base/types/storage");
60
-
61
51
  Object.keys(_storage).forEach(function (key) {
62
52
  if (key === "default" || key === "__esModule") return;
63
53
  if (key in exports && exports[key] === _storage[key]) return;
@@ -68,9 +58,7 @@ Object.keys(_storage).forEach(function (key) {
68
58
  }
69
59
  });
70
60
  });
71
-
72
61
  var _submittable = require("@polkadot/api-base/types/submittable");
73
-
74
62
  Object.keys(_submittable).forEach(function (key) {
75
63
  if (key === "default" || key === "__esModule") return;
76
64
  if (key in exports && exports[key] === _submittable[key]) return;
@@ -81,9 +69,7 @@ Object.keys(_submittable).forEach(function (key) {
81
69
  }
82
70
  });
83
71
  });
84
-
85
72
  var _api = require("./api");
86
-
87
73
  Object.keys(_api).forEach(function (key) {
88
74
  if (key === "default" || key === "__esModule") return;
89
75
  if (key in exports && exports[key] === _api[key]) return;
@@ -94,9 +80,7 @@ Object.keys(_api).forEach(function (key) {
94
80
  }
95
81
  });
96
82
  });
97
-
98
83
  var _base = require("./base");
99
-
100
84
  Object.keys(_base).forEach(function (key) {
101
85
  if (key === "default" || key === "__esModule") return;
102
86
  if (key in exports && exports[key] === _base[key]) return;
@@ -107,9 +91,7 @@ Object.keys(_base).forEach(function (key) {
107
91
  }
108
92
  });
109
93
  });
110
-
111
94
  var _derive = require("./derive");
112
-
113
95
  Object.keys(_derive).forEach(function (key) {
114
96
  if (key === "default" || key === "__esModule") return;
115
97
  if (key in exports && exports[key] === _derive[key]) return;
@@ -120,9 +102,7 @@ Object.keys(_derive).forEach(function (key) {
120
102
  }
121
103
  });
122
104
  });
123
-
124
105
  var _rpc = require("./rpc");
125
-
126
106
  Object.keys(_rpc).forEach(function (key) {
127
107
  if (key === "default" || key === "__esModule") return;
128
108
  if (key in exports && exports[key] === _rpc[key]) return;
package/detectOther.js CHANGED
@@ -1,5 +1,6 @@
1
1
  // Copyright 2017-2022 @polkadot/api-contract authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+
3
4
  import { packageInfo as rpcInfo } from '@polkadot/rpc-core/packageInfo';
4
5
  import { packageInfo as typesInfo } from '@polkadot/types/packageInfo';
5
6
  export default [rpcInfo, typesInfo];
package/detectPackage.js CHANGED
@@ -1,6 +1,8 @@
1
1
  // Copyright 2017-2022 @polkadot/api-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+
3
4
  // Do not edit, auto-generated by @polkadot/dev
5
+
4
6
  import { detectPackage } from '@polkadot/util';
5
7
  import others from "./detectOther.js";
6
8
  import { packageInfo } from "./packageInfo.js";
package/index.js CHANGED
@@ -1,4 +1,5 @@
1
1
  // Copyright 2017-2022 @polkadot/api-contract authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+
3
4
  import "./detectPackage.js";
4
5
  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": "9.5.2",
23
+ "version": "9.6.1",
24
24
  "main": "./cjs/index.js",
25
25
  "module": "./index.js",
26
26
  "types": "./index.d.ts",
@@ -116,8 +116,8 @@
116
116
  },
117
117
  "dependencies": {
118
118
  "@babel/runtime": "^7.19.4",
119
- "@polkadot/rpc-core": "9.5.2",
120
- "@polkadot/types": "9.5.2",
119
+ "@polkadot/rpc-core": "9.6.1",
120
+ "@polkadot/types": "9.6.1",
121
121
  "@polkadot/util": "^10.1.11",
122
122
  "rxjs": "^7.5.7"
123
123
  }
package/packageInfo.js CHANGED
@@ -1,9 +1,11 @@
1
1
  // Copyright 2017-2022 @polkadot/api-base authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+
3
4
  // Do not edit, auto-generated by @polkadot/dev
5
+
4
6
  export const packageInfo = {
5
7
  name: '@polkadot/api-base',
6
8
  path: (import.meta && import.meta.url) ? new URL(import.meta.url).pathname.substring(0, new URL(import.meta.url).pathname.lastIndexOf('/') + 1) : 'auto',
7
9
  type: 'esm',
8
- version: '9.5.2'
10
+ version: '9.6.1'
9
11
  };
package/types/index.js CHANGED
@@ -1,13 +1,15 @@
1
1
  // Copyright 2017-2022 @polkadot/api authors & contributors
2
2
  // SPDX-License-Identifier: Apache-2.0
3
+
3
4
  // These are augmented, do an augmentation export
4
5
  export * from '@polkadot/api-base/types/calls';
5
6
  export * from '@polkadot/api-base/types/consts';
6
7
  export * from '@polkadot/api-base/types/errors';
7
8
  export * from '@polkadot/api-base/types/events';
8
9
  export * from '@polkadot/api-base/types/storage';
9
- export * from '@polkadot/api-base/types/submittable'; // normal exports
10
+ export * from '@polkadot/api-base/types/submittable';
10
11
 
12
+ // normal exports
11
13
  export * from "./api.js";
12
14
  export * from "./base.js";
13
15
  export * from "./derive.js";