@aws-amplify/pubsub 4.4.10-next.32 → 4.4.10-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 (53) hide show
  1. package/lib/Providers/AWSAppSyncProvider.d.ts +21 -0
  2. package/lib/Providers/AWSAppSyncRealTimeProvider/index.d.ts +75 -0
  3. package/lib/Providers/AWSAppSyncRealTimeProvider/index.js +1 -1
  4. package/lib/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
  5. package/lib/Providers/AWSIotProvider.d.ts +11 -0
  6. package/lib/Providers/AWSIotProvider.js +1 -1
  7. package/lib/Providers/MqttOverWSProvider.d.ts +41 -0
  8. package/lib/Providers/MqttOverWSProvider.js +1 -1
  9. package/lib/Providers/MqttOverWSProvider.js.map +1 -1
  10. package/lib/Providers/PubSubProvider.d.ts +13 -0
  11. package/lib/Providers/constants.d.ts +95 -0
  12. package/lib/Providers/index.d.ts +5 -0
  13. package/lib/Providers/index.js +12 -7
  14. package/lib/Providers/index.js.map +1 -1
  15. package/lib/PubSub.d.ts +51 -0
  16. package/lib/PubSub.js +1 -1
  17. package/lib/index.d.ts +4 -0
  18. package/lib/index.js +8 -3
  19. package/lib/index.js.map +1 -1
  20. package/lib/types/Provider.d.ts +18 -0
  21. package/lib/types/PubSub.d.ts +24 -0
  22. package/lib/types/PubSub.js +1 -1
  23. package/lib/types/index.d.ts +2 -0
  24. package/lib/utils/ConnectionStateMonitor.d.ts +41 -0
  25. package/lib/utils/ReachabilityMonitor/index.d.ts +3 -0
  26. package/lib/utils/ReachabilityMonitor/index.native.d.ts +3 -0
  27. package/lib/utils/ReconnectionMonitor.d.ts +29 -0
  28. package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js +1 -1
  29. package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
  30. package/lib-esm/Providers/AWSIotProvider.js +1 -1
  31. package/lib-esm/Providers/MqttOverWSProvider.d.ts +0 -4
  32. package/lib-esm/Providers/MqttOverWSProvider.js +1 -1
  33. package/lib-esm/Providers/MqttOverWSProvider.js.map +1 -1
  34. package/lib-esm/Providers/index.d.ts +5 -5
  35. package/lib-esm/Providers/index.js +6 -6
  36. package/lib-esm/Providers/index.js.map +1 -1
  37. package/lib-esm/PubSub.js +1 -1
  38. package/lib-esm/index.d.ts +1 -1
  39. package/lib-esm/index.js +2 -2
  40. package/lib-esm/index.js.map +1 -1
  41. package/lib-esm/types/PubSub.js +1 -1
  42. package/package.json +112 -111
  43. package/src/Providers/AWSAppSyncProvider.ts +1 -1
  44. package/src/Providers/AWSAppSyncRealTimeProvider/index.ts +1 -1
  45. package/src/Providers/AWSIotProvider.ts +1 -1
  46. package/src/Providers/MqttOverWSProvider.ts +1 -6
  47. package/src/Providers/PubSubProvider.ts +1 -1
  48. package/src/Providers/index.ts +14 -6
  49. package/src/PubSub.ts +1 -1
  50. package/src/index.ts +13 -2
  51. package/src/types/Provider.ts +1 -1
  52. package/src/types/PubSub.ts +1 -1
  53. package/src/types/index.ts +1 -1
@@ -28,7 +28,7 @@ import {
28
28
  ICredentials,
29
29
  isNonRetryableError,
30
30
  } from '@aws-amplify/core';
31
- import { BrowserStorageCache as Cache } from '@aws-amplify/cache';
31
+ import { Cache } from '@aws-amplify/cache';
32
32
  import { Auth, GRAPHQL_AUTH_MODE } from '@aws-amplify/auth';
33
33
  import { AbstractPubSubProvider } from '../PubSubProvider';
34
34
  import { CONTROL_MSG, ConnectionState } from '../../types/PubSub';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 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-2018 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
@@ -49,11 +49,6 @@ export interface MqttProviderOptions extends ProviderOptions {
49
49
  url?: string;
50
50
  }
51
51
 
52
- /**
53
- * @deprecated Migrated to MqttProviderOptions
54
- */
55
- export type MqttProvidertOptions = MqttProviderOptions;
56
-
57
52
  class ClientsQueue {
58
53
  private promises: Map<string, Promise<any>> = new Map();
59
54
 
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 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-2018 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
@@ -10,8 +10,16 @@
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 * from './PubSubProvider';
14
- export * from './AWSAppSyncProvider';
15
- export * from './AWSAppSyncRealTimeProvider';
16
- export * from './AWSIotProvider';
17
- export * from './MqttOverWSProvider';
13
+ export { AbstractPubSubProvider } from './PubSubProvider';
14
+ export { AWSAppSyncProvider } from './AWSAppSyncProvider';
15
+ export {
16
+ AWSAppSyncRealTimeProvider,
17
+ AWSAppSyncRealTimeProviderOptions,
18
+ ObserverQuery,
19
+ } from './AWSAppSyncRealTimeProvider';
20
+ export { AWSIoTProvider, AWSIoTProviderOptions } from './AWSIotProvider';
21
+ export {
22
+ MqttProviderOptions,
23
+ MqttOverWSProvider,
24
+ mqttTopicMatch,
25
+ } from './MqttOverWSProvider';
package/src/PubSub.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 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/index.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 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
@@ -12,6 +12,17 @@
12
12
  */
13
13
 
14
14
  export { PubSub } from './PubSub';
15
- export * from './Providers';
16
15
  export { CONNECTION_STATE_CHANGE } from './Providers/constants';
17
16
  export { ConnectionState, CONTROL_MSG } from './types';
17
+ export {
18
+ AWSAppSyncProvider,
19
+ AWSAppSyncRealTimeProvider,
20
+ AWSAppSyncRealTimeProviderOptions,
21
+ AWSIoTProvider,
22
+ AWSIoTProviderOptions,
23
+ AbstractPubSubProvider,
24
+ MqttOverWSProvider,
25
+ MqttProviderOptions,
26
+ ObserverQuery,
27
+ mqttTopicMatch,
28
+ } from './Providers';
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2018 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-2018 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-2018 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