Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
async function go() {
let factory = new JSONAPIFactory();
factory.addResource('data-sources').withAttributes({
'source-type': '@cardstack/drupal',
params: {
url: 'http://localhost',
authToken: process.env.DRUPAL_TOKEN,
openAPIPatch
}
});
await createDefaultEnvironment(__dirname + '/../', factory.getModels());
}