neo4j-driver 5.2.0 → 5.3.0
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 +116 -296
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/result-rx.js +41 -58
- package/lib/version.js +1 -1
- package/package.json +4 -4
package/lib/result-rx.js
CHANGED
|
@@ -324,20 +324,20 @@ function createFullyControlledSubject(iterator, completeObserver) {
|
|
|
324
324
|
var subject = new _rxjs.Subject();
|
|
325
325
|
|
|
326
326
|
var pushNextValue = /*#__PURE__*/function () {
|
|
327
|
-
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
327
|
+
var _ref2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee2(result) {
|
|
328
328
|
var _yield$result, done, value;
|
|
329
329
|
|
|
330
|
-
return _regenerator["default"].wrap(function
|
|
330
|
+
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
331
331
|
while (1) {
|
|
332
|
-
switch (
|
|
332
|
+
switch (_context2.prev = _context2.next) {
|
|
333
333
|
case 0:
|
|
334
|
-
|
|
334
|
+
_context2.prev = 0;
|
|
335
335
|
streamControl.pushing = true;
|
|
336
|
-
|
|
336
|
+
_context2.next = 4;
|
|
337
337
|
return result;
|
|
338
338
|
|
|
339
339
|
case 4:
|
|
340
|
-
_yield$result =
|
|
340
|
+
_yield$result = _context2.sent;
|
|
341
341
|
done = _yield$result.done;
|
|
342
342
|
value = _yield$result.value;
|
|
343
343
|
|
|
@@ -348,47 +348,30 @@ function createFullyControlledSubject(iterator, completeObserver) {
|
|
|
348
348
|
subject.next(value);
|
|
349
349
|
|
|
350
350
|
if (!streamControl.paused) {
|
|
351
|
-
|
|
352
|
-
return _regenerator["default"].wrap(function _callee2$(_context2) {
|
|
353
|
-
while (1) {
|
|
354
|
-
switch (_context2.prev = _context2.next) {
|
|
355
|
-
case 0:
|
|
356
|
-
_context2.next = 2;
|
|
357
|
-
return pushNextValue(iterator.next());
|
|
358
|
-
|
|
359
|
-
case 2:
|
|
360
|
-
return _context2.abrupt("return", _context2.sent);
|
|
361
|
-
|
|
362
|
-
case 3:
|
|
363
|
-
case "end":
|
|
364
|
-
return _context2.stop();
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
}, _callee2);
|
|
368
|
-
})));
|
|
351
|
+
pushNextValue(iterator.next())["catch"](function () {});
|
|
369
352
|
}
|
|
370
353
|
}
|
|
371
354
|
|
|
372
|
-
|
|
355
|
+
_context2.next = 14;
|
|
373
356
|
break;
|
|
374
357
|
|
|
375
358
|
case 10:
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
subject.error(
|
|
379
|
-
completeObserver.error(
|
|
359
|
+
_context2.prev = 10;
|
|
360
|
+
_context2.t0 = _context2["catch"](0);
|
|
361
|
+
subject.error(_context2.t0);
|
|
362
|
+
completeObserver.error(_context2.t0);
|
|
380
363
|
|
|
381
364
|
case 14:
|
|
382
|
-
|
|
365
|
+
_context2.prev = 14;
|
|
383
366
|
streamControl.pushing = false;
|
|
384
|
-
return
|
|
367
|
+
return _context2.finish(14);
|
|
385
368
|
|
|
386
369
|
case 17:
|
|
387
370
|
case "end":
|
|
388
|
-
return
|
|
371
|
+
return _context2.stop();
|
|
389
372
|
}
|
|
390
373
|
}
|
|
391
|
-
},
|
|
374
|
+
}, _callee2, null, [[0, 10, 14, 17]]);
|
|
392
375
|
}));
|
|
393
376
|
|
|
394
377
|
return function pushNextValue(_x) {
|
|
@@ -401,20 +384,20 @@ function createFullyControlledSubject(iterator, completeObserver) {
|
|
|
401
384
|
}
|
|
402
385
|
|
|
403
386
|
function _push() {
|
|
404
|
-
_push = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
405
|
-
return _regenerator["default"].wrap(function
|
|
387
|
+
_push = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee3(value) {
|
|
388
|
+
return _regenerator["default"].wrap(function _callee3$(_context3) {
|
|
406
389
|
while (1) {
|
|
407
|
-
switch (
|
|
390
|
+
switch (_context3.prev = _context3.next) {
|
|
408
391
|
case 0:
|
|
409
|
-
|
|
392
|
+
_context3.next = 2;
|
|
410
393
|
return pushNextValue(iterator.next(value));
|
|
411
394
|
|
|
412
395
|
case 2:
|
|
413
396
|
case "end":
|
|
414
|
-
return
|
|
397
|
+
return _context3.stop();
|
|
415
398
|
}
|
|
416
399
|
}
|
|
417
|
-
},
|
|
400
|
+
}, _callee3);
|
|
418
401
|
}));
|
|
419
402
|
return _push.apply(this, arguments);
|
|
420
403
|
}
|
|
@@ -426,16 +409,16 @@ function createFullyControlledSubject(iterator, completeObserver) {
|
|
|
426
409
|
|
|
427
410
|
var StreamControl = /*#__PURE__*/function () {
|
|
428
411
|
function StreamControl() {
|
|
429
|
-
var push = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
430
|
-
return _regenerator["default"].wrap(function
|
|
412
|
+
var push = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : /*#__PURE__*/(0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
413
|
+
return _regenerator["default"].wrap(function _callee4$(_context4) {
|
|
431
414
|
while (1) {
|
|
432
|
-
switch (
|
|
415
|
+
switch (_context4.prev = _context4.next) {
|
|
433
416
|
case 0:
|
|
434
417
|
case "end":
|
|
435
|
-
return
|
|
418
|
+
return _context4.stop();
|
|
436
419
|
}
|
|
437
420
|
}
|
|
438
|
-
},
|
|
421
|
+
}, _callee4);
|
|
439
422
|
}));
|
|
440
423
|
(0, _classCallCheck2["default"])(this, StreamControl);
|
|
441
424
|
this._paused = false;
|
|
@@ -464,29 +447,29 @@ var StreamControl = /*#__PURE__*/function () {
|
|
|
464
447
|
}, {
|
|
465
448
|
key: "resume",
|
|
466
449
|
value: function () {
|
|
467
|
-
var _resume = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
450
|
+
var _resume = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee5() {
|
|
468
451
|
var wasPaused;
|
|
469
|
-
return _regenerator["default"].wrap(function
|
|
452
|
+
return _regenerator["default"].wrap(function _callee5$(_context5) {
|
|
470
453
|
while (1) {
|
|
471
|
-
switch (
|
|
454
|
+
switch (_context5.prev = _context5.next) {
|
|
472
455
|
case 0:
|
|
473
456
|
wasPaused = this._paused;
|
|
474
457
|
this._paused = false;
|
|
475
458
|
|
|
476
459
|
if (!(wasPaused && !this._pushing)) {
|
|
477
|
-
|
|
460
|
+
_context5.next = 5;
|
|
478
461
|
break;
|
|
479
462
|
}
|
|
480
463
|
|
|
481
|
-
|
|
464
|
+
_context5.next = 5;
|
|
482
465
|
return this._push();
|
|
483
466
|
|
|
484
467
|
case 5:
|
|
485
468
|
case "end":
|
|
486
|
-
return
|
|
469
|
+
return _context5.stop();
|
|
487
470
|
}
|
|
488
471
|
}
|
|
489
|
-
},
|
|
472
|
+
}, _callee5, this);
|
|
490
473
|
}));
|
|
491
474
|
|
|
492
475
|
function resume() {
|
|
@@ -498,24 +481,24 @@ var StreamControl = /*#__PURE__*/function () {
|
|
|
498
481
|
}, {
|
|
499
482
|
key: "push",
|
|
500
483
|
value: function () {
|
|
501
|
-
var _push2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function
|
|
502
|
-
return _regenerator["default"].wrap(function
|
|
484
|
+
var _push2 = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee6() {
|
|
485
|
+
return _regenerator["default"].wrap(function _callee6$(_context6) {
|
|
503
486
|
while (1) {
|
|
504
|
-
switch (
|
|
487
|
+
switch (_context6.prev = _context6.next) {
|
|
505
488
|
case 0:
|
|
506
489
|
this.pause();
|
|
507
|
-
|
|
490
|
+
_context6.next = 3;
|
|
508
491
|
return this._push();
|
|
509
492
|
|
|
510
493
|
case 3:
|
|
511
|
-
return
|
|
494
|
+
return _context6.abrupt("return", _context6.sent);
|
|
512
495
|
|
|
513
496
|
case 4:
|
|
514
497
|
case "end":
|
|
515
|
-
return
|
|
498
|
+
return _context6.stop();
|
|
516
499
|
}
|
|
517
500
|
}
|
|
518
|
-
},
|
|
501
|
+
}, _callee6, this);
|
|
519
502
|
}));
|
|
520
503
|
|
|
521
504
|
function push() {
|
package/lib/version.js
CHANGED
|
@@ -31,5 +31,5 @@ exports["default"] = void 0;
|
|
|
31
31
|
// This is set up this way to keep the version in the code in
|
|
32
32
|
// sync with the npm package version, and to allow the build
|
|
33
33
|
// system to control version names at packaging time.
|
|
34
|
-
var _default = '5.
|
|
34
|
+
var _default = '5.3.0';
|
|
35
35
|
exports["default"] = _default;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo4j-driver",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.3.0",
|
|
4
4
|
"description": "Connect to Neo4j 3.5.0 and up from JavaScript",
|
|
5
5
|
"author": "Neo4j",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -85,9 +85,9 @@
|
|
|
85
85
|
},
|
|
86
86
|
"dependencies": {
|
|
87
87
|
"@babel/runtime": "^7.17.8",
|
|
88
|
-
"neo4j-driver-bolt-connection": "^5.
|
|
89
|
-
"neo4j-driver-core": "^5.
|
|
88
|
+
"neo4j-driver-bolt-connection": "^5.3.0",
|
|
89
|
+
"neo4j-driver-core": "^5.3.0",
|
|
90
90
|
"rxjs": "^7.5.5"
|
|
91
91
|
},
|
|
92
|
-
"gitHead": "
|
|
92
|
+
"gitHead": "ffe5492b7614ec13e1f1eea91ba56b958ef25b3d"
|
|
93
93
|
}
|