UNPKG

@aws-amplify/core

Version:
50 lines 1.9 kB
/* * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0/ * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ import { AWS } from './Facet'; import { ConsoleLogger as Logger } from './Logger'; import Amplify from './Amplify'; export * from './Facet'; export { default as ClientDevice } from './ClientDevice'; export { ConsoleLogger, ConsoleLogger as Logger } from './Logger'; export * from './Errors'; export { default as Hub } from './Hub'; export { default as I18n } from './I18n'; export { default as JS } from './JS'; export { default as Signer } from './Signer'; export { default as Parser } from './Parser'; export { FacebookOAuth, GoogleOAuth } from './OAuthHelper'; export * from './RNComponents'; export { default as Credentials } from './Credentials'; export { default as ServiceWorker } from './ServiceWorker'; export { default as StorageHelper, MemoryStorage } from './StorageHelper'; export { default as Platform } from './Platform'; import Platform from './Platform'; export var Constants = { userAgent: Platform.userAgent, }; export * from './constants'; export default Amplify; export * from './Util'; var logger = new Logger('Core'); if (AWS['util']) { AWS['util'].userAgent = function () { return Constants.userAgent; }; } else if (AWS.config) { AWS.config.update({ customUserAgent: Constants.userAgent }); } else { logger.warn('No AWS.config'); } //# sourceMappingURL=index.js.map