Navigation Menu

Skip to content

Commit

Permalink
Public export of DatabaseError
Browse files Browse the repository at this point in the history
- Updated root exports of 'pg-protocol' to include DatabaseError

Ref: #2340
  • Loading branch information
tcarrio authored and brianc committed Oct 4, 2020
1 parent e421167 commit 5825843
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/pg-protocol/src/index.ts
@@ -1,4 +1,4 @@
import { BackendMessage } from './messages'
import { BackendMessage, DatabaseError } from './messages'
import { serialize } from './serializer'
import { Parser, MessageCallback } from './parser'

Expand All @@ -8,4 +8,4 @@ export function parse(stream: NodeJS.ReadableStream, callback: MessageCallback):
return new Promise((resolve) => stream.on('end', () => resolve()))
}

export { serialize }
export { serialize, DatabaseError }

0 comments on commit 5825843

Please sign in to comment.