@aws-amplify/api 6.0.3-unstable.c69c562.0 → 6.0.3

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.
@@ -2,5 +2,7 @@ export { GraphQLQuery, GraphQLSubscription, SelectionSet } from './types';
2
2
  export { generateClient } from './API';
3
3
  export { GraphQLAuthError, ConnectionState } from '@aws-amplify/api-graphql';
4
4
  export type { GraphQLResult, GraphQLReturnType, CONNECTION_STATE_CHANGE, } from '@aws-amplify/api-graphql';
5
- export type { V6Client as Client } from '@aws-amplify/api-graphql';
5
+ import type { V6Client } from '@aws-amplify/api-graphql';
6
+ type Client<T extends Record<any, any> = never> = V6Client<T>;
7
+ export { Client };
6
8
  export { get, put, post, del, head, patch, isCancelError, } from '@aws-amplify/api-rest';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aws-amplify/api",
3
- "version": "6.0.3-unstable.c69c562.0+c69c562",
3
+ "version": "6.0.3",
4
4
  "description": "Api category of aws-amplify",
5
5
  "main": "./dist/cjs/index.js",
6
6
  "module": "./dist/esm/index.mjs",
@@ -81,8 +81,8 @@
81
81
  "server"
82
82
  ],
83
83
  "dependencies": {
84
- "@aws-amplify/api-graphql": "4.0.3-unstable.c69c562.0+c69c562",
85
- "@aws-amplify/api-rest": "4.0.3-unstable.c69c562.0+c69c562",
84
+ "@aws-amplify/api-graphql": "4.0.3",
85
+ "@aws-amplify/api-rest": "4.0.3",
86
86
  "tslib": "^2.5.0"
87
87
  },
88
88
  "jest": {
@@ -135,5 +135,5 @@
135
135
  "__tests__"
136
136
  ]
137
137
  },
138
- "gitHead": "c69c5628458e49d705f2c58dc942bbbc7b9e60f4"
138
+ "gitHead": "eee3310b3cba27ca5f10e2f8c4317603dde174f3"
139
139
  }
package/src/index.ts CHANGED
@@ -12,7 +12,13 @@ export type {
12
12
  CONNECTION_STATE_CHANGE,
13
13
  } from '@aws-amplify/api-graphql';
14
14
 
15
- export type { V6Client as Client } from '@aws-amplify/api-graphql';
15
+ import type { V6Client } from '@aws-amplify/api-graphql';
16
+
17
+ // explicitly defaulting to `never` here resolves
18
+ // TS2589: Type instantiation is excessively deep and possibly infinite.
19
+ // When this type is used without a generic type arg, i.e. `let client: Client`
20
+ type Client<T extends Record<any, any> = never> = V6Client<T>;
21
+ export { Client };
16
22
 
17
23
  export {
18
24
  get,