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

gqlgen

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

gqlgen - npm Package Compare versions

Comparing version 0.1.8 to 0.1.9

7

CHANGELOG.md

@@ -5,2 +5,9 @@ # Changelog

### [0.1.9](https://github.com/forsigner/gqlgen/compare/v0.1.8...v0.1.9) (2020-05-12)
### Bug Fixes
* fix function args if input ([d6bb2e0](https://github.com/forsigner/gqlgen/commit/d6bb2e0bce4cba944799e5a18e6bab75ffc44c63))
### [0.1.8](https://github.com/forsigner/gqlgen/compare/v0.1.7...v0.1.8) (2020-05-06)

@@ -7,0 +14,0 @@

6

lib/lib/generators/hooks.js

@@ -72,4 +72,6 @@ "use strict";

statements = `
const params = typeof args === 'function' ? args() : args
return ${action}<${T}>(${gqlName}, { ...opt, variables: { input: params } })
return ${action}<${T}>(${gqlName}, { ...opt, variables: () => {
const params = typeof args === 'function' ? args() : args
return { input: params }
}})
`;

@@ -76,0 +78,0 @@ // 多参数,或者不叫 input

{
"name": "gqlgen",
"description": "gqlgen",
"version": "0.1.8",
"version": "0.1.9",
"author": "forsigner",

@@ -6,0 +6,0 @@ "bin": {

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