neo4j-driver-bolt-connection
Advanced tools
Comparing version 4.3.4 to 4.3.5
@@ -73,2 +73,9 @@ "use strict"; | ||
}); | ||
Object.defineProperty(BoltProtocol.prototype, "currentFailure", { | ||
get: function () { | ||
return this._responseHandler.currentFailure; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
/** | ||
@@ -75,0 +82,0 @@ * Get the packer. |
@@ -139,2 +139,9 @@ "use strict"; | ||
}; | ||
Object.defineProperty(ResponseHandler.prototype, "currentFailure", { | ||
get: function () { | ||
return this._currentFailure; | ||
}, | ||
enumerable: false, | ||
configurable: true | ||
}); | ||
/* | ||
@@ -141,0 +148,0 @@ * Pop next pending observer form the list of observers and make it current observer. |
@@ -484,3 +484,4 @@ "use strict"; | ||
return __awaiter(this, void 0, void 0, function () { | ||
var connection, connectionProvider, protocolVersion, error_4; | ||
var connection, databaseSpecificErrorHandler, connectionProvider, protocolVersion, error_4; | ||
var _this = this; | ||
return __generator(this, function (_a) { | ||
@@ -493,3 +494,7 @@ switch (_a.label) { | ||
connection = _a.sent(); | ||
connectionProvider = new connection_provider_single_1.default(connection); | ||
databaseSpecificErrorHandler = connection_1.ConnectionErrorHandler.create({ | ||
errorCode: SESSION_EXPIRED, | ||
handleAuthorizationExpired: function (error, address) { return _this._handleAuthorizationExpired(error, address); } | ||
}); | ||
connectionProvider = new connection_provider_single_1.default(new connection_1.DelegateConnection(connection, databaseSpecificErrorHandler)); | ||
protocolVersion = connection.protocol().version; | ||
@@ -496,0 +501,0 @@ if (protocolVersion < 4.0) { |
@@ -301,3 +301,3 @@ "use strict"; | ||
this._isBroken = true; | ||
this._error = this.handleAndTransformError(error, this._address); | ||
this._error = this.handleAndTransformError(this._protocol.currentFailure || error, this._address); | ||
if (this._log.isErrorEnabled()) { | ||
@@ -304,0 +304,0 @@ this._log.error("experienced a fatal error " + neo4j_driver_core_1.json.stringify(this._error)); |
{ | ||
"name": "neo4j-driver-bolt-connection", | ||
"version": "4.3.4", | ||
"version": "4.3.5", | ||
"description": "Implements the connection with the Neo4j Database using the Bolt Protocol", | ||
@@ -38,5 +38,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"neo4j-driver-core": "^4.3.4", | ||
"neo4j-driver-core": "^4.3.5", | ||
"text-encoding-utf-8": "^1.0.2" | ||
} | ||
} |
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
401221
9108
Updatedneo4j-driver-core@^4.3.5