@graphql-yoga/plugin-apollo-usage-report 0.2.0 → 0.2.1-alpha-20241107144554-ebc06c95
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 +2 -2
- package/esm/index.js +2 -2
- package/package.json +3 -3
package/cjs/index.js
CHANGED
|
@@ -18,7 +18,7 @@ function useApolloUsageReport(options = {}) {
|
|
|
18
18
|
level,
|
|
19
19
|
(...messages) => yoga.logger[level]('[ApolloUsageReport]', ...messages),
|
|
20
20
|
]));
|
|
21
|
-
let clientNameFactory = req => req.headers.get('apollographql-client-name')
|
|
21
|
+
let clientNameFactory = req => req.headers.get('apollographql-client-name');
|
|
22
22
|
if (typeof options.clientName === 'string') {
|
|
23
23
|
const clientName = options.clientName;
|
|
24
24
|
clientNameFactory = () => clientName;
|
|
@@ -26,7 +26,7 @@ function useApolloUsageReport(options = {}) {
|
|
|
26
26
|
else if (typeof options.clientName === 'function') {
|
|
27
27
|
clientNameFactory = options.clientName;
|
|
28
28
|
}
|
|
29
|
-
let clientVersionFactory = req => req.headers.get('apollographql-client-version')
|
|
29
|
+
let clientVersionFactory = req => req.headers.get('apollographql-client-version');
|
|
30
30
|
if (typeof options.clientVersion === 'string') {
|
|
31
31
|
const clientVersion = options.clientVersion;
|
|
32
32
|
clientVersionFactory = () => clientVersion;
|
package/esm/index.js
CHANGED
|
@@ -14,7 +14,7 @@ export function useApolloUsageReport(options = {}) {
|
|
|
14
14
|
level,
|
|
15
15
|
(...messages) => yoga.logger[level]('[ApolloUsageReport]', ...messages),
|
|
16
16
|
]));
|
|
17
|
-
let clientNameFactory = req => req.headers.get('apollographql-client-name')
|
|
17
|
+
let clientNameFactory = req => req.headers.get('apollographql-client-name');
|
|
18
18
|
if (typeof options.clientName === 'string') {
|
|
19
19
|
const clientName = options.clientName;
|
|
20
20
|
clientNameFactory = () => clientName;
|
|
@@ -22,7 +22,7 @@ export function useApolloUsageReport(options = {}) {
|
|
|
22
22
|
else if (typeof options.clientName === 'function') {
|
|
23
23
|
clientNameFactory = options.clientName;
|
|
24
24
|
}
|
|
25
|
-
let clientVersionFactory = req => req.headers.get('apollographql-client-version')
|
|
25
|
+
let clientVersionFactory = req => req.headers.get('apollographql-client-version');
|
|
26
26
|
if (typeof options.clientVersion === 'string') {
|
|
27
27
|
const clientVersion = options.clientVersion;
|
|
28
28
|
clientVersionFactory = () => clientVersion;
|
package/package.json
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-apollo-usage-report",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.1-alpha-20241107144554-ebc06c95",
|
|
4
4
|
"description": "Apollo's GraphOS usage report plugin for GraphQL Yoga.",
|
|
5
5
|
"peerDependencies": {
|
|
6
6
|
"@graphql-tools/utils": "^10.0.0",
|
|
7
7
|
"@whatwg-node/fetch": "^0.9.22",
|
|
8
8
|
"graphql": "^15.2.0 || ^16.0.0",
|
|
9
|
-
"graphql-yoga": "^5.8.
|
|
9
|
+
"graphql-yoga": "^5.8.1-alpha-20241107144554-ebc06c95"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@apollo/usage-reporting-protobuf": "^4.1.1",
|
|
13
13
|
"tslib": "^2.5.2",
|
|
14
|
-
"@graphql-yoga/plugin-apollo-inline-trace": "^3.8.
|
|
14
|
+
"@graphql-yoga/plugin-apollo-inline-trace": "^3.8.1-alpha-20241107144554-ebc06c95"
|
|
15
15
|
},
|
|
16
16
|
"repository": {
|
|
17
17
|
"type": "git",
|