@aws-amplify/api 4.0.32-unstable.4 → 4.0.33-cloud-logging.9

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 CHANGED
@@ -3,6 +3,14 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## [4.0.32](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.31...@aws-amplify/api@4.0.32) (2022-02-03)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/api
9
+
10
+
11
+
12
+
13
+
6
14
  ## [4.0.31](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.30...@aws-amplify/api@4.0.31) (2022-01-27)
7
15
 
8
16
  **Note:** Version bump only for package @aws-amplify/api
@@ -12749,7 +12749,11 @@ function (_super) {
12749
12749
  };
12750
12750
 
12751
12751
  AWSAppSyncRealTimeProvider.prototype._handleIncomingSubscriptionMessage = function (message) {
12752
- logger.debug("subscription message from AWS AppSync RealTime: " + message.data);
12752
+ if (message.data && message.data === '{"type":"ka"}') {
12753
+ logger.verbose("subscription message from AWS AppSync RealTime: " + message.data);
12754
+ } else {
12755
+ logger.debug("subscription message from AWS AppSync RealTime: " + message.data);
12756
+ }
12753
12757
 
12754
12758
  var _a = JSON.parse(message.data),
12755
12759
  _b = _a.id,
@@ -12768,12 +12772,21 @@ function (_super) {
12768
12772
  subscriptionReadyCallback = _c.subscriptionReadyCallback,
12769
12773
  subscriptionFailedCallback = _c.subscriptionFailedCallback;
12770
12774
 
12771
- logger.debug({
12772
- id: id,
12773
- observer: observer,
12774
- query: query,
12775
- variables: variables
12776
- });
12775
+ if (!id && !observer && !query && Object.keys(variables).length === 0) {
12776
+ logger.verbose({
12777
+ id: id,
12778
+ observer: observer,
12779
+ query: query,
12780
+ variables: variables
12781
+ });
12782
+ } else {
12783
+ logger.debug({
12784
+ id: id,
12785
+ observer: observer,
12786
+ query: query,
12787
+ variables: variables
12788
+ });
12789
+ }
12777
12790
 
12778
12791
  if (type === MESSAGE_TYPES.GQL_DATA && payload && payload.data) {
12779
12792
  if (observer) {