@aws-amplify/analytics 5.1.12 → 5.1.13-cloud-logging.10

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.
@@ -62859,7 +62859,6 @@ function () {
62859
62859
  this._config = {};
62860
62860
  this._pluggables = [];
62861
62861
  this._disabled = false;
62862
- this._trackers = {};
62863
62862
  _instance = this;
62864
62863
  this.record = this.record.bind(this);
62865
62864
  _aws_amplify_core__WEBPACK_IMPORTED_MODULE_0__["Hub"].listen('auth', listener);
@@ -62912,7 +62911,7 @@ function () {
62912
62911
  };
62913
62912
  /**
62914
62913
  * add plugin into Analytics category
62915
- * @param {Object} pluggable - an instance of the plugin
62914
+ * @param pluggable - an instance of the plugin
62916
62915
  */
62917
62916
 
62918
62917
 
@@ -62933,7 +62932,7 @@ function () {
62933
62932
  };
62934
62933
  /**
62935
62934
  * Get the plugin object
62936
- * @param providerName - the name of the plugin
62935
+ * @param providerName - the name of the provider to be removed
62937
62936
  */
62938
62937
 
62939
62938
 
@@ -62951,7 +62950,7 @@ function () {
62951
62950
  };
62952
62951
  /**
62953
62952
  * Remove the plugin object
62954
- * @param providerName - the name of the plugin
62953
+ * @param providerName - the name of the provider to be removed
62955
62954
  */
62956
62955
 
62957
62956
 
@@ -62993,6 +62992,7 @@ function () {
62993
62992
  };
62994
62993
  /**
62995
62994
  * Record Session start
62995
+ * @param [provider] - name of the provider.
62996
62996
  * @return - A promise which resolves if buffer doesn't overflow
62997
62997
  */
62998
62998
 
@@ -63015,6 +63015,7 @@ function () {
63015
63015
  };
63016
63016
  /**
63017
63017
  * Record Session stop
63018
+ * @param [provider] - name of the provider.
63018
63019
  * @return - A promise which resolves if buffer doesn't overflow
63019
63020
  */
63020
63021
 
@@ -63035,16 +63036,8 @@ function () {
63035
63036
  });
63036
63037
  });
63037
63038
  };
63038
- /**
63039
- * Record one analytic event and send it to Pinpoint
63040
- * @param {String} name - The name of the event
63041
- * @param {Object} [attributes] - Attributes of the event
63042
- * @param {Object} [metrics] - Event metrics
63043
- * @return - A promise which resolves if buffer doesn't overflow
63044
- */
63045
-
63046
63039
 
63047
- AnalyticsClass.prototype.record = function (event, provider, metrics) {
63040
+ AnalyticsClass.prototype.record = function (event, providerOrAttributes, metrics) {
63048
63041
  return __awaiter(this, void 0, void 0, function () {
63049
63042
  var params;
63050
63043
  return __generator(this, function (_a) {
@@ -63054,7 +63047,7 @@ function () {
63054
63047
  params = {
63055
63048
  event: {
63056
63049
  name: event,
63057
- attributes: provider,
63050
+ attributes: providerOrAttributes,
63058
63051
  metrics: metrics
63059
63052
  },
63060
63053
  provider: 'AWSPinpoint'
@@ -63062,7 +63055,7 @@ function () {
63062
63055
  } else {
63063
63056
  params = {
63064
63057
  event: event,
63065
- provider: provider
63058
+ provider: providerOrAttributes
63066
63059
  };
63067
63060
  }
63068
63061
 
@@ -63107,6 +63100,12 @@ function () {
63107
63100
  });
63108
63101
  });
63109
63102
  };
63103
+ /**
63104
+ * Enable or disable auto tracking
63105
+ * @param trackerType - The type of tracker to activate.
63106
+ * @param [opts] - Auto tracking options.
63107
+ */
63108
+
63110
63109
 
63111
63110
  AnalyticsClass.prototype.autoTrack = function (trackerType, opts) {
63112
63111
  if (!trackers[trackerType]) {