@aws-amplify/api-graphql 2.2.22-unstable.7 → 2.2.22
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 +11 -0
- package/dist/aws-amplify-api-graphql.js +6 -5
- package/dist/aws-amplify-api-graphql.js.map +1 -1
- package/dist/aws-amplify-api-graphql.min.js +1 -1
- package/dist/aws-amplify-api-graphql.min.js.map +1 -1
- package/lib/GraphQLAPI.d.ts +8 -7
- package/lib/GraphQLAPI.js +5 -4
- package/lib/GraphQLAPI.js.map +1 -1
- package/lib/types/index.d.ts +7 -2
- package/lib/types/index.js.map +1 -1
- package/lib-esm/GraphQLAPI.d.ts +8 -7
- package/lib-esm/GraphQLAPI.js +6 -5
- package/lib-esm/GraphQLAPI.js.map +1 -1
- package/lib-esm/types/index.d.ts +7 -2
- package/lib-esm/types/index.js.map +1 -1
- package/package.json +7 -7
- package/src/GraphQLAPI.ts +27 -25
- package/src/types/index.ts +8 -3
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
|
+
## [2.2.22](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.21...@aws-amplify/api-graphql@2.2.22) (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
|
## [2.2.21](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api-graphql@2.2.20...@aws-amplify/api-graphql@2.2.21) (2022-02-03)
|
|
7
18
|
|
|
8
19
|
**Note:** Version bump only for package @aws-amplify/api-graphql
|
|
@@ -14573,9 +14573,9 @@ function () {
|
|
|
14573
14573
|
/**
|
|
14574
14574
|
* Executes a GraphQL operation
|
|
14575
14575
|
*
|
|
14576
|
-
* @param
|
|
14577
|
-
* @param
|
|
14578
|
-
* @returns
|
|
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.
|
|
14579
14579
|
*/
|
|
14580
14580
|
|
|
14581
14581
|
|
|
@@ -14625,9 +14625,10 @@ function () {
|
|
|
14625
14625
|
variables: variables,
|
|
14626
14626
|
authMode: authMode
|
|
14627
14627
|
}, headers);
|
|
14628
|
-
}
|
|
14629
14628
|
|
|
14630
|
-
|
|
14629
|
+
default:
|
|
14630
|
+
throw new Error("invalid operation type: " + operationType);
|
|
14631
|
+
}
|
|
14631
14632
|
};
|
|
14632
14633
|
|
|
14633
14634
|
GraphQLAPIClass.prototype._graphql = function (_a, additionalHeaders, initParams) {
|