@sonicjs-cms/core 3.0.0-beta.25 → 3.0.0-beta.26
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-01M0dIwt.d.ts → app-BP5IlK94.d.ts} +7 -7
- package/dist/{app-aj39TGHB.d.cts → app-fdq4K3vw.d.cts} +7 -7
- package/dist/catalog-56DR6OXI.cjs +41 -0
- package/dist/catalog-56DR6OXI.cjs.map +1 -0
- package/dist/catalog-6MB37KY7.js +4 -0
- package/dist/catalog-6MB37KY7.js.map +1 -0
- package/dist/{chunk-YAURVGUK.cjs → chunk-4DHPR7KR.cjs} +77 -17
- package/dist/chunk-4DHPR7KR.cjs.map +1 -0
- package/dist/{chunk-D7RLBBHE.js → chunk-5YSFQO7X.js} +40 -13
- package/dist/chunk-5YSFQO7X.js.map +1 -0
- package/dist/{chunk-RSBZITK3.cjs → chunk-6UAI4SGN.cjs} +3 -3
- package/dist/{chunk-RSBZITK3.cjs.map → chunk-6UAI4SGN.cjs.map} +1 -1
- package/dist/{chunk-2XAQTPAE.js → chunk-6X22VFEV.js} +8 -2
- package/dist/chunk-6X22VFEV.js.map +1 -0
- package/dist/{chunk-I7MIRRFJ.cjs → chunk-A22RBHO7.cjs} +11 -11
- package/dist/{chunk-I7MIRRFJ.cjs.map → chunk-A22RBHO7.cjs.map} +1 -1
- package/dist/{chunk-FVAK4C6L.js → chunk-AMP4BSJE.js} +3 -3
- package/dist/{chunk-FVAK4C6L.js.map → chunk-AMP4BSJE.js.map} +1 -1
- package/dist/{chunk-E7E3NL3Y.cjs → chunk-BRKXMRMB.cjs} +93 -93
- package/dist/chunk-BRKXMRMB.cjs.map +1 -0
- package/dist/{chunk-36Z3AKX3.cjs → chunk-C5LDQ3SH.cjs} +8 -2
- package/dist/chunk-C5LDQ3SH.cjs.map +1 -0
- package/dist/{chunk-2OXFMMA3.js → chunk-EEA476CJ.js} +84 -80
- package/dist/chunk-EEA476CJ.js.map +1 -0
- package/dist/chunk-F6BTBE4S.js +119 -0
- package/dist/chunk-F6BTBE4S.js.map +1 -0
- package/dist/chunk-FZGIU5AZ.cjs +128 -0
- package/dist/chunk-FZGIU5AZ.cjs.map +1 -0
- package/dist/{chunk-C54MH5UI.js → chunk-JD7BZU3A.js} +3 -3
- package/dist/{chunk-C54MH5UI.js.map → chunk-JD7BZU3A.js.map} +1 -1
- package/dist/{chunk-3KGY4IBW.js → chunk-JG5J434C.js} +3 -3
- package/dist/{chunk-3KGY4IBW.js.map → chunk-JG5J434C.js.map} +1 -1
- package/dist/{chunk-D6FWEYQE.cjs → chunk-KWQNB6UM.cjs} +4 -4
- package/dist/{chunk-D6FWEYQE.cjs.map → chunk-KWQNB6UM.cjs.map} +1 -1
- package/dist/{chunk-7P5OCUPS.js → chunk-OJFIQGZB.js} +107 -29
- package/dist/chunk-OJFIQGZB.js.map +1 -0
- package/dist/{chunk-JCBDXEY2.cjs → chunk-OLEOKHDX.cjs} +9 -2
- package/dist/chunk-OLEOKHDX.cjs.map +1 -0
- package/dist/{chunk-MOGK3U4A.cjs → chunk-PAS7GZBS.cjs} +40 -13
- package/dist/chunk-PAS7GZBS.cjs.map +1 -0
- package/dist/{chunk-2D3A4X52.js → chunk-RVOX2WH2.js} +74 -18
- package/dist/chunk-RVOX2WH2.js.map +1 -0
- package/dist/{chunk-BDQ55MWV.js → chunk-RXLI3ADU.js} +9 -2
- package/dist/chunk-RXLI3ADU.js.map +1 -0
- package/dist/{chunk-6OA77UM7.cjs → chunk-S2QN4LFD.cjs} +386 -306
- package/dist/chunk-S2QN4LFD.cjs.map +1 -0
- package/dist/{chunk-DLTT7QZU.cjs → chunk-SFGYZUWU.cjs} +3 -3
- package/dist/{chunk-DLTT7QZU.cjs.map → chunk-SFGYZUWU.cjs.map} +1 -1
- package/dist/{chunk-CWIGQYRR.js → chunk-UB5QSRO7.js} +5 -5
- package/dist/chunk-UB5QSRO7.js.map +1 -0
- package/dist/{chunk-F26HP3B6.js → chunk-UKIDWRA3.js} +4 -4
- package/dist/{chunk-F26HP3B6.js.map → chunk-UKIDWRA3.js.map} +1 -1
- package/dist/{chunk-BJ6NJL2E.cjs → chunk-XZUEGFXE.cjs} +5 -5
- package/dist/chunk-XZUEGFXE.cjs.map +1 -0
- package/dist/{collection-config-BTzAvKt2.d.cts → collection-config-U2dydD_O.d.cts} +14 -0
- package/dist/{collection-config-BTzAvKt2.d.ts → collection-config-U2dydD_O.d.ts} +14 -0
- package/dist/config-DOAWXZBG.js +6 -0
- package/dist/{config-4TIHSNW6.js.map → config-DOAWXZBG.js.map} +1 -1
- package/dist/{config-XN2ETAJ3.cjs → config-VLU73ZW7.cjs} +5 -5
- package/dist/{config-XN2ETAJ3.cjs.map → config-VLU73ZW7.cjs.map} +1 -1
- package/dist/index.cjs +600 -332
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +17 -10
- package/dist/index.d.ts +17 -10
- package/dist/index.js +292 -25
- package/dist/index.js.map +1 -1
- package/dist/middleware.cjs +46 -46
- package/dist/middleware.d.cts +6 -9
- package/dist/middleware.d.ts +6 -9
- package/dist/middleware.js +5 -5
- package/dist/migrations-6M6772UC.cjs +13 -0
- package/dist/{migrations-KU4V6T73.cjs.map → migrations-6M6772UC.cjs.map} +1 -1
- package/dist/migrations-GZ2HIB4I.js +4 -0
- package/dist/{migrations-JAHMI5MK.js.map → migrations-GZ2HIB4I.js.map} +1 -1
- package/dist/{plugin-bootstrap-BHWQ2df8.d.cts → plugin-bootstrap-CfVILQeP.d.ts} +1 -1
- package/dist/{plugin-bootstrap-Bj4fxX1q.d.ts → plugin-bootstrap-RY5pkoOT.d.cts} +1 -1
- package/dist/plugins.cjs +40 -40
- package/dist/plugins.js +3 -3
- package/dist/rbac-TFUOYIVN.cjs +14 -0
- package/dist/{rbac-AORZ6O3N.cjs.map → rbac-TFUOYIVN.cjs.map} +1 -1
- package/dist/rbac-XSNP76CV.js +5 -0
- package/dist/{rbac-P44772FP.js.map → rbac-XSNP76CV.js.map} +1 -1
- package/dist/routes.cjs +31 -30
- package/dist/routes.d.cts +3 -5
- package/dist/routes.d.ts +3 -5
- package/dist/routes.js +11 -10
- package/dist/services.cjs +30 -30
- package/dist/services.d.cts +9 -2
- package/dist/services.d.ts +9 -2
- package/dist/services.js +3 -3
- package/dist/types.d.cts +1 -1
- package/dist/types.d.ts +1 -1
- package/dist/utils.cjs +12 -12
- package/dist/utils.d.cts +1 -1
- package/dist/utils.d.ts +1 -1
- package/dist/utils.js +2 -2
- package/package.json +3 -3
- package/dist/chunk-2D3A4X52.js.map +0 -1
- package/dist/chunk-2OXFMMA3.js.map +0 -1
- package/dist/chunk-2XAQTPAE.js.map +0 -1
- package/dist/chunk-36Z3AKX3.cjs.map +0 -1
- package/dist/chunk-6OA77UM7.cjs.map +0 -1
- package/dist/chunk-7P5OCUPS.js.map +0 -1
- package/dist/chunk-BDQ55MWV.js.map +0 -1
- package/dist/chunk-BJ6NJL2E.cjs.map +0 -1
- package/dist/chunk-CWIGQYRR.js.map +0 -1
- package/dist/chunk-D7RLBBHE.js.map +0 -1
- package/dist/chunk-E7E3NL3Y.cjs.map +0 -1
- package/dist/chunk-JCBDXEY2.cjs.map +0 -1
- package/dist/chunk-MOGK3U4A.cjs.map +0 -1
- package/dist/chunk-YAURVGUK.cjs.map +0 -1
- package/dist/config-4TIHSNW6.js +0 -6
- package/dist/migrations-JAHMI5MK.js +0 -4
- package/dist/migrations-KU4V6T73.cjs +0 -13
- package/dist/rbac-AORZ6O3N.cjs +0 -14
- package/dist/rbac-P44772FP.js +0 -5
package/dist/middleware.cjs
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
require('./chunk-
|
|
3
|
+
var chunkBRKXMRMB_cjs = require('./chunk-BRKXMRMB.cjs');
|
|
4
|
+
require('./chunk-OLEOKHDX.cjs');
|
|
5
5
|
require('./chunk-KIGVVO6N.cjs');
|
|
6
|
-
require('./chunk-
|
|
7
|
-
require('./chunk-
|
|
6
|
+
var chunk4DHPR7KR_cjs = require('./chunk-4DHPR7KR.cjs');
|
|
7
|
+
require('./chunk-PAS7GZBS.cjs');
|
|
8
8
|
require('./chunk-MI2YXCK4.cjs');
|
|
9
9
|
require('./chunk-J6JTWD2A.cjs');
|
|
10
10
|
require('./chunk-RCQ2HIQD.cjs');
|
|
11
11
|
require('./chunk-P3XDZL6Q.cjs');
|
|
12
|
-
require('./chunk-
|
|
12
|
+
require('./chunk-XZUEGFXE.cjs');
|
|
13
13
|
require('./chunk-MNWKYY5E.cjs');
|
|
14
14
|
require('./chunk-IGJUBJBW.cjs');
|
|
15
15
|
|
|
@@ -17,119 +17,119 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
17
17
|
|
|
18
18
|
Object.defineProperty(exports, "AuthManager", {
|
|
19
19
|
enumerable: true,
|
|
20
|
-
get: function () { return
|
|
20
|
+
get: function () { return chunkBRKXMRMB_cjs.AuthManager; }
|
|
21
21
|
});
|
|
22
22
|
Object.defineProperty(exports, "PermissionManager", {
|
|
23
23
|
enumerable: true,
|
|
24
|
-
get: function () { return
|
|
24
|
+
get: function () { return chunkBRKXMRMB_cjs.PermissionManager; }
|
|
25
25
|
});
|
|
26
26
|
Object.defineProperty(exports, "bootstrapMiddleware", {
|
|
27
27
|
enumerable: true,
|
|
28
|
-
get: function () { return
|
|
28
|
+
get: function () { return chunkBRKXMRMB_cjs.bootstrapMiddleware; }
|
|
29
29
|
});
|
|
30
30
|
Object.defineProperty(exports, "cacheHeaders", {
|
|
31
31
|
enumerable: true,
|
|
32
|
-
get: function () { return
|
|
32
|
+
get: function () { return chunkBRKXMRMB_cjs.cacheHeaders; }
|
|
33
33
|
});
|
|
34
34
|
Object.defineProperty(exports, "compressionMiddleware", {
|
|
35
35
|
enumerable: true,
|
|
36
|
-
get: function () { return
|
|
36
|
+
get: function () { return chunkBRKXMRMB_cjs.compressionMiddleware; }
|
|
37
37
|
});
|
|
38
38
|
Object.defineProperty(exports, "csrfProtection", {
|
|
39
39
|
enumerable: true,
|
|
40
|
-
get: function () { return
|
|
40
|
+
get: function () { return chunkBRKXMRMB_cjs.csrfProtection; }
|
|
41
41
|
});
|
|
42
42
|
Object.defineProperty(exports, "detailedLoggingMiddleware", {
|
|
43
43
|
enumerable: true,
|
|
44
|
-
get: function () { return
|
|
44
|
+
get: function () { return chunkBRKXMRMB_cjs.detailedLoggingMiddleware; }
|
|
45
45
|
});
|
|
46
46
|
Object.defineProperty(exports, "generateCsrfToken", {
|
|
47
47
|
enumerable: true,
|
|
48
|
-
get: function () { return
|
|
49
|
-
});
|
|
50
|
-
Object.defineProperty(exports, "getActivePlugins", {
|
|
51
|
-
enumerable: true,
|
|
52
|
-
get: function () { return chunkE7E3NL3Y_cjs.getActivePlugins; }
|
|
48
|
+
get: function () { return chunkBRKXMRMB_cjs.generateCsrfToken; }
|
|
53
49
|
});
|
|
54
50
|
Object.defineProperty(exports, "getJwtExpirySeconds", {
|
|
55
51
|
enumerable: true,
|
|
56
|
-
get: function () { return
|
|
52
|
+
get: function () { return chunkBRKXMRMB_cjs.getJwtExpirySeconds; }
|
|
57
53
|
});
|
|
58
54
|
Object.defineProperty(exports, "getJwtExpirySecondsFromDb", {
|
|
59
55
|
enumerable: true,
|
|
60
|
-
get: function () { return
|
|
56
|
+
get: function () { return chunkBRKXMRMB_cjs.getJwtExpirySecondsFromDb; }
|
|
61
57
|
});
|
|
62
58
|
Object.defineProperty(exports, "getJwtRefreshGraceSecondsFromDb", {
|
|
63
59
|
enumerable: true,
|
|
64
|
-
get: function () { return
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "isPluginActive", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () { return chunkE7E3NL3Y_cjs.isPluginActive; }
|
|
60
|
+
get: function () { return chunkBRKXMRMB_cjs.getJwtRefreshGraceSecondsFromDb; }
|
|
69
61
|
});
|
|
70
62
|
Object.defineProperty(exports, "logActivity", {
|
|
71
63
|
enumerable: true,
|
|
72
|
-
get: function () { return
|
|
64
|
+
get: function () { return chunkBRKXMRMB_cjs.logActivity; }
|
|
73
65
|
});
|
|
74
66
|
Object.defineProperty(exports, "loggingMiddleware", {
|
|
75
67
|
enumerable: true,
|
|
76
|
-
get: function () { return
|
|
68
|
+
get: function () { return chunkBRKXMRMB_cjs.loggingMiddleware; }
|
|
77
69
|
});
|
|
78
70
|
Object.defineProperty(exports, "metricsMiddleware", {
|
|
79
71
|
enumerable: true,
|
|
80
|
-
get: function () { return
|
|
72
|
+
get: function () { return chunkBRKXMRMB_cjs.metricsMiddleware; }
|
|
81
73
|
});
|
|
82
74
|
Object.defineProperty(exports, "optionalAuth", {
|
|
83
75
|
enumerable: true,
|
|
84
|
-
get: function () { return
|
|
76
|
+
get: function () { return chunkBRKXMRMB_cjs.optionalAuth; }
|
|
85
77
|
});
|
|
86
78
|
Object.defineProperty(exports, "performanceLoggingMiddleware", {
|
|
87
79
|
enumerable: true,
|
|
88
|
-
get: function () { return
|
|
80
|
+
get: function () { return chunkBRKXMRMB_cjs.performanceLoggingMiddleware; }
|
|
89
81
|
});
|
|
90
82
|
Object.defineProperty(exports, "rateLimit", {
|
|
91
83
|
enumerable: true,
|
|
92
|
-
get: function () { return
|
|
93
|
-
});
|
|
94
|
-
Object.defineProperty(exports, "requireActivePlugin", {
|
|
95
|
-
enumerable: true,
|
|
96
|
-
get: function () { return chunkE7E3NL3Y_cjs.requireActivePlugin; }
|
|
97
|
-
});
|
|
98
|
-
Object.defineProperty(exports, "requireActivePlugins", {
|
|
99
|
-
enumerable: true,
|
|
100
|
-
get: function () { return chunkE7E3NL3Y_cjs.requireActivePlugins; }
|
|
84
|
+
get: function () { return chunkBRKXMRMB_cjs.rateLimit; }
|
|
101
85
|
});
|
|
102
86
|
Object.defineProperty(exports, "requireAnyPermission", {
|
|
103
87
|
enumerable: true,
|
|
104
|
-
get: function () { return
|
|
88
|
+
get: function () { return chunkBRKXMRMB_cjs.requireAnyPermission; }
|
|
105
89
|
});
|
|
106
90
|
Object.defineProperty(exports, "requireAuth", {
|
|
107
91
|
enumerable: true,
|
|
108
|
-
get: function () { return
|
|
92
|
+
get: function () { return chunkBRKXMRMB_cjs.requireAuth; }
|
|
109
93
|
});
|
|
110
94
|
Object.defineProperty(exports, "requirePermission", {
|
|
111
95
|
enumerable: true,
|
|
112
|
-
get: function () { return
|
|
96
|
+
get: function () { return chunkBRKXMRMB_cjs.requirePermission; }
|
|
113
97
|
});
|
|
114
98
|
Object.defineProperty(exports, "requireRole", {
|
|
115
99
|
enumerable: true,
|
|
116
|
-
get: function () { return
|
|
100
|
+
get: function () { return chunkBRKXMRMB_cjs.requireRole; }
|
|
117
101
|
});
|
|
118
102
|
Object.defineProperty(exports, "securityHeaders", {
|
|
119
103
|
enumerable: true,
|
|
120
|
-
get: function () { return
|
|
104
|
+
get: function () { return chunkBRKXMRMB_cjs.securityHeadersMiddleware; }
|
|
121
105
|
});
|
|
122
106
|
Object.defineProperty(exports, "securityLoggingMiddleware", {
|
|
123
107
|
enumerable: true,
|
|
124
|
-
get: function () { return
|
|
108
|
+
get: function () { return chunkBRKXMRMB_cjs.securityLoggingMiddleware; }
|
|
125
109
|
});
|
|
126
110
|
Object.defineProperty(exports, "validateCsrfToken", {
|
|
127
111
|
enumerable: true,
|
|
128
|
-
get: function () { return
|
|
112
|
+
get: function () { return chunkBRKXMRMB_cjs.validateCsrfToken; }
|
|
129
113
|
});
|
|
130
114
|
Object.defineProperty(exports, "verifySecurityConfig", {
|
|
131
115
|
enumerable: true,
|
|
132
|
-
get: function () { return
|
|
116
|
+
get: function () { return chunkBRKXMRMB_cjs.verifySecurityConfig; }
|
|
117
|
+
});
|
|
118
|
+
Object.defineProperty(exports, "getActivePlugins", {
|
|
119
|
+
enumerable: true,
|
|
120
|
+
get: function () { return chunk4DHPR7KR_cjs.getActivePlugins; }
|
|
121
|
+
});
|
|
122
|
+
Object.defineProperty(exports, "isPluginActive", {
|
|
123
|
+
enumerable: true,
|
|
124
|
+
get: function () { return chunk4DHPR7KR_cjs.isPluginActive; }
|
|
125
|
+
});
|
|
126
|
+
Object.defineProperty(exports, "requireActivePlugin", {
|
|
127
|
+
enumerable: true,
|
|
128
|
+
get: function () { return chunk4DHPR7KR_cjs.requireActivePlugin; }
|
|
129
|
+
});
|
|
130
|
+
Object.defineProperty(exports, "requireActivePlugins", {
|
|
131
|
+
enumerable: true,
|
|
132
|
+
get: function () { return chunk4DHPR7KR_cjs.requireActivePlugins; }
|
|
133
133
|
});
|
|
134
134
|
//# sourceMappingURL=middleware.cjs.map
|
|
135
135
|
//# sourceMappingURL=middleware.cjs.map
|
package/dist/middleware.d.cts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import { Context, Next, MiddlewareHandler } from 'hono';
|
|
3
|
-
import { S as SonicJSConfig } from './app-
|
|
3
|
+
import { S as SonicJSConfig } from './app-fdq4K3vw.cjs';
|
|
4
4
|
import { D1Database as D1Database$1 } from '@cloudflare/workers-types';
|
|
5
|
-
import 'better-auth/client';
|
|
6
|
-
import 'better-auth/plugins/email-otp';
|
|
7
5
|
import 'better-auth';
|
|
8
|
-
import 'better-auth/plugins
|
|
9
|
-
import 'better-call';
|
|
6
|
+
import 'better-auth/plugins';
|
|
10
7
|
import 'zod/v4/core';
|
|
11
8
|
import 'zod';
|
|
9
|
+
import 'better-call';
|
|
12
10
|
import './types-DT7XN5TX.cjs';
|
|
13
11
|
|
|
14
12
|
type Bindings = {
|
|
@@ -210,10 +208,9 @@ declare const securityHeadersMiddleware: () => (c: Context, next: Next) => Promi
|
|
|
210
208
|
*/
|
|
211
209
|
|
|
212
210
|
/**
|
|
213
|
-
* Check if a plugin is active
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* @returns Promise<boolean> - True if the plugin is active, false otherwise
|
|
211
|
+
* Check if a plugin is active. Result is cached per isolate to avoid a D1
|
|
212
|
+
* round-trip on every API request. Call invalidatePluginStatusCache() after
|
|
213
|
+
* activate/deactivate operations.
|
|
217
214
|
*/
|
|
218
215
|
declare function isPluginActive(db: D1Database$1, pluginId: string): Promise<boolean>;
|
|
219
216
|
/**
|
package/dist/middleware.d.ts
CHANGED
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import * as hono from 'hono';
|
|
2
2
|
import { Context, Next, MiddlewareHandler } from 'hono';
|
|
3
|
-
import { S as SonicJSConfig } from './app-
|
|
3
|
+
import { S as SonicJSConfig } from './app-BP5IlK94.js';
|
|
4
4
|
import { D1Database as D1Database$1 } from '@cloudflare/workers-types';
|
|
5
|
-
import 'better-auth/client';
|
|
6
|
-
import 'better-auth/plugins/email-otp';
|
|
7
5
|
import 'better-auth';
|
|
8
|
-
import 'better-auth/plugins
|
|
9
|
-
import 'better-call';
|
|
6
|
+
import 'better-auth/plugins';
|
|
10
7
|
import 'zod/v4/core';
|
|
11
8
|
import 'zod';
|
|
9
|
+
import 'better-call';
|
|
12
10
|
import './types-DT7XN5TX.js';
|
|
13
11
|
|
|
14
12
|
type Bindings = {
|
|
@@ -210,10 +208,9 @@ declare const securityHeadersMiddleware: () => (c: Context, next: Next) => Promi
|
|
|
210
208
|
*/
|
|
211
209
|
|
|
212
210
|
/**
|
|
213
|
-
* Check if a plugin is active
|
|
214
|
-
*
|
|
215
|
-
*
|
|
216
|
-
* @returns Promise<boolean> - True if the plugin is active, false otherwise
|
|
211
|
+
* Check if a plugin is active. Result is cached per isolate to avoid a D1
|
|
212
|
+
* round-trip on every API request. Call invalidatePluginStatusCache() after
|
|
213
|
+
* activate/deactivate operations.
|
|
217
214
|
*/
|
|
218
215
|
declare function isPluginActive(db: D1Database$1, pluginId: string): Promise<boolean>;
|
|
219
216
|
/**
|
package/dist/middleware.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, csrfProtection, detailedLoggingMiddleware, generateCsrfToken,
|
|
2
|
-
import './chunk-
|
|
1
|
+
export { AuthManager, PermissionManager, bootstrapMiddleware, cacheHeaders, compressionMiddleware, csrfProtection, detailedLoggingMiddleware, generateCsrfToken, getJwtExpirySeconds, getJwtExpirySecondsFromDb, getJwtRefreshGraceSecondsFromDb, logActivity, loggingMiddleware, metricsMiddleware, optionalAuth, performanceLoggingMiddleware, rateLimit, requireAnyPermission, requireAuth, requirePermission, requireRole, securityHeadersMiddleware as securityHeaders, securityLoggingMiddleware, validateCsrfToken, verifySecurityConfig } from './chunk-EEA476CJ.js';
|
|
2
|
+
import './chunk-RXLI3ADU.js';
|
|
3
3
|
import './chunk-UWUP2VMT.js';
|
|
4
|
-
|
|
5
|
-
import './chunk-
|
|
4
|
+
export { getActivePlugins, isPluginActive, requireActivePlugin, requireActivePlugins } from './chunk-RVOX2WH2.js';
|
|
5
|
+
import './chunk-5YSFQO7X.js';
|
|
6
6
|
import './chunk-SXC4HPK6.js';
|
|
7
7
|
import './chunk-RNZFGN4R.js';
|
|
8
8
|
import './chunk-FICTAGD4.js';
|
|
9
9
|
import './chunk-X7ZAEI5S.js';
|
|
10
|
-
import './chunk-
|
|
10
|
+
import './chunk-UB5QSRO7.js';
|
|
11
11
|
import './chunk-TQABQWOP.js';
|
|
12
12
|
import './chunk-V4OQ3NZ2.js';
|
|
13
13
|
//# sourceMappingURL=middleware.js.map
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkPAS7GZBS_cjs = require('./chunk-PAS7GZBS.cjs');
|
|
4
|
+
require('./chunk-IGJUBJBW.cjs');
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
Object.defineProperty(exports, "MigrationService", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () { return chunkPAS7GZBS_cjs.MigrationService; }
|
|
11
|
+
});
|
|
12
|
+
//# sourceMappingURL=migrations-6M6772UC.cjs.map
|
|
13
|
+
//# sourceMappingURL=migrations-6M6772UC.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-6M6772UC.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"migrations-GZ2HIB4I.js"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CollectionConfig } from './collection-config-
|
|
1
|
+
import { C as CollectionConfig } from './collection-config-U2dydD_O.js';
|
|
2
2
|
import { D1Database } from '@cloudflare/workers-types';
|
|
3
3
|
import * as drizzle_zod from 'drizzle-zod';
|
|
4
4
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { C as CollectionConfig } from './collection-config-
|
|
1
|
+
import { C as CollectionConfig } from './collection-config-U2dydD_O.cjs';
|
|
2
2
|
import { D1Database } from '@cloudflare/workers-types';
|
|
3
3
|
import * as drizzle_zod from 'drizzle-zod';
|
|
4
4
|
import * as drizzle_orm_sqlite_core from 'drizzle-orm/sqlite-core';
|
package/dist/plugins.cjs
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var chunkA22RBHO7_cjs = require('./chunk-A22RBHO7.cjs');
|
|
4
|
+
var chunkKWQNB6UM_cjs = require('./chunk-KWQNB6UM.cjs');
|
|
5
5
|
var chunkJ6JTWD2A_cjs = require('./chunk-J6JTWD2A.cjs');
|
|
6
|
-
require('./chunk-
|
|
6
|
+
require('./chunk-XZUEGFXE.cjs');
|
|
7
7
|
require('./chunk-MNWKYY5E.cjs');
|
|
8
8
|
require('./chunk-QTFKZBLC.cjs');
|
|
9
9
|
require('./chunk-IGJUBJBW.cjs');
|
|
@@ -12,151 +12,151 @@ require('./chunk-IGJUBJBW.cjs');
|
|
|
12
12
|
|
|
13
13
|
Object.defineProperty(exports, "HookSystemImpl", {
|
|
14
14
|
enumerable: true,
|
|
15
|
-
get: function () { return
|
|
15
|
+
get: function () { return chunkA22RBHO7_cjs.HookSystemImpl; }
|
|
16
16
|
});
|
|
17
17
|
Object.defineProperty(exports, "HookUtils", {
|
|
18
18
|
enumerable: true,
|
|
19
|
-
get: function () { return
|
|
19
|
+
get: function () { return chunkA22RBHO7_cjs.HookUtils; }
|
|
20
20
|
});
|
|
21
21
|
Object.defineProperty(exports, "PluginManager", {
|
|
22
22
|
enumerable: true,
|
|
23
|
-
get: function () { return
|
|
23
|
+
get: function () { return chunkA22RBHO7_cjs.PluginManager; }
|
|
24
24
|
});
|
|
25
25
|
Object.defineProperty(exports, "PluginRegisterMustBeSyncError", {
|
|
26
26
|
enumerable: true,
|
|
27
|
-
get: function () { return
|
|
27
|
+
get: function () { return chunkA22RBHO7_cjs.PluginRegisterMustBeSyncError; }
|
|
28
28
|
});
|
|
29
29
|
Object.defineProperty(exports, "PluginRegistryImpl", {
|
|
30
30
|
enumerable: true,
|
|
31
|
-
get: function () { return
|
|
31
|
+
get: function () { return chunkA22RBHO7_cjs.PluginRegistryImpl; }
|
|
32
32
|
});
|
|
33
33
|
Object.defineProperty(exports, "PluginValidator", {
|
|
34
34
|
enumerable: true,
|
|
35
|
-
get: function () { return
|
|
35
|
+
get: function () { return chunkA22RBHO7_cjs.PluginValidator; }
|
|
36
36
|
});
|
|
37
37
|
Object.defineProperty(exports, "RegisterPluginsError", {
|
|
38
38
|
enumerable: true,
|
|
39
|
-
get: function () { return
|
|
39
|
+
get: function () { return chunkA22RBHO7_cjs.RegisterPluginsError; }
|
|
40
40
|
});
|
|
41
41
|
Object.defineProperty(exports, "ScopedHookSystem", {
|
|
42
42
|
enumerable: true,
|
|
43
|
-
get: function () { return
|
|
43
|
+
get: function () { return chunkA22RBHO7_cjs.ScopedHookSystem; }
|
|
44
44
|
});
|
|
45
45
|
Object.defineProperty(exports, "TurnstileService", {
|
|
46
46
|
enumerable: true,
|
|
47
|
-
get: function () { return
|
|
47
|
+
get: function () { return chunkA22RBHO7_cjs.TurnstileService; }
|
|
48
48
|
});
|
|
49
49
|
Object.defineProperty(exports, "collectCronSchedules", {
|
|
50
50
|
enumerable: true,
|
|
51
|
-
get: function () { return
|
|
51
|
+
get: function () { return chunkA22RBHO7_cjs.collectCronSchedules; }
|
|
52
52
|
});
|
|
53
53
|
Object.defineProperty(exports, "collectCrons", {
|
|
54
54
|
enumerable: true,
|
|
55
|
-
get: function () { return
|
|
55
|
+
get: function () { return chunkA22RBHO7_cjs.collectCrons; }
|
|
56
56
|
});
|
|
57
57
|
Object.defineProperty(exports, "createPluginWirer", {
|
|
58
58
|
enumerable: true,
|
|
59
|
-
get: function () { return
|
|
59
|
+
get: function () { return chunkA22RBHO7_cjs.createPluginWirer; }
|
|
60
60
|
});
|
|
61
61
|
Object.defineProperty(exports, "createScheduledHandler", {
|
|
62
62
|
enumerable: true,
|
|
63
|
-
get: function () { return
|
|
63
|
+
get: function () { return chunkA22RBHO7_cjs.createScheduledHandler; }
|
|
64
64
|
});
|
|
65
65
|
Object.defineProperty(exports, "createTurnstileMiddleware", {
|
|
66
66
|
enumerable: true,
|
|
67
|
-
get: function () { return
|
|
67
|
+
get: function () { return chunkA22RBHO7_cjs.createTurnstileMiddleware; }
|
|
68
68
|
});
|
|
69
69
|
Object.defineProperty(exports, "dispatchCronTick", {
|
|
70
70
|
enumerable: true,
|
|
71
|
-
get: function () { return
|
|
71
|
+
get: function () { return chunkA22RBHO7_cjs.dispatchCronTick; }
|
|
72
72
|
});
|
|
73
73
|
Object.defineProperty(exports, "mountPlugin", {
|
|
74
74
|
enumerable: true,
|
|
75
|
-
get: function () { return
|
|
75
|
+
get: function () { return chunkA22RBHO7_cjs.mountPlugin; }
|
|
76
76
|
});
|
|
77
77
|
Object.defineProperty(exports, "registerPluginRoutes", {
|
|
78
78
|
enumerable: true,
|
|
79
|
-
get: function () { return
|
|
79
|
+
get: function () { return chunkA22RBHO7_cjs.registerPluginRoutes; }
|
|
80
80
|
});
|
|
81
81
|
Object.defineProperty(exports, "registerPlugins", {
|
|
82
82
|
enumerable: true,
|
|
83
|
-
get: function () { return
|
|
83
|
+
get: function () { return chunkA22RBHO7_cjs.registerPlugins; }
|
|
84
84
|
});
|
|
85
85
|
Object.defineProperty(exports, "verifyTurnstile", {
|
|
86
86
|
enumerable: true,
|
|
87
|
-
get: function () { return
|
|
87
|
+
get: function () { return chunkA22RBHO7_cjs.verifyTurnstile; }
|
|
88
88
|
});
|
|
89
89
|
Object.defineProperty(exports, "wireRegisteredPlugins", {
|
|
90
90
|
enumerable: true,
|
|
91
|
-
get: function () { return
|
|
91
|
+
get: function () { return chunkA22RBHO7_cjs.wireRegisteredPlugins; }
|
|
92
92
|
});
|
|
93
93
|
Object.defineProperty(exports, "CAPABILITY_RENAMES", {
|
|
94
94
|
enumerable: true,
|
|
95
|
-
get: function () { return
|
|
95
|
+
get: function () { return chunkKWQNB6UM_cjs.CAPABILITY_RENAMES; }
|
|
96
96
|
});
|
|
97
97
|
Object.defineProperty(exports, "FIXED_CAPABILITIES", {
|
|
98
98
|
enumerable: true,
|
|
99
|
-
get: function () { return
|
|
99
|
+
get: function () { return chunkKWQNB6UM_cjs.FIXED_CAPABILITIES; }
|
|
100
100
|
});
|
|
101
101
|
Object.defineProperty(exports, "SonicCapabilityError", {
|
|
102
102
|
enumerable: true,
|
|
103
|
-
get: function () { return
|
|
103
|
+
get: function () { return chunkKWQNB6UM_cjs.SonicCapabilityError; }
|
|
104
104
|
});
|
|
105
105
|
Object.defineProperty(exports, "applySchemaDefaults", {
|
|
106
106
|
enumerable: true,
|
|
107
|
-
get: function () { return
|
|
107
|
+
get: function () { return chunkKWQNB6UM_cjs.applySchemaDefaults; }
|
|
108
108
|
});
|
|
109
109
|
Object.defineProperty(exports, "assertCapability", {
|
|
110
110
|
enumerable: true,
|
|
111
|
-
get: function () { return
|
|
111
|
+
get: function () { return chunkKWQNB6UM_cjs.assertCapability; }
|
|
112
112
|
});
|
|
113
113
|
Object.defineProperty(exports, "createCapabilityContext", {
|
|
114
114
|
enumerable: true,
|
|
115
|
-
get: function () { return
|
|
115
|
+
get: function () { return chunkKWQNB6UM_cjs.createCapabilityContext; }
|
|
116
116
|
});
|
|
117
117
|
Object.defineProperty(exports, "createServiceSingleton", {
|
|
118
118
|
enumerable: true,
|
|
119
|
-
get: function () { return
|
|
119
|
+
get: function () { return chunkKWQNB6UM_cjs.createServiceSingleton; }
|
|
120
120
|
});
|
|
121
121
|
Object.defineProperty(exports, "definePlugin", {
|
|
122
122
|
enumerable: true,
|
|
123
|
-
get: function () { return
|
|
123
|
+
get: function () { return chunkKWQNB6UM_cjs.definePlugin; }
|
|
124
124
|
});
|
|
125
125
|
Object.defineProperty(exports, "hasCapability", {
|
|
126
126
|
enumerable: true,
|
|
127
|
-
get: function () { return
|
|
127
|
+
get: function () { return chunkKWQNB6UM_cjs.hasCapability; }
|
|
128
128
|
});
|
|
129
129
|
Object.defineProperty(exports, "isDefinedPlugin", {
|
|
130
130
|
enumerable: true,
|
|
131
|
-
get: function () { return
|
|
131
|
+
get: function () { return chunkKWQNB6UM_cjs.isDefinedPlugin; }
|
|
132
132
|
});
|
|
133
133
|
Object.defineProperty(exports, "isKnownCapability", {
|
|
134
134
|
enumerable: true,
|
|
135
|
-
get: function () { return
|
|
135
|
+
get: function () { return chunkKWQNB6UM_cjs.isKnownCapability; }
|
|
136
136
|
});
|
|
137
137
|
Object.defineProperty(exports, "normalizeCapabilities", {
|
|
138
138
|
enumerable: true,
|
|
139
|
-
get: function () { return
|
|
139
|
+
get: function () { return chunkKWQNB6UM_cjs.normalizeCapabilities; }
|
|
140
140
|
});
|
|
141
141
|
Object.defineProperty(exports, "normalizeCapability", {
|
|
142
142
|
enumerable: true,
|
|
143
|
-
get: function () { return
|
|
143
|
+
get: function () { return chunkKWQNB6UM_cjs.normalizeCapability; }
|
|
144
144
|
});
|
|
145
145
|
Object.defineProperty(exports, "parseConfigSchema", {
|
|
146
146
|
enumerable: true,
|
|
147
|
-
get: function () { return
|
|
147
|
+
get: function () { return chunkKWQNB6UM_cjs.parseConfigSchema; }
|
|
148
148
|
});
|
|
149
149
|
Object.defineProperty(exports, "parseFormDataToSettings", {
|
|
150
150
|
enumerable: true,
|
|
151
|
-
get: function () { return
|
|
151
|
+
get: function () { return chunkKWQNB6UM_cjs.parseFormDataToSettings; }
|
|
152
152
|
});
|
|
153
153
|
Object.defineProperty(exports, "renderSchemaFields", {
|
|
154
154
|
enumerable: true,
|
|
155
|
-
get: function () { return
|
|
155
|
+
get: function () { return chunkKWQNB6UM_cjs.renderSchemaFields; }
|
|
156
156
|
});
|
|
157
157
|
Object.defineProperty(exports, "validateCapabilities", {
|
|
158
158
|
enumerable: true,
|
|
159
|
-
get: function () { return
|
|
159
|
+
get: function () { return chunkKWQNB6UM_cjs.validateCapabilities; }
|
|
160
160
|
});
|
|
161
161
|
Object.defineProperty(exports, "HOOK_EVENT_NAMES", {
|
|
162
162
|
enumerable: true,
|
package/dist/plugins.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export { HookSystemImpl, HookUtils, PluginManager, PluginRegisterMustBeSyncError, PluginRegistryImpl, PluginValidator, RegisterPluginsError, ScopedHookSystem, TurnstileService, collectCronSchedules, collectCrons, createPluginWirer, createScheduledHandler, createTurnstileMiddleware, dispatchCronTick, mountPlugin, registerPluginRoutes, registerPlugins, verifyTurnstile, wireRegisteredPlugins } from './chunk-
|
|
2
|
-
export { CAPABILITY_RENAMES, FIXED_CAPABILITIES, SonicCapabilityError, applySchemaDefaults, assertCapability, createCapabilityContext, createServiceSingleton, definePlugin, hasCapability, isDefinedPlugin, isKnownCapability, normalizeCapabilities, normalizeCapability, parseConfigSchema, parseFormDataToSettings, renderSchemaFields, validateCapabilities } from './chunk-
|
|
1
|
+
export { HookSystemImpl, HookUtils, PluginManager, PluginRegisterMustBeSyncError, PluginRegistryImpl, PluginValidator, RegisterPluginsError, ScopedHookSystem, TurnstileService, collectCronSchedules, collectCrons, createPluginWirer, createScheduledHandler, createTurnstileMiddleware, dispatchCronTick, mountPlugin, registerPluginRoutes, registerPlugins, verifyTurnstile, wireRegisteredPlugins } from './chunk-UKIDWRA3.js';
|
|
2
|
+
export { CAPABILITY_RENAMES, FIXED_CAPABILITIES, SonicCapabilityError, applySchemaDefaults, assertCapability, createCapabilityContext, createServiceSingleton, definePlugin, hasCapability, isDefinedPlugin, isKnownCapability, normalizeCapabilities, normalizeCapability, parseConfigSchema, parseFormDataToSettings, renderSchemaFields, validateCapabilities } from './chunk-JD7BZU3A.js';
|
|
3
3
|
export { HOOK_EVENT_NAMES, LEGACY_EVENT_ALIASES, createTypedHooks, getHookSystem, getTypedHooks, hasHookSystem, isKnownHookEvent, isLegacyHookEvent, resetHookSystem, resolveHookEventName, setHookSystem } from './chunk-RNZFGN4R.js';
|
|
4
|
-
import './chunk-
|
|
4
|
+
import './chunk-UB5QSRO7.js';
|
|
5
5
|
import './chunk-TQABQWOP.js';
|
|
6
6
|
import './chunk-QXOZI5Q2.js';
|
|
7
7
|
import './chunk-V4OQ3NZ2.js';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var chunkOLEOKHDX_cjs = require('./chunk-OLEOKHDX.cjs');
|
|
4
|
+
require('./chunk-KIGVVO6N.cjs');
|
|
5
|
+
require('./chunk-IGJUBJBW.cjs');
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
Object.defineProperty(exports, "RbacService", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () { return chunkOLEOKHDX_cjs.RbacService; }
|
|
12
|
+
});
|
|
13
|
+
//# sourceMappingURL=rbac-TFUOYIVN.cjs.map
|
|
14
|
+
//# sourceMappingURL=rbac-TFUOYIVN.cjs.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"rbac-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"rbac-TFUOYIVN.cjs"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":[],"names":[],"mappings":"","file":"rbac-
|
|
1
|
+
{"version":3,"sources":[],"names":[],"mappings":"","file":"rbac-XSNP76CV.js"}
|