@graphql-hive/plugin-aws-sigv4 2.0.69 → 2.0.70-alpha-b8b1b6724923f4cb4e7f9c26abd7591393e1ceca
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 +6 -0
- package/dist/index.cjs +10 -10
- package/dist/index.d.cts +1 -3
- package/dist/index.d.ts +1 -3
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,11 @@
|
|
|
1
1
|
# @graphql-hive/plugin-aws-sigv4
|
|
2
2
|
|
|
3
|
+
## 2.0.70-alpha-b8b1b6724923f4cb4e7f9c26abd7591393e1ceca
|
|
4
|
+
### Patch Changes
|
|
5
|
+
|
|
6
|
+
- Updated dependencies [[`b8b1b67`](https://github.com/graphql-hive/gateway/commit/b8b1b6724923f4cb4e7f9c26abd7591393e1ceca)]:
|
|
7
|
+
- @graphql-mesh/fusion-runtime@1.12.4-alpha-b8b1b6724923f4cb4e7f9c26abd7591393e1ceca
|
|
8
|
+
|
|
3
9
|
## 2.0.69
|
|
4
10
|
### Patch Changes
|
|
5
11
|
|
package/dist/index.cjs
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
var require$$2 = require('node:crypto');
|
|
4
4
|
var clientSts = require('@aws-sdk/client-sts');
|
|
5
|
-
var require$$
|
|
5
|
+
var require$$0 = require('@whatwg-node/promise-helpers');
|
|
6
6
|
var aws4 = require('aws4');
|
|
7
7
|
var graphql = require('graphql');
|
|
8
8
|
|
|
@@ -124,14 +124,14 @@ function useAWSSigv4(opts) {
|
|
|
124
124
|
if (secretFromEnv) {
|
|
125
125
|
return secretFromEnv;
|
|
126
126
|
}
|
|
127
|
-
return require$$
|
|
127
|
+
return require$$0.handleMaybePromise(
|
|
128
128
|
() => incomingOptions?.assumeRole?.(payload),
|
|
129
129
|
(assumeRolePayload) => {
|
|
130
130
|
if (!assumeRolePayload || !assumeRolePayload.roleArn || !assumeRolePayload.roleSessionName) {
|
|
131
131
|
return;
|
|
132
132
|
}
|
|
133
133
|
const sts = new clientSts.STS({ region: assumeRolePayload.region });
|
|
134
|
-
return require$$
|
|
134
|
+
return require$$0.handleMaybePromise(
|
|
135
135
|
() => sts.assumeRole({
|
|
136
136
|
RoleArn: assumeRolePayload.roleArn,
|
|
137
137
|
RoleSessionName: assumeRolePayload.roleSessionName
|
|
@@ -149,18 +149,18 @@ function useAWSSigv4(opts) {
|
|
|
149
149
|
if (incomingOptions == null) {
|
|
150
150
|
return;
|
|
151
151
|
}
|
|
152
|
-
return require$$
|
|
152
|
+
return require$$0.handleMaybePromise(
|
|
153
153
|
() => incomingOptions.enabled(request, serverContext),
|
|
154
154
|
(ifEnabled) => {
|
|
155
155
|
if (!ifEnabled) {
|
|
156
156
|
return;
|
|
157
157
|
}
|
|
158
|
-
return require$$
|
|
158
|
+
return require$$0.handleMaybePromise(
|
|
159
159
|
() => {
|
|
160
160
|
if (!incomingOptions) {
|
|
161
161
|
throw new Error("Missing options setup");
|
|
162
162
|
}
|
|
163
|
-
return require$$
|
|
163
|
+
return require$$0.handleMaybePromise(
|
|
164
164
|
() => incomingOptions.onBeforeParse(request, serverContext),
|
|
165
165
|
(ifContinue) => {
|
|
166
166
|
if (!ifContinue) {
|
|
@@ -239,7 +239,7 @@ function useAWSSigv4(opts) {
|
|
|
239
239
|
request,
|
|
240
240
|
serverContext
|
|
241
241
|
};
|
|
242
|
-
return require$$
|
|
242
|
+
return require$$0.handleMaybePromise(
|
|
243
243
|
() => incomingOptions.secretAccessKey?.(payload),
|
|
244
244
|
(secretKey) => {
|
|
245
245
|
if (!secretKey) {
|
|
@@ -249,7 +249,7 @@ function useAWSSigv4(opts) {
|
|
|
249
249
|
);
|
|
250
250
|
}
|
|
251
251
|
payload.secretAccessKey = secretKey;
|
|
252
|
-
return require$$
|
|
252
|
+
return require$$0.handleMaybePromise(
|
|
253
253
|
() => incomingOptions.onAfterParse(payload),
|
|
254
254
|
(shouldContinue) => {
|
|
255
255
|
if (!shouldContinue) {
|
|
@@ -356,7 +356,7 @@ function useAWSSigv4(opts) {
|
|
|
356
356
|
if (!isBufferOrString(options.body)) {
|
|
357
357
|
return;
|
|
358
358
|
}
|
|
359
|
-
return require$$
|
|
359
|
+
return require$$0.handleMaybePromise(
|
|
360
360
|
() => outgoingOptionsFactory({ url, options, subgraphName }),
|
|
361
361
|
(factoryResult) => {
|
|
362
362
|
if (factoryResult === false) {
|
|
@@ -382,7 +382,7 @@ function useAWSSigv4(opts) {
|
|
|
382
382
|
service = factoryResult.serviceName;
|
|
383
383
|
region = factoryResult.region;
|
|
384
384
|
}
|
|
385
|
-
return require$$
|
|
385
|
+
return require$$0.handleMaybePromise(
|
|
386
386
|
() => roleArn && roleSessionName ? new clientSts.STS({ region }).assumeRole({
|
|
387
387
|
RoleArn: roleArn,
|
|
388
388
|
RoleSessionName: roleSessionName
|
package/dist/index.d.cts
CHANGED
|
@@ -2,7 +2,7 @@ import { DisposableSymbols } from '@whatwg-node/disposablestack';
|
|
|
2
2
|
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
3
3
|
import { UnifiedGraphPlugin, Instrumentation as Instrumentation$2 } from '@graphql-mesh/fusion-runtime';
|
|
4
4
|
import { Plugin, YogaInitialContext, Instrumentation as Instrumentation$1 } from 'graphql-yoga';
|
|
5
|
-
import { MeshFetch, KeyValueCache, MeshFetchRequestInit
|
|
5
|
+
import { MeshFetch, KeyValueCache, MeshFetchRequestInit } from '@graphql-mesh/types';
|
|
6
6
|
import { FetchInstrumentation } from '@graphql-mesh/utils';
|
|
7
7
|
import { ExecutionRequest, MaybePromise as MaybePromise$1 } from '@graphql-tools/utils';
|
|
8
8
|
import { GraphQLResolveInfo } from 'graphql/type';
|
|
@@ -211,8 +211,6 @@ interface OnFetchHookPayload<TContext> {
|
|
|
211
211
|
context: (GatewayContext & TContext) | {
|
|
212
212
|
log: Logger;
|
|
213
213
|
};
|
|
214
|
-
/** @deprecated Please use `log` from the {@link context} instead. */
|
|
215
|
-
logger: Logger$1;
|
|
216
214
|
info: GraphQLResolveInfo;
|
|
217
215
|
fetchFn: MeshFetch;
|
|
218
216
|
setFetchFn: (fetchFn: MeshFetch) => void;
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { DisposableSymbols } from '@whatwg-node/disposablestack';
|
|
|
2
2
|
import { MaybePromise } from '@whatwg-node/promise-helpers';
|
|
3
3
|
import { UnifiedGraphPlugin, Instrumentation as Instrumentation$2 } from '@graphql-mesh/fusion-runtime';
|
|
4
4
|
import { Plugin, YogaInitialContext, Instrumentation as Instrumentation$1 } from 'graphql-yoga';
|
|
5
|
-
import { MeshFetch, KeyValueCache, MeshFetchRequestInit
|
|
5
|
+
import { MeshFetch, KeyValueCache, MeshFetchRequestInit } from '@graphql-mesh/types';
|
|
6
6
|
import { FetchInstrumentation } from '@graphql-mesh/utils';
|
|
7
7
|
import { ExecutionRequest, MaybePromise as MaybePromise$1 } from '@graphql-tools/utils';
|
|
8
8
|
import { GraphQLResolveInfo } from 'graphql/type';
|
|
@@ -211,8 +211,6 @@ interface OnFetchHookPayload<TContext> {
|
|
|
211
211
|
context: (GatewayContext & TContext) | {
|
|
212
212
|
log: Logger;
|
|
213
213
|
};
|
|
214
|
-
/** @deprecated Please use `log` from the {@link context} instead. */
|
|
215
|
-
logger: Logger$1;
|
|
216
214
|
info: GraphQLResolveInfo;
|
|
217
215
|
fetchFn: MeshFetch;
|
|
218
216
|
setFetchFn: (fetchFn: MeshFetch) => void;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-hive/plugin-aws-sigv4",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.70-alpha-b8b1b6724923f4cb4e7f9c26abd7591393e1ceca",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -43,17 +43,17 @@
|
|
|
43
43
|
},
|
|
44
44
|
"dependencies": {
|
|
45
45
|
"@aws-sdk/client-sts": "^3.995.0",
|
|
46
|
-
"@graphql-mesh/fusion-runtime": "
|
|
46
|
+
"@graphql-mesh/fusion-runtime": "1.12.4-alpha-b8b1b6724923f4cb4e7f9c26abd7591393e1ceca",
|
|
47
47
|
"@whatwg-node/promise-helpers": "^1.3.2",
|
|
48
48
|
"aws4": "1.13.2",
|
|
49
49
|
"tslib": "^2.8.1"
|
|
50
50
|
},
|
|
51
51
|
"devDependencies": {
|
|
52
52
|
"@apollo/subgraph": "^2.13.3",
|
|
53
|
-
"@graphql-hive/gateway-runtime": "2.
|
|
53
|
+
"@graphql-hive/gateway-runtime": "2.13.0-alpha-b8b1b6724923f4cb4e7f9c26abd7591393e1ceca",
|
|
54
54
|
"@types/aws4": "^1.11.6",
|
|
55
55
|
"graphql": "^16.12.0",
|
|
56
|
-
"graphql-yoga": "
|
|
56
|
+
"graphql-yoga": "6.0.0-alpha-20261019165905-4e993e96c2903cbe3084f9b49dfbf05042e3fe57",
|
|
57
57
|
"pkgroll": "2.27.1"
|
|
58
58
|
},
|
|
59
59
|
"sideEffects": false
|