@neetru/sdk 2.3.5 → 2.3.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +12 -0
- package/dist/auth.cjs +8 -2
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs +8 -2
- package/dist/auth.mjs.map +1 -1
- package/dist/db.cjs +8 -2
- package/dist/db.cjs.map +1 -1
- package/dist/db.mjs +8 -2
- package/dist/db.mjs.map +1 -1
- package/dist/index.cjs +24 -6
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +24 -6
- package/dist/index.mjs.map +1 -1
- package/dist/mocks.cjs +16 -4
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.mjs +16 -4
- package/dist/mocks.mjs.map +1 -1
- package/package.json +1 -1
package/dist/db.mjs
CHANGED
|
@@ -447,7 +447,10 @@ function parseLease(raw) {
|
|
|
447
447
|
};
|
|
448
448
|
}
|
|
449
449
|
async function createPgPool(lease) {
|
|
450
|
-
const { Pool } = await import(
|
|
450
|
+
const { Pool } = await import(
|
|
451
|
+
/* webpackIgnore: true */
|
|
452
|
+
'pg'
|
|
453
|
+
);
|
|
451
454
|
const ssl = lease.sslca ? {
|
|
452
455
|
ca: lease.sslca,
|
|
453
456
|
cert: lease.clientCert ?? void 0,
|
|
@@ -467,7 +470,10 @@ async function createPgPool(lease) {
|
|
|
467
470
|
});
|
|
468
471
|
}
|
|
469
472
|
async function createDrizzleHandle(pool, schema) {
|
|
470
|
-
const { drizzle } = await import(
|
|
473
|
+
const { drizzle } = await import(
|
|
474
|
+
/* webpackIgnore: true */
|
|
475
|
+
'drizzle-orm/node-postgres'
|
|
476
|
+
);
|
|
471
477
|
return drizzle(pool, { schema });
|
|
472
478
|
}
|
|
473
479
|
async function createSqlClientWithDeps(deps, options) {
|