coveo.analytics 2.18.64 → 2.18.65
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/package.json
CHANGED
package/src/client/analytics.ts
CHANGED
|
@@ -320,6 +320,7 @@ export class CoveoAnalyticsClient implements AnalyticsClient, VisitorIdProvider
|
|
|
320
320
|
}
|
|
321
321
|
|
|
322
322
|
async getVisit(): Promise<VisitResponse> {
|
|
323
|
+
// deepcode ignore Ssrf: url is supplied by script owner
|
|
323
324
|
const response = await fetch(`${this.baseUrl}/analytics/visit`);
|
|
324
325
|
const visit = (await response.json()) as VisitResponse;
|
|
325
326
|
this.visitorId = visit.visitorId;
|
|
@@ -327,6 +328,7 @@ export class CoveoAnalyticsClient implements AnalyticsClient, VisitorIdProvider
|
|
|
327
328
|
}
|
|
328
329
|
|
|
329
330
|
async getHealth(): Promise<HealthResponse> {
|
|
331
|
+
// deepcode ignore Ssrf: url is supplied by script owner
|
|
330
332
|
const response = await fetch(`${this.baseUrl}/analytics/monitoring/health`);
|
|
331
333
|
return (await response.json()) as HealthResponse;
|
|
332
334
|
}
|