UNPKG

pg-listen

Version:

PostgreSQL LISTEN & NOTIFY that finally works.

12 lines (9 loc) 324 B
/* * This file is just a small hack to allow CommonJS require()-ing * the default export as: * * const createSubscriber = require("pg-listen") */ const moduleExports = require("./dist/index") const createPosgresSubscriber = moduleExports.default module.exports = Object.assign(createPosgresSubscriber, moduleExports)