neo4j-driver 5.3.0 → 5.4.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/.babelrc +1 -8
- package/README.md +21 -0
- package/lib/browser/neo4j-web.esm.js +31294 -0
- package/lib/browser/neo4j-web.esm.min.js +1 -0
- package/lib/browser/neo4j-web.js +31301 -32537
- package/lib/browser/neo4j-web.min.js +1 -1
- package/lib/docs.js +1 -3
- package/lib/driver.js +78 -89
- package/lib/index.js +319 -547
- package/lib/internal/retry-logic-rx.js +64 -112
- package/lib/internal/server-version.js +77 -116
- package/lib/result-rx.js +292 -433
- package/lib/session-rx.js +128 -207
- package/lib/transaction-managed-rx.js +30 -52
- package/lib/transaction-rx.js +72 -104
- package/lib/version.js +2 -8
- package/package.json +24 -30
- package/spec/support/jasmine.json +0 -1
- package/types/driver.d.ts +1 -1
- package/types/index.d.ts +59 -37
- package/types/result-rx.d.ts +1 -1
- package/types/session-rx.d.ts +1 -1
- package/types/transaction-managed-rx.d.ts +1 -1
- package/types/transaction-rx.d.ts +1 -1
- package/.nycrc +0 -4
- package/support/inject-browser-transform.js +0 -20
package/lib/transaction-rx.js
CHANGED
|
@@ -1,22 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
Object.defineProperty(exports, "__esModule", {
|
|
6
|
-
value: true
|
|
7
|
-
});
|
|
8
|
-
exports["default"] = void 0;
|
|
9
|
-
|
|
10
|
-
var _classCallCheck2 = _interopRequireDefault(require("@babel/runtime/helpers/classCallCheck"));
|
|
11
|
-
|
|
12
|
-
var _createClass2 = _interopRequireDefault(require("@babel/runtime/helpers/createClass"));
|
|
13
|
-
|
|
14
|
-
var _rxjs = require("rxjs");
|
|
15
|
-
|
|
16
|
-
var _resultRx = _interopRequireDefault(require("./result-rx"));
|
|
17
|
-
|
|
18
|
-
var _neo4jDriverCore = _interopRequireDefault(require("neo4j-driver-core"));
|
|
19
|
-
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
20
6
|
/**
|
|
21
7
|
* Copyright (c) "Neo4j"
|
|
22
8
|
* Neo4j Sweden AB [http://neo4j.com]
|
|
@@ -35,97 +21,84 @@ var _neo4jDriverCore = _interopRequireDefault(require("neo4j-driver-core"));
|
|
|
35
21
|
* See the License for the specific language governing permissions and
|
|
36
22
|
* limitations under the License.
|
|
37
23
|
*/
|
|
24
|
+
var rxjs_1 = require("rxjs");
|
|
25
|
+
var result_rx_1 = __importDefault(require("./result-rx"));
|
|
38
26
|
// eslint-disable-next-line no-unused-vars
|
|
39
|
-
|
|
27
|
+
var neo4j_driver_core_1 = __importDefault(require("neo4j-driver-core"));
|
|
40
28
|
/**
|
|
41
29
|
* A reactive transaction, which provides the same functionality as {@link Transaction} but through a Reactive API.
|
|
42
30
|
*/
|
|
43
|
-
var RxTransaction =
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
this._txc = txc;
|
|
52
|
-
}
|
|
53
|
-
/**
|
|
54
|
-
* Creates a reactive result that will execute the query in this transaction, with the provided parameters.
|
|
55
|
-
*
|
|
56
|
-
* @public
|
|
57
|
-
* @param {string} query - Query to be executed.
|
|
58
|
-
* @param {Object} parameters - Parameter values to use in query execution.
|
|
59
|
-
* @returns {RxResult} - A reactive result
|
|
60
|
-
*/
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
(0, _createClass2["default"])(RxTransaction, [{
|
|
64
|
-
key: "run",
|
|
65
|
-
value: function run(query, parameters) {
|
|
66
|
-
var _this = this;
|
|
67
|
-
|
|
68
|
-
return new _resultRx["default"](new _rxjs.Observable(function (observer) {
|
|
69
|
-
try {
|
|
70
|
-
observer.next(_this._txc.run(query, parameters));
|
|
71
|
-
observer.complete();
|
|
72
|
-
} catch (err) {
|
|
73
|
-
observer.error(err);
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
return function () {};
|
|
77
|
-
}));
|
|
31
|
+
var RxTransaction = /** @class */ (function () {
|
|
32
|
+
/**
|
|
33
|
+
* @constructor
|
|
34
|
+
* @protected
|
|
35
|
+
* @param {Transaction} txc - The underlying transaction instance to relay requests
|
|
36
|
+
*/
|
|
37
|
+
function RxTransaction(txc) {
|
|
38
|
+
this._txc = txc;
|
|
78
39
|
}
|
|
40
|
+
/**
|
|
41
|
+
* Creates a reactive result that will execute the query in this transaction, with the provided parameters.
|
|
42
|
+
*
|
|
43
|
+
* @public
|
|
44
|
+
* @param {string} query - Query to be executed.
|
|
45
|
+
* @param {Object} parameters - Parameter values to use in query execution.
|
|
46
|
+
* @returns {RxResult} - A reactive result
|
|
47
|
+
*/
|
|
48
|
+
RxTransaction.prototype.run = function (query, parameters) {
|
|
49
|
+
var _this = this;
|
|
50
|
+
return new result_rx_1.default(new rxjs_1.Observable(function (observer) {
|
|
51
|
+
try {
|
|
52
|
+
observer.next(_this._txc.run(query, parameters));
|
|
53
|
+
observer.complete();
|
|
54
|
+
}
|
|
55
|
+
catch (err) {
|
|
56
|
+
observer.error(err);
|
|
57
|
+
}
|
|
58
|
+
return function () { };
|
|
59
|
+
}));
|
|
60
|
+
};
|
|
79
61
|
/**
|
|
80
62
|
* Commits the transaction.
|
|
81
63
|
*
|
|
82
64
|
* @public
|
|
83
65
|
* @returns {Observable} - An empty observable
|
|
84
66
|
*/
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
})["catch"](function (err) {
|
|
95
|
-
return observer.error(err);
|
|
67
|
+
RxTransaction.prototype.commit = function () {
|
|
68
|
+
var _this = this;
|
|
69
|
+
return new rxjs_1.Observable(function (observer) {
|
|
70
|
+
_this._txc
|
|
71
|
+
.commit()
|
|
72
|
+
.then(function () {
|
|
73
|
+
observer.complete();
|
|
74
|
+
})
|
|
75
|
+
.catch(function (err) { return observer.error(err); });
|
|
96
76
|
});
|
|
97
|
-
|
|
98
|
-
}
|
|
77
|
+
};
|
|
99
78
|
/**
|
|
100
79
|
* Rolls back the transaction.
|
|
101
80
|
*
|
|
102
81
|
* @public
|
|
103
82
|
* @returns {Observable} - An empty observable
|
|
104
83
|
*/
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
})["catch"](function (err) {
|
|
115
|
-
return observer.error(err);
|
|
84
|
+
RxTransaction.prototype.rollback = function () {
|
|
85
|
+
var _this = this;
|
|
86
|
+
return new rxjs_1.Observable(function (observer) {
|
|
87
|
+
_this._txc
|
|
88
|
+
.rollback()
|
|
89
|
+
.then(function () {
|
|
90
|
+
observer.complete();
|
|
91
|
+
})
|
|
92
|
+
.catch(function (err) { return observer.error(err); });
|
|
116
93
|
});
|
|
117
|
-
|
|
118
|
-
}
|
|
94
|
+
};
|
|
119
95
|
/**
|
|
120
96
|
* Check if this transaction is active, which means commit and rollback did not happen.
|
|
121
97
|
* @return {boolean} `true` when not committed and not rolled back, `false` otherwise.
|
|
122
98
|
*/
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
value: function isOpen() {
|
|
127
|
-
return this._txc.isOpen();
|
|
128
|
-
}
|
|
99
|
+
RxTransaction.prototype.isOpen = function () {
|
|
100
|
+
return this._txc.isOpen();
|
|
101
|
+
};
|
|
129
102
|
/**
|
|
130
103
|
* Closes the transaction
|
|
131
104
|
*
|
|
@@ -133,22 +106,17 @@ var RxTransaction = /*#__PURE__*/function () {
|
|
|
133
106
|
*
|
|
134
107
|
* @returns {Observable} - An empty observable
|
|
135
108
|
*/
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
})["catch"](function (err) {
|
|
146
|
-
return observer.error(err);
|
|
109
|
+
RxTransaction.prototype.close = function () {
|
|
110
|
+
var _this = this;
|
|
111
|
+
return new rxjs_1.Observable(function (observer) {
|
|
112
|
+
_this._txc
|
|
113
|
+
.close()
|
|
114
|
+
.then(function () {
|
|
115
|
+
observer.complete();
|
|
116
|
+
})
|
|
117
|
+
.catch(function (err) { return observer.error(err); });
|
|
147
118
|
});
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
}();
|
|
153
|
-
|
|
154
|
-
exports["default"] = RxTransaction;
|
|
119
|
+
};
|
|
120
|
+
return RxTransaction;
|
|
121
|
+
}());
|
|
122
|
+
exports.default = RxTransaction;
|
package/lib/version.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports["default"] = void 0;
|
|
7
|
-
|
|
8
2
|
/**
|
|
9
3
|
* Copyright (c) "Neo4j"
|
|
10
4
|
* Neo4j Sweden AB [http://neo4j.com]
|
|
@@ -23,6 +17,7 @@ exports["default"] = void 0;
|
|
|
23
17
|
* See the License for the specific language governing permissions and
|
|
24
18
|
* limitations under the License.
|
|
25
19
|
*/
|
|
20
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
26
21
|
// DO NOT CHANGE THE VERSION BELOW HERE
|
|
27
22
|
// This is set by the build system at release time, using
|
|
28
23
|
//
|
|
@@ -31,5 +26,4 @@ exports["default"] = void 0;
|
|
|
31
26
|
// This is set up this way to keep the version in the code in
|
|
32
27
|
// sync with the npm package version, and to allow the build
|
|
33
28
|
// system to control version names at packaging time.
|
|
34
|
-
|
|
35
|
-
exports["default"] = _default;
|
|
29
|
+
exports.default = '5.4.0';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "neo4j-driver",
|
|
3
|
-
"version": "5.
|
|
3
|
+
"version": "5.4.0",
|
|
4
4
|
"description": "Connect to Neo4j 3.5.0 and up from JavaScript",
|
|
5
5
|
"author": "Neo4j",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -34,60 +34,54 @@
|
|
|
34
34
|
"jsdelivr": "lib/browser/neo4j-web.js",
|
|
35
35
|
"types": "types/index.d.ts",
|
|
36
36
|
"devDependencies": {
|
|
37
|
-
"@babel/core": "^7.
|
|
38
|
-
"@babel/
|
|
39
|
-
"@babel/
|
|
40
|
-
"@
|
|
41
|
-
"@
|
|
42
|
-
"@
|
|
43
|
-
"async": "^3.2.
|
|
44
|
-
"babel-plugin-istanbul": "^6.1.1",
|
|
45
|
-
"babelify": "^10.0.0",
|
|
46
|
-
"browserify": "^17.0.0",
|
|
47
|
-
"browserify-transform-tools": "^1.7.0",
|
|
37
|
+
"@babel/core": "^7.20.7",
|
|
38
|
+
"@babel/plugin-transform-runtime": "^7.19.6",
|
|
39
|
+
"@babel/register": "^7.18.9",
|
|
40
|
+
"@rollup/plugin-commonjs": "^21.1.0",
|
|
41
|
+
"@rollup/plugin-node-resolve": "^13.3.0",
|
|
42
|
+
"@types/jasmine": "^4.3.1",
|
|
43
|
+
"async": "^3.2.4",
|
|
48
44
|
"esdoc": "^1.1.0",
|
|
49
45
|
"esdoc-importpath-plugin": "^1.0.2",
|
|
50
46
|
"esdoc-standard-plugin": "^1.0.0",
|
|
51
47
|
"fancy-log": "^2.0.0",
|
|
52
|
-
"fs-extra": "^10.0
|
|
48
|
+
"fs-extra": "^10.1.0",
|
|
53
49
|
"gulp": "^4.0.2",
|
|
54
|
-
"gulp-babel": "^8.0.0",
|
|
55
50
|
"gulp-batch": "^1.0.5",
|
|
56
51
|
"gulp-decompress": "^3.0.0",
|
|
57
52
|
"gulp-download": "^0.0.1",
|
|
58
53
|
"gulp-file": "^0.4.0",
|
|
59
54
|
"gulp-install": "^1.1.0",
|
|
60
55
|
"gulp-jasmine": "^4.0.0",
|
|
61
|
-
"gulp-replace": "^1.1.
|
|
56
|
+
"gulp-replace": "^1.1.4",
|
|
62
57
|
"gulp-typescript": "^5.0.1",
|
|
63
58
|
"gulp-uglify": "^3.0.2",
|
|
64
59
|
"gulp-watch": "^5.0.1",
|
|
65
|
-
"istanbul": "^0.4.5",
|
|
66
60
|
"jasmine-spec-reporter": "^7.0.0",
|
|
67
|
-
"karma": "^6.
|
|
68
|
-
"karma-browserify": "^8.1.0",
|
|
61
|
+
"karma": "^6.4.1",
|
|
69
62
|
"karma-chrome-launcher": "^3.1.1",
|
|
70
63
|
"karma-edge-launcher": "^0.4.2",
|
|
71
64
|
"karma-firefox-launcher": "^2.1.2",
|
|
72
65
|
"karma-ie-launcher": "^1.0.0",
|
|
73
66
|
"karma-jasmine": "^4.0.2",
|
|
74
67
|
"karma-source-map-support": "^1.4.0",
|
|
75
|
-
"karma-spec-reporter": "^0.0.
|
|
68
|
+
"karma-spec-reporter": "^0.0.36",
|
|
69
|
+
"karma-typescript": "^5.5.3",
|
|
70
|
+
"karma-typescript-es6-transform": "^5.5.3",
|
|
76
71
|
"lolex": "^6.0.0",
|
|
77
|
-
"minimist": "^1.2.
|
|
78
|
-
"
|
|
79
|
-
"
|
|
72
|
+
"minimist": "^1.2.7",
|
|
73
|
+
"rollup": "^2.77.4-1",
|
|
74
|
+
"rollup-plugin-polyfill-node": "^0.11.0",
|
|
75
|
+
"semver": "^7.3.8",
|
|
80
76
|
"tmp": "0.2.1",
|
|
81
|
-
"typescript": "^4.
|
|
77
|
+
"typescript": "^4.9.4",
|
|
82
78
|
"vinyl-buffer": "^1.0.1",
|
|
83
|
-
"
|
|
84
|
-
"webpack": "^5.70.0"
|
|
79
|
+
"webpack": "^5.75.0"
|
|
85
80
|
},
|
|
86
81
|
"dependencies": {
|
|
87
|
-
"
|
|
88
|
-
"neo4j-driver-
|
|
89
|
-
"
|
|
90
|
-
"rxjs": "^7.5.5"
|
|
82
|
+
"neo4j-driver-bolt-connection": "^5.4.0",
|
|
83
|
+
"neo4j-driver-core": "^5.4.0",
|
|
84
|
+
"rxjs": "^7.8.0"
|
|
91
85
|
},
|
|
92
|
-
"gitHead": "
|
|
86
|
+
"gitHead": "45e424cc2e17e6f1d561326cbde2d6f537bf249c"
|
|
93
87
|
}
|
package/types/driver.d.ts
CHANGED
|
@@ -34,7 +34,7 @@ declare type SessionMode = types.SessionMode
|
|
|
34
34
|
declare const READ: SessionMode
|
|
35
35
|
declare const WRITE: SessionMode
|
|
36
36
|
|
|
37
|
-
declare
|
|
37
|
+
declare class Driver extends CoreDriver {
|
|
38
38
|
rxSession: (sessionParams?: SessionConfig) => RxSession
|
|
39
39
|
}
|
|
40
40
|
|
package/types/index.d.ts
CHANGED
|
@@ -38,6 +38,11 @@ import {
|
|
|
38
38
|
isLocalDateTime,
|
|
39
39
|
isLocalTime,
|
|
40
40
|
isTime,
|
|
41
|
+
isNode,
|
|
42
|
+
isPath,
|
|
43
|
+
isPathSegment,
|
|
44
|
+
isRelationship,
|
|
45
|
+
isUnboundRelationship,
|
|
41
46
|
LocalDateTime,
|
|
42
47
|
LocalTime,
|
|
43
48
|
Time,
|
|
@@ -60,7 +65,6 @@ import {
|
|
|
60
65
|
Transaction,
|
|
61
66
|
ManagedTransaction,
|
|
62
67
|
Session,
|
|
63
|
-
ConnectionProvider,
|
|
64
68
|
BookmarkManager,
|
|
65
69
|
bookmarkManager,
|
|
66
70
|
BookmarkManagerConfig,
|
|
@@ -126,10 +130,10 @@ declare const types: {
|
|
|
126
130
|
LocalDateTime: typeof LocalDateTime
|
|
127
131
|
DateTime: typeof DateTime
|
|
128
132
|
Integer: typeof Integer
|
|
129
|
-
RxSession: RxSession
|
|
130
|
-
RxTransaction: RxTransaction
|
|
131
|
-
RxManagedTransaction: RxManagedTransaction
|
|
132
|
-
RxResult: RxResult
|
|
133
|
+
RxSession: typeof RxSession
|
|
134
|
+
RxTransaction: typeof RxTransaction
|
|
135
|
+
RxManagedTransaction: typeof RxManagedTransaction
|
|
136
|
+
RxResult: typeof RxResult
|
|
133
137
|
}
|
|
134
138
|
|
|
135
139
|
declare const session: {
|
|
@@ -156,6 +160,14 @@ declare const temporal: {
|
|
|
156
160
|
isDateTime: typeof isDateTime
|
|
157
161
|
}
|
|
158
162
|
|
|
163
|
+
declare const graph: {
|
|
164
|
+
isNode: typeof isNode
|
|
165
|
+
isPath: typeof isPath
|
|
166
|
+
isPathSegment: typeof isPathSegment
|
|
167
|
+
isRelationship: typeof isRelationship
|
|
168
|
+
isUnboundRelationship: typeof isUnboundRelationship
|
|
169
|
+
}
|
|
170
|
+
|
|
159
171
|
/*
|
|
160
172
|
Both default and non-default exports declare all visible types so that they can be used in client code like this:
|
|
161
173
|
|
|
@@ -175,55 +187,60 @@ declare const forExport: {
|
|
|
175
187
|
types: typeof types
|
|
176
188
|
session: typeof session
|
|
177
189
|
error: typeof error
|
|
190
|
+
graph: typeof graph
|
|
178
191
|
spatial: typeof spatial
|
|
179
192
|
temporal: typeof temporal
|
|
180
|
-
Driver: Driver
|
|
193
|
+
Driver: typeof Driver
|
|
181
194
|
AuthToken: AuthToken
|
|
182
195
|
Config: Config
|
|
183
196
|
EncryptionLevel: EncryptionLevel
|
|
184
197
|
TrustStrategy: TrustStrategy
|
|
185
198
|
SessionMode: SessionMode
|
|
186
|
-
Neo4jError: Neo4jError
|
|
199
|
+
Neo4jError: typeof Neo4jError
|
|
187
200
|
isRetriableError: typeof isRetriableError
|
|
188
|
-
Node: Node
|
|
189
|
-
Relationship: Relationship
|
|
190
|
-
UnboundRelationship: UnboundRelationship
|
|
191
|
-
PathSegment: PathSegment
|
|
192
|
-
Path: Path
|
|
193
|
-
Integer: Integer
|
|
194
|
-
Record: Record
|
|
195
|
-
Result: Result
|
|
201
|
+
Node: typeof Node
|
|
202
|
+
Relationship: typeof Relationship
|
|
203
|
+
UnboundRelationship: typeof UnboundRelationship
|
|
204
|
+
PathSegment: typeof PathSegment
|
|
205
|
+
Path: typeof Path
|
|
206
|
+
Integer: typeof Integer
|
|
207
|
+
Record: typeof Record
|
|
208
|
+
Result: typeof Result
|
|
196
209
|
QueryResult: QueryResult
|
|
197
210
|
ResultObserver: ResultObserver
|
|
198
|
-
ResultSummary: ResultSummary
|
|
199
|
-
Plan: Plan
|
|
200
|
-
ProfiledPlan: ProfiledPlan
|
|
201
|
-
|
|
202
|
-
Notification: Notification
|
|
203
|
-
ServerInfo: ServerInfo
|
|
211
|
+
ResultSummary: typeof ResultSummary
|
|
212
|
+
Plan: typeof Plan
|
|
213
|
+
ProfiledPlan: typeof ProfiledPlan
|
|
214
|
+
QueryStatistics: typeof QueryStatistics
|
|
215
|
+
Notification: typeof Notification
|
|
216
|
+
ServerInfo: typeof ServerInfo
|
|
204
217
|
NotificationPosition: NotificationPosition
|
|
205
|
-
Session: Session
|
|
206
|
-
Transaction: Transaction
|
|
207
|
-
ManagedTransaction: ManagedTransaction
|
|
208
|
-
Point: Point
|
|
218
|
+
Session: typeof Session
|
|
219
|
+
Transaction: typeof Transaction
|
|
220
|
+
ManagedTransaction: typeof ManagedTransaction
|
|
221
|
+
Point: typeof Point
|
|
209
222
|
isPoint: typeof isPoint
|
|
210
|
-
Duration: Duration
|
|
211
|
-
LocalTime: LocalTime
|
|
212
|
-
Time: Time
|
|
213
|
-
Date: Date
|
|
214
|
-
LocalDateTime: LocalDateTime
|
|
215
|
-
DateTime: DateTime
|
|
216
|
-
RxSession: RxSession
|
|
217
|
-
RxTransaction: RxTransaction
|
|
218
|
-
RxManagedTransaction: RxManagedTransaction
|
|
219
|
-
RxResult: RxResult
|
|
220
|
-
ConnectionProvider: ConnectionProvider
|
|
223
|
+
Duration: typeof Duration
|
|
224
|
+
LocalTime: typeof LocalTime
|
|
225
|
+
Time: typeof Time
|
|
226
|
+
Date: typeof Date
|
|
227
|
+
LocalDateTime: typeof LocalDateTime
|
|
228
|
+
DateTime: typeof DateTime
|
|
229
|
+
RxSession: typeof RxSession
|
|
230
|
+
RxTransaction: typeof RxTransaction
|
|
231
|
+
RxManagedTransaction: typeof RxManagedTransaction
|
|
232
|
+
RxResult: typeof RxResult
|
|
221
233
|
isDuration: typeof isDuration
|
|
222
234
|
isLocalTime: typeof isLocalTime
|
|
223
235
|
isTime: typeof isTime
|
|
224
236
|
isDate: typeof isDate
|
|
225
237
|
isLocalDateTime: typeof isLocalDateTime
|
|
226
238
|
isDateTime: typeof isDateTime
|
|
239
|
+
isNode: typeof isNode
|
|
240
|
+
isPath: typeof isPath
|
|
241
|
+
isPathSegment: typeof isPathSegment
|
|
242
|
+
isRelationship: typeof isRelationship
|
|
243
|
+
isUnboundRelationship: typeof isUnboundRelationship
|
|
227
244
|
bookmarkManager: typeof bookmarkManager
|
|
228
245
|
}
|
|
229
246
|
|
|
@@ -237,6 +254,7 @@ export {
|
|
|
237
254
|
types,
|
|
238
255
|
session,
|
|
239
256
|
error,
|
|
257
|
+
graph,
|
|
240
258
|
spatial,
|
|
241
259
|
temporal,
|
|
242
260
|
Driver,
|
|
@@ -279,13 +297,17 @@ export {
|
|
|
279
297
|
RxTransaction,
|
|
280
298
|
RxManagedTransaction,
|
|
281
299
|
RxResult,
|
|
282
|
-
ConnectionProvider,
|
|
283
300
|
isDuration,
|
|
284
301
|
isLocalTime,
|
|
285
302
|
isTime,
|
|
286
303
|
isDate,
|
|
287
304
|
isLocalDateTime,
|
|
288
305
|
isDateTime,
|
|
306
|
+
isNode,
|
|
307
|
+
isPath,
|
|
308
|
+
isPathSegment,
|
|
309
|
+
isRelationship,
|
|
310
|
+
isUnboundRelationship,
|
|
289
311
|
bookmarkManager
|
|
290
312
|
}
|
|
291
313
|
|
package/types/result-rx.d.ts
CHANGED
package/types/session-rx.d.ts
CHANGED
|
@@ -20,7 +20,7 @@ import { Observable } from 'rxjs'
|
|
|
20
20
|
import { Parameters } from './query-runner'
|
|
21
21
|
import RxResult from './result-rx'
|
|
22
22
|
|
|
23
|
-
declare
|
|
23
|
+
declare class RxTransaction {
|
|
24
24
|
run: (query: string, parameters?: Parameters) => RxResult
|
|
25
25
|
|
|
26
26
|
isOpen: () => boolean
|
package/.nycrc
DELETED
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
const transformTools = require('browserify-transform-tools')
|
|
2
|
-
|
|
3
|
-
const nodeRequire = '/node'
|
|
4
|
-
const browserRequire = '/browser'
|
|
5
|
-
|
|
6
|
-
module.exports = transformTools.makeRequireTransform(
|
|
7
|
-
'nodeToBrowserRequireTransform',
|
|
8
|
-
{ evaluateArguments: true },
|
|
9
|
-
function (args, opts, cb) {
|
|
10
|
-
const requireArg = args[0]
|
|
11
|
-
const endsWithNodeRequire =
|
|
12
|
-
requireArg.slice(-nodeRequire.length) === nodeRequire
|
|
13
|
-
if (endsWithNodeRequire) {
|
|
14
|
-
const newRequireArg = requireArg.replace(nodeRequire, browserRequire)
|
|
15
|
-
return cb(null, "require('" + newRequireArg + "')")
|
|
16
|
-
} else {
|
|
17
|
-
return cb()
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
)
|