@project-sunbird/telemetry-sdk 1.2.0 → 1.3.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/index.js +9 -10
- package/package.json +1 -4
package/index.js
CHANGED
|
@@ -2414,7 +2414,6 @@ if (typeof module != 'undefined') {
|
|
|
2414
2414
|
* @author Krushanu Mohapatra <Krushanu.Mohapatra@tarento.com>
|
|
2415
2415
|
*/
|
|
2416
2416
|
|
|
2417
|
-
const axios = require("axios").default;
|
|
2418
2417
|
|
|
2419
2418
|
var TelemetrySyncManager = {
|
|
2420
2419
|
|
|
@@ -2470,15 +2469,15 @@ var TelemetrySyncManager = {
|
|
|
2470
2469
|
headersParam['x-app-id'] = Telemetry.config.pdata.id;
|
|
2471
2470
|
headersParam['x-device-id'] = Telemetry.fingerPrintId;
|
|
2472
2471
|
headersParam['x-channel-id'] = Telemetry.config.channel;
|
|
2473
|
-
|
|
2474
|
-
fullPath,
|
|
2475
|
-
|
|
2476
|
-
|
|
2477
|
-
|
|
2478
|
-
|
|
2479
|
-
|
|
2480
|
-
|
|
2481
|
-
.
|
|
2472
|
+
jQuery.ajax({
|
|
2473
|
+
url: fullPath,
|
|
2474
|
+
type: "POST",
|
|
2475
|
+
headers: headersParam,
|
|
2476
|
+
data: JSON.stringify(telemetryObj),
|
|
2477
|
+
async: async
|
|
2478
|
+
}).done(function(resp) {
|
|
2479
|
+
Telemetry.config.telemetryDebugEnabled && console.log("Telemetry API success", resp);
|
|
2480
|
+
}).fail(function(error, textStatus, errorThrown) {
|
|
2482
2481
|
if(instance._failedBatchSize > instance._failedBatch.length){
|
|
2483
2482
|
instance._failedBatch.push(telemetryObj);
|
|
2484
2483
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@project-sunbird/telemetry-sdk",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.3.0",
|
|
4
4
|
"description": "Telemetry Service javascript library helps to generate the telemetry events.",
|
|
5
5
|
"directories": {
|
|
6
6
|
"example": "example",
|
|
@@ -54,9 +54,6 @@
|
|
|
54
54
|
"url": "https://github.com/project-sunbird/sunbird-telemetry-sdk/issues"
|
|
55
55
|
},
|
|
56
56
|
"homepage": "https://github.com/project-sunbird/sunbird-telemetry-sdk/tree/master/js#readme",
|
|
57
|
-
"dependencies": {
|
|
58
|
-
"axios": "1.6.2"
|
|
59
|
-
},
|
|
60
57
|
"overrides": {
|
|
61
58
|
"graceful-fs": "^4.2.11"
|
|
62
59
|
}
|