@aws-amplify/core 4.6.2-next.20 → 4.6.2-next.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +38 -0
- package/lib/.tsbuildinfo +3 -0
- package/lib/Amplify.d.ts +0 -4
- package/lib/Amplify.js +0 -4
- package/lib/Amplify.js.map +1 -1
- package/lib/ClientDevice/android.js +1 -1
- package/lib/ClientDevice/browser.js +1 -1
- package/lib/ClientDevice/index.d.ts +0 -4
- package/lib/ClientDevice/index.js +1 -5
- package/lib/ClientDevice/index.js.map +1 -1
- package/lib/ClientDevice/ios.js +1 -1
- package/lib/ClientDevice/reactnative.d.ts +0 -7
- package/lib/ClientDevice/reactnative.js +1 -5
- package/lib/ClientDevice/reactnative.js.map +1 -1
- package/lib/Credentials.d.ts +1 -5
- package/lib/Credentials.js +1 -5
- package/lib/Credentials.js.map +1 -1
- package/lib/Errors.js +1 -1
- package/lib/Hub.d.ts +28 -4
- package/lib/Hub.js +34 -10
- package/lib/Hub.js.map +1 -1
- package/lib/I18n/I18n.js +1 -1
- package/lib/I18n/index.d.ts +0 -4
- package/lib/I18n/index.js +1 -5
- package/lib/I18n/index.js.map +1 -1
- package/lib/I18n/types.js +1 -1
- package/lib/JS.d.ts +0 -24
- package/lib/JS.js +3 -28
- package/lib/JS.js.map +1 -1
- package/lib/Logger/ConsoleLogger.js +1 -1
- package/lib/Logger/index.d.ts +1 -1
- package/lib/Logger/index.js +4 -3
- package/lib/Logger/index.js.map +1 -1
- package/lib/Logger/logger-interface.d.ts +0 -4
- package/lib/Logger/logger-interface.js +1 -1
- package/lib/OAuthHelper/FacebookOAuth.d.ts +0 -4
- package/lib/OAuthHelper/FacebookOAuth.js +1 -5
- package/lib/OAuthHelper/FacebookOAuth.js.map +1 -1
- package/lib/OAuthHelper/GoogleOAuth.d.ts +0 -4
- package/lib/OAuthHelper/GoogleOAuth.js +1 -5
- package/lib/OAuthHelper/GoogleOAuth.js.map +1 -1
- package/lib/OAuthHelper/index.js +1 -1
- package/lib/Platform/index.d.ts +0 -4
- package/lib/Platform/index.js +1 -5
- package/lib/Platform/index.js.map +1 -1
- package/lib/Platform/version.d.ts +1 -1
- package/lib/Platform/version.js +1 -1
- package/lib/Platform/version.js.map +1 -1
- package/lib/Providers/AWSCloudWatchProvider.js +3 -3
- package/lib/Providers/AWSCloudWatchProvider.js.map +1 -1
- package/lib/Providers/index.d.ts +1 -1
- package/lib/Providers/index.js +2 -2
- package/lib/Providers/index.js.map +1 -1
- package/lib/RNComponents/index.js +1 -1
- package/lib/RNComponents/reactnative.js +1 -1
- package/lib/ServiceWorker/ServiceWorker.d.ts +0 -4
- package/lib/ServiceWorker/ServiceWorker.js +0 -4
- package/lib/ServiceWorker/ServiceWorker.js.map +1 -1
- package/lib/Signer.d.ts +0 -4
- package/lib/Signer.js +1 -5
- package/lib/Signer.js.map +1 -1
- package/lib/StorageHelper/index.d.ts +0 -4
- package/lib/StorageHelper/index.js +1 -5
- package/lib/StorageHelper/index.js.map +1 -1
- package/lib/StorageHelper/reactnative.d.ts +0 -4
- package/lib/StorageHelper/reactnative.js +1 -5
- package/lib/StorageHelper/reactnative.js.map +1 -1
- package/lib/Util/BackgroundProcessManager.d.ts +204 -0
- package/lib/Util/BackgroundProcessManager.js +385 -0
- package/lib/Util/BackgroundProcessManager.js.map +1 -0
- package/lib/Util/Constants.js +1 -1
- package/lib/Util/Retry.d.ts +2 -2
- package/lib/Util/Retry.js +76 -34
- package/lib/Util/Retry.js.map +1 -1
- package/lib/Util/index.d.ts +5 -4
- package/lib/Util/index.js +23 -5
- package/lib/Util/index.js.map +1 -1
- package/lib/constants.js +1 -1
- package/lib/index.d.ts +8 -9
- package/lib/index.js +53 -12
- package/lib/index.js.map +1 -1
- package/lib/parseAWSExports.d.ts +2 -0
- package/lib/{Parser.js → parseAWSExports.js} +2 -16
- package/lib/parseAWSExports.js.map +1 -0
- package/lib-esm/.tsbuildinfo +3 -0
- package/lib-esm/Amplify.d.ts +0 -4
- package/lib-esm/Amplify.js +0 -4
- package/lib-esm/Amplify.js.map +1 -1
- package/lib-esm/ClientDevice/android.js +1 -1
- package/lib-esm/ClientDevice/browser.js +1 -1
- package/lib-esm/ClientDevice/index.d.ts +0 -4
- package/lib-esm/ClientDevice/index.js +1 -5
- package/lib-esm/ClientDevice/index.js.map +1 -1
- package/lib-esm/ClientDevice/ios.js +1 -1
- package/lib-esm/ClientDevice/reactnative.d.ts +0 -7
- package/lib-esm/ClientDevice/reactnative.js +1 -5
- package/lib-esm/ClientDevice/reactnative.js.map +1 -1
- package/lib-esm/Credentials.d.ts +1 -5
- package/lib-esm/Credentials.js +1 -5
- package/lib-esm/Credentials.js.map +1 -1
- package/lib-esm/Errors.js +1 -1
- package/lib-esm/Hub.d.ts +28 -4
- package/lib-esm/Hub.js +34 -10
- package/lib-esm/Hub.js.map +1 -1
- package/lib-esm/I18n/I18n.js +1 -1
- package/lib-esm/I18n/index.d.ts +0 -4
- package/lib-esm/I18n/index.js +1 -5
- package/lib-esm/I18n/index.js.map +1 -1
- package/lib-esm/I18n/types.js +1 -1
- package/lib-esm/JS.d.ts +0 -24
- package/lib-esm/JS.js +3 -28
- package/lib-esm/JS.js.map +1 -1
- package/lib-esm/Logger/ConsoleLogger.js +1 -1
- package/lib-esm/Logger/index.d.ts +1 -1
- package/lib-esm/Logger/index.js +2 -2
- package/lib-esm/Logger/index.js.map +1 -1
- package/lib-esm/Logger/logger-interface.d.ts +0 -4
- package/lib-esm/Logger/logger-interface.js +1 -1
- package/lib-esm/OAuthHelper/FacebookOAuth.d.ts +0 -4
- package/lib-esm/OAuthHelper/FacebookOAuth.js +1 -5
- package/lib-esm/OAuthHelper/FacebookOAuth.js.map +1 -1
- package/lib-esm/OAuthHelper/GoogleOAuth.d.ts +0 -4
- package/lib-esm/OAuthHelper/GoogleOAuth.js +1 -5
- package/lib-esm/OAuthHelper/GoogleOAuth.js.map +1 -1
- package/lib-esm/OAuthHelper/index.js +1 -1
- package/lib-esm/Platform/index.d.ts +0 -4
- package/lib-esm/Platform/index.js +1 -5
- package/lib-esm/Platform/index.js.map +1 -1
- package/lib-esm/Platform/version.d.ts +1 -1
- package/lib-esm/Platform/version.js +1 -1
- package/lib-esm/Platform/version.js.map +1 -1
- package/lib-esm/Providers/AWSCloudWatchProvider.js +3 -3
- package/lib-esm/Providers/AWSCloudWatchProvider.js.map +1 -1
- package/lib-esm/Providers/index.d.ts +1 -1
- package/lib-esm/Providers/index.js +1 -1
- package/lib-esm/Providers/index.js.map +1 -1
- package/lib-esm/RNComponents/index.js +1 -1
- package/lib-esm/RNComponents/reactnative.js +1 -1
- package/lib-esm/ServiceWorker/ServiceWorker.d.ts +0 -4
- package/lib-esm/ServiceWorker/ServiceWorker.js +0 -4
- package/lib-esm/ServiceWorker/ServiceWorker.js.map +1 -1
- package/lib-esm/Signer.d.ts +0 -4
- package/lib-esm/Signer.js +1 -5
- package/lib-esm/Signer.js.map +1 -1
- package/lib-esm/StorageHelper/index.d.ts +0 -4
- package/lib-esm/StorageHelper/index.js +1 -5
- package/lib-esm/StorageHelper/index.js.map +1 -1
- package/lib-esm/StorageHelper/reactnative.d.ts +0 -4
- package/lib-esm/StorageHelper/reactnative.js +1 -5
- package/lib-esm/StorageHelper/reactnative.js.map +1 -1
- package/lib-esm/Util/BackgroundProcessManager.d.ts +204 -0
- package/lib-esm/Util/BackgroundProcessManager.js +383 -0
- package/lib-esm/Util/BackgroundProcessManager.js.map +1 -0
- package/lib-esm/Util/Constants.js +1 -1
- package/lib-esm/Util/Retry.d.ts +2 -2
- package/lib-esm/Util/Retry.js +76 -34
- package/lib-esm/Util/Retry.js.map +1 -1
- package/lib-esm/Util/index.d.ts +5 -4
- package/lib-esm/Util/index.js +5 -4
- package/lib-esm/Util/index.js.map +1 -1
- package/lib-esm/constants.js +1 -1
- package/lib-esm/index.d.ts +8 -9
- package/lib-esm/index.js +9 -10
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/parseAWSExports.d.ts +2 -0
- package/lib-esm/{Parser.js → parseAWSExports.js} +2 -16
- package/lib-esm/parseAWSExports.js.map +1 -0
- package/package.json +11 -4
- package/src/Amplify.ts +0 -5
- package/src/ClientDevice/android.ts +1 -1
- package/src/ClientDevice/browser.ts +1 -1
- package/src/ClientDevice/index.ts +1 -6
- package/src/ClientDevice/ios.ts +1 -1
- package/src/ClientDevice/reactnative.ts +1 -6
- package/src/Credentials.ts +13 -19
- package/src/Errors.ts +1 -1
- package/src/Hub.ts +39 -12
- package/src/I18n/I18n.ts +1 -1
- package/src/I18n/index.ts +1 -6
- package/src/I18n/types.ts +1 -1
- package/src/JS.ts +5 -26
- package/src/Logger/ConsoleLogger.ts +1 -1
- package/src/Logger/index.ts +2 -2
- package/src/Logger/logger-interface.ts +1 -6
- package/src/OAuthHelper/FacebookOAuth.ts +1 -6
- package/src/OAuthHelper/GoogleOAuth.ts +1 -6
- package/src/OAuthHelper/index.ts +1 -1
- package/src/Platform/index.ts +1 -6
- package/src/Platform/version.ts +1 -1
- package/src/Providers/AWSCloudWatchProvider.ts +3 -3
- package/src/Providers/index.ts +1 -1
- package/src/RNComponents/index.ts +1 -1
- package/src/RNComponents/reactnative.ts +1 -1
- package/src/ServiceWorker/ServiceWorker.ts +1 -6
- package/src/Signer.ts +1 -6
- package/src/StorageHelper/index.ts +1 -6
- package/src/StorageHelper/reactnative.ts +1 -6
- package/src/Util/BackgroundProcessManager.ts +449 -0
- package/src/Util/Constants.ts +1 -1
- package/src/Util/Retry.ts +66 -31
- package/src/Util/index.ts +23 -4
- package/src/constants.ts +1 -1
- package/src/index.ts +47 -10
- package/src/{Parser.ts → parseAWSExports.ts} +1 -13
- package/build.js +0 -5
- package/dist/aws-amplify-core.js +0 -39352
- package/dist/aws-amplify-core.js.map +0 -1
- package/dist/aws-amplify-core.min.js +0 -134
- package/dist/aws-amplify-core.min.js.map +0 -1
- package/index.js +0 -7
- package/lib/Parser.d.ts +0 -12
- package/lib/Parser.js.map +0 -1
- package/lib-esm/Parser.d.ts +0 -12
- package/lib-esm/Parser.js.map +0 -1
- package/webpack.config.dev.js +0 -6
package/lib-esm/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -12,30 +12,29 @@
|
|
|
12
12
|
*/
|
|
13
13
|
import { Amplify } from './Amplify';
|
|
14
14
|
import { Platform } from './Platform';
|
|
15
|
+
export { Amplify } from './Amplify';
|
|
15
16
|
export { AmplifyClass } from './Amplify';
|
|
16
17
|
export { ClientDevice } from './ClientDevice';
|
|
17
18
|
export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
|
|
18
|
-
export
|
|
19
|
+
export { invalidParameter, missingConfig } from './Errors';
|
|
19
20
|
export { Hub } from './Hub';
|
|
20
21
|
export { I18n } from './I18n';
|
|
21
|
-
export
|
|
22
|
+
export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './JS';
|
|
22
23
|
export { Signer } from './Signer';
|
|
23
|
-
export
|
|
24
|
-
export
|
|
24
|
+
export { parseAWSExports } from './parseAWSExports';
|
|
25
|
+
export { AWSCloudWatchProvider } from './Providers';
|
|
25
26
|
export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
|
|
26
|
-
export
|
|
27
|
+
export { AppState, AsyncStorage, Linking } from './RNComponents';
|
|
27
28
|
export { Credentials, CredentialsClass } from './Credentials';
|
|
28
29
|
export { ServiceWorker } from './ServiceWorker';
|
|
29
30
|
export { StorageHelper, MemoryStorage } from './StorageHelper';
|
|
30
31
|
export { UniversalStorage } from './UniversalStorage';
|
|
31
32
|
export { Platform, getAmplifyUserAgent } from './Platform';
|
|
32
|
-
export
|
|
33
|
+
export { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
|
|
33
34
|
export var Constants = {
|
|
34
35
|
userAgent: Platform.userAgent,
|
|
35
36
|
};
|
|
36
|
-
export
|
|
37
|
-
export * from './Util';
|
|
38
|
-
export { Amplify };
|
|
37
|
+
export { AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, BackgroundManagerNotOpenError, BackgroundProcessManager, BackgroundProcessManagerState, DateUtils, Mutex, NO_CREDS_ERROR_STRING, NonRetryableError, RETRY_ERROR_CODES, Reachability, isNonRetryableError, jitteredBackoff, jitteredExponentialRetry, retry, urlSafeDecode, urlSafeEncode, } from './Util';
|
|
39
38
|
/**
|
|
40
39
|
* @deprecated use named import
|
|
41
40
|
*/
|
package/lib-esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAClE,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AACzC,OAAO,EAAE,YAAY,EAAE,MAAM,gBAAgB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,aAAa,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC;AAClE,OAAO,EAAE,gBAAgB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAuC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,OAAO,EACN,aAAa,EACb,qBAAqB,EACrB,oBAAoB,EACpB,OAAO,EACP,cAAc,EACd,UAAU,EACV,WAAW,EACX,mBAAmB,EACnB,oBAAoB,EACpB,WAAW,EACX,sBAAsB,EACtB,sBAAsB,GACtB,MAAM,MAAM,CAAC;AACd,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AACpD,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAE,QAAQ,EAAE,YAAY,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAE,WAAW,EAAE,gBAAgB,EAAE,MAAM,eAAe,CAAC;AAC9D,OAAO,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAEhD,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAC;AAC/D,OAAO,EAAE,gBAAgB,EAAE,MAAM,oBAAoB,CAAC;AACtD,OAAO,EAAE,QAAQ,EAAE,mBAAmB,EAAE,MAAM,YAAY,CAAC;AAC3D,OAAO,EACN,oCAAoC,EACpC,6CAA6C,EAC7C,iBAAiB,GACjB,MAAM,aAAa,CAAC;AAErB,MAAM,CAAC,IAAM,SAAS,GAAG;IACxB,SAAS,EAAE,QAAQ,CAAC,SAAS;CAC7B,CAAC;AAEF,OAAO,EACN,+BAA+B,EAC/B,uBAAuB,EACvB,mCAAmC,EACnC,6BAA6B,EAC7B,4BAA4B,EAC5B,6BAA6B,EAC7B,wBAAwB,EACxB,6BAA6B,EAC7B,SAAS,EACT,KAAK,EACL,qBAAqB,EACrB,iBAAiB,EACjB,iBAAiB,EACjB,YAAY,EACZ,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,KAAK,EACL,aAAa,EACb,aAAa,GACb,MAAM,QAAQ,CAAC;AAEhB;;GAEG;AACH,eAAe,OAAO,CAAC"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign } from "tslib";
|
|
2
2
|
import { ConsoleLogger as Logger } from './Logger';
|
|
3
3
|
var logger = new Logger('Parser');
|
|
4
|
-
export var
|
|
4
|
+
export var parseAWSExports = function (config) {
|
|
5
5
|
var amplifyConfig = {};
|
|
6
6
|
// Analytics
|
|
7
7
|
if (config['aws_mobile_analytics_app_id']) {
|
|
@@ -59,18 +59,4 @@ export var parseMobileHubConfig = function (config) {
|
|
|
59
59
|
logger.debug('parse config', config, 'to amplifyconfig', amplifyConfig);
|
|
60
60
|
return amplifyConfig;
|
|
61
61
|
};
|
|
62
|
-
|
|
63
|
-
* @deprecated use per-function export
|
|
64
|
-
*/
|
|
65
|
-
var Parser = /** @class */ (function () {
|
|
66
|
-
function Parser() {
|
|
67
|
-
}
|
|
68
|
-
Parser.parseMobilehubConfig = parseMobileHubConfig;
|
|
69
|
-
return Parser;
|
|
70
|
-
}());
|
|
71
|
-
export { Parser };
|
|
72
|
-
/**
|
|
73
|
-
* @deprecated use per-function export
|
|
74
|
-
*/
|
|
75
|
-
export default Parser;
|
|
76
|
-
//# sourceMappingURL=Parser.js.map
|
|
62
|
+
//# sourceMappingURL=parseAWSExports.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"parseAWSExports.js","sourceRoot":"","sources":["../src/parseAWSExports.ts"],"names":[],"mappings":"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"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/core",
|
|
3
|
-
"version": "4.6.2-next.
|
|
3
|
+
"version": "4.6.2-next.36+580cda186",
|
|
4
4
|
"description": "Core category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -29,7 +29,8 @@
|
|
|
29
29
|
"generate-version": "genversion src/Platform/version.ts --es6 --semi",
|
|
30
30
|
"clean": "rimraf lib-esm lib dist",
|
|
31
31
|
"format": "echo \"Not implemented\"",
|
|
32
|
-
"lint": "tslint 'src/**/*.ts'"
|
|
32
|
+
"lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
|
|
33
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 76.41"
|
|
33
34
|
},
|
|
34
35
|
"react-native": {
|
|
35
36
|
"./lib/index": "./lib-esm/index.js",
|
|
@@ -54,8 +55,14 @@
|
|
|
54
55
|
"prepend-file": "^1.3.1",
|
|
55
56
|
"react-native": "^0.64.1"
|
|
56
57
|
},
|
|
58
|
+
"files": [
|
|
59
|
+
"lib",
|
|
60
|
+
"lib-esm",
|
|
61
|
+
"src",
|
|
62
|
+
"typings.d.ts"
|
|
63
|
+
],
|
|
57
64
|
"dependencies": {
|
|
58
|
-
"@aws-crypto/sha256-js": "1.
|
|
65
|
+
"@aws-crypto/sha256-js": "1.2.2",
|
|
59
66
|
"@aws-sdk/client-cloudwatch-logs": "3.6.1",
|
|
60
67
|
"@aws-sdk/client-cognito-identity": "3.6.1",
|
|
61
68
|
"@aws-sdk/credential-provider-cognito-identity": "3.6.1",
|
|
@@ -109,5 +116,5 @@
|
|
|
109
116
|
"lib-esm"
|
|
110
117
|
]
|
|
111
118
|
},
|
|
112
|
-
"gitHead": "
|
|
119
|
+
"gitHead": "580cda186f10ead3bb99acb7a4825c435c657d33"
|
|
113
120
|
}
|
package/src/Amplify.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -22,8 +22,3 @@ export class ClientDevice {
|
|
|
22
22
|
return dimension();
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @deprecated use named import
|
|
28
|
-
*/
|
|
29
|
-
export default ClientDevice;
|
package/src/ClientDevice/ios.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -26,8 +26,3 @@ export class ClientDevice {
|
|
|
26
26
|
}
|
|
27
27
|
}
|
|
28
28
|
}
|
|
29
|
-
|
|
30
|
-
/**
|
|
31
|
-
* @deprecated use named import
|
|
32
|
-
*/
|
|
33
|
-
export default ClientDevice;
|
package/src/Credentials.ts
CHANGED
|
@@ -187,7 +187,7 @@ export class CredentialsClass {
|
|
|
187
187
|
const MAX_DELAY_MS = 10 * 1000;
|
|
188
188
|
// refreshHandler will retry network errors, otherwise it will
|
|
189
189
|
// return NonRetryableError to break out of jitteredExponentialRetry
|
|
190
|
-
return jitteredExponentialRetry(refreshHandler, [], MAX_DELAY_MS)
|
|
190
|
+
return jitteredExponentialRetry<any>(refreshHandler, [], MAX_DELAY_MS)
|
|
191
191
|
.then(data => {
|
|
192
192
|
logger.debug('refresh federated token sucessfully', data);
|
|
193
193
|
return this._setCredentialsFromFederation({
|
|
@@ -256,7 +256,7 @@ export class CredentialsClass {
|
|
|
256
256
|
);
|
|
257
257
|
}
|
|
258
258
|
|
|
259
|
-
const identityId = this._identityId = await this._getGuestIdentityId();
|
|
259
|
+
const identityId = (this._identityId = await this._getGuestIdentityId());
|
|
260
260
|
|
|
261
261
|
const cognitoClient = new CognitoIdentityClient({
|
|
262
262
|
region,
|
|
@@ -446,19 +446,14 @@ export class CredentialsClass {
|
|
|
446
446
|
}
|
|
447
447
|
|
|
448
448
|
const {
|
|
449
|
-
Credentials: {
|
|
450
|
-
AccessKeyId,
|
|
451
|
-
Expiration,
|
|
452
|
-
SecretKey,
|
|
453
|
-
SessionToken,
|
|
454
|
-
},
|
|
449
|
+
Credentials: { AccessKeyId, Expiration, SecretKey, SessionToken },
|
|
455
450
|
// single source of truth for the primary identity associated with the logins
|
|
456
451
|
// only if a guest identity is used for a first-time user, that guest identity will become its primary identity
|
|
457
452
|
IdentityId: primaryIdentityId,
|
|
458
453
|
} = await cognitoClient.send(
|
|
459
454
|
new GetCredentialsForIdentityCommand({
|
|
460
|
-
|
|
461
|
-
|
|
455
|
+
IdentityId: guestIdentityId || generatedOrRetrievedIdentityId,
|
|
456
|
+
Logins: logins,
|
|
462
457
|
})
|
|
463
458
|
);
|
|
464
459
|
|
|
@@ -466,9 +461,13 @@ export class CredentialsClass {
|
|
|
466
461
|
if (guestIdentityId) {
|
|
467
462
|
// if guestIdentity is found and used by GetCredentialsForIdentity
|
|
468
463
|
// it will be linked to the logins provided, and disqualified as an unauth identity
|
|
469
|
-
logger.debug(
|
|
464
|
+
logger.debug(
|
|
465
|
+
`The guest identity ${guestIdentityId} has been successfully linked to the logins`
|
|
466
|
+
);
|
|
470
467
|
if (guestIdentityId === primaryIdentityId) {
|
|
471
|
-
logger.debug(
|
|
468
|
+
logger.debug(
|
|
469
|
+
`The guest identity ${guestIdentityId} has become the primary identity`
|
|
470
|
+
);
|
|
472
471
|
}
|
|
473
472
|
// remove it from local storage to avoid being used as a guest Identity by _setCredentialsForGuest
|
|
474
473
|
await this._removeGuestIdentityId();
|
|
@@ -481,7 +480,7 @@ export class CredentialsClass {
|
|
|
481
480
|
sessionToken: SessionToken,
|
|
482
481
|
expiration: Expiration,
|
|
483
482
|
identityId: primaryIdentityId,
|
|
484
|
-
|
|
483
|
+
};
|
|
485
484
|
};
|
|
486
485
|
|
|
487
486
|
const credentials = credentialsProvider().catch(async err => {
|
|
@@ -587,7 +586,7 @@ export class CredentialsClass {
|
|
|
587
586
|
await this._storageSync;
|
|
588
587
|
this._storage.setItem(
|
|
589
588
|
this._getCognitoIdentityIdStorageKey(identityPoolId),
|
|
590
|
-
identityId
|
|
589
|
+
identityId
|
|
591
590
|
);
|
|
592
591
|
} catch (e) {
|
|
593
592
|
logger.debug('Failed to cache guest identityId', e);
|
|
@@ -625,8 +624,3 @@ export class CredentialsClass {
|
|
|
625
624
|
export const Credentials = new CredentialsClass(null);
|
|
626
625
|
|
|
627
626
|
Amplify.register(Credentials);
|
|
628
|
-
|
|
629
|
-
/**
|
|
630
|
-
* @deprecated use named import
|
|
631
|
-
*/
|
|
632
|
-
export default Credentials;
|
package/src/Errors.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/Hub.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -15,10 +15,11 @@ import { ConsoleLogger as Logger } from './Logger';
|
|
|
15
15
|
|
|
16
16
|
const logger = new Logger('Hub');
|
|
17
17
|
|
|
18
|
-
const AMPLIFY_SYMBOL = (
|
|
19
|
-
typeof Symbol.for === 'function'
|
|
20
|
-
|
|
21
|
-
|
|
18
|
+
const AMPLIFY_SYMBOL = (
|
|
19
|
+
typeof Symbol !== 'undefined' && typeof Symbol.for === 'function'
|
|
20
|
+
? Symbol.for('amplify_default')
|
|
21
|
+
: '@@amplify_default'
|
|
22
|
+
) as Symbol;
|
|
22
23
|
interface IPattern {
|
|
23
24
|
pattern: RegExp;
|
|
24
25
|
callback: HubCallback;
|
|
@@ -71,8 +72,13 @@ export class HubClass {
|
|
|
71
72
|
this.name = name;
|
|
72
73
|
}
|
|
73
74
|
|
|
74
|
-
|
|
75
|
-
|
|
75
|
+
/**
|
|
76
|
+
* Used internally to remove a Hub listener.
|
|
77
|
+
*
|
|
78
|
+
* @remarks
|
|
79
|
+
* This private method is for internal use only. Instead of calling Hub.remove, call the result of Hub.listen.
|
|
80
|
+
*/
|
|
81
|
+
private _remove(channel: string | RegExp, listener: HubCallback) {
|
|
76
82
|
if (channel instanceof RegExp) {
|
|
77
83
|
const pattern = this.patterns.find(
|
|
78
84
|
({ pattern }) => pattern.source === channel.source
|
|
@@ -94,6 +100,22 @@ export class HubClass {
|
|
|
94
100
|
}
|
|
95
101
|
}
|
|
96
102
|
|
|
103
|
+
/**
|
|
104
|
+
* @deprecated Instead of calling Hub.remove, call the result of Hub.listen.
|
|
105
|
+
*/
|
|
106
|
+
remove(channel: string | RegExp, listener: HubCallback) {
|
|
107
|
+
this._remove(channel, listener);
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Used to send a Hub event.
|
|
112
|
+
*
|
|
113
|
+
* @param channel - The channel on which the event will be broadcast
|
|
114
|
+
* @param payload - The HubPayload
|
|
115
|
+
* @param source - The source of the event; defaults to ''
|
|
116
|
+
* @param ampSymbol - Symbol used to determine if the event is dispatched internally on a protected channel
|
|
117
|
+
*
|
|
118
|
+
*/
|
|
97
119
|
dispatch(
|
|
98
120
|
channel: string,
|
|
99
121
|
payload: HubPayload,
|
|
@@ -124,6 +146,15 @@ export class HubClass {
|
|
|
124
146
|
}
|
|
125
147
|
}
|
|
126
148
|
|
|
149
|
+
/**
|
|
150
|
+
* Used to listen for Hub events.
|
|
151
|
+
*
|
|
152
|
+
* @param channel - The channel on which to listen
|
|
153
|
+
* @param callback - The callback to execute when an event is received on the specified channel
|
|
154
|
+
* @param listenerName - The name of the listener; defaults to 'noname'
|
|
155
|
+
* @returns A function which can be called to cancel the listener.
|
|
156
|
+
*
|
|
157
|
+
*/
|
|
127
158
|
listen(
|
|
128
159
|
channel: string | RegExp,
|
|
129
160
|
callback?: HubCallback | LegacyCallback,
|
|
@@ -162,7 +193,7 @@ export class HubClass {
|
|
|
162
193
|
}
|
|
163
194
|
|
|
164
195
|
return () => {
|
|
165
|
-
this.
|
|
196
|
+
this._remove(channel, cb);
|
|
166
197
|
};
|
|
167
198
|
}
|
|
168
199
|
|
|
@@ -212,7 +243,3 @@ export class HubClass {
|
|
|
212
243
|
pseudo Singleton for the main messaging bus, however you can still create
|
|
213
244
|
your own instance of HubClass() for a separate "private bus" of events.*/
|
|
214
245
|
export const Hub = new HubClass('__default__');
|
|
215
|
-
/**
|
|
216
|
-
* @deprecated use named import
|
|
217
|
-
*/
|
|
218
|
-
export default Hub;
|
package/src/I18n/I18n.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/I18n/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -122,8 +122,3 @@ export class I18n {
|
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
Amplify.register(I18n);
|
|
125
|
-
|
|
126
|
-
/**
|
|
127
|
-
* @deprecated use named import
|
|
128
|
-
*/
|
|
129
|
-
export default I18n;
|
package/src/I18n/types.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/JS.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -167,8 +167,10 @@ export const isWebWorker = () => {
|
|
|
167
167
|
return false;
|
|
168
168
|
}
|
|
169
169
|
const selfContext = self as { WorkerGlobalScope? };
|
|
170
|
-
return
|
|
171
|
-
|
|
170
|
+
return (
|
|
171
|
+
typeof selfContext.WorkerGlobalScope !== 'undefined' &&
|
|
172
|
+
self instanceof selfContext.WorkerGlobalScope
|
|
173
|
+
);
|
|
172
174
|
};
|
|
173
175
|
|
|
174
176
|
export const browserOrNode = () => {
|
|
@@ -265,26 +267,3 @@ export const isStrictObject = obj => {
|
|
|
265
267
|
!(obj instanceof Boolean)
|
|
266
268
|
);
|
|
267
269
|
};
|
|
268
|
-
|
|
269
|
-
/**
|
|
270
|
-
* @deprecated use per-function imports
|
|
271
|
-
*/
|
|
272
|
-
export class JS {
|
|
273
|
-
static isEmpty = isEmpty;
|
|
274
|
-
static sortByField = sortByField;
|
|
275
|
-
static objectLessAttributes = objectLessAttributes;
|
|
276
|
-
static filenameToContentType = filenameToContentType;
|
|
277
|
-
static isTextFile = isTextFile;
|
|
278
|
-
static generateRandomString = generateRandomString;
|
|
279
|
-
static makeQuerablePromise = makeQuerablePromise;
|
|
280
|
-
static isWebWorker = isWebWorker;
|
|
281
|
-
static browserOrNode = browserOrNode;
|
|
282
|
-
static transferKeyToLowerCase = transferKeyToLowerCase;
|
|
283
|
-
static transferKeyToUpperCase = transferKeyToUpperCase;
|
|
284
|
-
static isStrictObject = isStrictObject;
|
|
285
|
-
}
|
|
286
|
-
|
|
287
|
-
/**
|
|
288
|
-
* @deprecated use per-function imports
|
|
289
|
-
*/
|
|
290
|
-
export default JS;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/Logger/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -11,4 +11,4 @@
|
|
|
11
11
|
* and limitations under the License.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
export
|
|
14
|
+
export { ConsoleLogger, LOG_TYPE } from './ConsoleLogger';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -20,8 +20,3 @@ export interface Logger {
|
|
|
20
20
|
error(msg: string): void;
|
|
21
21
|
addPluggable(pluggable: LoggingProvider): void;
|
|
22
22
|
}
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* @deprecated use named import
|
|
26
|
-
*/
|
|
27
|
-
export default Logger;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -91,8 +91,3 @@ export class FacebookOAuth {
|
|
|
91
91
|
});
|
|
92
92
|
}
|
|
93
93
|
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* @deprecated use named import
|
|
97
|
-
*/
|
|
98
|
-
export default FacebookOAuth;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -102,8 +102,3 @@ export class GoogleOAuth {
|
|
|
102
102
|
});
|
|
103
103
|
}
|
|
104
104
|
}
|
|
105
|
-
|
|
106
|
-
/**
|
|
107
|
-
* @deprecated use named import
|
|
108
|
-
*/
|
|
109
|
-
export default GoogleOAuth;
|
package/src/OAuthHelper/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
package/src/Platform/index.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -38,8 +38,3 @@ if (typeof navigator !== 'undefined' && navigator.product) {
|
|
|
38
38
|
export const getAmplifyUserAgent = (content?: string) => {
|
|
39
39
|
return `${Platform.userAgent}${content ? content : ''}`;
|
|
40
40
|
};
|
|
41
|
-
|
|
42
|
-
/**
|
|
43
|
-
* @deprecated use named import
|
|
44
|
-
*/
|
|
45
|
-
export default Platform;
|
package/src/Platform/version.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
// generated by genversion
|
|
2
|
-
export const version = '4.7.
|
|
2
|
+
export const version = '4.7.10';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -43,7 +43,7 @@ import {
|
|
|
43
43
|
import { Credentials } from '../..';
|
|
44
44
|
import { ConsoleLogger as Logger } from '../Logger';
|
|
45
45
|
import { getAmplifyUserAgent } from '../Platform';
|
|
46
|
-
import {
|
|
46
|
+
import { parseAWSExports } from '../parseAWSExports';
|
|
47
47
|
import {
|
|
48
48
|
AWS_CLOUDWATCH_BASE_BUFFER_SIZE,
|
|
49
49
|
AWS_CLOUDWATCH_CATEGORY,
|
|
@@ -96,7 +96,7 @@ class AWSCloudWatchProvider implements LoggingProvider {
|
|
|
96
96
|
const conf = Object.assign(
|
|
97
97
|
{},
|
|
98
98
|
this._config,
|
|
99
|
-
|
|
99
|
+
parseAWSExports(config).Logging,
|
|
100
100
|
config
|
|
101
101
|
);
|
|
102
102
|
this._config = conf;
|
package/src/Providers/index.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AWSCloudWatchProvider } from './AWSCloudWatchProvider';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -42,7 +42,7 @@ export class ServiceWorkerClass {
|
|
|
42
42
|
// The AWS Amplify logger
|
|
43
43
|
private _logger: Logger = new Logger('ServiceWorker');
|
|
44
44
|
|
|
45
|
-
constructor() {
|
|
45
|
+
constructor() {}
|
|
46
46
|
|
|
47
47
|
/**
|
|
48
48
|
* Get the currently active service worker
|
|
@@ -202,8 +202,3 @@ export class ServiceWorkerClass {
|
|
|
202
202
|
});
|
|
203
203
|
}
|
|
204
204
|
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* @deprecated use named import
|
|
208
|
-
*/
|
|
209
|
-
export default ServiceWorkerClass;
|
package/src/Signer.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
2
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
3
3
|
*
|
|
4
4
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
5
5
|
* the License. A copy of the License is located at
|
|
@@ -439,8 +439,3 @@ export class Signer {
|
|
|
439
439
|
return result;
|
|
440
440
|
}
|
|
441
441
|
}
|
|
442
|
-
|
|
443
|
-
/**
|
|
444
|
-
* @deprecated use per-function import
|
|
445
|
-
*/
|
|
446
|
-
export default Signer;
|