@aws-amplify/core 6.0.1-console-preview.3b09ef9.0 → 6.0.1-console-preview.9e7dd78.0

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 (52) hide show
  1. package/lib/Hub/types/AuthTypes.d.ts +13 -7
  2. package/lib/Platform/index.d.ts +2 -2
  3. package/lib/Platform/index.js +2 -5
  4. package/lib/Platform/types.d.ts +4 -55
  5. package/lib/Platform/types.js +36 -48
  6. package/lib/Platform/version.d.ts +1 -1
  7. package/lib/Platform/version.js +1 -1
  8. package/lib/index.d.ts +1 -7
  9. package/lib/index.js +2 -17
  10. package/lib/libraryUtils.d.ts +1 -1
  11. package/lib/parseAWSExports.d.ts +5 -4
  12. package/lib/parseAWSExports.js +37 -43
  13. package/lib/singleton/Auth/index.js +1 -1
  14. package/lib/singleton/Auth/types.d.ts +2 -2
  15. package/lib/singleton/types.d.ts +2 -2
  16. package/lib/tsconfig.tsbuildinfo +1 -1
  17. package/lib/types/core.d.ts +0 -8
  18. package/lib-esm/Hub/types/AuthTypes.d.ts +13 -7
  19. package/lib-esm/Platform/index.d.ts +2 -2
  20. package/lib-esm/Platform/index.js +2 -5
  21. package/lib-esm/Platform/types.d.ts +4 -55
  22. package/lib-esm/Platform/types.js +36 -48
  23. package/lib-esm/Platform/version.d.ts +1 -1
  24. package/lib-esm/Platform/version.js +1 -1
  25. package/lib-esm/index.d.ts +1 -7
  26. package/lib-esm/index.js +1 -6
  27. package/lib-esm/libraryUtils.d.ts +1 -1
  28. package/lib-esm/parseAWSExports.d.ts +5 -4
  29. package/lib-esm/parseAWSExports.js +37 -43
  30. package/lib-esm/singleton/Auth/index.js +1 -1
  31. package/lib-esm/singleton/Auth/types.d.ts +2 -2
  32. package/lib-esm/singleton/types.d.ts +2 -2
  33. package/lib-esm/tsconfig.tsbuildinfo +1 -1
  34. package/lib-esm/types/core.d.ts +0 -8
  35. package/package.json +2 -26
  36. package/src/Cache/CHANGELOG.md +12 -0
  37. package/src/Hub/types/AuthTypes.ts +8 -6
  38. package/src/Platform/index.ts +3 -8
  39. package/src/Platform/types.ts +34 -56
  40. package/src/Platform/version.ts +1 -1
  41. package/src/index.ts +3 -9
  42. package/src/libraryUtils.ts +5 -1
  43. package/src/parseAWSExports.ts +69 -63
  44. package/src/singleton/Auth/index.ts +1 -1
  45. package/src/singleton/Auth/types.ts +2 -2
  46. package/src/singleton/types.ts +5 -4
  47. package/src/types/core.ts +0 -10
  48. package/lib/Credentials.d.ts +0 -47
  49. package/lib/Credentials.js +0 -676
  50. package/lib-esm/Credentials.d.ts +0 -47
  51. package/lib-esm/Credentials.js +0 -673
  52. package/src/Credentials.ts +0 -630
@@ -1,47 +0,0 @@
1
- import { ICredentials } from './types';
2
- export declare class CredentialsClass {
3
- private _config;
4
- private _credentials;
5
- private _credentials_source;
6
- private _gettingCredPromise;
7
- private _refreshHandlers;
8
- private _storage;
9
- private _storageSync;
10
- private _identityId;
11
- private _nextCredentialsRefresh;
12
- Auth: undefined;
13
- constructor(config: any);
14
- getModuleName(): string;
15
- getCredSource(): any;
16
- configure(config: any): any;
17
- get(): any;
18
- private _getCognitoIdentityIdStorageKey;
19
- private _pickupCredentials;
20
- private _keepAlive;
21
- refreshFederatedToken(federatedInfo: any): Promise<ICredentials>;
22
- private _providerRefreshWithRetry;
23
- private _isExpired;
24
- private _isPastTTL;
25
- private _setCredentialsForGuest;
26
- private _setCredentialsFromFederation;
27
- private _setCredentialsFromSession;
28
- private _loadCredentials;
29
- set(params: any, source: any): Promise<ICredentials>;
30
- clear(): Promise<void>;
31
- private _getGuestIdentityId;
32
- private _setGuestIdentityId;
33
- private _removeGuestIdentityId;
34
- /**
35
- * Compact version of credentials
36
- * @param {Object} credentials
37
- * @return {Object} - Credentials
38
- */
39
- shear(credentials: any): {
40
- accessKeyId: any;
41
- sessionToken: any;
42
- secretAccessKey: any;
43
- identityId: any;
44
- authenticated: any;
45
- };
46
- }
47
- export declare const Credentials: CredentialsClass;