@getvision/adapter-hono 0.0.0 → 0.0.7-d4ccf5d-develop
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/CHANGELOG.md +35 -0
- package/dist/index.js +2 -2
- package/package.json +4 -4
- package/src/index.ts +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,40 @@
|
|
|
1
1
|
# @getvision/adapter-hono
|
|
2
2
|
|
|
3
|
+
## 0.0.6
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [96f97ad]
|
|
8
|
+
- @getvision/core@0.0.7
|
|
9
|
+
|
|
10
|
+
## 0.0.5
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- Updated dependencies [633a138]
|
|
15
|
+
- @getvision/core@0.0.6
|
|
16
|
+
|
|
17
|
+
## 0.0.4
|
|
18
|
+
|
|
19
|
+
### Patch Changes
|
|
20
|
+
|
|
21
|
+
- Updated dependencies [d227b1d]
|
|
22
|
+
- @getvision/core@0.0.5
|
|
23
|
+
|
|
24
|
+
## 0.0.3
|
|
25
|
+
|
|
26
|
+
### Patch Changes
|
|
27
|
+
|
|
28
|
+
- Updated dependencies [a88ad97]
|
|
29
|
+
- @getvision/core@0.0.4
|
|
30
|
+
|
|
31
|
+
## 0.0.2
|
|
32
|
+
|
|
33
|
+
### Patch Changes
|
|
34
|
+
|
|
35
|
+
- Updated dependencies [ae8b128]
|
|
36
|
+
- @getvision/core@0.0.2
|
|
37
|
+
|
|
3
38
|
## 0.0.0
|
|
4
39
|
|
|
5
40
|
### Patch Changes
|
package/dist/index.js
CHANGED
|
@@ -170,13 +170,13 @@ function extractParams(template, concrete) {
|
|
|
170
170
|
return Object.keys(result).length ? result : undefined;
|
|
171
171
|
}
|
|
172
172
|
export function visionAdapter(options = {}) {
|
|
173
|
-
const { enabled = true, port = 9500, maxTraces = 1000, logging = true } = options;
|
|
173
|
+
const { enabled = true, port = 9500, maxTraces = 1000, logging = true, apiUrl } = options;
|
|
174
174
|
if (!enabled) {
|
|
175
175
|
return async (c, next) => await next();
|
|
176
176
|
}
|
|
177
177
|
// Initialize Vision Core once
|
|
178
178
|
if (!visionInstance) {
|
|
179
|
-
visionInstance = new VisionCore({ port, maxTraces });
|
|
179
|
+
visionInstance = new VisionCore({ port, maxTraces, apiUrl });
|
|
180
180
|
// Auto-detect service info
|
|
181
181
|
const pkgInfo = autoDetectPackageInfo();
|
|
182
182
|
const autoIntegrations = autoDetectIntegrations();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getvision/adapter-hono",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7-d4ccf5d-develop",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": "./src/index.ts"
|
|
@@ -13,15 +13,15 @@
|
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"dependencies": {
|
|
15
15
|
"@hono/zod-validator": "^0.7.3",
|
|
16
|
-
"@getvision/core": "0.0.
|
|
16
|
+
"@getvision/core": "0.0.7",
|
|
17
17
|
"zod": "^4.1.11"
|
|
18
18
|
},
|
|
19
19
|
"peerDependencies": {
|
|
20
20
|
"hono": "^4.0.0"
|
|
21
21
|
},
|
|
22
22
|
"devDependencies": {
|
|
23
|
-
"@repo/eslint-config": "0.0.
|
|
24
|
-
"@repo/typescript-config": "0.0.
|
|
23
|
+
"@repo/eslint-config": "0.0.1",
|
|
24
|
+
"@repo/typescript-config": "0.0.1",
|
|
25
25
|
"@types/node": "^20.14.9",
|
|
26
26
|
"hono": "^4.6.14",
|
|
27
27
|
"typescript": "5.9.3"
|
package/src/index.ts
CHANGED
|
@@ -198,7 +198,7 @@ function extractParams(template: string, concrete: string): Record<string, strin
|
|
|
198
198
|
}
|
|
199
199
|
|
|
200
200
|
export function visionAdapter(options: VisionHonoOptions = {}): MiddlewareHandler {
|
|
201
|
-
const { enabled = true, port = 9500, maxTraces = 1000, logging = true } = options
|
|
201
|
+
const { enabled = true, port = 9500, maxTraces = 1000, logging = true, apiUrl } = options
|
|
202
202
|
|
|
203
203
|
if (!enabled) {
|
|
204
204
|
return async (c, next) => await next()
|
|
@@ -206,7 +206,7 @@ export function visionAdapter(options: VisionHonoOptions = {}): MiddlewareHandle
|
|
|
206
206
|
|
|
207
207
|
// Initialize Vision Core once
|
|
208
208
|
if (!visionInstance) {
|
|
209
|
-
visionInstance = new VisionCore({ port, maxTraces })
|
|
209
|
+
visionInstance = new VisionCore({ port, maxTraces, apiUrl })
|
|
210
210
|
|
|
211
211
|
// Auto-detect service info
|
|
212
212
|
const pkgInfo = autoDetectPackageInfo()
|