Skip to content

Commit 7147128

Browse files
authored
Merge pull request #332 from jsoref/spelling
Spelling
2 parents 3041f6c + e6aa964 commit 7147128

17 files changed

+22
-22
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Neo4j Driver 1.6 for Javascript
1+
# Neo4j Driver 1.6 for JavaScript
22

33

44
A database driver for Neo4j 3.0.0+.
@@ -265,7 +265,7 @@ While there is no need to grab admin right if you are running tests against an e
265265

266266
## A note on numbers and the Integer type
267267
The Neo4j type system includes 64-bit integer values.
268-
However, Javascript can only safely represent integers between `-(2`<sup>`53`</sup>` - 1)` and `(2`<sup>`53`</sup>` - 1)`.
268+
However, JavaScript can only safely represent integers between `-(2`<sup>`53`</sup>` - 1)` and `(2`<sup>`53`</sup>` - 1)`.
269269
In order to support the full Neo4j type system, the driver will not automatically convert to javascript integers.
270270
Any time the driver receives an integer value from Neo4j, it will be represented with an internal integer type by the driver.
271271

docs/README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Documentation for Neo4j Bolt Driver for Javascript
1+
# Documentation for Neo4j Bolt Driver for JavaScript
22
The docs are generated with [esdoc](https://github.com/esdoc/esdoc), which is added
33
as a devDependency to this project.
44

esdoc.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
"enable": true
3939
},
4040
"brand": {
41-
"title": "Neo4j Bolt Driver 1.6 for Javascript",
41+
"title": "Neo4j Bolt Driver 1.6 for JavaScript",
4242
"repository": "https://github.com/neo4j/neo4j-javascript-driver"
4343
}
4444
}

src/v1/integer.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,9 @@ class Integer {
5757

5858
// The internal representation of an Integer is the two given signed, 32-bit values.
5959
// We use 32-bit pieces because these are the size of integers on which
60-
// Javascript performs bit-operations. For operations like addition and
60+
// JavaScript performs bit-operations. For operations like addition and
6161
// multiplication, we split each number into 16 bit pieces, which can easily be
62-
// multiplied within Javascript's floating-point representation without overflow
62+
// multiplied within JavaScript's floating-point representation without overflow
6363
// or change in sign.
6464
//
6565
// In the algorithms below, we frequently reduce the negative case to the

src/v1/internal/buf.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -314,14 +314,14 @@ class BaseBuffer
314314
}
315315

316316
/**
317-
* Get remaning
317+
* Get remaining
318318
*/
319319
remaining () {
320320
return this.length - this.position;
321321
}
322322

323323
/**
324-
* Has remaning
324+
* Has remaining
325325
*/
326326
hasRemaining () {
327327
return this.remaining() > 0;

src/v1/internal/chunking.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@ class Dechunker {
172172
// no-op
173173
}
174174

175-
/** Called when a complete chunk header has been recieved */
175+
/** Called when a complete chunk header has been received */
176176
_onHeader(header) {
177177
if (header == 0) {
178178
// Message boundary

src/v1/internal/connector.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,7 @@ let NO_OP_OBSERVER = {
8080
};
8181

8282
/**
83-
* A connection manages sending and recieving messages over a channel. A
83+
* A connection manages sending and receiving messages over a channel. A
8484
* connector is very closely tied to the Bolt protocol, it implements the
8585
* same message structure with very little frills. This means Connectors are
8686
* naturally tied to a specific version of the protocol, and we expect
@@ -103,7 +103,7 @@ class Connection {
103103
constructor(channel, url, disableLosslessIntegers = false) {
104104
/**
105105
* An ordered queue of observers, each exchange response (zero or more
106-
* RECORD messages followed by a SUCCESS message) we recieve will be routed
106+
* RECORD messages followed by a SUCCESS message) we receive will be routed
107107
* to the next pending observer.
108108
*/
109109
this.url = url;

src/v1/internal/least-connected-load-balancing-strategy.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ export default class LeastConnectedLoadBalancingStrategy extends LoadBalancingSt
5454
return null;
5555
}
5656

57-
// choose start index for iteration in round-rodin fashion
57+
// choose start index for iteration in round-robin fashion
5858
const startIndex = roundRobinIndex.next(length);
5959
let index = startIndex;
6060

src/v1/result-summary.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -271,14 +271,14 @@ class StatementStatistics {
271271
}
272272

273273
/**
274-
* @return {Number} - Number of contraints added.
274+
* @return {Number} - Number of constraints added.
275275
*/
276276
constraintsAdded() {
277277
return this._stats.constraintsAdded;
278278
}
279279

280280
/**
281-
* @return {Number} - Number of contraints removed.
281+
* @return {Number} - Number of constraints removed.
282282
*/
283283
constraintsRemoved() {
284284
return this._stats.constraintsRemoved;

test/resources/neo4j-wrapper.conf

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ dbms.jvm.additional=-XX:+AlwaysPreTouch
3232

3333
# Trust that non-static final fields are really final.
3434
# This allows more optimisations and improves overall performance.
35-
# NOTE: Disable this if you use embedded mode, or have extensions or depencies that may use reflection or serialization
35+
# NOTE: Disable this if you use embedded mode, or have extensions or dependencies that may use reflection or serialization
3636
# to change the value of final fields!
3737
dbms.jvm.additional=-XX:+UnlockExperimentalVMOptions
3838
dbms.jvm.additional=-XX:+TrustFinalNonStaticFields

test/v1/driver.test.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ describe('driver', () => {
6464

6565
it('should handle connection errors', done => {
6666
// Given
67-
driver = neo4j.driver("bolt://localhoste", sharedNeo4j.authToken);
67+
driver = neo4j.driver("bolt://local-host", sharedNeo4j.authToken);
6868

6969
// Expect
7070
driver.onError = error => {

test/v1/routing.driver.boltkit.test.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -972,11 +972,11 @@ describe('routing driver with stub server', () => {
972972
});
973973

974974
it('should throw protocol error when multiple records', done => {
975-
testForProtocolError('./test/resources/boltstub/unparseable_ttl_get_servers.script', done);
975+
testForProtocolError('./test/resources/boltstub/unparsable_ttl_get_servers.script', done);
976976
});
977977

978978
it('should throw protocol error on unparsable record', done => {
979-
testForProtocolError('./test/resources/boltstub/unparseable_servers_get_servers.script', done);
979+
testForProtocolError('./test/resources/boltstub/unparsable_servers_get_servers.script', done);
980980
});
981981

982982
it('should throw protocol error when no routers', done => {
@@ -1100,7 +1100,7 @@ describe('routing driver with stub server', () => {
11001100
});
11011101
});
11021102

1103-
it('should send initial bookmark wihtout access mode', done => {
1103+
it('should send initial bookmark without access mode', done => {
11041104
testWriteSessionWithAccessModeAndBookmark(null, 'neo4j:bookmark:v1:tx42', done);
11051105
});
11061106

test/v1/tck/steps/authsteps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ module.exports = function () {
7575
var expectedCode = 'Neo.ClientError.Security.Unauthorized';
7676

7777
if (message.indexOf(expectedStartOfMessage) != 0) {
78-
throw new Error("Wrong error messsage. Expected: '" + expectedStartOfMessage + "'. Got: '" + message + "'");
78+
throw new Error("Wrong error message. Expected: '" + expectedStartOfMessage + "'. Got: '" + message + "'");
7979
}
8080

8181
if (code.indexOf(expectedCode) != 0) {

test/v1/tck/steps/erroreportingsteps.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ module.exports = function () {
3838
this.Then(/^it throws a `ClientException`$/, function (table) {
3939
var expected = table.rows()[0][0];
4040
if (!this.error) {
41-
throw new Error("Exepcted an error but got none.")
41+
throw new Error("Expected an error but got none.")
4242
}
4343
if (this.error.message.indexOf(expected) != 0) {
4444
if (!(expected == "Unsupported URI scheme:" || expected == "Unable to connect to" ))

test/v1/tck/steps/util.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ function printable(array) {
223223
function getType(val) {
224224
var labels = getLabels(val);
225225
if (labels.length > 1) {
226-
throw new Error("Shuld be single type. Found many: " + labels)
226+
throw new Error("Should be single type. Found many: " + labels)
227227
}
228228
if (labels.length === 0) {
229229
return [];

0 commit comments

Comments
 (0)