Socket
Socket
Sign inDemoInstall

neo4j-driver-init

Package Overview
Dependencies
12
Maintainers
1
Versions
20
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 1.1.2 to 1.1.3

25

index.js
const neo4j = require("neo4j-driver");
module.exports = async function (port, host, username, password) {
const driver = await neo4j.driver(
function neo4jDriverInit(port, host, username, password) {
return neo4j.driver(
`${host}:${port}`,

@@ -11,14 +11,21 @@ neo4j.auth.basic(

);
}
await driver.verifyConnectivity()
.then(serverInfo => {
if(serverInfo.address){
console.log(`Drive rcreated successfully at ${serverInfo.address}`);
}
function verifyDriverInit(port, host, username, password) {
return neo4jDriverInit(port, host, username, password).verifyConnectivity()
.then(function(serverInfo){
if (serverInfo.address) {
console.log(`Drive rcreated successfully at ${serverInfo.address}`);
return serverInfo.address;
}
})
.catch(error => {
console.log(error);
console.log(error);
});
}
return driver;
module.exports = function (port, host, username, password) {
if(verifyDriverInit(port, host, username, password)){
return neo4jDriverInit(port, host, username, password);
}
};
{
"name": "neo4j-driver-init",
"version": "1.1.2",
"version": "1.1.3",
"description": "Neo4j Driver Initialization",

@@ -5,0 +5,0 @@ "main": "index.js",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc