@aws-amplify/api 4.0.23-unstable.6 → 4.0.23-unstable.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/index.v37.d.ts +12 -0
- package/lib/index.d.ts +2 -1
- package/lib/index.js.map +1 -1
- package/lib/types/index.js +1 -1
- package/lib-esm/index.d.ts +2 -1
- package/lib-esm/index.js.map +1 -1
- package/lib-esm/types/index.js +1 -1
- package/package.json +11 -4
- package/src/index.ts +1 -1
- package/src/types/index.ts +24 -24
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,
|
|
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,
|
|
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"}
|
package/lib/types/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
/*
|
|
3
|
-
* Copyright 2017-
|
|
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
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { API } from './API';
|
|
2
2
|
export { API, APIClass } from './API';
|
|
3
|
-
export { graphqlOperation,
|
|
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-esm/index.js.map
CHANGED
|
@@ -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,
|
|
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"}
|
package/lib-esm/types/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright 2017-
|
|
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.
|
|
3
|
+
"version": "4.0.23-unstable.7+d55d79749",
|
|
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.
|
|
48
|
-
"@aws-amplify/api-rest": "2.0.23-unstable.
|
|
54
|
+
"@aws-amplify/api-graphql": "2.2.12-unstable.7+d55d79749",
|
|
55
|
+
"@aws-amplify/api-rest": "2.0.23-unstable.7+d55d79749"
|
|
49
56
|
},
|
|
50
57
|
"jest": {
|
|
51
58
|
"globals": {
|
|
@@ -91,5 +98,5 @@
|
|
|
91
98
|
"lib-esm"
|
|
92
99
|
]
|
|
93
100
|
},
|
|
94
|
-
"gitHead": "
|
|
101
|
+
"gitHead": "d55d79749ba679c8f743a4d83098e5424a3f71c1"
|
|
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
|
*/
|
package/src/types/index.ts
CHANGED
|
@@ -1,24 +1,24 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright 2017-
|
|
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';
|