@aws-amplify/analytics 7.0.1-console-preview.d807e55.0 → 7.0.1-console-preview.5f040a2.0
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.
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.record = void 0;
|
|
6
|
+
var core_1 = require("@aws-amplify/core");
|
|
6
7
|
var utils_1 = require("@aws-amplify/core/internals/utils");
|
|
7
8
|
var pinpoint_1 = require("@aws-amplify/core/internals/providers/pinpoint");
|
|
8
9
|
var errors_1 = require("../../../errors");
|
|
@@ -47,6 +48,7 @@ var record = function (input) {
|
|
|
47
48
|
(0, utils_3.resolveCredentials)()
|
|
48
49
|
.then(function (_a) {
|
|
49
50
|
var credentials = _a.credentials, identityId = _a.identityId;
|
|
51
|
+
core_1.Hub.dispatch('analytics', { event: 'record', data: input, message: 'Recording Analytics event' }, 'Analytics', utils_1.AMPLIFY_SYMBOL);
|
|
50
52
|
(0, pinpoint_1.record)({
|
|
51
53
|
appId: appId,
|
|
52
54
|
category: 'Analytics',
|