@ledgerhq/live-cli 24.29.0-nightly.20251209140356 → 24.29.0-nightly.20251209144712

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.
Files changed (2) hide show
  1. package/lib/cli.js +18 -4
  2. package/package.json +3 -3
package/lib/cli.js CHANGED
@@ -543580,7 +543580,7 @@ var require_package8 = __commonJS({
543580
543580
  module2.exports = {
543581
543581
  name: "@ledgerhq/live-common",
543582
543582
  description: "Common ground for the Ledger Live apps",
543583
- version: "34.54.0-nightly.20251209140356",
543583
+ version: "34.54.0-nightly.20251209144712",
543584
543584
  repository: {
543585
543585
  type: "git",
543586
543586
  url: "https://github.com/LedgerHQ/ledger-live.git"
@@ -543917,7 +543917,7 @@ var require_package9 = __commonJS({
543917
543917
  "package.json"(exports2, module2) {
543918
543918
  module2.exports = {
543919
543919
  name: "@ledgerhq/live-cli",
543920
- version: "24.29.0-nightly.20251209140356",
543920
+ version: "24.29.0-nightly.20251209144712",
543921
543921
  description: "ledger-live CLI version",
543922
543922
  repository: {
543923
543923
  type: "git",
@@ -810762,14 +810762,28 @@ init_lib_es2();
810762
810762
  // ../../libs/coin-modules/coin-sui/lib-es/bridge/preload.js
810763
810763
  var import_rxjs145 = require("rxjs");
810764
810764
  var PRELOAD_MAX_AGE7 = 30 * 60 * 1e3;
810765
+ var currentPreloadedData3 = { validators: [], tokens: [] };
810765
810766
  var updates6 = new import_rxjs145.Subject();
810767
+ function setSuiPreloadData(data6) {
810768
+ if (data6 === currentPreloadedData3)
810769
+ return;
810770
+ currentPreloadedData3 = data6;
810771
+ updates6.next(data6);
810772
+ }
810766
810773
  var getPreloadStrategy8 = () => ({
810767
810774
  preloadMaxAge: PRELOAD_MAX_AGE7
810768
810775
  });
810769
810776
  var preload8 = async () => {
810770
- return { validators: [], tokens: [] };
810777
+ const validators7 = await getValidators6();
810778
+ return { validators: validators7, tokens: [] };
810771
810779
  };
810772
- var hydrate9 = (_data2) => {
810780
+ var hydrate9 = (data6) => {
810781
+ if (data6) {
810782
+ setSuiPreloadData({
810783
+ validators: data6.validators ?? [],
810784
+ tokens: []
810785
+ });
810786
+ }
810773
810787
  };
810774
810788
 
810775
810789
  // ../../libs/coin-modules/coin-sui/lib-es/constants.js
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ledgerhq/live-cli",
3
- "version": "24.29.0-nightly.20251209140356",
3
+ "version": "24.29.0-nightly.20251209144712",
4
4
  "description": "ledger-live CLI version",
5
5
  "repository": {
6
6
  "type": "git",
@@ -58,8 +58,8 @@
58
58
  "ts-node": "10.9.2",
59
59
  "tsup": "7.3.0",
60
60
  "yaml": "2.8.1",
61
- "@ledgerhq/types-cryptoassets": "^7.31.0-nightly.20251209140356",
62
- "@ledgerhq/types-live": "^6.90.0-nightly.20251209140356"
61
+ "@ledgerhq/types-cryptoassets": "^7.31.0-nightly.20251209144712",
62
+ "@ledgerhq/types-live": "^6.90.0-nightly.20251209144712"
63
63
  },
64
64
  "publishConfig": {
65
65
  "directory": "dist"