UNPKG

amazon-cognito-identity-js

Version:

Amazon Cognito Identity Provider JavaScript SDK

23 lines (20 loc) 669 B
"use strict"; exports.__esModule = true; exports.getUserAgent = exports["default"] = exports.Platform = void 0; var _version = require("./version"); /*! * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0 */ var BASE_USER_AGENT = "aws-amplify/" + _version.version; var Platform = exports.Platform = { userAgent: BASE_USER_AGENT, isReactNative: typeof navigator !== 'undefined' && navigator.product === 'ReactNative' }; var getUserAgent = exports.getUserAgent = function getUserAgent() { return Platform.userAgent; }; /** * @deprecated use named import */ var _default = exports["default"] = Platform;