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

@ts-gql/eslint-plugin

Package Overview
Dependencies
Maintainers
2
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@ts-gql/eslint-plugin - npm Package Compare versions

Comparing version 0.8.2 to 0.8.3

14

dist/eslint-plugin.cjs.dev.js

@@ -141,2 +141,4 @@ 'use strict';

type = graphql.getNamedType(type);
if (type instanceof graphql.GraphQLUnionType) {

@@ -146,14 +148,2 @@ return;

if (type instanceof graphql.GraphQLNonNull) {
type = type.ofType;
}
if (type instanceof graphql.GraphQLList) {
type = type.ofType;
if (type instanceof graphql.GraphQLNonNull) {
type = type.ofType;
}
}
if (!(type instanceof graphql.GraphQLInterfaceType || type instanceof graphql.GraphQLObjectType)) {

@@ -160,0 +150,0 @@ throw new Error(`Unexpected SelectionSet on type of ${type.constructor.name}. This is an internal error. If you see this, this is most likely a bug in ts-gql`);

@@ -141,2 +141,4 @@ 'use strict';

type = graphql.getNamedType(type);
if (type instanceof graphql.GraphQLUnionType) {

@@ -146,14 +148,2 @@ return;

if (type instanceof graphql.GraphQLNonNull) {
type = type.ofType;
}
if (type instanceof graphql.GraphQLList) {
type = type.ofType;
if (type instanceof graphql.GraphQLNonNull) {
type = type.ofType;
}
}
if (!(type instanceof graphql.GraphQLInterfaceType || type instanceof graphql.GraphQLObjectType)) {

@@ -160,0 +150,0 @@ throw new Error(`Unexpected SelectionSet on type of ${type.constructor.name}. This is an internal error. If you see this, this is most likely a bug in ts-gql`);

import { ESLintUtils } from '@typescript-eslint/experimental-utils';
import path from 'path';
import slash from 'slash';
import { specifiedRules, NoUnusedFragmentsRule, NoUnusedVariablesRule, KnownFragmentNamesRule, NoUndefinedVariablesRule, parse, validate, GraphQLError, visit, TypeInfo, visitWithTypeInfo, GraphQLUnionType, GraphQLNonNull, GraphQLList, GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
import { specifiedRules, NoUnusedFragmentsRule, NoUnusedVariablesRule, KnownFragmentNamesRule, NoUndefinedVariablesRule, parse, validate, GraphQLError, visit, TypeInfo, visitWithTypeInfo, getNamedType, GraphQLUnionType, GraphQLInterfaceType, GraphQLObjectType } from 'graphql';
import { getConfigSync } from '@ts-gql/config';

@@ -132,2 +132,4 @@

type = getNamedType(type);
if (type instanceof GraphQLUnionType) {

@@ -137,14 +139,2 @@ return;

if (type instanceof GraphQLNonNull) {
type = type.ofType;
}
if (type instanceof GraphQLList) {
type = type.ofType;
if (type instanceof GraphQLNonNull) {
type = type.ofType;
}
}
if (!(type instanceof GraphQLInterfaceType || type instanceof GraphQLObjectType)) {

@@ -151,0 +141,0 @@ throw new Error(`Unexpected SelectionSet on type of ${type.constructor.name}. This is an internal error. If you see this, this is most likely a bug in ts-gql`);

2

package.json
{
"name": "@ts-gql/eslint-plugin",
"version": "0.8.2",
"version": "0.8.3",
"main": "dist/eslint-plugin.cjs.js",

@@ -5,0 +5,0 @@ "module": "dist/eslint-plugin.esm.js",

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