@reactionary/provider-medusa 0.2.9 → 0.2.10

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.9",
3
+ "version": "0.2.10",
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.9",
9
+ "@reactionary/core": "0.2.10",
10
10
  "@medusajs/js-sdk": "^2.0.0",
11
11
  "debug": "^4.3.4",
12
12
  "@medusajs/types": "^2.11.0",
@@ -182,7 +182,11 @@ class MedusaSearchProvider extends ProductSearchProvider {
182
182
  __decorateClass([
183
183
  Reactionary({
184
184
  inputSchema: ProductSearchQueryByTermSchema,
185
- outputSchema: ProductSearchResultSchema
185
+ outputSchema: ProductSearchResultSchema,
186
+ cache: true,
187
+ cacheTimeToLiveInSeconds: 300,
188
+ currencyDependentCaching: false,
189
+ localeDependentCaching: true
186
190
  })
187
191
  ], MedusaSearchProvider.prototype, "queryByTerm", 1);
188
192
  export {
@@ -204,19 +204,31 @@ class MedusaProductProvider extends ProductProvider {
204
204
  __decorateClass([
205
205
  Reactionary({
206
206
  inputSchema: ProductQueryByIdSchema,
207
- outputSchema: ProductSchema
207
+ outputSchema: ProductSchema,
208
+ cache: true,
209
+ cacheTimeToLiveInSeconds: 300,
210
+ currencyDependentCaching: false,
211
+ localeDependentCaching: true
208
212
  })
209
213
  ], MedusaProductProvider.prototype, "getById", 1);
210
214
  __decorateClass([
211
215
  Reactionary({
212
216
  inputSchema: ProductQueryBySlugSchema,
213
- outputSchema: ProductSchema.nullable()
217
+ outputSchema: ProductSchema,
218
+ cache: true,
219
+ cacheTimeToLiveInSeconds: 300,
220
+ currencyDependentCaching: false,
221
+ localeDependentCaching: true
214
222
  })
215
223
  ], MedusaProductProvider.prototype, "getBySlug", 1);
216
224
  __decorateClass([
217
225
  Reactionary({
218
226
  inputSchema: ProductQueryBySKUSchema,
219
- outputSchema: ProductSchema
227
+ outputSchema: ProductSchema,
228
+ cache: true,
229
+ cacheTimeToLiveInSeconds: 300,
230
+ currencyDependentCaching: false,
231
+ localeDependentCaching: true
220
232
  })
221
233
  ], MedusaProductProvider.prototype, "getBySKU", 1);
222
234
  export {