@apollo/utils.usagereporting
Advanced tools
Comparing version 2.0.0 to 2.0.1
@@ -1,2 +0,2 @@ | ||
import { DocumentNode, GraphQLSchema } from "graphql"; | ||
import { type DocumentNode, type GraphQLSchema } from "graphql"; | ||
import { ReferencedFieldsForType } from "@apollo/usage-reporting-protobuf"; | ||
@@ -7,3 +7,3 @@ export interface OperationDerivedData { | ||
} | ||
export declare type ReferencedFieldsByType = Record<string, ReferencedFieldsForType>; | ||
export type ReferencedFieldsByType = Record<string, ReferencedFieldsForType>; | ||
export declare function calculateReferencedFieldsByType({ document, schema, resolvedOperationName, }: { | ||
@@ -10,0 +10,0 @@ document: DocumentNode; |
{ | ||
"name": "@apollo/utils.usagereporting", | ||
"version": "2.0.0", | ||
"version": "2.0.1", | ||
"description": "Generate a signature for Apollo usage reporting", | ||
@@ -25,7 +25,7 @@ "main": "dist/index.js", | ||
"@apollo/usage-reporting-protobuf": "^4.0.0", | ||
"@apollo/utils.dropunuseddefinitions": "^2.0.0", | ||
"@apollo/utils.stripsensitiveliterals": "^2.0.0", | ||
"@apollo/utils.printwithreducedwhitespace": "^2.0.0", | ||
"@apollo/utils.removealiases": "2.0.0", | ||
"@apollo/utils.sortast": "^2.0.0" | ||
"@apollo/utils.dropunuseddefinitions": "^2.0.1", | ||
"@apollo/utils.stripsensitiveliterals": "^2.0.1", | ||
"@apollo/utils.printwithreducedwhitespace": "^2.0.1", | ||
"@apollo/utils.removealiases": "2.0.1", | ||
"@apollo/utils.sortast": "^2.0.1" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
@@ -1,2 +0,2 @@ | ||
import { buildASTSchema, DocumentNode, validate } from "graphql"; | ||
import { buildASTSchema, type DocumentNode, validate } from "graphql"; | ||
import gql from "graphql-tag"; | ||
@@ -52,5 +52,5 @@ import { calculateReferencedFieldsByType } from ".."; | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"Query": { | ||
"fieldNames": [ | ||
"f1", | ||
@@ -74,5 +74,5 @@ ], | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"Query": { | ||
"fieldNames": [ | ||
"f1", | ||
@@ -112,5 +112,5 @@ ], | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"A": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"A": { | ||
"fieldNames": [ | ||
"x", | ||
@@ -120,4 +120,4 @@ ], | ||
}, | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
"Query": { | ||
"fieldNames": [ | ||
"f1", | ||
@@ -144,5 +144,5 @@ "a", | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"MyInterface": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"MyInterface": { | ||
"fieldNames": [ | ||
"x", | ||
@@ -152,4 +152,4 @@ ], | ||
}, | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
"Query": { | ||
"fieldNames": [ | ||
"myInterface", | ||
@@ -178,5 +178,5 @@ ], | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"A": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"A": { | ||
"fieldNames": [ | ||
"y", | ||
@@ -186,4 +186,4 @@ ], | ||
}, | ||
"MyInterface": Object { | ||
"fieldNames": Array [ | ||
"MyInterface": { | ||
"fieldNames": [ | ||
"x", | ||
@@ -193,4 +193,4 @@ ], | ||
}, | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
"Query": { | ||
"fieldNames": [ | ||
"myInterface", | ||
@@ -223,5 +223,5 @@ ], | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"A": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"A": { | ||
"fieldNames": [ | ||
"x", | ||
@@ -231,4 +231,4 @@ ], | ||
}, | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
"Query": { | ||
"fieldNames": [ | ||
"myInterface", | ||
@@ -257,5 +257,5 @@ ], | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"A": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"A": { | ||
"fieldNames": [ | ||
"x", | ||
@@ -265,4 +265,4 @@ ], | ||
}, | ||
"MyInterface": Object { | ||
"fieldNames": Array [ | ||
"MyInterface": { | ||
"fieldNames": [ | ||
"x", | ||
@@ -272,4 +272,4 @@ ], | ||
}, | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
"Query": { | ||
"fieldNames": [ | ||
"myInterface", | ||
@@ -298,5 +298,5 @@ ], | ||
).toMatchInlineSnapshot(` | ||
Object { | ||
"A": Object { | ||
"fieldNames": Array [ | ||
{ | ||
"A": { | ||
"fieldNames": [ | ||
"y", | ||
@@ -306,4 +306,4 @@ ], | ||
}, | ||
"Query": Object { | ||
"fieldNames": Array [ | ||
"Query": { | ||
"fieldNames": [ | ||
"a", | ||
@@ -310,0 +310,0 @@ ], |
import { | ||
DocumentNode, | ||
GraphQLSchema, | ||
type DocumentNode, | ||
type GraphQLSchema, | ||
isInterfaceType, | ||
@@ -5,0 +5,0 @@ separateOperations, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
26710
+ Added@apollo/utils.removealiases@2.0.1(transitive)
- Removed@apollo/utils.removealiases@2.0.0(transitive)
Updated@apollo/utils.sortast@^2.0.1