@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
1 lines • 516 B
Source Map (JSON)
{"version":3,"file":"get-hmac.mjs","sources":["../../../../../test-helpers/get-hmac.ts"],"sourcesContent":["import crypto from 'crypto';\n\nexport function getHmac(body: string, apiSecretKey: string): string {\n return crypto\n .createHmac('sha256', apiSecretKey)\n .update(body, 'utf8')\n .digest('base64');\n}\n"],"names":[],"mappings":";;AAEM,SAAU,OAAO,CAAC,IAAY,EAAE,YAAoB,EAAA;AACxD,IAAA,OAAO;AACJ,SAAA,UAAU,CAAC,QAAQ,EAAE,YAAY;AACjC,SAAA,MAAM,CAAC,IAAI,EAAE,MAAM;SACnB,MAAM,CAAC,QAAQ,CAAC;AACrB;;;;"}