@aws-amplify/core 4.6.2-next.32 → 4.6.2-next.41

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.
Files changed (195) hide show
  1. package/lib/Amplify.d.ts +28 -0
  2. package/lib/ClientDevice/android.d.ts +5 -0
  3. package/lib/ClientDevice/android.js +2 -12
  4. package/lib/ClientDevice/android.js.map +1 -1
  5. package/lib/ClientDevice/browser.d.ts +25 -0
  6. package/lib/ClientDevice/browser.js +2 -12
  7. package/lib/ClientDevice/browser.js.map +1 -1
  8. package/lib/ClientDevice/index.d.ts +23 -0
  9. package/lib/ClientDevice/index.js +2 -12
  10. package/lib/ClientDevice/index.js.map +1 -1
  11. package/lib/ClientDevice/ios.d.ts +7 -0
  12. package/lib/ClientDevice/ios.js +2 -12
  13. package/lib/ClientDevice/ios.js.map +1 -1
  14. package/lib/ClientDevice/reactnative.d.ts +7 -0
  15. package/lib/ClientDevice/reactnative.js +2 -12
  16. package/lib/ClientDevice/reactnative.js.map +1 -1
  17. package/lib/Credentials.d.ts +47 -0
  18. package/lib/Errors.d.ts +2 -0
  19. package/lib/Errors.js +2 -12
  20. package/lib/Errors.js.map +1 -1
  21. package/lib/Hub.d.ts +55 -0
  22. package/lib/Hub.js +2 -12
  23. package/lib/Hub.js.map +1 -1
  24. package/lib/I18n/I18n.d.ts +59 -0
  25. package/lib/I18n/I18n.js +2 -12
  26. package/lib/I18n/I18n.js.map +1 -1
  27. package/lib/I18n/index.d.ts +49 -0
  28. package/lib/I18n/index.js +2 -12
  29. package/lib/I18n/index.js.map +1 -1
  30. package/lib/I18n/types.d.ts +3 -0
  31. package/lib/I18n/types.js +2 -12
  32. package/lib/I18n/types.js.map +1 -1
  33. package/lib/JS.d.ts +32 -0
  34. package/lib/JS.js +2 -12
  35. package/lib/JS.js.map +1 -1
  36. package/lib/Logger/ConsoleLogger.d.ts +80 -0
  37. package/lib/Logger/ConsoleLogger.js +2 -12
  38. package/lib/Logger/ConsoleLogger.js.map +1 -1
  39. package/lib/Logger/index.d.ts +1 -0
  40. package/lib/Logger/index.js +5 -14
  41. package/lib/Logger/index.js.map +1 -1
  42. package/lib/Logger/logger-interface.d.ts +8 -0
  43. package/lib/Logger/logger-interface.js +2 -12
  44. package/lib/Logger/logger-interface.js.map +1 -1
  45. package/lib/OAuthHelper/FacebookOAuth.d.ts +6 -0
  46. package/lib/OAuthHelper/FacebookOAuth.js +2 -12
  47. package/lib/OAuthHelper/FacebookOAuth.js.map +1 -1
  48. package/lib/OAuthHelper/GoogleOAuth.d.ts +6 -0
  49. package/lib/OAuthHelper/GoogleOAuth.js +2 -12
  50. package/lib/OAuthHelper/GoogleOAuth.js.map +1 -1
  51. package/lib/OAuthHelper/index.d.ts +4 -0
  52. package/lib/OAuthHelper/index.js +2 -12
  53. package/lib/OAuthHelper/index.js.map +1 -1
  54. package/lib/Platform/index.d.ts +7 -0
  55. package/lib/Platform/index.js +2 -12
  56. package/lib/Platform/index.js.map +1 -1
  57. package/lib/Platform/version.d.ts +1 -0
  58. package/lib/Providers/AWSCloudWatchProvider.d.ts +34 -0
  59. package/lib/Providers/AWSCloudWatchProvider.js +2 -12
  60. package/lib/Providers/AWSCloudWatchProvider.js.map +1 -1
  61. package/lib/Providers/index.d.ts +1 -0
  62. package/lib/Providers/index.js +2 -2
  63. package/lib/Providers/index.js.map +1 -1
  64. package/lib/RNComponents/index.d.ts +5 -0
  65. package/lib/RNComponents/index.js +2 -12
  66. package/lib/RNComponents/index.js.map +1 -1
  67. package/lib/RNComponents/reactnative.d.ts +3 -0
  68. package/lib/RNComponents/reactnative.js +2 -12
  69. package/lib/RNComponents/reactnative.js.map +1 -1
  70. package/lib/ServiceWorker/ServiceWorker.d.ts +68 -0
  71. package/lib/ServiceWorker/index.d.ts +13 -0
  72. package/lib/Signer.d.ts +41 -0
  73. package/lib/Signer.js +2 -12
  74. package/lib/Signer.js.map +1 -1
  75. package/lib/StorageHelper/index.d.ts +41 -0
  76. package/lib/StorageHelper/index.js +2 -12
  77. package/lib/StorageHelper/index.js.map +1 -1
  78. package/lib/StorageHelper/reactnative.d.ts +13 -0
  79. package/lib/StorageHelper/reactnative.js +2 -12
  80. package/lib/StorageHelper/reactnative.js.map +1 -1
  81. package/lib/UniversalStorage/index.d.ts +23 -0
  82. package/lib/Util/BackgroundProcessManager.d.ts +204 -0
  83. package/lib/Util/Constants.d.ts +8 -0
  84. package/lib/Util/Constants.js +2 -12
  85. package/lib/Util/Constants.js.map +1 -1
  86. package/lib/Util/DateUtils.d.ts +7 -0
  87. package/lib/Util/Mutex.d.ts +45 -0
  88. package/lib/Util/Reachability.d.ts +13 -0
  89. package/lib/Util/Reachability.native.d.ts +11 -0
  90. package/lib/Util/Retry.d.ts +21 -0
  91. package/lib/Util/StringUtils.d.ts +2 -0
  92. package/lib/Util/index.d.ts +7 -0
  93. package/lib/Util/index.js +23 -6
  94. package/lib/Util/index.js.map +1 -1
  95. package/lib/constants.d.ts +6 -0
  96. package/lib/constants.js +2 -12
  97. package/lib/constants.js.map +1 -1
  98. package/lib/index.d.ts +29 -0
  99. package/lib/index.js +51 -21
  100. package/lib/index.js.map +1 -1
  101. package/lib/parseAWSExports.d.ts +2 -0
  102. package/lib/types/index.d.ts +1 -0
  103. package/lib/types/types.d.ts +46 -0
  104. package/lib-esm/ClientDevice/android.js +2 -12
  105. package/lib-esm/ClientDevice/android.js.map +1 -1
  106. package/lib-esm/ClientDevice/browser.js +2 -12
  107. package/lib-esm/ClientDevice/browser.js.map +1 -1
  108. package/lib-esm/ClientDevice/index.js +2 -12
  109. package/lib-esm/ClientDevice/index.js.map +1 -1
  110. package/lib-esm/ClientDevice/ios.js +2 -12
  111. package/lib-esm/ClientDevice/ios.js.map +1 -1
  112. package/lib-esm/ClientDevice/reactnative.js +2 -12
  113. package/lib-esm/ClientDevice/reactnative.js.map +1 -1
  114. package/lib-esm/Errors.js +2 -12
  115. package/lib-esm/Errors.js.map +1 -1
  116. package/lib-esm/Hub.js +2 -12
  117. package/lib-esm/Hub.js.map +1 -1
  118. package/lib-esm/I18n/I18n.js +2 -12
  119. package/lib-esm/I18n/I18n.js.map +1 -1
  120. package/lib-esm/I18n/index.js +2 -12
  121. package/lib-esm/I18n/index.js.map +1 -1
  122. package/lib-esm/I18n/types.js +2 -12
  123. package/lib-esm/I18n/types.js.map +1 -1
  124. package/lib-esm/JS.js +2 -12
  125. package/lib-esm/JS.js.map +1 -1
  126. package/lib-esm/Logger/ConsoleLogger.js +2 -12
  127. package/lib-esm/Logger/ConsoleLogger.js.map +1 -1
  128. package/lib-esm/Logger/index.d.ts +1 -1
  129. package/lib-esm/Logger/index.js +3 -13
  130. package/lib-esm/Logger/index.js.map +1 -1
  131. package/lib-esm/Logger/logger-interface.js +2 -12
  132. package/lib-esm/Logger/logger-interface.js.map +1 -1
  133. package/lib-esm/OAuthHelper/FacebookOAuth.js +2 -12
  134. package/lib-esm/OAuthHelper/FacebookOAuth.js.map +1 -1
  135. package/lib-esm/OAuthHelper/GoogleOAuth.js +2 -12
  136. package/lib-esm/OAuthHelper/GoogleOAuth.js.map +1 -1
  137. package/lib-esm/OAuthHelper/index.js +2 -12
  138. package/lib-esm/OAuthHelper/index.js.map +1 -1
  139. package/lib-esm/Platform/index.js +2 -12
  140. package/lib-esm/Platform/index.js.map +1 -1
  141. package/lib-esm/Providers/AWSCloudWatchProvider.js +2 -12
  142. package/lib-esm/Providers/AWSCloudWatchProvider.js.map +1 -1
  143. package/lib-esm/Providers/index.d.ts +1 -1
  144. package/lib-esm/Providers/index.js +1 -1
  145. package/lib-esm/Providers/index.js.map +1 -1
  146. package/lib-esm/RNComponents/index.js +2 -12
  147. package/lib-esm/RNComponents/index.js.map +1 -1
  148. package/lib-esm/RNComponents/reactnative.js +2 -12
  149. package/lib-esm/RNComponents/reactnative.js.map +1 -1
  150. package/lib-esm/Signer.js +2 -12
  151. package/lib-esm/Signer.js.map +1 -1
  152. package/lib-esm/StorageHelper/index.js +2 -12
  153. package/lib-esm/StorageHelper/index.js.map +1 -1
  154. package/lib-esm/StorageHelper/reactnative.js +2 -12
  155. package/lib-esm/StorageHelper/reactnative.js.map +1 -1
  156. package/lib-esm/Util/Constants.js +2 -12
  157. package/lib-esm/Util/Constants.js.map +1 -1
  158. package/lib-esm/Util/index.d.ts +5 -5
  159. package/lib-esm/Util/index.js +5 -5
  160. package/lib-esm/Util/index.js.map +1 -1
  161. package/lib-esm/constants.js +2 -12
  162. package/lib-esm/constants.js.map +1 -1
  163. package/lib-esm/index.d.ts +7 -8
  164. package/lib-esm/index.js +9 -20
  165. package/lib-esm/index.js.map +1 -1
  166. package/package.json +4 -3
  167. package/src/ClientDevice/android.ts +2 -12
  168. package/src/ClientDevice/browser.ts +2 -12
  169. package/src/ClientDevice/index.ts +2 -12
  170. package/src/ClientDevice/ios.ts +2 -12
  171. package/src/ClientDevice/reactnative.ts +2 -12
  172. package/src/Errors.ts +2 -12
  173. package/src/Hub.ts +2 -12
  174. package/src/I18n/I18n.ts +2 -12
  175. package/src/I18n/index.ts +2 -12
  176. package/src/I18n/types.ts +2 -12
  177. package/src/JS.ts +2 -12
  178. package/src/Logger/ConsoleLogger.ts +2 -12
  179. package/src/Logger/index.ts +3 -13
  180. package/src/Logger/logger-interface.ts +2 -12
  181. package/src/OAuthHelper/FacebookOAuth.ts +2 -12
  182. package/src/OAuthHelper/GoogleOAuth.ts +2 -12
  183. package/src/OAuthHelper/index.ts +2 -12
  184. package/src/Platform/index.ts +2 -12
  185. package/src/Providers/AWSCloudWatchProvider.ts +2 -12
  186. package/src/Providers/index.ts +1 -1
  187. package/src/RNComponents/index.ts +2 -12
  188. package/src/RNComponents/reactnative.ts +2 -12
  189. package/src/Signer.ts +2 -12
  190. package/src/StorageHelper/index.ts +2 -12
  191. package/src/StorageHelper/reactnative.ts +2 -12
  192. package/src/Util/Constants.ts +2 -12
  193. package/src/Util/index.ts +23 -5
  194. package/src/constants.ts +2 -12
  195. package/src/index.ts +47 -20
@@ -1,8 +1,8 @@
1
- export * from './Retry';
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 * from './DateUtils';
5
- export * from './StringUtils';
6
- export * from './Constants';
7
- export * from './BackgroundProcessManager';
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,cAAc,SAAS,CAAC;AACxB,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,SAAS,CAAC;AAC3C,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,gBAAgB,CAAC;AACzD,cAAc,aAAa,CAAC;AAC5B,cAAc,eAAe,CAAC;AAC9B,cAAc,aAAa,CAAC;AAC5B,cAAc,4BAA4B,CAAC"}
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"}
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  /**
14
4
  * This Symbol is used to reference an internal-only PubSub provider that
15
5
  * is used for AppSync/GraphQL subscriptions in the API category.
@@ -1 +1 @@
1
- {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH;;;GAGG;AACH,IAAM,SAAS,GACd,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,IAAM,oCAAoC,GAAG,SAAS;IAC5D,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC;IACpD,CAAC,CAAC,wCAAwC,CAAC;AAE5C,MAAM,CAAC,IAAM,6CAA6C,GAAG,SAAS;IACrE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,+CAA+C,CAAC;IAC7D,CAAC,CAAC,iDAAiD,CAAC;AAErD,MAAM,CAAC,IAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
1
+ {"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC;;;GAGG;AACH,IAAM,SAAS,GACd,OAAO,MAAM,KAAK,WAAW,IAAI,OAAO,MAAM,CAAC,GAAG,KAAK,UAAU,CAAC;AAEnE;;GAEG;AACH,MAAM,CAAC,IAAM,oCAAoC,GAAG,SAAS;IAC5D,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,sCAAsC,CAAC;IACpD,CAAC,CAAC,wCAAwC,CAAC;AAE5C,MAAM,CAAC,IAAM,6CAA6C,GAAG,SAAS;IACrE,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,+CAA+C,CAAC;IAC7D,CAAC,CAAC,iDAAiD,CAAC;AAErD,MAAM,CAAC,IAAM,iBAAiB,GAAG,kBAAkB,CAAC"}
@@ -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 * from './Errors';
6
+ export { invalidParameter, missingConfig } from './Errors';
7
7
  export { Hub, HubCapsule, HubCallback, HubPayload } from './Hub';
8
8
  export { I18n } from './I18n';
9
- export * from './JS';
9
+ export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './JS';
10
10
  export { Signer } from './Signer';
11
- export * from './parseAWSExports';
12
- export * from './Providers';
11
+ export { parseAWSExports } from './parseAWSExports';
12
+ export { AWSCloudWatchProvider } from './Providers';
13
13
  export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
14
- export * from './RNComponents';
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 * from './constants';
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 * from './constants';
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
  */
package/lib-esm/index.js CHANGED
@@ -1,41 +1,30 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { Amplify } from './Amplify';
14
4
  import { Platform } from './Platform';
15
5
  export { Amplify } from './Amplify';
16
6
  export { AmplifyClass } from './Amplify';
17
7
  export { ClientDevice } from './ClientDevice';
18
8
  export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
19
- export * from './Errors';
9
+ export { invalidParameter, missingConfig } from './Errors';
20
10
  export { Hub } from './Hub';
21
11
  export { I18n } from './I18n';
22
- export * from './JS';
12
+ export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './JS';
23
13
  export { Signer } from './Signer';
24
- export * from './parseAWSExports';
25
- export * from './Providers';
14
+ export { parseAWSExports } from './parseAWSExports';
15
+ export { AWSCloudWatchProvider } from './Providers';
26
16
  export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
27
- export * from './RNComponents';
17
+ export { AppState, AsyncStorage, Linking } from './RNComponents';
28
18
  export { Credentials, CredentialsClass } from './Credentials';
29
19
  export { ServiceWorker } from './ServiceWorker';
30
20
  export { StorageHelper, MemoryStorage } from './StorageHelper';
31
21
  export { UniversalStorage } from './UniversalStorage';
32
22
  export { Platform, getAmplifyUserAgent } from './Platform';
33
- export * from './constants';
23
+ export { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
34
24
  export var Constants = {
35
25
  userAgent: Platform.userAgent,
36
26
  };
37
- export * from './constants';
38
- export * from './Util';
27
+ 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
28
  /**
40
29
  * @deprecated use named import
41
30
  */
@@ -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,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,cAAc,UAAU,CAAC;AACzB,OAAO,EAAE,GAAG,EAAuC,MAAM,OAAO,CAAC;AACjE,OAAO,EAAE,IAAI,EAAE,MAAM,QAAQ,CAAC;AAC9B,cAAc,MAAM,CAAC;AACrB,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,cAAc,mBAAmB,CAAC;AAClC,cAAc,aAAa,CAAC;AAC5B,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,MAAM,eAAe,CAAC;AAC3D,cAAc,gBAAgB,CAAC;AAC/B,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,cAAc,aAAa,CAAC;AAE5B,MAAM,CAAC,IAAM,SAAS,GAAG;IACxB,SAAS,EAAE,QAAQ,CAAC,SAAS;CAC7B,CAAC;AAEF,cAAc,aAAa,CAAC;AAC5B,cAAc,QAAQ,CAAC;AAEvB;;GAEG;AACH,eAAe,OAAO,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,qEAAqE;AACrE,sCAAsC;AAEtC,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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/core",
3
- "version": "4.6.2-next.32+4137aa79c",
3
+ "version": "4.6.2-next.41+f6ee89f54",
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",
@@ -115,5 +116,5 @@
115
116
  "lib-esm"
116
117
  ]
117
118
  },
118
- "gitHead": "4137aa79c6c2362afc581d3915d77f5067ea6700"
119
+ "gitHead": "f6ee89f54b4176f680529bfdb7205b3a29cf3be2"
119
120
  }
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { Platform, Dimensions } from 'react-native';
15
5
  import { ConsoleLogger as Logger } from '../Logger';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { ConsoleLogger as Logger } from '../Logger';
14
4
 
15
5
  const logger = new Logger('ClientDevice_Browser');
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { clientInfo, dimension } from './browser';
15
5
 
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { Platform, Dimensions } from 'react-native';
15
5
  import { ConsoleLogger as Logger } from '../Logger';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { Platform } from 'react-native';
15
5
  import { clientInfo as iOSClientInfo } from './ios';
package/src/Errors.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  export function missingConfig(name: string) {
15
5
  return new Error('Missing config value of ' + name);
package/src/Hub.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { ConsoleLogger as Logger } from './Logger';
15
5
 
package/src/I18n/I18n.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { I18nOptions } from './types';
15
5
  import { ConsoleLogger as Logger } from '../Logger';
package/src/I18n/index.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { I18n as I18nClass } from './I18n';
15
5
 
package/src/I18n/types.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  export class I18nOptions {
15
5
  language = null;
package/src/JS.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  const MIME_MAP = [
15
5
  { type: 'text/plain', ext: 'txt' },
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { InputLogEvent } from '@aws-sdk/client-cloudwatch-logs';
15
5
  import { LoggingProvider } from '../types';
@@ -1,14 +1,4 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
- export * from './ConsoleLogger';
4
+ export { ConsoleLogger, LOG_TYPE } from './ConsoleLogger';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { LoggingProvider } from '../types';
15
5
 
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { ConsoleLogger as Logger } from '../Logger';
14
4
  import { browserOrNode } from '../JS';
15
5
  import { NonRetryableError } from '../Util';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { ConsoleLogger as Logger } from '../Logger';
14
4
  import { browserOrNode } from '../JS';
15
5
  import { NonRetryableError } from '../Util';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { GoogleOAuth as GoogleOAuthClass } from './GoogleOAuth';
14
4
  import { FacebookOAuth as FacebookOAuthClass } from './FacebookOAuth';
15
5
 
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
  import { version } from './version';
14
4
 
15
5
  const BASE_USER_AGENT = `aws-amplify/${version}`;
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import {
15
5
  CloudWatchLogsClient,
@@ -1 +1 @@
1
- export * from './AWSCloudWatchProvider';
1
+ export { AWSCloudWatchProvider } from './AWSCloudWatchProvider';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { browserOrNode } from '../JS';
15
5
  import { StorageHelper } from '../StorageHelper';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { Linking, AppState } from 'react-native';
15
5
  import AsyncStorage from '@react-native-async-storage/async-storage';
package/src/Signer.ts CHANGED
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  import { ConsoleLogger as Logger } from './Logger';
15
5
  import { Sha256 as jsSha256 } from '@aws-crypto/sha256-js';
@@ -1,15 +1,5 @@
1
- /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
1
+ // Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ // SPDX-License-Identifier: Apache-2.0
13
3
 
14
4
  let dataMemory = {};
15
5