@kizlo/woocommerce 0.1.0 → 0.1.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/test.d.ts CHANGED
@@ -1,7 +1,15 @@
1
- import * as kizlo_test0 from "kizlo/test";
1
+ import * as kizlo18 from "kizlo";
2
+ import { DevPluginSource } from "kizlo/test";
2
3
 
3
4
  //#region src/test/index.d.ts
4
- /** WooCommerce test fixture: installs WooCommerce + the kizlo-woocommerce plugin, seeds products/coupons. */
5
- declare function woocommerce(): kizlo_test0.Fixture;
5
+
6
+ /**
7
+ * WooCommerce test fixture: installs WooCommerce + the kizlo-woocommerce plugin, seeds
8
+ * products/coupons. Pass `plugins` to override the defaults — e.g. bind-mount your local
9
+ * source with `{ path: "plugins/kizlo-woocommerce" }` to develop/test against live files.
10
+ */
11
+ declare function woocommerce(opts?: {
12
+ plugins?: DevPluginSource[];
13
+ }): kizlo18.Fixture;
6
14
  //#endregion
7
15
  export { woocommerce };
package/dist/test.js CHANGED
@@ -1,5 +1,5 @@
1
1
  import { WC_CORE_BASE, WC_STORE_BASE } from "kizlo";
2
- import { defineFixture, githubRelease } from "kizlo/test";
2
+ import { defineFixture, kizloRelease } from "kizlo/test";
3
3
 
4
4
  //#region src/test/index.ts
5
5
  const PRODUCTS = [
@@ -50,13 +50,17 @@ async function upsertCoupon(service, coupon) {
50
50
  const created = await service.post(`${WC_CORE_BASE}/coupons`, { body: coupon });
51
51
  if (created.error) throw created.error;
52
52
  }
53
- /** WooCommerce test fixture: installs WooCommerce + the kizlo-woocommerce plugin, seeds products/coupons. */
54
- function woocommerce() {
53
+ /**
54
+ * WooCommerce test fixture: installs WooCommerce + the kizlo-woocommerce plugin, seeds
55
+ * products/coupons. Pass `plugins` to override the defaults — e.g. bind-mount your local
56
+ * source with `{ path: "plugins/kizlo-woocommerce" }` to develop/test against live files.
57
+ */
58
+ function woocommerce(opts = {}) {
55
59
  return defineFixture({
56
60
  name: "woocommerce",
57
- plugins: ["woocommerce", {
61
+ plugins: opts.plugins ?? ["woocommerce", {
58
62
  name: "kizlo-woocommerce",
59
- source: githubRelease("kizlo-io/kizlo-wordpress", "kizlo-woocommerce-v1.0.0-beta.2")
63
+ source: kizloRelease("kizlo-woocommerce")
60
64
  }],
61
65
  async seed({ service }) {
62
66
  let productId = 0;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kizlo/woocommerce",
3
- "version": "0.1.0",
3
+ "version": "0.1.2",
4
4
  "type": "module",
5
5
  "description": "WooCommerce extension for Kizlo.",
6
6
  "keywords": [
@@ -48,7 +48,7 @@
48
48
  "access": "public"
49
49
  },
50
50
  "dependencies": {
51
- "@kizlo/shared": "0.1.0",
51
+ "@kizlo/shared": "0.1.2",
52
52
  "jose": "6.1.0",
53
53
  "zod": "^4.3.6"
54
54
  },