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/cli/index.js CHANGED
@@ -5742,10 +5742,18 @@ var prismaClientSingleton = () => {
5742
5742
  errorFormat: isProduction() ? "minimal" : "pretty"
5743
5743
  });
5744
5744
  };
5745
- var prisma = globalThis.__prisma ?? prismaClientSingleton();
5746
- if (!isProduction()) {
5747
- globalThis.__prisma = prisma;
5748
- }
5745
+ var _prisma;
5746
+ var prisma = new Proxy({}, {
5747
+ get(target, prop) {
5748
+ if (!_prisma) {
5749
+ _prisma = globalThis.__prisma ?? prismaClientSingleton();
5750
+ if (!isProduction()) {
5751
+ globalThis.__prisma = _prisma;
5752
+ }
5753
+ }
5754
+ return _prisma[prop];
5755
+ }
5756
+ });
5749
5757
 
5750
5758
  // src/utils/pagination.ts
5751
5759
  var DEFAULT_PAGE = 1;