@aws-amplify/pubsub 6.1.50-unstable.cde36a7.0 → 6.1.51-unstable.b188564.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.
@@ -8,9 +8,7 @@ interface LinkedConnectionStates {
8
8
  intendedConnectionState: LinkedConnectionState;
9
9
  keepAliveState: LinkedHealthState;
10
10
  }
11
- export declare const CONNECTION_CHANGE: {
12
- [key in 'KEEP_ALIVE_MISSED' | 'KEEP_ALIVE' | 'CONNECTION_ESTABLISHED' | 'CONNECTION_FAILED' | 'CLOSING_CONNECTION' | 'OPENING_CONNECTION' | 'CLOSED' | 'ONLINE' | 'OFFLINE']: Partial<LinkedConnectionStates>;
13
- };
11
+ export declare const CONNECTION_CHANGE: Record<'KEEP_ALIVE_MISSED' | 'KEEP_ALIVE' | 'CONNECTION_ESTABLISHED' | 'CONNECTION_FAILED' | 'CLOSING_CONNECTION' | 'OPENING_CONNECTION' | 'CLOSED' | 'ONLINE' | 'OFFLINE', Partial<LinkedConnectionStates>>;
14
12
  export declare class ConnectionStateMonitor {
15
13
  /**
16
14
  * @private
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/pubsub",
3
- "version": "6.1.50-unstable.cde36a7.0+cde36a7",
3
+ "version": "6.1.51-unstable.b188564.0+b188564",
4
4
  "description": "Pubsub category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -73,7 +73,7 @@
73
73
  "mqtt"
74
74
  ],
75
75
  "dependencies": {
76
- "@aws-amplify/auth": "6.11.6-unstable.cde36a7.0+cde36a7",
76
+ "@aws-amplify/auth": "6.11.7-unstable.b188564.0+b188564",
77
77
  "buffer": "4.9.2",
78
78
  "graphql": "15.8.0",
79
79
  "rxjs": "^7.8.1",
@@ -81,10 +81,10 @@
81
81
  "url": "0.11.0"
82
82
  },
83
83
  "peerDependencies": {
84
- "@aws-amplify/core": "6.10.6-unstable.cde36a7.0+cde36a7"
84
+ "@aws-amplify/core": "6.10.7-unstable.b188564.0+b188564"
85
85
  },
86
86
  "devDependencies": {
87
- "@aws-amplify/core": "6.10.6-unstable.cde36a7.0+cde36a7",
87
+ "@aws-amplify/core": "6.10.7-unstable.b188564.0+b188564",
88
88
  "typescript": "5.0.2"
89
89
  },
90
90
  "size-limit": [
@@ -101,5 +101,5 @@
101
101
  "limit": "1.07 kB"
102
102
  }
103
103
  ],
104
- "gitHead": "cde36a7b5ca5254a6821db46832a80c9e0ea54fd"
104
+ "gitHead": "b1885648589e0549c0e7c257e8be5fb4936d5bde"
105
105
  }
@@ -17,18 +17,18 @@ interface LinkedConnectionStates {
17
17
  keepAliveState: LinkedHealthState;
18
18
  }
19
19
 
20
- export const CONNECTION_CHANGE: {
21
- [key in
22
- | 'KEEP_ALIVE_MISSED'
23
- | 'KEEP_ALIVE'
24
- | 'CONNECTION_ESTABLISHED'
25
- | 'CONNECTION_FAILED'
26
- | 'CLOSING_CONNECTION'
27
- | 'OPENING_CONNECTION'
28
- | 'CLOSED'
29
- | 'ONLINE'
30
- | 'OFFLINE']: Partial<LinkedConnectionStates>;
31
- } = {
20
+ export const CONNECTION_CHANGE: Record<
21
+ | 'KEEP_ALIVE_MISSED'
22
+ | 'KEEP_ALIVE'
23
+ | 'CONNECTION_ESTABLISHED'
24
+ | 'CONNECTION_FAILED'
25
+ | 'CLOSING_CONNECTION'
26
+ | 'OPENING_CONNECTION'
27
+ | 'CLOSED'
28
+ | 'ONLINE'
29
+ | 'OFFLINE',
30
+ Partial<LinkedConnectionStates>
31
+ > = {
32
32
  KEEP_ALIVE_MISSED: { keepAliveState: 'unhealthy' },
33
33
  KEEP_ALIVE: { keepAliveState: 'healthy' },
34
34
  CONNECTION_ESTABLISHED: { connectionState: 'connected' },