This commit is contained in:
Luca Ban 2025-03-21 06:42:55 +13:00
parent b4c1a4e935
commit 8a58659ed3
9 changed files with 35 additions and 35 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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