@aws-amplify/api-graphql 2.3.9-unstable.7 → 2.3.10-unstable.5

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
+ ## [2.3.9](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.8...@aws-amplify/api-graphql@2.3.9) (2022-07-07)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/api-graphql
9
+
10
+
11
+
12
+
13
+
6
14
  ## [2.3.8](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.3.7...@aws-amplify/api-graphql@2.3.8) (2022-06-18)
7
15
 
8
16
  **Note:** Version bump only for package @aws-amplify/api-graphql
@@ -14456,7 +14456,7 @@ var __read = undefined && undefined.__read || function (o, n) {
14456
14456
 
14457
14457
  var USER_AGENT_HEADER = 'x-amz-user-agent';
14458
14458
  var logger = new _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["ConsoleLogger"]('GraphQLAPI');
14459
- var graphqlOperation = function graphqlOperation(query, variables, authToken) {
14459
+ var graphqlOperation = function graphqlOperation(query, variables, authToken, userAgentSuffix) {
14460
14460
  if (variables === void 0) {
14461
14461
  variables = {};
14462
14462
  }
@@ -14464,7 +14464,8 @@ var graphqlOperation = function graphqlOperation(query, variables, authToken) {
14464
14464
  return {
14465
14465
  query: query,
14466
14466
  variables: variables,
14467
- authToken: authToken
14467
+ authToken: authToken,
14468
+ userAgentSuffix: userAgentSuffix
14468
14469
  };
14469
14470
  };
14470
14471
  /**
@@ -14755,7 +14756,8 @@ function () {
14755
14756
  _b = _a.variables,
14756
14757
  variables = _b === void 0 ? {} : _b,
14757
14758
  authMode = _a.authMode,
14758
- authToken = _a.authToken;
14759
+ authToken = _a.authToken,
14760
+ userAgentSuffix = _a.userAgentSuffix;
14759
14761
  var query = typeof paramQuery === 'string' ? Object(graphql__WEBPACK_IMPORTED_MODULE_0__["parse"])(paramQuery) : Object(graphql__WEBPACK_IMPORTED_MODULE_0__["parse"])(Object(graphql__WEBPACK_IMPORTED_MODULE_0__["print"])(paramQuery));
14760
14762
 
14761
14763
  var _c = __read(query.definitions.filter(function (def) {
@@ -14783,7 +14785,8 @@ function () {
14783
14785
  var responsePromise = this._graphql({
14784
14786
  query: query,
14785
14787
  variables: variables,
14786
- authMode: authMode
14788
+ authMode: authMode,
14789
+ userAgentSuffix: userAgentSuffix
14787
14790
  }, headers, initParams);
14788
14791
 
14789
14792
  this._api.updateRequestToBeCancellable(responsePromise, cancellableToken);
@@ -14805,7 +14808,8 @@ function () {
14805
14808
  GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) {
14806
14809
  var query = _a.query,
14807
14810
  variables = _a.variables,
14808
- authMode = _a.authMode;
14811
+ authMode = _a.authMode,
14812
+ userAgentSuffix = _a.userAgentSuffix;
14809
14813
 
14810
14814
  if (additionalHeaders === void 0) {
14811
14815
  additionalHeaders = {};
@@ -14891,7 +14895,7 @@ function () {
14891
14895
  })];
14892
14896
 
14893
14897
  case 9:
14894
- headers = __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _j.concat([_l.sent()])), additionalHeaders]), !customGraphqlEndpoint && (_k = {}, _k[USER_AGENT_HEADER] = _aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["Constants"].userAgent, _k)]);
14898
+ headers = __assign.apply(void 0, [__assign.apply(void 0, [__assign.apply(void 0, _j.concat([_l.sent()])), additionalHeaders]), !customGraphqlEndpoint && (_k = {}, _k[USER_AGENT_HEADER] = Object(_aws_amplify_core__WEBPACK_IMPORTED_MODULE_1__["getAmplifyUserAgent"])(userAgentSuffix), _k)]);
14895
14899
  body = {
14896
14900
  query: Object(graphql__WEBPACK_IMPORTED_MODULE_0__["print"])(query),
14897
14901
  variables: variables