UNPKG

@aws-amplify/analytics

Version:

Analytics category of aws-amplify

1 lines 780 B
{"version":3,"file":"trackerConfigHelpers.native.mjs","sources":["../../../src/utils/trackerConfigHelpers.native.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 // React Native only supports session tracking\n assertValidationError(input.type === 'session', AnalyticsValidationErrorCode.UnsupportedPlatform);\n};\n"],"names":[],"mappings":";;;;AAAA;AACA;AAEA;AACA;AACA;AACY,MAAC,4BAA4B,GAAG,CAAC,KAAK,KAAK;AACvD;AACA,IAAI,qBAAqB,CAAC,KAAK,CAAC,IAAI,KAAK,SAAS,EAAE,4BAA4B,CAAC,mBAAmB,CAAC;AACrG;;;;"}