Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

apollo-codegen

Package Overview
Dependencies
Maintainers
1
Versions
102
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

apollo-codegen - npm Package Compare versions

Comparing version 0.7.0 to 0.7.1

4

lib/cli.js

@@ -56,2 +56,3 @@ #!/usr/bin/env node

describe: 'Output path for GraphQL schema file',
default: 'schema.json',
normalize: true

@@ -126,6 +127,7 @@ },

};
}()).command('generate <input...>', 'Generate code from a GraphQL schema and query documents', {
}()).command('generate [input...]', 'Generate code from a GraphQL schema and query documents', {
schema: {
demand: true,
describe: 'Path to GraphQL schema file',
default: 'schema.json',
normalize: true

@@ -132,0 +134,0 @@ },

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

var body = _fs2.default.readFileSync(inputPath, 'utf8');
if (!body) {
return null;
}
return new _graphql.Source(body, inputPath);
}).filter(function (source) {
return source;
});

@@ -46,0 +51,0 @@

{
"name": "apollo-codegen",
"version": "0.7.0",
"version": "0.7.1",
"description": "Generate client code based on a GraphQL schema and query documents",

@@ -38,4 +38,4 @@ "main": "./lib/index.js",

"node-fetch": "^1.5.3",
"yargs": "^5.0.0"
"yargs": "^6.0.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