@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
|
@@ -352,6 +352,7 @@ type StoreProfile = {
|
|
|
352
352
|
email: string;
|
|
353
353
|
phone: string;
|
|
354
354
|
support_url: string;
|
|
355
|
+
language: string;
|
|
355
356
|
};
|
|
356
357
|
type Vendor = {
|
|
357
358
|
id: number;
|
|
@@ -1265,11 +1266,14 @@ declare class StoreFacts extends BaseService {
|
|
|
1265
1266
|
/** Enabled plugins by key. A module that is not installed has no key here. */
|
|
1266
1267
|
plugins(): Promise<Map<string, Plugin>>;
|
|
1267
1268
|
pluginOn(key: string): Promise<boolean>;
|
|
1268
|
-
/**
|
|
1269
|
+
/**
|
|
1270
|
+
* The store's settlement currency and default language, from routes bound
|
|
1271
|
+
* to the store: `/health/ready` answers for the install, so on a shared
|
|
1272
|
+
* engine every store read as the install's currency.
|
|
1273
|
+
*/
|
|
1269
1274
|
ready(): Promise<{
|
|
1270
1275
|
currency: string;
|
|
1271
1276
|
language: string;
|
|
1272
|
-
version: string;
|
|
1273
1277
|
}>;
|
|
1274
1278
|
/** The store's own name and how a buyer reaches it, as set in its panel. */
|
|
1275
1279
|
profile(): Promise<StoreProfile>;
|
|
@@ -352,6 +352,7 @@ type StoreProfile = {
|
|
|
352
352
|
email: string;
|
|
353
353
|
phone: string;
|
|
354
354
|
support_url: string;
|
|
355
|
+
language: string;
|
|
355
356
|
};
|
|
356
357
|
type Vendor = {
|
|
357
358
|
id: number;
|
|
@@ -1265,11 +1266,14 @@ declare class StoreFacts extends BaseService {
|
|
|
1265
1266
|
/** Enabled plugins by key. A module that is not installed has no key here. */
|
|
1266
1267
|
plugins(): Promise<Map<string, Plugin>>;
|
|
1267
1268
|
pluginOn(key: string): Promise<boolean>;
|
|
1268
|
-
/**
|
|
1269
|
+
/**
|
|
1270
|
+
* The store's settlement currency and default language, from routes bound
|
|
1271
|
+
* to the store: `/health/ready` answers for the install, so on a shared
|
|
1272
|
+
* engine every store read as the install's currency.
|
|
1273
|
+
*/
|
|
1269
1274
|
ready(): Promise<{
|
|
1270
1275
|
currency: string;
|
|
1271
1276
|
language: string;
|
|
1272
|
-
version: string;
|
|
1273
1277
|
}>;
|
|
1274
1278
|
/** The store's own name and how a buyer reaches it, as set in its panel. */
|
|
1275
1279
|
profile(): Promise<StoreProfile>;
|
package/dist/index.cjs
CHANGED
|
@@ -1007,9 +1007,16 @@ var StoreFacts = class extends BaseService {
|
|
|
1007
1007
|
return false;
|
|
1008
1008
|
}
|
|
1009
1009
|
}
|
|
1010
|
-
/**
|
|
1010
|
+
/**
|
|
1011
|
+
* The store's settlement currency and default language, from routes bound
|
|
1012
|
+
* to the store: `/health/ready` answers for the install, so on a shared
|
|
1013
|
+
* engine every store read as the install's currency.
|
|
1014
|
+
*/
|
|
1011
1015
|
ready() {
|
|
1012
|
-
return remember(this.key("ready"), () =>
|
|
1016
|
+
return remember(this.key("ready"), async () => {
|
|
1017
|
+
const [{ currency }, { language }] = await Promise.all([this.checkoutOptions(), this.profile()]);
|
|
1018
|
+
return { currency, language };
|
|
1019
|
+
});
|
|
1013
1020
|
}
|
|
1014
1021
|
/** The store's own name and how a buyer reaches it, as set in its panel. */
|
|
1015
1022
|
profile() {
|