@easy-cms/plugin-ecommerce 1.41.0 → 1.42.1
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/LICENSE +1 -1
- package/dist/{chunk-BTIBQCXY.js → chunk-RFEEQRHY.js} +2 -2
- package/dist/index.js +1 -1
- package/dist/stripe.js +1 -1
- package/package.json +5 -5
package/LICENSE
CHANGED
|
@@ -783,7 +783,7 @@ var INFO = {
|
|
|
783
783
|
name: "@easy-cms/plugin-ecommerce",
|
|
784
784
|
// The plugin API it is written for (`PLUGIN_API_VERSION` of @easy-cms/core).
|
|
785
785
|
apiVersion: 1,
|
|
786
|
-
...true ? { version: "1.
|
|
786
|
+
...true ? { version: "1.42.1" } : {}
|
|
787
787
|
};
|
|
788
788
|
|
|
789
789
|
// src/shop.ts
|
|
@@ -1692,7 +1692,7 @@ function ecommercePlugin(options) {
|
|
|
1692
1692
|
const addressCollection = collections.find((c) => c.slug === "addresses");
|
|
1693
1693
|
const addressRequired = (addressCollection?.fields ?? []).filter((f) => f.required === true && f.name !== "customer").map((f) => f.name);
|
|
1694
1694
|
const sendOrderEmail = async (cms, write, to, order, tag) => {
|
|
1695
|
-
if (!write || !cms.
|
|
1695
|
+
if (!write || !await cms.emailAdapter()) return;
|
|
1696
1696
|
const currency = currencies.find((c) => c.code === order.currency) ?? currencies[0];
|
|
1697
1697
|
const locale = order.locale === "th" ? "th" : "en";
|
|
1698
1698
|
const adapter = methods.get(String(order.paymentMethod));
|
package/dist/index.js
CHANGED
package/dist/stripe.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@easy-cms/plugin-ecommerce",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.42.1",
|
|
4
4
|
"description": "A shop for Easy CMS: products and variants, prices in several currencies, carts (guests too), checkout with Stripe or bank transfer, orders, stock, customer accounts, and React and Vue hooks (experimental)",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"type": "module",
|
|
@@ -36,7 +36,7 @@
|
|
|
36
36
|
"react": ">=18.0.0",
|
|
37
37
|
"stripe": ">=17.0.0 <24.0.0",
|
|
38
38
|
"vue": "^3.4.0",
|
|
39
|
-
"@easy-cms/core": "^1.
|
|
39
|
+
"@easy-cms/core": "^1.42.1"
|
|
40
40
|
},
|
|
41
41
|
"peerDependenciesMeta": {
|
|
42
42
|
"react": {
|
|
@@ -58,9 +58,9 @@
|
|
|
58
58
|
"stripe": "^23.0.0",
|
|
59
59
|
"stripe-17": "npm:stripe@^17.7.0",
|
|
60
60
|
"vue": "^3.5.43",
|
|
61
|
-
"@easy-cms/core": "^1.
|
|
62
|
-
"@easy-cms/db-sqlite": "^1.
|
|
63
|
-
"@easy-cms/plugin-multi-tenant": "^1.
|
|
61
|
+
"@easy-cms/core": "^1.42.1",
|
|
62
|
+
"@easy-cms/db-sqlite": "^1.42.1",
|
|
63
|
+
"@easy-cms/plugin-multi-tenant": "^1.42.1"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">=22.12"
|