@easy-cms/plugin-ecommerce 0.68.1 → 0.68.3

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.
@@ -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: "0.68.1" } : {}
786
+ ...true ? { version: "0.68.3" } : {}
787
787
  };
788
788
 
789
789
  // src/shop.ts
package/dist/index.js CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  paymentSucceeded,
13
13
  price,
14
14
  priceField
15
- } from "./chunk-UCUBSJYQ.js";
15
+ } from "./chunk-4LVHLK2C.js";
16
16
 
17
17
  // src/payments.ts
18
18
  var definePaymentAdapter = (adapter) => adapter;
package/dist/stripe.d.ts CHANGED
@@ -53,6 +53,11 @@ interface StripeAdapterOptions {
53
53
  readonly paymentIntent?: Record<string, unknown>;
54
54
  /** Default `STRIPE_API_VERSION`. Not used with `client`, which has its own. */
55
55
  readonly apiVersion?: string;
56
+ /**
57
+ * More settings for the Stripe client the adapter makes, e.g. `{ maxNetworkRetries: 2 }`, or
58
+ * `{ host: 'localhost', port: 12111, protocol: 'http' }` for stripe-mock in tests.
59
+ */
60
+ readonly clientConfig?: Record<string, unknown>;
56
61
  /** A Stripe client of your own (or a stand-in in tests). Default: `new Stripe(secretKey)`. */
57
62
  readonly client?: StripeClient;
58
63
  }
package/dist/stripe.js CHANGED
@@ -1,7 +1,7 @@
1
1
  import {
2
2
  paymentFailed,
3
3
  paymentSucceeded
4
- } from "./chunk-UCUBSJYQ.js";
4
+ } from "./chunk-4LVHLK2C.js";
5
5
 
6
6
  // src/stripe-client.ts
7
7
  var STRIPE_API_VERSION = "2026-09-30.endive";
@@ -20,7 +20,7 @@ function stripeAdapter(options) {
20
20
  if (options.client) return Promise.resolve(options.client);
21
21
  const name = "stripe";
22
22
  client ??= import(name).then(
23
- (mod) => createStripeClient(mod.default, options)
23
+ (mod) => createStripeClient(mod.default, options, options.clientConfig)
24
24
  );
25
25
  return client;
26
26
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@easy-cms/plugin-ecommerce",
3
- "version": "0.68.1",
3
+ "version": "0.68.3",
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": "^0.68.1"
39
+ "@easy-cms/core": "^0.68.3"
40
40
  },
41
41
  "peerDependenciesMeta": {
42
42
  "react": {
@@ -56,9 +56,9 @@
56
56
  "stripe": "^23.0.0",
57
57
  "stripe-17": "npm:stripe@^17.7.0",
58
58
  "vue": "^3.5.43",
59
- "@easy-cms/core": "^0.68.1",
60
- "@easy-cms/db-sqlite": "^0.68.1",
61
- "@easy-cms/plugin-multi-tenant": "^0.68.1"
59
+ "@easy-cms/core": "^0.68.3",
60
+ "@easy-cms/db-sqlite": "^0.68.3",
61
+ "@easy-cms/plugin-multi-tenant": "^0.68.3"
62
62
  },
63
63
  "engines": {
64
64
  "node": ">=22.12"