Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
alfrescoApi.login(program.username, program.password).then(() => {
let discovery = new DiscoveryApi(alfrescoApi);
discovery.getRepositoryInformation().then(
(ecmVers) => {
console.log('ecmVers' + JSON.stringify(ecmVers));
},
() => {
process.exit(1);
});
}, () => {
process.exit(1);
constructor() {
let alfrescoApi = new AlfrescoApi();
alfrescoApi.setConfig({
provider: 'ECM',
hostEcm: 'http://localhost:3000',
authType: 'BASIC',
contextRoot: ''
});
let discovery = new DiscoveryApi(alfrescoApi);
discovery.getRepositoryInformation().then(
(ecmVers) => {
console.log('ecmVers' + ecmVers);
},
(ecmVers) => {
console.log('error ecmvers' + ecmVers);
});
}
}