@apollo/utils.usagereporting
Advanced tools
Comparing version 2.0.1 to 3.0.0
@@ -8,5 +8,5 @@ "use strict"; | ||
const documentSeparatedByOperation = (0, graphql_1.separateOperations)(document); | ||
const filteredDocument = documentSeparatedByOperation[resolvedOperationName !== null && resolvedOperationName !== void 0 ? resolvedOperationName : ""]; | ||
const filteredDocument = documentSeparatedByOperation[resolvedOperationName ?? ""]; | ||
if (!filteredDocument) { | ||
throw Error(`shouldn't happen: operation '${resolvedOperationName !== null && resolvedOperationName !== void 0 ? resolvedOperationName : ""}' not found`); | ||
throw Error(`shouldn't happen: operation '${resolvedOperationName ?? ""}' not found`); | ||
} | ||
@@ -13,0 +13,0 @@ const typeInfo = new graphql_1.TypeInfo(schema); |
{ | ||
"name": "@apollo/utils.usagereporting", | ||
"version": "2.0.1", | ||
"version": "3.0.0", | ||
"description": "Generate a signature for Apollo usage reporting", | ||
@@ -21,11 +21,11 @@ "main": "dist/index.js", | ||
"engines": { | ||
"node": ">=14" | ||
"node": ">=16" | ||
}, | ||
"dependencies": { | ||
"@apollo/usage-reporting-protobuf": "^4.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" | ||
"@apollo/utils.dropunuseddefinitions": "^3.0.0", | ||
"@apollo/utils.stripsensitiveliterals": "^3.0.0", | ||
"@apollo/utils.printwithreducedwhitespace": "^3.0.0", | ||
"@apollo/utils.removealiases": "3.0.0", | ||
"@apollo/utils.sortast": "^3.0.0" | ||
}, | ||
@@ -32,0 +32,0 @@ "peerDependencies": { |
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
26522
+ Added@apollo/utils.dropunuseddefinitions@3.0.0(transitive)
+ Added@apollo/utils.printwithreducedwhitespace@3.0.0(transitive)
+ Added@apollo/utils.removealiases@3.0.0(transitive)
+ Added@apollo/utils.sortast@3.0.0(transitive)
+ Added@apollo/utils.stripsensitiveliterals@3.0.0(transitive)
- Removed@apollo/utils.dropunuseddefinitions@2.0.1(transitive)
- Removed@apollo/utils.printwithreducedwhitespace@2.0.1(transitive)
- Removed@apollo/utils.removealiases@2.0.1(transitive)
- Removed@apollo/utils.sortast@2.0.1(transitive)
- Removed@apollo/utils.stripsensitiveliterals@2.0.1(transitive)
Updated@apollo/utils.sortast@^3.0.0