@misiki/gocommerce-connector 0.4.1 → 0.4.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.
@@ -988,9 +988,16 @@ var StoreFacts = class extends BaseService {
988
988
  return false;
989
989
  }
990
990
  }
991
- /** The store's settlement currency and default language. */
991
+ /**
992
+ * The store's settlement currency and default language, from routes bound
993
+ * to the store: `/health/ready` answers for the install, so on a shared
994
+ * engine every store read as the install's currency.
995
+ */
992
996
  ready() {
993
- return remember(this.key("ready"), () => this.data("/health/ready"));
997
+ return remember(this.key("ready"), async () => {
998
+ const [{ currency }, { language }] = await Promise.all([this.checkoutOptions(), this.profile()]);
999
+ return { currency, language };
1000
+ });
994
1001
  }
995
1002
  /** The store's own name and how a buyer reaches it, as set in its panel. */
996
1003
  profile() {