@aws-amplify/core 5.8.18 → 5.8.19
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/lib/Amplify.d.ts +10 -0
- package/lib/Amplify.js +10 -0
- package/lib/ClientDevice/index.d.ts +5 -0
- package/lib/ClientDevice/index.js +5 -0
- package/lib/Credentials.d.ts +10 -0
- package/lib/Credentials.js +10 -0
- package/lib/Errors.d.ts +10 -0
- package/lib/Errors.js +10 -0
- package/lib/Hub.d.ts +20 -0
- package/lib/Hub.js +5 -0
- package/lib/I18n/index.d.ts +3 -0
- package/lib/I18n/index.js +3 -0
- package/lib/JS.d.ts +54 -0
- package/lib/JS.js +54 -0
- package/lib/Logger/ConsoleLogger.d.ts +3 -0
- package/lib/Logger/ConsoleLogger.js +3 -0
- package/lib/OAuthHelper/index.d.ts +10 -0
- package/lib/OAuthHelper/index.js +10 -0
- package/lib/Platform/index.d.ts +15 -0
- package/lib/Platform/index.js +15 -0
- package/lib/Platform/types.d.ts +70 -0
- package/lib/Platform/types.js +65 -0
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/Providers/AWSCloudWatchProvider.d.ts +5 -0
- package/lib/Providers/AWSCloudWatchProvider.js +5 -0
- package/lib/RNComponents/index.d.ts +15 -0
- package/lib/RNComponents/index.js +15 -0
- package/lib/ServiceWorker/ServiceWorker.d.ts +3 -0
- package/lib/ServiceWorker/ServiceWorker.js +3 -0
- package/lib/Signer.d.ts +5 -0
- package/lib/Signer.js +5 -0
- package/lib/StorageHelper/index.d.ts +11 -1
- package/lib/StorageHelper/index.js +11 -1
- package/lib/UniversalStorage/index.d.ts +5 -0
- package/lib/UniversalStorage/index.js +5 -0
- package/lib/Util/BackgroundProcessManager.d.ts +9 -0
- package/lib/Util/BackgroundProcessManager.js +9 -0
- package/lib/Util/Constants.d.ts +35 -0
- package/lib/Util/Constants.js +35 -0
- package/lib/Util/DateUtils.d.ts +5 -0
- package/lib/Util/DateUtils.js +5 -0
- package/lib/Util/Mutex.d.ts +5 -0
- package/lib/Util/Mutex.js +5 -0
- package/lib/Util/Reachability.d.ts +5 -0
- package/lib/Util/Reachability.js +5 -0
- package/lib/Util/Retry.d.ts +19 -0
- package/lib/Util/Retry.js +19 -0
- package/lib/Util/StringUtils.d.ts +10 -0
- package/lib/Util/StringUtils.js +10 -0
- package/lib/constants.d.ts +10 -0
- package/lib/constants.js +10 -0
- package/lib/index.d.ts +5 -0
- package/lib/index.js +5 -0
- package/lib/parseAWSExports.d.ts +5 -0
- package/lib/parseAWSExports.js +5 -0
- package/lib/tsconfig.tsbuildinfo +1 -1
- package/lib/types/types.d.ts +5 -0
- package/lib-esm/Amplify.d.ts +10 -0
- package/lib-esm/Amplify.js +10 -0
- package/lib-esm/ClientDevice/index.d.ts +5 -0
- package/lib-esm/ClientDevice/index.js +5 -0
- package/lib-esm/Credentials.d.ts +10 -0
- package/lib-esm/Credentials.js +10 -0
- package/lib-esm/Errors.d.ts +10 -0
- package/lib-esm/Errors.js +10 -0
- package/lib-esm/Hub.d.ts +20 -0
- package/lib-esm/Hub.js +5 -0
- package/lib-esm/I18n/index.d.ts +3 -0
- package/lib-esm/I18n/index.js +3 -0
- package/lib-esm/JS.d.ts +54 -0
- package/lib-esm/JS.js +54 -0
- package/lib-esm/Logger/ConsoleLogger.d.ts +3 -0
- package/lib-esm/Logger/ConsoleLogger.js +3 -0
- package/lib-esm/OAuthHelper/index.d.ts +10 -0
- package/lib-esm/OAuthHelper/index.js +10 -0
- package/lib-esm/Platform/index.d.ts +15 -0
- package/lib-esm/Platform/index.js +15 -0
- package/lib-esm/Platform/types.d.ts +70 -0
- package/lib-esm/Platform/types.js +65 -0
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/Providers/AWSCloudWatchProvider.d.ts +5 -0
- package/lib-esm/Providers/AWSCloudWatchProvider.js +5 -0
- package/lib-esm/RNComponents/index.d.ts +15 -0
- package/lib-esm/RNComponents/index.js +15 -0
- package/lib-esm/ServiceWorker/ServiceWorker.d.ts +3 -0
- package/lib-esm/ServiceWorker/ServiceWorker.js +3 -0
- package/lib-esm/Signer.d.ts +5 -0
- package/lib-esm/Signer.js +5 -0
- package/lib-esm/StorageHelper/index.d.ts +11 -1
- package/lib-esm/StorageHelper/index.js +11 -1
- package/lib-esm/UniversalStorage/index.d.ts +5 -0
- package/lib-esm/UniversalStorage/index.js +5 -0
- package/lib-esm/Util/BackgroundProcessManager.d.ts +9 -0
- package/lib-esm/Util/BackgroundProcessManager.js +9 -0
- package/lib-esm/Util/Constants.d.ts +35 -0
- package/lib-esm/Util/Constants.js +35 -0
- package/lib-esm/Util/DateUtils.d.ts +5 -0
- package/lib-esm/Util/DateUtils.js +5 -0
- package/lib-esm/Util/Mutex.d.ts +5 -0
- package/lib-esm/Util/Mutex.js +5 -0
- package/lib-esm/Util/Reachability.d.ts +5 -0
- package/lib-esm/Util/Reachability.js +5 -0
- package/lib-esm/Util/Retry.d.ts +19 -0
- package/lib-esm/Util/Retry.js +19 -0
- package/lib-esm/Util/StringUtils.d.ts +10 -0
- package/lib-esm/Util/StringUtils.js +10 -0
- package/lib-esm/constants.d.ts +10 -0
- package/lib-esm/constants.js +10 -0
- package/lib-esm/index.d.ts +5 -0
- package/lib-esm/index.js +5 -0
- package/lib-esm/parseAWSExports.d.ts +5 -0
- package/lib-esm/parseAWSExports.js +5 -0
- package/lib-esm/tsconfig.tsbuildinfo +1 -1
- package/lib-esm/types/types.d.ts +5 -0
- package/package.json +2 -2
- package/src/Amplify.ts +10 -0
- package/src/ClientDevice/index.ts +5 -0
- package/src/Credentials.ts +10 -0
- package/src/Errors.ts +10 -0
- package/src/Hub.ts +20 -0
- package/src/I18n/index.ts +3 -0
- package/src/JS.ts +54 -0
- package/src/Logger/ConsoleLogger.ts +3 -0
- package/src/OAuthHelper/index.ts +10 -0
- package/src/Platform/index.ts +15 -0
- package/src/Platform/types.ts +70 -0
- package/src/Platform/version.ts +1 -1
- package/src/Providers/AWSCloudWatchProvider.ts +5 -0
- package/src/RNComponents/index.ts +15 -0
- package/src/ServiceWorker/ServiceWorker.ts +3 -0
- package/src/Signer.ts +5 -0
- package/src/StorageHelper/index.ts +11 -1
- package/src/UniversalStorage/index.ts +5 -0
- package/src/Util/BackgroundProcessManager.ts +9 -0
- package/src/Util/Constants.ts +35 -0
- package/src/Util/DateUtils.ts +5 -0
- package/src/Util/Mutex.ts +5 -0
- package/src/Util/Reachability.ts +5 -0
- package/src/Util/Retry.ts +19 -0
- package/src/Util/StringUtils.ts +10 -0
- package/src/constants.ts +10 -0
- package/src/index.ts +5 -0
- package/src/parseAWSExports.ts +5 -0
- package/src/types/types.ts +5 -0
package/lib/types/types.d.ts
CHANGED
|
@@ -13,6 +13,11 @@ export interface AmplifyConfig {
|
|
|
13
13
|
};
|
|
14
14
|
ssr?: boolean;
|
|
15
15
|
}
|
|
16
|
+
/**
|
|
17
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
18
|
+
* See the migration guide:
|
|
19
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
20
|
+
*/
|
|
16
21
|
export interface ICredentials {
|
|
17
22
|
accessKeyId: string;
|
|
18
23
|
sessionToken: string;
|
package/lib-esm/Amplify.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ConsoleLogger as LoggerClass } from './Logger';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
4
|
+
* See the migration guide:
|
|
5
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
6
|
+
*/
|
|
2
7
|
export declare class AmplifyClass {
|
|
3
8
|
private _components;
|
|
4
9
|
private _config;
|
|
@@ -25,4 +30,9 @@ export declare class AmplifyClass {
|
|
|
25
30
|
configure(config?: any): {};
|
|
26
31
|
addPluggable(pluggable: any): void;
|
|
27
32
|
}
|
|
33
|
+
/**
|
|
34
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
35
|
+
* See the migration guide:
|
|
36
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
37
|
+
*/
|
|
28
38
|
export declare const Amplify: AmplifyClass;
|
package/lib-esm/Amplify.js
CHANGED
|
@@ -18,6 +18,11 @@ var __read = (this && this.__read) || function (o, n) {
|
|
|
18
18
|
// SPDX-License-Identifier: Apache-2.0
|
|
19
19
|
import { ConsoleLogger as LoggerClass } from './Logger';
|
|
20
20
|
var logger = new LoggerClass('Amplify');
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
23
|
+
* See the migration guide:
|
|
24
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
25
|
+
*/
|
|
21
26
|
var AmplifyClass = /** @class */ (function () {
|
|
22
27
|
function AmplifyClass() {
|
|
23
28
|
// Everything that is `register`ed is tracked here
|
|
@@ -114,4 +119,9 @@ var AmplifyClass = /** @class */ (function () {
|
|
|
114
119
|
return AmplifyClass;
|
|
115
120
|
}());
|
|
116
121
|
export { AmplifyClass };
|
|
122
|
+
/**
|
|
123
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
124
|
+
* See the migration guide:
|
|
125
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
126
|
+
*/
|
|
117
127
|
export var Amplify = new AmplifyClass();
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
3
|
+
* See the migration guide:
|
|
4
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
5
|
+
*/
|
|
1
6
|
export declare class ClientDevice {
|
|
2
7
|
static clientInfo(): {
|
|
3
8
|
platform?: undefined;
|
|
@@ -1,6 +1,11 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { clientInfo, dimension } from './browser';
|
|
4
|
+
/**
|
|
5
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
6
|
+
* See the migration guide:
|
|
7
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
8
|
+
*/
|
|
4
9
|
var ClientDevice = /** @class */ (function () {
|
|
5
10
|
function ClientDevice() {
|
|
6
11
|
}
|
package/lib-esm/Credentials.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import { ICredentials } from './types';
|
|
2
|
+
/**
|
|
3
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
4
|
+
* See the migration guide:
|
|
5
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
6
|
+
*/
|
|
2
7
|
export declare class CredentialsClass {
|
|
3
8
|
private _config;
|
|
4
9
|
private _credentials;
|
|
@@ -44,4 +49,9 @@ export declare class CredentialsClass {
|
|
|
44
49
|
authenticated: any;
|
|
45
50
|
};
|
|
46
51
|
}
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
54
|
+
* See the migration guide:
|
|
55
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
56
|
+
*/
|
|
47
57
|
export declare const Credentials: CredentialsClass;
|
package/lib-esm/Credentials.js
CHANGED
|
@@ -65,6 +65,11 @@ var AMPLIFY_SYMBOL = (typeof Symbol !== 'undefined' && typeof Symbol.for === 'fu
|
|
|
65
65
|
var dispatchCredentialsEvent = function (event, data, message) {
|
|
66
66
|
Hub.dispatch('core', { event: event, data: data, message: message }, 'Credentials', AMPLIFY_SYMBOL);
|
|
67
67
|
};
|
|
68
|
+
/**
|
|
69
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
70
|
+
* See the migration guide:
|
|
71
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
72
|
+
*/
|
|
68
73
|
var CredentialsClass = /** @class */ (function () {
|
|
69
74
|
function CredentialsClass(config) {
|
|
70
75
|
this._gettingCredPromise = null;
|
|
@@ -671,5 +676,10 @@ var CredentialsClass = /** @class */ (function () {
|
|
|
671
676
|
return CredentialsClass;
|
|
672
677
|
}());
|
|
673
678
|
export { CredentialsClass };
|
|
679
|
+
/**
|
|
680
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
681
|
+
* See the migration guide:
|
|
682
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
683
|
+
*/
|
|
674
684
|
export var Credentials = new CredentialsClass(null);
|
|
675
685
|
Amplify.register(Credentials);
|
package/lib-esm/Errors.d.ts
CHANGED
|
@@ -1,2 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
3
|
+
* See the migration guide:
|
|
4
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
5
|
+
*/
|
|
1
6
|
export declare function missingConfig(name: string): Error;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
9
|
+
* See the migration guide:
|
|
10
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
11
|
+
*/
|
|
2
12
|
export declare function invalidParameter(name: string): Error;
|
package/lib-esm/Errors.js
CHANGED
|
@@ -1,8 +1,18 @@
|
|
|
1
1
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
5
|
+
* See the migration guide:
|
|
6
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
7
|
+
*/
|
|
3
8
|
export function missingConfig(name) {
|
|
4
9
|
return new Error('Missing config value of ' + name);
|
|
5
10
|
}
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
13
|
+
* See the migration guide:
|
|
14
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
15
|
+
*/
|
|
6
16
|
export function invalidParameter(name) {
|
|
7
17
|
return new Error('Invalid parameter value of ' + name);
|
|
8
18
|
}
|
package/lib-esm/Hub.d.ts
CHANGED
|
@@ -1,14 +1,29 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
3
|
+
* See the migration guide:
|
|
4
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
5
|
+
*/
|
|
1
6
|
export type HubCapsule = {
|
|
2
7
|
channel: string;
|
|
3
8
|
payload: HubPayload;
|
|
4
9
|
source: string;
|
|
5
10
|
patternInfo?: string[];
|
|
6
11
|
};
|
|
12
|
+
/**
|
|
13
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
14
|
+
* See the migration guide:
|
|
15
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
16
|
+
*/
|
|
7
17
|
export type HubPayload = {
|
|
8
18
|
event: string;
|
|
9
19
|
data?: any;
|
|
10
20
|
message?: string;
|
|
11
21
|
};
|
|
22
|
+
/**
|
|
23
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
24
|
+
* See the migration guide:
|
|
25
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
26
|
+
*/
|
|
12
27
|
export type HubCallback = (capsule: HubCapsule) => void;
|
|
13
28
|
export type LegacyCallback = {
|
|
14
29
|
onHubCapsule: HubCallback;
|
|
@@ -52,4 +67,9 @@ export declare class HubClass {
|
|
|
52
67
|
listen(channel: string | RegExp, callback?: HubCallback | LegacyCallback, listenerName?: string): () => void;
|
|
53
68
|
private _toListeners;
|
|
54
69
|
}
|
|
70
|
+
/**
|
|
71
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
72
|
+
* See the migration guide:
|
|
73
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
74
|
+
*/
|
|
55
75
|
export declare const Hub: HubClass;
|
package/lib-esm/Hub.js
CHANGED
|
@@ -213,4 +213,9 @@ export { HubClass };
|
|
|
213
213
|
/*We export a __default__ instance of HubClass to use it as a
|
|
214
214
|
pseudo Singleton for the main messaging bus, however you can still create
|
|
215
215
|
your own instance of HubClass() for a separate "private bus" of events.*/
|
|
216
|
+
/**
|
|
217
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
218
|
+
* See the migration guide:
|
|
219
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
220
|
+
*/
|
|
216
221
|
export var Hub = new HubClass('__default__');
|
package/lib-esm/I18n/index.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Export I18n APIs
|
|
3
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
4
|
+
* See the migration guide:
|
|
5
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
3
6
|
*/
|
|
4
7
|
export declare class I18n {
|
|
5
8
|
/**
|
package/lib-esm/I18n/index.js
CHANGED
|
@@ -8,6 +8,9 @@ var _config = null;
|
|
|
8
8
|
var _i18n = null;
|
|
9
9
|
/**
|
|
10
10
|
* Export I18n APIs
|
|
11
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
12
|
+
* See the migration guide:
|
|
13
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
11
14
|
*/
|
|
12
15
|
var I18n = /** @class */ (function () {
|
|
13
16
|
function I18n() {
|
package/lib-esm/JS.d.ts
CHANGED
|
@@ -1,11 +1,56 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
3
|
+
* See the migration guide:
|
|
4
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
5
|
+
*/
|
|
1
6
|
export declare const isEmpty: (obj?: {}) => boolean;
|
|
7
|
+
/**
|
|
8
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
9
|
+
* See the migration guide:
|
|
10
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
11
|
+
*/
|
|
2
12
|
export declare const sortByField: (list: any, field: any, dir: any) => boolean;
|
|
13
|
+
/**
|
|
14
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
15
|
+
* See the migration guide:
|
|
16
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
17
|
+
*/
|
|
3
18
|
export declare const objectLessAttributes: (obj: any, less: any) => any;
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
21
|
+
* See the migration guide:
|
|
22
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
23
|
+
*/
|
|
4
24
|
export declare const filenameToContentType: (filename: any, defVal?: string) => string;
|
|
25
|
+
/**
|
|
26
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
27
|
+
* See the migration guide:
|
|
28
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
29
|
+
*/
|
|
5
30
|
export declare const isTextFile: (contentType: any) => boolean;
|
|
31
|
+
/**
|
|
32
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
33
|
+
* See the migration guide:
|
|
34
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
35
|
+
*/
|
|
6
36
|
export declare const generateRandomString: () => string;
|
|
37
|
+
/**
|
|
38
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
39
|
+
* See the migration guide:
|
|
40
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
41
|
+
*/
|
|
7
42
|
export declare const makeQuerablePromise: (promise: any) => any;
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
45
|
+
* See the migration guide:
|
|
46
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
47
|
+
*/
|
|
8
48
|
export declare const isWebWorker: () => boolean;
|
|
49
|
+
/**
|
|
50
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
51
|
+
* See the migration guide:
|
|
52
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
53
|
+
*/
|
|
9
54
|
export declare const browserOrNode: () => {
|
|
10
55
|
isBrowser: boolean;
|
|
11
56
|
isNode: boolean;
|
|
@@ -15,6 +60,9 @@ export declare const browserOrNode: () => {
|
|
|
15
60
|
* @param {Object} obj - the object need to be transferred
|
|
16
61
|
* @param {Array} whiteListForItself - whitelist itself from being transferred
|
|
17
62
|
* @param {Array} whiteListForChildren - whitelist its children keys from being transferred
|
|
63
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
64
|
+
* See the migration guide:
|
|
65
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
18
66
|
*/
|
|
19
67
|
export declare const transferKeyToLowerCase: (obj: any, whiteListForItself?: any[], whiteListForChildren?: any[]) => any;
|
|
20
68
|
/**
|
|
@@ -22,11 +70,17 @@ export declare const transferKeyToLowerCase: (obj: any, whiteListForItself?: any
|
|
|
22
70
|
* @param {Object} obj - the object need to be transferred
|
|
23
71
|
* @param {Array} whiteListForItself - whitelist itself from being transferred
|
|
24
72
|
* @param {Array} whiteListForChildren - whitelist its children keys from being transferred
|
|
73
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
74
|
+
* See the migration guide:
|
|
75
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
25
76
|
*/
|
|
26
77
|
export declare const transferKeyToUpperCase: (obj: any, whiteListForItself?: any[], whiteListForChildren?: any[]) => any;
|
|
27
78
|
/**
|
|
28
79
|
* Return true if the object is a strict object
|
|
29
80
|
* which means it's not Array, Function, Number, String, Boolean or Null
|
|
30
81
|
* @param obj the Object
|
|
82
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
83
|
+
* See the migration guide:
|
|
84
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
31
85
|
*/
|
|
32
86
|
export declare const isStrictObject: (obj: any) => boolean;
|
package/lib-esm/JS.js
CHANGED
|
@@ -40,10 +40,20 @@ var MIME_MAP = [
|
|
|
40
40
|
{ type: 'application/vnd.ms-excel', ext: 'xlsx' },
|
|
41
41
|
{ type: 'message/rfc822', ext: 'eml' },
|
|
42
42
|
];
|
|
43
|
+
/**
|
|
44
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
45
|
+
* See the migration guide:
|
|
46
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
47
|
+
*/
|
|
43
48
|
export var isEmpty = function (obj) {
|
|
44
49
|
if (obj === void 0) { obj = {}; }
|
|
45
50
|
return Object.keys(obj).length === 0;
|
|
46
51
|
};
|
|
52
|
+
/**
|
|
53
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
54
|
+
* See the migration guide:
|
|
55
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
56
|
+
*/
|
|
47
57
|
export var sortByField = function (list, field, dir) {
|
|
48
58
|
if (!list || !list.sort) {
|
|
49
59
|
return false;
|
|
@@ -68,6 +78,11 @@ export var sortByField = function (list, field, dir) {
|
|
|
68
78
|
});
|
|
69
79
|
return true;
|
|
70
80
|
};
|
|
81
|
+
/**
|
|
82
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
83
|
+
* See the migration guide:
|
|
84
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
85
|
+
*/
|
|
71
86
|
export var objectLessAttributes = function (obj, less) {
|
|
72
87
|
var ret = Object.assign({}, obj);
|
|
73
88
|
if (less) {
|
|
@@ -82,12 +97,22 @@ export var objectLessAttributes = function (obj, less) {
|
|
|
82
97
|
}
|
|
83
98
|
return ret;
|
|
84
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
102
|
+
* See the migration guide:
|
|
103
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
104
|
+
*/
|
|
85
105
|
export var filenameToContentType = function (filename, defVal) {
|
|
86
106
|
if (defVal === void 0) { defVal = 'application/octet-stream'; }
|
|
87
107
|
var name = filename.toLowerCase();
|
|
88
108
|
var filtered = MIME_MAP.filter(function (mime) { return name.endsWith('.' + mime.ext); });
|
|
89
109
|
return filtered.length > 0 ? filtered[0].type : defVal;
|
|
90
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
113
|
+
* See the migration guide:
|
|
114
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
115
|
+
*/
|
|
91
116
|
export var isTextFile = function (contentType) {
|
|
92
117
|
var type = contentType.toLowerCase();
|
|
93
118
|
if (type.startsWith('text/')) {
|
|
@@ -97,6 +122,11 @@ export var isTextFile = function (contentType) {
|
|
|
97
122
|
'application/xml' === type ||
|
|
98
123
|
'application/sh' === type);
|
|
99
124
|
};
|
|
125
|
+
/**
|
|
126
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
127
|
+
* See the migration guide:
|
|
128
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
129
|
+
*/
|
|
100
130
|
export var generateRandomString = function () {
|
|
101
131
|
var result = '';
|
|
102
132
|
var chars = '0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';
|
|
@@ -105,6 +135,11 @@ export var generateRandomString = function () {
|
|
|
105
135
|
}
|
|
106
136
|
return result;
|
|
107
137
|
};
|
|
138
|
+
/**
|
|
139
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
140
|
+
* See the migration guide:
|
|
141
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
142
|
+
*/
|
|
108
143
|
export var makeQuerablePromise = function (promise) {
|
|
109
144
|
if (promise.isResolved)
|
|
110
145
|
return promise;
|
|
@@ -125,6 +160,11 @@ export var makeQuerablePromise = function (promise) {
|
|
|
125
160
|
result.isRejected = function () { return isRejected; };
|
|
126
161
|
return result;
|
|
127
162
|
};
|
|
163
|
+
/**
|
|
164
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
165
|
+
* See the migration guide:
|
|
166
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
167
|
+
*/
|
|
128
168
|
export var isWebWorker = function () {
|
|
129
169
|
if (typeof self === 'undefined') {
|
|
130
170
|
return false;
|
|
@@ -133,6 +173,11 @@ export var isWebWorker = function () {
|
|
|
133
173
|
return (typeof selfContext.WorkerGlobalScope !== 'undefined' &&
|
|
134
174
|
self instanceof selfContext.WorkerGlobalScope);
|
|
135
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
178
|
+
* See the migration guide:
|
|
179
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
180
|
+
*/
|
|
136
181
|
export var browserOrNode = function () {
|
|
137
182
|
var isBrowser = typeof window !== 'undefined' && typeof window.document !== 'undefined';
|
|
138
183
|
var isNode = typeof process !== 'undefined' &&
|
|
@@ -148,6 +193,9 @@ export var browserOrNode = function () {
|
|
|
148
193
|
* @param {Object} obj - the object need to be transferred
|
|
149
194
|
* @param {Array} whiteListForItself - whitelist itself from being transferred
|
|
150
195
|
* @param {Array} whiteListForChildren - whitelist its children keys from being transferred
|
|
196
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
197
|
+
* See the migration guide:
|
|
198
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
151
199
|
*/
|
|
152
200
|
export var transferKeyToLowerCase = function (obj, whiteListForItself, whiteListForChildren) {
|
|
153
201
|
if (whiteListForItself === void 0) { whiteListForItself = []; }
|
|
@@ -172,6 +220,9 @@ export var transferKeyToLowerCase = function (obj, whiteListForItself, whiteList
|
|
|
172
220
|
* @param {Object} obj - the object need to be transferred
|
|
173
221
|
* @param {Array} whiteListForItself - whitelist itself from being transferred
|
|
174
222
|
* @param {Array} whiteListForChildren - whitelist its children keys from being transferred
|
|
223
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
224
|
+
* See the migration guide:
|
|
225
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
175
226
|
*/
|
|
176
227
|
export var transferKeyToUpperCase = function (obj, whiteListForItself, whiteListForChildren) {
|
|
177
228
|
if (whiteListForItself === void 0) { whiteListForItself = []; }
|
|
@@ -195,6 +246,9 @@ export var transferKeyToUpperCase = function (obj, whiteListForItself, whiteList
|
|
|
195
246
|
* Return true if the object is a strict object
|
|
196
247
|
* which means it's not Array, Function, Number, String, Boolean or Null
|
|
197
248
|
* @param obj the Object
|
|
249
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
250
|
+
* See the migration guide:
|
|
251
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
198
252
|
*/
|
|
199
253
|
export var isStrictObject = function (obj) {
|
|
200
254
|
return (obj instanceof Object &&
|
|
@@ -10,6 +10,9 @@ export declare enum LOG_TYPE {
|
|
|
10
10
|
/**
|
|
11
11
|
* Write logs
|
|
12
12
|
* @class Logger
|
|
13
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
14
|
+
* See the migration guide:
|
|
15
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
13
16
|
*/
|
|
14
17
|
export declare class ConsoleLogger implements Logger {
|
|
15
18
|
name: string;
|
|
@@ -55,6 +55,9 @@ export var LOG_TYPE;
|
|
|
55
55
|
/**
|
|
56
56
|
* Write logs
|
|
57
57
|
* @class Logger
|
|
58
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
59
|
+
* See the migration guide:
|
|
60
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
58
61
|
*/
|
|
59
62
|
var ConsoleLogger = /** @class */ (function () {
|
|
60
63
|
/**
|
|
@@ -1,4 +1,14 @@
|
|
|
1
1
|
import { GoogleOAuth as GoogleOAuthClass } from './GoogleOAuth';
|
|
2
2
|
import { FacebookOAuth as FacebookOAuthClass } from './FacebookOAuth';
|
|
3
|
+
/**
|
|
4
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
5
|
+
* See the migration guide:
|
|
6
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
7
|
+
*/
|
|
3
8
|
export declare const GoogleOAuth: GoogleOAuthClass;
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
11
|
+
* See the migration guide:
|
|
12
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
13
|
+
*/
|
|
4
14
|
export declare const FacebookOAuth: FacebookOAuthClass;
|
|
@@ -2,5 +2,15 @@
|
|
|
2
2
|
// SPDX-License-Identifier: Apache-2.0
|
|
3
3
|
import { GoogleOAuth as GoogleOAuthClass } from './GoogleOAuth';
|
|
4
4
|
import { FacebookOAuth as FacebookOAuthClass } from './FacebookOAuth';
|
|
5
|
+
/**
|
|
6
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
7
|
+
* See the migration guide:
|
|
8
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
9
|
+
*/
|
|
5
10
|
export var GoogleOAuth = new GoogleOAuthClass();
|
|
11
|
+
/**
|
|
12
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
13
|
+
* See the migration guide:
|
|
14
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
15
|
+
*/
|
|
6
16
|
export var FacebookOAuth = new FacebookOAuthClass();
|
|
@@ -6,7 +6,22 @@ declare class PlatformBuilder {
|
|
|
6
6
|
get isReactNative(): boolean;
|
|
7
7
|
observeFrameworkChanges(fcn: () => void): void;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
11
|
+
* See the migration guide:
|
|
12
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
13
|
+
*/
|
|
9
14
|
export declare const Platform: PlatformBuilder;
|
|
15
|
+
/**
|
|
16
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
17
|
+
* See the migration guide:
|
|
18
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
19
|
+
*/
|
|
10
20
|
export declare const getAmplifyUserAgentObject: ({ category, action, framework, }?: CustomUserAgentDetails) => AWSUserAgent;
|
|
21
|
+
/**
|
|
22
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
23
|
+
* See the migration guide:
|
|
24
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
25
|
+
*/
|
|
11
26
|
export declare const getAmplifyUserAgent: (customUserAgentDetails?: CustomUserAgentDetails) => string;
|
|
12
27
|
export {};
|
|
@@ -44,7 +44,17 @@ var PlatformBuilder = /** @class */ (function () {
|
|
|
44
44
|
};
|
|
45
45
|
return PlatformBuilder;
|
|
46
46
|
}());
|
|
47
|
+
/**
|
|
48
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
49
|
+
* See the migration guide:
|
|
50
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
51
|
+
*/
|
|
47
52
|
export var Platform = new PlatformBuilder();
|
|
53
|
+
/**
|
|
54
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
55
|
+
* See the migration guide:
|
|
56
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
57
|
+
*/
|
|
48
58
|
export var getAmplifyUserAgentObject = function (_a) {
|
|
49
59
|
var _b = _a === void 0 ? {} : _a, category = _b.category, action = _b.action, framework = _b.framework;
|
|
50
60
|
var userAgent = [[BASE_USER_AGENT, version]];
|
|
@@ -54,6 +64,11 @@ export var getAmplifyUserAgentObject = function (_a) {
|
|
|
54
64
|
userAgent.push(['framework', detectFramework()]);
|
|
55
65
|
return userAgent;
|
|
56
66
|
};
|
|
67
|
+
/**
|
|
68
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
69
|
+
* See the migration guide:
|
|
70
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
71
|
+
*/
|
|
57
72
|
export var getAmplifyUserAgent = function (customUserAgentDetails) {
|
|
58
73
|
var userAgent = getAmplifyUserAgentObject(customUserAgentDetails);
|
|
59
74
|
var userAgentString = userAgent
|