Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function templateStringTag(quasis, ...expressions) {
const processedTemplateLiteral = processTemplateLiteral(quasis, expressions, 'queryName');
const processedTemplateText = transformer.processTemplateText(processedTemplateLiteral.templateText, {
documentName: 'queryName',
propName: 'propName'
});
const definition = transformer.processDocumentText(processedTemplateText, {
documentName: 'queryName',
propName: 'propName',
fragmentLocationID: generateHash(JSON.stringify(processedTemplateText)).substring(0, 12)
});
const options = {};
const Printer = RelayQLPrinter(t, options);
modifyPrinterClass(Printer);
const printed = new Printer('wtf??', {})
.print(definition, []);
return printed;
}