Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@shopify/koa-shopify-webhooks

Package Overview
Dependencies
Maintainers
13
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@shopify/koa-shopify-webhooks - npm Package Compare versions

Comparing version 1.1.2 to 1.1.3

4

CHANGELOG.md

@@ -10,2 +10,6 @@ # Changelog

## [1.1.3] - 2019-03-22
- Return a GraphQL formatted topic
## [1.1.2]

@@ -12,0 +16,0 @@

5

dist/receive.js

@@ -15,3 +15,3 @@ "use strict";

return tslib_1.__awaiter(this, void 0, void 0, function () {
var hmac, topic, domain, rawBody, generatedHash;
var hmac, topic, domain, rawBody, generatedHash, graphqlTopic;
return tslib_1.__generator(this, function (_a) {

@@ -27,6 +27,7 @@ switch (_a.label) {

.digest('base64');
graphqlTopic = topic.toUpperCase().replace(/\//g, '_');
if (!safe_compare_1.default(generatedHash, hmac)) return [3 /*break*/, 3];
ctx.res.statusCode = network_1.StatusCode.Accepted;
ctx.state.webhook = {
topic: topic,
topic: graphqlTopic,
domain: domain,

@@ -33,0 +34,0 @@ };

{
"name": "@shopify/koa-shopify-webhooks",
"version": "1.1.2",
"version": "1.1.3",
"license": "MIT",

@@ -5,0 +5,0 @@ "description": "Receive webhooks from Shopify with ease.",

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc