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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "coveo.analytics",
3
- "version": "2.18.64",
3
+ "version": "2.18.65",
4
4
  "description": "📈 Coveo analytics client (node and browser compatible) ",
5
5
  "main": "dist/library.js",
6
6
  "module": "dist/library.es.js",
@@ -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
  }