mirror of
https://github.com/brianc/node-postgres.git
synced 2025-12-08 20:16:25 +00:00
lint
This commit is contained in:
parent
b4c1a4e935
commit
8a58659ed3
@ -1,6 +1,6 @@
|
||||
// ESM wrapper for pg-cloudflare
|
||||
import module from '../dist/empty.js';
|
||||
import module from '../dist/empty.js'
|
||||
|
||||
// Re-export any named exports and the default
|
||||
export const CloudflareSocket = module.CloudflareSocket;
|
||||
export default module;
|
||||
export const CloudflareSocket = module.CloudflareSocket
|
||||
export default module
|
||||
|
||||
@ -1,6 +1,6 @@
|
||||
// ESM wrapper for pg-cloudflare in Cloudflare Workers
|
||||
import module from '../dist/index.js';
|
||||
import module from '../dist/index.js'
|
||||
|
||||
// Re-export CloudflareSocket and the default
|
||||
export const CloudflareSocket = module.CloudflareSocket;
|
||||
export default module;
|
||||
export const CloudflareSocket = module.CloudflareSocket
|
||||
export default module
|
||||
|
||||
@ -1,8 +1,8 @@
|
||||
// ESM wrapper for pg-connection-string
|
||||
import connectionString from '../index.js';
|
||||
import connectionString from '../index.js'
|
||||
|
||||
// Re-export the parse function
|
||||
export const parse = connectionString.parse;
|
||||
export const parse = connectionString.parse
|
||||
|
||||
// Re-export the default
|
||||
export default connectionString;
|
||||
export default connectionString
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// ESM wrapper for pg-cursor
|
||||
import Cursor from '../index.js';
|
||||
import Cursor from '../index.js'
|
||||
|
||||
// Export as default only to match CJS module
|
||||
export default Cursor;
|
||||
export default Cursor
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// ESM wrapper for pg-native
|
||||
import Client from '../index.js';
|
||||
import Client from '../index.js'
|
||||
|
||||
// Export as default only to match CJS module
|
||||
export default Client;
|
||||
export default Client
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// ESM wrapper for pg-pool
|
||||
import Pool from '../index.js';
|
||||
import Pool from '../index.js'
|
||||
|
||||
// Export as default only to match CJS module
|
||||
export default Pool;
|
||||
export default Pool
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
// ESM wrapper for pg-protocol
|
||||
import protocol from '../dist/index.js';
|
||||
import protocol from '../dist/index.js'
|
||||
|
||||
// Re-export all the properties
|
||||
export const DatabaseError = protocol.DatabaseError;
|
||||
export const SASL = protocol.SASL;
|
||||
export const serialize = protocol.serialize;
|
||||
export const parse = protocol.parse;
|
||||
// Re-export all the properties
|
||||
export const DatabaseError = protocol.DatabaseError
|
||||
export const SASL = protocol.SASL
|
||||
export const serialize = protocol.serialize
|
||||
export const parse = protocol.parse
|
||||
|
||||
// Re-export the default
|
||||
export default protocol;
|
||||
export default protocol
|
||||
|
||||
@ -1,5 +1,5 @@
|
||||
// ESM wrapper for pg-query-stream
|
||||
import QueryStream from '../dist/index.js';
|
||||
import QueryStream from '../dist/index.js'
|
||||
|
||||
// Export as default only to match CJS module
|
||||
export default QueryStream;
|
||||
export default QueryStream
|
||||
|
||||
@ -1,18 +1,18 @@
|
||||
// ESM wrapper for pg
|
||||
import pg from '../lib/index.js';
|
||||
import pg from '../lib/index.js'
|
||||
|
||||
// Re-export all the properties
|
||||
export const Client = pg.Client;
|
||||
export const Pool = pg.Pool;
|
||||
export const Connection = pg.Connection;
|
||||
export const types = pg.types;
|
||||
export const Query = pg.Query;
|
||||
export const DatabaseError = pg.DatabaseError;
|
||||
export const escapeIdentifier = pg.escapeIdentifier;
|
||||
export const escapeLiteral = pg.escapeLiteral;
|
||||
export const Client = pg.Client
|
||||
export const Pool = pg.Pool
|
||||
export const Connection = pg.Connection
|
||||
export const types = pg.types
|
||||
export const Query = pg.Query
|
||||
export const DatabaseError = pg.DatabaseError
|
||||
export const escapeIdentifier = pg.escapeIdentifier
|
||||
export const escapeLiteral = pg.escapeLiteral
|
||||
|
||||
// Also export the defaults
|
||||
export const defaults = pg.defaults;
|
||||
export const defaults = pg.defaults
|
||||
|
||||
// Re-export the default
|
||||
export default pg;
|
||||
export default pg
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user