@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.
- package/lib/Providers/AWSAppSyncProvider.d.ts +21 -0
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.d.ts +75 -0
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.js +1 -1
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
- package/lib/Providers/AWSIotProvider.d.ts +11 -0
- package/lib/Providers/AWSIotProvider.js +1 -1
- package/lib/Providers/MqttOverWSProvider.d.ts +41 -0
- package/lib/Providers/MqttOverWSProvider.js +1 -1
- package/lib/Providers/MqttOverWSProvider.js.map +1 -1
- package/lib/Providers/PubSubProvider.d.ts +13 -0
- package/lib/Providers/constants.d.ts +95 -0
- package/lib/Providers/index.d.ts +5 -0
- package/lib/Providers/index.js +12 -7
- package/lib/Providers/index.js.map +1 -1
- package/lib/PubSub.d.ts +51 -0
- package/lib/PubSub.js +1 -1
- package/lib/index.d.ts +4 -0
- package/lib/index.js +8 -3
- package/lib/index.js.map +1 -1
- package/lib/types/Provider.d.ts +18 -0
- package/lib/types/PubSub.d.ts +24 -0
- package/lib/types/PubSub.js +1 -1
- package/lib/types/index.d.ts +2 -0
- package/lib/utils/ConnectionStateMonitor.d.ts +41 -0
- package/lib/utils/ReachabilityMonitor/index.d.ts +3 -0
- package/lib/utils/ReachabilityMonitor/index.native.d.ts +3 -0
- package/lib/utils/ReconnectionMonitor.d.ts +29 -0
- package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js +1 -1
- package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
- package/lib-esm/Providers/AWSIotProvider.js +1 -1
- package/lib-esm/Providers/MqttOverWSProvider.d.ts +0 -4
- package/lib-esm/Providers/MqttOverWSProvider.js +1 -1
- package/lib-esm/Providers/MqttOverWSProvider.js.map +1 -1
- package/lib-esm/Providers/index.d.ts +5 -5
- package/lib-esm/Providers/index.js +6 -6
- package/lib-esm/Providers/index.js.map +1 -1
- package/lib-esm/PubSub.js +1 -1
- package/lib-esm/index.d.ts +1 -1
- package/lib-esm/index.js +2 -2
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/types/PubSub.js +1 -1
- package/package.json +112 -111
- package/src/Providers/AWSAppSyncProvider.ts +1 -1
- package/src/Providers/AWSAppSyncRealTimeProvider/index.ts +1 -1
- package/src/Providers/AWSIotProvider.ts +1 -1
- package/src/Providers/MqttOverWSProvider.ts +1 -6
- package/src/Providers/PubSubProvider.ts +1 -1
- package/src/Providers/index.ts +14 -6
- package/src/PubSub.ts +1 -1
- package/src/index.ts +13 -2
- package/src/types/Provider.ts +1 -1
- package/src/types/PubSub.ts +1 -1
- 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 {
|
|
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-
|
|
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
|
|
@@ -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-
|
|
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/Providers/index.ts
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,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
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
|
|
17
|
-
|
|
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-
|
|
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-
|
|
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';
|
package/src/types/Provider.ts
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/src/types/PubSub.ts
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/src/types/index.ts
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
|