@neetru/sdk 2.3.2 → 2.3.3
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 +9 -0
- package/dist/auth.cjs.map +1 -1
- package/dist/auth.mjs.map +1 -1
- package/dist/index.cjs +6 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +6 -0
- package/dist/index.mjs.map +1 -1
- package/dist/mocks.cjs +6 -0
- package/dist/mocks.cjs.map +1 -1
- package/dist/mocks.mjs +6 -0
- package/dist/mocks.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5404,6 +5404,12 @@ var MockDb = class {
|
|
|
5404
5404
|
const adapters = memDb.adapters.createPg();
|
|
5405
5405
|
const PoolCtor = adapters.Pool;
|
|
5406
5406
|
const pool = new PoolCtor();
|
|
5407
|
+
const existingTypes = pool.types;
|
|
5408
|
+
if (!existingTypes || typeof existingTypes.getTypeParser !== "function") {
|
|
5409
|
+
pool.types = {
|
|
5410
|
+
getTypeParser: () => (val) => val
|
|
5411
|
+
};
|
|
5412
|
+
}
|
|
5407
5413
|
const orm = drizzlePg.drizzle(pool, { schema });
|
|
5408
5414
|
return {
|
|
5409
5415
|
orm,
|