@aws-amplify/api 4.0.23-unstable.5 → 4.0.23

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
+ ## [4.0.23](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.22...@aws-amplify/api@4.0.23) (2021-11-09)
7
+
8
+ **Note:** Version bump only for package @aws-amplify/api
9
+
10
+
11
+
12
+
13
+
6
14
  ## [4.0.22](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.21...@aws-amplify/api@4.0.22) (2021-10-28)
7
15
 
8
16
  **Note:** Version bump only for package @aws-amplify/api
package/index.v37.d.ts ADDED
@@ -0,0 +1,12 @@
1
+ // the original ts3.7 version declaration file, used by "typesVersions" field in package.json
2
+ // https://www.typescriptlang.org/docs/handbook/declaration-files/publishing.html#file-redirects
3
+ // can consider using third-party tool like downlevel-dts in the build process to automate this.
4
+ import { API } from './lib-esm/API';
5
+ export { API, APIClass } from './lib-esm/API';
6
+ export {
7
+ graphqlOperation,
8
+ GraphQLAuthError,
9
+ GRAPHQL_AUTH_MODE,
10
+ GraphQLResult,
11
+ } from '@aws-amplify/api-graphql';
12
+ export default API;
package/lib/index.d.ts CHANGED
@@ -1,4 +1,5 @@
1
1
  import { API } from './API';
2
2
  export { API, APIClass } from './API';
3
- export { graphqlOperation, GraphQLResult, GraphQLAuthError, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
3
+ export { graphqlOperation, GraphQLAuthError, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
4
+ export type { GraphQLResult } from '@aws-amplify/api-graphql';
4
5
  export default API;
package/lib/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,6BAA4B;AAE5B,6BAAsC;AAA7B,oBAAA,GAAG,CAAA;AAAE,yBAAA,QAAQ,CAAA;AACtB,wDAKkC;AAJjC,yCAAA,gBAAgB,CAAA;AAEhB,yCAAA,gBAAgB,CAAA;AAChB,0CAAA,iBAAiB,CAAA;AAGlB;;GAEG;AACH,kBAAe,SAAG,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAEH,6BAA4B;AAE5B,6BAAsC;AAA7B,oBAAA,GAAG,CAAA;AAAE,yBAAA,QAAQ,CAAA;AACtB,wDAIkC;AAHjC,yCAAA,gBAAgB,CAAA;AAChB,yCAAA,gBAAgB,CAAA;AAChB,0CAAA,iBAAiB,CAAA;AAIlB;;GAEG;AACH,kBAAe,SAAG,CAAC"}
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  /*
3
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
4
4
  *
5
5
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
6
6
  * the License. A copy of the License is located at
@@ -1,4 +1,5 @@
1
1
  import { API } from './API';
2
2
  export { API, APIClass } from './API';
3
- export { graphqlOperation, GraphQLResult, GraphQLAuthError, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
3
+ export { graphqlOperation, GraphQLAuthError, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
4
+ export type { GraphQLResult } from '@aws-amplify/api-graphql';
4
5
  export default API;
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACN,gBAAgB,EAEhB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,0BAA0B,CAAC;AAElC;;GAEG;AACH,eAAe,GAAG,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,GAAG,EAAE,MAAM,OAAO,CAAC;AAE5B,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,0BAA0B,CAAC;AAGlC;;GAEG;AACH,eAAe,GAAG,CAAC"}
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
3
  *
4
4
  * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
5
  * the License. A copy of the License is located at
package/package.json CHANGED
@@ -1,10 +1,17 @@
1
1
  {
2
2
  "name": "@aws-amplify/api",
3
- "version": "4.0.23-unstable.5+873941c65",
3
+ "version": "4.0.23",
4
4
  "description": "Api category of aws-amplify",
5
5
  "main": "./lib/index.js",
6
6
  "module": "./lib-esm/index.js",
7
7
  "typings": "./lib-esm/index.d.ts",
8
+ "typesVersions": {
9
+ "<3.8": {
10
+ "lib-esm/index.d.ts": [
11
+ "index.v37.d.ts"
12
+ ]
13
+ }
14
+ },
8
15
  "react-native": {
9
16
  "./lib/index": "./lib-esm/index.js"
10
17
  },
@@ -44,8 +51,8 @@
44
51
  "@types/zen-observable": "^0.8.0"
45
52
  },
46
53
  "dependencies": {
47
- "@aws-amplify/api-graphql": "2.2.12-unstable.5+873941c65",
48
- "@aws-amplify/api-rest": "2.0.23-unstable.5+873941c65"
54
+ "@aws-amplify/api-graphql": "2.2.12",
55
+ "@aws-amplify/api-rest": "2.0.23"
49
56
  },
50
57
  "jest": {
51
58
  "globals": {
@@ -91,5 +98,5 @@
91
98
  "lib-esm"
92
99
  ]
93
100
  },
94
- "gitHead": "873941c655d9fe87a75238eadc0ae57dacc2fa16"
101
+ "gitHead": "8db78d12b80c8acc297dbae015cc66417479a17b"
95
102
  }
package/src/index.ts CHANGED
@@ -16,11 +16,11 @@ import { API } from './API';
16
16
  export { API, APIClass } from './API';
17
17
  export {
18
18
  graphqlOperation,
19
- GraphQLResult,
20
19
  GraphQLAuthError,
21
20
  GRAPHQL_AUTH_MODE,
22
21
  } from '@aws-amplify/api-graphql';
23
22
 
23
+ export type { GraphQLResult } from '@aws-amplify/api-graphql';
24
24
  /*
25
25
  * @deprecated use named import
26
26
  */
@@ -1,24 +1,24 @@
1
- /*
2
- * Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
- *
4
- * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
- * the License. A copy of the License is located at
6
- *
7
- * http://aws.amazon.com/apache2.0/
8
- *
9
- * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
- * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
- * and limitations under the License.
12
- */
13
-
14
- /**
15
- * This exports from the types directory is a temporary workaround, since Amplify CLI currently
16
- * generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
17
- * This will be removed in future release when CLI and customers moves to recommeneded import styles.
18
- */
19
- export {
20
- graphqlOperation,
21
- GraphQLAuthError,
22
- GraphQLResult,
23
- GRAPHQL_AUTH_MODE,
24
- } from '@aws-amplify/api-graphql';
1
+ /*
2
+ * Copyright 2017-2022 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3
+ *
4
+ * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with
5
+ * the License. A copy of the License is located at
6
+ *
7
+ * http://aws.amazon.com/apache2.0/
8
+ *
9
+ * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
10
+ * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
11
+ * and limitations under the License.
12
+ */
13
+
14
+ /**
15
+ * This exports from the types directory is a temporary workaround, since Amplify CLI currently
16
+ * generates code that relies on this import path https://github.com/aws-amplify/amplify-cli/issues/3863
17
+ * This will be removed in future release when CLI and customers moves to recommeneded import styles.
18
+ */
19
+ export {
20
+ graphqlOperation,
21
+ GraphQLAuthError,
22
+ GraphQLResult,
23
+ GRAPHQL_AUTH_MODE,
24
+ } from '@aws-amplify/api-graphql';