@fonderie/adapter-hono 1.0.2 → 2.0.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/brain/signatures.md +27 -0
- package/package.json +9 -8
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
<!-- GENERATED — do not edit. Regenerate with: npm run docs:signatures -->
|
|
2
|
+
|
|
3
|
+
# @fonderie/adapter-hono — signatures
|
|
4
|
+
|
|
5
|
+
## @fonderie/adapter-hono
|
|
6
|
+
|
|
7
|
+
```ts
|
|
8
|
+
function bridge(fonderie: FonderieApp): MiddlewareHandler
|
|
9
|
+
|
|
10
|
+
function adapt(middleware: Middleware): MiddlewareHandler
|
|
11
|
+
|
|
12
|
+
function withWorkspace(store: IStoreAdapter): MiddlewareHandler
|
|
13
|
+
|
|
14
|
+
function requirePermission(operation: Operation, permissionKey: string): MiddlewareHandler
|
|
15
|
+
|
|
16
|
+
function requireFeature(key: string): MiddlewareHandler
|
|
17
|
+
|
|
18
|
+
function mount(hono: Hono<BlankEnv, BlankSchema, "/">, fonderie: FonderieApp): Hono<BlankEnv, BlankSchema, "/">
|
|
19
|
+
|
|
20
|
+
const OPERATIONS: { readonly CREATE: "create"; readonly READ: "read"; readonly UPDATE: "update"; readonly DELETE: "delete"; }
|
|
21
|
+
|
|
22
|
+
type FonderieVariables = {
|
|
23
|
+
_fonderie: IFonderieContext;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
function requireAuth(c: Context<any, string, {}>, next: Next): Promise<void | Response>
|
|
27
|
+
```
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fonderie/adapter-hono",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"description": "Hono adapter for fonderie-js — bridge(), adapt(), mount() to use fonderie middleware in native Hono routes.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"fonderie-js",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"check": "biome check --write src"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"@fonderie/core": "^0.
|
|
39
|
-
"@fonderie/workspaces": "^
|
|
40
|
-
"@fonderie/permissions": "^
|
|
41
|
-
"@fonderie/billing": "^
|
|
38
|
+
"@fonderie/core": "^0.2.0",
|
|
39
|
+
"@fonderie/workspaces": "^2.0.0",
|
|
40
|
+
"@fonderie/permissions": "^2.0.0",
|
|
41
|
+
"@fonderie/billing": "^2.0.0",
|
|
42
42
|
"hono": "^4.0.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependenciesMeta": {
|
|
@@ -68,16 +68,17 @@
|
|
|
68
68
|
},
|
|
69
69
|
"files": [
|
|
70
70
|
"dist",
|
|
71
|
+
"brain",
|
|
71
72
|
"LICENSE",
|
|
72
73
|
"README.md"
|
|
73
74
|
],
|
|
74
75
|
"repository": {
|
|
75
76
|
"type": "git",
|
|
76
|
-
"url": "git+https://github.com/
|
|
77
|
+
"url": "git+https://github.com/fonderiejs/sdk.git",
|
|
77
78
|
"directory": "packages/adapter-hono"
|
|
78
79
|
},
|
|
79
|
-
"homepage": "https://github.com/
|
|
80
|
+
"homepage": "https://github.com/fonderiejs/sdk/tree/main/packages/adapter-hono#readme",
|
|
80
81
|
"bugs": {
|
|
81
|
-
"url": "https://github.com/
|
|
82
|
+
"url": "https://github.com/fonderiejs/sdk/issues"
|
|
82
83
|
}
|
|
83
84
|
}
|