@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.
- package/CHANGELOG.md +38 -0
- package/lib/.tsbuildinfo +3 -0
- package/lib/Amplify.js +3 -21
- package/lib/Amplify.js.map +1 -1
- package/lib/ClientDevice/index.js +0 -4
- package/lib/ClientDevice/index.js.map +1 -1
- package/lib/ClientDevice/reactnative.js +0 -4
- package/lib/ClientDevice/reactnative.js.map +1 -1
- package/lib/Credentials.js +31 -81
- package/lib/Credentials.js.map +1 -1
- package/lib/Hub.js +39 -45
- package/lib/Hub.js.map +1 -1
- package/lib/I18n/index.js +0 -4
- package/lib/I18n/index.js.map +1 -1
- package/lib/JS.js +2 -27
- package/lib/JS.js.map +1 -1
- package/lib/Logger/ConsoleLogger.js +8 -38
- package/lib/Logger/ConsoleLogger.js.map +1 -1
- package/lib/Logger/index.js +2 -4
- package/lib/Logger/index.js.map +1 -1
- package/lib/OAuthHelper/FacebookOAuth.js +3 -42
- package/lib/OAuthHelper/FacebookOAuth.js.map +1 -1
- package/lib/OAuthHelper/GoogleOAuth.js +3 -42
- package/lib/OAuthHelper/GoogleOAuth.js.map +1 -1
- package/lib/Platform/index.js +0 -4
- package/lib/Platform/index.js.map +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/Platform/version.js.map +1 -1
- package/lib/Providers/AWSCloudWatchProvider.js +30 -85
- package/lib/Providers/AWSCloudWatchProvider.js.map +1 -1
- package/lib/Providers/index.js +2 -4
- package/lib/Providers/index.js.map +1 -1
- package/lib/RNComponents/reactnative.js +2 -4
- package/lib/RNComponents/reactnative.js.map +1 -1
- package/lib/ServiceWorker/ServiceWorker.js +0 -4
- package/lib/ServiceWorker/ServiceWorker.js.map +1 -1
- package/lib/Signer.js +6 -31
- package/lib/Signer.js.map +1 -1
- package/lib/StorageHelper/index.js +0 -4
- package/lib/StorageHelper/index.js.map +1 -1
- package/lib/StorageHelper/reactnative.js +2 -8
- package/lib/StorageHelper/reactnative.js.map +1 -1
- package/lib/UniversalStorage/index.js +2 -4
- package/lib/UniversalStorage/index.js.map +1 -1
- package/lib/Util/BackgroundProcessManager.js +385 -0
- package/lib/Util/BackgroundProcessManager.js.map +1 -0
- package/lib/Util/DateUtils.js +2 -17
- package/lib/Util/DateUtils.js.map +1 -1
- package/lib/Util/Reachability.js +3 -16
- package/lib/Util/Reachability.js.map +1 -1
- package/lib/Util/Reachability.native.js +2 -4
- package/lib/Util/Reachability.native.js.map +1 -1
- package/lib/Util/Retry.js +80 -106
- package/lib/Util/Retry.js.map +1 -1
- package/lib/Util/index.js +6 -7
- package/lib/Util/index.js.map +1 -1
- package/lib/index.js +12 -13
- package/lib/index.js.map +1 -1
- package/lib/{Parser.js → parseAWSExports.js} +4 -28
- package/lib/parseAWSExports.js.map +1 -0
- package/lib-esm/.tsbuildinfo +3 -0
- package/lib-esm/Amplify.d.ts +1 -4
- package/lib-esm/Amplify.js +2 -20
- package/lib-esm/Amplify.js.map +1 -1
- package/lib-esm/ClientDevice/index.d.ts +0 -4
- package/lib-esm/ClientDevice/index.js +0 -4
- package/lib-esm/ClientDevice/index.js.map +1 -1
- package/lib-esm/ClientDevice/reactnative.d.ts +0 -7
- package/lib-esm/ClientDevice/reactnative.js +0 -4
- package/lib-esm/ClientDevice/reactnative.js.map +1 -1
- package/lib-esm/Credentials.d.ts +1 -5
- package/lib-esm/Credentials.js +2 -52
- package/lib-esm/Credentials.js.map +1 -1
- package/lib-esm/Hub.d.ts +28 -4
- package/lib-esm/Hub.js +34 -40
- package/lib-esm/Hub.js.map +1 -1
- package/lib-esm/I18n/index.d.ts +0 -4
- package/lib-esm/I18n/index.js +0 -4
- package/lib-esm/I18n/index.js.map +1 -1
- package/lib-esm/JS.d.ts +0 -24
- package/lib-esm/JS.js +2 -27
- package/lib-esm/JS.js.map +1 -1
- package/lib-esm/Logger/ConsoleLogger.js +1 -31
- package/lib-esm/Logger/ConsoleLogger.js.map +1 -1
- package/lib-esm/Logger/logger-interface.d.ts +0 -4
- package/lib-esm/OAuthHelper/FacebookOAuth.d.ts +0 -4
- package/lib-esm/OAuthHelper/FacebookOAuth.js +1 -40
- package/lib-esm/OAuthHelper/FacebookOAuth.js.map +1 -1
- package/lib-esm/OAuthHelper/GoogleOAuth.d.ts +0 -4
- package/lib-esm/OAuthHelper/GoogleOAuth.js +1 -40
- package/lib-esm/OAuthHelper/GoogleOAuth.js.map +1 -1
- package/lib-esm/Platform/index.d.ts +0 -4
- package/lib-esm/Platform/index.js +0 -4
- package/lib-esm/Platform/index.js.map +1 -1
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/Platform/version.js.map +1 -1
- package/lib-esm/Providers/AWSCloudWatchProvider.js +3 -58
- package/lib-esm/Providers/AWSCloudWatchProvider.js.map +1 -1
- package/lib-esm/ServiceWorker/ServiceWorker.d.ts +0 -4
- package/lib-esm/ServiceWorker/ServiceWorker.js +0 -4
- package/lib-esm/ServiceWorker/ServiceWorker.js.map +1 -1
- package/lib-esm/Signer.d.ts +0 -4
- package/lib-esm/Signer.js +1 -26
- package/lib-esm/Signer.js.map +1 -1
- package/lib-esm/StorageHelper/index.d.ts +0 -4
- package/lib-esm/StorageHelper/index.js +0 -4
- package/lib-esm/StorageHelper/index.js.map +1 -1
- package/lib-esm/StorageHelper/reactnative.d.ts +0 -4
- package/lib-esm/StorageHelper/reactnative.js +0 -4
- package/lib-esm/StorageHelper/reactnative.js.map +1 -1
- package/lib-esm/Util/BackgroundProcessManager.d.ts +204 -0
- package/lib-esm/Util/BackgroundProcessManager.js +383 -0
- package/lib-esm/Util/BackgroundProcessManager.js.map +1 -0
- package/lib-esm/Util/DateUtils.js +1 -16
- package/lib-esm/Util/DateUtils.js.map +1 -1
- package/lib-esm/Util/Reachability.js +1 -11
- package/lib-esm/Util/Reachability.js.map +1 -1
- package/lib-esm/Util/Retry.d.ts +2 -2
- package/lib-esm/Util/Retry.js +77 -103
- package/lib-esm/Util/Retry.js.map +1 -1
- package/lib-esm/Util/index.d.ts +1 -0
- package/lib-esm/Util/index.js +1 -0
- package/lib-esm/Util/index.js.map +1 -1
- package/lib-esm/index.d.ts +2 -2
- package/lib-esm/index.js +2 -2
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/parseAWSExports.d.ts +2 -0
- package/lib-esm/{Parser.js → parseAWSExports.js} +3 -27
- package/lib-esm/parseAWSExports.js.map +1 -0
- package/lib-esm/types/types.d.ts +3 -0
- package/package.json +10 -3
- package/src/Amplify.ts +1 -5
- package/src/ClientDevice/index.ts +0 -5
- package/src/ClientDevice/reactnative.ts +0 -5
- package/src/Credentials.ts +13 -19
- package/src/Hub.ts +38 -11
- package/src/I18n/index.ts +0 -5
- package/src/JS.ts +4 -25
- package/src/Logger/logger-interface.ts +0 -5
- package/src/OAuthHelper/FacebookOAuth.ts +0 -5
- package/src/OAuthHelper/GoogleOAuth.ts +0 -5
- package/src/Platform/index.ts +0 -5
- package/src/Platform/version.ts +1 -1
- package/src/Providers/AWSCloudWatchProvider.ts +2 -2
- package/src/ServiceWorker/ServiceWorker.ts +1 -6
- package/src/Signer.ts +0 -5
- package/src/StorageHelper/index.ts +0 -5
- package/src/StorageHelper/reactnative.ts +0 -5
- package/src/Util/BackgroundProcessManager.ts +449 -0
- package/src/Util/Retry.ts +66 -31
- package/src/Util/index.ts +1 -0
- package/src/index.ts +2 -2
- package/src/{Parser.ts → parseAWSExports.ts} +1 -13
- package/src/types/types.ts +3 -0
- package/build.js +0 -5
- package/dist/aws-amplify-core.js +0 -43156
- package/dist/aws-amplify-core.js.map +0 -1
- package/dist/aws-amplify-core.min.js +0 -32
- package/dist/aws-amplify-core.min.js.map +0 -1
- package/index.js +0 -7
- package/lib/Amplify.d.ts +0 -31
- package/lib/ClientDevice/android.d.ts +0 -5
- package/lib/ClientDevice/browser.d.ts +0 -25
- package/lib/ClientDevice/index.d.ts +0 -27
- package/lib/ClientDevice/ios.d.ts +0 -7
- package/lib/ClientDevice/reactnative.d.ts +0 -14
- package/lib/Credentials.d.ts +0 -51
- package/lib/Errors.d.ts +0 -2
- package/lib/Hub.d.ts +0 -31
- package/lib/I18n/I18n.d.ts +0 -59
- package/lib/I18n/index.d.ts +0 -53
- package/lib/I18n/types.d.ts +0 -3
- package/lib/JS.d.ts +0 -56
- package/lib/Logger/ConsoleLogger.d.ts +0 -80
- package/lib/Logger/index.d.ts +0 -1
- package/lib/Logger/logger-interface.d.ts +0 -12
- package/lib/OAuthHelper/FacebookOAuth.d.ts +0 -10
- package/lib/OAuthHelper/GoogleOAuth.d.ts +0 -10
- package/lib/OAuthHelper/index.d.ts +0 -4
- package/lib/Parser.d.ts +0 -12
- package/lib/Parser.js.map +0 -1
- package/lib/Platform/index.d.ts +0 -11
- package/lib/Platform/version.d.ts +0 -1
- package/lib/Providers/AWSCloudWatchProvider.d.ts +0 -34
- package/lib/Providers/index.d.ts +0 -1
- package/lib/RNComponents/index.d.ts +0 -5
- package/lib/RNComponents/reactnative.d.ts +0 -3
- package/lib/ServiceWorker/ServiceWorker.d.ts +0 -72
- package/lib/ServiceWorker/index.d.ts +0 -13
- package/lib/Signer.d.ts +0 -45
- package/lib/StorageHelper/index.d.ts +0 -45
- package/lib/StorageHelper/reactnative.d.ts +0 -17
- package/lib/UniversalStorage/index.d.ts +0 -23
- package/lib/Util/Constants.d.ts +0 -8
- package/lib/Util/DateUtils.d.ts +0 -7
- package/lib/Util/Mutex.d.ts +0 -45
- package/lib/Util/Reachability.d.ts +0 -13
- package/lib/Util/Reachability.native.d.ts +0 -11
- package/lib/Util/Retry.d.ts +0 -21
- package/lib/Util/StringUtils.d.ts +0 -2
- package/lib/Util/index.d.ts +0 -6
- package/lib/constants.d.ts +0 -6
- package/lib/index.d.ts +0 -30
- package/lib/types/index.d.ts +0 -1
- package/lib/types/types.d.ts +0 -43
- package/lib-esm/Parser.d.ts +0 -12
- package/lib-esm/Parser.js.map +0 -1
- 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 {};
|
package/lib/Util/Constants.d.ts
DELETED
|
@@ -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, };
|
package/lib/Util/DateUtils.d.ts
DELETED
|
@@ -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;
|
package/lib/Util/Mutex.d.ts
DELETED
|
@@ -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 {};
|
package/lib/Util/Retry.d.ts
DELETED
|
@@ -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;
|
package/lib/Util/index.d.ts
DELETED
package/lib/constants.d.ts
DELETED
|
@@ -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;
|
package/lib/types/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './types';
|
package/lib/types/types.d.ts
DELETED
|
@@ -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
|
-
}
|
package/lib-esm/Parser.d.ts
DELETED
|
@@ -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;
|
package/lib-esm/Parser.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"Parser.js","sourceRoot":"","sources":["../src/Parser.ts"],"names":[],"mappings":"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"}
|