@dnax/core 0.50.2 → 0.52.0
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/app/hono.ts +1 -1
- package/config/index.ts +1 -0
- package/package.json +1 -1
- package/types/gen.ts +0 -11
- package/types/tsconfig.json +1 -2
package/app/hono.ts
CHANGED
|
@@ -718,7 +718,7 @@ function HonoInstance(): typeof app {
|
|
|
718
718
|
success: false,
|
|
719
719
|
meta: err?.meta || {},
|
|
720
720
|
};
|
|
721
|
-
if (Cfg
|
|
721
|
+
if (Cfg?.api?.onError && typeof Cfg.api?.onError == "function") {
|
|
722
722
|
await Cfg.api?.onError(errorFormated).catch((err: any) => {});
|
|
723
723
|
}
|
|
724
724
|
return c.json(errorFormated);
|
package/config/index.ts
CHANGED
package/package.json
CHANGED
package/types/gen.ts
CHANGED
|
@@ -14,17 +14,6 @@ async function createDnaxDir() {
|
|
|
14
14
|
fs.mkdirSync(dirPath, { recursive: true });
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
|
-
|
|
18
|
-
// copy tsconfig coentent to to .dnax/tsconfig.json
|
|
19
|
-
const tsconfigPath = path.join(dnaxDir, "tsconfig.json");
|
|
20
|
-
if (!fs.existsSync(tsconfigPath)) {
|
|
21
|
-
fs.writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 2));
|
|
22
|
-
} else {
|
|
23
|
-
const currentContent = fs.readFileSync(tsconfigPath, "utf8");
|
|
24
|
-
if (currentContent !== JSON.stringify(tsconfig, null, 2)) {
|
|
25
|
-
fs.writeFileSync(tsconfigPath, JSON.stringify(tsconfig, null, 2));
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
17
|
}
|
|
29
18
|
|
|
30
19
|
function generateCollectionTypes() {
|