New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@envelop/core

Package Overview
Dependencies
Maintainers
1
Versions
1491
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@envelop/core - npm Package Compare versions

Comparing version

to
2.3.1

8

index.js

@@ -1232,5 +1232,11 @@ 'use strict';

const rootQueryType = ctx.getSchema().getQueryType();
const rootMutationType = ctx.getSchema().getMutationType();
const rootSubscriptionType = ctx.getSchema().getSubscriptionType();
return {
Field(field) {
if (ctx.getParentType() === rootQueryType && !field.name.value.startsWith('__')) {
const parentType = ctx.getParentType();
const isQuery = parentType === rootQueryType;
const isMutation = parentType === rootMutationType;
const isSubscription = parentType === rootSubscriptionType;
if ((isQuery && !field.name.value.startsWith('__')) || isMutation || isSubscription) {
onNonIntrospectionField();

@@ -1237,0 +1243,0 @@ return graphql.BREAK;

2

package.json
{
"name": "@envelop/core",
"version": "2.3.0",
"version": "2.3.1",
"sideEffects": false,

@@ -5,0 +5,0 @@ "peerDependencies": {

Sorry, the diff of this file is not supported yet