@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/Util/Mutex.d.ts
CHANGED
|
@@ -34,6 +34,11 @@ declare namespace MutexInterface {
|
|
|
34
34
|
(): Promise<T> | T;
|
|
35
35
|
}
|
|
36
36
|
}
|
|
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
|
+
*/
|
|
37
42
|
declare class Mutex implements MutexInterface {
|
|
38
43
|
isLocked(): boolean;
|
|
39
44
|
acquire(): Promise<MutexInterface.Releaser>;
|
package/lib/Util/Mutex.js
CHANGED
|
@@ -25,6 +25,11 @@
|
|
|
25
25
|
* THE SOFTWARE.
|
|
26
26
|
*/
|
|
27
27
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
28
|
+
/**
|
|
29
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
30
|
+
* See the migration guide:
|
|
31
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
32
|
+
*/
|
|
28
33
|
var Mutex = /** @class */ (function () {
|
|
29
34
|
function Mutex() {
|
|
30
35
|
this._queue = [];
|
|
@@ -2,6 +2,11 @@ import Observable from 'zen-observable-ts';
|
|
|
2
2
|
type NetworkStatus = {
|
|
3
3
|
online: boolean;
|
|
4
4
|
};
|
|
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 default class ReachabilityNavigator implements Reachability {
|
|
6
11
|
private static _observers;
|
|
7
12
|
networkMonitor(netInfo?: any): Observable<NetworkStatus>;
|
package/lib/Util/Reachability.js
CHANGED
|
@@ -18,6 +18,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
18
18
|
// SPDX-License-Identifier: Apache-2.0
|
|
19
19
|
var core_1 = require("@aws-amplify/core");
|
|
20
20
|
var zen_observable_ts_1 = __importDefault(require("zen-observable-ts"));
|
|
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 ReachabilityNavigator = /** @class */ (function () {
|
|
22
27
|
function ReachabilityNavigator() {
|
|
23
28
|
}
|
package/lib/Util/Retry.d.ts
CHANGED
|
@@ -1,21 +1,40 @@
|
|
|
1
1
|
import { DelayFunction } 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 NonRetryableError extends Error {
|
|
3
8
|
readonly nonRetryable = true;
|
|
4
9
|
constructor(message: string);
|
|
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 declare const isNonRetryableError: (obj: any) => obj is NonRetryableError;
|
|
7
17
|
/**
|
|
8
18
|
* @private
|
|
9
19
|
* Internal use of Amplify only
|
|
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/
|
|
10
23
|
*/
|
|
11
24
|
export declare function retry<T>(functionToRetry: (...args: any[]) => T, args: any[], delayFn: DelayFunction, onTerminate?: Promise<void>): Promise<T>;
|
|
12
25
|
/**
|
|
13
26
|
* @private
|
|
14
27
|
* Internal use of Amplify only
|
|
28
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
29
|
+
* See the migration guide:
|
|
30
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
15
31
|
*/
|
|
16
32
|
export declare function jitteredBackoff(maxDelayMs?: number): DelayFunction;
|
|
17
33
|
/**
|
|
18
34
|
* @private
|
|
19
35
|
* Internal use of Amplify only
|
|
36
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
37
|
+
* See the migration guide:
|
|
38
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
20
39
|
*/
|
|
21
40
|
export declare const jitteredExponentialRetry: <T>(functionToRetry: (...args: any[]) => T, args: any[], maxDelayMs?: number, onTerminate?: Promise<void>) => Promise<T>;
|
package/lib/Util/Retry.js
CHANGED
|
@@ -81,6 +81,11 @@ exports.retry = retry;
|
|
|
81
81
|
exports.jitteredBackoff = jitteredBackoff;
|
|
82
82
|
var ConsoleLogger_1 = require("../Logger/ConsoleLogger");
|
|
83
83
|
var logger = new ConsoleLogger_1.ConsoleLogger('Util');
|
|
84
|
+
/**
|
|
85
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
86
|
+
* See the migration guide:
|
|
87
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
88
|
+
*/
|
|
84
89
|
var NonRetryableError = /** @class */ (function (_super) {
|
|
85
90
|
__extends(NonRetryableError, _super);
|
|
86
91
|
function NonRetryableError(message) {
|
|
@@ -91,6 +96,11 @@ var NonRetryableError = /** @class */ (function (_super) {
|
|
|
91
96
|
return NonRetryableError;
|
|
92
97
|
}(Error));
|
|
93
98
|
exports.NonRetryableError = NonRetryableError;
|
|
99
|
+
/**
|
|
100
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
101
|
+
* See the migration guide:
|
|
102
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
103
|
+
*/
|
|
94
104
|
var isNonRetryableError = function (obj) {
|
|
95
105
|
var key = 'nonRetryable';
|
|
96
106
|
return obj && obj[key];
|
|
@@ -99,6 +109,9 @@ exports.isNonRetryableError = isNonRetryableError;
|
|
|
99
109
|
/**
|
|
100
110
|
* @private
|
|
101
111
|
* Internal use of Amplify only
|
|
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/
|
|
102
115
|
*/
|
|
103
116
|
function retry(functionToRetry, args, delayFn, onTerminate) {
|
|
104
117
|
return __awaiter(this, void 0, void 0, function () {
|
|
@@ -184,6 +197,9 @@ var MAX_DELAY_MS = 5 * 60 * 1000;
|
|
|
184
197
|
/**
|
|
185
198
|
* @private
|
|
186
199
|
* Internal use of Amplify only
|
|
200
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
201
|
+
* See the migration guide:
|
|
202
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
187
203
|
*/
|
|
188
204
|
function jitteredBackoff(maxDelayMs) {
|
|
189
205
|
if (maxDelayMs === void 0) { maxDelayMs = MAX_DELAY_MS; }
|
|
@@ -197,6 +213,9 @@ function jitteredBackoff(maxDelayMs) {
|
|
|
197
213
|
/**
|
|
198
214
|
* @private
|
|
199
215
|
* Internal use of Amplify only
|
|
216
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
217
|
+
* See the migration guide:
|
|
218
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
200
219
|
*/
|
|
201
220
|
var jitteredExponentialRetry = function (functionToRetry, args, maxDelayMs, onTerminate) {
|
|
202
221
|
if (maxDelayMs === void 0) { maxDelayMs = MAX_DELAY_MS; }
|
|
@@ -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 urlSafeEncode(str: string): string;
|
|
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 urlSafeDecode(hex: string): string;
|
package/lib/Util/StringUtils.js
CHANGED
|
@@ -4,6 +4,11 @@ exports.urlSafeEncode = urlSafeEncode;
|
|
|
4
4
|
exports.urlSafeDecode = urlSafeDecode;
|
|
5
5
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
6
6
|
// SPDX-License-Identifier: Apache-2.0
|
|
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
|
+
*/
|
|
7
12
|
function urlSafeEncode(str) {
|
|
8
13
|
return str
|
|
9
14
|
.split('')
|
|
@@ -15,6 +20,11 @@ function urlSafeEncode(str) {
|
|
|
15
20
|
})
|
|
16
21
|
.join('');
|
|
17
22
|
}
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
25
|
+
* See the migration guide:
|
|
26
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
27
|
+
*/
|
|
18
28
|
function urlSafeDecode(hex) {
|
|
19
29
|
return hex
|
|
20
30
|
.match(/.{2}/g)
|
package/lib/constants.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 const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER: string | symbol;
|
|
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 USER_AGENT_HEADER = "x-amz-user-agent";
|
package/lib/constants.js
CHANGED
|
@@ -8,7 +8,17 @@ exports.USER_AGENT_HEADER = exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDE
|
|
|
8
8
|
* is used for AppSync/GraphQL subscriptions in the API category.
|
|
9
9
|
*/
|
|
10
10
|
var hasSymbol = typeof Symbol !== 'undefined' && typeof Symbol.for === 'function';
|
|
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
|
+
*/
|
|
11
16
|
exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = hasSymbol
|
|
12
17
|
? Symbol.for('INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER')
|
|
13
18
|
: '@@INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER';
|
|
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
|
+
*/
|
|
14
24
|
exports.USER_AGENT_HEADER = 'x-amz-user-agent';
|
package/lib/index.d.ts
CHANGED
|
@@ -20,6 +20,11 @@ export { UniversalStorage } from './UniversalStorage';
|
|
|
20
20
|
export { Platform, getAmplifyUserAgentObject, getAmplifyUserAgent, } from './Platform';
|
|
21
21
|
export { ApiAction, AuthAction, AnalyticsAction, Category, CustomUserAgentDetails, DataStoreAction, Framework, GeoAction, InteractionsAction, InAppMessagingAction, PredictionsAction, PubSubAction, PushNotificationAction, StorageAction, } from './Platform/types';
|
|
22
22
|
export { INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
|
|
23
|
+
/**
|
|
24
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
25
|
+
* See the migration guide:
|
|
26
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
27
|
+
*/
|
|
23
28
|
export declare const Constants: {
|
|
24
29
|
userAgent: string;
|
|
25
30
|
};
|
package/lib/index.js
CHANGED
|
@@ -79,6 +79,11 @@ Object.defineProperty(exports, "StorageAction", { enumerable: true, get: functio
|
|
|
79
79
|
var constants_1 = require("./constants");
|
|
80
80
|
Object.defineProperty(exports, "INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER", { enumerable: true, get: function () { return constants_1.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER; } });
|
|
81
81
|
Object.defineProperty(exports, "USER_AGENT_HEADER", { enumerable: true, get: function () { return constants_1.USER_AGENT_HEADER; } });
|
|
82
|
+
/**
|
|
83
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
84
|
+
* See the migration guide:
|
|
85
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
86
|
+
*/
|
|
82
87
|
exports.Constants = {
|
|
83
88
|
userAgent: Platform_1.Platform.userAgent,
|
|
84
89
|
};
|
package/lib/parseAWSExports.d.ts
CHANGED
|
@@ -1,2 +1,7 @@
|
|
|
1
1
|
import { AmplifyConfig } 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 const parseAWSExports: (config: any) => AmplifyConfig;
|
package/lib/parseAWSExports.js
CHANGED
|
@@ -14,6 +14,11 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
14
14
|
exports.parseAWSExports = void 0;
|
|
15
15
|
var Logger_1 = require("./Logger");
|
|
16
16
|
var logger = new Logger_1.ConsoleLogger('Parser');
|
|
17
|
+
/**
|
|
18
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
19
|
+
* See the migration guide:
|
|
20
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
21
|
+
*/
|
|
17
22
|
var parseAWSExports = function (config) {
|
|
18
23
|
var amplifyConfig = {};
|
|
19
24
|
// Analytics
|