@aws-amplify/api-graphql 2.2.22-cloud-logging.9 → 2.2.22-unstable.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.
@@ -11838,11 +11838,7 @@ function (_super) {
11838
11838
  };
11839
11839
 
11840
11840
  AWSAppSyncRealTimeProvider.prototype._handleIncomingSubscriptionMessage = function (message) {
11841
- if (message.data && message.data === '{"type":"ka"}') {
11842
- logger.verbose("subscription message from AWS AppSync RealTime: " + message.data);
11843
- } else {
11844
- logger.debug("subscription message from AWS AppSync RealTime: " + message.data);
11845
- }
11841
+ logger.debug("subscription message from AWS AppSync RealTime: " + message.data);
11846
11842
 
11847
11843
  var _a = JSON.parse(message.data),
11848
11844
  _b = _a.id,
@@ -11861,21 +11857,12 @@ function (_super) {
11861
11857
  subscriptionReadyCallback = _c.subscriptionReadyCallback,
11862
11858
  subscriptionFailedCallback = _c.subscriptionFailedCallback;
11863
11859
 
11864
- if (!id && !observer && !query && Object.keys(variables).length === 0) {
11865
- logger.verbose({
11866
- id: id,
11867
- observer: observer,
11868
- query: query,
11869
- variables: variables
11870
- });
11871
- } else {
11872
- logger.debug({
11873
- id: id,
11874
- observer: observer,
11875
- query: query,
11876
- variables: variables
11877
- });
11878
- }
11860
+ logger.debug({
11861
+ id: id,
11862
+ observer: observer,
11863
+ query: query,
11864
+ variables: variables
11865
+ });
11879
11866
 
11880
11867
  if (type === MESSAGE_TYPES.GQL_DATA && payload && payload.data) {
11881
11868
  if (observer) {
@@ -14586,9 +14573,9 @@ function () {
14586
14573
  /**
14587
14574
  * Executes a GraphQL operation
14588
14575
  *
14589
- * @param {GraphQLOptions} GraphQL Options
14590
- * @param {object} additionalHeaders headers to merge in after any `graphql_headers` set in the config
14591
- * @returns {Promise<GraphQLResult> | Observable<object>}
14576
+ * @param options - GraphQL Options
14577
+ * @param [additionalHeaders] - headers to merge in after any `graphql_headers` set in the config
14578
+ * @returns An Observable if the query is a subscription query, else a promise of the graphql result.
14592
14579
  */
14593
14580
 
14594
14581
 
@@ -14638,9 +14625,10 @@ function () {
14638
14625
  variables: variables,
14639
14626
  authMode: authMode
14640
14627
  }, headers);
14641
- }
14642
14628
 
14643
- throw new Error("invalid operation type: " + operationType);
14629
+ default:
14630
+ throw new Error("invalid operation type: " + operationType);
14631
+ }
14644
14632
  };
14645
14633
 
14646
14634
  GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) {