Socket
Socket
Sign inDemoInstall

apollo-codegen

Package Overview
Dependencies
118
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.12.7 to 0.12.8

4

lib/cli.js

@@ -212,4 +212,4 @@ #!/usr/bin/env node

demand: false,
describe: "For non-swift targets, always add the __typename GraphQL introspection type when generating target types",
default: false
describe: "Automatically add the __typename field to every selection set",
default: true
}

@@ -216,0 +216,0 @@ }, function (argv) {

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

if (target === 'swift') {
if (options.addTypename) {
console.warn('This option is a no-op for Swift because __typename is already added automatically');
if (!options.addTypename) {
console.warn('Apollo iOS requires the __typename field to be added automatically');
}

@@ -44,0 +44,0 @@ options.addTypename = true;

@@ -50,3 +50,8 @@ 'use strict';

values: values.map(function (value) {
return { name: value.name, description: value.description };
return {
name: value.name,
description: value.description,
isDeprecated: value.isDeprecated,
deprecationReason: value.deprecationReason
};
})

@@ -53,0 +58,0 @@ };

{
"name": "apollo-codegen",
"version": "0.12.7",
"version": "0.12.8",
"description": "Generate API code or type annotations based on a GraphQL schema and query documents",

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

Sorry, the diff of this file is not supported yet

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc