@chain-registry/client 1.21.5 → 1.21.7

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.
@@ -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
  }();
@@ -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"])((0, _assertThisInitialized2["default"])(_this), "_options", {
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, _createClass2["default"])(ChainRegistryClient, [{
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.5",
3
+ "version": "1.21.7",
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.7",
79
- "@chain-registry/utils": "^1.19.6",
78
+ "@chain-registry/types": "^0.18.9",
79
+ "@chain-registry/utils": "^1.19.8",
80
80
  "bfs-path": "^1.0.2",
81
81
  "cross-fetch": "^3.1.5"
82
82
  },
83
- "gitHead": "7def14f7596a56f96fa377f1f410d03466ee5735"
83
+ "gitHead": "b0ad3a909d9bbf86ee0408c890d7ec6a0cf2caf4"
84
84
  }
package/CHANGELOG.md DELETED
@@ -1,200 +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.5](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.21.4...@chain-registry/client@1.21.5) (2024-03-27)
7
-
8
- **Note:** Version bump only for package @chain-registry/client
9
-
10
-
11
-
12
-
13
-
14
- ## [1.21.4](https://github.com/cosmology-tech/chain-registry/compare/@chain-registry/client@1.21.3...@chain-registry/client@1.21.4) (2024-03-27)
15
-
16
- **Note:** Version bump only for package @chain-registry/client
17
-
18
-
19
-
20
-
21
-
22
- ## [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)
23
-
24
- **Note:** Version bump only for package @chain-registry/client
25
-
26
-
27
-
28
-
29
-
30
- ## 1.21.2 (2024-03-21)
31
-
32
- **Note:** Version bump only for package @chain-registry/client
33
-
34
-
35
-
36
-
37
-
38
- ## [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)
39
-
40
-
41
- ### Bug Fixes
42
-
43
- * **client:** clear mock after tests ([c6dc7f3](https://github.com/cosmology-tech/chain-registry/commit/c6dc7f32e7fad26312ca93343bb9d1a166a3665f))
44
-
45
-
46
-
47
-
48
-
49
- # [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)
50
-
51
- ### Bug Fixes
52
-
53
- - revert client package ([2534ca7](https://github.com/cosmology-tech/chain-registry/commit/2534ca747f0559bceca0a1bfa455a5c6e7e78ee7))
54
-
55
- ## 1.20.1 (2024-03-20)
56
-
57
- **Note:** Version bump only for package @chain-registry/client
58
-
59
- # [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)
60
-
61
- ### Bug Fixes
62
-
63
- - clear nock after tests ([cecb348](https://github.com/cosmology-tech/chain-registry/commit/cecb3489733e8d46d6ac604c6296694f48634fdf))
64
- - increase fetch timeout ([4b81273](https://github.com/cosmology-tech/chain-registry/commit/4b8127380cc23e550b6ae7bc4b2961f9d7c9db8f))
65
- - tests ([6d38a34](https://github.com/cosmology-tech/chain-registry/commit/6d38a342add4d101ca8f770c42c0f5de36eedc99))
66
- - update utils to new client ([6712608](https://github.com/cosmology-tech/chain-registry/commit/671260861b20b1236d327ae6a01652531a0eb5d9))
67
-
68
- ### Features
69
-
70
- - update ChainRegistryClient class ([a377f83](https://github.com/cosmology-tech/chain-registry/commit/a377f836eb5e57b0a58d1fb93d359f1befff8d93))
71
- - update client tests ([0c829f5](https://github.com/cosmology-tech/chain-registry/commit/0c829f52322d30345508245cfab202bce6eeaaa9))
72
- - update types ([78070ca](https://github.com/cosmology-tech/chain-registry/commit/78070ca382706ca59caf00dafc7a9c7856c8f447))
73
-
74
- ## [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)
75
-
76
- **Note:** Version bump only for package @chain-registry/client
77
-
78
- ## [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)
79
-
80
- **Note:** Version bump only for package @chain-registry/client
81
-
82
- # [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)
83
-
84
- **Note:** Version bump only for package @chain-registry/client
85
-
86
- ## [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)
87
-
88
- **Note:** Version bump only for package @chain-registry/client
89
-
90
- ## [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)
91
-
92
- **Note:** Version bump only for package @chain-registry/client
93
-
94
- ## [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)
95
-
96
- **Note:** Version bump only for package @chain-registry/client
97
-
98
- ## [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)
99
-
100
- **Note:** Version bump only for package @chain-registry/client
101
-
102
- # [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)
103
-
104
- **Note:** Version bump only for package @chain-registry/client
105
-
106
- ## [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)
107
-
108
- **Note:** Version bump only for package @chain-registry/client
109
-
110
- # [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)
111
-
112
- **Note:** Version bump only for package @chain-registry/client
113
-
114
- # [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)
115
-
116
- **Note:** Version bump only for package @chain-registry/client
117
-
118
- # [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)
119
-
120
- **Note:** Version bump only for package @chain-registry/client
121
-
122
- ## [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)
123
-
124
- **Note:** Version bump only for package @chain-registry/client
125
-
126
- ## [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)
127
-
128
- **Note:** Version bump only for package @chain-registry/client
129
-
130
- # [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)
131
-
132
- **Note:** Version bump only for package @chain-registry/client
133
-
134
- # [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)
135
-
136
- **Note:** Version bump only for package @chain-registry/client
137
-
138
- # [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)
139
-
140
- **Note:** Version bump only for package @chain-registry/client
141
-
142
- # [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)
143
-
144
- **Note:** Version bump only for package @chain-registry/client
145
-
146
- ## [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)
147
-
148
- **Note:** Version bump only for package @chain-registry/client
149
-
150
- # [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)
151
-
152
- **Note:** Version bump only for package @chain-registry/client
153
-
154
- # [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)
155
-
156
- **Note:** Version bump only for package @chain-registry/client
157
-
158
- # [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)
159
-
160
- **Note:** Version bump only for package @chain-registry/client
161
-
162
- # [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)
163
-
164
- **Note:** Version bump only for package @chain-registry/client
165
-
166
- # [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)
167
-
168
- **Note:** Version bump only for package @chain-registry/client
169
-
170
- # [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)
171
-
172
- **Note:** Version bump only for package @chain-registry/client
173
-
174
- ## [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)
175
-
176
- **Note:** Version bump only for package @chain-registry/client
177
-
178
- # [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)
179
-
180
- **Note:** Version bump only for package @chain-registry/client
181
-
182
- # [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)
183
-
184
- **Note:** Version bump only for package @chain-registry/client
185
-
186
- ## [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)
187
-
188
- **Note:** Version bump only for package @chain-registry/client
189
-
190
- # [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)
191
-
192
- **Note:** Version bump only for package @chain-registry/client
193
-
194
- # [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)
195
-
196
- **Note:** Version bump only for package @chain-registry/client
197
-
198
- ## 1.0.1 (2022-10-20)
199
-
200
- **Note:** Version bump only for package @chain-registry/client