@aws-amplify/core 4.6.2-next.13 → 4.6.2-next.32

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (209) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/lib/.tsbuildinfo +3 -0
  3. package/lib/Amplify.js +3 -21
  4. package/lib/Amplify.js.map +1 -1
  5. package/lib/ClientDevice/index.js +0 -4
  6. package/lib/ClientDevice/index.js.map +1 -1
  7. package/lib/ClientDevice/reactnative.js +0 -4
  8. package/lib/ClientDevice/reactnative.js.map +1 -1
  9. package/lib/Credentials.js +31 -81
  10. package/lib/Credentials.js.map +1 -1
  11. package/lib/Hub.js +39 -45
  12. package/lib/Hub.js.map +1 -1
  13. package/lib/I18n/index.js +0 -4
  14. package/lib/I18n/index.js.map +1 -1
  15. package/lib/JS.js +2 -27
  16. package/lib/JS.js.map +1 -1
  17. package/lib/Logger/ConsoleLogger.js +8 -38
  18. package/lib/Logger/ConsoleLogger.js.map +1 -1
  19. package/lib/Logger/index.js +2 -4
  20. package/lib/Logger/index.js.map +1 -1
  21. package/lib/OAuthHelper/FacebookOAuth.js +3 -42
  22. package/lib/OAuthHelper/FacebookOAuth.js.map +1 -1
  23. package/lib/OAuthHelper/GoogleOAuth.js +3 -42
  24. package/lib/OAuthHelper/GoogleOAuth.js.map +1 -1
  25. package/lib/Platform/index.js +0 -4
  26. package/lib/Platform/index.js.map +1 -1
  27. package/lib/Platform/version.js +1 -1
  28. package/lib/Platform/version.js.map +1 -1
  29. package/lib/Providers/AWSCloudWatchProvider.js +30 -85
  30. package/lib/Providers/AWSCloudWatchProvider.js.map +1 -1
  31. package/lib/Providers/index.js +2 -4
  32. package/lib/Providers/index.js.map +1 -1
  33. package/lib/RNComponents/reactnative.js +2 -4
  34. package/lib/RNComponents/reactnative.js.map +1 -1
  35. package/lib/ServiceWorker/ServiceWorker.js +0 -4
  36. package/lib/ServiceWorker/ServiceWorker.js.map +1 -1
  37. package/lib/Signer.js +6 -31
  38. package/lib/Signer.js.map +1 -1
  39. package/lib/StorageHelper/index.js +0 -4
  40. package/lib/StorageHelper/index.js.map +1 -1
  41. package/lib/StorageHelper/reactnative.js +2 -8
  42. package/lib/StorageHelper/reactnative.js.map +1 -1
  43. package/lib/UniversalStorage/index.js +2 -4
  44. package/lib/UniversalStorage/index.js.map +1 -1
  45. package/lib/Util/BackgroundProcessManager.js +385 -0
  46. package/lib/Util/BackgroundProcessManager.js.map +1 -0
  47. package/lib/Util/DateUtils.js +2 -17
  48. package/lib/Util/DateUtils.js.map +1 -1
  49. package/lib/Util/Reachability.js +3 -16
  50. package/lib/Util/Reachability.js.map +1 -1
  51. package/lib/Util/Reachability.native.js +2 -4
  52. package/lib/Util/Reachability.native.js.map +1 -1
  53. package/lib/Util/Retry.js +80 -106
  54. package/lib/Util/Retry.js.map +1 -1
  55. package/lib/Util/index.js +6 -7
  56. package/lib/Util/index.js.map +1 -1
  57. package/lib/index.js +12 -13
  58. package/lib/index.js.map +1 -1
  59. package/lib/{Parser.js → parseAWSExports.js} +4 -28
  60. package/lib/parseAWSExports.js.map +1 -0
  61. package/lib-esm/.tsbuildinfo +3 -0
  62. package/lib-esm/Amplify.d.ts +1 -4
  63. package/lib-esm/Amplify.js +2 -20
  64. package/lib-esm/Amplify.js.map +1 -1
  65. package/lib-esm/ClientDevice/index.d.ts +0 -4
  66. package/lib-esm/ClientDevice/index.js +0 -4
  67. package/lib-esm/ClientDevice/index.js.map +1 -1
  68. package/lib-esm/ClientDevice/reactnative.d.ts +0 -7
  69. package/lib-esm/ClientDevice/reactnative.js +0 -4
  70. package/lib-esm/ClientDevice/reactnative.js.map +1 -1
  71. package/lib-esm/Credentials.d.ts +1 -5
  72. package/lib-esm/Credentials.js +2 -52
  73. package/lib-esm/Credentials.js.map +1 -1
  74. package/lib-esm/Hub.d.ts +28 -4
  75. package/lib-esm/Hub.js +34 -40
  76. package/lib-esm/Hub.js.map +1 -1
  77. package/lib-esm/I18n/index.d.ts +0 -4
  78. package/lib-esm/I18n/index.js +0 -4
  79. package/lib-esm/I18n/index.js.map +1 -1
  80. package/lib-esm/JS.d.ts +0 -24
  81. package/lib-esm/JS.js +2 -27
  82. package/lib-esm/JS.js.map +1 -1
  83. package/lib-esm/Logger/ConsoleLogger.js +1 -31
  84. package/lib-esm/Logger/ConsoleLogger.js.map +1 -1
  85. package/lib-esm/Logger/logger-interface.d.ts +0 -4
  86. package/lib-esm/OAuthHelper/FacebookOAuth.d.ts +0 -4
  87. package/lib-esm/OAuthHelper/FacebookOAuth.js +1 -40
  88. package/lib-esm/OAuthHelper/FacebookOAuth.js.map +1 -1
  89. package/lib-esm/OAuthHelper/GoogleOAuth.d.ts +0 -4
  90. package/lib-esm/OAuthHelper/GoogleOAuth.js +1 -40
  91. package/lib-esm/OAuthHelper/GoogleOAuth.js.map +1 -1
  92. package/lib-esm/Platform/index.d.ts +0 -4
  93. package/lib-esm/Platform/index.js +0 -4
  94. package/lib-esm/Platform/index.js.map +1 -1
  95. package/lib-esm/Platform/version.d.ts +1 -1
  96. package/lib-esm/Platform/version.js +1 -1
  97. package/lib-esm/Platform/version.js.map +1 -1
  98. package/lib-esm/Providers/AWSCloudWatchProvider.js +3 -58
  99. package/lib-esm/Providers/AWSCloudWatchProvider.js.map +1 -1
  100. package/lib-esm/ServiceWorker/ServiceWorker.d.ts +0 -4
  101. package/lib-esm/ServiceWorker/ServiceWorker.js +0 -4
  102. package/lib-esm/ServiceWorker/ServiceWorker.js.map +1 -1
  103. package/lib-esm/Signer.d.ts +0 -4
  104. package/lib-esm/Signer.js +1 -26
  105. package/lib-esm/Signer.js.map +1 -1
  106. package/lib-esm/StorageHelper/index.d.ts +0 -4
  107. package/lib-esm/StorageHelper/index.js +0 -4
  108. package/lib-esm/StorageHelper/index.js.map +1 -1
  109. package/lib-esm/StorageHelper/reactnative.d.ts +0 -4
  110. package/lib-esm/StorageHelper/reactnative.js +0 -4
  111. package/lib-esm/StorageHelper/reactnative.js.map +1 -1
  112. package/lib-esm/Util/BackgroundProcessManager.d.ts +204 -0
  113. package/lib-esm/Util/BackgroundProcessManager.js +383 -0
  114. package/lib-esm/Util/BackgroundProcessManager.js.map +1 -0
  115. package/lib-esm/Util/DateUtils.js +1 -16
  116. package/lib-esm/Util/DateUtils.js.map +1 -1
  117. package/lib-esm/Util/Reachability.js +1 -11
  118. package/lib-esm/Util/Reachability.js.map +1 -1
  119. package/lib-esm/Util/Retry.d.ts +2 -2
  120. package/lib-esm/Util/Retry.js +77 -103
  121. package/lib-esm/Util/Retry.js.map +1 -1
  122. package/lib-esm/Util/index.d.ts +1 -0
  123. package/lib-esm/Util/index.js +1 -0
  124. package/lib-esm/Util/index.js.map +1 -1
  125. package/lib-esm/index.d.ts +2 -2
  126. package/lib-esm/index.js +2 -2
  127. package/lib-esm/index.js.map +1 -1
  128. package/lib-esm/parseAWSExports.d.ts +2 -0
  129. package/lib-esm/{Parser.js → parseAWSExports.js} +3 -27
  130. package/lib-esm/parseAWSExports.js.map +1 -0
  131. package/lib-esm/types/types.d.ts +3 -0
  132. package/package.json +10 -3
  133. package/src/Amplify.ts +1 -5
  134. package/src/ClientDevice/index.ts +0 -5
  135. package/src/ClientDevice/reactnative.ts +0 -5
  136. package/src/Credentials.ts +13 -19
  137. package/src/Hub.ts +38 -11
  138. package/src/I18n/index.ts +0 -5
  139. package/src/JS.ts +4 -25
  140. package/src/Logger/logger-interface.ts +0 -5
  141. package/src/OAuthHelper/FacebookOAuth.ts +0 -5
  142. package/src/OAuthHelper/GoogleOAuth.ts +0 -5
  143. package/src/Platform/index.ts +0 -5
  144. package/src/Platform/version.ts +1 -1
  145. package/src/Providers/AWSCloudWatchProvider.ts +2 -2
  146. package/src/ServiceWorker/ServiceWorker.ts +1 -6
  147. package/src/Signer.ts +0 -5
  148. package/src/StorageHelper/index.ts +0 -5
  149. package/src/StorageHelper/reactnative.ts +0 -5
  150. package/src/Util/BackgroundProcessManager.ts +449 -0
  151. package/src/Util/Retry.ts +66 -31
  152. package/src/Util/index.ts +1 -0
  153. package/src/index.ts +2 -2
  154. package/src/{Parser.ts → parseAWSExports.ts} +1 -13
  155. package/src/types/types.ts +3 -0
  156. package/build.js +0 -5
  157. package/dist/aws-amplify-core.js +0 -43156
  158. package/dist/aws-amplify-core.js.map +0 -1
  159. package/dist/aws-amplify-core.min.js +0 -32
  160. package/dist/aws-amplify-core.min.js.map +0 -1
  161. package/index.js +0 -7
  162. package/lib/Amplify.d.ts +0 -31
  163. package/lib/ClientDevice/android.d.ts +0 -5
  164. package/lib/ClientDevice/browser.d.ts +0 -25
  165. package/lib/ClientDevice/index.d.ts +0 -27
  166. package/lib/ClientDevice/ios.d.ts +0 -7
  167. package/lib/ClientDevice/reactnative.d.ts +0 -14
  168. package/lib/Credentials.d.ts +0 -51
  169. package/lib/Errors.d.ts +0 -2
  170. package/lib/Hub.d.ts +0 -31
  171. package/lib/I18n/I18n.d.ts +0 -59
  172. package/lib/I18n/index.d.ts +0 -53
  173. package/lib/I18n/types.d.ts +0 -3
  174. package/lib/JS.d.ts +0 -56
  175. package/lib/Logger/ConsoleLogger.d.ts +0 -80
  176. package/lib/Logger/index.d.ts +0 -1
  177. package/lib/Logger/logger-interface.d.ts +0 -12
  178. package/lib/OAuthHelper/FacebookOAuth.d.ts +0 -10
  179. package/lib/OAuthHelper/GoogleOAuth.d.ts +0 -10
  180. package/lib/OAuthHelper/index.d.ts +0 -4
  181. package/lib/Parser.d.ts +0 -12
  182. package/lib/Parser.js.map +0 -1
  183. package/lib/Platform/index.d.ts +0 -11
  184. package/lib/Platform/version.d.ts +0 -1
  185. package/lib/Providers/AWSCloudWatchProvider.d.ts +0 -34
  186. package/lib/Providers/index.d.ts +0 -1
  187. package/lib/RNComponents/index.d.ts +0 -5
  188. package/lib/RNComponents/reactnative.d.ts +0 -3
  189. package/lib/ServiceWorker/ServiceWorker.d.ts +0 -72
  190. package/lib/ServiceWorker/index.d.ts +0 -13
  191. package/lib/Signer.d.ts +0 -45
  192. package/lib/StorageHelper/index.d.ts +0 -45
  193. package/lib/StorageHelper/reactnative.d.ts +0 -17
  194. package/lib/UniversalStorage/index.d.ts +0 -23
  195. package/lib/Util/Constants.d.ts +0 -8
  196. package/lib/Util/DateUtils.d.ts +0 -7
  197. package/lib/Util/Mutex.d.ts +0 -45
  198. package/lib/Util/Reachability.d.ts +0 -13
  199. package/lib/Util/Reachability.native.d.ts +0 -11
  200. package/lib/Util/Retry.d.ts +0 -21
  201. package/lib/Util/StringUtils.d.ts +0 -2
  202. package/lib/Util/index.d.ts +0 -6
  203. package/lib/constants.d.ts +0 -6
  204. package/lib/index.d.ts +0 -30
  205. package/lib/types/index.d.ts +0 -1
  206. package/lib/types/types.d.ts +0 -43
  207. package/lib-esm/Parser.d.ts +0 -12
  208. package/lib-esm/Parser.js.map +0 -1
  209. package/webpack.config.dev.js +0 -6
@@ -1,13 +0,0 @@
1
- /**
2
- * Copyright 2018 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
13
- export { ServiceWorkerClass as ServiceWorker } from './ServiceWorker';
package/lib/Signer.d.ts DELETED
@@ -1,45 +0,0 @@
1
- export declare class Signer {
2
- /**
3
- * Sign a HTTP request, add 'Authorization' header to request param
4
- * @method sign
5
- * @memberof Signer
6
- * @static
7
- *
8
- * @param {object} request - HTTP request object
9
- <pre>
10
- request: {
11
- method: GET | POST | PUT ...
12
- url: ...,
13
- headers: {
14
- header1: ...
15
- },
16
- data: data
17
- }
18
- </pre>
19
- * @param {object} access_info - AWS access credential info
20
- <pre>
21
- access_info: {
22
- access_key: ...,
23
- secret_key: ...,
24
- session_token: ...
25
- }
26
- </pre>
27
- * @param {object} [service_info] - AWS service type and region, optional,
28
- * if not provided then parse out from url
29
- <pre>
30
- service_info: {
31
- service: ...,
32
- region: ...
33
- }
34
- </pre>
35
- *
36
- * @returns {object} Signed HTTP request
37
- */
38
- static sign(request: any, access_info: any, service_info?: any): any;
39
- static signUrl(urlToSign: string, accessInfo: any, serviceInfo?: any, expiration?: number): string;
40
- static signUrl(request: any, accessInfo: any, serviceInfo?: any, expiration?: number): string;
41
- }
42
- /**
43
- * @deprecated use per-function import
44
- */
45
- export default Signer;
@@ -1,45 +0,0 @@
1
- /** @class */
2
- export declare class MemoryStorage {
3
- /**
4
- * This is used to set a specific item in storage
5
- * @param {string} key - the key for the item
6
- * @param {object} value - the value
7
- * @returns {string} value that was set
8
- */
9
- static setItem(key: string, value: any): any;
10
- /**
11
- * This is used to get a specific key from storage
12
- * @param {string} key - the key for the item
13
- * This is used to clear the storage
14
- * @returns {string} the data item
15
- */
16
- static getItem(key: string): any;
17
- /**
18
- * This is used to remove an item from storage
19
- * @param {string} key - the key being set
20
- * @returns {string} value - value that was deleted
21
- */
22
- static removeItem(key: string): boolean;
23
- /**
24
- * This is used to clear the storage
25
- * @returns {string} nothing
26
- */
27
- static clear(): {};
28
- }
29
- export declare class StorageHelper {
30
- private storageWindow;
31
- /**
32
- * This is used to get a storage object
33
- * @returns {object} the storage
34
- */
35
- constructor();
36
- /**
37
- * This is used to return the storage
38
- * @returns {object} the storage
39
- */
40
- getStorage(): any;
41
- }
42
- /**
43
- * @deprecated use named import
44
- */
45
- export default StorageHelper;
@@ -1,17 +0,0 @@
1
- export declare class StorageHelper {
2
- private storageWindow;
3
- /**
4
- * This is used to get a storage object
5
- * @returns {object} the storage
6
- */
7
- constructor();
8
- /**
9
- * This is used to return the storage
10
- * @returns {object} the storage
11
- */
12
- getStorage(): any;
13
- }
14
- /**
15
- * @deprecated use named import
16
- */
17
- export default StorageHelper;
@@ -1,23 +0,0 @@
1
- import Cookies from 'universal-cookie';
2
- declare type Store = Record<string, string>;
3
- declare type Context = {
4
- req?: any;
5
- };
6
- export declare class UniversalStorage implements Storage {
7
- cookies: Cookies;
8
- store: Store;
9
- constructor(context?: Context);
10
- get length(): number;
11
- clear(): void;
12
- getItem(key: keyof Store): string;
13
- protected getLocalItem(key: keyof Store): string;
14
- protected getUniversalItem(key: keyof Store): any;
15
- key(index: number): string;
16
- removeItem(key: string): void;
17
- protected removeLocalItem(key: keyof Store): void;
18
- protected removeUniversalItem(key: keyof Store): void;
19
- setItem(key: keyof Store, value: string): void;
20
- protected setLocalItem(key: keyof Store, value: string): void;
21
- protected setUniversalItem(key: keyof Store, value: string): void;
22
- }
23
- export {};
@@ -1,8 +0,0 @@
1
- declare const AWS_CLOUDWATCH_BASE_BUFFER_SIZE = 26;
2
- declare const AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = 1048576;
3
- declare const AWS_CLOUDWATCH_MAX_EVENT_SIZE = 256000;
4
- declare const AWS_CLOUDWATCH_CATEGORY = "Logging";
5
- declare const AWS_CLOUDWATCH_PROVIDER_NAME = "AWSCloudWatch";
6
- declare const NO_CREDS_ERROR_STRING = "No credentials";
7
- declare const RETRY_ERROR_CODES: string[];
8
- export { AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES, };
@@ -1,7 +0,0 @@
1
- /**
2
- * Date & time utility functions to abstract the `aws-sdk` away from users.
3
- * (v2 => v3 modularization is a breaking change)
4
- *
5
- * @see https://github.com/aws/aws-sdk-js/blob/6edf586dcc1de7fe8fbfbbd9a0d2b1847921e6e1/lib/util.js#L262
6
- */
7
- export declare const DateUtils: any;
@@ -1,45 +0,0 @@
1
- /*!
2
- * The MIT License (MIT)
3
- *
4
- * Copyright (c) 2016 Christian Speckner <cnspeckn@googlemail.com>
5
- *
6
- * Permission is hereby granted, free of charge, to any person obtaining a copy
7
- * of this software and associated documentation files (the "Software"), to deal
8
- * in the Software without restriction, including without limitation the rights
9
- * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
10
- * copies of the Software, and to permit persons to whom the Software is
11
- * furnished to do so, subject to the following conditions:
12
- *
13
- * The above copyright notice and this permission notice shall be included in
14
- * all copies or substantial portions of the Software.
15
- *
16
- * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
17
- * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
18
- * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
19
- * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
20
- * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
21
- * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
22
- * THE SOFTWARE.
23
- */
24
- interface MutexInterface {
25
- acquire(): Promise<MutexInterface.Releaser>;
26
- runExclusive<T>(callback: MutexInterface.Worker<T>): Promise<T>;
27
- isLocked(): boolean;
28
- }
29
- declare namespace MutexInterface {
30
- interface Releaser {
31
- (): void;
32
- }
33
- interface Worker<T> {
34
- (): Promise<T> | T;
35
- }
36
- }
37
- declare class Mutex implements MutexInterface {
38
- isLocked(): boolean;
39
- acquire(): Promise<MutexInterface.Releaser>;
40
- runExclusive<T>(callback: MutexInterface.Worker<T>): Promise<T>;
41
- private _dispatchNext;
42
- private _queue;
43
- private _pending;
44
- }
45
- export default Mutex;
@@ -1,13 +0,0 @@
1
- import Observable from 'zen-observable-ts';
2
- declare type NetworkStatus = {
3
- online: boolean;
4
- };
5
- export default class ReachabilityNavigator implements Reachability {
6
- private static _observers;
7
- networkMonitor(netInfo?: any): Observable<NetworkStatus>;
8
- private static _observerOverride;
9
- }
10
- interface Reachability {
11
- networkMonitor(netInfo?: any): Observable<NetworkStatus>;
12
- }
13
- export {};
@@ -1,11 +0,0 @@
1
- import Observable from 'zen-observable-ts';
2
- declare type NetworkStatus = {
3
- online: boolean;
4
- };
5
- export default class ReachabilityNavigator implements Reachability {
6
- networkMonitor(netInfo?: any): Observable<NetworkStatus>;
7
- }
8
- interface Reachability {
9
- networkMonitor(netInfo?: any): Observable<NetworkStatus>;
10
- }
11
- export {};
@@ -1,21 +0,0 @@
1
- import { DelayFunction } from '../types';
2
- export declare class NonRetryableError extends Error {
3
- readonly nonRetryable = true;
4
- constructor(message: string);
5
- }
6
- export declare const isNonRetryableError: (obj: any) => obj is NonRetryableError;
7
- /**
8
- * @private
9
- * Internal use of Amplify only
10
- */
11
- export declare function retry(functionToRetry: Function, args: any[], delayFn: DelayFunction, attempt?: number): any;
12
- /**
13
- * @private
14
- * Internal use of Amplify only
15
- */
16
- export declare function jitteredBackoff(maxDelayMs?: number): DelayFunction;
17
- /**
18
- * @private
19
- * Internal use of Amplify only
20
- */
21
- export declare const jitteredExponentialRetry: (functionToRetry: Function, args: any[], maxDelayMs?: number) => any;
@@ -1,2 +0,0 @@
1
- export declare function urlSafeEncode(str: string): string;
2
- export declare function urlSafeDecode(hex: string): string;
@@ -1,6 +0,0 @@
1
- export * from './Retry';
2
- export { default as Mutex } from './Mutex';
3
- export { default as Reachability } from './Reachability';
4
- export * from './DateUtils';
5
- export * from './StringUtils';
6
- export * from './Constants';
@@ -1,6 +0,0 @@
1
- /**
2
- * @deprecated Unused, all usecases have migrated to INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER
3
- */
4
- export declare const INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER: string | symbol;
5
- export declare const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER: string | symbol;
6
- export declare const USER_AGENT_HEADER = "x-amz-user-agent";
package/lib/index.d.ts DELETED
@@ -1,30 +0,0 @@
1
- import { Amplify } from './Amplify';
2
- export { AmplifyClass } from './Amplify';
3
- export { ClientDevice } from './ClientDevice';
4
- export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
5
- export * from './Errors';
6
- export { Hub, HubCapsule, HubCallback, HubPayload } from './Hub';
7
- export { I18n } from './I18n';
8
- export * from './JS';
9
- export { Signer } from './Signer';
10
- export * from './Parser';
11
- export * from './Providers';
12
- export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
13
- export * from './RNComponents';
14
- export { Credentials, CredentialsClass } from './Credentials';
15
- export { ServiceWorker } from './ServiceWorker';
16
- export { ICredentials } from './types';
17
- export { StorageHelper, MemoryStorage } from './StorageHelper';
18
- export { UniversalStorage } from './UniversalStorage';
19
- export { Platform, getAmplifyUserAgent } from './Platform';
20
- export * from './constants';
21
- export declare const Constants: {
22
- userAgent: string;
23
- };
24
- export * from './constants';
25
- export * from './Util';
26
- export { Amplify };
27
- /**
28
- * @deprecated use named import
29
- */
30
- export default Amplify;
@@ -1 +0,0 @@
1
- export * from './types';
@@ -1,43 +0,0 @@
1
- import { InputLogEvent, LogGroup } from '@aws-sdk/client-cloudwatch-logs';
2
- import { Credentials } from '@aws-sdk/types';
3
- export interface AmplifyConfig {
4
- Analytics?: object;
5
- Auth?: object;
6
- API?: object;
7
- Logging?: object;
8
- Storage?: object;
9
- Cache?: object;
10
- Geo?: object;
11
- ssr?: boolean;
12
- }
13
- export interface ICredentials {
14
- accessKeyId: string;
15
- sessionToken: string;
16
- secretAccessKey: string;
17
- identityId: string;
18
- authenticated: boolean;
19
- expiration?: Date;
20
- }
21
- /**
22
- * @private
23
- * Internal use of Amplify only
24
- */
25
- export declare type DelayFunction = (attempt: number, args?: any[], error?: Error) => number | false;
26
- export interface LoggingProvider {
27
- getProviderName(): string;
28
- getCategoryName(): string;
29
- configure(config?: object): object;
30
- pushLogs(logs: InputLogEvent[]): void;
31
- }
32
- export interface AWSCloudWatchProviderOptions {
33
- logGroupName?: string;
34
- logStreamName?: string;
35
- region?: string;
36
- credentials?: Credentials;
37
- endpoint?: string;
38
- }
39
- export interface CloudWatchDataTracker {
40
- eventUploadInProgress: boolean;
41
- logEvents: InputLogEvent[];
42
- verifiedLogGroup?: LogGroup;
43
- }
@@ -1,12 +0,0 @@
1
- import { AmplifyConfig } from './types';
2
- export declare const parseMobileHubConfig: (config: any) => AmplifyConfig;
3
- /**
4
- * @deprecated use per-function export
5
- */
6
- export declare class Parser {
7
- static parseMobilehubConfig: (config: any) => AmplifyConfig;
8
- }
9
- /**
10
- * @deprecated use per-function export
11
- */
12
- export default Parser;
@@ -1 +0,0 @@
1
- {"version":3,"file":"Parser.js","sourceRoot":"","sources":["../src/Parser.ts"],"names":[],"mappings":"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"}
@@ -1,6 +0,0 @@
1
- var config = require('./webpack.config.js');
2
-
3
- var entry = {
4
- 'aws-amplify-core': './lib-esm/index.js',
5
- };
6
- module.exports = Object.assign(config, { entry, mode: 'development' });