@graphql-mesh/transform-hive 0.94.2 → 0.94.3-alpha-20230707084354-da97d469a
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/cjs/index.js +11 -10
- package/esm/index.js +11 -10
- package/package.json +4 -4
- package/typings/index.d.cts +2 -1
- package/typings/index.d.ts +2 -1
package/cjs/index.js
CHANGED
|
@@ -72,18 +72,19 @@ class HiveTransform {
|
|
|
72
72
|
return schema;
|
|
73
73
|
}
|
|
74
74
|
transformRequest(request, delegationContext, transformationContext) {
|
|
75
|
-
transformationContext.collectUsageCallback = this.hiveClient.collectUsage(
|
|
76
|
-
|
|
77
|
-
document: request.document,
|
|
78
|
-
rootValue: request.rootValue,
|
|
79
|
-
contextValue: request.context,
|
|
80
|
-
variableValues: request.variables,
|
|
81
|
-
operationName: request.operationName,
|
|
82
|
-
});
|
|
75
|
+
transformationContext.collectUsageCallback = this.hiveClient.collectUsage();
|
|
76
|
+
transformationContext.request = request;
|
|
83
77
|
return request;
|
|
84
78
|
}
|
|
85
|
-
transformResult(result,
|
|
86
|
-
transformationContext.collectUsageCallback(
|
|
79
|
+
transformResult(result, delegationContext, transformationContext) {
|
|
80
|
+
transformationContext.collectUsageCallback({
|
|
81
|
+
schema: delegationContext.transformedSchema,
|
|
82
|
+
document: transformationContext.request.document,
|
|
83
|
+
rootValue: transformationContext.request.rootValue,
|
|
84
|
+
contextValue: transformationContext.request.context,
|
|
85
|
+
variableValues: transformationContext.request.variables,
|
|
86
|
+
operationName: transformationContext.request.operationName,
|
|
87
|
+
}, result);
|
|
87
88
|
return result;
|
|
88
89
|
}
|
|
89
90
|
}
|
package/esm/index.js
CHANGED
|
@@ -70,18 +70,19 @@ export default class HiveTransform {
|
|
|
70
70
|
return schema;
|
|
71
71
|
}
|
|
72
72
|
transformRequest(request, delegationContext, transformationContext) {
|
|
73
|
-
transformationContext.collectUsageCallback = this.hiveClient.collectUsage(
|
|
74
|
-
|
|
75
|
-
document: request.document,
|
|
76
|
-
rootValue: request.rootValue,
|
|
77
|
-
contextValue: request.context,
|
|
78
|
-
variableValues: request.variables,
|
|
79
|
-
operationName: request.operationName,
|
|
80
|
-
});
|
|
73
|
+
transformationContext.collectUsageCallback = this.hiveClient.collectUsage();
|
|
74
|
+
transformationContext.request = request;
|
|
81
75
|
return request;
|
|
82
76
|
}
|
|
83
|
-
transformResult(result,
|
|
84
|
-
transformationContext.collectUsageCallback(
|
|
77
|
+
transformResult(result, delegationContext, transformationContext) {
|
|
78
|
+
transformationContext.collectUsageCallback({
|
|
79
|
+
schema: delegationContext.transformedSchema,
|
|
80
|
+
document: transformationContext.request.document,
|
|
81
|
+
rootValue: transformationContext.request.rootValue,
|
|
82
|
+
contextValue: transformationContext.request.context,
|
|
83
|
+
variableValues: transformationContext.request.variables,
|
|
84
|
+
operationName: transformationContext.request.operationName,
|
|
85
|
+
}, result);
|
|
85
86
|
return result;
|
|
86
87
|
}
|
|
87
88
|
}
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-mesh/transform-hive",
|
|
3
|
-
"version": "0.94.
|
|
3
|
+
"version": "0.94.3-alpha-20230707084354-da97d469a",
|
|
4
4
|
"sideEffects": false,
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@graphql-mesh/cross-helpers": "^0.4.0",
|
|
7
|
-
"@graphql-mesh/types": "
|
|
7
|
+
"@graphql-mesh/types": "0.94.3-alpha-20230707084354-da97d469a",
|
|
8
8
|
"@graphql-tools/utils": "^9.2.1 || ^10.0.0",
|
|
9
9
|
"graphql": "*",
|
|
10
10
|
"tslib": "^2.4.0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
"@graphql-hive/client": "^0.
|
|
14
|
-
"@graphql-mesh/string-interpolation": "
|
|
13
|
+
"@graphql-hive/client": "^0.24.0",
|
|
14
|
+
"@graphql-mesh/string-interpolation": "0.5.1-alpha-20230707084354-da97d469a",
|
|
15
15
|
"@graphql-tools/delegate": "^10.0.0"
|
|
16
16
|
},
|
|
17
17
|
"repository": {
|
package/typings/index.d.cts
CHANGED
|
@@ -5,12 +5,13 @@ import { DelegationContext } from '@graphql-tools/delegate';
|
|
|
5
5
|
import { ExecutionRequest } from '@graphql-tools/utils';
|
|
6
6
|
interface TransformationContext {
|
|
7
7
|
collectUsageCallback: ReturnType<HiveClient['collectUsage']>;
|
|
8
|
+
request: ExecutionRequest;
|
|
8
9
|
}
|
|
9
10
|
export default class HiveTransform implements MeshTransform {
|
|
10
11
|
private hiveClient;
|
|
11
12
|
constructor({ config, pubsub, logger }: MeshTransformOptions<YamlConfig.HivePlugin>);
|
|
12
13
|
transformSchema(schema: GraphQLSchema): GraphQLSchema;
|
|
13
14
|
transformRequest(request: ExecutionRequest, delegationContext: DelegationContext, transformationContext: TransformationContext): ExecutionRequest<any, any, any, Record<string, any>, any>;
|
|
14
|
-
transformResult(result: ExecutionResult,
|
|
15
|
+
transformResult(result: ExecutionResult, delegationContext: DelegationContext, transformationContext: TransformationContext): ExecutionResult<import("graphql/jsutils/ObjMap").ObjMap<unknown>, import("graphql/jsutils/ObjMap").ObjMap<unknown>>;
|
|
15
16
|
}
|
|
16
17
|
export {};
|
package/typings/index.d.ts
CHANGED
|
@@ -5,12 +5,13 @@ import { DelegationContext } from '@graphql-tools/delegate';
|
|
|
5
5
|
import { ExecutionRequest } from '@graphql-tools/utils';
|
|
6
6
|
interface TransformationContext {
|
|
7
7
|
collectUsageCallback: ReturnType<HiveClient['collectUsage']>;
|
|
8
|
+
request: ExecutionRequest;
|
|
8
9
|
}
|
|
9
10
|
export default class HiveTransform implements MeshTransform {
|
|
10
11
|
private hiveClient;
|
|
11
12
|
constructor({ config, pubsub, logger }: MeshTransformOptions<YamlConfig.HivePlugin>);
|
|
12
13
|
transformSchema(schema: GraphQLSchema): GraphQLSchema;
|
|
13
14
|
transformRequest(request: ExecutionRequest, delegationContext: DelegationContext, transformationContext: TransformationContext): ExecutionRequest<any, any, any, Record<string, any>, any>;
|
|
14
|
-
transformResult(result: ExecutionResult,
|
|
15
|
+
transformResult(result: ExecutionResult, delegationContext: DelegationContext, transformationContext: TransformationContext): ExecutionResult<import("graphql/jsutils/ObjMap").ObjMap<unknown>, import("graphql/jsutils/ObjMap").ObjMap<unknown>>;
|
|
15
16
|
}
|
|
16
17
|
export {};
|