neo4j-driver 4.4.2 → 4.4.3

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.
@@ -115,6 +115,27 @@ var RxTransaction = /*#__PURE__*/function () {
115
115
  });
116
116
  });
117
117
  }
118
+ /**
119
+ * Closes the transaction
120
+ *
121
+ * This method will roll back the transaction if it is not already committed or rolled back.
122
+ *
123
+ * @returns {Observable} - An empty observable
124
+ */
125
+
126
+ }, {
127
+ key: "close",
128
+ value: function close() {
129
+ var _this4 = this;
130
+
131
+ return new _rxjs.Observable(function (observer) {
132
+ _this4._txc.close().then(function () {
133
+ observer.complete();
134
+ })["catch"](function (err) {
135
+ return observer.error(err);
136
+ });
137
+ });
138
+ }
118
139
  }]);
119
140
  return RxTransaction;
120
141
  }();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "neo4j-driver",
3
- "version": "4.4.2",
3
+ "version": "4.4.3",
4
4
  "description": "Connect to Neo4j 3.5.0 and up from JavaScript",
5
5
  "author": "Neo4j",
6
6
  "license": "Apache-2.0",
@@ -111,9 +111,9 @@
111
111
  },
112
112
  "dependencies": {
113
113
  "@babel/runtime": "^7.5.5",
114
- "neo4j-driver-bolt-connection": "^4.4.2",
115
- "neo4j-driver-core": "^4.4.2",
114
+ "neo4j-driver-bolt-connection": "^4.4.3",
115
+ "neo4j-driver-core": "^4.4.3",
116
116
  "rxjs": "^6.6.3"
117
117
  },
118
- "gitHead": "f3de916e6e6b4478a670b0ece0d6c970c715f720"
118
+ "gitHead": "ef025439564ead9bec658e1458e8b421ac165fc0"
119
119
  }
@@ -26,6 +26,8 @@ declare interface RxTransaction {
26
26
  commit(): Observable<any>
27
27
 
28
28
  rollback(): Observable<any>
29
+
30
+ close(): Observable<any>
29
31
  }
30
32
 
31
33
  export default RxTransaction