@esri/telemetry-amazon 2.0.1 → 2.0.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.
@@ -6783,6 +6783,7 @@
6783
6783
  class Amazon {
6784
6784
  constructor(options) {
6785
6785
  this.name = 'amazon';
6786
+ this.isInitialized = false;
6786
6787
  const { app = {}, fips, userPoolID } = options;
6787
6788
  this.analytics = analyticsLib({
6788
6789
  app: app.name,
@@ -6800,6 +6801,11 @@
6800
6801
  Object.assign(this, options);
6801
6802
  }
6802
6803
  init() {
6804
+ // if already initialized, return
6805
+ if (this.isInitialized) {
6806
+ return;
6807
+ }
6808
+ this.isInitialized = true;
6803
6809
  return Promise.resolve();
6804
6810
  }
6805
6811
  static async setAccessPermissions({ id, authentication, username, accessChangeset, }) {