@aws-amplify/pubsub 5.6.8 → 5.6.10

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 (68) hide show
  1. package/lib/.tsbuildinfo +1 -3
  2. package/lib/Providers/AWSAppSyncRealTimeProvider/index.d.ts +2 -2
  3. package/lib/Providers/AWSAppSyncRealTimeProvider/index.js +66 -65
  4. package/lib/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
  5. package/lib/Providers/AWSIotProvider.js +3 -2
  6. package/lib/Providers/AWSIotProvider.js.map +1 -1
  7. package/lib/Providers/MqttOverWSProvider.js +17 -16
  8. package/lib/Providers/MqttOverWSProvider.js.map +1 -1
  9. package/lib/Providers/PubSubProvider.js +3 -2
  10. package/lib/Providers/PubSubProvider.js.map +1 -1
  11. package/lib/Providers/constants.js +4 -3
  12. package/lib/Providers/constants.js.map +1 -1
  13. package/lib/Providers/index.js +6 -5
  14. package/lib/Providers/index.js.map +1 -1
  15. package/lib/PubSub.d.ts +1 -1
  16. package/lib/PubSub.js +1 -0
  17. package/lib/PubSub.js.map +1 -1
  18. package/lib/index.js +10 -9
  19. package/lib/index.js.map +1 -1
  20. package/lib/internals/InternalPubSub.d.ts +1 -1
  21. package/lib/internals/InternalPubSub.js +5 -3
  22. package/lib/internals/InternalPubSub.js.map +1 -1
  23. package/lib/internals/index.js +3 -2
  24. package/lib/internals/index.js.map +1 -1
  25. package/lib/types/PubSub.d.ts +2 -2
  26. package/lib/types/PubSub.js +3 -2
  27. package/lib/types/PubSub.js.map +1 -1
  28. package/lib/types/index.js +7 -2
  29. package/lib/types/index.js.map +1 -1
  30. package/lib/utils/ConnectionStateMonitor.d.ts +3 -3
  31. package/lib/utils/ConnectionStateMonitor.js +5 -4
  32. package/lib/utils/ConnectionStateMonitor.js.map +1 -1
  33. package/lib/utils/ReachabilityMonitor/index.js +3 -1
  34. package/lib/utils/ReachabilityMonitor/index.js.map +1 -1
  35. package/lib/utils/ReachabilityMonitor/index.native.js +3 -1
  36. package/lib/utils/ReachabilityMonitor/index.native.js.map +1 -1
  37. package/lib/utils/ReconnectionMonitor.js +2 -1
  38. package/lib/utils/ReconnectionMonitor.js.map +1 -1
  39. package/lib/vendor/paho-mqtt.js +1 -1
  40. package/lib/vendor/paho-mqtt.js.map +1 -1
  41. package/lib-esm/.tsbuildinfo +1 -3
  42. package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.d.ts +2 -2
  43. package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js +62 -62
  44. package/lib-esm/Providers/AWSAppSyncRealTimeProvider/index.js.map +1 -1
  45. package/lib-esm/Providers/AWSIotProvider.js +2 -2
  46. package/lib-esm/Providers/AWSIotProvider.js.map +1 -1
  47. package/lib-esm/Providers/MqttOverWSProvider.js +14 -14
  48. package/lib-esm/Providers/MqttOverWSProvider.js.map +1 -1
  49. package/lib-esm/Providers/PubSubProvider.js +2 -2
  50. package/lib-esm/Providers/PubSubProvider.js.map +1 -1
  51. package/lib-esm/PubSub.d.ts +1 -1
  52. package/lib-esm/PubSub.js.map +1 -1
  53. package/lib-esm/internals/InternalPubSub.d.ts +1 -1
  54. package/lib-esm/internals/InternalPubSub.js +3 -2
  55. package/lib-esm/internals/InternalPubSub.js.map +1 -1
  56. package/lib-esm/types/Provider.js +1 -0
  57. package/lib-esm/types/PubSub.d.ts +2 -2
  58. package/lib-esm/types/index.js +3 -0
  59. package/lib-esm/types/index.js.map +1 -1
  60. package/lib-esm/utils/ConnectionStateMonitor.d.ts +3 -3
  61. package/lib-esm/utils/ConnectionStateMonitor.js +2 -2
  62. package/lib-esm/utils/ConnectionStateMonitor.js.map +1 -1
  63. package/lib-esm/utils/ReconnectionMonitor.js.map +1 -1
  64. package/lib-esm/vendor/paho-mqtt.js +1 -1
  65. package/lib-esm/vendor/paho-mqtt.js.map +1 -1
  66. package/package.json +21 -20
  67. package/src/Providers/AWSAppSyncRealTimeProvider/index.ts +4 -2
  68. package/src/vendor/paho-mqtt.js +1 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/pubsub",
3
- "version": "5.6.8",
3
+ "version": "5.6.10",
4
4
  "description": "Pubsub category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
@@ -50,9 +50,9 @@
50
50
  "internals"
51
51
  ],
52
52
  "dependencies": {
53
- "@aws-amplify/auth": "5.6.21",
54
- "@aws-amplify/cache": "5.1.23",
55
- "@aws-amplify/core": "5.8.17",
53
+ "@aws-amplify/auth": "5.6.23",
54
+ "@aws-amplify/cache": "5.1.24",
55
+ "@aws-amplify/core": "5.8.18",
56
56
  "buffer": "4.9.2",
57
57
  "graphql": "15.8.0",
58
58
  "tslib": "^1.8.0",
@@ -76,26 +76,28 @@
76
76
  ],
77
77
  "jest": {
78
78
  "globals": {
79
- "ts-jest": {
80
- "diagnostics": false,
81
- "tsConfig": {
82
- "lib": [
83
- "es5",
84
- "es2015",
85
- "dom",
86
- "esnext.asynciterable",
87
- "es2017.object"
88
- ],
89
- "allowJs": true
90
- }
91
- },
92
79
  "testRegex": "(/__tests__/.*|\\.(test|spec))\\.(tsx?|jsx?)$",
93
80
  "testPathIgnorePatterns": [
94
81
  "__tests__/helpers.ts"
95
82
  ]
96
83
  },
97
84
  "transform": {
98
- "^.+\\.(js|jsx|ts|tsx)$": "ts-jest"
85
+ "^.+\\.(js|jsx|ts|tsx)$": [
86
+ "ts-jest",
87
+ {
88
+ "diagnostics": false,
89
+ "tsconfig": {
90
+ "lib": [
91
+ "es5",
92
+ "es2015",
93
+ "dom",
94
+ "esnext.asynciterable",
95
+ "es2017.object"
96
+ ],
97
+ "allowJs": true
98
+ }
99
+ }
100
+ ]
99
101
  },
100
102
  "testPathIgnorePatterns": [
101
103
  "__tests__/helpers.ts"
@@ -108,7 +110,6 @@
108
110
  "jsx"
109
111
  ],
110
112
  "testEnvironment": "jsdom",
111
- "testURL": "http://localhost/",
112
113
  "coverageThreshold": {
113
114
  "global": {
114
115
  "branches": 0,
@@ -124,5 +125,5 @@
124
125
  "lib-esm"
125
126
  ]
126
127
  },
127
- "gitHead": "bb0ec43d446b177736becb764afb331a78a8c96c"
128
+ "gitHead": "68a0df1145f0f1e79d89753b1aafdbf8836a319d"
128
129
  }
@@ -935,14 +935,16 @@ export class AWSAppSyncRealTimeProvider extends AbstractPubSubProvider<AWSAppSyn
935
935
  };
936
936
 
937
937
  if (!authenticationType || !headerHandler[authenticationType]) {
938
- logger.debug(`Authentication type ${authenticationType} not supported`);
938
+ logger.debug(
939
+ `Authentication type ${String(authenticationType)} not supported`
940
+ );
939
941
  return undefined;
940
942
  } else {
941
943
  const handler = headerHandler[authenticationType];
942
944
 
943
945
  const { host } = url.parse(appSyncGraphqlEndpoint ?? '');
944
946
 
945
- logger.debug(`Authenticating with ${authenticationType}`);
947
+ logger.debug(`Authenticating with ${String(authenticationType)}`);
946
948
 
947
949
  const result = await handler({
948
950
  payload,
@@ -2824,5 +2824,5 @@ function onMessageArrived(message) {
2824
2824
  ? window
2825
2825
  : {}
2826
2826
  );
2827
- return PahoMQTT;
2827
+ return /** @type {any} */ (PahoMQTT);
2828
2828
  });