Skip to content

Commit b738700

Browse files
author
Neo Technology Build Agent
committed
JS driver v1.1.0-M04: Checking in transpiled files for bower
1 parent 7396f1e commit b738700

28 files changed

+4235
-12632
lines changed

lib/browser/neo4j-web.js

+1,445-5,728
Large diffs are not rendered by default.

lib/browser/neo4j-web.min.js

+15-18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/browser/neo4j-web.test.js

+1,859-6,215
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

lib/external/es6-promise.js

+8-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,10 @@
11
'use strict';
22

3-
var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) { return typeof obj; } : function (obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; };
3+
var _typeof2 = require('babel-runtime/helpers/typeof');
4+
5+
var _typeof3 = _interopRequireDefault(_typeof2);
6+
7+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
48

59
/*!
610
* @overview es6-promise - a tiny implementation of Promises/A+.
@@ -14,15 +18,15 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
1418
"use strict";
1519

1620
function lib$es6$promise$utils$$objectOrFunction(x) {
17-
return typeof x === 'function' || (typeof x === 'undefined' ? 'undefined' : _typeof(x)) === 'object' && x !== null;
21+
return typeof x === 'function' || (typeof x === 'undefined' ? 'undefined' : (0, _typeof3.default)(x)) === 'object' && x !== null;
1822
}
1923

2024
function lib$es6$promise$utils$$isFunction(x) {
2125
return typeof x === 'function';
2226
}
2327

2428
function lib$es6$promise$utils$$isMaybeThenable(x) {
25-
return (typeof x === 'undefined' ? 'undefined' : _typeof(x)) === 'object' && x !== null;
29+
return (typeof x === 'undefined' ? 'undefined' : (0, _typeof3.default)(x)) === 'object' && x !== null;
2630
}
2731

2832
var lib$es6$promise$utils$$_isArray;
@@ -531,7 +535,7 @@ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol
531535
/*jshint validthis:true */
532536
var Constructor = this;
533537

534-
if (object && (typeof object === 'undefined' ? 'undefined' : _typeof(object)) === 'object' && object.constructor === Constructor) {
538+
if (object && (typeof object === 'undefined' ? 'undefined' : (0, _typeof3.default)(object)) === 'object' && object.constructor === Constructor) {
535539
return object;
536540
}
537541

lib/v1/driver.js

+67-51
Large diffs are not rendered by default.

lib/v1/error.js

+19-7
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,25 @@
33
Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
6+
exports.SESSION_EXPIRED = exports.SERVICE_UNAVAILABLE = exports.Neo4jError = exports.newError = undefined;
67

7-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
8+
var _getPrototypeOf = require('babel-runtime/core-js/object/get-prototype-of');
89

9-
function _possibleConstructorReturn(self, call) { if (!self) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return call && (typeof call === "object" || typeof call === "function") ? call : self; }
10+
var _getPrototypeOf2 = _interopRequireDefault(_getPrototypeOf);
1011

11-
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function, not " + typeof superClass); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, enumerable: false, writable: true, configurable: true } }); if (superClass) Object.setPrototypeOf ? Object.setPrototypeOf(subClass, superClass) : subClass.__proto__ = superClass; }
12+
var _classCallCheck2 = require('babel-runtime/helpers/classCallCheck');
13+
14+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
15+
16+
var _possibleConstructorReturn2 = require('babel-runtime/helpers/possibleConstructorReturn');
17+
18+
var _possibleConstructorReturn3 = _interopRequireDefault(_possibleConstructorReturn2);
19+
20+
var _inherits2 = require('babel-runtime/helpers/inherits');
21+
22+
var _inherits3 = _interopRequireDefault(_inherits2);
23+
24+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1225

1326
/**
1427
* Copyright (c) 2002-2016 "Neo Technology,"
@@ -43,14 +56,13 @@ function newError(message) {
4356
}
4457

4558
var Neo4jError = function (_Error) {
46-
_inherits(Neo4jError, _Error);
59+
(0, _inherits3.default)(Neo4jError, _Error);
4760

4861
function Neo4jError(message) {
4962
var code = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "N/A";
63+
(0, _classCallCheck3.default)(this, Neo4jError);
5064

51-
_classCallCheck(this, Neo4jError);
52-
53-
var _this = _possibleConstructorReturn(this, (Neo4jError.__proto__ || Object.getPrototypeOf(Neo4jError)).call(this, message));
65+
var _this = (0, _possibleConstructorReturn3.default)(this, (Neo4jError.__proto__ || (0, _getPrototypeOf2.default)(Neo4jError)).call(this, message));
5466

5567
_this.message = message;
5668
_this.code = code;

lib/v1/graph-types.js

+31-19
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,25 @@
33
Object.defineProperty(exports, "__esModule", {
44
value: true
55
});
6+
exports.PathSegment = exports.Path = exports.UnboundRelationship = exports.Relationship = exports.Node = undefined;
67

7-
var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
8+
var _stringify = require("babel-runtime/core-js/json/stringify");
89

9-
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
10+
var _stringify2 = _interopRequireDefault(_stringify);
11+
12+
var _keys = require("babel-runtime/core-js/object/keys");
13+
14+
var _keys2 = _interopRequireDefault(_keys);
15+
16+
var _classCallCheck2 = require("babel-runtime/helpers/classCallCheck");
17+
18+
var _classCallCheck3 = _interopRequireDefault(_classCallCheck2);
19+
20+
var _createClass2 = require("babel-runtime/helpers/createClass");
21+
22+
var _createClass3 = _interopRequireDefault(_createClass2);
23+
24+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
1025

1126
/**
1227
* Copyright (c) 2002-2016 "Neo Technology,"
@@ -38,34 +53,33 @@ var Node = function () {
3853
* @param {Object} properties - Map with node properties
3954
*/
4055
function Node(identity, labels, properties) {
41-
_classCallCheck(this, Node);
56+
(0, _classCallCheck3.default)(this, Node);
4257

4358
this.identity = identity;
4459
this.labels = labels;
4560
this.properties = properties;
4661
}
4762

48-
_createClass(Node, [{
63+
(0, _createClass3.default)(Node, [{
4964
key: "toString",
5065
value: function toString() {
5166
var s = "(" + this.identity;
5267
for (var i = 0; i < this.labels.length; i++) {
5368
s += ":" + this.labels[i];
5469
}
55-
var keys = Object.keys(this.properties);
70+
var keys = (0, _keys2.default)(this.properties);
5671
if (keys.length > 0) {
5772
s += " {";
5873
for (var _i = 0; _i < keys.length; _i++) {
5974
if (_i > 0) s += ",";
60-
s += keys[_i] + ":" + JSON.stringify(this.properties[keys[_i]]);
75+
s += keys[_i] + ":" + (0, _stringify2.default)(this.properties[keys[_i]]);
6176
}
6277
s += "}";
6378
}
6479
s += ")";
6580
return s;
6681
}
6782
}]);
68-
6983
return Node;
7084
}();
7185

@@ -84,7 +98,7 @@ var Relationship = function () {
8498
* @param {Object} properties - Map with relationship properties
8599
*/
86100
function Relationship(identity, start, end, type, properties) {
87-
_classCallCheck(this, Relationship);
101+
(0, _classCallCheck3.default)(this, Relationship);
88102

89103
this.identity = identity;
90104
this.start = start;
@@ -93,24 +107,23 @@ var Relationship = function () {
93107
this.properties = properties;
94108
}
95109

96-
_createClass(Relationship, [{
110+
(0, _createClass3.default)(Relationship, [{
97111
key: "toString",
98112
value: function toString() {
99113
var s = "(" + this.start + ")-[:" + this.type;
100-
var keys = Object.keys(this.properties);
114+
var keys = (0, _keys2.default)(this.properties);
101115
if (keys.length > 0) {
102116
s += " {";
103117
for (var i = 0; i < keys.length; i++) {
104118
if (i > 0) s += ",";
105-
s += keys[i] + ":" + JSON.stringify(this.properties[keys[i]]);
119+
s += keys[i] + ":" + (0, _stringify2.default)(this.properties[keys[i]]);
106120
}
107121
s += "}";
108122
}
109123
s += "]->(" + this.end + ")";
110124
return s;
111125
}
112126
}]);
113-
114127
return Relationship;
115128
}();
116129

@@ -128,7 +141,7 @@ var UnboundRelationship = function () {
128141
* @param {Object} properties - Map with relationship properties
129142
*/
130143
function UnboundRelationship(identity, type, properties) {
131-
_classCallCheck(this, UnboundRelationship);
144+
(0, _classCallCheck3.default)(this, UnboundRelationship);
132145

133146
this.identity = identity;
134147
this.type = type;
@@ -143,7 +156,7 @@ var UnboundRelationship = function () {
143156
*/
144157

145158

146-
_createClass(UnboundRelationship, [{
159+
(0, _createClass3.default)(UnboundRelationship, [{
147160
key: "bind",
148161
value: function bind(start, end) {
149162
return new Relationship(this.identity, start, end, this.type, this.properties);
@@ -152,20 +165,19 @@ var UnboundRelationship = function () {
152165
key: "toString",
153166
value: function toString() {
154167
var s = "-[:" + this.type;
155-
var keys = Object.keys(this.properties);
168+
var keys = (0, _keys2.default)(this.properties);
156169
if (keys.length > 0) {
157170
s += " {";
158171
for (var i = 0; i < keys.length; i++) {
159172
if (i > 0) s += ",";
160-
s += keys[i] + ":" + JSON.stringify(this.properties[keys[i]]);
173+
s += keys[i] + ":" + (0, _stringify2.default)(this.properties[keys[i]]);
161174
}
162175
s += "}";
163176
}
164177
s += "]->";
165178
return s;
166179
}
167180
}]);
168-
169181
return UnboundRelationship;
170182
}();
171183

@@ -182,7 +194,7 @@ var PathSegment =
182194
* @param {string} end - Identity of end Node
183195
*/
184196
function PathSegment(start, rel, end) {
185-
_classCallCheck(this, PathSegment);
197+
(0, _classCallCheck3.default)(this, PathSegment);
186198

187199
this.start = start;
188200
this.relationship = rel;
@@ -202,7 +214,7 @@ var Path =
202214
* @param {Array} segments - Array of Segments
203215
*/
204216
function Path(start, end, segments) {
205-
_classCallCheck(this, Path);
217+
(0, _classCallCheck3.default)(this, Path);
206218

207219
this.start = start;
208220
this.end = end;

lib/v1/index.js

+8-8
Original file line numberDiff line numberDiff line change
@@ -89,18 +89,18 @@ var USER_AGENT = "neo4j-javascript/" + _version2.default;
8989
* options are as follows:
9090
*
9191
* {
92-
* // Encryption level: one of ENCRYPTION_ON, ENCRYPTION_OFF or ENCRYPTION_NON_LOCAL.
93-
* // ENCRYPTION_NON_LOCAL is on by default in modern NodeJS installs,
94-
* // but off by default in the Web Bundle and old (<=1.0.0) NodeJS installs
95-
* // due to technical limitations on those platforms.
96-
* encrypted: ENCRYPTION_ON|ENCRYPTION_OFF|ENCRYPTION_NON_LOCAL
92+
* // Encryption level: ENCRYPTION_ON or ENCRYPTION_OFF.
93+
* encrypted: ENCRYPTION_ON|ENCRYPTION_OFF
9794
*
9895
* // Trust strategy to use if encryption is enabled. There is no mode to disable
9996
* // trust other than disabling encryption altogether. The reason for
10097
* // this is that if you don't know who you are talking to, it is easy for an
10198
* // attacker to hijack your encrypted connection, rendering encryption pointless.
10299
* //
103-
* // TRUST_ON_FIRST_USE is the default for modern NodeJS deployments, and works
100+
* // TRUST_ALL_CERTIFICATES is the default choice for NodeJS deployments. It only requires
101+
* // new host to provide a certificate and does no verification of the provided certificate.
102+
* //
103+
* // TRUST_ON_FIRST_USE is available for modern NodeJS deployments, and works
104104
* // similarly to how `ssl` works - the first time we connect to a new host,
105105
* // we remember the certificate they use. If the certificate ever changes, we
106106
* // assume it is an attempt to hijack the connection and require manual intervention.
@@ -115,8 +115,8 @@ var USER_AGENT = "neo4j-javascript/" + _version2.default;
115115
* //
116116
* // TRUST_SYSTEM_CA_SIGNED_CERTIFICATES meand that you trust whatever certificates
117117
* // are in the default certificate chain of th
118-
* trust: "TRUST_ON_FIRST_USE" | "TRUST_SIGNED_CERTIFICATES" | TRUST_CUSTOM_CA_SIGNED_CERTIFICATES |
119-
* TRUST_SYSTEM_CA_SIGNED_CERTIFICATES,
118+
* trust: "TRUST_ALL_CERTIFICATES" | "TRUST_ON_FIRST_USE" | "TRUST_SIGNED_CERTIFICATES" |
119+
* "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES" | "TRUST_SYSTEM_CA_SIGNED_CERTIFICATES",
120120
*
121121
* // List of one or more paths to trusted encryption certificates. This only
122122
* // works in the NodeJS bundle, and only matters if you use "TRUST_CUSTOM_CA_SIGNED_CERTIFICATES".

0 commit comments

Comments
 (0)