@aws-amplify/analytics 5.2.11 → 5.2.12-unstable.4

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.
@@ -66127,9 +66127,10 @@ function () {
66127
66127
  }
66128
66128
 
66129
66129
  EventsBuffer.prototype.push = function (event) {
66130
- var _a;
66130
+ var _a; // if the buffer is currently at the configured limit, pushing would exceed it
66131
+
66131
66132
 
66132
- if (this._buffer > this._config.bufferSize) {
66133
+ if (this._buffer.length >= this._config.bufferSize) {
66133
66134
  logger.debug('Exceeded analytics events buffer size');
66134
66135
  return event.handlers.reject(new Error('Exceeded the size of analytics events buffer'));
66135
66136
  }