Skip to content
Merged
Show file tree
Hide file tree
Changes from 2 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions packages/core/src/connection.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@
* @private
*/
class Connection {
id: string
databaseId: string
id: string = ""
databaseId: string = ""
server: any

/**
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/internal/connection-holder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -194,7 +194,7 @@ class ConnectionHolder implements ConnectionHolderInterface {
*/
private _releaseConnection(): Promise<Connection | void> {
this._connectionPromise = this._connectionPromise
.then((connection?: Connection) => {
.then((connection?: Connection|void) => {
if (connection) {
if (connection.isOpen()) {
return connection
Expand Down
2 changes: 1 addition & 1 deletion packages/core/src/internal/observers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,6 @@ export class FailedObserver implements ResultStreamObserver {

function apply<T>(thisArg: any, func?: (param: T) => void, param?: T): void {
if (func) {
func.bind(thisArg)(param)
func.bind(thisArg)(param as any)
}
}
3 changes: 2 additions & 1 deletion packages/core/src/internal/transaction-executor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@ type TransactionCreator = () => Transaction
type TransactionWork<T> = (tx: Transaction) => T | Promise<T>
type Resolve<T> = (value: T | PromiseLike<T>) => void
type Reject = (value: any) => void
type Timeout = ReturnType<typeof setTimeout>

export class TransactionExecutor {
private _maxRetryTimeMs: number
private _initialRetryDelayMs: number
private _multiplier: number
private _jitterFactor: number
private _inFlightTimeoutIds: NodeJS.Timeout[]
private _inFlightTimeoutIds: Timeout[]

constructor(
maxRetryTimeMs?: number | null,
Expand Down
2 changes: 1 addition & 1 deletion packages/neo4j-driver-lite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ const logging = {
return {
level: level,
logger: (level: LogLevel, message: string) =>
console.log(`${global.Date.now()} ${level.toUpperCase()} ${message}`)
console.log(`${globalThis.Date.now()} ${level.toUpperCase()} ${message}`)
}
}
}
Expand Down