@aws-amplify/analytics
Version:
Analytics category of aws-amplify
1 lines • 847 B
Source Map (JSON)
{"version":3,"file":"trackerConfigHelpers.mjs","sources":["../../../src/utils/trackerConfigHelpers.ts"],"sourcesContent":["// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.\n// SPDX-License-Identifier: Apache-2.0\nimport { AnalyticsValidationErrorCode, assertValidationError } from '../errors';\n/**\n * Validates tracker configuration.\n */\nexport const validateTrackerConfiguration = (input) => {\n assertValidationError(input.type === 'event' ||\n input.type === 'pageView' ||\n input.type === 'session', AnalyticsValidationErrorCode.InvalidTracker);\n};\n"],"names":[],"mappings":";;;;AAAA;AACA;AAEA;AACA;AACA;AACY,MAAC,4BAA4B,GAAG,CAAC,KAAK,KAAK;AACvD,IAAI,qBAAqB,CAAC,KAAK,CAAC,IAAI,KAAK,OAAO;AAChD,QAAQ,KAAK,CAAC,IAAI,KAAK,UAAU;AACjC,QAAQ,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,4BAA4B,CAAC,cAAc,CAAC;AAC9E;;;;"}