@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.
- package/dist/{index-DIj1rK1d.d.cts → index-CIjHKuHK.d.cts} +6 -2
- package/dist/{index-DIj1rK1d.d.ts → index-CIjHKuHK.d.ts} +6 -2
- package/dist/index.cjs +9 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +9 -2
- package/dist/index.js.map +1 -1
- package/dist/services/index.cjs +9 -2
- package/dist/services/index.cjs.map +1 -1
- package/dist/services/index.d.cts +1 -1
- package/dist/services/index.d.ts +1 -1
- package/dist/services/index.js +9 -2
- package/dist/services/index.js.map +1 -1
- package/package.json +1 -1
package/dist/services/index.cjs
CHANGED
|
@@ -988,9 +988,16 @@ var StoreFacts = class extends BaseService {
|
|
|
988
988
|
return false;
|
|
989
989
|
}
|
|
990
990
|
}
|
|
991
|
-
/**
|
|
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"), () =>
|
|
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() {
|