groq.esm.js.map 1.3 KB

1
  1. {"version":3,"file":"groq.esm.js","sources":["../src/groq.ts"],"sourcesContent":["/**\n * Pass-through groq template tag. This is a no-op, but it helps editor integrations\n * understand that a string represents a GROQ query in order to provide syntax highlighting\n * and other features.\n *\n * @param strings - Template string parts\n * @param keys - Template string keys\n * @returns The same string as the input\n * @public\n */\nexport default function groq(strings: TemplateStringsArray, ...keys: any[]): string {\n const lastIndex = strings.length - 1\n return (\n strings.slice(0, lastIndex).reduce((acc, str, i) => {\n return acc + str + keys[i]\n }, '') + strings[lastIndex]\n )\n}\n"],"names":["groq","strings","_len","arguments","length","keys","Array","_key","lastIndex","slice","reduce","acc","str","i"],"mappings":"AAUwB,SAAAA,IAAAA,CAAKC,SAAuD;EAAA,SAAAC,IAAA,GAAAC,SAAA,CAAAC,MAAA,EAArBC,IAAqB,OAAAC,KAAA,CAAAJ,IAAA,OAAAA,IAAA,WAAAK,IAAA,MAAAA,IAAA,GAAAL,IAAA,EAAAK,IAAA;IAArBF,IAAqB,CAAAE,IAAA,QAAAJ,SAAA,CAAAI,IAAA;EAAA;EAC5E,MAAAC,SAAA,GAAYP,QAAQG,MAAS,GAAA,CAAA;EAEjC,OAAAH,OAAA,CAAQQ,MAAM,CAAG,EAAAD,SAAS,EAAEE,MAAO,CAAA,CAACC,GAAK,EAAAC,GAAA,EAAKC,CAAM,KAAA;IAC3C,OAAAF,GAAA,GAAMC,GAAM,GAAAP,IAAA,CAAKQ,CAAC,CAAA;EACxB,CAAA,EAAA,EAAE,CAAI,GAAAZ,OAAA,CAAQO,SAAS,CAAA;AAE9B;"}