@getvision/adapter-fastify 0.0.0 → 0.0.7
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 +41 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +2 -1
- package/package.json +2 -2
- package/src/index.ts +2 -0
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,46 @@
|
|
|
1
1
|
# @getvision/adapter-fastify
|
|
2
2
|
|
|
3
|
+
## 0.0.7
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- d4ccf5d: Expose `apiUrl` in adapter and server options and pass it to VisionCore so the dashboard can target the backend API.
|
|
8
|
+
|
|
9
|
+
## 0.0.6
|
|
10
|
+
|
|
11
|
+
### Patch Changes
|
|
12
|
+
|
|
13
|
+
- Updated dependencies [96f97ad]
|
|
14
|
+
- @getvision/core@0.0.7
|
|
15
|
+
|
|
16
|
+
## 0.0.5
|
|
17
|
+
|
|
18
|
+
### Patch Changes
|
|
19
|
+
|
|
20
|
+
- Updated dependencies [633a138]
|
|
21
|
+
- @getvision/core@0.0.6
|
|
22
|
+
|
|
23
|
+
## 0.0.4
|
|
24
|
+
|
|
25
|
+
### Patch Changes
|
|
26
|
+
|
|
27
|
+
- Updated dependencies [d227b1d]
|
|
28
|
+
- @getvision/core@0.0.5
|
|
29
|
+
|
|
30
|
+
## 0.0.3
|
|
31
|
+
|
|
32
|
+
### Patch Changes
|
|
33
|
+
|
|
34
|
+
- Updated dependencies [a88ad97]
|
|
35
|
+
- @getvision/core@0.0.4
|
|
36
|
+
|
|
37
|
+
## 0.0.2
|
|
38
|
+
|
|
39
|
+
### Patch Changes
|
|
40
|
+
|
|
41
|
+
- Updated dependencies [ae8b128]
|
|
42
|
+
- @getvision/core@0.0.2
|
|
43
|
+
|
|
3
44
|
## 0.0.0
|
|
4
45
|
|
|
5
46
|
### Patch Changes
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAElE,OAAO,EACL,UAAU,EAMX,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAIV,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAGxB,UAAU,aAAa;IACrB,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,gBAAgB,IAAI,aAAa,CAMhD;AAED,wBAAgB,aAAa,KAInB,CAAC,EACP,MAAM,MAAM,EACZ,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAK,EACpC,IAAI,MAAM,CAAC,KACV,CAAC,CAgCL;AAKD,wBAAgB,iBAAiB,IAAI,UAAU,GAAG,IAAI,CAErD;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,SAAS,CAAA;AAElE,OAAO,EACL,UAAU,EAMX,MAAM,iBAAiB,CAAA;AACxB,OAAO,KAAK,EAIV,KAAK,EACL,oBAAoB,EACpB,iBAAiB,EAClB,MAAM,iBAAiB,CAAA;AAGxB,UAAU,aAAa;IACrB,MAAM,EAAE,UAAU,CAAA;IAClB,KAAK,EAAE,KAAK,CAAA;IACZ,OAAO,EAAE,MAAM,CAAA;IACf,UAAU,EAAE,MAAM,CAAA;CACnB;AAED,wBAAgB,gBAAgB,IAAI,aAAa,CAMhD;AAED,wBAAgB,aAAa,KAInB,CAAC,EACP,MAAM,MAAM,EACZ,YAAY,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,YAAK,EACpC,IAAI,MAAM,CAAC,KACV,CAAC,CAgCL;AAKD,wBAAgB,iBAAiB,IAAI,UAAU,GAAG,IAAI,CAErD;AA6OD,eAAO,MAAM,YAAY,0CAGvB,CAAA;AAEF,wBAAgB,mBAAmB,CACjC,OAAO,EAAE,eAAe,EACxB,OAAO,CAAC,EAAE;IAAE,QAAQ,CAAC,EAAE,iBAAiB,EAAE,CAAA;CAAE,GAC3C,IAAI,CAgEN;AAmGD,OAAO,EAAE,mBAAmB,EAAE,MAAM,iBAAiB,CAAA"}
|
package/dist/index.js
CHANGED
|
@@ -40,7 +40,7 @@ export function getVisionInstance() {
|
|
|
40
40
|
return visionInstance;
|
|
41
41
|
}
|
|
42
42
|
const visionPluginImpl = async (fastify, options) => {
|
|
43
|
-
const { port = 9500, enabled = true, maxTraces = 1000, maxLogs = 10000, logging = true, cors = true, } = options;
|
|
43
|
+
const { port = 9500, enabled = true, maxTraces = 1000, maxLogs = 10000, logging = true, cors = true, apiUrl } = options;
|
|
44
44
|
if (!enabled) {
|
|
45
45
|
return;
|
|
46
46
|
}
|
|
@@ -49,6 +49,7 @@ const visionPluginImpl = async (fastify, options) => {
|
|
|
49
49
|
port,
|
|
50
50
|
maxTraces,
|
|
51
51
|
maxLogs,
|
|
52
|
+
apiUrl
|
|
52
53
|
});
|
|
53
54
|
}
|
|
54
55
|
const vision = visionInstance;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@getvision/adapter-fastify",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.7",
|
|
4
4
|
"description": "Fastify adapter for Vision Dashboard",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./src/index.ts",
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
"dependencies": {
|
|
27
27
|
"@fastify/request-context": "^6.2.1",
|
|
28
28
|
"fastify-plugin": "^5.1.0",
|
|
29
|
-
"@getvision/core": "0.0.
|
|
29
|
+
"@getvision/core": "0.0.7"
|
|
30
30
|
},
|
|
31
31
|
"peerDependencies": {
|
|
32
32
|
"fastify": "^5.6.1",
|
package/src/index.ts
CHANGED
|
@@ -90,6 +90,7 @@ const visionPluginImpl: FastifyPluginAsync<VisionFastifyOptions> = async (fastif
|
|
|
90
90
|
maxLogs = 10000,
|
|
91
91
|
logging = true,
|
|
92
92
|
cors = true,
|
|
93
|
+
apiUrl
|
|
93
94
|
} = options
|
|
94
95
|
|
|
95
96
|
if (!enabled) {
|
|
@@ -101,6 +102,7 @@ const visionPluginImpl: FastifyPluginAsync<VisionFastifyOptions> = async (fastif
|
|
|
101
102
|
port,
|
|
102
103
|
maxTraces,
|
|
103
104
|
maxLogs,
|
|
105
|
+
apiUrl
|
|
104
106
|
})
|
|
105
107
|
}
|
|
106
108
|
|