servcraft 0.4.3 → 0.4.5

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
@@ -1085,10 +1085,18 @@ var prismaClientSingleton = () => {
1085
1085
  errorFormat: isProduction() ? "minimal" : "pretty"
1086
1086
  });
1087
1087
  };
1088
- var prisma = globalThis.__prisma ?? prismaClientSingleton();
1089
- if (!isProduction()) {
1090
- globalThis.__prisma = prisma;
1091
- }
1088
+ var _prisma;
1089
+ var prisma = new Proxy({}, {
1090
+ get(target, prop) {
1091
+ if (!_prisma) {
1092
+ _prisma = globalThis.__prisma ?? prismaClientSingleton();
1093
+ if (!isProduction()) {
1094
+ globalThis.__prisma = _prisma;
1095
+ }
1096
+ }
1097
+ return _prisma[prop];
1098
+ }
1099
+ });
1092
1100
 
1093
1101
  // src/utils/pagination.ts
1094
1102
  var DEFAULT_PAGE = 1;