@shopify/koa-shopify-webhooks
Advanced tools
Comparing version 1.1.2 to 1.1.3
@@ -10,2 +10,6 @@ # Changelog | ||
## [1.1.3] - 2019-03-22 | ||
- Return a GraphQL formatted topic | ||
## [1.1.2] | ||
@@ -12,0 +16,0 @@ |
@@ -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.", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14108
147