@graphql-yoga/plugin-apollo-usage-report 0.13.1-alpha-20260116145543-f197583d9cd21e690cc9cff89254fcc8e1baa649 → 0.13.1-alpha-20260127131538-66c36e2fed5dae50d2fa29797772599af69094ae
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/dist/index.cjs +1 -1
- package/dist/index.mjs +1 -1
- package/dist/stats.cjs +2 -2
- package/dist/stats.mjs +2 -2
- package/package.json +4 -4
package/dist/index.cjs
CHANGED
|
@@ -143,7 +143,7 @@ async function hashSHA256(text, api = globalThis) {
|
|
|
143
143
|
return hash;
|
|
144
144
|
}
|
|
145
145
|
function isDocumentNode(data) {
|
|
146
|
-
const isObject = (data
|
|
146
|
+
const isObject = (data) => !!data && typeof data === "object";
|
|
147
147
|
return isObject(data) && data["kind"] === graphql.Kind.DOCUMENT;
|
|
148
148
|
}
|
|
149
149
|
|
package/dist/index.mjs
CHANGED
|
@@ -143,7 +143,7 @@ async function hashSHA256(text, api = globalThis) {
|
|
|
143
143
|
return hash;
|
|
144
144
|
}
|
|
145
145
|
function isDocumentNode(data) {
|
|
146
|
-
const isObject = (data
|
|
146
|
+
const isObject = (data) => !!data && typeof data === "object";
|
|
147
147
|
return isObject(data) && data["kind"] === Kind.DOCUMENT;
|
|
148
148
|
}
|
|
149
149
|
|
package/dist/stats.cjs
CHANGED
|
@@ -295,8 +295,8 @@ function iterateOverQueryPlan(node, rootPath, f) {
|
|
|
295
295
|
if (!node) return false;
|
|
296
296
|
if (node.fetch?.trace?.root && node.fetch.serviceName) return iterateOverTraceNode(node.fetch.trace.root, rootPath.child(`service:${node.fetch.serviceName}`), f);
|
|
297
297
|
if (node.flatten?.node) return iterateOverQueryPlan(node.flatten.node, rootPath, f);
|
|
298
|
-
if (node.parallel?.nodes) return node.parallel.nodes.some((node
|
|
299
|
-
if (node.sequence?.nodes) return node.sequence.nodes.some((node
|
|
298
|
+
if (node.parallel?.nodes) return node.parallel.nodes.some((node) => iterateOverQueryPlan(node, rootPath, f));
|
|
299
|
+
if (node.sequence?.nodes) return node.sequence.nodes.some((node) => iterateOverQueryPlan(node, rootPath, f));
|
|
300
300
|
return false;
|
|
301
301
|
}
|
|
302
302
|
function iterateOverTraceNode(node, path, f) {
|
package/dist/stats.mjs
CHANGED
|
@@ -295,8 +295,8 @@ function iterateOverQueryPlan(node, rootPath, f) {
|
|
|
295
295
|
if (!node) return false;
|
|
296
296
|
if (node.fetch?.trace?.root && node.fetch.serviceName) return iterateOverTraceNode(node.fetch.trace.root, rootPath.child(`service:${node.fetch.serviceName}`), f);
|
|
297
297
|
if (node.flatten?.node) return iterateOverQueryPlan(node.flatten.node, rootPath, f);
|
|
298
|
-
if (node.parallel?.nodes) return node.parallel.nodes.some((node
|
|
299
|
-
if (node.sequence?.nodes) return node.sequence.nodes.some((node
|
|
298
|
+
if (node.parallel?.nodes) return node.parallel.nodes.some((node) => iterateOverQueryPlan(node, rootPath, f));
|
|
299
|
+
if (node.sequence?.nodes) return node.sequence.nodes.some((node) => iterateOverQueryPlan(node, rootPath, f));
|
|
300
300
|
return false;
|
|
301
301
|
}
|
|
302
302
|
function iterateOverTraceNode(node, path, f) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@graphql-yoga/plugin-apollo-usage-report",
|
|
3
|
-
"version": "0.13.1-alpha-
|
|
3
|
+
"version": "0.13.1-alpha-20260127131538-66c36e2fed5dae50d2fa29797772599af69094ae",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"description": "Apollo's GraphOS usage report plugin for GraphQL Yoga.",
|
|
6
6
|
"repository": {
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"watch": "tsdown --watch"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
|
-
"@envelop/core": "workspace
|
|
45
|
+
"@envelop/core": "workspace:*",
|
|
46
46
|
"graphql": "^15.2.0 || ^16.0.0",
|
|
47
47
|
"graphql-yoga": "workspace:^"
|
|
48
48
|
},
|
|
@@ -57,8 +57,8 @@
|
|
|
57
57
|
"tslib": "^2.8.1"
|
|
58
58
|
},
|
|
59
59
|
"devDependencies": {
|
|
60
|
-
"@envelop/core": "workspace
|
|
61
|
-
"@envelop/on-resolve": "workspace
|
|
60
|
+
"@envelop/core": "workspace:*",
|
|
61
|
+
"@envelop/on-resolve": "workspace:*",
|
|
62
62
|
"@whatwg-node/fetch": "^0.10.6",
|
|
63
63
|
"graphql": "16.12.0",
|
|
64
64
|
"graphql-yoga": "workspace:*",
|