UNPKG

5.16 kBJavaScriptView Raw
1"use strict";
2
3function _typeof(obj) { "@babel/helpers - typeof"; if (typeof Symbol === "function" && typeof Symbol.iterator === "symbol") { _typeof = function _typeof(obj) { return typeof obj; }; } else { _typeof = function _typeof(obj) { return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }; } return _typeof(obj); }
4
5Object.defineProperty(exports, "__esModule", {
6 value: true
7});
8var _exportNames = {
9 AmplifyTheme: true,
10 AmplifyMessageMapEntries: true
11};
12Object.defineProperty(exports, "AmplifyTheme", {
13 enumerable: true,
14 get: function get() {
15 return _AmplifyTheme["default"];
16 }
17});
18Object.defineProperty(exports, "AmplifyMessageMapEntries", {
19 enumerable: true,
20 get: function get() {
21 return _AmplifyMessageMap.MapEntries;
22 }
23});
24exports["default"] = void 0;
25
26var _awsAmplify = _interopRequireWildcard(require("aws-amplify"));
27
28var _AmplifyI18n = _interopRequireDefault(require("./AmplifyI18n"));
29
30var _AmplifyTheme = _interopRequireDefault(require("./AmplifyTheme"));
31
32var _AmplifyMessageMap = require("./AmplifyMessageMap");
33
34var _AmplifyUI = require("./AmplifyUI");
35
36Object.keys(_AmplifyUI).forEach(function (key) {
37 if (key === "default" || key === "__esModule") return;
38 if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
39 Object.defineProperty(exports, key, {
40 enumerable: true,
41 get: function get() {
42 return _AmplifyUI[key];
43 }
44 });
45});
46
47var _Auth = require("./Auth");
48
49Object.keys(_Auth).forEach(function (key) {
50 if (key === "default" || key === "__esModule") return;
51 if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
52 Object.defineProperty(exports, key, {
53 enumerable: true,
54 get: function get() {
55 return _Auth[key];
56 }
57 });
58});
59
60var _API = require("./API");
61
62Object.keys(_API).forEach(function (key) {
63 if (key === "default" || key === "__esModule") return;
64 if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
65 Object.defineProperty(exports, key, {
66 enumerable: true,
67 get: function get() {
68 return _API[key];
69 }
70 });
71});
72
73var _Storage = require("./Storage");
74
75Object.keys(_Storage).forEach(function (key) {
76 if (key === "default" || key === "__esModule") return;
77 if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
78 Object.defineProperty(exports, key, {
79 enumerable: true,
80 get: function get() {
81 return _Storage[key];
82 }
83 });
84});
85
86var _Interactions = require("./Interactions");
87
88Object.keys(_Interactions).forEach(function (key) {
89 if (key === "default" || key === "__esModule") return;
90 if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
91 Object.defineProperty(exports, key, {
92 enumerable: true,
93 get: function get() {
94 return _Interactions[key];
95 }
96 });
97});
98
99function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
100
101function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
102
103function _interopRequireWildcard(obj) { if (obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
104
105/*
106 * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
107 *
108 * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
109 * the License. A copy of the License is located at
110 *
111 * http://aws.amazon.com/apache2.0/
112 *
113 * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
114 * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
115 * and limitations under the License.
116 */
117var configure = function configure(config) {
118 var msg = ['', '\x1b[33mWarning: Amplify.configure() is deprecated from aws-amplify-react-native.', ' Please import aws-amplify package to configure AWS Amplify\x1b[0m', '', ' Example:', '', " \x1b[36mimport Amplify from 'aws-amplify';", " import aws_exports from './aws-exports';", '', ' Amplify.configure(aws_exports)\x1b[0m', ''].join('\n');
119 console.log(msg);
120
121 _awsAmplify["default"].configure(config);
122};
123
124var Amplify = {
125 configure: configure
126};
127var _default = Amplify;
128exports["default"] = _default;
129
130_awsAmplify.I18n.putVocabularies(_AmplifyI18n["default"]);
\No newline at end of file