Skip to content

Commit

Permalink
Eslint auto-fix line prettier max line width
Browse files Browse the repository at this point in the history
  • Loading branch information
brianc committed Feb 26, 2024
1 parent f8085eb commit 889b728
Showing 1 changed file with 45 additions and 13 deletions.
58 changes: 45 additions & 13 deletions packages/pg-protocol/src/messages.ts
Original file line number Diff line number Diff line change
Expand Up @@ -111,14 +111,21 @@ export class DatabaseError extends Error implements NoticeOrError {
public file: string | undefined
public line: string | undefined
public routine: string | undefined
constructor(message: string, public readonly length: number, public readonly name: MessageName) {
constructor(
message: string,
public readonly length: number,
public readonly name: MessageName
) {
super(message)
}
}

export class CopyDataMessage {
public readonly name = 'copyData'
constructor(public readonly length: number, public readonly chunk: Buffer) {}
constructor(
public readonly length: number,
public readonly chunk: Buffer
) { }

Check failure on line 128 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 128 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class CopyResponse {
Expand All @@ -142,21 +149,27 @@ export class Field {
public readonly dataTypeSize: number,
public readonly dataTypeModifier: number,
public readonly format: Mode
) {}
) { }

Check failure on line 152 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 152 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class RowDescriptionMessage {
public readonly name: MessageName = 'rowDescription'
public readonly fields: Field[]
constructor(public readonly length: number, public readonly fieldCount: number) {
constructor(
public readonly length: number,
public readonly fieldCount: number
) {
this.fields = new Array(this.fieldCount)
}
}

export class ParameterDescriptionMessage {
public readonly name: MessageName = 'parameterDescription'
public readonly dataTypeIDs: number[]
constructor(public readonly length: number, public readonly parameterCount: number) {
constructor(
public readonly length: number,
public readonly parameterCount: number
) {
this.dataTypeIDs = new Array(this.parameterCount)
}
}
Expand All @@ -167,17 +180,24 @@ export class ParameterStatusMessage {
public readonly length: number,
public readonly parameterName: string,
public readonly parameterValue: string
) {}
) { }

Check failure on line 183 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 183 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class AuthenticationMD5Password implements BackendMessage {
public readonly name: MessageName = 'authenticationMD5Password'
constructor(public readonly length: number, public readonly salt: Buffer) {}
constructor(
public readonly length: number,
public readonly salt: Buffer
) { }

Check failure on line 191 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 191 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class BackendKeyDataMessage {
public readonly name: MessageName = 'backendKeyData'
constructor(public readonly length: number, public readonly processID: number, public readonly secretKey: number) {}
constructor(
public readonly length: number,
public readonly processID: number,
public readonly secretKey: number
) { }

Check failure on line 200 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 200 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class NotificationResponseMessage {
Expand All @@ -187,29 +207,41 @@ export class NotificationResponseMessage {
public readonly processId: number,
public readonly channel: string,
public readonly payload: string
) {}
) { }

Check failure on line 210 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 210 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class ReadyForQueryMessage {
public readonly name: MessageName = 'readyForQuery'
constructor(public readonly length: number, public readonly status: string) {}
constructor(
public readonly length: number,
public readonly status: string
) { }

Check failure on line 218 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 218 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class CommandCompleteMessage {
public readonly name: MessageName = 'commandComplete'
constructor(public readonly length: number, public readonly text: string) {}
constructor(
public readonly length: number,
public readonly text: string
) { }

Check failure on line 226 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 226 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
}

export class DataRowMessage {
public readonly fieldCount: number
public readonly name: MessageName = 'dataRow'
constructor(public length: number, public fields: any[]) {
constructor(
public length: number,
public fields: any[]
) {
this.fieldCount = fields.length
}
}

export class NoticeMessage implements BackendMessage, NoticeOrError {
constructor(public readonly length: number, public readonly message: string | undefined) {}
constructor(
public readonly length: number,
public readonly message: string | undefined
) { }

Check failure on line 244 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`

Check failure on line 244 in packages/pg-protocol/src/messages.ts

View workflow job for this annotation

GitHub Actions / lint

Delete `·`
public readonly name = 'notice'
public severity: string | undefined
public code: string | undefined
Expand Down

0 comments on commit 889b728

Please sign in to comment.