@adwait12345/telemetry-express 0.1.0 → 0.1.1
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/index.js +4 -1
- package/dist/index.mjs +4 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -70,7 +70,10 @@ function telemetryMiddleware(config) {
|
|
|
70
70
|
};
|
|
71
71
|
(0, import_telemetry_core.sendToTelemetry)(payload, config).catch((err) => {
|
|
72
72
|
if (config.debug) {
|
|
73
|
-
console.error(
|
|
73
|
+
console.error(
|
|
74
|
+
"[Telemetry Middleware] Failed to send to telemetry:",
|
|
75
|
+
err
|
|
76
|
+
);
|
|
74
77
|
}
|
|
75
78
|
});
|
|
76
79
|
}
|
package/dist/index.mjs
CHANGED
|
@@ -50,7 +50,10 @@ function telemetryMiddleware(config) {
|
|
|
50
50
|
};
|
|
51
51
|
sendToTelemetry(payload, config).catch((err) => {
|
|
52
52
|
if (config.debug) {
|
|
53
|
-
console.error(
|
|
53
|
+
console.error(
|
|
54
|
+
"[Telemetry Middleware] Failed to send to telemetry:",
|
|
55
|
+
err
|
|
56
|
+
);
|
|
54
57
|
}
|
|
55
58
|
});
|
|
56
59
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@adwait12345/telemetry-express",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1",
|
|
4
4
|
"description": "Express middleware for Telemetry SDK - track AI bots and crawlers",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"module": "./dist/index.mjs",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
}
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@adwait12345/telemetry-core": "0.1.0"
|
|
16
|
+
"@adwait12345/telemetry-core": ">=0.1.0"
|
|
17
17
|
},
|
|
18
18
|
"devDependencies": {
|
|
19
19
|
"@types/express": "^4.17.21",
|