Socket
Socket
Sign inDemoInstall

neo4j-driver

Package Overview
Dependencies
Maintainers
2
Versions
162
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

neo4j-driver - npm Package Compare versions

Comparing version 1.0.2 to 1.0.3

lib/v1/internal/util.js

6

lib/v1/internal/ch-node.js

@@ -86,3 +86,7 @@ /**

function storeFingerprint(serverId, knownHostsPath, fingerprint) {
_fs2['default'].appendFile(knownHostsPath, serverId + " " + fingerprint + _os.EOL, "utf8");
_fs2['default'].appendFile(knownHostsPath, serverId + " " + fingerprint + _os.EOL, "utf8", function (err) {
if (err) {
console.log(err);
}
});
}

@@ -89,0 +93,0 @@

2

lib/v1/internal/connector.js

@@ -493,3 +493,3 @@ /**

// Default to using encryption if trust-on-first-use is available
encrypted: config.encrypted || (0, _features2["default"])("trust_on_first_use"),
encrypted: config.encrypted == null ? (0, _features2["default"])("trust_on_first_use") : config.encrypted,
// Default to using trust-on-first-use if it is available

@@ -496,0 +496,0 @@ trust: config.trust || ((0, _features2["default"])("trust_on_first_use") ? "TRUST_ON_FIRST_USE" : "TRUST_SIGNED_CERTIFICATES"),

@@ -23,5 +23,5 @@ /**

"use strict";
'use strict';
Object.defineProperty(exports, "__esModule", {
Object.defineProperty(exports, '__esModule', {
value: true

@@ -35,4 +35,4 @@ });

// https://github.com/nodejs/node/commit/345c40b6
var desc = require('tls').TLSSocket.prototype.getPeerCertificate.toString();
return desc.startsWith("function getPeerCertificate(detailed)");
var desc = require('tls').TLSSocket.prototype.getPeerCertificate;
return desc.length >= 1;
} catch (e) {

@@ -48,3 +48,3 @@ return false;

exports["default"] = hasFeature;
module.exports = exports["default"];
exports['default'] = hasFeature;
module.exports = exports['default'];

@@ -138,3 +138,3 @@ /**

for (var i = 0; i < x.length; i++) {
this.pack(x[i]);
this.pack(x[i] === undefined ? null : x[i]);
}

@@ -145,7 +145,17 @@ } else if (x instanceof Structure) {

var keys = Object.keys(x);
this.packMapHeader(keys.length);
var count = 0;
for (var i = 0; i < keys.length; i++) {
if (x[keys[i]] !== undefined) {
count++;
}
}
this.packMapHeader(count);
for (var i = 0; i < keys.length; i++) {
var key = keys[i];
this.packString(key);
this.pack(x[key]);
if (x[key] !== undefined) {
this.packString(key);
this.pack(x[key]);
}
}

@@ -152,0 +162,0 @@ } else {

@@ -11,3 +11,3 @@ # Neo4j Driver Toolkit

## Neoget
Neoget is a download script for fetching Neo4j server packages. To download the latest nightly version of Neo4j, simply use:
Neoget is a download script for fetching Neo4j server packages. To download the latest released version of Neo4j, simply use:
```

@@ -23,13 +23,23 @@ python neoget.py

The `-n` option can be used to carry out a download for the latest nightly version of Neo4j.
Alternatively, a url could also be used with option `-l` to directly download the Neo4j specified by the url
```
python neoget.py -n 3.0
python neoget.py -l http://alpha.neohq.net/dist/neo4j-enterprise-3.0-NIGHTLY-unix.tar.gz
```
Then the archive with the version `3.0-NIGHTLY` would be downloaded to local disk
Alternatively, a url could also be used with option `-l` to directly download the Neo4j specified by the url
To install a nightly version, use `-n` to specify the nightly version togther with env var `TEAMCITY_NEO4J_<version>[_WIN]` (such as `TEAMCITY_NEO4J_30NIGHTLY`) to provide the secret teamcity download url for the nightly archives.
Teamcity requires basic access authentication, which could either be provided via environment variable `TEAMCITY_USER` and `TEAMCITY_PASSWORD` or via the url directly with `username:password@` added in front of hostname.
```
python neoget.py -l http://alpha.neohq.net/dist/neo4j-enterprise-3.0-NIGHTLY-unix.tar.gz
TEAMCITY_USER=username TEAMCITY_PASSWORD=password TEAMCITY_NEO4J_30NIGHTLY=https://<teamcity_hostname>/repository/download/<build_type_id>/lastSuccessful/<artifact_path> python neoget.py -n 3.0
```
or
```
TEAMCITY_NEO4J_30NIGHTLY=https://username:password@<teamcity_hostname>/repository/download/<build_type_id>/lastSuccessful/<artifact_path> python neoget.py -n 3.0
```
witch is almost equivalent to
```
curl --user username:password -O https://<teamcity_hostname>/repository/download/<build_type_id>/lastSuccessful/<artifact_path>
```
For a full help page, use `-h`:

@@ -71,5 +81,5 @@ ```

If no Neo4j server is found in path `./neo4j`, then the default Neo4j server version used in `neoget.py` will be downloaded and installed to `./neo4j`.
To specify other versions to download when a Neo4j is absent, use `-v`, `-n`, `-l` in a similar way as they are defined in `neoget.py`:
To specify other versions to download when a Neo4j is absent, use `-v`, `-t`, `-l` in a similar way as they are defined in `neoget.py`:
```
python neorun.py --start=neo4j -n 3.1 -p TOUFU
python neorun.py --start=neo4j -v 3.0.2 -p s3cr3tP4ssw0rd
```

@@ -76,0 +86,0 @@ In the example above, the `-p` option is used to change the default Neo4j password after the server is ready.

{
"name": "neo4j-driver",
"version": "1.0.2",
"version": "1.0.3",
"description": "Connect to Neo4j 3.0.0 and up from JavaScript",

@@ -44,3 +44,3 @@ "author": "Neo Technology Inc.",

"minimist": "^1.2.0",
"phantomjs2-ext": "^0.1.0",
"phantomjs-prebuilt": "^2.1.7 ",
"run-sequence": "^1.1.4",

@@ -47,0 +47,0 @@ "through2": "~2.0.0",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc