Socket
Socket
Sign inDemoInstall

@reactioncommerce/api-plugin-shops

Package Overview
Dependencies
189
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.0.1 to 1.1.0

src/queries/shops.js

4

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc