@reactionary/provider-medusa 0.2.12 → 0.2.14

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/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@reactionary/provider-medusa",
3
- "version": "0.2.12",
3
+ "version": "0.2.14",
4
4
  "type": "module",
5
5
  "main": "index.js",
6
6
  "types": "src/index.d.ts",
7
7
  "dependencies": {
8
8
  "zod": "4.1.9",
9
- "@reactionary/core": "0.2.12",
9
+ "@reactionary/core": "0.2.14",
10
10
  "@medusajs/js-sdk": "^2.0.0",
11
11
  "debug": "^4.3.4",
12
12
  "@medusajs/types": "^2.11.0",
@@ -146,15 +146,6 @@ class MedusaSearchProvider extends ProductSearchProvider {
146
146
  sourceUrl: product.images?.[0].url ?? "",
147
147
  altText: product.title || void 0
148
148
  });
149
- const mappedOptions = variant.options?.filter((x) => x.option?.title === "Color").map(
150
- (opt) => ProductVariantOptionSchema.parse({
151
- identifier: ProductOptionIdentifierSchema.parse({
152
- key: opt.option_id
153
- }),
154
- name: opt.value || ""
155
- })
156
- ) || [];
157
- const mappedOption = variant.options?.[0];
158
149
  return ProductSearchResultItemVariantSchema.parse({
159
150
  variant: ProductVariantIdentifierSchema.parse({
160
151
  sku: variant.sku || ""