Socket
Socket
Sign inDemoInstall

@graphql-codegen/typed-document-node

Package Overview
Dependencies
Maintainers
5
Versions
2056
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@graphql-codegen/typed-document-node - npm Package Compare versions

Comparing version 1.17.1 to 1.17.2-alpha-21418116.0

4

index.cjs.js

@@ -23,4 +23,4 @@ 'use strict';

const validate = async (schema, documents, config, outputFile) => {
if (path.extname(outputFile) !== '.ts') {
throw new Error(`Plugin "typed-document-node" requires extension to be ".ts"!`);
if (path.extname(outputFile) !== '.ts' && path.extname(outputFile) !== '.tsx') {
throw new Error(`Plugin "typed-document-node" requires extension to be ".ts" or ".tsx"!`);
}

@@ -27,0 +27,0 @@ };

@@ -19,4 +19,4 @@ import { parse } from 'graphql';

const validate = async (schema, documents, config, outputFile) => {
if (extname(outputFile) !== '.ts') {
throw new Error(`Plugin "typed-document-node" requires extension to be ".ts"!`);
if (extname(outputFile) !== '.ts' && extname(outputFile) !== '.tsx') {
throw new Error(`Plugin "typed-document-node" requires extension to be ".ts" or ".tsx"!`);
}

@@ -23,0 +23,0 @@ };

{
"name": "@graphql-codegen/typed-document-node",
"version": "1.17.1",
"version": "1.17.2-alpha-21418116.0",
"description": "GraphQL Code Generator plugin for generating ready-to-use TypedDocumentNode based on GraphQL operations",

@@ -10,3 +10,3 @@ "peerDependencies": {

"change-case": "4.1.1",
"@graphql-codegen/plugin-helpers": "1.17.1",
"@graphql-codegen/plugin-helpers": "1.17.2-alpha-21418116.0",
"tslib": "~2.0.0"

@@ -13,0 +13,0 @@ },

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