Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function templateToCreate(templatePrefix: string) {
return new postmark.Models.CreateTemplateRequest(
`${templatePrefix}-${Date.now()}`,
"Subject",
"Html body",
"Text body",
null,
postmark.Models.TemplateTypes.Standard,
);
}
function templateToCreate(templatePrefix: string) {
return new postmark.Models.CreateTemplateRequest(
`${templatePrefix}-${Date.now()}`,
"Subject",
"Html body",
"Text body",
null,
postmark.Models.TemplateTypes.Standard,
);
}
private retrieveOutputDir(outputDir: string,
templateType: pm.Models.TemplateTypes = pm.Models.TemplateTypes.Standard): string {
return templateType === pm.Models.TemplateTypes.Layout ? join(outputDir,this.layoutDirectory) : outputDir;
}