neo4j-driver-init
Advanced tools
Comparing version 1.1.1 to 1.1.2
16
index.js
const neo4j = require("neo4j-driver"); | ||
module.exports = function (port, host, username, password) { | ||
return neo4j.driver( | ||
module.exports = async function (port, host, username, password) { | ||
const driver = await neo4j.driver( | ||
`${host}:${port}`, | ||
@@ -11,2 +11,14 @@ neo4j.auth.basic( | ||
); | ||
await driver.verifyConnectivity() | ||
.then(serverInfo => { | ||
if(serverInfo.address){ | ||
console.log(`Drive rcreated successfully at ${serverInfo.address}`); | ||
} | ||
}) | ||
.catch(error => { | ||
console.log(error); | ||
}); | ||
return driver; | ||
}; |
{ | ||
"name": "neo4j-driver-init", | ||
"version": "1.1.1", | ||
"version": "1.1.2", | ||
"description": "Neo4j Driver Initialization", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Trivial Package
Supply chain riskPackages less than 10 lines of code are easily copied into your own project and may not warrant the additional supply chain risk of an external dependency.
Found 1 instance in 1 package
794
19
0