@chain-registry/client 1.21.3 → 1.21.6
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/main/chain-info.js +1 -2
- package/main/chain-util.js +1 -2
- package/main/fetcher.js +1 -2
- package/main/registry.js +3 -5
- package/package.json +4 -4
- package/CHANGELOG.md +0 -184
package/main/chain-info.js
CHANGED
|
@@ -22,7 +22,7 @@ var ChainInfo = exports.ChainInfo = /*#__PURE__*/function () {
|
|
|
22
22
|
this.fetcher = options.fetcher;
|
|
23
23
|
this.refresh();
|
|
24
24
|
}
|
|
25
|
-
(0, _createClass2["default"])(ChainInfo, [{
|
|
25
|
+
return (0, _createClass2["default"])(ChainInfo, [{
|
|
26
26
|
key: "refresh",
|
|
27
27
|
value: function refresh() {
|
|
28
28
|
this._assetList = this.fetcher.getChainAssetList(this.chainName);
|
|
@@ -53,5 +53,4 @@ var ChainInfo = exports.ChainInfo = /*#__PURE__*/function () {
|
|
|
53
53
|
return (0, _utils.getAssetLists)(this.chainName, this._ibcData, this._assetLists);
|
|
54
54
|
}
|
|
55
55
|
}]);
|
|
56
|
-
return ChainInfo;
|
|
57
56
|
}();
|
package/main/chain-util.js
CHANGED
|
@@ -26,7 +26,7 @@ var ChainRegistryChainUtil = exports.ChainRegistryChainUtil = /*#__PURE__*/funct
|
|
|
26
26
|
chain_name: chainName
|
|
27
27
|
}];
|
|
28
28
|
}
|
|
29
|
-
(0, _createClass2["default"])(ChainRegistryChainUtil, [{
|
|
29
|
+
return (0, _createClass2["default"])(ChainRegistryChainUtil, [{
|
|
30
30
|
key: "getAssetByDenom",
|
|
31
31
|
value: function getAssetByDenom(denom) {
|
|
32
32
|
return (0, _utils.getAssetByDenom)(this._assets, denom, this._chainName);
|
|
@@ -109,5 +109,4 @@ var ChainRegistryChainUtil = exports.ChainRegistryChainUtil = /*#__PURE__*/funct
|
|
|
109
109
|
return (0, _utils.convertDisplayUnitToBaseUnit)(this._assets, symbol, amount, this._chainName);
|
|
110
110
|
}
|
|
111
111
|
}]);
|
|
112
|
-
return ChainRegistryChainUtil;
|
|
113
112
|
}();
|
package/main/fetcher.js
CHANGED
|
@@ -46,7 +46,7 @@ var ChainRegistryFetcher = exports.ChainRegistryFetcher = /*#__PURE__*/function
|
|
|
46
46
|
this.urls = options.urls;
|
|
47
47
|
}
|
|
48
48
|
}
|
|
49
|
-
(0, _createClass2["default"])(ChainRegistryFetcher, [{
|
|
49
|
+
return (0, _createClass2["default"])(ChainRegistryFetcher, [{
|
|
50
50
|
key: "chains",
|
|
51
51
|
get: function get() {
|
|
52
52
|
return this._chains;
|
|
@@ -225,5 +225,4 @@ var ChainRegistryFetcher = exports.ChainRegistryFetcher = /*#__PURE__*/function
|
|
|
225
225
|
return fetchUrls;
|
|
226
226
|
}()
|
|
227
227
|
}]);
|
|
228
|
-
return ChainRegistryFetcher;
|
|
229
228
|
}();
|
package/main/registry.js
CHANGED
|
@@ -11,7 +11,6 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
13
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
15
14
|
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
15
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
16
|
var _chainUtil = require("./chain-util");
|
|
@@ -22,7 +21,6 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
22
21
|
function _callSuper(t, o, e) { return o = (0, _getPrototypeOf2["default"])(o), (0, _possibleConstructorReturn2["default"])(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], (0, _getPrototypeOf2["default"])(t).constructor) : o.apply(t, e)); }
|
|
23
22
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
23
|
var ChainRegistryClient = exports.ChainRegistryClient = /*#__PURE__*/function (_ChainRegistryFetcher) {
|
|
25
|
-
(0, _inherits2["default"])(ChainRegistryClient, _ChainRegistryFetcher);
|
|
26
24
|
function ChainRegistryClient(options) {
|
|
27
25
|
var _this;
|
|
28
26
|
(0, _classCallCheck2["default"])(this, ChainRegistryClient);
|
|
@@ -32,7 +30,7 @@ var ChainRegistryClient = exports.ChainRegistryClient = /*#__PURE__*/function (_
|
|
|
32
30
|
baseUrl = options.baseUrl,
|
|
33
31
|
restOptions = (0, _objectWithoutProperties2["default"])(options, _excluded);
|
|
34
32
|
_this = _callSuper(this, ChainRegistryClient, [restOptions]);
|
|
35
|
-
(0, _defineProperty2["default"])(
|
|
33
|
+
(0, _defineProperty2["default"])(_this, "_options", {
|
|
36
34
|
chainNames: [],
|
|
37
35
|
baseUrl: 'https://raw.githubusercontent.com/cosmos/chain-registry/master'
|
|
38
36
|
});
|
|
@@ -45,7 +43,8 @@ var ChainRegistryClient = exports.ChainRegistryClient = /*#__PURE__*/function (_
|
|
|
45
43
|
_this.generateUrls();
|
|
46
44
|
return _this;
|
|
47
45
|
}
|
|
48
|
-
(0,
|
|
46
|
+
(0, _inherits2["default"])(ChainRegistryClient, _ChainRegistryFetcher);
|
|
47
|
+
return (0, _createClass2["default"])(ChainRegistryClient, [{
|
|
49
48
|
key: "generateUrls",
|
|
50
49
|
value: function generateUrls() {
|
|
51
50
|
var _this$_options = this._options,
|
|
@@ -84,5 +83,4 @@ var ChainRegistryClient = exports.ChainRegistryClient = /*#__PURE__*/function (_
|
|
|
84
83
|
});
|
|
85
84
|
}
|
|
86
85
|
}]);
|
|
87
|
-
return ChainRegistryClient;
|
|
88
86
|
}(_fetcher.ChainRegistryFetcher);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/client",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.6",
|
|
4
4
|
"description": "Chain Registry Client",
|
|
5
5
|
"author": "Dan Lynch <pyramation@gmail.com>",
|
|
6
6
|
"homepage": "https://github.com/cosmology-tech/chain-registry",
|
|
@@ -75,10 +75,10 @@
|
|
|
75
75
|
},
|
|
76
76
|
"dependencies": {
|
|
77
77
|
"@babel/runtime": "^7.21.0",
|
|
78
|
-
"@chain-registry/types": "^0.18.
|
|
79
|
-
"@chain-registry/utils": "^1.19.
|
|
78
|
+
"@chain-registry/types": "^0.18.8",
|
|
79
|
+
"@chain-registry/utils": "^1.19.7",
|
|
80
80
|
"bfs-path": "^1.0.2",
|
|
81
81
|
"cross-fetch": "^3.1.5"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "3c6e31032f2b6cc79e35ea27e414acdf3c2ceb97"
|
|
84
84
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,184 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
## [1.21.3](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.21.2...@chain-registry/client@1.21.3) (2024-03-21)
|
|
7
|
-
|
|
8
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
## 1.21.2 (2024-03-21)
|
|
15
|
-
|
|
16
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
## [1.21.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.21.0...@chain-registry/client@1.21.1) (2024-03-20)
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
### Bug Fixes
|
|
26
|
-
|
|
27
|
-
* **client:** clear mock after tests ([c6dc7f3](https://github.com/cosmology-tech/chain-registry/commit/c6dc7f32e7fad26312ca93343bb9d1a166a3665f))
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
# [1.21.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.20.1...@chain-registry/client@1.21.0) (2024-03-20)
|
|
34
|
-
|
|
35
|
-
### Bug Fixes
|
|
36
|
-
|
|
37
|
-
- revert client package ([2534ca7](https://github.com/cosmology-tech/chain-registry/commit/2534ca747f0559bceca0a1bfa455a5c6e7e78ee7))
|
|
38
|
-
|
|
39
|
-
## 1.20.1 (2024-03-20)
|
|
40
|
-
|
|
41
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
42
|
-
|
|
43
|
-
# [1.20.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.19.2...@chain-registry/client@1.20.0) (2024-03-19)
|
|
44
|
-
|
|
45
|
-
### Bug Fixes
|
|
46
|
-
|
|
47
|
-
- clear nock after tests ([cecb348](https://github.com/cosmology-tech/chain-registry/commit/cecb3489733e8d46d6ac604c6296694f48634fdf))
|
|
48
|
-
- increase fetch timeout ([4b81273](https://github.com/cosmology-tech/chain-registry/commit/4b8127380cc23e550b6ae7bc4b2961f9d7c9db8f))
|
|
49
|
-
- tests ([6d38a34](https://github.com/cosmology-tech/chain-registry/commit/6d38a342add4d101ca8f770c42c0f5de36eedc99))
|
|
50
|
-
- update utils to new client ([6712608](https://github.com/cosmology-tech/chain-registry/commit/671260861b20b1236d327ae6a01652531a0eb5d9))
|
|
51
|
-
|
|
52
|
-
### Features
|
|
53
|
-
|
|
54
|
-
- update ChainRegistryClient class ([a377f83](https://github.com/cosmology-tech/chain-registry/commit/a377f836eb5e57b0a58d1fb93d359f1befff8d93))
|
|
55
|
-
- update client tests ([0c829f5](https://github.com/cosmology-tech/chain-registry/commit/0c829f52322d30345508245cfab202bce6eeaaa9))
|
|
56
|
-
- update types ([78070ca](https://github.com/cosmology-tech/chain-registry/commit/78070ca382706ca59caf00dafc7a9c7856c8f447))
|
|
57
|
-
|
|
58
|
-
## [1.19.2](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.19.1...@chain-registry/client@1.19.2) (2024-02-27)
|
|
59
|
-
|
|
60
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
61
|
-
|
|
62
|
-
## [1.19.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.19.0...@chain-registry/client@1.19.1) (2024-02-26)
|
|
63
|
-
|
|
64
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
65
|
-
|
|
66
|
-
# [1.19.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.18.4...@chain-registry/client@1.19.0) (2024-01-25)
|
|
67
|
-
|
|
68
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
69
|
-
|
|
70
|
-
## [1.18.4](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.18.3...@chain-registry/client@1.18.4) (2024-01-19)
|
|
71
|
-
|
|
72
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
73
|
-
|
|
74
|
-
## [1.18.3](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.18.2...@chain-registry/client@1.18.3) (2024-01-19)
|
|
75
|
-
|
|
76
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
77
|
-
|
|
78
|
-
## [1.18.2](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.18.1...@chain-registry/client@1.18.2) (2024-01-19)
|
|
79
|
-
|
|
80
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
81
|
-
|
|
82
|
-
## [1.18.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.18.0...@chain-registry/client@1.18.1) (2024-01-17)
|
|
83
|
-
|
|
84
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
85
|
-
|
|
86
|
-
# [1.18.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.17.1...@chain-registry/client@1.18.0) (2023-12-20)
|
|
87
|
-
|
|
88
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
89
|
-
|
|
90
|
-
## [1.17.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.17.0...@chain-registry/client@1.17.1) (2023-12-15)
|
|
91
|
-
|
|
92
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
93
|
-
|
|
94
|
-
# [1.17.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.16.0...@chain-registry/client@1.17.0) (2023-12-15)
|
|
95
|
-
|
|
96
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
97
|
-
|
|
98
|
-
# [1.16.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.15.0...@chain-registry/client@1.16.0) (2023-12-15)
|
|
99
|
-
|
|
100
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
101
|
-
|
|
102
|
-
# [1.15.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.14.2...@chain-registry/client@1.15.0) (2023-09-15)
|
|
103
|
-
|
|
104
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
105
|
-
|
|
106
|
-
## [1.14.2](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.14.1...@chain-registry/client@1.14.2) (2023-07-30)
|
|
107
|
-
|
|
108
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
109
|
-
|
|
110
|
-
## [1.14.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.14.0...@chain-registry/client@1.14.1) (2023-07-12)
|
|
111
|
-
|
|
112
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
113
|
-
|
|
114
|
-
# [1.14.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.13.0...@chain-registry/client@1.14.0) (2023-07-11)
|
|
115
|
-
|
|
116
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
117
|
-
|
|
118
|
-
# [1.13.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.12.0...@chain-registry/client@1.13.0) (2023-07-08)
|
|
119
|
-
|
|
120
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
121
|
-
|
|
122
|
-
# [1.12.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.11.0...@chain-registry/client@1.12.0) (2023-06-27)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
125
|
-
|
|
126
|
-
# [1.11.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.10.1...@chain-registry/client@1.11.0) (2023-04-20)
|
|
127
|
-
|
|
128
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
129
|
-
|
|
130
|
-
## [1.10.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.10.0...@chain-registry/client@1.10.1) (2023-04-18)
|
|
131
|
-
|
|
132
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
133
|
-
|
|
134
|
-
# [1.10.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.9.0...@chain-registry/client@1.10.0) (2023-04-18)
|
|
135
|
-
|
|
136
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
137
|
-
|
|
138
|
-
# [1.9.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.8.0...@chain-registry/client@1.9.0) (2023-03-29)
|
|
139
|
-
|
|
140
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
141
|
-
|
|
142
|
-
# [1.8.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.7.0...@chain-registry/client@1.8.0) (2023-03-02)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
145
|
-
|
|
146
|
-
# [1.7.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.6.0...@chain-registry/client@1.7.0) (2023-02-23)
|
|
147
|
-
|
|
148
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
149
|
-
|
|
150
|
-
# [1.6.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.5.0...@chain-registry/client@1.6.0) (2023-02-08)
|
|
151
|
-
|
|
152
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
153
|
-
|
|
154
|
-
# [1.5.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.4.1...@chain-registry/client@1.5.0) (2022-12-08)
|
|
155
|
-
|
|
156
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
157
|
-
|
|
158
|
-
## [1.4.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.4.0...@chain-registry/client@1.4.1) (2022-11-16)
|
|
159
|
-
|
|
160
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
161
|
-
|
|
162
|
-
# [1.4.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.3.0...@chain-registry/client@1.4.0) (2022-11-10)
|
|
163
|
-
|
|
164
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
165
|
-
|
|
166
|
-
# [1.3.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.2.1...@chain-registry/client@1.3.0) (2022-11-10)
|
|
167
|
-
|
|
168
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
169
|
-
|
|
170
|
-
## [1.2.1](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.2.0...@chain-registry/client@1.2.1) (2022-10-27)
|
|
171
|
-
|
|
172
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
173
|
-
|
|
174
|
-
# [1.2.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.1.0...@chain-registry/client@1.2.0) (2022-10-20)
|
|
175
|
-
|
|
176
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
177
|
-
|
|
178
|
-
# [1.1.0](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.0.1...@chain-registry/client@1.1.0) (2022-10-20)
|
|
179
|
-
|
|
180
|
-
**Note:** Version bump only for package @chain-registry/client
|
|
181
|
-
|
|
182
|
-
## 1.0.1 (2022-10-20)
|
|
183
|
-
|
|
184
|
-
**Note:** Version bump only for package @chain-registry/client
|