@shopify/shopify-api
Version:
Shopify API Library for Node - accelerate development with support for authentication, graphql proxy, webhooks
1 lines • 733 B
Source Map (JSON)
{"version":3,"file":"get-host-value.mjs","sources":["../../../../../test-helpers/get-host-value.ts"],"sourcesContent":["/**\n * Creates a fake Base64Encoded host for the store name to use when faking authorization in testing.\n *\n * @param store The store name for which to create a fake Base64Encoded host to use when faking authorization in testing.\n * @returns A fake Base64Encoded host for the store name.\n */\nexport function getHostValue(store: string): string {\n return Buffer.from(`admin.shopify.com/store/${store}`).toString('base64');\n}\n"],"names":[],"mappings":"AAAA;;;;;AAKG;AACG,SAAU,YAAY,CAAC,KAAa,EAAA;AACxC,IAAA,OAAO,MAAM,CAAC,IAAI,CAAC,CAAA,wBAAA,EAA2B,KAAK,CAAA,CAAE,CAAC,CAAC,QAAQ,CAAC,QAAQ,CAAC;AAC3E;;;;"}