1 | "use strict";
|
2 |
|
3 | function _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 |
|
5 | Object.defineProperty(exports, "__esModule", {
|
6 | value: true
|
7 | });
|
8 | var _exportNames = {
|
9 | AmplifyTheme: true,
|
10 | AmplifyMessageMapEntries: true
|
11 | };
|
12 | Object.defineProperty(exports, "AmplifyTheme", {
|
13 | enumerable: true,
|
14 | get: function get() {
|
15 | return _AmplifyTheme["default"];
|
16 | }
|
17 | });
|
18 | Object.defineProperty(exports, "AmplifyMessageMapEntries", {
|
19 | enumerable: true,
|
20 | get: function get() {
|
21 | return _AmplifyMessageMap.MapEntries;
|
22 | }
|
23 | });
|
24 | exports["default"] = void 0;
|
25 |
|
26 | var _awsAmplify = _interopRequireWildcard(require("aws-amplify"));
|
27 |
|
28 | var _AmplifyI18n = _interopRequireDefault(require("./AmplifyI18n"));
|
29 |
|
30 | var _AmplifyTheme = _interopRequireDefault(require("./AmplifyTheme"));
|
31 |
|
32 | var _AmplifyMessageMap = require("./AmplifyMessageMap");
|
33 |
|
34 | var _AmplifyUI = require("./AmplifyUI");
|
35 |
|
36 | Object.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 |
|
47 | var _Auth = require("./Auth");
|
48 |
|
49 | Object.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 |
|
60 | var _API = require("./API");
|
61 |
|
62 | Object.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 |
|
73 | var _Storage = require("./Storage");
|
74 |
|
75 | Object.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 |
|
86 | var _Interactions = require("./Interactions");
|
87 |
|
88 | Object.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 |
|
99 | function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { "default": obj }; }
|
100 |
|
101 | function _getRequireWildcardCache() { if (typeof WeakMap !== "function") return null; var cache = new WeakMap(); _getRequireWildcardCache = function _getRequireWildcardCache() { return cache; }; return cache; }
|
102 |
|
103 | function _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 |
|
107 |
|
108 |
|
109 |
|
110 |
|
111 |
|
112 |
|
113 |
|
114 |
|
115 |
|
116 |
|
117 | var 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 |
|
124 | var Amplify = {
|
125 | configure: configure
|
126 | };
|
127 | var _default = Amplify;
|
128 | exports["default"] = _default;
|
129 |
|
130 | _awsAmplify.I18n.putVocabularies(_AmplifyI18n["default"]); |
\ | No newline at end of file |