@aws-amplify/core 4.6.2-next.32 → 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/lib/Amplify.d.ts +28 -0
- package/lib/ClientDevice/android.d.ts +5 -0
- package/lib/ClientDevice/android.js +1 -1
- package/lib/ClientDevice/browser.d.ts +25 -0
- package/lib/ClientDevice/browser.js +1 -1
- package/lib/ClientDevice/index.d.ts +23 -0
- package/lib/ClientDevice/index.js +1 -1
- package/lib/ClientDevice/ios.d.ts +7 -0
- package/lib/ClientDevice/ios.js +1 -1
- package/lib/ClientDevice/reactnative.d.ts +7 -0
- package/lib/ClientDevice/reactnative.js +1 -1
- package/lib/Credentials.d.ts +47 -0
- package/lib/Errors.d.ts +2 -0
- package/lib/Errors.js +1 -1
- package/lib/Hub.d.ts +55 -0
- package/lib/Hub.js +1 -1
- package/lib/I18n/I18n.d.ts +59 -0
- package/lib/I18n/I18n.js +1 -1
- package/lib/I18n/index.d.ts +49 -0
- package/lib/I18n/index.js +1 -1
- package/lib/I18n/types.d.ts +3 -0
- package/lib/I18n/types.js +1 -1
- package/lib/JS.d.ts +32 -0
- package/lib/JS.js +1 -1
- package/lib/Logger/ConsoleLogger.d.ts +80 -0
- package/lib/Logger/ConsoleLogger.js +1 -1
- package/lib/Logger/index.d.ts +1 -0
- package/lib/Logger/index.js +4 -3
- package/lib/Logger/index.js.map +1 -1
- package/lib/Logger/logger-interface.d.ts +8 -0
- package/lib/Logger/logger-interface.js +1 -1
- package/lib/OAuthHelper/FacebookOAuth.d.ts +6 -0
- package/lib/OAuthHelper/FacebookOAuth.js +1 -1
- package/lib/OAuthHelper/GoogleOAuth.d.ts +6 -0
- package/lib/OAuthHelper/GoogleOAuth.js +1 -1
- package/lib/OAuthHelper/index.d.ts +4 -0
- package/lib/OAuthHelper/index.js +1 -1
- package/lib/Platform/index.d.ts +7 -0
- package/lib/Platform/index.js +1 -1
- package/lib/Platform/version.d.ts +1 -0
- package/lib/Providers/AWSCloudWatchProvider.d.ts +34 -0
- package/lib/Providers/AWSCloudWatchProvider.js +1 -1
- package/lib/Providers/index.d.ts +1 -0
- package/lib/Providers/index.js +2 -2
- package/lib/Providers/index.js.map +1 -1
- package/lib/RNComponents/index.d.ts +5 -0
- package/lib/RNComponents/index.js +1 -1
- package/lib/RNComponents/reactnative.d.ts +3 -0
- package/lib/RNComponents/reactnative.js +1 -1
- package/lib/ServiceWorker/ServiceWorker.d.ts +68 -0
- package/lib/ServiceWorker/index.d.ts +13 -0
- package/lib/Signer.d.ts +41 -0
- package/lib/Signer.js +1 -1
- package/lib/StorageHelper/index.d.ts +41 -0
- package/lib/StorageHelper/index.js +1 -1
- package/lib/StorageHelper/reactnative.d.ts +13 -0
- package/lib/StorageHelper/reactnative.js +1 -1
- package/lib/UniversalStorage/index.d.ts +23 -0
- package/lib/Util/BackgroundProcessManager.d.ts +204 -0
- package/lib/Util/Constants.d.ts +8 -0
- package/lib/Util/Constants.js +1 -1
- package/lib/Util/DateUtils.d.ts +7 -0
- package/lib/Util/Mutex.d.ts +45 -0
- package/lib/Util/Reachability.d.ts +13 -0
- package/lib/Util/Reachability.native.d.ts +11 -0
- package/lib/Util/Retry.d.ts +21 -0
- package/lib/Util/StringUtils.d.ts +2 -0
- package/lib/Util/index.d.ts +7 -0
- package/lib/Util/index.js +23 -6
- package/lib/Util/index.js.map +1 -1
- package/lib/constants.d.ts +6 -0
- package/lib/constants.js +1 -1
- package/lib/index.d.ts +29 -0
- package/lib/index.js +50 -10
- package/lib/index.js.map +1 -1
- package/lib/parseAWSExports.d.ts +2 -0
- package/lib/types/index.d.ts +1 -0
- package/lib/types/types.d.ts +46 -0
- package/lib-esm/ClientDevice/android.js +1 -1
- package/lib-esm/ClientDevice/browser.js +1 -1
- package/lib-esm/ClientDevice/index.js +1 -1
- package/lib-esm/ClientDevice/ios.js +1 -1
- package/lib-esm/ClientDevice/reactnative.js +1 -1
- package/lib-esm/Errors.js +1 -1
- package/lib-esm/Hub.js +1 -1
- package/lib-esm/I18n/I18n.js +1 -1
- package/lib-esm/I18n/index.js +1 -1
- package/lib-esm/I18n/types.js +1 -1
- package/lib-esm/JS.js +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.js +1 -1
- package/lib-esm/OAuthHelper/FacebookOAuth.js +1 -1
- package/lib-esm/OAuthHelper/GoogleOAuth.js +1 -1
- package/lib-esm/OAuthHelper/index.js +1 -1
- package/lib-esm/Platform/index.js +1 -1
- package/lib-esm/Providers/AWSCloudWatchProvider.js +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/Signer.js +1 -1
- package/lib-esm/StorageHelper/index.js +1 -1
- package/lib-esm/StorageHelper/reactnative.js +1 -1
- package/lib-esm/Util/Constants.js +1 -1
- package/lib-esm/Util/index.d.ts +5 -5
- package/lib-esm/Util/index.js +5 -5
- package/lib-esm/Util/index.js.map +1 -1
- package/lib-esm/constants.js +1 -1
- package/lib-esm/index.d.ts +7 -8
- package/lib-esm/index.js +8 -9
- package/lib-esm/index.js.map +1 -1
- package/package.json +4 -3
- package/src/ClientDevice/android.ts +1 -1
- package/src/ClientDevice/browser.ts +1 -1
- package/src/ClientDevice/index.ts +1 -1
- package/src/ClientDevice/ios.ts +1 -1
- package/src/ClientDevice/reactnative.ts +1 -1
- package/src/Errors.ts +1 -1
- package/src/Hub.ts +1 -1
- package/src/I18n/I18n.ts +1 -1
- package/src/I18n/index.ts +1 -1
- package/src/I18n/types.ts +1 -1
- package/src/JS.ts +1 -1
- package/src/Logger/ConsoleLogger.ts +1 -1
- package/src/Logger/index.ts +2 -2
- package/src/Logger/logger-interface.ts +1 -1
- package/src/OAuthHelper/FacebookOAuth.ts +1 -1
- package/src/OAuthHelper/GoogleOAuth.ts +1 -1
- package/src/OAuthHelper/index.ts +1 -1
- package/src/Platform/index.ts +1 -1
- package/src/Providers/AWSCloudWatchProvider.ts +1 -1
- package/src/Providers/index.ts +1 -1
- package/src/RNComponents/index.ts +1 -1
- package/src/RNComponents/reactnative.ts +1 -1
- package/src/Signer.ts +1 -1
- package/src/StorageHelper/index.ts +1 -1
- package/src/StorageHelper/reactnative.ts +1 -1
- package/src/Util/Constants.ts +1 -1
- package/src/Util/index.ts +23 -5
- package/src/constants.ts +1 -1
- package/src/index.ts +46 -9
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { DelayFunction } from '../types';
|
|
2
|
+
export declare class NonRetryableError extends Error {
|
|
3
|
+
readonly nonRetryable = true;
|
|
4
|
+
constructor(message: string);
|
|
5
|
+
}
|
|
6
|
+
export declare const isNonRetryableError: (obj: any) => obj is NonRetryableError;
|
|
7
|
+
/**
|
|
8
|
+
* @private
|
|
9
|
+
* Internal use of Amplify only
|
|
10
|
+
*/
|
|
11
|
+
export declare function retry<T>(functionToRetry: (...args: any[]) => T, args: any[], delayFn: DelayFunction, onTerminate?: Promise<void>): Promise<T>;
|
|
12
|
+
/**
|
|
13
|
+
* @private
|
|
14
|
+
* Internal use of Amplify only
|
|
15
|
+
*/
|
|
16
|
+
export declare function jitteredBackoff(maxDelayMs?: number): DelayFunction;
|
|
17
|
+
/**
|
|
18
|
+
* @private
|
|
19
|
+
* Internal use of Amplify only
|
|
20
|
+
*/
|
|
21
|
+
export declare const jitteredExponentialRetry: <T>(functionToRetry: (...args: any[]) => T, args: any[], maxDelayMs?: number, onTerminate?: Promise<void>) => Promise<T>;
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
export { NonRetryableError, isNonRetryableError, jitteredBackoff, jitteredExponentialRetry, retry, } from './Retry';
|
|
2
|
+
export { default as Mutex } from './Mutex';
|
|
3
|
+
export { default as Reachability } from './Reachability';
|
|
4
|
+
export { DateUtils } from './DateUtils';
|
|
5
|
+
export { urlSafeDecode, urlSafeEncode } from './StringUtils';
|
|
6
|
+
export { AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES, } from './Constants';
|
|
7
|
+
export { BackgroundProcessManager, BackgroundManagerNotOpenError, BackgroundProcessManagerState, } from './BackgroundProcessManager';
|
package/lib/Util/index.js
CHANGED
|
@@ -1,13 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
var
|
|
4
|
-
|
|
3
|
+
var Retry_1 = require("./Retry");
|
|
4
|
+
exports.NonRetryableError = Retry_1.NonRetryableError;
|
|
5
|
+
exports.isNonRetryableError = Retry_1.isNonRetryableError;
|
|
6
|
+
exports.jitteredBackoff = Retry_1.jitteredBackoff;
|
|
7
|
+
exports.jitteredExponentialRetry = Retry_1.jitteredExponentialRetry;
|
|
8
|
+
exports.retry = Retry_1.retry;
|
|
5
9
|
var Mutex_1 = require("./Mutex");
|
|
6
10
|
exports.Mutex = Mutex_1.default;
|
|
7
11
|
var Reachability_1 = require("./Reachability");
|
|
8
12
|
exports.Reachability = Reachability_1.default;
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
+
var DateUtils_1 = require("./DateUtils");
|
|
14
|
+
exports.DateUtils = DateUtils_1.DateUtils;
|
|
15
|
+
var StringUtils_1 = require("./StringUtils");
|
|
16
|
+
exports.urlSafeDecode = StringUtils_1.urlSafeDecode;
|
|
17
|
+
exports.urlSafeEncode = StringUtils_1.urlSafeEncode;
|
|
18
|
+
var Constants_1 = require("./Constants");
|
|
19
|
+
exports.AWS_CLOUDWATCH_BASE_BUFFER_SIZE = Constants_1.AWS_CLOUDWATCH_BASE_BUFFER_SIZE;
|
|
20
|
+
exports.AWS_CLOUDWATCH_CATEGORY = Constants_1.AWS_CLOUDWATCH_CATEGORY;
|
|
21
|
+
exports.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = Constants_1.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE;
|
|
22
|
+
exports.AWS_CLOUDWATCH_MAX_EVENT_SIZE = Constants_1.AWS_CLOUDWATCH_MAX_EVENT_SIZE;
|
|
23
|
+
exports.AWS_CLOUDWATCH_PROVIDER_NAME = Constants_1.AWS_CLOUDWATCH_PROVIDER_NAME;
|
|
24
|
+
exports.NO_CREDS_ERROR_STRING = Constants_1.NO_CREDS_ERROR_STRING;
|
|
25
|
+
exports.RETRY_ERROR_CODES = Constants_1.RETRY_ERROR_CODES;
|
|
26
|
+
var BackgroundProcessManager_1 = require("./BackgroundProcessManager");
|
|
27
|
+
exports.BackgroundProcessManager = BackgroundProcessManager_1.BackgroundProcessManager;
|
|
28
|
+
exports.BackgroundManagerNotOpenError = BackgroundProcessManager_1.BackgroundManagerNotOpenError;
|
|
29
|
+
exports.BackgroundProcessManagerState = BackgroundProcessManager_1.BackgroundProcessManagerState;
|
|
13
30
|
//# sourceMappingURL=index.js.map
|
package/lib/Util/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Util/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Util/index.ts"],"names":[],"mappings":";;AAAA,iCAMiB;AALhB,oCAAA,iBAAiB,CAAA;AACjB,sCAAA,mBAAmB,CAAA;AACnB,kCAAA,eAAe,CAAA;AACf,2CAAA,wBAAwB,CAAA;AACxB,wBAAA,KAAK,CAAA;AAEN,iCAA2C;AAAlC,wBAAA,OAAO,CAAS;AACzB,+CAAyD;AAAhD,sCAAA,OAAO,CAAgB;AAChC,yCAAwC;AAA/B,gCAAA,SAAS,CAAA;AAClB,6CAA6D;AAApD,sCAAA,aAAa,CAAA;AAAE,sCAAA,aAAa,CAAA;AACrC,yCAQqB;AAPpB,sDAAA,+BAA+B,CAAA;AAC/B,8CAAA,uBAAuB,CAAA;AACvB,0DAAA,mCAAmC,CAAA;AACnC,oDAAA,6BAA6B,CAAA;AAC7B,mDAAA,4BAA4B,CAAA;AAC5B,4CAAA,qBAAqB,CAAA;AACrB,wCAAA,iBAAiB,CAAA;AAElB,uEAIoC;AAHnC,8DAAA,wBAAwB,CAAA;AACxB,mEAAA,6BAA6B,CAAA;AAC7B,mEAAA,6BAA6B,CAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @deprecated Unused, all usecases have migrated to INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER
|
|
3
|
+
*/
|
|
4
|
+
export declare const INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER: string | symbol;
|
|
5
|
+
export declare const INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER: string | symbol;
|
|
6
|
+
export declare const USER_AGENT_HEADER = "x-amz-user-agent";
|
package/lib/constants.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright 2018-
|
|
3
|
+
* Copyright 2018-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
6
|
* the License. A copy of the License is located at
|
package/lib/index.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Amplify } from './Amplify';
|
|
2
|
+
export { Amplify } from './Amplify';
|
|
3
|
+
export { AmplifyClass } from './Amplify';
|
|
4
|
+
export { ClientDevice } from './ClientDevice';
|
|
5
|
+
export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
|
|
6
|
+
export { invalidParameter, missingConfig } from './Errors';
|
|
7
|
+
export { Hub, HubCapsule, HubCallback, HubPayload } from './Hub';
|
|
8
|
+
export { I18n } from './I18n';
|
|
9
|
+
export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './JS';
|
|
10
|
+
export { Signer } from './Signer';
|
|
11
|
+
export { parseAWSExports } from './parseAWSExports';
|
|
12
|
+
export { AWSCloudWatchProvider } from './Providers';
|
|
13
|
+
export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
|
|
14
|
+
export { AppState, AsyncStorage, Linking } from './RNComponents';
|
|
15
|
+
export { Credentials, CredentialsClass } from './Credentials';
|
|
16
|
+
export { ServiceWorker } from './ServiceWorker';
|
|
17
|
+
export { ICredentials } from './types';
|
|
18
|
+
export { StorageHelper, MemoryStorage } from './StorageHelper';
|
|
19
|
+
export { UniversalStorage } from './UniversalStorage';
|
|
20
|
+
export { Platform, getAmplifyUserAgent } from './Platform';
|
|
21
|
+
export { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
|
|
22
|
+
export declare const Constants: {
|
|
23
|
+
userAgent: string;
|
|
24
|
+
};
|
|
25
|
+
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';
|
|
26
|
+
/**
|
|
27
|
+
* @deprecated use named import
|
|
28
|
+
*/
|
|
29
|
+
export default Amplify;
|
package/lib/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright 2017-
|
|
3
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
6
|
* the License. A copy of the License is located at
|
|
@@ -12,7 +12,6 @@
|
|
|
12
12
|
* and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
-
var tslib_1 = require("tslib");
|
|
16
15
|
var Amplify_1 = require("./Amplify");
|
|
17
16
|
var Platform_1 = require("./Platform");
|
|
18
17
|
var Amplify_2 = require("./Amplify");
|
|
@@ -24,20 +23,39 @@ exports.ClientDevice = ClientDevice_1.ClientDevice;
|
|
|
24
23
|
var Logger_1 = require("./Logger");
|
|
25
24
|
exports.ConsoleLogger = Logger_1.ConsoleLogger;
|
|
26
25
|
exports.Logger = Logger_1.ConsoleLogger;
|
|
27
|
-
|
|
26
|
+
var Errors_1 = require("./Errors");
|
|
27
|
+
exports.invalidParameter = Errors_1.invalidParameter;
|
|
28
|
+
exports.missingConfig = Errors_1.missingConfig;
|
|
28
29
|
var Hub_1 = require("./Hub");
|
|
29
30
|
exports.Hub = Hub_1.Hub;
|
|
30
31
|
var I18n_1 = require("./I18n");
|
|
31
32
|
exports.I18n = I18n_1.I18n;
|
|
32
|
-
|
|
33
|
+
var JS_1 = require("./JS");
|
|
34
|
+
exports.browserOrNode = JS_1.browserOrNode;
|
|
35
|
+
exports.filenameToContentType = JS_1.filenameToContentType;
|
|
36
|
+
exports.generateRandomString = JS_1.generateRandomString;
|
|
37
|
+
exports.isEmpty = JS_1.isEmpty;
|
|
38
|
+
exports.isStrictObject = JS_1.isStrictObject;
|
|
39
|
+
exports.isTextFile = JS_1.isTextFile;
|
|
40
|
+
exports.isWebWorker = JS_1.isWebWorker;
|
|
41
|
+
exports.makeQuerablePromise = JS_1.makeQuerablePromise;
|
|
42
|
+
exports.objectLessAttributes = JS_1.objectLessAttributes;
|
|
43
|
+
exports.sortByField = JS_1.sortByField;
|
|
44
|
+
exports.transferKeyToLowerCase = JS_1.transferKeyToLowerCase;
|
|
45
|
+
exports.transferKeyToUpperCase = JS_1.transferKeyToUpperCase;
|
|
33
46
|
var Signer_1 = require("./Signer");
|
|
34
47
|
exports.Signer = Signer_1.Signer;
|
|
35
|
-
|
|
36
|
-
|
|
48
|
+
var parseAWSExports_1 = require("./parseAWSExports");
|
|
49
|
+
exports.parseAWSExports = parseAWSExports_1.parseAWSExports;
|
|
50
|
+
var Providers_1 = require("./Providers");
|
|
51
|
+
exports.AWSCloudWatchProvider = Providers_1.AWSCloudWatchProvider;
|
|
37
52
|
var OAuthHelper_1 = require("./OAuthHelper");
|
|
38
53
|
exports.FacebookOAuth = OAuthHelper_1.FacebookOAuth;
|
|
39
54
|
exports.GoogleOAuth = OAuthHelper_1.GoogleOAuth;
|
|
40
|
-
|
|
55
|
+
var RNComponents_1 = require("./RNComponents");
|
|
56
|
+
exports.AppState = RNComponents_1.AppState;
|
|
57
|
+
exports.AsyncStorage = RNComponents_1.AsyncStorage;
|
|
58
|
+
exports.Linking = RNComponents_1.Linking;
|
|
41
59
|
var Credentials_1 = require("./Credentials");
|
|
42
60
|
exports.Credentials = Credentials_1.Credentials;
|
|
43
61
|
exports.CredentialsClass = Credentials_1.CredentialsClass;
|
|
@@ -51,12 +69,34 @@ exports.UniversalStorage = UniversalStorage_1.UniversalStorage;
|
|
|
51
69
|
var Platform_2 = require("./Platform");
|
|
52
70
|
exports.Platform = Platform_2.Platform;
|
|
53
71
|
exports.getAmplifyUserAgent = Platform_2.getAmplifyUserAgent;
|
|
54
|
-
|
|
72
|
+
var constants_1 = require("./constants");
|
|
73
|
+
exports.INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER = constants_1.INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER;
|
|
74
|
+
exports.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER = constants_1.INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER;
|
|
75
|
+
exports.USER_AGENT_HEADER = constants_1.USER_AGENT_HEADER;
|
|
55
76
|
exports.Constants = {
|
|
56
77
|
userAgent: Platform_1.Platform.userAgent,
|
|
57
78
|
};
|
|
58
|
-
|
|
59
|
-
|
|
79
|
+
var Util_1 = require("./Util");
|
|
80
|
+
exports.AWS_CLOUDWATCH_BASE_BUFFER_SIZE = Util_1.AWS_CLOUDWATCH_BASE_BUFFER_SIZE;
|
|
81
|
+
exports.AWS_CLOUDWATCH_CATEGORY = Util_1.AWS_CLOUDWATCH_CATEGORY;
|
|
82
|
+
exports.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE = Util_1.AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE;
|
|
83
|
+
exports.AWS_CLOUDWATCH_MAX_EVENT_SIZE = Util_1.AWS_CLOUDWATCH_MAX_EVENT_SIZE;
|
|
84
|
+
exports.AWS_CLOUDWATCH_PROVIDER_NAME = Util_1.AWS_CLOUDWATCH_PROVIDER_NAME;
|
|
85
|
+
exports.BackgroundManagerNotOpenError = Util_1.BackgroundManagerNotOpenError;
|
|
86
|
+
exports.BackgroundProcessManager = Util_1.BackgroundProcessManager;
|
|
87
|
+
exports.BackgroundProcessManagerState = Util_1.BackgroundProcessManagerState;
|
|
88
|
+
exports.DateUtils = Util_1.DateUtils;
|
|
89
|
+
exports.Mutex = Util_1.Mutex;
|
|
90
|
+
exports.NO_CREDS_ERROR_STRING = Util_1.NO_CREDS_ERROR_STRING;
|
|
91
|
+
exports.NonRetryableError = Util_1.NonRetryableError;
|
|
92
|
+
exports.RETRY_ERROR_CODES = Util_1.RETRY_ERROR_CODES;
|
|
93
|
+
exports.Reachability = Util_1.Reachability;
|
|
94
|
+
exports.isNonRetryableError = Util_1.isNonRetryableError;
|
|
95
|
+
exports.jitteredBackoff = Util_1.jitteredBackoff;
|
|
96
|
+
exports.jitteredExponentialRetry = Util_1.jitteredExponentialRetry;
|
|
97
|
+
exports.retry = Util_1.retry;
|
|
98
|
+
exports.urlSafeDecode = Util_1.urlSafeDecode;
|
|
99
|
+
exports.urlSafeEncode = Util_1.urlSafeEncode;
|
|
60
100
|
/**
|
|
61
101
|
* @deprecated use named import
|
|
62
102
|
*/
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,qCAAoC;AACpC,uCAAsC;AAEtC,qCAAoC;AAA3B,4BAAA,OAAO,CAAA;AAChB,qCAAyC;AAAhC,iCAAA,YAAY,CAAA;AACrB,+CAA8C;AAArC,sCAAA,YAAY,CAAA;AACrB,mCAAkE;AAAzD,iCAAA,aAAa,CAAA;AAAE,0BAAA,aAAa,CAAU;AAC/C,mCAA2D;AAAlD,oCAAA,gBAAgB,CAAA;AAAE,iCAAA,aAAa,CAAA;AACxC,6BAAiE;AAAxD,oBAAA,GAAG,CAAA;AACZ,+BAA8B;AAArB,sBAAA,IAAI,CAAA;AACb,2BAac;AAZb,6BAAA,aAAa,CAAA;AACb,qCAAA,qBAAqB,CAAA;AACrB,oCAAA,oBAAoB,CAAA;AACpB,uBAAA,OAAO,CAAA;AACP,8BAAA,cAAc,CAAA;AACd,0BAAA,UAAU,CAAA;AACV,2BAAA,WAAW,CAAA;AACX,mCAAA,mBAAmB,CAAA;AACnB,oCAAA,oBAAoB,CAAA;AACpB,2BAAA,WAAW,CAAA;AACX,sCAAA,sBAAsB,CAAA;AACtB,sCAAA,sBAAsB,CAAA;AAEvB,mCAAkC;AAAzB,0BAAA,MAAM,CAAA;AACf,qDAAoD;AAA3C,4CAAA,eAAe,CAAA;AACxB,yCAAoD;AAA3C,4CAAA,qBAAqB,CAAA;AAC9B,6CAA2D;AAAlD,sCAAA,aAAa,CAAA;AAAE,oCAAA,WAAW,CAAA;AACnC,+CAAiE;AAAxD,kCAAA,QAAQ,CAAA;AAAE,sCAAA,YAAY,CAAA;AAAE,iCAAA,OAAO,CAAA;AACxC,6CAA8D;AAArD,oCAAA,WAAW,CAAA;AAAE,yCAAA,gBAAgB,CAAA;AACtC,iDAAgD;AAAvC,wCAAA,aAAa,CAAA;AAEtB,iDAA+D;AAAtD,wCAAA,aAAa,CAAA;AAAE,wCAAA,aAAa,CAAA;AACrC,uDAAsD;AAA7C,8CAAA,gBAAgB,CAAA;AACzB,uCAA2D;AAAlD,8BAAA,QAAQ,CAAA;AAAE,yCAAA,mBAAmB,CAAA;AACtC,yCAIqB;AAHpB,2DAAA,oCAAoC,CAAA;AACpC,oEAAA,6CAA6C,CAAA;AAC7C,wCAAA,iBAAiB,CAAA;AAGL,QAAA,SAAS,GAAG;IACxB,SAAS,EAAE,mBAAQ,CAAC,SAAS;CAC7B,CAAC;AAEF,+BAqBgB;AApBf,iDAAA,+BAA+B,CAAA;AAC/B,yCAAA,uBAAuB,CAAA;AACvB,qDAAA,mCAAmC,CAAA;AACnC,+CAAA,6BAA6B,CAAA;AAC7B,8CAAA,4BAA4B,CAAA;AAC5B,+CAAA,6BAA6B,CAAA;AAC7B,0CAAA,wBAAwB,CAAA;AACxB,+CAAA,6BAA6B,CAAA;AAC7B,2BAAA,SAAS,CAAA;AACT,uBAAA,KAAK,CAAA;AACL,uCAAA,qBAAqB,CAAA;AACrB,mCAAA,iBAAiB,CAAA;AACjB,mCAAA,iBAAiB,CAAA;AACjB,8BAAA,YAAY,CAAA;AACZ,qCAAA,mBAAmB,CAAA;AACnB,iCAAA,eAAe,CAAA;AACf,0CAAA,wBAAwB,CAAA;AACxB,uBAAA,KAAK,CAAA;AACL,+BAAA,aAAa,CAAA;AACb,+BAAA,aAAa,CAAA;AAGd;;GAEG;AACH,kBAAe,iBAAO,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
import { InputLogEvent, LogGroup } from '@aws-sdk/client-cloudwatch-logs';
|
|
2
|
+
import { Credentials } from '@aws-sdk/types';
|
|
3
|
+
export interface AmplifyConfig {
|
|
4
|
+
Analytics?: object;
|
|
5
|
+
Auth?: object;
|
|
6
|
+
API?: object;
|
|
7
|
+
Logging?: object;
|
|
8
|
+
Storage?: object;
|
|
9
|
+
Cache?: object;
|
|
10
|
+
Geo?: object;
|
|
11
|
+
Notifications?: {
|
|
12
|
+
InAppMessaging?: object;
|
|
13
|
+
};
|
|
14
|
+
ssr?: boolean;
|
|
15
|
+
}
|
|
16
|
+
export interface ICredentials {
|
|
17
|
+
accessKeyId: string;
|
|
18
|
+
sessionToken: string;
|
|
19
|
+
secretAccessKey: string;
|
|
20
|
+
identityId: string;
|
|
21
|
+
authenticated: boolean;
|
|
22
|
+
expiration?: Date;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* @private
|
|
26
|
+
* Internal use of Amplify only
|
|
27
|
+
*/
|
|
28
|
+
export declare type DelayFunction = (attempt: number, args?: any[], error?: Error) => number | false;
|
|
29
|
+
export interface LoggingProvider {
|
|
30
|
+
getProviderName(): string;
|
|
31
|
+
getCategoryName(): string;
|
|
32
|
+
configure(config?: object): object;
|
|
33
|
+
pushLogs(logs: InputLogEvent[]): void;
|
|
34
|
+
}
|
|
35
|
+
export interface AWSCloudWatchProviderOptions {
|
|
36
|
+
logGroupName?: string;
|
|
37
|
+
logStreamName?: string;
|
|
38
|
+
region?: string;
|
|
39
|
+
credentials?: Credentials;
|
|
40
|
+
endpoint?: string;
|
|
41
|
+
}
|
|
42
|
+
export interface CloudWatchDataTracker {
|
|
43
|
+
eventUploadInProgress: boolean;
|
|
44
|
+
logEvents: InputLogEvent[];
|
|
45
|
+
verifiedLogGroup?: LogGroup;
|
|
46
|
+
}
|
|
@@ -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
|
|
@@ -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
|
package/lib-esm/Errors.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
|
package/lib-esm/Hub.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
|
package/lib-esm/I18n/I18n.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
|
package/lib-esm/I18n/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
|
package/lib-esm/I18n/types.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
|
package/lib-esm/JS.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
|
|
@@ -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 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { ConsoleLogger, LOG_TYPE } from './ConsoleLogger';
|
package/lib-esm/Logger/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
|
|
@@ -10,5 +10,5 @@
|
|
|
10
10
|
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
11
11
|
* and limitations under the License.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
13
|
+
export { ConsoleLogger, LOG_TYPE } from './ConsoleLogger';
|
|
14
14
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Logger/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Logger/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,aAAa,EAAE,QAAQ,EAAE,MAAM,iBAAiB,CAAC"}
|
|
@@ -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,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __generator } from "tslib";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright 2017-
|
|
3
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
6
|
* the License. A copy of the License is located at
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __generator } from "tslib";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright 2017-
|
|
3
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
6
|
* 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
|
|
@@ -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 +1 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AWSCloudWatchProvider } from './AWSCloudWatchProvider';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { AWSCloudWatchProvider } from './AWSCloudWatchProvider';
|
|
2
2
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -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
|
package/lib-esm/Signer.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
|
|
@@ -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
|
package/lib-esm/Util/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { NonRetryableError, isNonRetryableError, jitteredBackoff, jitteredExponentialRetry, retry, } from './Retry';
|
|
2
2
|
export { default as Mutex } from './Mutex';
|
|
3
3
|
export { default as Reachability } from './Reachability';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export { DateUtils } from './DateUtils';
|
|
5
|
+
export { urlSafeDecode, urlSafeEncode } from './StringUtils';
|
|
6
|
+
export { AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES, } from './Constants';
|
|
7
|
+
export { BackgroundProcessManager, BackgroundManagerNotOpenError, BackgroundProcessManagerState, } from './BackgroundProcessManager';
|
package/lib-esm/Util/index.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
export
|
|
1
|
+
export { NonRetryableError, isNonRetryableError, jitteredBackoff, jitteredExponentialRetry, retry, } from './Retry';
|
|
2
2
|
export { default as Mutex } from './Mutex';
|
|
3
3
|
export { default as Reachability } from './Reachability';
|
|
4
|
-
export
|
|
5
|
-
export
|
|
6
|
-
export
|
|
7
|
-
export
|
|
4
|
+
export { DateUtils } from './DateUtils';
|
|
5
|
+
export { urlSafeDecode, urlSafeEncode } from './StringUtils';
|
|
6
|
+
export { AWS_CLOUDWATCH_BASE_BUFFER_SIZE, AWS_CLOUDWATCH_CATEGORY, AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE, AWS_CLOUDWATCH_MAX_EVENT_SIZE, AWS_CLOUDWATCH_PROVIDER_NAME, NO_CREDS_ERROR_STRING, RETRY_ERROR_CODES, } from './Constants';
|
|
7
|
+
export { BackgroundProcessManager, BackgroundManagerNotOpenError, BackgroundProcessManagerState, } from './BackgroundProcessManager';
|
|
8
8
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Util/index.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Util/index.ts"],"names":[],"mappings":"AAAA,OAAO,EACN,iBAAiB,EACjB,mBAAmB,EACnB,eAAe,EACf,wBAAwB,EACxB,KAAK,GACL,MAAM,SAAS,CAAC;AACjB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,OAAO,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AACxC,OAAO,EAAE,aAAa,EAAE,aAAa,EAAE,MAAM,eAAe,CAAC;AAC7D,OAAO,EACN,+BAA+B,EAC/B,uBAAuB,EACvB,mCAAmC,EACnC,6BAA6B,EAC7B,4BAA4B,EAC5B,qBAAqB,EACrB,iBAAiB,GACjB,MAAM,aAAa,CAAC;AACrB,OAAO,EACN,wBAAwB,EACxB,6BAA6B,EAC7B,6BAA6B,GAC7B,MAAM,4BAA4B,CAAC"}
|
package/lib-esm/constants.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2018-
|
|
2
|
+
* Copyright 2018-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/lib-esm/index.d.ts
CHANGED
|
@@ -3,27 +3,26 @@ export { Amplify } from './Amplify';
|
|
|
3
3
|
export { AmplifyClass } from './Amplify';
|
|
4
4
|
export { ClientDevice } from './ClientDevice';
|
|
5
5
|
export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
|
|
6
|
-
export
|
|
6
|
+
export { invalidParameter, missingConfig } from './Errors';
|
|
7
7
|
export { Hub, HubCapsule, HubCallback, HubPayload } from './Hub';
|
|
8
8
|
export { I18n } from './I18n';
|
|
9
|
-
export
|
|
9
|
+
export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './JS';
|
|
10
10
|
export { Signer } from './Signer';
|
|
11
|
-
export
|
|
12
|
-
export
|
|
11
|
+
export { parseAWSExports } from './parseAWSExports';
|
|
12
|
+
export { AWSCloudWatchProvider } from './Providers';
|
|
13
13
|
export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
|
|
14
|
-
export
|
|
14
|
+
export { AppState, AsyncStorage, Linking } from './RNComponents';
|
|
15
15
|
export { Credentials, CredentialsClass } from './Credentials';
|
|
16
16
|
export { ServiceWorker } from './ServiceWorker';
|
|
17
17
|
export { ICredentials } from './types';
|
|
18
18
|
export { StorageHelper, MemoryStorage } from './StorageHelper';
|
|
19
19
|
export { UniversalStorage } from './UniversalStorage';
|
|
20
20
|
export { Platform, getAmplifyUserAgent } from './Platform';
|
|
21
|
-
export
|
|
21
|
+
export { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
|
|
22
22
|
export declare const Constants: {
|
|
23
23
|
userAgent: string;
|
|
24
24
|
};
|
|
25
|
-
export
|
|
26
|
-
export * from './Util';
|
|
25
|
+
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';
|
|
27
26
|
/**
|
|
28
27
|
* @deprecated use named import
|
|
29
28
|
*/
|