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

@gqlb/cli

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@gqlb/cli - npm Package Compare versions

Comparing version 0.0.8 to 0.1.0

6

CHANGELOG.md
# @gqlb/cli
## 0.1.0
### Minor Changes
- bedbf97: Added support for optional args
## 0.0.8

@@ -4,0 +10,0 @@

2

dist/commands/generate.js

@@ -104,3 +104,3 @@ "use strict";

${field.args.map((arg) => {
const optional = arg.type instanceof graphql_1.GraphQLNonNull ? "" : "?";
const optional = (0, graphql_1.isRequiredArgument)(arg) ? "" : "?";
return `readonly ${arg.name}${optional}: ${argumentUnion(arg.type)} | ${variableUnion(arg.type)}`;

@@ -107,0 +107,0 @@ })}

{
"name": "@gqlb/cli",
"version": "0.0.8",
"version": "0.1.0",
"description": "",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -21,2 +21,3 @@ import fs from "fs/promises";

getIntrospectionQuery,
isRequiredArgument,
} from "graphql";

@@ -149,3 +150,3 @@ import request from "graphql-request";

${field.args.map((arg) => {
const optional = arg.type instanceof GraphQLNonNull ? "" : "?";
const optional = isRequiredArgument(arg) ? "" : "?";
return `readonly ${arg.name}${optional}: ${argumentUnion(

@@ -152,0 +153,0 @@ arg.type

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