@aws-amplify/api 4.0.49-next.13 → 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 +6 -55
- 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 +2 -48
- 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 +11 -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 -16253
- 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
|
@@ -1,55 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __assign = (this && this.__assign) || function () {
|
|
3
|
-
__assign = Object.assign || function(t) {
|
|
4
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
5
|
-
s = arguments[i];
|
|
6
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
7
|
-
t[p] = s[p];
|
|
8
|
-
}
|
|
9
|
-
return t;
|
|
10
|
-
};
|
|
11
|
-
return __assign.apply(this, arguments);
|
|
12
|
-
};
|
|
13
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
14
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
15
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
16
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
17
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
18
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
19
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
20
|
-
});
|
|
21
|
-
};
|
|
22
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
23
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
24
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
25
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
26
|
-
function step(op) {
|
|
27
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
28
|
-
while (_) try {
|
|
29
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
30
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
31
|
-
switch (op[0]) {
|
|
32
|
-
case 0: case 1: t = op; break;
|
|
33
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
34
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
35
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
36
|
-
default:
|
|
37
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
38
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
39
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
40
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
41
|
-
if (t[2]) _.ops.pop();
|
|
42
|
-
_.trys.pop(); continue;
|
|
43
|
-
}
|
|
44
|
-
op = body.call(thisArg, _);
|
|
45
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
46
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
47
|
-
}
|
|
48
|
-
};
|
|
49
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
50
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
|
-
};
|
|
52
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
var tslib_1 = require("tslib");
|
|
53
4
|
/*
|
|
54
5
|
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
55
6
|
*
|
|
@@ -63,7 +14,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
63
14
|
* and limitations under the License.
|
|
64
15
|
*/
|
|
65
16
|
var auth_1 = require("@aws-amplify/auth");
|
|
66
|
-
var cache_1 =
|
|
17
|
+
var cache_1 = require("@aws-amplify/cache");
|
|
67
18
|
var api_rest_1 = require("@aws-amplify/api-rest");
|
|
68
19
|
var api_graphql_1 = require("@aws-amplify/api-graphql");
|
|
69
20
|
var core_1 = require("@aws-amplify/core");
|
|
@@ -80,7 +31,7 @@ var APIClass = /** @class */ (function () {
|
|
|
80
31
|
*/
|
|
81
32
|
function APIClass(options) {
|
|
82
33
|
this.Auth = auth_1.Auth;
|
|
83
|
-
this.Cache = cache_1.
|
|
34
|
+
this.Cache = cache_1.BrowserStorageCache;
|
|
84
35
|
this.Credentials = core_1.Credentials;
|
|
85
36
|
this._options = options;
|
|
86
37
|
this._restApi = new api_rest_1.RestAPIClass(options);
|
|
@@ -104,7 +55,7 @@ var APIClass = /** @class */ (function () {
|
|
|
104
55
|
this._graphqlApi.Credentials = this.Credentials;
|
|
105
56
|
var restAPIConfig = this._restApi.configure(this._options);
|
|
106
57
|
var graphQLAPIConfig = this._graphqlApi.configure(this._options);
|
|
107
|
-
return __assign(__assign({}, restAPIConfig), graphQLAPIConfig);
|
|
58
|
+
return tslib_1.__assign(tslib_1.__assign({}, restAPIConfig), graphQLAPIConfig);
|
|
108
59
|
};
|
|
109
60
|
/**
|
|
110
61
|
* Make a GET request
|
|
@@ -195,8 +146,8 @@ var APIClass = /** @class */ (function () {
|
|
|
195
146
|
* @return The endpoint of the api
|
|
196
147
|
*/
|
|
197
148
|
APIClass.prototype.endpoint = function (apiName) {
|
|
198
|
-
return __awaiter(this, void 0, void 0, function () {
|
|
199
|
-
return __generator(this, function (_a) {
|
|
149
|
+
return tslib_1.__awaiter(this, void 0, void 0, function () {
|
|
150
|
+
return tslib_1.__generator(this, function (_a) {
|
|
200
151
|
return [2 /*return*/, this._restApi.endpoint(apiName)];
|
|
201
152
|
});
|
|
202
153
|
});
|
package/lib/API.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"API.js","sourceRoot":"","sources":["../src/API.ts"],"names":[],"mappings":"
|
|
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;;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AC,uBAAuB,CAAC,SAAS,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;AA3MY,4BAAQ;AA6MR,QAAA,GAAG,GAAG,IAAI,QAAQ,CAAC,IAAI,CAAC,CAAC;AACtC,cAAO,CAAC,QAAQ,CAAC,WAAG,CAAC,CAAC"}
|
package/lib/index.js
CHANGED
|
@@ -13,15 +13,10 @@
|
|
|
13
13
|
*/
|
|
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
|
@@ -1,50 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
__assign = Object.assign || function(t) {
|
|
3
|
-
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
4
|
-
s = arguments[i];
|
|
5
|
-
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
|
|
6
|
-
t[p] = s[p];
|
|
7
|
-
}
|
|
8
|
-
return t;
|
|
9
|
-
};
|
|
10
|
-
return __assign.apply(this, arguments);
|
|
11
|
-
};
|
|
12
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
13
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
14
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
15
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
16
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
17
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
18
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
19
|
-
});
|
|
20
|
-
};
|
|
21
|
-
var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
22
|
-
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
23
|
-
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
24
|
-
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
25
|
-
function step(op) {
|
|
26
|
-
if (f) throw new TypeError("Generator is already executing.");
|
|
27
|
-
while (_) try {
|
|
28
|
-
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
29
|
-
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
30
|
-
switch (op[0]) {
|
|
31
|
-
case 0: case 1: t = op; break;
|
|
32
|
-
case 4: _.label++; return { value: op[1], done: false };
|
|
33
|
-
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
34
|
-
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
35
|
-
default:
|
|
36
|
-
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
37
|
-
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
38
|
-
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
39
|
-
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
40
|
-
if (t[2]) _.ops.pop();
|
|
41
|
-
_.trys.pop(); continue;
|
|
42
|
-
}
|
|
43
|
-
op = body.call(thisArg, _);
|
|
44
|
-
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
45
|
-
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
46
|
-
}
|
|
47
|
-
};
|
|
1
|
+
import { __assign, __awaiter, __generator } from "tslib";
|
|
48
2
|
/*
|
|
49
3
|
* Copyright 2017-2019 Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
50
4
|
*
|
|
@@ -58,7 +12,7 @@ var __generator = (this && this.__generator) || function (thisArg, body) {
|
|
|
58
12
|
* and limitations under the License.
|
|
59
13
|
*/
|
|
60
14
|
import { Auth } from '@aws-amplify/auth';
|
|
61
|
-
import Cache from '@aws-amplify/cache';
|
|
15
|
+
import { BrowserStorageCache as Cache } from '@aws-amplify/cache';
|
|
62
16
|
import { RestAPIClass } from '@aws-amplify/api-rest';
|
|
63
17
|
import { GraphQLAPIClass, } from '@aws-amplify/api-graphql';
|
|
64
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":"
|
|
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,GAAT,UAAU,OAAO;QAChB,IAAI,CAAC,QAAQ,GAAG,MAAM,CAAC,MAAM,CAAC,EAAE,EAAE,IAAI,CAAC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AAC,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,16 @@
|
|
|
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",
|
|
62
|
+
"tslib": "^2.0.0"
|
|
56
63
|
},
|
|
57
64
|
"jest": {
|
|
58
65
|
"globals": {
|
|
@@ -98,5 +105,5 @@
|
|
|
98
105
|
"lib-esm"
|
|
99
106
|
]
|
|
100
107
|
},
|
|
101
|
-
"gitHead": "
|
|
108
|
+
"gitHead": "4137aa79c6c2362afc581d3915d77f5067ea6700"
|
|
102
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;
|