Socket
Socket
Sign inDemoInstall

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.10.6 to 0.10.7

14

lib/cli.js

@@ -12,2 +12,6 @@ #!/usr/bin/env node

var _glob = require('glob');
var _glob2 = _interopRequireDefault(_glob);
var _process = require('process');

@@ -114,3 +118,11 @@

}, argv => {
const inputPaths = argv.input.map(input => _path2.default.resolve(input));
let input = argv.input;
// Use glob if the user's shell was unable to expand the pattern
if (input.length === 1 && _glob2.default.hasMagic(input[0])) {
input = _glob2.default.sync(input[0]);
}
const inputPaths = input.map(input => _path2.default.resolve(input));
const options = { passthroughCustomScalars: argv["passthrough-custom-scalars"] };

@@ -117,0 +129,0 @@ (0, _.generate)(inputPaths, argv.schema, argv.output, argv.target, options);

4

package.json
{
"name": "apollo-codegen",
"version": "0.10.6",
"version": "0.10.7",
"description": "Generate API code or type annotations based on a GraphQL schema and query documents",

@@ -30,3 +30,2 @@ "main": "./lib/index.js",

"common-tags": "^1.3.0",
"glob": "^7.0.5",
"mocha": "^3.1.2"

@@ -36,2 +35,3 @@ },

"babel-runtime": "^6.20.0",
"glob": "^7.0.5",
"source-map-support": "^0.4.2",

@@ -38,0 +38,0 @@ "change-case": "^3.0.0",

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