UNPKG

@shopify/shopify-api

Version:

Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks

20 lines (17 loc) 695 B
import { getHandlers, getTopicsAdded, addHandlers, registry } from './registry.mjs'; import { register } from './register.mjs'; import { process } from './process.mjs'; import { validateFactory } from './validate.mjs'; function shopifyWebhooks(config) { const webhookRegistry = registry(); return { addHandlers: addHandlers(config, webhookRegistry), getTopicsAdded: getTopicsAdded(webhookRegistry), getHandlers: getHandlers(webhookRegistry), register: register(config, webhookRegistry), process: process(config, webhookRegistry), validate: validateFactory(config), }; } export { shopifyWebhooks }; //# sourceMappingURL=index.mjs.map