altair-graphql-core 8.2.0 → 8.2.2
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/.turbo/turbo-bootstrap.log +2 -2
- package/build/ai/types.d.ts +1 -0
- package/build/cjs/ai/types.d.ts +1 -0
- package/build/cjs/plugin/v3/frame-engine.js +1 -0
- package/build/cjs/plugin/v3/panel.js +1 -1
- package/build/cjs/plugin/v3/parent-worker.js +1 -0
- package/build/cjs/request/handlers/app-sync.d.ts +3 -2
- package/build/cjs/request/handlers/app-sync.js +8 -4
- package/build/plugin/v3/frame-engine.js +1 -0
- package/build/plugin/v3/panel.js +1 -1
- package/build/plugin/v3/parent-worker.js +1 -0
- package/build/request/handlers/app-sync.d.ts +3 -2
- package/build/request/handlers/app-sync.js +8 -4
- package/package.json +3 -3
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
|
|
2
|
-
> altair-graphql-core@8.2.
|
|
2
|
+
> altair-graphql-core@8.2.2 bootstrap /home/runner/work/altair/altair/packages/altair-core
|
|
3
3
|
> pnpm build
|
|
4
4
|
|
|
5
5
|
|
|
6
|
-
> altair-graphql-core@8.2.
|
|
6
|
+
> altair-graphql-core@8.2.2 build /home/runner/work/altair/altair/packages/altair-core
|
|
7
7
|
> node ./scripts/build.js
|
|
8
8
|
|
|
9
9
|
Generating types for partial-settings ...
|
package/build/ai/types.d.ts
CHANGED
package/build/cjs/ai/types.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ class PluginFrameEngine {
|
|
|
7
7
|
constructor(worker, options) {
|
|
8
8
|
this.worker = worker;
|
|
9
9
|
this.options = options;
|
|
10
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
10
11
|
this.eventListeners = {};
|
|
11
12
|
this.readyPromise = new Promise((resolve) => {
|
|
12
13
|
this.worker.subscribe(events_1.PLUGIN_ENGINE_READY, () => {
|
|
@@ -8,8 +8,9 @@ export declare class AppSyncRequestHandler implements GraphQLRequestHandler {
|
|
|
8
8
|
"aws_appsync_graphqlEndpoint": "https://....appsync-api.us-west-2.amazonaws.com/graphql",
|
|
9
9
|
"aws_appsync_region": "us-west-2",
|
|
10
10
|
"aws_appsync_authenticationType": "API_KEY",
|
|
11
|
-
"aws_appsync_apiKey": "..."
|
|
12
|
-
"aws_appsync_jwtToken" "..."
|
|
11
|
+
"aws_appsync_apiKey": "...",
|
|
12
|
+
"aws_appsync_jwtToken" "...",
|
|
13
|
+
"aws_appsync_token" "..."
|
|
13
14
|
}
|
|
14
15
|
*/
|
|
15
16
|
handle(request: GraphQLRequestOptions): Observable<GraphQLResponseData>;
|
|
@@ -14,8 +14,9 @@ class AppSyncRequestHandler {
|
|
|
14
14
|
"aws_appsync_graphqlEndpoint": "https://....appsync-api.us-west-2.amazonaws.com/graphql",
|
|
15
15
|
"aws_appsync_region": "us-west-2",
|
|
16
16
|
"aws_appsync_authenticationType": "API_KEY",
|
|
17
|
-
"aws_appsync_apiKey": "..."
|
|
18
|
-
"aws_appsync_jwtToken" "..."
|
|
17
|
+
"aws_appsync_apiKey": "...",
|
|
18
|
+
"aws_appsync_jwtToken" "...",
|
|
19
|
+
"aws_appsync_token" "..."
|
|
19
20
|
}
|
|
20
21
|
*/
|
|
21
22
|
handle(request) {
|
|
@@ -27,16 +28,19 @@ class AppSyncRequestHandler {
|
|
|
27
28
|
? request.additionalParams.aws_appsync_region
|
|
28
29
|
: '';
|
|
29
30
|
const auth = {
|
|
30
|
-
type:
|
|
31
|
+
type: typeof request.additionalParams?.aws_appsync_authenticationType ===
|
|
31
32
|
'string'
|
|
32
33
|
? request.additionalParams.aws_appsync_authenticationType
|
|
33
|
-
: ''
|
|
34
|
+
: '',
|
|
34
35
|
apiKey: typeof request.additionalParams?.aws_appsync_apiKey === 'string'
|
|
35
36
|
? request.additionalParams.aws_appsync_apiKey
|
|
36
37
|
: '',
|
|
37
38
|
jwtToken: typeof request.additionalParams?.aws_appsync_jwtToken === 'string'
|
|
38
39
|
? request.additionalParams.aws_appsync_jwtToken
|
|
39
40
|
: '',
|
|
41
|
+
token: typeof request.additionalParams?.aws_appsync_token === 'string'
|
|
42
|
+
? request.additionalParams.aws_appsync_token
|
|
43
|
+
: '',
|
|
40
44
|
};
|
|
41
45
|
const link = core_1.ApolloLink.from([
|
|
42
46
|
(0, aws_appsync_auth_link_1.createAuthLink)({ url, region, auth }),
|
|
@@ -4,6 +4,7 @@ export class PluginFrameEngine {
|
|
|
4
4
|
constructor(worker, options) {
|
|
5
5
|
this.worker = worker;
|
|
6
6
|
this.options = options;
|
|
7
|
+
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
7
8
|
this.eventListeners = {};
|
|
8
9
|
this.readyPromise = new Promise((resolve) => {
|
|
9
10
|
this.worker.subscribe(PLUGIN_ENGINE_READY, () => {
|
package/build/plugin/v3/panel.js
CHANGED
|
@@ -8,8 +8,9 @@ export declare class AppSyncRequestHandler implements GraphQLRequestHandler {
|
|
|
8
8
|
"aws_appsync_graphqlEndpoint": "https://....appsync-api.us-west-2.amazonaws.com/graphql",
|
|
9
9
|
"aws_appsync_region": "us-west-2",
|
|
10
10
|
"aws_appsync_authenticationType": "API_KEY",
|
|
11
|
-
"aws_appsync_apiKey": "..."
|
|
12
|
-
"aws_appsync_jwtToken" "..."
|
|
11
|
+
"aws_appsync_apiKey": "...",
|
|
12
|
+
"aws_appsync_jwtToken" "...",
|
|
13
|
+
"aws_appsync_token" "..."
|
|
13
14
|
}
|
|
14
15
|
*/
|
|
15
16
|
handle(request: GraphQLRequestOptions): Observable<GraphQLResponseData>;
|
|
@@ -11,8 +11,9 @@ export class AppSyncRequestHandler {
|
|
|
11
11
|
"aws_appsync_graphqlEndpoint": "https://....appsync-api.us-west-2.amazonaws.com/graphql",
|
|
12
12
|
"aws_appsync_region": "us-west-2",
|
|
13
13
|
"aws_appsync_authenticationType": "API_KEY",
|
|
14
|
-
"aws_appsync_apiKey": "..."
|
|
15
|
-
"aws_appsync_jwtToken" "..."
|
|
14
|
+
"aws_appsync_apiKey": "...",
|
|
15
|
+
"aws_appsync_jwtToken" "...",
|
|
16
|
+
"aws_appsync_token" "..."
|
|
16
17
|
}
|
|
17
18
|
*/
|
|
18
19
|
handle(request) {
|
|
@@ -24,16 +25,19 @@ export class AppSyncRequestHandler {
|
|
|
24
25
|
? request.additionalParams.aws_appsync_region
|
|
25
26
|
: '';
|
|
26
27
|
const auth = {
|
|
27
|
-
type:
|
|
28
|
+
type: typeof request.additionalParams?.aws_appsync_authenticationType ===
|
|
28
29
|
'string'
|
|
29
30
|
? request.additionalParams.aws_appsync_authenticationType
|
|
30
|
-
: ''
|
|
31
|
+
: '',
|
|
31
32
|
apiKey: typeof request.additionalParams?.aws_appsync_apiKey === 'string'
|
|
32
33
|
? request.additionalParams.aws_appsync_apiKey
|
|
33
34
|
: '',
|
|
34
35
|
jwtToken: typeof request.additionalParams?.aws_appsync_jwtToken === 'string'
|
|
35
36
|
? request.additionalParams.aws_appsync_jwtToken
|
|
36
37
|
: '',
|
|
38
|
+
token: typeof request.additionalParams?.aws_appsync_token === 'string'
|
|
39
|
+
? request.additionalParams.aws_appsync_token
|
|
40
|
+
: '',
|
|
37
41
|
};
|
|
38
42
|
const link = ApolloLink.from([
|
|
39
43
|
createAuthLink({ url, region, auth }),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "altair-graphql-core",
|
|
3
3
|
"description": "Several of the core logic for altair graphql client",
|
|
4
|
-
"version": "8.2.
|
|
4
|
+
"version": "8.2.2",
|
|
5
5
|
"author": "Samuel Imolorhe <altair@sirmuel.design> (https://sirmuel.design)",
|
|
6
6
|
"bugs": "https://github.com/altair-graphql/altair/issues",
|
|
7
7
|
"dependencies": {
|
|
@@ -13,8 +13,8 @@
|
|
|
13
13
|
"apollo-cache-inmemory": "1.6.6",
|
|
14
14
|
"apollo-link": "1.2.14",
|
|
15
15
|
"apollo-link-http": "1.5.17",
|
|
16
|
-
"aws-appsync-auth-link": "3.0.
|
|
17
|
-
"aws-appsync-subscription-link": "3.
|
|
16
|
+
"aws-appsync-auth-link": "3.0.7",
|
|
17
|
+
"aws-appsync-subscription-link": "3.1.3",
|
|
18
18
|
"color-name": "^2.0.0",
|
|
19
19
|
"crypto-js": "3.3.0",
|
|
20
20
|
"deepmerge": "4.2.2",
|