@dyrected/core 1.0.9 → 2.1.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/dist/app-KApbf4XL.d.cts +362 -0
- package/dist/app-KApbf4XL.d.ts +362 -0
- package/dist/chunk-22JTWD74.js +1784 -0
- package/dist/index.cjs +2169 -79
- package/dist/index.d.cts +7 -3
- package/dist/index.d.ts +7 -3
- package/dist/index.js +448 -82
- package/dist/server.d.cts +4 -22
- package/dist/server.d.ts +4 -22
- package/dist/server.js +8 -1715
- package/package.json +2 -1
package/dist/server.d.cts
CHANGED
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { c as DyrectedContext, D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-KApbf4XL.cjs';
|
|
2
|
+
export { g as createDyrectedApp } from './app-KApbf4XL.cjs';
|
|
2
3
|
import * as hono from 'hono';
|
|
3
4
|
import { Hono, Context } from 'hono';
|
|
4
|
-
import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './index-RylhgOwj.cjs';
|
|
5
5
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
6
6
|
import * as hono_utils_types from 'hono/utils/types';
|
|
7
|
-
|
|
8
|
-
interface DyrectedContext {
|
|
9
|
-
Variables: {
|
|
10
|
-
config: DyrectedConfig;
|
|
11
|
-
siteId?: string;
|
|
12
|
-
workspaceId?: string;
|
|
13
|
-
/** Decoded JWT payload set by requireAuth() or optionalAuth() middleware. */
|
|
14
|
-
user?: {
|
|
15
|
-
sub: string;
|
|
16
|
-
email: string;
|
|
17
|
-
collection: string;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Create the main Dyrected Hono application.
|
|
24
|
-
*/
|
|
25
|
-
declare function createDyrectedApp(rawConfig: DyrectedConfig): Promise<Hono<DyrectedContext, hono_types.BlankSchema, "/">>;
|
|
7
|
+
import 'hono/types';
|
|
26
8
|
|
|
27
9
|
/**
|
|
28
10
|
* Register dynamic routes based on the provided configuration.
|
|
@@ -240,4 +222,4 @@ declare class PreviewController {
|
|
|
240
222
|
}, 401, "json">)>;
|
|
241
223
|
}
|
|
242
224
|
|
|
243
|
-
export { AuthController, CollectionController,
|
|
225
|
+
export { AuthController, CollectionController, DyrectedContext, GlobalController, MediaController, PreviewController, registerRoutes };
|
package/dist/server.d.ts
CHANGED
|
@@ -1,28 +1,10 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { c as DyrectedContext, D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './app-KApbf4XL.js';
|
|
2
|
+
export { g as createDyrectedApp } from './app-KApbf4XL.js';
|
|
2
3
|
import * as hono from 'hono';
|
|
3
4
|
import { Hono, Context } from 'hono';
|
|
4
|
-
import { D as DyrectedConfig, C as CollectionConfig, G as GlobalConfig } from './index-RylhgOwj.js';
|
|
5
5
|
import * as hono_utils_http_status from 'hono/utils/http-status';
|
|
6
6
|
import * as hono_utils_types from 'hono/utils/types';
|
|
7
|
-
|
|
8
|
-
interface DyrectedContext {
|
|
9
|
-
Variables: {
|
|
10
|
-
config: DyrectedConfig;
|
|
11
|
-
siteId?: string;
|
|
12
|
-
workspaceId?: string;
|
|
13
|
-
/** Decoded JWT payload set by requireAuth() or optionalAuth() middleware. */
|
|
14
|
-
user?: {
|
|
15
|
-
sub: string;
|
|
16
|
-
email: string;
|
|
17
|
-
collection: string;
|
|
18
|
-
[key: string]: any;
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
}
|
|
22
|
-
/**
|
|
23
|
-
* Create the main Dyrected Hono application.
|
|
24
|
-
*/
|
|
25
|
-
declare function createDyrectedApp(rawConfig: DyrectedConfig): Promise<Hono<DyrectedContext, hono_types.BlankSchema, "/">>;
|
|
7
|
+
import 'hono/types';
|
|
26
8
|
|
|
27
9
|
/**
|
|
28
10
|
* Register dynamic routes based on the provided configuration.
|
|
@@ -240,4 +222,4 @@ declare class PreviewController {
|
|
|
240
222
|
}, 401, "json">)>;
|
|
241
223
|
}
|
|
242
224
|
|
|
243
|
-
export { AuthController, CollectionController,
|
|
225
|
+
export { AuthController, CollectionController, DyrectedContext, GlobalController, MediaController, PreviewController, registerRoutes };
|