@reactioncommerce/api-plugin-shops
Advanced tools
Comparing version 1.0.1 to 1.1.0
{ | ||
"name": "@reactioncommerce/api-plugin-shops", | ||
"description": "Shops plugin for the Reaction API", | ||
"version": "1.0.1", | ||
"version": "1.1.0", | ||
"main": "index.js", | ||
@@ -28,3 +28,3 @@ "type": "module", | ||
"dependencies": { | ||
"@reactioncommerce/api-utils": "^1.9.0", | ||
"@reactioncommerce/api-utils": "^1.14.2", | ||
"@reactioncommerce/logger": "~1.1.2", | ||
@@ -31,0 +31,0 @@ "@reactioncommerce/random": "~1.0.2", |
@@ -0,4 +1,7 @@ | ||
import shops from "./shops.js"; | ||
export default { | ||
shopById: (context, _id) => context.dataLoaders.Shops.load(_id), | ||
shopBySlug: (context, slug) => context.collections.Shops.findOne({ slug }), | ||
shops, | ||
primaryShop: (context) => context.collections.Shops.findOne({ shopType: "primary" }), | ||
@@ -5,0 +8,0 @@ async primaryShopId(context) { |
@@ -5,2 +5,3 @@ import primaryShopId from "./primaryShopId.js"; | ||
import shopBySlug from "./shopBySlug.js"; | ||
import shops from "./shops.js"; | ||
@@ -11,3 +12,4 @@ export default { | ||
shop, | ||
shopBySlug | ||
shopBySlug, | ||
shops | ||
}; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
100039
46
1646