@dnax/core 0.12.5 → 0.12.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/lib/routes.ts CHANGED
@@ -30,12 +30,15 @@ async function loadAutoRoutes() {
30
30
  let instance = {
31
31
  router: new Hono(),
32
32
  };
33
- inject?.default?.handler({
33
+ let rest = new useRest({
34
34
  tenant_id: t.id,
35
+ });
36
+ inject?.default?.handler({
37
+ rest,
35
38
  io: Cfg.io,
36
39
  router: instance.router,
37
40
  });
38
- if (baseURL) {
41
+ if (baseURL && inject?.default?.enabled) {
39
42
  endpoints.push({
40
43
  router: instance.router,
41
44
  base: baseURL,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dnax/core",
3
- "version": "0.12.5",
3
+ "version": "0.12.6",
4
4
  "module": "index.ts",
5
5
  "type": "module",
6
6
  "bin": {
package/types/index.ts CHANGED
@@ -118,7 +118,7 @@ export type Field = {
118
118
  validate?: {
119
119
  schema?: AnySchema;
120
120
  };
121
- relationTo?: string;
121
+ //relationTo?: string;
122
122
  };
123
123
 
124
124
  export type cronCtx = {