@aws-amplify/core 5.8.17 → 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/AwsClients/CognitoIdentity/base.js +2 -2
- package/lib/AwsClients/CognitoIdentity/getCredentialsForIdentity.js +2 -2
- package/lib/AwsClients/CognitoIdentity/getId.js +2 -2
- package/lib/AwsClients/Pinpoint/getInAppMessages.js +2 -2
- package/lib/AwsClients/Pinpoint/putEvents.js +2 -2
- package/lib/AwsClients/Pinpoint/updateEndpoint.js +2 -2
- package/lib/ClientDevice/browser.js +3 -4
- 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 +18 -8
- package/lib/Errors.d.ts +10 -0
- package/lib/Errors.js +12 -3
- 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 +6 -2
- package/lib/OAuthHelper/FacebookOAuth.js +2 -2
- package/lib/OAuthHelper/GoogleOAuth.js +2 -2
- package/lib/OAuthHelper/index.d.ts +10 -0
- package/lib/OAuthHelper/index.js +10 -0
- package/lib/Platform/detectFramework.js +2 -2
- package/lib/Platform/detection/Angular.js +2 -3
- package/lib/Platform/detection/Expo.js +1 -2
- package/lib/Platform/detection/Next.js +2 -3
- package/lib/Platform/detection/Nuxt.js +2 -3
- package/lib/Platform/detection/React.js +2 -3
- package/lib/Platform/detection/ReactNative.js +1 -2
- package/lib/Platform/detection/Svelte.js +2 -3
- package/lib/Platform/detection/Vue.js +2 -3
- package/lib/Platform/detection/Web.js +1 -2
- package/lib/Platform/detection/index.js +1 -2
- 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 +78 -13
- 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 +7 -2
- 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 +12 -3
- package/lib/Util/Constants.d.ts +35 -0
- package/lib/Util/Constants.js +35 -0
- package/lib/Util/DateUtils.d.ts +24 -1
- 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 +24 -5
- package/lib/Util/StringUtils.d.ts +10 -0
- package/lib/Util/StringUtils.js +12 -3
- package/lib/clients/handlers/fetch.js +47 -49
- package/lib/clients/internal/composeServiceApi.js +2 -2
- package/lib/clients/internal/composeTransferHandler.d.ts +1 -1
- package/lib/clients/middleware/retry/defaultRetryDecider.js +2 -2
- package/lib/clients/middleware/retry/middleware.js +3 -3
- package/lib/clients/middleware/signing/middleware.js +2 -2
- package/lib/clients/middleware/signing/signer/signatureV4/utils/getCanonicalHeaders.d.ts +1 -1
- package/lib/clients/middleware/signing/signer/signatureV4/utils/getHashedPayload.d.ts +1 -1
- package/lib/clients/middleware/signing/signer/signatureV4/utils/getSignedHeaders.d.ts +1 -1
- package/lib/clients/middleware/userAgent/middleware.js +2 -2
- package/lib/clients/serde/json.js +2 -2
- 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/AwsClients/CognitoIdentity/base.js +2 -2
- package/lib-esm/AwsClients/CognitoIdentity/getCredentialsForIdentity.js +2 -2
- package/lib-esm/AwsClients/CognitoIdentity/getId.js +2 -2
- package/lib-esm/AwsClients/Pinpoint/getInAppMessages.js +2 -2
- package/lib-esm/AwsClients/Pinpoint/putEvents.js +2 -2
- package/lib-esm/AwsClients/Pinpoint/updateEndpoint.js +2 -2
- 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 +18 -8
- 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 +5 -1
- package/lib-esm/OAuthHelper/FacebookOAuth.js +2 -2
- package/lib-esm/OAuthHelper/GoogleOAuth.js +2 -2
- 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 +7 -2
- 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 +11 -2
- package/lib-esm/Util/Constants.d.ts +35 -0
- package/lib-esm/Util/Constants.js +35 -0
- package/lib-esm/Util/DateUtils.d.ts +24 -1
- 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 +21 -2
- package/lib-esm/Util/StringUtils.d.ts +10 -0
- package/lib-esm/Util/StringUtils.js +10 -0
- package/lib-esm/clients/handlers/fetch.js +47 -49
- package/lib-esm/clients/internal/composeServiceApi.js +2 -2
- package/lib-esm/clients/internal/composeTransferHandler.d.ts +1 -1
- package/lib-esm/clients/middleware/retry/defaultRetryDecider.js +2 -2
- package/lib-esm/clients/middleware/retry/middleware.js +3 -3
- package/lib-esm/clients/middleware/signing/middleware.js +2 -2
- package/lib-esm/clients/middleware/signing/signer/signatureV4/utils/getCanonicalHeaders.d.ts +1 -1
- package/lib-esm/clients/middleware/signing/signer/signatureV4/utils/getHashedPayload.d.ts +1 -1
- package/lib-esm/clients/middleware/signing/signer/signatureV4/utils/getSignedHeaders.d.ts +1 -1
- package/lib-esm/clients/middleware/userAgent/middleware.js +2 -2
- package/lib-esm/clients/serde/json.js +2 -2
- 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 +31 -14
- 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
|
@@ -9,8 +9,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
9
9
|
});
|
|
10
10
|
};
|
|
11
11
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
12
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
13
|
-
return g =
|
|
12
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
13
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
14
14
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
15
15
|
function step(op) {
|
|
16
16
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -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;
|
package/lib/OAuthHelper/index.js
CHANGED
|
@@ -5,5 +5,15 @@ exports.FacebookOAuth = exports.GoogleOAuth = void 0;
|
|
|
5
5
|
// SPDX-License-Identifier: Apache-2.0
|
|
6
6
|
var GoogleOAuth_1 = require("./GoogleOAuth");
|
|
7
7
|
var FacebookOAuth_1 = require("./FacebookOAuth");
|
|
8
|
+
/**
|
|
9
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
10
|
+
* See the migration guide:
|
|
11
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
12
|
+
*/
|
|
8
13
|
exports.GoogleOAuth = new GoogleOAuth_1.GoogleOAuth();
|
|
14
|
+
/**
|
|
15
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
16
|
+
* See the migration guide:
|
|
17
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
18
|
+
*/
|
|
9
19
|
exports.FacebookOAuth = new FacebookOAuth_1.FacebookOAuth();
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.observeFrameworkChanges = exports.detectFramework = exports.frameworkChangeObservers = void 0;
|
|
6
|
+
exports.clearCache = clearCache;
|
|
6
7
|
var types_1 = require("./types");
|
|
7
8
|
var detection_1 = require("./detection");
|
|
8
9
|
// We want to cache detection since the framework won't change
|
|
@@ -52,7 +53,6 @@ exports.observeFrameworkChanges = observeFrameworkChanges;
|
|
|
52
53
|
function clearCache() {
|
|
53
54
|
frameworkCache = undefined;
|
|
54
55
|
}
|
|
55
|
-
exports.clearCache = clearCache;
|
|
56
56
|
// For a framework type and a delay amount, setup the event to re-detect
|
|
57
57
|
// During the runtime boot, it is possible that framework detection will
|
|
58
58
|
// be triggered before the framework has made modifications to the
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.angularWebDetect = angularWebDetect;
|
|
6
|
+
exports.angularSSRDetect = angularSSRDetect;
|
|
6
7
|
var helpers_1 = require("./helpers");
|
|
7
8
|
// Tested with @angular/core 16.0.0
|
|
8
9
|
function angularWebDetect() {
|
|
@@ -12,7 +13,6 @@ function angularWebDetect() {
|
|
|
12
13
|
(0, helpers_1.windowExists)() && typeof window['ng'] !== 'undefined');
|
|
13
14
|
return angularVersionSetInDocument || angularContentSetInWindow;
|
|
14
15
|
}
|
|
15
|
-
exports.angularWebDetect = angularWebDetect;
|
|
16
16
|
function angularSSRDetect() {
|
|
17
17
|
var _a;
|
|
18
18
|
return (((0, helpers_1.processExists)() &&
|
|
@@ -20,4 +20,3 @@ function angularSSRDetect() {
|
|
|
20
20
|
((_a = process.env['npm_lifecycle_script']) === null || _a === void 0 ? void 0 : _a.startsWith('ng '))) ||
|
|
21
21
|
false);
|
|
22
22
|
}
|
|
23
|
-
exports.angularSSRDetect = angularSSRDetect;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.expoDetect =
|
|
5
|
+
exports.expoDetect = expoDetect;
|
|
6
6
|
var helpers_1 = require("./helpers");
|
|
7
7
|
// Tested with expo 48 / react-native 0.71.3
|
|
8
8
|
function expoDetect() {
|
|
9
9
|
// @ts-ignore
|
|
10
10
|
return (0, helpers_1.globalExists)() && typeof global['expo'] !== 'undefined';
|
|
11
11
|
}
|
|
12
|
-
exports.expoDetect = expoDetect;
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.nextWebDetect = nextWebDetect;
|
|
6
|
+
exports.nextSSRDetect = nextSSRDetect;
|
|
6
7
|
var helpers_1 = require("./helpers");
|
|
7
8
|
// Tested with next 13.4 / react 18.2
|
|
8
9
|
function nextWebDetect() {
|
|
9
10
|
// @ts-ignore
|
|
10
11
|
return (0, helpers_1.windowExists)() && window['next'] && typeof window['next'] === 'object';
|
|
11
12
|
}
|
|
12
|
-
exports.nextWebDetect = nextWebDetect;
|
|
13
13
|
function nextSSRDetect() {
|
|
14
14
|
return ((0, helpers_1.globalExists)() &&
|
|
15
15
|
((0, helpers_1.keyPrefixMatch)(global, '__next') || (0, helpers_1.keyPrefixMatch)(global, '__NEXT')));
|
|
16
16
|
}
|
|
17
|
-
exports.nextSSRDetect = nextSSRDetect;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.nuxtWebDetect = nuxtWebDetect;
|
|
6
|
+
exports.nuxtSSRDetect = nuxtSSRDetect;
|
|
6
7
|
var helpers_1 = require("./helpers");
|
|
7
8
|
// Tested with nuxt 2.15 / vue 2.7
|
|
8
9
|
function nuxtWebDetect() {
|
|
@@ -10,9 +11,7 @@ function nuxtWebDetect() {
|
|
|
10
11
|
// @ts-ignore
|
|
11
12
|
(window['__NUXT__'] !== undefined || window['$nuxt'] !== undefined));
|
|
12
13
|
}
|
|
13
|
-
exports.nuxtWebDetect = nuxtWebDetect;
|
|
14
14
|
function nuxtSSRDetect() {
|
|
15
15
|
// @ts-ignore
|
|
16
16
|
return (0, helpers_1.globalExists)() && typeof global['__NUXT_PATHS__'] !== 'undefined';
|
|
17
17
|
}
|
|
18
|
-
exports.nuxtSSRDetect = nuxtSSRDetect;
|
|
@@ -2,7 +2,8 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.reactWebDetect = reactWebDetect;
|
|
6
|
+
exports.reactSSRDetect = reactSSRDetect;
|
|
6
7
|
var helpers_1 = require("./helpers");
|
|
7
8
|
// Tested with react 18.2 - built using Vite
|
|
8
9
|
function reactWebDetect() {
|
|
@@ -15,10 +16,8 @@ function reactWebDetect() {
|
|
|
15
16
|
var allElementsWithId = function () { return Array.from(document.querySelectorAll('[id]')); };
|
|
16
17
|
return (0, helpers_1.documentExists)() && allElementsWithId().some(elementIsReactEnabled);
|
|
17
18
|
}
|
|
18
|
-
exports.reactWebDetect = reactWebDetect;
|
|
19
19
|
function reactSSRDetect() {
|
|
20
20
|
return ((0, helpers_1.processExists)() &&
|
|
21
21
|
typeof process.env !== 'undefined' &&
|
|
22
22
|
!!Object.keys(process.env).find(function (key) { return key.includes('react'); }));
|
|
23
23
|
}
|
|
24
|
-
exports.reactSSRDetect = reactSSRDetect;
|
|
@@ -2,11 +2,10 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.reactNativeDetect =
|
|
5
|
+
exports.reactNativeDetect = reactNativeDetect;
|
|
6
6
|
// Tested with react-native 0.17.7
|
|
7
7
|
function reactNativeDetect() {
|
|
8
8
|
return (typeof navigator !== 'undefined' &&
|
|
9
9
|
typeof navigator.product !== 'undefined' &&
|
|
10
10
|
navigator.product === 'ReactNative');
|
|
11
11
|
}
|
|
12
|
-
exports.reactNativeDetect = reactNativeDetect;
|
|
@@ -2,16 +2,15 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.svelteWebDetect = svelteWebDetect;
|
|
6
|
+
exports.svelteSSRDetect = svelteSSRDetect;
|
|
6
7
|
var helpers_1 = require("./helpers");
|
|
7
8
|
// Tested with svelte 3.59
|
|
8
9
|
function svelteWebDetect() {
|
|
9
10
|
return (0, helpers_1.windowExists)() && (0, helpers_1.keyPrefixMatch)(window, '__SVELTE');
|
|
10
11
|
}
|
|
11
|
-
exports.svelteWebDetect = svelteWebDetect;
|
|
12
12
|
function svelteSSRDetect() {
|
|
13
13
|
return ((0, helpers_1.processExists)() &&
|
|
14
14
|
typeof process.env !== 'undefined' &&
|
|
15
15
|
!!Object.keys(process.env).find(function (key) { return key.includes('svelte'); }));
|
|
16
16
|
}
|
|
17
|
-
exports.svelteSSRDetect = svelteSSRDetect;
|
|
@@ -2,14 +2,13 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.
|
|
5
|
+
exports.vueWebDetect = vueWebDetect;
|
|
6
|
+
exports.vueSSRDetect = vueSSRDetect;
|
|
6
7
|
var helpers_1 = require("./helpers");
|
|
7
8
|
// Tested with vue 3.3.2
|
|
8
9
|
function vueWebDetect() {
|
|
9
10
|
return (0, helpers_1.windowExists)() && (0, helpers_1.keyPrefixMatch)(window, '__VUE');
|
|
10
11
|
}
|
|
11
|
-
exports.vueWebDetect = vueWebDetect;
|
|
12
12
|
function vueSSRDetect() {
|
|
13
13
|
return (0, helpers_1.globalExists)() && (0, helpers_1.keyPrefixMatch)(global, '__VUE');
|
|
14
14
|
}
|
|
15
|
-
exports.vueSSRDetect = vueSSRDetect;
|
|
@@ -2,9 +2,8 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.webDetect =
|
|
5
|
+
exports.webDetect = webDetect;
|
|
6
6
|
var helpers_1 = require("./helpers");
|
|
7
7
|
function webDetect() {
|
|
8
8
|
return (0, helpers_1.windowExists)();
|
|
9
9
|
}
|
|
10
|
-
exports.webDetect = webDetect;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
-
exports.detect =
|
|
5
|
+
exports.detect = detect;
|
|
6
6
|
var types_1 = require("../types");
|
|
7
7
|
var React_1 = require("./React");
|
|
8
8
|
var Vue_1 = require("./Vue");
|
|
@@ -38,4 +38,3 @@ function detect() {
|
|
|
38
38
|
var _a;
|
|
39
39
|
return (((_a = detectionMap.find(function (detectionEntry) { return detectionEntry.detectionMethod(); })) === null || _a === void 0 ? void 0 : _a.platform) || types_1.Framework.ServerSideUnknown);
|
|
40
40
|
}
|
|
41
|
-
exports.detect = detect;
|
package/lib/Platform/index.d.ts
CHANGED
|
@@ -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 {};
|
package/lib/Platform/index.js
CHANGED
|
@@ -47,7 +47,17 @@ var PlatformBuilder = /** @class */ (function () {
|
|
|
47
47
|
};
|
|
48
48
|
return PlatformBuilder;
|
|
49
49
|
}());
|
|
50
|
+
/**
|
|
51
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
52
|
+
* See the migration guide:
|
|
53
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
54
|
+
*/
|
|
50
55
|
exports.Platform = new PlatformBuilder();
|
|
56
|
+
/**
|
|
57
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
58
|
+
* See the migration guide:
|
|
59
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
60
|
+
*/
|
|
51
61
|
var getAmplifyUserAgentObject = function (_a) {
|
|
52
62
|
var _b = _a === void 0 ? {} : _a, category = _b.category, action = _b.action, framework = _b.framework;
|
|
53
63
|
var userAgent = [[BASE_USER_AGENT, version_1.version]];
|
|
@@ -58,6 +68,11 @@ var getAmplifyUserAgentObject = function (_a) {
|
|
|
58
68
|
return userAgent;
|
|
59
69
|
};
|
|
60
70
|
exports.getAmplifyUserAgentObject = getAmplifyUserAgentObject;
|
|
71
|
+
/**
|
|
72
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
73
|
+
* See the migration guide:
|
|
74
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
75
|
+
*/
|
|
61
76
|
var getAmplifyUserAgent = function (customUserAgentDetails) {
|
|
62
77
|
var userAgent = (0, exports.getAmplifyUserAgentObject)(customUserAgentDetails);
|
|
63
78
|
var userAgentString = userAgent
|
package/lib/Platform/types.d.ts
CHANGED
|
@@ -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 enum Framework {
|
|
2
7
|
WebUnknown = "0",
|
|
3
8
|
React = "1",
|
|
@@ -16,6 +21,11 @@ export declare enum Framework {
|
|
|
16
21
|
ReactNative = "201",
|
|
17
22
|
Expo = "202"
|
|
18
23
|
}
|
|
24
|
+
/**
|
|
25
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
26
|
+
* See the migration guide:
|
|
27
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
28
|
+
*/
|
|
19
29
|
export declare enum Category {
|
|
20
30
|
API = "api",
|
|
21
31
|
Auth = "auth",
|
|
@@ -29,10 +39,20 @@ export declare enum Category {
|
|
|
29
39
|
PushNotification = "pushnotification",
|
|
30
40
|
Storage = "storage"
|
|
31
41
|
}
|
|
42
|
+
/**
|
|
43
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
44
|
+
* See the migration guide:
|
|
45
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
46
|
+
*/
|
|
32
47
|
export declare enum AnalyticsAction {
|
|
33
48
|
Record = "1",
|
|
34
49
|
UpdateEndpoint = "2"
|
|
35
50
|
}
|
|
51
|
+
/**
|
|
52
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
53
|
+
* See the migration guide:
|
|
54
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
55
|
+
*/
|
|
36
56
|
export declare enum ApiAction {
|
|
37
57
|
GraphQl = "1",
|
|
38
58
|
Get = "2",
|
|
@@ -42,33 +62,78 @@ export declare enum ApiAction {
|
|
|
42
62
|
Del = "6",
|
|
43
63
|
Head = "7"
|
|
44
64
|
}
|
|
65
|
+
/**
|
|
66
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
67
|
+
* See the migration guide:
|
|
68
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
69
|
+
*/
|
|
45
70
|
export declare enum AuthAction {
|
|
46
71
|
FederatedSignIn = "30"
|
|
47
72
|
}
|
|
73
|
+
/**
|
|
74
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
75
|
+
* See the migration guide:
|
|
76
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
77
|
+
*/
|
|
48
78
|
export declare enum DataStoreAction {
|
|
49
79
|
Subscribe = "1",
|
|
50
80
|
GraphQl = "2"
|
|
51
81
|
}
|
|
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
|
+
*/
|
|
52
87
|
export declare enum GeoAction {
|
|
53
88
|
None = "0"
|
|
54
89
|
}
|
|
90
|
+
/**
|
|
91
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
92
|
+
* See the migration guide:
|
|
93
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
94
|
+
*/
|
|
55
95
|
export declare enum InAppMessagingAction {
|
|
56
96
|
None = "0"
|
|
57
97
|
}
|
|
98
|
+
/**
|
|
99
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
100
|
+
* See the migration guide:
|
|
101
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
102
|
+
*/
|
|
58
103
|
export declare enum InteractionsAction {
|
|
59
104
|
None = "0"
|
|
60
105
|
}
|
|
106
|
+
/**
|
|
107
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
108
|
+
* See the migration guide:
|
|
109
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
110
|
+
*/
|
|
61
111
|
export declare enum PredictionsAction {
|
|
62
112
|
Convert = "1",
|
|
63
113
|
Identify = "2",
|
|
64
114
|
Interpret = "3"
|
|
65
115
|
}
|
|
116
|
+
/**
|
|
117
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
118
|
+
* See the migration guide:
|
|
119
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
120
|
+
*/
|
|
66
121
|
export declare enum PubSubAction {
|
|
67
122
|
Subscribe = "1"
|
|
68
123
|
}
|
|
124
|
+
/**
|
|
125
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
126
|
+
* See the migration guide:
|
|
127
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
128
|
+
*/
|
|
69
129
|
export declare enum PushNotificationAction {
|
|
70
130
|
None = "0"
|
|
71
131
|
}
|
|
132
|
+
/**
|
|
133
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
134
|
+
* See the migration guide:
|
|
135
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
136
|
+
*/
|
|
72
137
|
export declare enum StorageAction {
|
|
73
138
|
Put = "1",
|
|
74
139
|
Get = "2",
|
|
@@ -97,6 +162,11 @@ type UserAgentDetailsWithCategory<T extends Category> = CustomUserAgentDetailsBa
|
|
|
97
162
|
type CustomUserAgentDetailsBase = {
|
|
98
163
|
framework?: Framework;
|
|
99
164
|
};
|
|
165
|
+
/**
|
|
166
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
167
|
+
* See the migration guide:
|
|
168
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
169
|
+
*/
|
|
100
170
|
export type CustomUserAgentDetails = (CustomUserAgentDetailsBase & {
|
|
101
171
|
category?: never;
|
|
102
172
|
action?: never;
|
package/lib/Platform/types.js
CHANGED
|
@@ -3,6 +3,11 @@
|
|
|
3
3
|
// SPDX-License-Identifier: Apache-2.0
|
|
4
4
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
5
|
exports.StorageAction = exports.PushNotificationAction = exports.PubSubAction = exports.PredictionsAction = exports.InteractionsAction = exports.InAppMessagingAction = exports.GeoAction = exports.DataStoreAction = exports.AuthAction = exports.ApiAction = exports.AnalyticsAction = exports.Category = exports.Framework = void 0;
|
|
6
|
+
/**
|
|
7
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
8
|
+
* See the migration guide:
|
|
9
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
10
|
+
*/
|
|
6
11
|
var Framework;
|
|
7
12
|
(function (Framework) {
|
|
8
13
|
// < 100 - Web frameworks
|
|
@@ -24,7 +29,12 @@ var Framework;
|
|
|
24
29
|
// 200s - Mobile framework
|
|
25
30
|
Framework["ReactNative"] = "201";
|
|
26
31
|
Framework["Expo"] = "202";
|
|
27
|
-
})(Framework
|
|
32
|
+
})(Framework || (exports.Framework = Framework = {}));
|
|
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
|
var Category;
|
|
29
39
|
(function (Category) {
|
|
30
40
|
Category["API"] = "api";
|
|
@@ -38,12 +48,22 @@ var Category;
|
|
|
38
48
|
Category["PubSub"] = "pubsub";
|
|
39
49
|
Category["PushNotification"] = "pushnotification";
|
|
40
50
|
Category["Storage"] = "storage";
|
|
41
|
-
})(Category
|
|
51
|
+
})(Category || (exports.Category = Category = {}));
|
|
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
|
+
*/
|
|
42
57
|
var AnalyticsAction;
|
|
43
58
|
(function (AnalyticsAction) {
|
|
44
59
|
AnalyticsAction["Record"] = "1";
|
|
45
60
|
AnalyticsAction["UpdateEndpoint"] = "2";
|
|
46
|
-
})(AnalyticsAction
|
|
61
|
+
})(AnalyticsAction || (exports.AnalyticsAction = AnalyticsAction = {}));
|
|
62
|
+
/**
|
|
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/
|
|
66
|
+
*/
|
|
47
67
|
var ApiAction;
|
|
48
68
|
(function (ApiAction) {
|
|
49
69
|
ApiAction["GraphQl"] = "1";
|
|
@@ -53,7 +73,12 @@ var ApiAction;
|
|
|
53
73
|
ApiAction["Patch"] = "5";
|
|
54
74
|
ApiAction["Del"] = "6";
|
|
55
75
|
ApiAction["Head"] = "7";
|
|
56
|
-
})(ApiAction
|
|
76
|
+
})(ApiAction || (exports.ApiAction = ApiAction = {}));
|
|
77
|
+
/**
|
|
78
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
79
|
+
* See the migration guide:
|
|
80
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
81
|
+
*/
|
|
57
82
|
var AuthAction;
|
|
58
83
|
(function (AuthAction) {
|
|
59
84
|
// SignUp = '1',
|
|
@@ -90,38 +115,78 @@ var AuthAction;
|
|
|
90
115
|
// RememberDevice = '32',
|
|
91
116
|
// ForgetDevice = '33',
|
|
92
117
|
// FetchDevices = '34',
|
|
93
|
-
})(AuthAction
|
|
118
|
+
})(AuthAction || (exports.AuthAction = AuthAction = {}));
|
|
119
|
+
/**
|
|
120
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
121
|
+
* See the migration guide:
|
|
122
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
123
|
+
*/
|
|
94
124
|
var DataStoreAction;
|
|
95
125
|
(function (DataStoreAction) {
|
|
96
126
|
DataStoreAction["Subscribe"] = "1";
|
|
97
127
|
DataStoreAction["GraphQl"] = "2";
|
|
98
|
-
})(DataStoreAction
|
|
128
|
+
})(DataStoreAction || (exports.DataStoreAction = DataStoreAction = {}));
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
131
|
+
* See the migration guide:
|
|
132
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
133
|
+
*/
|
|
99
134
|
var GeoAction;
|
|
100
135
|
(function (GeoAction) {
|
|
101
136
|
GeoAction["None"] = "0";
|
|
102
|
-
})(GeoAction
|
|
137
|
+
})(GeoAction || (exports.GeoAction = GeoAction = {}));
|
|
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
|
+
*/
|
|
103
143
|
var InAppMessagingAction;
|
|
104
144
|
(function (InAppMessagingAction) {
|
|
105
145
|
InAppMessagingAction["None"] = "0";
|
|
106
|
-
})(InAppMessagingAction
|
|
146
|
+
})(InAppMessagingAction || (exports.InAppMessagingAction = InAppMessagingAction = {}));
|
|
147
|
+
/**
|
|
148
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
149
|
+
* See the migration guide:
|
|
150
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
151
|
+
*/
|
|
107
152
|
var InteractionsAction;
|
|
108
153
|
(function (InteractionsAction) {
|
|
109
154
|
InteractionsAction["None"] = "0";
|
|
110
|
-
})(InteractionsAction
|
|
155
|
+
})(InteractionsAction || (exports.InteractionsAction = InteractionsAction = {}));
|
|
156
|
+
/**
|
|
157
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
158
|
+
* See the migration guide:
|
|
159
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
160
|
+
*/
|
|
111
161
|
var PredictionsAction;
|
|
112
162
|
(function (PredictionsAction) {
|
|
113
163
|
PredictionsAction["Convert"] = "1";
|
|
114
164
|
PredictionsAction["Identify"] = "2";
|
|
115
165
|
PredictionsAction["Interpret"] = "3";
|
|
116
|
-
})(PredictionsAction
|
|
166
|
+
})(PredictionsAction || (exports.PredictionsAction = PredictionsAction = {}));
|
|
167
|
+
/**
|
|
168
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
169
|
+
* See the migration guide:
|
|
170
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
171
|
+
*/
|
|
117
172
|
var PubSubAction;
|
|
118
173
|
(function (PubSubAction) {
|
|
119
174
|
PubSubAction["Subscribe"] = "1";
|
|
120
|
-
})(PubSubAction
|
|
175
|
+
})(PubSubAction || (exports.PubSubAction = PubSubAction = {}));
|
|
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
|
+
*/
|
|
121
181
|
var PushNotificationAction;
|
|
122
182
|
(function (PushNotificationAction) {
|
|
123
183
|
PushNotificationAction["None"] = "0";
|
|
124
|
-
})(PushNotificationAction
|
|
184
|
+
})(PushNotificationAction || (exports.PushNotificationAction = PushNotificationAction = {}));
|
|
185
|
+
/**
|
|
186
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
187
|
+
* See the migration guide:
|
|
188
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
189
|
+
*/
|
|
125
190
|
var StorageAction;
|
|
126
191
|
(function (StorageAction) {
|
|
127
192
|
StorageAction["Put"] = "1";
|
|
@@ -130,4 +195,4 @@ var StorageAction;
|
|
|
130
195
|
StorageAction["Copy"] = "4";
|
|
131
196
|
StorageAction["Remove"] = "5";
|
|
132
197
|
StorageAction["GetProperties"] = "6";
|
|
133
|
-
})(StorageAction
|
|
198
|
+
})(StorageAction || (exports.StorageAction = StorageAction = {}));
|
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const version = "5.3.
|
|
1
|
+
export declare const version = "5.3.41";
|
package/lib/Platform/version.js
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
import { CreateLogGroupCommandInput, CreateLogGroupCommandOutput, CreateLogStreamCommandInput, CreateLogStreamCommandOutput, DescribeLogGroupsCommandInput, DescribeLogGroupsCommandOutput, DescribeLogStreamsCommandInput, DescribeLogStreamsCommandOutput, GetLogEventsCommandInput, GetLogEventsCommandOutput, InputLogEvent } from '@aws-sdk/client-cloudwatch-logs';
|
|
2
2
|
import { AWSCloudWatchProviderOptions, LoggingProvider } from '../types/types';
|
|
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
|
declare class AWSCloudWatchProvider implements LoggingProvider {
|
|
4
9
|
static readonly PROVIDER_NAME = "AWSCloudWatch";
|
|
5
10
|
static readonly CATEGORY = "Logging";
|
|
@@ -11,8 +11,8 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
11
11
|
});
|
|
12
12
|
};
|
|
13
13
|
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
14
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
15
|
-
return g =
|
|
14
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g = Object.create((typeof Iterator === "function" ? Iterator : Object).prototype);
|
|
15
|
+
return g.next = verb(0), g["throw"] = verb(1), g["return"] = verb(2), typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
16
16
|
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
17
17
|
function step(op) {
|
|
18
18
|
if (f) throw new TypeError("Generator is already executing.");
|
|
@@ -71,6 +71,11 @@ var Platform_1 = require("../Platform");
|
|
|
71
71
|
var parseAWSExports_1 = require("../parseAWSExports");
|
|
72
72
|
var Constants_1 = require("../Util/Constants");
|
|
73
73
|
var logger = new Logger_1.ConsoleLogger('AWSCloudWatch');
|
|
74
|
+
/**
|
|
75
|
+
* @deprecated Amplify JavaScript v5 is in maintenance mode. Upgrade to v6.
|
|
76
|
+
* See the migration guide:
|
|
77
|
+
* https://docs.amplify.aws/gen1/javascript/build-a-backend/troubleshooting/migrate-from-javascript-v5-to-v6/
|
|
78
|
+
*/
|
|
74
79
|
var AWSCloudWatchProvider = /** @class */ (function () {
|
|
75
80
|
function AWSCloudWatchProvider(config) {
|
|
76
81
|
this.configure(config);
|
|
@@ -1,5 +1,20 @@
|
|
|
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 Linking: {};
|
|
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 AppState: {
|
|
3
13
|
addEventListener: (action: any, handler: any) => any;
|
|
4
14
|
};
|
|
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
|
+
*/
|
|
5
20
|
export declare const AsyncStorage: any;
|