@aws-amplify/api 4.0.33-unstable.8 → 4.0.34-cloud-logging.7
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,17 @@
|
|
|
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.33](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.32...@aws-amplify/api@4.0.33) (2022-02-28)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* **@aws-amplify/api:** Improve API.graphql return type ([#9197](https://github.com/aws-amplify/amplify-js/issues/9197)) ([9a0531b](https://github.com/aws-amplify/amplify-js/commit/9a0531b11e9eb6659d36ca0c51c642b3d947f63c))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
|
|
6
17
|
## [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
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-amplify/api
|
package/dist/aws-amplify-api.js
CHANGED
|
@@ -12750,7 +12750,11 @@ function (_super) {
|
|
|
12750
12750
|
};
|
|
12751
12751
|
|
|
12752
12752
|
AWSAppSyncRealTimeProvider.prototype._handleIncomingSubscriptionMessage = function (message) {
|
|
12753
|
-
|
|
12753
|
+
if (message.data && message.data === '{"type":"ka"}') {
|
|
12754
|
+
logger.verbose("subscription message from AWS AppSync RealTime: " + message.data);
|
|
12755
|
+
} else {
|
|
12756
|
+
logger.debug("subscription message from AWS AppSync RealTime: " + message.data);
|
|
12757
|
+
}
|
|
12754
12758
|
|
|
12755
12759
|
var _a = JSON.parse(message.data),
|
|
12756
12760
|
_b = _a.id,
|
|
@@ -12769,12 +12773,21 @@ function (_super) {
|
|
|
12769
12773
|
subscriptionReadyCallback = _c.subscriptionReadyCallback,
|
|
12770
12774
|
subscriptionFailedCallback = _c.subscriptionFailedCallback;
|
|
12771
12775
|
|
|
12772
|
-
|
|
12773
|
-
|
|
12774
|
-
|
|
12775
|
-
|
|
12776
|
-
|
|
12777
|
-
|
|
12776
|
+
if (!id && !observer && !query && Object.keys(variables).length === 0) {
|
|
12777
|
+
logger.verbose({
|
|
12778
|
+
id: id,
|
|
12779
|
+
observer: observer,
|
|
12780
|
+
query: query,
|
|
12781
|
+
variables: variables
|
|
12782
|
+
});
|
|
12783
|
+
} else {
|
|
12784
|
+
logger.debug({
|
|
12785
|
+
id: id,
|
|
12786
|
+
observer: observer,
|
|
12787
|
+
query: query,
|
|
12788
|
+
variables: variables
|
|
12789
|
+
});
|
|
12790
|
+
}
|
|
12778
12791
|
|
|
12779
12792
|
if (type === MESSAGE_TYPES.GQL_DATA && payload && payload.data) {
|
|
12780
12793
|
if (observer) {
|