Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@apollo/utils.usagereporting

Package Overview
Dependencies
Maintainers
4
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@apollo/utils.usagereporting - npm Package Compare versions

Comparing version 2.0.0 to 2.0.1

4

dist/calculateReferencedFieldsByType.d.ts

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc