@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.cjs
CHANGED
|
@@ -449,7 +449,10 @@ function parseLease(raw) {
|
|
|
449
449
|
};
|
|
450
450
|
}
|
|
451
451
|
async function createPgPool(lease) {
|
|
452
|
-
const { Pool } = await import(
|
|
452
|
+
const { Pool } = await import(
|
|
453
|
+
/* webpackIgnore: true */
|
|
454
|
+
'pg'
|
|
455
|
+
);
|
|
453
456
|
const ssl = lease.sslca ? {
|
|
454
457
|
ca: lease.sslca,
|
|
455
458
|
cert: lease.clientCert ?? void 0,
|
|
@@ -469,7 +472,10 @@ async function createPgPool(lease) {
|
|
|
469
472
|
});
|
|
470
473
|
}
|
|
471
474
|
async function createDrizzleHandle(pool, schema) {
|
|
472
|
-
const { drizzle } = await import(
|
|
475
|
+
const { drizzle } = await import(
|
|
476
|
+
/* webpackIgnore: true */
|
|
477
|
+
'drizzle-orm/node-postgres'
|
|
478
|
+
);
|
|
473
479
|
return drizzle(pool, { schema });
|
|
474
480
|
}
|
|
475
481
|
async function createSqlClientWithDeps(deps, options) {
|