neo4j-driver 4.4.4 → 4.4.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/browser/neo4j-web.js +27 -1
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/lib/browser/neo4j-web.js
CHANGED
|
@@ -1811,6 +1811,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
1811
1811
|
this._log = log;
|
|
1812
1812
|
this._transformMetadata = transformMetadata || NO_OP_IDENTITY;
|
|
1813
1813
|
this._observer = Object.assign({
|
|
1814
|
+
onPendingObserversChange: NO_OP,
|
|
1814
1815
|
onError: NO_OP,
|
|
1815
1816
|
onFailure: NO_OP,
|
|
1816
1817
|
onErrorApplyTransformation: NO_OP_IDENTITY
|
|
@@ -1885,6 +1886,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
1885
1886
|
*/
|
|
1886
1887
|
ResponseHandler.prototype._updateCurrentObserver = function () {
|
|
1887
1888
|
this._currentObserver = this._pendingObservers.shift();
|
|
1889
|
+
this._observer.onPendingObserversChange(this._pendingObservers.length);
|
|
1888
1890
|
};
|
|
1889
1891
|
ResponseHandler.prototype._queueObserver = function (observer) {
|
|
1890
1892
|
observer = observer || NO_OP_OBSERVER;
|
|
@@ -1897,6 +1899,7 @@ var ResponseHandler = /** @class */ (function () {
|
|
|
1897
1899
|
else {
|
|
1898
1900
|
this._pendingObservers.push(observer);
|
|
1899
1901
|
}
|
|
1902
|
+
this._observer.onPendingObserversChange(this._pendingObservers.length);
|
|
1900
1903
|
return true;
|
|
1901
1904
|
};
|
|
1902
1905
|
ResponseHandler.prototype._notifyErrorToObservers = function (error) {
|
|
@@ -3292,6 +3295,16 @@ var WebSocketChannel = /** @class */ (function () {
|
|
|
3292
3295
|
* @returns {void}
|
|
3293
3296
|
*/
|
|
3294
3297
|
WebSocketChannel.prototype.setupReceiveTimeout = function (receiveTimeout) { };
|
|
3298
|
+
/**
|
|
3299
|
+
* Stops the receive timeout for the channel.
|
|
3300
|
+
*/
|
|
3301
|
+
WebSocketChannel.prototype.stopReceiveTimeout = function () {
|
|
3302
|
+
};
|
|
3303
|
+
/**
|
|
3304
|
+
* Start the receive timeout for the channel.
|
|
3305
|
+
*/
|
|
3306
|
+
WebSocketChannel.prototype.startReceiveTimeout = function () {
|
|
3307
|
+
};
|
|
3295
3308
|
/**
|
|
3296
3309
|
* Set connection timeout on the given WebSocket, if configured.
|
|
3297
3310
|
* @return {number} the timeout id or null.
|
|
@@ -5482,6 +5495,7 @@ function createChannelConnection(address, config, errorHandler, log, serversideR
|
|
|
5482
5495
|
server: conn.server,
|
|
5483
5496
|
log: conn.logger,
|
|
5484
5497
|
observer: {
|
|
5498
|
+
onPendingObserversChange: conn._handleOngoingRequestsNumberChange.bind(conn),
|
|
5485
5499
|
onError: conn._handleFatalError.bind(conn),
|
|
5486
5500
|
onFailure: conn._resetOnFailure.bind(conn),
|
|
5487
5501
|
onProtocolError: conn._handleProtocolError.bind(conn),
|
|
@@ -5736,6 +5750,18 @@ var ChannelConnection = /** @class */ (function (_super) {
|
|
|
5736
5750
|
ChannelConnection.prototype.isOpen = function () {
|
|
5737
5751
|
return !this._isBroken && this._ch._open;
|
|
5738
5752
|
};
|
|
5753
|
+
/**
|
|
5754
|
+
* Starts and stops the receive timeout timer.
|
|
5755
|
+
* @param {number} requestsNumber Ongoing requests number
|
|
5756
|
+
*/
|
|
5757
|
+
ChannelConnection.prototype._handleOngoingRequestsNumberChange = function (requestsNumber) {
|
|
5758
|
+
if (requestsNumber === 0) {
|
|
5759
|
+
this._ch.stopReceiveTimeout();
|
|
5760
|
+
}
|
|
5761
|
+
else {
|
|
5762
|
+
this._ch.startReceiveTimeout();
|
|
5763
|
+
}
|
|
5764
|
+
};
|
|
5739
5765
|
/**
|
|
5740
5766
|
* Call close on the channel.
|
|
5741
5767
|
* @returns {Promise<void>} - A promise that will be resolved when the underlying channel is closed.
|
|
@@ -30099,7 +30125,7 @@ exports["default"] = void 0;
|
|
|
30099
30125
|
// This is set up this way to keep the version in the code in
|
|
30100
30126
|
// sync with the npm package version, and to allow the build
|
|
30101
30127
|
// system to control version names at packaging time.
|
|
30102
|
-
var _default = '4.4.
|
|
30128
|
+
var _default = '4.4.5';
|
|
30103
30129
|
exports["default"] = _default;
|
|
30104
30130
|
|
|
30105
30131
|
},{}]},{},[302])(302)
|