chia-agent 14.2.1 → 14.2.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 +7 -1
- package/package.json +1 -1
- package/rpc/index.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [14.2.2]
|
|
4
|
+
### Changed
|
|
5
|
+
- For the log which is output when `success` property in API response is `false`, the log level is now `INFO` instead of `ERROR`.
|
|
6
|
+
|
|
3
7
|
## [14.2.1]
|
|
4
8
|
### Changed
|
|
5
|
-
- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now returns a rejected promise on failure
|
|
9
|
+
- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now returns a rejected promise on failure instead of throwing an uncaught exception
|
|
6
10
|
- [`daemon.connect()`](./src/daemon/README.md#daemonconnecturl-string-timeoutms-number) now accepts connection timeout in milliseconds.
|
|
7
11
|
|
|
8
12
|
## [14.2.0]
|
|
@@ -1638,6 +1642,8 @@ daemon.sendMessage(destination, get_block_record_by_height_command, data);
|
|
|
1638
1642
|
Initial release.
|
|
1639
1643
|
|
|
1640
1644
|
<!-- [Unreleased]: https://github.com/Chia-Mine/chia-agent/compare/v0.0.1...v0.0.2 -->
|
|
1645
|
+
[14.2.2]: https://github.com/Chia-Mine/chia-agent/compare/v14.2.1...v14.2.2
|
|
1646
|
+
[14.2.1]: https://github.com/Chia-Mine/chia-agent/compare/v14.2.0...v14.2.1
|
|
1641
1647
|
[14.2.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.1.0...v14.2.0
|
|
1642
1648
|
[14.1.0]: https://github.com/Chia-Mine/chia-agent/compare/v14.0.0...v14.1.0
|
|
1643
1649
|
[14.0.0]: https://github.com/Chia-Mine/chia-agent/compare/v13.2.0...v14.0.0
|
package/package.json
CHANGED
package/rpc/index.js
CHANGED
|
@@ -272,7 +272,7 @@ class RPCAgent {
|
|
|
272
272
|
return reject(new Error(`Response has no 'success' property: ${serializedData}`));
|
|
273
273
|
}
|
|
274
274
|
if (!d.success) {
|
|
275
|
-
(0, logger_1.getLogger)().
|
|
275
|
+
(0, logger_1.getLogger)().info(`API failure: ${d.error}`);
|
|
276
276
|
return reject(d);
|
|
277
277
|
}
|
|
278
278
|
return resolve(d);
|