Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
function getGlobalModelContent() {
return exclude(getGlobalModels(api, shouldImportDynamic), optsToArray(opts.exclude))
.map(path =>
`
app.model({ namespace: '${basename(path, extname(path))}', ...(require('${path}').default) });
`.trim(),
)
.join('\r\n');
}