Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
.then(() => db.open(dbFile, { Promise }))
.catch(err => console.error(err.stack))
.then(() => sqlite.open(docpath + '/Contents/Resources/docSet.dsidx'))
.then(result => db = result)