@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.
Files changed (145) 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 +1 -1
  4. package/lib/ClientDevice/browser.d.ts +25 -0
  5. package/lib/ClientDevice/browser.js +1 -1
  6. package/lib/ClientDevice/index.d.ts +23 -0
  7. package/lib/ClientDevice/index.js +1 -1
  8. package/lib/ClientDevice/ios.d.ts +7 -0
  9. package/lib/ClientDevice/ios.js +1 -1
  10. package/lib/ClientDevice/reactnative.d.ts +7 -0
  11. package/lib/ClientDevice/reactnative.js +1 -1
  12. package/lib/Credentials.d.ts +47 -0
  13. package/lib/Errors.d.ts +2 -0
  14. package/lib/Errors.js +1 -1
  15. package/lib/Hub.d.ts +55 -0
  16. package/lib/Hub.js +1 -1
  17. package/lib/I18n/I18n.d.ts +59 -0
  18. package/lib/I18n/I18n.js +1 -1
  19. package/lib/I18n/index.d.ts +49 -0
  20. package/lib/I18n/index.js +1 -1
  21. package/lib/I18n/types.d.ts +3 -0
  22. package/lib/I18n/types.js +1 -1
  23. package/lib/JS.d.ts +32 -0
  24. package/lib/JS.js +1 -1
  25. package/lib/Logger/ConsoleLogger.d.ts +80 -0
  26. package/lib/Logger/ConsoleLogger.js +1 -1
  27. package/lib/Logger/index.d.ts +1 -0
  28. package/lib/Logger/index.js +4 -3
  29. package/lib/Logger/index.js.map +1 -1
  30. package/lib/Logger/logger-interface.d.ts +8 -0
  31. package/lib/Logger/logger-interface.js +1 -1
  32. package/lib/OAuthHelper/FacebookOAuth.d.ts +6 -0
  33. package/lib/OAuthHelper/FacebookOAuth.js +1 -1
  34. package/lib/OAuthHelper/GoogleOAuth.d.ts +6 -0
  35. package/lib/OAuthHelper/GoogleOAuth.js +1 -1
  36. package/lib/OAuthHelper/index.d.ts +4 -0
  37. package/lib/OAuthHelper/index.js +1 -1
  38. package/lib/Platform/index.d.ts +7 -0
  39. package/lib/Platform/index.js +1 -1
  40. package/lib/Platform/version.d.ts +1 -0
  41. package/lib/Providers/AWSCloudWatchProvider.d.ts +34 -0
  42. package/lib/Providers/AWSCloudWatchProvider.js +1 -1
  43. package/lib/Providers/index.d.ts +1 -0
  44. package/lib/Providers/index.js +2 -2
  45. package/lib/Providers/index.js.map +1 -1
  46. package/lib/RNComponents/index.d.ts +5 -0
  47. package/lib/RNComponents/index.js +1 -1
  48. package/lib/RNComponents/reactnative.d.ts +3 -0
  49. package/lib/RNComponents/reactnative.js +1 -1
  50. package/lib/ServiceWorker/ServiceWorker.d.ts +68 -0
  51. package/lib/ServiceWorker/index.d.ts +13 -0
  52. package/lib/Signer.d.ts +41 -0
  53. package/lib/Signer.js +1 -1
  54. package/lib/StorageHelper/index.d.ts +41 -0
  55. package/lib/StorageHelper/index.js +1 -1
  56. package/lib/StorageHelper/reactnative.d.ts +13 -0
  57. package/lib/StorageHelper/reactnative.js +1 -1
  58. package/lib/UniversalStorage/index.d.ts +23 -0
  59. package/lib/Util/BackgroundProcessManager.d.ts +204 -0
  60. package/lib/Util/Constants.d.ts +8 -0
  61. package/lib/Util/Constants.js +1 -1
  62. package/lib/Util/DateUtils.d.ts +7 -0
  63. package/lib/Util/Mutex.d.ts +45 -0
  64. package/lib/Util/Reachability.d.ts +13 -0
  65. package/lib/Util/Reachability.native.d.ts +11 -0
  66. package/lib/Util/Retry.d.ts +21 -0
  67. package/lib/Util/StringUtils.d.ts +2 -0
  68. package/lib/Util/index.d.ts +7 -0
  69. package/lib/Util/index.js +23 -6
  70. package/lib/Util/index.js.map +1 -1
  71. package/lib/constants.d.ts +6 -0
  72. package/lib/constants.js +1 -1
  73. package/lib/index.d.ts +29 -0
  74. package/lib/index.js +50 -10
  75. package/lib/index.js.map +1 -1
  76. package/lib/parseAWSExports.d.ts +2 -0
  77. package/lib/types/index.d.ts +1 -0
  78. package/lib/types/types.d.ts +46 -0
  79. package/lib-esm/ClientDevice/android.js +1 -1
  80. package/lib-esm/ClientDevice/browser.js +1 -1
  81. package/lib-esm/ClientDevice/index.js +1 -1
  82. package/lib-esm/ClientDevice/ios.js +1 -1
  83. package/lib-esm/ClientDevice/reactnative.js +1 -1
  84. package/lib-esm/Errors.js +1 -1
  85. package/lib-esm/Hub.js +1 -1
  86. package/lib-esm/I18n/I18n.js +1 -1
  87. package/lib-esm/I18n/index.js +1 -1
  88. package/lib-esm/I18n/types.js +1 -1
  89. package/lib-esm/JS.js +1 -1
  90. package/lib-esm/Logger/ConsoleLogger.js +1 -1
  91. package/lib-esm/Logger/index.d.ts +1 -1
  92. package/lib-esm/Logger/index.js +2 -2
  93. package/lib-esm/Logger/index.js.map +1 -1
  94. package/lib-esm/Logger/logger-interface.js +1 -1
  95. package/lib-esm/OAuthHelper/FacebookOAuth.js +1 -1
  96. package/lib-esm/OAuthHelper/GoogleOAuth.js +1 -1
  97. package/lib-esm/OAuthHelper/index.js +1 -1
  98. package/lib-esm/Platform/index.js +1 -1
  99. package/lib-esm/Providers/AWSCloudWatchProvider.js +1 -1
  100. package/lib-esm/Providers/index.d.ts +1 -1
  101. package/lib-esm/Providers/index.js +1 -1
  102. package/lib-esm/Providers/index.js.map +1 -1
  103. package/lib-esm/RNComponents/index.js +1 -1
  104. package/lib-esm/RNComponents/reactnative.js +1 -1
  105. package/lib-esm/Signer.js +1 -1
  106. package/lib-esm/StorageHelper/index.js +1 -1
  107. package/lib-esm/StorageHelper/reactnative.js +1 -1
  108. package/lib-esm/Util/Constants.js +1 -1
  109. package/lib-esm/Util/index.d.ts +5 -5
  110. package/lib-esm/Util/index.js +5 -5
  111. package/lib-esm/Util/index.js.map +1 -1
  112. package/lib-esm/constants.js +1 -1
  113. package/lib-esm/index.d.ts +7 -8
  114. package/lib-esm/index.js +8 -9
  115. package/lib-esm/index.js.map +1 -1
  116. package/package.json +4 -3
  117. package/src/ClientDevice/android.ts +1 -1
  118. package/src/ClientDevice/browser.ts +1 -1
  119. package/src/ClientDevice/index.ts +1 -1
  120. package/src/ClientDevice/ios.ts +1 -1
  121. package/src/ClientDevice/reactnative.ts +1 -1
  122. package/src/Errors.ts +1 -1
  123. package/src/Hub.ts +1 -1
  124. package/src/I18n/I18n.ts +1 -1
  125. package/src/I18n/index.ts +1 -1
  126. package/src/I18n/types.ts +1 -1
  127. package/src/JS.ts +1 -1
  128. package/src/Logger/ConsoleLogger.ts +1 -1
  129. package/src/Logger/index.ts +2 -2
  130. package/src/Logger/logger-interface.ts +1 -1
  131. package/src/OAuthHelper/FacebookOAuth.ts +1 -1
  132. package/src/OAuthHelper/GoogleOAuth.ts +1 -1
  133. package/src/OAuthHelper/index.ts +1 -1
  134. package/src/Platform/index.ts +1 -1
  135. package/src/Providers/AWSCloudWatchProvider.ts +1 -1
  136. package/src/Providers/index.ts +1 -1
  137. package/src/RNComponents/index.ts +1 -1
  138. package/src/RNComponents/reactnative.ts +1 -1
  139. package/src/Signer.ts +1 -1
  140. package/src/StorageHelper/index.ts +1 -1
  141. package/src/StorageHelper/reactnative.ts +1 -1
  142. package/src/Util/Constants.ts +1 -1
  143. package/src/Util/index.ts +23 -5
  144. package/src/constants.ts +1 -1
  145. package/src/index.ts +46 -9
package/lib-esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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
@@ -16,26 +16,25 @@ export { Amplify } from './Amplify';
16
16
  export { AmplifyClass } from './Amplify';
17
17
  export { ClientDevice } from './ClientDevice';
18
18
  export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
19
- export * from './Errors';
19
+ export { invalidParameter, missingConfig } from './Errors';
20
20
  export { Hub } from './Hub';
21
21
  export { I18n } from './I18n';
22
- export * from './JS';
22
+ export { browserOrNode, filenameToContentType, generateRandomString, isEmpty, isStrictObject, isTextFile, isWebWorker, makeQuerablePromise, objectLessAttributes, sortByField, transferKeyToLowerCase, transferKeyToUpperCase, } from './JS';
23
23
  export { Signer } from './Signer';
24
- export * from './parseAWSExports';
25
- export * from './Providers';
24
+ export { parseAWSExports } from './parseAWSExports';
25
+ export { AWSCloudWatchProvider } from './Providers';
26
26
  export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
27
- export * from './RNComponents';
27
+ export { AppState, AsyncStorage, Linking } from './RNComponents';
28
28
  export { Credentials, CredentialsClass } from './Credentials';
29
29
  export { ServiceWorker } from './ServiceWorker';
30
30
  export { StorageHelper, MemoryStorage } from './StorageHelper';
31
31
  export { UniversalStorage } from './UniversalStorage';
32
32
  export { Platform, getAmplifyUserAgent } from './Platform';
33
- export * from './constants';
33
+ export { INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER, INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER, USER_AGENT_HEADER, } from './constants';
34
34
  export var Constants = {
35
35
  userAgent: Platform.userAgent,
36
36
  };
37
- export * from './constants';
38
- export * from './Util';
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
  */
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;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,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.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",
@@ -115,5 +116,5 @@
115
116
  "lib-esm"
116
117
  ]
117
118
  },
118
- "gitHead": "4137aa79c6c2362afc581d3915d77f5067ea6700"
119
+ "gitHead": "580cda186f10ead3bb99acb7a4825c435c657d33"
119
120
  }
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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/Errors.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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/I18n.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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/types.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 * from './ConsoleLogger';
14
+ export { ConsoleLogger, LOG_TYPE } from './ConsoleLogger';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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 * from './AWSCloudWatchProvider';
1
+ export { AWSCloudWatchProvider } from './AWSCloudWatchProvider';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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/Signer.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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/Util/index.ts CHANGED
@@ -1,7 +1,25 @@
1
- export * from './Retry';
1
+ export {
2
+ NonRetryableError,
3
+ isNonRetryableError,
4
+ jitteredBackoff,
5
+ jitteredExponentialRetry,
6
+ retry,
7
+ } from './Retry';
2
8
  export { default as Mutex } from './Mutex';
3
9
  export { default as Reachability } from './Reachability';
4
- export * from './DateUtils';
5
- export * from './StringUtils';
6
- export * from './Constants';
7
- export * from './BackgroundProcessManager';
10
+ export { DateUtils } from './DateUtils';
11
+ export { urlSafeDecode, urlSafeEncode } from './StringUtils';
12
+ export {
13
+ AWS_CLOUDWATCH_BASE_BUFFER_SIZE,
14
+ AWS_CLOUDWATCH_CATEGORY,
15
+ AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE,
16
+ AWS_CLOUDWATCH_MAX_EVENT_SIZE,
17
+ AWS_CLOUDWATCH_PROVIDER_NAME,
18
+ NO_CREDS_ERROR_STRING,
19
+ RETRY_ERROR_CODES,
20
+ } from './Constants';
21
+ export {
22
+ BackgroundProcessManager,
23
+ BackgroundManagerNotOpenError,
24
+ BackgroundProcessManagerState,
25
+ } from './BackgroundProcessManager';
package/src/constants.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2018-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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/src/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2017 Amazon.com, Inc. or its affiliates. All Rights Reserved.
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
@@ -18,29 +18,66 @@ export { Amplify } from './Amplify';
18
18
  export { AmplifyClass } from './Amplify';
19
19
  export { ClientDevice } from './ClientDevice';
20
20
  export { ConsoleLogger, ConsoleLogger as Logger } from './Logger';
21
- export * from './Errors';
21
+ export { invalidParameter, missingConfig } from './Errors';
22
22
  export { Hub, HubCapsule, HubCallback, HubPayload } from './Hub';
23
23
  export { I18n } from './I18n';
24
- export * from './JS';
24
+ export {
25
+ browserOrNode,
26
+ filenameToContentType,
27
+ generateRandomString,
28
+ isEmpty,
29
+ isStrictObject,
30
+ isTextFile,
31
+ isWebWorker,
32
+ makeQuerablePromise,
33
+ objectLessAttributes,
34
+ sortByField,
35
+ transferKeyToLowerCase,
36
+ transferKeyToUpperCase,
37
+ } from './JS';
25
38
  export { Signer } from './Signer';
26
- export * from './parseAWSExports';
27
- export * from './Providers';
39
+ export { parseAWSExports } from './parseAWSExports';
40
+ export { AWSCloudWatchProvider } from './Providers';
28
41
  export { FacebookOAuth, GoogleOAuth } from './OAuthHelper';
29
- export * from './RNComponents';
42
+ export { AppState, AsyncStorage, Linking } from './RNComponents';
30
43
  export { Credentials, CredentialsClass } from './Credentials';
31
44
  export { ServiceWorker } from './ServiceWorker';
32
45
  export { ICredentials } from './types';
33
46
  export { StorageHelper, MemoryStorage } from './StorageHelper';
34
47
  export { UniversalStorage } from './UniversalStorage';
35
48
  export { Platform, getAmplifyUserAgent } from './Platform';
36
- export * from './constants';
49
+ export {
50
+ INTERNAL_AWS_APPSYNC_PUBSUB_PROVIDER,
51
+ INTERNAL_AWS_APPSYNC_REALTIME_PUBSUB_PROVIDER,
52
+ USER_AGENT_HEADER,
53
+ } from './constants';
37
54
 
38
55
  export const Constants = {
39
56
  userAgent: Platform.userAgent,
40
57
  };
41
58
 
42
- export * from './constants';
43
- export * from './Util';
59
+ export {
60
+ AWS_CLOUDWATCH_BASE_BUFFER_SIZE,
61
+ AWS_CLOUDWATCH_CATEGORY,
62
+ AWS_CLOUDWATCH_MAX_BATCH_EVENT_SIZE,
63
+ AWS_CLOUDWATCH_MAX_EVENT_SIZE,
64
+ AWS_CLOUDWATCH_PROVIDER_NAME,
65
+ BackgroundManagerNotOpenError,
66
+ BackgroundProcessManager,
67
+ BackgroundProcessManagerState,
68
+ DateUtils,
69
+ Mutex,
70
+ NO_CREDS_ERROR_STRING,
71
+ NonRetryableError,
72
+ RETRY_ERROR_CODES,
73
+ Reachability,
74
+ isNonRetryableError,
75
+ jitteredBackoff,
76
+ jitteredExponentialRetry,
77
+ retry,
78
+ urlSafeDecode,
79
+ urlSafeEncode,
80
+ } from './Util';
44
81
 
45
82
  /**
46
83
  * @deprecated use named import