servcraft 0.4.4 → 0.4.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/dist/index.js CHANGED
@@ -960,10 +960,18 @@ var prismaClientSingleton = () => {
960
960
  errorFormat: isProduction() ? "minimal" : "pretty"
961
961
  });
962
962
  };
963
- var prisma = globalThis.__prisma ?? prismaClientSingleton();
964
- if (!isProduction()) {
965
- globalThis.__prisma = prisma;
966
- }
963
+ var _prisma;
964
+ var prisma = new Proxy({}, {
965
+ get(target, prop) {
966
+ if (!_prisma) {
967
+ _prisma = globalThis.__prisma ?? prismaClientSingleton();
968
+ if (!isProduction()) {
969
+ globalThis.__prisma = _prisma;
970
+ }
971
+ }
972
+ return _prisma[prop];
973
+ }
974
+ });
967
975
 
968
976
  // src/utils/pagination.ts
969
977
  var DEFAULT_PAGE = 1;