@xyo-network/os-runtime 4.2.0-rc.1 → 4.2.0-rc.10

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.
@@ -318,6 +318,7 @@ var NameTransforms = class _NameTransforms {
318
318
  };
319
319
 
320
320
  // src/lib/PayloadStore.ts
321
+ import { isEqual } from "@xylabs/lodash";
321
322
  var PayloadStore = class {
322
323
  static {
323
324
  __name(this, "PayloadStore");
@@ -341,7 +342,9 @@ var PayloadStore = class {
341
342
  const instance = new this(archivist);
342
343
  const insertListener = /* @__PURE__ */ __name(async ({ payloads }) => {
343
344
  if (payloads.some(idFunction)) {
344
- instance.latest = await getLatest();
345
+ const latest = await getLatest();
346
+ if (isEqual(latest, instance.latest)) return;
347
+ instance.latest = latest;
345
348
  instance.emitChange();
346
349
  }
347
350
  }, "insertListener");
@@ -2618,7 +2621,7 @@ var OsBadgeResource = class extends OsSettingsCallerBase {
2618
2621
 
2619
2622
  // src/classes/settings/Caller.ts
2620
2623
  import { assertEx as assertEx17 } from "@xylabs/assert";
2621
- import { isEqual } from "@xylabs/lodash";
2624
+ import { isEqual as isEqual2 } from "@xylabs/lodash";
2622
2625
 
2623
2626
  // src/utils/buildWalletSeedPhrasePayload.ts
2624
2627
  import { WalletSeedPhraseSchema } from "@xyo-network/os-model";
@@ -2775,7 +2778,7 @@ var OsSettingsCaller = class extends OsSettingsCallerBase {
2775
2778
  const { payload: biosSeedPhrasePayload } = await buildUserWalletSeedPhrasePayload(biosWalletSeedPhrase);
2776
2779
  await this.addWalletSeedPhrase(biosSeedPhrasePayload);
2777
2780
  return biosSeedPhrasePayload;
2778
- } else if (!isEqual(storedSeedPhrasePayload.mnemonic.mnemonic, biosWalletSeedPhraseParts)) {
2781
+ } else if (!isEqual2(storedSeedPhrasePayload.mnemonic.mnemonic, biosWalletSeedPhraseParts)) {
2779
2782
  const updatedBiosSeedPhrase = storedSeedPhrasePayload.mnemonic.mnemonic.join(" ");
2780
2783
  await this.context.kernel?.bios?.seedPhraseStore.set("user", updatedBiosSeedPhrase);
2781
2784
  }