@aws-amplify/api 5.4.2 → 5.4.3-unstable.b6987fc.0
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/lib/internals/InternalAPI.d.ts +1 -1
- package/lib/internals/InternalAPI.js +3 -3
- package/lib/internals/InternalAPI.js.map +1 -1
- package/lib-esm/internals/InternalAPI.d.ts +1 -1
- package/lib-esm/internals/InternalAPI.js +3 -3
- package/lib-esm/internals/InternalAPI.js.map +1 -1
- package/package.json +4 -4
- package/src/internals/InternalAPI.ts +3 -3
|
@@ -16,7 +16,7 @@ export declare class InternalAPIClass {
|
|
|
16
16
|
private _options;
|
|
17
17
|
private _restApi;
|
|
18
18
|
private _graphqlApi;
|
|
19
|
-
|
|
19
|
+
InternalAuth: import("@aws-amplify/auth/lib-esm/internals/InternalAuth").InternalAuthClass;
|
|
20
20
|
Cache: import("@aws-amplify/cache/lib-esm/types").ICache;
|
|
21
21
|
Credentials: import("@aws-amplify/core").CredentialsClass;
|
|
22
22
|
/**
|
|
@@ -3,7 +3,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
3
3
|
var tslib_1 = require("tslib");
|
|
4
4
|
var internals_1 = require("@aws-amplify/api-graphql/internals");
|
|
5
5
|
var api_rest_1 = require("@aws-amplify/api-rest");
|
|
6
|
-
var
|
|
6
|
+
var internals_2 = require("@aws-amplify/auth/internals");
|
|
7
7
|
var cache_1 = require("@aws-amplify/cache");
|
|
8
8
|
var core_1 = require("@aws-amplify/core");
|
|
9
9
|
var logger = new core_1.ConsoleLogger('API');
|
|
@@ -18,7 +18,7 @@ var InternalAPIClass = /** @class */ (function () {
|
|
|
18
18
|
* @param {Object} options - Configuration object for API
|
|
19
19
|
*/
|
|
20
20
|
function InternalAPIClass(options) {
|
|
21
|
-
this.
|
|
21
|
+
this.InternalAuth = internals_2.InternalAuth;
|
|
22
22
|
this.Cache = cache_1.Cache;
|
|
23
23
|
this.Credentials = core_1.Credentials;
|
|
24
24
|
this._options = options;
|
|
@@ -38,7 +38,7 @@ var InternalAPIClass = /** @class */ (function () {
|
|
|
38
38
|
this._options = Object.assign({}, this._options, options);
|
|
39
39
|
// Share Amplify instance with client for SSR
|
|
40
40
|
this._restApi.Credentials = this.Credentials;
|
|
41
|
-
this._graphqlApi.
|
|
41
|
+
this._graphqlApi.InternalAuth = this.InternalAuth;
|
|
42
42
|
this._graphqlApi.Cache = this.Cache;
|
|
43
43
|
this._graphqlApi.Credentials = this.Credentials;
|
|
44
44
|
var restAPIConfig = this._restApi.configure(this._options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalAPI.js","sourceRoot":"","sources":["../../src/internals/InternalAPI.ts"],"names":[],"mappings":";;;AAQA,gEAA6E;AAC7E,kDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"InternalAPI.js","sourceRoot":"","sources":["../../src/internals/InternalAPI.ts"],"names":[],"mappings":";;;AAQA,gEAA6E;AAC7E,kDAAqD;AACrD,yDAA2D;AAC3D,4CAA2C;AAC3C,0CAO2B;AAK3B,IAAM,MAAM,GAAG,IAAI,oBAAM,CAAC,KAAK,CAAC,CAAC;AACjC;;;;GAIG;AACH;IAaC;;;OAGG;IACH,0BAAY,OAAO;QARnB,iBAAY,GAAG,wBAAY,CAAC;QAC5B,UAAK,GAAG,aAAK,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,mCAAuB,CAAC,OAAO,CAAC,CAAC;QACxD,MAAM,CAAC,KAAK,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,CAAC;IAC5C,CAAC;IAEM,wCAAa,GAApB;QACC,OAAO,aAAa,CAAC;IACtB,CAAC;IAED;;;;OAIG;IACH,oCAAS,GAAT,U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AAC,WAAW,CAAC,MAAM,CAAC,OAAO,EAAE,OAAO,CAAC,CAAC;SACjD;QACD,OAAO,KAAK,CAAC;IACd,CAAC;IAEO,4DAAiC,GAAzC,UACC,IAA4B,EAC5B,MAAiB;QAEjB,IAAM,sBAAsB,GAA2B;YACtD,QAAQ,EAAE,eAAQ,CAAC,GAAG;YACtB,MAAM,QAAA;SACN,CAAC;QACF,IAAM,UAAU,yCAAQ,IAAI,KAAE,sBAAsB,wBAAA,GAAE,CAAC;QACvD,OAAO,UAAU,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACG,mCAAQ,GAAd,UAAe,OAAe;;;gBAC7B,sBAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAC;;;KACvC;IAED;;;OAGG;IACH,kDAAuB,GAAvB,UAAwB,SAA2B;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAqBD,kCAAO,GAAP,UACC,OAAuB,EACvB,iBAA6C,EAC7C,sBAA+C;QAE/C,IAAM,mBAAmB,sBACxB,QAAQ,EAAE,eAAQ,CAAC,GAAG,EACtB,MAAM,EAAE,gBAAS,CAAC,OAAO,IACtB,sBAAsB,CACzB,CAAC;QAEF,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAC9B,OAAO,EACP,iBAAiB,EACjB,mBAAmB,CACnB,CAAC;IACH,CAAC;IACF,uBAAC;AAAD,CAAC,AA3PD,IA2PC;AA3PY,4CAAgB;AA6PhB,QAAA,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACtD,cAAO,CAAC,QAAQ,CAAC,mBAAW,CAAC,CAAC"}
|
|
@@ -16,7 +16,7 @@ export declare class InternalAPIClass {
|
|
|
16
16
|
private _options;
|
|
17
17
|
private _restApi;
|
|
18
18
|
private _graphqlApi;
|
|
19
|
-
|
|
19
|
+
InternalAuth: import("@aws-amplify/auth/lib-esm/internals/InternalAuth").InternalAuthClass;
|
|
20
20
|
Cache: import("@aws-amplify/cache/lib-esm/types").ICache;
|
|
21
21
|
Credentials: import("@aws-amplify/core").CredentialsClass;
|
|
22
22
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { __assign, __awaiter, __generator } from "tslib";
|
|
2
2
|
import { InternalGraphQLAPIClass } from '@aws-amplify/api-graphql/internals';
|
|
3
3
|
import { RestAPIClass } from '@aws-amplify/api-rest';
|
|
4
|
-
import {
|
|
4
|
+
import { InternalAuth } from '@aws-amplify/auth/internals';
|
|
5
5
|
import { Cache } from '@aws-amplify/cache';
|
|
6
6
|
import { Amplify, ApiAction, Category, Credentials, ConsoleLogger as Logger, } from '@aws-amplify/core';
|
|
7
7
|
var logger = new Logger('API');
|
|
@@ -16,7 +16,7 @@ var InternalAPIClass = /** @class */ (function () {
|
|
|
16
16
|
* @param {Object} options - Configuration object for API
|
|
17
17
|
*/
|
|
18
18
|
function InternalAPIClass(options) {
|
|
19
|
-
this.
|
|
19
|
+
this.InternalAuth = InternalAuth;
|
|
20
20
|
this.Cache = Cache;
|
|
21
21
|
this.Credentials = Credentials;
|
|
22
22
|
this._options = options;
|
|
@@ -36,7 +36,7 @@ var InternalAPIClass = /** @class */ (function () {
|
|
|
36
36
|
this._options = Object.assign({}, this._options, options);
|
|
37
37
|
// Share Amplify instance with client for SSR
|
|
38
38
|
this._restApi.Credentials = this.Credentials;
|
|
39
|
-
this._graphqlApi.
|
|
39
|
+
this._graphqlApi.InternalAuth = this.InternalAuth;
|
|
40
40
|
this._graphqlApi.Cache = this.Cache;
|
|
41
41
|
this._graphqlApi.Credentials = this.Credentials;
|
|
42
42
|
var restAPIConfig = this._restApi.configure(this._options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"InternalAPI.js","sourceRoot":"","sources":["../../src/internals/InternalAPI.ts"],"names":[],"mappings":";AAQA,OAAO,EAAE,uBAAuB,EAAE,MAAM,oCAAoC,CAAC;AA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,GAAG;YACtB,MAAM,QAAA;SACN,CAAC;QACF,IAAM,UAAU,yBAAQ,IAAI,KAAE,sBAAsB,wBAAA,GAAE,CAAC;QACvD,OAAO,UAAU,CAAC;IACnB,CAAC;IAED;;;;OAIG;IACG,mCAAQ,GAAd,UAAe,OAAe;;;gBAC7B,sBAAO,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,OAAO,CAAC,EAAC;;;KACvC;IAED;;;OAGG;IACH,kDAAuB,GAAvB,UAAwB,SAA2B;QAClD,OAAO,IAAI,CAAC,WAAW,CAAC,uBAAuB,CAAC,SAAS,CAAC,CAAC;IAC5D,CAAC;IAqBD,kCAAO,GAAP,UACC,OAAuB,EACvB,iBAA6C,EAC7C,sBAA+C;QAE/C,IAAM,mBAAmB,cACxB,QAAQ,EAAE,QAAQ,CAAC,GAAG,EACtB,MAAM,EAAE,SAAS,CAAC,OAAO,IACtB,sBAAsB,CACzB,CAAC;QAEF,OAAO,IAAI,CAAC,WAAW,CAAC,OAAO,CAC9B,OAAO,EACP,iBAAiB,EACjB,mBAAmB,CACnB,CAAC;IACH,CAAC;IACF,uBAAC;AAAD,CAAC,AA3PD,IA2PC;;AAED,MAAM,CAAC,IAAM,WAAW,GAAG,IAAI,gBAAgB,CAAC,IAAI,CAAC,CAAC;AACtD,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-amplify/api",
|
|
3
|
-
"version": "5.4.
|
|
3
|
+
"version": "5.4.3-unstable.b6987fc.0+b6987fc",
|
|
4
4
|
"description": "Api category of aws-amplify",
|
|
5
5
|
"main": "./lib/index.js",
|
|
6
6
|
"module": "./lib-esm/index.js",
|
|
@@ -58,8 +58,8 @@
|
|
|
58
58
|
"internals"
|
|
59
59
|
],
|
|
60
60
|
"dependencies": {
|
|
61
|
-
"@aws-amplify/api-graphql": "3.4.
|
|
62
|
-
"@aws-amplify/api-rest": "3.5.
|
|
61
|
+
"@aws-amplify/api-graphql": "3.4.9-unstable.b6987fc.0+b6987fc",
|
|
62
|
+
"@aws-amplify/api-rest": "3.5.3-unstable.b6987fc.0+b6987fc",
|
|
63
63
|
"tslib": "^1.8.0"
|
|
64
64
|
},
|
|
65
65
|
"size-limit": [
|
|
@@ -114,5 +114,5 @@
|
|
|
114
114
|
"lib-esm"
|
|
115
115
|
]
|
|
116
116
|
},
|
|
117
|
-
"gitHead": "
|
|
117
|
+
"gitHead": "b6987fc64ce7617a3a4cba78ae23a8c6936808d1"
|
|
118
118
|
}
|
|
@@ -8,7 +8,7 @@ import {
|
|
|
8
8
|
} from '@aws-amplify/api-graphql';
|
|
9
9
|
import { InternalGraphQLAPIClass } from '@aws-amplify/api-graphql/internals';
|
|
10
10
|
import { RestAPIClass } from '@aws-amplify/api-rest';
|
|
11
|
-
import {
|
|
11
|
+
import { InternalAuth } from '@aws-amplify/auth/internals';
|
|
12
12
|
import { Cache } from '@aws-amplify/cache';
|
|
13
13
|
import {
|
|
14
14
|
Amplify,
|
|
@@ -37,7 +37,7 @@ export class InternalAPIClass {
|
|
|
37
37
|
private _restApi: RestAPIClass;
|
|
38
38
|
private _graphqlApi: InternalGraphQLAPIClass;
|
|
39
39
|
|
|
40
|
-
|
|
40
|
+
InternalAuth = InternalAuth;
|
|
41
41
|
Cache = Cache;
|
|
42
42
|
Credentials = Credentials;
|
|
43
43
|
|
|
@@ -67,7 +67,7 @@ export class InternalAPIClass {
|
|
|
67
67
|
// Share Amplify instance with client for SSR
|
|
68
68
|
this._restApi.Credentials = this.Credentials;
|
|
69
69
|
|
|
70
|
-
this._graphqlApi.
|
|
70
|
+
this._graphqlApi.InternalAuth = this.InternalAuth;
|
|
71
71
|
this._graphqlApi.Cache = this.Cache;
|
|
72
72
|
this._graphqlApi.Credentials = this.Credentials;
|
|
73
73
|
|