@aws-amplify/pubsub 4.4.10-next.20 → 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/CHANGELOG.md +35 -0
- package/lib/.tsbuildinfo +3 -0
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.js +5 -5
- package/lib/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
- package/lib/Providers/AWSIotProvider.js +1 -1
- package/lib/Providers/MqttOverWSProvider.d.ts +0 -4
- package/lib/Providers/MqttOverWSProvider.js +1 -1
- package/lib/Providers/MqttOverWSProvider.js.map +1 -1
- package/lib/Providers/index.d.ts +5 -5
- package/lib/Providers/index.js +12 -7
- package/lib/Providers/index.js.map +1 -1
- package/lib/PubSub.js +1 -1
- package/lib/index.d.ts +2 -7
- package/lib/index.js +9 -8
- package/lib/index.js.map +1 -1
- package/lib/types/PubSub.js +1 -1
- package/lib-esm/.tsbuildinfo +3 -0
- package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js +2 -2
- 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 +2 -7
- package/lib-esm/index.js +3 -8
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/types/PubSub.js +1 -1
- package/package.json +112 -106
- package/src/Providers/AWSAppSyncProvider.ts +1 -1
- package/src/Providers/AWSAppSyncRealTimeProvider/index.ts +2 -2
- 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 +14 -12
- package/src/types/Provider.ts +1 -1
- package/src/types/PubSub.ts +1 -1
- package/src/types/index.ts +1 -1
- package/build.js +0 -5
- package/dist/aws-amplify-pubsub.js +0 -10015
- package/dist/aws-amplify-pubsub.js.map +0 -1
- package/dist/aws-amplify-pubsub.min.js +0 -11
- package/dist/aws-amplify-pubsub.min.js.map +0 -1
- package/index.js +0 -7
- package/webpack.config.dev.js +0 -6
|
@@ -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,9 +10,9 @@
|
|
|
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
|
-
export
|
|
17
|
-
export
|
|
13
|
+
export { AbstractPubSubProvider } from './PubSubProvider';
|
|
14
|
+
export { AWSAppSyncProvider } from './AWSAppSyncProvider';
|
|
15
|
+
export { AWSAppSyncRealTimeProvider, } from './AWSAppSyncRealTimeProvider';
|
|
16
|
+
export { AWSIoTProvider } from './AWSIotProvider';
|
|
17
|
+
export { MqttOverWSProvider, mqttTopicMatch, } from './MqttOverWSProvider';
|
|
18
18
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/Providers/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,sBAAsB,EAAE,MAAM,kBAAkB,CAAC;AAC1D,OAAO,EAAE,kBAAkB,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,EACN,0BAA0B,GAG1B,MAAM,8BAA8B,CAAC;AACtC,OAAO,EAAE,cAAc,EAAyB,MAAM,kBAAkB,CAAC;AACzE,OAAO,EAEN,kBAAkB,EAClB,cAAc,GACd,MAAM,sBAAsB,CAAC"}
|
package/lib-esm/PubSub.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { __awaiter, __generator } from "tslib";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright 2017-
|
|
3
|
+
* Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
4
4
|
*
|
|
5
5
|
* Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
|
|
6
6
|
* the License. A copy of the License is located at
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -1,9 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
export * from './Providers';
|
|
1
|
+
export { PubSub } from './PubSub';
|
|
3
2
|
export { CONNECTION_STATE_CHANGE } from './Providers/constants';
|
|
4
3
|
export { ConnectionState, CONTROL_MSG } from './types';
|
|
5
|
-
export {
|
|
6
|
-
/**
|
|
7
|
-
* @deprecated use named import
|
|
8
|
-
*/
|
|
9
|
-
export default PubSub;
|
|
4
|
+
export { AWSAppSyncProvider, AWSAppSyncRealTimeProvider, AWSAppSyncRealTimeProviderOptions, AWSIoTProvider, AWSIoTProviderOptions, AbstractPubSubProvider, MqttOverWSProvider, MqttProviderOptions, ObserverQuery, mqttTopicMatch, } from './Providers';
|
package/lib-esm/index.js
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,13 +10,8 @@
|
|
|
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
|
-
|
|
14
|
-
export * from './Providers';
|
|
13
|
+
export { PubSub } from './PubSub';
|
|
15
14
|
export { CONNECTION_STATE_CHANGE } from './Providers/constants';
|
|
16
15
|
export { ConnectionState, CONTROL_MSG } from './types';
|
|
17
|
-
export {
|
|
18
|
-
/**
|
|
19
|
-
* @deprecated use named import
|
|
20
|
-
*/
|
|
21
|
-
export default PubSub;
|
|
16
|
+
export { AWSAppSyncProvider, AWSAppSyncRealTimeProvider, AWSIoTProvider, AbstractPubSubProvider, MqttOverWSProvider, mqttTopicMatch, } from './Providers';
|
|
22
17
|
//# sourceMappingURL=index.js.map
|
package/lib-esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC;AAClC,OAAO,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAChE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AACvD,OAAO,EACN,kBAAkB,EAClB,0BAA0B,EAE1B,cAAc,EAEd,sBAAsB,EACtB,kBAAkB,EAGlB,cAAc,GACd,MAAM,aAAa,CAAC"}
|
package/lib-esm/types/PubSub.js
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/package.json
CHANGED
|
@@ -1,108 +1,114 @@
|
|
|
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
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
2
|
+
"name": "@aws-amplify/pubsub",
|
|
3
|
+
"version": "4.4.10-next.36+580cda186",
|
|
4
|
+
"description": "Pubsub category of aws-amplify",
|
|
5
|
+
"main": "./lib/index.js",
|
|
6
|
+
"module": "./lib-esm/index.js",
|
|
7
|
+
"typings": "./lib-esm/index.d.ts",
|
|
8
|
+
"react-native": {
|
|
9
|
+
"./lib/index": "./lib-esm/index.js"
|
|
10
|
+
},
|
|
11
|
+
"sideEffects": [
|
|
12
|
+
"./src/PubSub.ts",
|
|
13
|
+
"./lib/PubSub.js",
|
|
14
|
+
"./lib-esm/PubSub.js",
|
|
15
|
+
"./dist/aws-amplify-pubsub.min.js",
|
|
16
|
+
"./dist/aws-amplify-pubsub.js"
|
|
17
|
+
],
|
|
18
|
+
"publishConfig": {
|
|
19
|
+
"access": "public"
|
|
20
|
+
},
|
|
21
|
+
"scripts": {
|
|
22
|
+
"test": "tslint 'src/**/*.ts' && jest -w 1 --coverage",
|
|
23
|
+
"build-with-test": "npm run clean && npm test && tsc && webpack",
|
|
24
|
+
"build:cjs": "node ./build es5 && webpack && webpack --config ./webpack.config.dev.js",
|
|
25
|
+
"build:esm": "node ./build es6",
|
|
26
|
+
"build:cjs:watch": "node ./build es5 --watch",
|
|
27
|
+
"build:esm:watch": "node ./build es6 --watch",
|
|
28
|
+
"build": "npm run clean && npm run build:esm && npm run build:cjs",
|
|
29
|
+
"clean": "rimraf lib-esm lib dist",
|
|
30
|
+
"format": "echo \"Not implemented\"",
|
|
31
|
+
"lint": "tslint 'src/**/*.ts' && npm run ts-coverage",
|
|
32
|
+
"ts-coverage": "typescript-coverage-report -p ./tsconfig.build.json -t 87.63"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/aws-amplify/amplify-js.git"
|
|
37
|
+
},
|
|
38
|
+
"author": "Amazon Web Services",
|
|
39
|
+
"license": "Apache-2.0",
|
|
40
|
+
"bugs": {
|
|
41
|
+
"url": "https://github.com/aws/aws-amplify/issues"
|
|
42
|
+
},
|
|
43
|
+
"homepage": "https://aws-amplify.github.io/",
|
|
44
|
+
"devDependencies": {
|
|
45
|
+
"@types/zen-observable": "^0.8.0",
|
|
46
|
+
"cpx": "^1.5.0"
|
|
47
|
+
},
|
|
48
|
+
"files": [
|
|
49
|
+
"lib",
|
|
50
|
+
"lib-esm",
|
|
51
|
+
"src"
|
|
52
|
+
],
|
|
53
|
+
"dependencies": {
|
|
54
|
+
"@aws-amplify/auth": "4.6.2-next.36+580cda186",
|
|
55
|
+
"@aws-amplify/cache": "4.0.51-next.36+580cda186",
|
|
56
|
+
"@aws-amplify/core": "4.6.2-next.36+580cda186",
|
|
57
|
+
"graphql": "15.8.0",
|
|
58
|
+
"paho-mqtt": "^1.1.0",
|
|
59
|
+
"tslib": "^2.0.0",
|
|
60
|
+
"uuid": "^3.2.1",
|
|
61
|
+
"zen-observable-ts": "0.8.19"
|
|
62
|
+
},
|
|
63
|
+
"jest": {
|
|
64
|
+
"globals": {
|
|
65
|
+
"ts-jest": {
|
|
66
|
+
"diagnostics": false,
|
|
67
|
+
"tsConfig": {
|
|
68
|
+
"lib": [
|
|
69
|
+
"es5",
|
|
70
|
+
"es2015",
|
|
71
|
+
"dom",
|
|
72
|
+
"esnext.asynciterable",
|
|
73
|
+
"es2017.object"
|
|
74
|
+
],
|
|
75
|
+
"allowJs": true
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
"testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
|
|
79
|
+
"testPathIgnorePatterns": [
|
|
80
|
+
"__tests__/helpers.ts"
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"transform": {
|
|
84
|
+
"^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
|
|
85
|
+
},
|
|
86
|
+
"testPathIgnorePatterns": [
|
|
87
|
+
"__tests__/helpers.ts"
|
|
88
|
+
],
|
|
89
|
+
"moduleFileExtensions": [
|
|
90
|
+
"ts",
|
|
91
|
+
"tsx",
|
|
92
|
+
"js",
|
|
93
|
+
"json",
|
|
94
|
+
"jsx"
|
|
95
|
+
],
|
|
96
|
+
"testEnvironment": "jsdom",
|
|
97
|
+
"testURL": "http://localhost/",
|
|
98
|
+
"coverageThreshold": {
|
|
99
|
+
"global": {
|
|
100
|
+
"branches": 0,
|
|
101
|
+
"functions": 0,
|
|
102
|
+
"lines": 0,
|
|
103
|
+
"statements": 0
|
|
104
|
+
}
|
|
105
|
+
},
|
|
106
|
+
"coveragePathIgnorePatterns": [
|
|
107
|
+
"/node_modules/",
|
|
108
|
+
"dist",
|
|
109
|
+
"lib",
|
|
110
|
+
"lib-esm"
|
|
111
|
+
]
|
|
112
|
+
},
|
|
113
|
+
"gitHead": "580cda186f10ead3bb99acb7a4825c435c657d33"
|
|
108
114
|
}
|
|
@@ -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
|
|
@@ -28,8 +28,8 @@ import {
|
|
|
28
28
|
ICredentials,
|
|
29
29
|
isNonRetryableError,
|
|
30
30
|
} from '@aws-amplify/core';
|
|
31
|
-
import Cache from '@aws-amplify/cache';
|
|
32
|
-
import Auth,
|
|
31
|
+
import { Cache } from '@aws-amplify/cache';
|
|
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';
|
|
35
35
|
|
|
@@ -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
|
|
@@ -10,17 +10,19 @@
|
|
|
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
|
-
import { PubSub } from './PubSub';
|
|
14
|
-
|
|
15
|
-
export * from './Providers';
|
|
16
13
|
|
|
14
|
+
export { PubSub } from './PubSub';
|
|
17
15
|
export { CONNECTION_STATE_CHANGE } from './Providers/constants';
|
|
18
|
-
|
|
19
16
|
export { ConnectionState, CONTROL_MSG } from './types';
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
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
|