@graphql-yoga/plugin-apollo-usage-report 0.16.0 → 0.16.1
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/esm/index.js +1 -1
- package/package.json +3 -3
- package/typings/index.d.cts +1 -1
- package/typings/index.d.ts +1 -1
- package/typings/reporter.d.cts +1 -1
- package/typings/reporter.d.ts +1 -1
- package/typings/stats.d.cts +1 -1
- package/typings/stats.d.ts +1 -1
package/esm/index.js
CHANGED
|
@@ -2,7 +2,7 @@ import { getOperationAST, Kind } from 'graphql';
|
|
|
2
2
|
import { isAsyncIterable, } from 'graphql-yoga';
|
|
3
3
|
import { calculateReferencedFieldsByType, usageReportingSignature, } from '@apollo/utils.usagereporting';
|
|
4
4
|
import { printSchemaWithDirectives } from '@graphql-tools/utils';
|
|
5
|
-
import { useApolloInstrumentation
|
|
5
|
+
import { useApolloInstrumentation } from '@graphql-yoga/plugin-apollo-inline-trace';
|
|
6
6
|
import { getEnvVar, Reporter } from './reporter.js';
|
|
7
7
|
export function useApolloUsageReport(options = {}) {
|
|
8
8
|
const [instrumentation, ctxForReq] = useApolloInstrumentation(options);
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-apollo-usage-report",
|
|
3
|
-
"version": "0.16.
|
|
3
|
+
"version": "0.16.1",
|
|
4
4
|
"description": "Apollo's GraphOS usage report plugin for GraphQL Yoga.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"graphql": "^15.2.0 || ^16.0.0",
|
|
7
|
-
"graphql-yoga": "^5.21.
|
|
7
|
+
"graphql-yoga": "^5.21.1"
|
|
8
8
|
},
|
|
9
9
|
"dependencies": {
|
|
10
10
|
"@apollo/server-gateway-interface": "^2.0.0",
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
"@graphql-tools/utils": "^10.11.0",
|
|
14
14
|
"@whatwg-node/promise-helpers": "^1.3.2",
|
|
15
15
|
"tslib": "^2.8.1",
|
|
16
|
-
"@graphql-yoga/plugin-apollo-inline-trace": "^3.21.
|
|
16
|
+
"@graphql-yoga/plugin-apollo-inline-trace": "^3.21.1"
|
|
17
17
|
},
|
|
18
18
|
"repository": {
|
|
19
19
|
"type": "git",
|
package/typings/index.d.cts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YogaLogger, YogaServer, type Maybe, type Plugin, type YogaInitialContext } from 'graphql-yoga';
|
|
2
2
|
import { calculateReferencedFieldsByType } from '@apollo/utils.usagereporting';
|
|
3
|
-
import { ApolloInlineGraphqlTraceContext, ApolloInlineRequestTraceContext, ApolloInlineTracePluginOptions } from '@graphql-yoga/plugin-apollo-inline-trace';
|
|
3
|
+
import type { ApolloInlineGraphqlTraceContext, ApolloInlineRequestTraceContext, ApolloInlineTracePluginOptions } from '@graphql-yoga/plugin-apollo-inline-trace';
|
|
4
4
|
import { Reporter } from './reporter.cjs';
|
|
5
5
|
export type ApolloUsageReportOptions = ApolloInlineTracePluginOptions & {
|
|
6
6
|
/**
|
package/typings/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { YogaLogger, YogaServer, type Maybe, type Plugin, type YogaInitialContext } from 'graphql-yoga';
|
|
2
2
|
import { calculateReferencedFieldsByType } from '@apollo/utils.usagereporting';
|
|
3
|
-
import { ApolloInlineGraphqlTraceContext, ApolloInlineRequestTraceContext, ApolloInlineTracePluginOptions } from '@graphql-yoga/plugin-apollo-inline-trace';
|
|
3
|
+
import type { ApolloInlineGraphqlTraceContext, ApolloInlineRequestTraceContext, ApolloInlineTracePluginOptions } from '@graphql-yoga/plugin-apollo-inline-trace';
|
|
4
4
|
import { Reporter } from './reporter.js';
|
|
5
5
|
export type ApolloUsageReportOptions = ApolloInlineTracePluginOptions & {
|
|
6
6
|
/**
|
package/typings/reporter.d.cts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { YogaLogger, YogaServer } from 'graphql-yoga';
|
|
1
|
+
import type { YogaLogger, YogaServer } from 'graphql-yoga';
|
|
2
2
|
import { google } from '@apollo/usage-reporting-protobuf';
|
|
3
3
|
import type { ApolloUsageReportOptions } from './index';
|
|
4
4
|
import { OurReport } from './stats.cjs';
|
package/typings/reporter.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { YogaLogger, YogaServer } from 'graphql-yoga';
|
|
1
|
+
import type { YogaLogger, YogaServer } from 'graphql-yoga';
|
|
2
2
|
import { google } from '@apollo/usage-reporting-protobuf';
|
|
3
3
|
import type { ApolloUsageReportOptions } from './index';
|
|
4
4
|
import { OurReport } from './stats.js';
|
package/typings/stats.d.cts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class OurReport implements Required<IReport> {
|
|
|
13
13
|
operationCount: number;
|
|
14
14
|
readonly sizeEstimator: SizeEstimator;
|
|
15
15
|
ensureCountsAreIntegers(): void;
|
|
16
|
-
addTrace({ statsReportKey, trace, asTrace, referencedFieldsByType, maxTraceBytes, nonFtv1ErrorPaths
|
|
16
|
+
addTrace({ statsReportKey, trace, asTrace, referencedFieldsByType, maxTraceBytes, nonFtv1ErrorPaths }: {
|
|
17
17
|
statsReportKey: string;
|
|
18
18
|
trace: Trace;
|
|
19
19
|
asTrace: boolean;
|
package/typings/stats.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ export declare class OurReport implements Required<IReport> {
|
|
|
13
13
|
operationCount: number;
|
|
14
14
|
readonly sizeEstimator: SizeEstimator;
|
|
15
15
|
ensureCountsAreIntegers(): void;
|
|
16
|
-
addTrace({ statsReportKey, trace, asTrace, referencedFieldsByType, maxTraceBytes, nonFtv1ErrorPaths
|
|
16
|
+
addTrace({ statsReportKey, trace, asTrace, referencedFieldsByType, maxTraceBytes, nonFtv1ErrorPaths }: {
|
|
17
17
|
statsReportKey: string;
|
|
18
18
|
trace: Trace;
|
|
19
19
|
asTrace: boolean;
|