@aws-amplify/pubsub 6.1.50-unstable.cde36a7.0 → 6.1.50
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,105 +1,105 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
2
|
+
"name": "@aws-amplify/pubsub",
|
|
3
|
+
"version": "6.1.50",
|
|
4
|
+
"description": "Pubsub category of aws-amplify",
|
|
5
|
+
"main": "./dist/cjs/index.js",
|
|
6
|
+
"module": "./dist/esm/index.mjs",
|
|
7
|
+
"typings": "./dist/esm/index.d.ts",
|
|
8
|
+
"react-native": "./src/index.ts",
|
|
9
|
+
"sideEffects": false,
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"scripts": {
|
|
14
|
+
"test": "npm run lint && jest -w 1 --coverage --logHeapUsage",
|
|
15
|
+
"test:size": "size-limit",
|
|
16
|
+
"build-with-test": "npm run clean && npm run build",
|
|
17
|
+
"build:umd": "webpack && webpack --config ./webpack.config.dev.js",
|
|
18
|
+
"build:esm-cjs": "rollup --forceExit -c rollup.config.mjs && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor",
|
|
19
|
+
"build:watch": "mkdirp dist/esm/vendor && mkdirp dist/cjs/vendor && cp -R src/vendor dist/cjs/vendor && cp -R src/vendor dist/esm/vendor && rollup --forceExit -c rollup.config.mjs --watch",
|
|
20
|
+
"build": "npm run clean && npm run build:esm-cjs && npm run build:umd",
|
|
21
|
+
"clean": "npm run clean:size && rimraf dist lib lib-esm",
|
|
22
|
+
"clean:size": "rimraf dual-publish-tmp tmp*",
|
|
23
|
+
"format": "echo \"Not implemented\"",
|
|
24
|
+
"lint": "eslint '**/*.{ts,tsx}' && npm run ts-coverage",
|
|
25
|
+
"lint:fix": "eslint '**/*.{ts,tsx}' --fix",
|
|
26
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 93.0 -i src/vendor/paho-mqtt.js"
|
|
27
|
+
},
|
|
28
|
+
"typesVersions": {
|
|
29
|
+
">=4.2": {
|
|
30
|
+
"iot": [
|
|
31
|
+
"./dist/esm/clients/iot.d.ts"
|
|
32
|
+
],
|
|
33
|
+
"mqtt": [
|
|
34
|
+
"./dist/esm/clients/mqtt.d.ts"
|
|
35
|
+
]
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
"exports": {
|
|
39
|
+
".": {
|
|
40
|
+
"types": "./dist/esm/index.d.ts",
|
|
41
|
+
"import": "./dist/esm/index.mjs",
|
|
42
|
+
"require": "./dist/cjs/index.js",
|
|
43
|
+
"react-native": "./src/index.ts"
|
|
44
|
+
},
|
|
45
|
+
"./iot": {
|
|
46
|
+
"types": "./dist/esm/clients/iot.d.ts",
|
|
47
|
+
"import": "./dist/esm/clients/iot.mjs",
|
|
48
|
+
"require": "./dist/cjs/clients/iot.js",
|
|
49
|
+
"react-native": "./src/clients/iot.ts"
|
|
50
|
+
},
|
|
51
|
+
"./mqtt": {
|
|
52
|
+
"types": "./dist/esm/clients/mqtt.d.ts",
|
|
53
|
+
"import": "./dist/esm/clients/mqtt.mjs",
|
|
54
|
+
"require": "./dist/cjs/clients/mqtt.js",
|
|
55
|
+
"react-native": "./src/clients/mqtt.ts"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
"repository": {
|
|
59
|
+
"type": "git",
|
|
60
|
+
"url": "https://github.com/aws-amplify/amplify-js.git"
|
|
61
|
+
},
|
|
62
|
+
"author": "Amazon Web Services",
|
|
63
|
+
"license": "Apache-2.0",
|
|
64
|
+
"bugs": {
|
|
65
|
+
"url": "https://github.com/aws/aws-amplify/issues"
|
|
66
|
+
},
|
|
67
|
+
"homepage": "https://aws-amplify.github.io/",
|
|
68
|
+
"files": [
|
|
69
|
+
"dist/cjs",
|
|
70
|
+
"dist/esm",
|
|
71
|
+
"src",
|
|
72
|
+
"iot",
|
|
73
|
+
"mqtt"
|
|
74
|
+
],
|
|
75
|
+
"dependencies": {
|
|
76
|
+
"@aws-amplify/auth": "6.11.6",
|
|
77
|
+
"buffer": "4.9.2",
|
|
78
|
+
"graphql": "15.8.0",
|
|
79
|
+
"rxjs": "^7.8.1",
|
|
80
|
+
"tslib": "^2.5.0",
|
|
81
|
+
"url": "0.11.0"
|
|
82
|
+
},
|
|
83
|
+
"peerDependencies": {
|
|
84
|
+
"@aws-amplify/core": "^6.1.0"
|
|
85
|
+
},
|
|
86
|
+
"devDependencies": {
|
|
87
|
+
"@aws-amplify/core": "6.10.6",
|
|
88
|
+
"typescript": "5.0.2"
|
|
89
|
+
},
|
|
90
|
+
"size-limit": [
|
|
91
|
+
{
|
|
92
|
+
"name": "PubSub (IoT provider)",
|
|
93
|
+
"path": "./dist/esm/index.mjs",
|
|
94
|
+
"import": "{ generateClient }",
|
|
95
|
+
"limit": "1.2 kB"
|
|
96
|
+
},
|
|
97
|
+
{
|
|
98
|
+
"name": "PubSub (Mqtt provider)",
|
|
99
|
+
"path": "./dist/esm/clients/mqtt.mjs",
|
|
100
|
+
"import": "{ generateClient }",
|
|
101
|
+
"limit": "1.07 kB"
|
|
102
|
+
}
|
|
103
|
+
],
|
|
104
|
+
"gitHead": "52d159e1d01615d17689ca4710110759e2bb82c8"
|
|
105
105
|
}
|
|
@@ -17,18 +17,18 @@ interface LinkedConnectionStates {
|
|
|
17
17
|
keepAliveState: LinkedHealthState;
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
-
export const CONNECTION_CHANGE:
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
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' },
|