Skip to content

File tree

69 files changed

+4518
-2857
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

69 files changed

+4518
-2857
lines changed

package-lock.json

Lines changed: 4380 additions & 2722 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
"private": true,
44
"type": "module",
55
"devDependencies": {
6-
"husky": "^7.0.4",
6+
"husky": "^8.0.3",
77
"lerna": "^4.0.0",
8-
"lint-staged": "^12.3.7",
9-
"standard": "^16.0.4",
10-
"ts-standard": "^11.0.0",
11-
"typescript": "^4.6.3"
8+
"lint-staged": "^14.0.0",
9+
"standard": "^17.1.0",
10+
"ts-standard": "^12.0.2",
11+
"typescript": "^4.9.5"
1212
},
1313
"lint-staged": {
1414
"*.{js,md,html}": [

packages/bolt-connection/src/bolt/bolt-protocol-v1.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default class BoltProtocol {
202202
logoff ({ onComplete, onError, flush } = {}) {
203203
const observer = new LogoffObserver({
204204
onCompleted: onComplete,
205-
onError: onError
205+
onError
206206
})
207207

208208
// TODO: Verify the Neo4j version in the message
@@ -284,8 +284,8 @@ export default class BoltProtocol {
284284
'BEGIN',
285285
bookmarks ? bookmarks.asBeginTransactionParameters() : {},
286286
{
287-
bookmarks: bookmarks,
288-
txConfig: txConfig,
287+
bookmarks,
288+
txConfig,
289289
database,
290290
mode,
291291
impersonatedUser,

packages/bolt-connection/src/bolt/bolt-protocol-v4x0.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@ export default class BoltProtocol extends BoltProtocolV3 {
111111
) {
112112
const observer = new ResultStreamObserver({
113113
server: this._server,
114-
reactive: reactive,
115-
fetchSize: fetchSize,
114+
reactive,
115+
fetchSize,
116116
moreFunction: this._requestMore.bind(this),
117117
discardFunction: this._requestDiscard.bind(this),
118118
beforeKeys,

packages/bolt-connection/src/bolt/bolt-protocol-v4x4.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ export default class BoltProtocol extends BoltProtocolV43 {
104104
) {
105105
const observer = new ResultStreamObserver({
106106
server: this._server,
107-
reactive: reactive,
108-
fetchSize: fetchSize,
107+
reactive,
108+
fetchSize,
109109
moreFunction: this._requestMore.bind(this),
110110
discardFunction: this._requestDiscard.bind(this),
111111
beforeKeys,

packages/bolt-connection/src/bolt/bolt-protocol-v5x1.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -123,7 +123,7 @@ export default class BoltProtocol extends BoltProtocolV5x0 {
123123
logoff ({ onComplete, onError, flush } = {}) {
124124
const observer = new LogoffObserver({
125125
onCompleted: onComplete,
126-
onError: onError
126+
onError
127127
})
128128

129129
this.write(

packages/bolt-connection/src/bolt/bolt-protocol-v5x2.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,8 +137,8 @@ export default class BoltProtocol extends BoltProtocolV5x1 {
137137
) {
138138
const observer = new ResultStreamObserver({
139139
server: this._server,
140-
reactive: reactive,
141-
fetchSize: fetchSize,
140+
reactive,
141+
fetchSize,
142142
moreFunction: this._requestMore.bind(this),
143143
discardFunction: this._requestDiscard.bind(this),
144144
beforeKeys,

packages/bolt-connection/src/channel/browser/browser-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ function determineWebSocketScheme (config, protocolSupplier) {
359359
ENCRYPTION_OFF +
360360
'"` in the driver configuration.'
361361
)
362-
return { scheme: null, error: error }
362+
return { scheme: null, error }
363363
}
364364
}
365365

packages/bolt-connection/src/channel/channel-buf.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ function newChannelJSBuffer (arg) {
9595
return buffer.Buffer.alloc(arg)
9696
} else {
9797
// fallback to the old, potentially deprecated constructor
98-
// eslint-disable-next-line node/no-deprecated-api
98+
// eslint-disable-next-line n/no-deprecated-api
9999
return new buffer.Buffer(arg)
100100
}
101101
}

packages/bolt-connection/src/channel/node/node-channel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ function newTlsOptions (hostname, ca = undefined) {
206206
return {
207207
rejectUnauthorized: false, // we manually check for this in the connect callback, to give a more helpful error to the user
208208
servername: hostname, // server name for the SNI (Server Name Indication) TLS extension
209-
ca: ca // optional CA useful for TRUST_CUSTOM_CA_SIGNED_CERTIFICATES trust mode
209+
ca // optional CA useful for TRUST_CUSTOM_CA_SIGNED_CERTIFICATES trust mode
210210
}
211211
}
212212

0 commit comments

Comments
 (0)