Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
defintion.file = templateFile;
if(defintion && defintion.template && defintion.functions) {
// file is a template json file
debug('Adding template to settings.operations');
if (baseURL) {
defintion.template.url = url.resolve(baseURL, defintion.template.url);
}
settings.operations.push(defintion);
}
});
}
RestConnector.initialize(dataSource, callback);
applyTransformerPatch(dataSource);
autoloadFunctions(dataSource);
};