@aws-amplify/api 4.0.49-next.20 → 4.0.49-next.32
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 +32 -0
- package/lib/.tsbuildinfo +3 -0
- package/lib/API.js +2 -2
- package/lib/API.js.map +1 -1
- package/lib/index.js +2 -7
- package/lib/index.js.map +1 -1
- package/lib-esm/.tsbuildinfo +3 -0
- package/lib-esm/API.js +1 -1
- package/lib-esm/API.js.map +1 -1
- package/lib-esm/index.d.ts +0 -2
- package/lib-esm/index.js +0 -5
- package/lib-esm/index.js.map +1 -1
- package/package.json +10 -4
- package/src/API.ts +1 -1
- package/src/index.ts +0 -7
- package/build.js +0 -5
- package/dist/aws-amplify-api.js +0 -13895
- package/dist/aws-amplify-api.js.map +0 -1
- package/dist/aws-amplify-api.min.js +0 -11
- package/dist/aws-amplify-api.min.js.map +0 -1
- package/index.js +0 -7
- package/lib/API.d.ts +0 -131
- package/lib/index.d.ts +0 -6
- package/lib/types/index.d.ts +0 -13
- package/webpack.config.dev.js +0 -6
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,38 @@
|
|
|
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.59](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.58...@aws-amplify/api@4.0.59) (2022-10-26)
|
|
7
|
+
|
|
8
|
+
**Note:** Version bump only for package @aws-amplify/api
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
## [4.0.58](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.57...@aws-amplify/api@4.0.58) (2022-10-25)
|
|
15
|
+
|
|
16
|
+
**Note:** Version bump only for package @aws-amplify/api
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
## [4.0.57](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.56...@aws-amplify/api@4.0.57) (2022-10-14)
|
|
23
|
+
|
|
24
|
+
**Note:** Version bump only for package @aws-amplify/api
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
## [4.0.56](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.55...@aws-amplify/api@4.0.56) (2022-10-14)
|
|
31
|
+
|
|
32
|
+
**Note:** Version bump only for package @aws-amplify/api
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
|
|
36
|
+
|
|
37
|
+
|
|
6
38
|
## [4.0.55](https://github.com/aws-amplify/amplify-js/compare/@aws-amplify/api@4.0.53...@aws-amplify/api@4.0.55) (2022-09-30)
|
|
7
39
|
|
|
8
40
|
**Note:** Version bump only for package @aws-amplify/api
|
package/lib/.tsbuildinfo
ADDED
package/lib/API.js
CHANGED
|
@@ -14,7 +14,7 @@ var tslib_1 = require("tslib");
|
|
|
14
14
|
* and limitations under the License.
|
|
15
15
|
*/
|
|
16
16
|
var auth_1 = require("@aws-amplify/auth");
|
|
17
|
-
var cache_1 =
|
|
17
|
+
var cache_1 = require("@aws-amplify/cache");
|
|
18
18
|
var api_rest_1 = require("@aws-amplify/api-rest");
|
|
19
19
|
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
20
20
|
var core_1 = require("@aws-amplify/core");
|
|
@@ -31,7 +31,7 @@ var APIClass = /** @class */ (function () {
|
|
|
31
31
|
*/
|
|
32
32
|
function APIClass(options) {
|
|
33
33
|
this.Auth = auth_1.Auth;
|
|
34
|
-
this.Cache = cache_1.
|
|
34
|
+
this.Cache = cache_1.BrowserStorageCache;
|
|
35
35
|
this.Credentials = core_1.Credentials;
|
|
36
36
|
this._options = options;
|
|
37
37
|
this._restApi = new api_rest_1.RestAPIClass(options);
|
package/lib/API.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACH,0CAAyC;AACzC,
|
|
1
|
+
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":";;;AAAA;;;;;;;;;;;GAWG;AACH,0CAAyC;AACzC,4CAAkE;AAElE,kDAAqD;AACrD,wDAMkC;AAClC,0CAI2B;AAI3B,IAAM,MAAM,GAAG,IAAI,oBAAM,CAAC,KAAK,CAAC,CAAC;AACjC;;;;GAIG;AACH;IAaC;;;OAGG;IACH,kBAAY,OAAO;QARnB,SAAI,GAAG,WAAI,CAAC;QACZ,UAAK,GAAG,2BAAK,CAAC;QACd,gBAAW,GAAG,kBAAW,CAAC;QAOzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,uBAAY,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,6BAAe,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,gCAAa,GAApB;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,4BAAS,GAAT,UAAU,OAAO;QAChB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;QAE1D,6CAA6C;QAC7C,IAAI,CAAC,QAAQ,CAAC,WAAW,GAAG,IAAI,CAAC,WAAW,CAAC;QAE7C,IAAI,CAAC,WAAW,CAAC,IAAI,GAAG,IAAI,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,WAAW,CAAC,KAAK,GAAG,IAAI,CAAC,KAAK,CAAC;QACpC,IAAI,CAAC,WAAW,CAAC,WAAW,GAAG,IAAI,CA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
|
|
14
14
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
15
|
var API_1 = require("./API");
|
|
16
|
-
|
|
17
|
-
exports.
|
|
18
|
-
exports.APIClass = API_2.APIClass;
|
|
16
|
+
exports.API = API_1.API;
|
|
17
|
+
exports.APIClass = API_1.APIClass;
|
|
19
18
|
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
20
19
|
exports.graphqlOperation = api_graphql_1.graphqlOperation;
|
|
21
20
|
exports.GraphQLAuthError = api_graphql_1.GraphQLAuthError;
|
|
22
21
|
exports.GRAPHQL_AUTH_MODE = api_graphql_1.GRAPHQL_AUTH_MODE;
|
|
23
|
-
/*
|
|
24
|
-
* @deprecated use named import
|
|
25
|
-
*/
|
|
26
|
-
exports.default = API_1.API;
|
|
27
22
|
//# sourceMappingURL=index.js.map
|
package/lib/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;;AAGH,6BAAsC;AAA7B,oBAAA,GAAG,CAAA;AAAE,yBAAA,QAAQ,CAAA;AACtB,wDAIkC;AAHjC,yCAAA,gBAAgB,CAAA;AAChB,yCAAA,gBAAgB,CAAA;AAChB,0CAAA,iBAAiB,CAAA"}
|
package/lib-esm/API.js
CHANGED
|
@@ -12,7 +12,7 @@ import { __assign, __awaiter, __generator } from "tslib";
|
|
|
12
12
|
* and limitations under the License.
|
|
13
13
|
*/
|
|
14
14
|
import { Auth } from '@aws-amplify/auth';
|
|
15
|
-
import Cache from '@aws-amplify/cache';
|
|
15
|
+
import { BrowserStorageCache as Cache } from '@aws-amplify/cache';
|
|
16
16
|
import { RestAPIClass } from '@aws-amplify/api-rest';
|
|
17
17
|
import { GraphQLAPIClass, } from '@aws-amplify/api-graphql';
|
|
18
18
|
import { Amplify, ConsoleLogger as Logger, Credentials, } from '@aws-amplify/core';
|
package/lib-esm/API.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,KAAK,MAAM,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,IAAI,EAAE,MAAM,mBAAmB,CAAC;AACzC,OAAO,EAAE,mBAAmB,IAAI,KAAK,EAAE,MAAM,oBAAoB,CAAC;AAElE,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EACN,eAAe,GAKf,MAAM,0BAA0B,CAAC;AAClC,OAAO,EACN,OAAO,EACP,aAAa,IAAI,MAAM,EACvB,WAAW,GACX,MAAM,mBAAmB,CAAC;AAI3B,IAAM,MAAM,GAAG,IAAI,MAAM,CAAC,KAAK,CAAC,CAAC;AACjC;;;;GAIG;AACH;IAaC;;;OAGG;IACH,kBAAY,OAAO;QARnB,SAAI,GAAG,IAAI,CAAC;QACZ,UAAK,GAAG,KAAK,CAAC;QACd,gBAAW,GAAG,WAAW,CAAC;QAOzB,IAAI,CAAC,QAAQ,GAAG,OAAO,CAAC;QACxB,IAAI,CAAC,QAAQ,GAAG,IAAI,YAAY,CAAC,OAAO,CAAC,CAAC;QAC1C,IAAI,CAAC,WAAW,GAAG,IAAI,eAAe,CAAC,OAAO,CAAC,CAAC;QAChD,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,gCAAa,GAApB;QACC,OAAO,KAAK,CAAC;IACd,CAAC;IAED;;;;OAIG;IACH,4BAAS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AAS,CAAC,CAAC;IAC5D,CAAC;IAoBD,0BAAO,GAAP,UACC,OAAuB,EACvB,iBAA6C;QAE7C,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAAC,OAAO,EAAE,iBAAiB,CAAC,CAAC;IAC7D,CAAC;IACF,eAAC;AAAD,CAAC,AA3MD,IA2MC;;AAED,MAAM,CAAC,IAAM,GAAG,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,OAAO,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC"}
|
package/lib-esm/index.d.ts
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { API } from './API';
|
|
2
1
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
3
2
|
export { API, APIClass } from './API';
|
|
4
3
|
export { graphqlOperation, GraphQLAuthError, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
|
|
5
4
|
export type { GraphQLResult } from '@aws-amplify/api-graphql';
|
|
6
|
-
export default API;
|
package/lib-esm/index.js
CHANGED
|
@@ -10,11 +10,6 @@
|
|
|
10
10
|
* CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions
|
|
11
11
|
* and limitations under the License.
|
|
12
12
|
*/
|
|
13
|
-
import { API } from './API';
|
|
14
13
|
export { API, APIClass } from './API';
|
|
15
14
|
export { graphqlOperation, GraphQLAuthError, GRAPHQL_AUTH_MODE, } from '@aws-amplify/api-graphql';
|
|
16
|
-
/*
|
|
17
|
-
* @deprecated use named import
|
|
18
|
-
*/
|
|
19
|
-
export default API;
|
|
20
15
|
//# sourceMappingURL=index.js.map
|
package/lib-esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;AAGH,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,MAAM,OAAO,CAAC;AACtC,OAAO,EACN,gBAAgB,EAChB,gBAAgB,EAChB,iBAAiB,GACjB,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "4.0.49-next.
|
|
3
|
+
"version": "4.0.49-next.32+4137aa79c",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -50,9 +50,15 @@
|
|
|
50
50
|
"devDependencies": {
|
|
51
51
|
"@types/zen-observable": "^0.8.0"
|
|
52
52
|
},
|
|
53
|
+
"files": [
|
|
54
|
+
"lib",
|
|
55
|
+
"lib-esm",
|
|
56
|
+
"src",
|
|
57
|
+
"index.*.d.ts"
|
|
58
|
+
],
|
|
53
59
|
"dependencies": {
|
|
54
|
-
"@aws-amplify/api-graphql": "2.3.13-next.
|
|
55
|
-
"@aws-amplify/api-rest": "2.0.49-next.
|
|
60
|
+
"@aws-amplify/api-graphql": "2.3.13-next.32+4137aa79c",
|
|
61
|
+
"@aws-amplify/api-rest": "2.0.49-next.32+4137aa79c",
|
|
56
62
|
"tslib": "^2.0.0"
|
|
57
63
|
},
|
|
58
64
|
"jest": {
|
|
@@ -99,5 +105,5 @@
|
|
|
99
105
|
"lib-esm"
|
|
100
106
|
]
|
|
101
107
|
},
|
|
102
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "4137aa79c6c2362afc581d3915d77f5067ea6700"
|
|
103
109
|
}
|
package/src/API.ts
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
* and limitations under the License.
|
|
12
12
|
*/
|
|
13
13
|
import { Auth } from '@aws-amplify/auth';
|
|
14
|
-
import Cache from '@aws-amplify/cache';
|
|
14
|
+
import { BrowserStorageCache as Cache } from '@aws-amplify/cache';
|
|
15
15
|
import { AWSAppSyncRealTimeProvider } from '@aws-amplify/pubsub';
|
|
16
16
|
import { RestAPIClass } from '@aws-amplify/api-rest';
|
|
17
17
|
import {
|
package/src/index.ts
CHANGED
|
@@ -11,8 +11,6 @@
|
|
|
11
11
|
* and limitations under the License.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
import { API } from './API';
|
|
15
|
-
|
|
16
14
|
export { GraphQLQuery, GraphQLSubscription } from './types';
|
|
17
15
|
export { API, APIClass } from './API';
|
|
18
16
|
export {
|
|
@@ -22,8 +20,3 @@ export {
|
|
|
22
20
|
} from '@aws-amplify/api-graphql';
|
|
23
21
|
|
|
24
22
|
export type { GraphQLResult } from '@aws-amplify/api-graphql';
|
|
25
|
-
|
|
26
|
-
/*
|
|
27
|
-
* @deprecated use named import
|
|
28
|
-
*/
|
|
29
|
-
export default API;
|