Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
],
};
const logger = (operation, forward) => {
const { method = 'GET', path, body = '{}' } = operation;
const { '@id': id = null, label = null } = JSON.parse(body);
const type = path.split('/').reduce((prev, curr) => {
if (curr === 'v1') return curr;
if (prev === 'v1') return curr;
return prev;
});
console.log(`operation => ${method} ${id || label || ''} on ${type}`);
return forward(operation);
};
const nexus = createNexusClient({
fetch,
uri: config.environment,
token: '', // PUT YOUR TOKEN HERE
links: [logger],
});
async function main() {
try {
const ThalamusWorkspaceConfig = {
name: 'Thalamus2019 Workspace',
filters: {
brainRegion: 'http://purl.obolibrary.org/obo/UBERON_0004703',
},
};
const NeocortexWorkspaceConfig = {
name: 'SSCx 2019 Workspace',
async function main() {
const [userManager, user] = await setUpSession();
// create nexus instance
const nexus: NexusClient = createNexusClient({
fetch,
uri: SETTINGS.environment,
links: [setToken],
});
const rootElement = document.getElementById('root');
render(
<header>
</header>