@chain-registry/client 1.19.0 → 1.19.2
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/CHANGELOG.md +16 -0
- package/main/chain-info.js +2 -3
- package/main/chain-util.js +2 -3
- package/main/fetcher.js +2 -3
- package/main/registry.js +9 -11
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [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)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @chain-registry/client
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [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)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @chain-registry/client
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
6
22
|
# [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)
|
|
7
23
|
|
|
8
24
|
**Note:** Version bump only for package @chain-registry/client
|
package/main/chain-info.js
CHANGED
|
@@ -9,7 +9,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
9
9
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
10
10
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
11
11
|
var _utils = require("@chain-registry/utils");
|
|
12
|
-
var ChainInfo = /*#__PURE__*/function () {
|
|
12
|
+
var ChainInfo = exports.ChainInfo = /*#__PURE__*/function () {
|
|
13
13
|
function ChainInfo(options) {
|
|
14
14
|
(0, _classCallCheck2["default"])(this, ChainInfo);
|
|
15
15
|
(0, _defineProperty2["default"])(this, "chainName", void 0);
|
|
@@ -54,5 +54,4 @@ var ChainInfo = /*#__PURE__*/function () {
|
|
|
54
54
|
}
|
|
55
55
|
}]);
|
|
56
56
|
return ChainInfo;
|
|
57
|
-
}();
|
|
58
|
-
exports.ChainInfo = ChainInfo;
|
|
57
|
+
}();
|
package/main/chain-util.js
CHANGED
|
@@ -10,7 +10,7 @@ var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/cl
|
|
|
10
10
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
11
11
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
12
12
|
var _utils = require("@chain-registry/utils");
|
|
13
|
-
var ChainRegistryChainUtil = /*#__PURE__*/function () {
|
|
13
|
+
var ChainRegistryChainUtil = exports.ChainRegistryChainUtil = /*#__PURE__*/function () {
|
|
14
14
|
function ChainRegistryChainUtil(options) {
|
|
15
15
|
(0, _classCallCheck2["default"])(this, ChainRegistryChainUtil);
|
|
16
16
|
(0, _defineProperty2["default"])(this, "chainName", void 0);
|
|
@@ -85,5 +85,4 @@ var ChainRegistryChainUtil = /*#__PURE__*/function () {
|
|
|
85
85
|
}
|
|
86
86
|
}]);
|
|
87
87
|
return ChainRegistryChainUtil;
|
|
88
|
-
}();
|
|
89
|
-
exports.ChainRegistryChainUtil = ChainRegistryChainUtil;
|
|
88
|
+
}();
|
package/main/fetcher.js
CHANGED
|
@@ -23,7 +23,7 @@ var fetchUrl = function fetchUrl(url) {
|
|
|
23
23
|
});
|
|
24
24
|
};
|
|
25
25
|
// QUESTION: should ChainRegistryFetcher just be ChainRegistry?
|
|
26
|
-
var ChainRegistryFetcher = /*#__PURE__*/function () {
|
|
26
|
+
var ChainRegistryFetcher = exports.ChainRegistryFetcher = /*#__PURE__*/function () {
|
|
27
27
|
function ChainRegistryFetcher() {
|
|
28
28
|
var options = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
29
29
|
(0, _classCallCheck2["default"])(this, ChainRegistryFetcher);
|
|
@@ -226,5 +226,4 @@ var ChainRegistryFetcher = /*#__PURE__*/function () {
|
|
|
226
226
|
}()
|
|
227
227
|
}]);
|
|
228
228
|
return ChainRegistryFetcher;
|
|
229
|
-
}();
|
|
230
|
-
exports.ChainRegistryFetcher = ChainRegistryFetcher;
|
|
229
|
+
}();
|
package/main/registry.js
CHANGED
|
@@ -9,21 +9,20 @@ var _toConsumableArray2 = _interopRequireDefault(require("@babel/runtime/helpers
|
|
|
9
9
|
var _objectWithoutProperties2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutProperties"));
|
|
10
10
|
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
11
|
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
12
|
-
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
13
|
-
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
14
12
|
var _possibleConstructorReturn2 = _interopRequireDefault(require("@babel/runtime/helpers/possibleConstructorReturn"));
|
|
15
13
|
var _getPrototypeOf2 = _interopRequireDefault(require("@babel/runtime/helpers/getPrototypeOf"));
|
|
14
|
+
var _assertThisInitialized2 = _interopRequireDefault(require("@babel/runtime/helpers/assertThisInitialized"));
|
|
15
|
+
var _inherits2 = _interopRequireDefault(require("@babel/runtime/helpers/inherits"));
|
|
16
16
|
var _defineProperty2 = _interopRequireDefault(require("@babel/runtime/helpers/defineProperty"));
|
|
17
17
|
var _chainUtil = require("./chain-util");
|
|
18
18
|
var _fetcher = require("./fetcher");
|
|
19
19
|
var _excluded = ["chainNames", "assetListNames", "ibcNamePairs", "baseUrl"];
|
|
20
|
-
function ownKeys(
|
|
21
|
-
function _objectSpread(
|
|
22
|
-
function
|
|
23
|
-
function _isNativeReflectConstruct() {
|
|
24
|
-
var ChainRegistryClient = /*#__PURE__*/function (_ChainRegistryFetcher) {
|
|
20
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
21
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { (0, _defineProperty2["default"])(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
22
|
+
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
|
+
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
24
|
+
var ChainRegistryClient = exports.ChainRegistryClient = /*#__PURE__*/function (_ChainRegistryFetcher) {
|
|
25
25
|
(0, _inherits2["default"])(ChainRegistryClient, _ChainRegistryFetcher);
|
|
26
|
-
var _super = _createSuper(ChainRegistryClient);
|
|
27
26
|
function ChainRegistryClient(options) {
|
|
28
27
|
var _this;
|
|
29
28
|
(0, _classCallCheck2["default"])(this, ChainRegistryClient);
|
|
@@ -32,7 +31,7 @@ var ChainRegistryClient = /*#__PURE__*/function (_ChainRegistryFetcher) {
|
|
|
32
31
|
ibcNamePairs = options.ibcNamePairs,
|
|
33
32
|
baseUrl = options.baseUrl,
|
|
34
33
|
restOptions = (0, _objectWithoutProperties2["default"])(options, _excluded);
|
|
35
|
-
_this =
|
|
34
|
+
_this = _callSuper(this, ChainRegistryClient, [restOptions]);
|
|
36
35
|
(0, _defineProperty2["default"])((0, _assertThisInitialized2["default"])(_this), "_options", {
|
|
37
36
|
chainNames: [],
|
|
38
37
|
baseUrl: 'https://raw.githubusercontent.com/cosmos/chain-registry/master'
|
|
@@ -86,5 +85,4 @@ var ChainRegistryClient = /*#__PURE__*/function (_ChainRegistryFetcher) {
|
|
|
86
85
|
}
|
|
87
86
|
}]);
|
|
88
87
|
return ChainRegistryClient;
|
|
89
|
-
}(_fetcher.ChainRegistryFetcher);
|
|
90
|
-
exports.ChainRegistryClient = ChainRegistryClient;
|
|
88
|
+
}(_fetcher.ChainRegistryFetcher);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@chain-registry/client",
|
|
3
|
-
"version": "1.19.
|
|
3
|
+
"version": "1.19.2",
|
|
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.18.
|
|
78
|
+
"@chain-registry/types": "^0.18.1",
|
|
79
|
+
"@chain-registry/utils": "^1.18.2",
|
|
80
80
|
"bfs-path": "^1.0.2",
|
|
81
81
|
"cross-fetch": "^3.1.5"
|
|
82
82
|
},
|
|
83
|
-
"gitHead": "
|
|
83
|
+
"gitHead": "2430b615d7efb97cefa0cb7a36282671c3b2a756"
|
|
84
84
|
}
|