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

graphql-auto-query

Package Overview
Dependencies
Maintainers
0
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

graphql-auto-query - npm Package Compare versions

Comparing version 0.0.8 to 1.0.0

2

dist/cjs/index.js

@@ -120,2 +120,4 @@ "use strict";

const fragment = this.fragments[type.name];
if (field.args.length === 0 && !fragment)
return "";
if (fragment)

@@ -122,0 +124,0 @@ this.isFragmentUsed.add(fragment);

@@ -117,2 +117,4 @@ /* eslint-disable @typescript-eslint/no-explicit-any */

const fragment = this.fragments[type.name];
if (field.args.length === 0 && !fragment)
return "";
if (fragment)

@@ -119,0 +121,0 @@ this.isFragmentUsed.add(fragment);

20

package.json
{
"name": "graphql-auto-query",
"version": "0.0.8",
"version": "1.0.0",
"author": "SoraKumo <info@croud.jp>",

@@ -10,4 +10,4 @@ "description": "Automatic generation of GraphQL queries from GraphQL schemas",

"test:generate": "ts-node src/command test/source.graphql -o test/output.graphql -d 5",
"test:generate2": "ts-node src/command http://localhost:3000/graphql -o test/output.graphql -d 5",
"test:generate3": "ts-node src/command https://beta.pokeapi.co/graphql/v1beta -o test/output2.graphql -d 1"
"test:generate2": "ts-node src/command https://beta.pokeapi.co/graphql/v1beta -o test/output2.graphql -d 1",
"test:generate3": "ts-node src/command https://graphqlpokemon.favware.tech/v8 -o test/output3.graphql -d 1"
},

@@ -25,13 +25,13 @@ "bin": {

"@colors/colors": "^1.6.0",
"@types/node": "^20.8.3",
"graphql": "^16.8.1",
"@types/node": "^22.10.2",
"graphql": "^16.9.0",
"minimist": "^1.2.8"
},
"devDependencies": {
"@types/minimist": "^1.2.3",
"@types/minimist": "^1.2.5",
"cpy-cli": "^5.0.0",
"ts-node": "^10.9.1",
"ts-patch": "^3.0.2",
"typescript": "^5.2.2",
"typescript-transform-paths": "^3.4.6"
"ts-node": "^10.9.2",
"ts-patch": "^3.3.0",
"typescript": "^5.7.2",
"typescript-transform-paths": "^3.5.2"
},

@@ -38,0 +38,0 @@ "license": "MIT",

@@ -27,2 +27,7 @@ # graphql-auto-query

graphql-auto-query schema/schema.graphql -o query.graphql
# other
graphql-auto-query https://beta.pokeapi.co/graphql/v1beta -o test/output2.graphql -d 1
graphql-auto-query https://graphqlpokemon.favware.tech/v8 -o test/output3.graphql -d 1
```

@@ -29,0 +34,0 @@

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