@agentfield/sdk 0.1.138-rc.1 → 0.1.138-rc.3

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 CHANGED
@@ -5608,7 +5608,11 @@ var LocalVerifier = class {
5608
5608
  lastRefresh = 0;
5609
5609
  initialized = false;
5610
5610
  constructor(agentFieldUrl, refreshInterval = 300, timestampWindow = 300, apiKey) {
5611
- this.agentFieldUrl = agentFieldUrl.replace(/\/+$/, "");
5611
+ let end = agentFieldUrl.length;
5612
+ while (end > 0 && agentFieldUrl.charCodeAt(end - 1) === 47) {
5613
+ end--;
5614
+ }
5615
+ this.agentFieldUrl = agentFieldUrl.slice(0, end);
5612
5616
  this.refreshInterval = refreshInterval;
5613
5617
  this.timestampWindow = timestampWindow;
5614
5618
  this.apiKey = apiKey;