@aws-amplify/analytics 5.1.9 → 5.1.10-custom-pk.86

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/CHANGELOG.md CHANGED
@@ -3,6 +3,156 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [5.2.13](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.12...@aws-amplify/analytics@5.2.13) (2022-07-21)
7
+
8
+
9
+ ### Bug Fixes
10
+
11
+ * Update AmazonPersonalizeProvider Analytics typings ([#10076](https://github.com/aws-amplify/amplify-js/issues/10076)) ([b7ad126](https://github.com/aws-amplify/amplify-js/commit/b7ad1260eb1bc6611cd902e7b8b3e58066ef22b4))
12
+
13
+
14
+
15
+
16
+
17
+ ## [5.2.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.11...@aws-amplify/analytics@5.2.12) (2022-07-07)
18
+
19
+
20
+ ### Bug Fixes
21
+
22
+ * **analytics:** Buffer limit should be adhered to ([#10015](https://github.com/aws-amplify/amplify-js/issues/10015)) ([3dd9035](https://github.com/aws-amplify/amplify-js/commit/3dd903573843f6f53251d118a11de7dacd9edddd))
23
+
24
+
25
+
26
+
27
+
28
+ ## [5.2.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.10...@aws-amplify/analytics@5.2.11) (2022-06-18)
29
+
30
+ **Note:** Version bump only for package @aws-amplify/analytics
31
+
32
+
33
+
34
+
35
+
36
+ ## [5.2.10](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.9...@aws-amplify/analytics@5.2.10) (2022-06-15)
37
+
38
+ **Note:** Version bump only for package @aws-amplify/analytics
39
+
40
+
41
+
42
+
43
+
44
+ ## [5.2.9](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.8...@aws-amplify/analytics@5.2.9) (2022-05-24)
45
+
46
+ **Note:** Version bump only for package @aws-amplify/analytics
47
+
48
+
49
+
50
+
51
+
52
+ ## [5.2.8](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.7...@aws-amplify/analytics@5.2.8) (2022-05-23)
53
+
54
+ **Note:** Version bump only for package @aws-amplify/analytics
55
+
56
+
57
+
58
+
59
+
60
+ ## [5.2.7](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.6...@aws-amplify/analytics@5.2.7) (2022-05-12)
61
+
62
+ **Note:** Version bump only for package @aws-amplify/analytics
63
+
64
+
65
+
66
+
67
+
68
+ ## [5.2.6](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.5...@aws-amplify/analytics@5.2.6) (2022-05-03)
69
+
70
+ **Note:** Version bump only for package @aws-amplify/analytics
71
+
72
+
73
+
74
+
75
+
76
+ ## [5.2.5](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.4...@aws-amplify/analytics@5.2.5) (2022-04-14)
77
+
78
+ **Note:** Version bump only for package @aws-amplify/analytics
79
+
80
+
81
+
82
+
83
+
84
+ ## [5.2.4](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.3...@aws-amplify/analytics@5.2.4) (2022-04-04)
85
+
86
+ **Note:** Version bump only for package @aws-amplify/analytics
87
+
88
+
89
+
90
+
91
+
92
+ ## [5.2.3](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.2...@aws-amplify/analytics@5.2.3) (2022-03-28)
93
+
94
+ **Note:** Version bump only for package @aws-amplify/analytics
95
+
96
+
97
+
98
+
99
+
100
+ ## [5.2.2](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.1...@aws-amplify/analytics@5.2.2) (2022-03-22)
101
+
102
+ **Note:** Version bump only for package @aws-amplify/analytics
103
+
104
+
105
+
106
+
107
+
108
+ ## [5.2.1](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.2.0...@aws-amplify/analytics@5.2.1) (2022-03-10)
109
+
110
+ **Note:** Version bump only for package @aws-amplify/analytics
111
+
112
+
113
+
114
+
115
+
116
+ # [5.2.0](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.1.12...@aws-amplify/analytics@5.2.0) (2022-02-28)
117
+
118
+
119
+ ### Bug Fixes
120
+
121
+ * **@aws-amplify/analytics:** Analytics/types hotfix ([#9648](https://github.com/aws-amplify/amplify-js/issues/9648)) ([ad45ef6](https://github.com/aws-amplify/amplify-js/commit/ad45ef6538675b59b15eba513eab916e8b5d36e1))
122
+
123
+
124
+ ### Features
125
+
126
+ * **@aws-amplify/analytics:** Analytics Typescript updates ([#9272](https://github.com/aws-amplify/amplify-js/issues/9272)) ([9a52c2b](https://github.com/aws-amplify/amplify-js/commit/9a52c2b6a59bf0d9622a2572f8752b7b419c0817))
127
+
128
+
129
+
130
+
131
+
132
+ ## [5.1.12](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.1.11...@aws-amplify/analytics@5.1.12) (2022-02-03)
133
+
134
+ **Note:** Version bump only for package @aws-amplify/analytics
135
+
136
+
137
+
138
+
139
+
140
+ ## [5.1.11](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.1.10...@aws-amplify/analytics@5.1.11) (2022-01-27)
141
+
142
+ **Note:** Version bump only for package @aws-amplify/analytics
143
+
144
+
145
+
146
+
147
+
148
+ ## [5.1.10](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.1.9...@aws-amplify/analytics@5.1.10) (2022-01-07)
149
+
150
+ **Note:** Version bump only for package @aws-amplify/analytics
151
+
152
+
153
+
154
+
155
+
6
156
  ## [5.1.9](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/analytics@5.1.8...@aws-amplify/analytics@5.1.9) (2021-12-16)
7
157
 
8
158
  **Note:** Version bump only for package @aws-amplify/analytics
@@ -6735,7 +6735,7 @@ var ClientSharedValues = {
6735
6735
  /*!**********************************************************************************************!*\
6736
6736
  !*** /root/amplify-js/node_modules/@aws-sdk/client-firehose/node_modules/tslib/tslib.es6.js ***!
6737
6737
  \**********************************************************************************************/
6738
- /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
6738
+ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
6739
6739
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
6740
6740
 
6741
6741
  "use strict";
@@ -6764,7 +6764,8 @@ __webpack_require__.r(__webpack_exports__);
6764
6764
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
6765
6765
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
6766
6766
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
6767
- /*! *****************************************************************************
6767
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
6768
+ /******************************************************************************
6768
6769
  Copyright (c) Microsoft Corporation.
6769
6770
 
6770
6771
  Permission to use, copy, modify, and/or distribute this software for any
@@ -6873,7 +6874,11 @@ function __generator(thisArg, body) {
6873
6874
 
6874
6875
  var __createBinding = Object.create ? (function(o, m, k, k2) {
6875
6876
  if (k2 === undefined) k2 = k;
6876
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
6877
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6878
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6879
+ desc = { enumerable: true, get: function() { return m[k]; } };
6880
+ }
6881
+ Object.defineProperty(o, k2, desc);
6877
6882
  }) : (function(o, m, k, k2) {
6878
6883
  if (k2 === undefined) k2 = k;
6879
6884
  o[k2] = m[k];
@@ -7003,6 +7008,11 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
7003
7008
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
7004
7009
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
7005
7010
  }
7011
+
7012
+ function __classPrivateFieldIn(state, receiver) {
7013
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
7014
+ return typeof state === "function" ? receiver === state : state.has(receiver);
7015
+ }
7006
7016
 
7007
7017
 
7008
7018
  /***/ }),
@@ -15138,7 +15148,7 @@ var waitForStreamNotExists = function (params, input) { return Object(tslib__WEB
15138
15148
  /*!*********************************************************************************************!*\
15139
15149
  !*** /root/amplify-js/node_modules/@aws-sdk/client-kinesis/node_modules/tslib/tslib.es6.js ***!
15140
15150
  \*********************************************************************************************/
15141
- /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
15151
+ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
15142
15152
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
15143
15153
 
15144
15154
  "use strict";
@@ -15167,7 +15177,8 @@ __webpack_require__.r(__webpack_exports__);
15167
15177
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
15168
15178
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
15169
15179
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
15170
- /*! *****************************************************************************
15180
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
15181
+ /******************************************************************************
15171
15182
  Copyright (c) Microsoft Corporation.
15172
15183
 
15173
15184
  Permission to use, copy, modify, and/or distribute this software for any
@@ -15276,7 +15287,11 @@ function __generator(thisArg, body) {
15276
15287
 
15277
15288
  var __createBinding = Object.create ? (function(o, m, k, k2) {
15278
15289
  if (k2 === undefined) k2 = k;
15279
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
15290
+ var desc = Object.getOwnPropertyDescriptor(m, k);
15291
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
15292
+ desc = { enumerable: true, get: function() { return m[k]; } };
15293
+ }
15294
+ Object.defineProperty(o, k2, desc);
15280
15295
  }) : (function(o, m, k, k2) {
15281
15296
  if (k2 === undefined) k2 = k;
15282
15297
  o[k2] = m[k];
@@ -15406,6 +15421,11 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
15406
15421
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
15407
15422
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
15408
15423
  }
15424
+
15425
+ function __classPrivateFieldIn(state, receiver) {
15426
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
15427
+ return typeof state === "function" ? receiver === state : state.has(receiver);
15428
+ }
15409
15429
 
15410
15430
 
15411
15431
  /***/ }),
@@ -16519,7 +16539,7 @@ var ClientSharedValues = {
16519
16539
  /*!********************************************************************************************************!*\
16520
16540
  !*** /root/amplify-js/node_modules/@aws-sdk/client-personalize-events/node_modules/tslib/tslib.es6.js ***!
16521
16541
  \********************************************************************************************************/
16522
- /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
16542
+ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
16523
16543
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
16524
16544
 
16525
16545
  "use strict";
@@ -16548,7 +16568,8 @@ __webpack_require__.r(__webpack_exports__);
16548
16568
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
16549
16569
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
16550
16570
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
16551
- /*! *****************************************************************************
16571
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
16572
+ /******************************************************************************
16552
16573
  Copyright (c) Microsoft Corporation.
16553
16574
 
16554
16575
  Permission to use, copy, modify, and/or distribute this software for any
@@ -16657,7 +16678,11 @@ function __generator(thisArg, body) {
16657
16678
 
16658
16679
  var __createBinding = Object.create ? (function(o, m, k, k2) {
16659
16680
  if (k2 === undefined) k2 = k;
16660
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
16681
+ var desc = Object.getOwnPropertyDescriptor(m, k);
16682
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
16683
+ desc = { enumerable: true, get: function() { return m[k]; } };
16684
+ }
16685
+ Object.defineProperty(o, k2, desc);
16661
16686
  }) : (function(o, m, k, k2) {
16662
16687
  if (k2 === undefined) k2 = k;
16663
16688
  o[k2] = m[k];
@@ -16787,6 +16812,11 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
16787
16812
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
16788
16813
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
16789
16814
  }
16815
+
16816
+ function __classPrivateFieldIn(state, receiver) {
16817
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
16818
+ return typeof state === "function" ? receiver === state : state.has(receiver);
16819
+ }
16790
16820
 
16791
16821
 
16792
16822
  /***/ }),
@@ -50421,7 +50451,7 @@ var ClientSharedValues = {
50421
50451
  /*!**********************************************************************************************!*\
50422
50452
  !*** /root/amplify-js/node_modules/@aws-sdk/client-pinpoint/node_modules/tslib/tslib.es6.js ***!
50423
50453
  \**********************************************************************************************/
50424
- /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet */
50454
+ /*! exports provided: __extends, __assign, __rest, __decorate, __param, __metadata, __awaiter, __generator, __createBinding, __exportStar, __values, __read, __spread, __spreadArrays, __spreadArray, __await, __asyncGenerator, __asyncDelegator, __asyncValues, __makeTemplateObject, __importStar, __importDefault, __classPrivateFieldGet, __classPrivateFieldSet, __classPrivateFieldIn */
50425
50455
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
50426
50456
 
50427
50457
  "use strict";
@@ -50450,7 +50480,8 @@ __webpack_require__.r(__webpack_exports__);
50450
50480
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__importDefault", function() { return __importDefault; });
50451
50481
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldGet", function() { return __classPrivateFieldGet; });
50452
50482
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldSet", function() { return __classPrivateFieldSet; });
50453
- /*! *****************************************************************************
50483
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "__classPrivateFieldIn", function() { return __classPrivateFieldIn; });
50484
+ /******************************************************************************
50454
50485
  Copyright (c) Microsoft Corporation.
50455
50486
 
50456
50487
  Permission to use, copy, modify, and/or distribute this software for any
@@ -50559,7 +50590,11 @@ function __generator(thisArg, body) {
50559
50590
 
50560
50591
  var __createBinding = Object.create ? (function(o, m, k, k2) {
50561
50592
  if (k2 === undefined) k2 = k;
50562
- Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });
50593
+ var desc = Object.getOwnPropertyDescriptor(m, k);
50594
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
50595
+ desc = { enumerable: true, get: function() { return m[k]; } };
50596
+ }
50597
+ Object.defineProperty(o, k2, desc);
50563
50598
  }) : (function(o, m, k, k2) {
50564
50599
  if (k2 === undefined) k2 = k;
50565
50600
  o[k2] = m[k];
@@ -50689,6 +50724,11 @@ function __classPrivateFieldSet(receiver, state, value, kind, f) {
50689
50724
  if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
50690
50725
  return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
50691
50726
  }
50727
+
50728
+ function __classPrivateFieldIn(state, receiver) {
50729
+ if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
50730
+ return typeof state === "function" ? receiver === state : state.has(receiver);
50731
+ }
50692
50732
 
50693
50733
 
50694
50734
  /***/ }),
@@ -62912,7 +62952,7 @@ function () {
62912
62952
  };
62913
62953
  /**
62914
62954
  * add plugin into Analytics category
62915
- * @param {Object} pluggable - an instance of the plugin
62955
+ * @param pluggable - an instance of the plugin
62916
62956
  */
62917
62957
 
62918
62958
 
@@ -62933,7 +62973,7 @@ function () {
62933
62973
  };
62934
62974
  /**
62935
62975
  * Get the plugin object
62936
- * @param providerName - the name of the plugin
62976
+ * @param providerName - the name of the provider to be removed
62937
62977
  */
62938
62978
 
62939
62979
 
@@ -62951,7 +62991,7 @@ function () {
62951
62991
  };
62952
62992
  /**
62953
62993
  * Remove the plugin object
62954
- * @param providerName - the name of the plugin
62994
+ * @param providerName - the name of the provider to be removed
62955
62995
  */
62956
62996
 
62957
62997
 
@@ -62993,6 +63033,7 @@ function () {
62993
63033
  };
62994
63034
  /**
62995
63035
  * Record Session start
63036
+ * @param [provider] - name of the provider.
62996
63037
  * @return - A promise which resolves if buffer doesn't overflow
62997
63038
  */
62998
63039
 
@@ -63015,6 +63056,7 @@ function () {
63015
63056
  };
63016
63057
  /**
63017
63058
  * Record Session stop
63059
+ * @param [provider] - name of the provider.
63018
63060
  * @return - A promise which resolves if buffer doesn't overflow
63019
63061
  */
63020
63062
 
@@ -63035,16 +63077,8 @@ function () {
63035
63077
  });
63036
63078
  });
63037
63079
  };
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
63080
 
63047
- AnalyticsClass.prototype.record = function (event, provider, metrics) {
63081
+ AnalyticsClass.prototype.record = function (event, providerOrAttributes, metrics) {
63048
63082
  return __awaiter(this, void 0, void 0, function () {
63049
63083
  var params;
63050
63084
  return __generator(this, function (_a) {
@@ -63054,7 +63088,7 @@ function () {
63054
63088
  params = {
63055
63089
  event: {
63056
63090
  name: event,
63057
- attributes: provider,
63091
+ attributes: providerOrAttributes,
63058
63092
  metrics: metrics
63059
63093
  },
63060
63094
  provider: 'AWSPinpoint'
@@ -63062,7 +63096,7 @@ function () {
63062
63096
  } else {
63063
63097
  params = {
63064
63098
  event: event,
63065
- provider: provider
63099
+ provider: providerOrAttributes
63066
63100
  };
63067
63101
  }
63068
63102
 
@@ -66093,9 +66127,10 @@ function () {
66093
66127
  }
66094
66128
 
66095
66129
  EventsBuffer.prototype.push = function (event) {
66096
- var _a;
66130
+ var _a; // if the buffer is currently at the configured limit, pushing would exceed it
66097
66131
 
66098
- if (this._buffer > this._config.bufferSize) {
66132
+
66133
+ if (this._buffer.length >= this._config.bufferSize) {
66099
66134
  logger.debug('Exceeded analytics events buffer size');
66100
66135
  return event.handlers.reject(new Error('Exceeded the size of analytics events buffer'));
66101
66136
  }
@@ -66397,7 +66432,7 @@ __webpack_require__.r(__webpack_exports__);
66397
66432
  /* harmony reexport (safe) */ __webpack_require__.d(__webpack_exports__, "AmazonPersonalizeProvider", function() { return _Providers__WEBPACK_IMPORTED_MODULE_1__["AmazonPersonalizeProvider"]; });
66398
66433
 
66399
66434
  /*
66400
- * Copyright 2017-2021 Amazon.com, Inc. or its affiliates. All Rights Reserved.
66435
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
66401
66436
  *
66402
66437
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
66403
66438
  * the License. A copy of the License is located at