@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/dist/index.cjs CHANGED
@@ -5406,6 +5406,12 @@ var MockDb = class {
5406
5406
  const adapters = memDb.adapters.createPg();
5407
5407
  const PoolCtor = adapters.Pool;
5408
5408
  const pool = new PoolCtor();
5409
+ const existingTypes = pool.types;
5410
+ if (!existingTypes || typeof existingTypes.getTypeParser !== "function") {
5411
+ pool.types = {
5412
+ getTypeParser: () => (val) => val
5413
+ };
5414
+ }
5409
5415
  const orm = drizzlePg.drizzle(pool, { schema });
5410
5416
  return {
5411
5417
  orm,