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

@manifoldco/graphql-gen

Package Overview
Dependencies
Maintainers
15
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@manifoldco/graphql-gen - npm Package Compare versions

Comparing version 1.1.0-alpha.3 to 1.1.0-alpha.4

32

bin/cli.js

@@ -67,23 +67,19 @@ #!/usr/bin/env node

function run() {
const result = graphQLGen(spec, cli.flags);
const result = graphQLGen(spec, cli.flags);
// Write to file if specifying output
if (cli.flags.output) {
const timeStart = process.hrtime();
const outputFile = resolve(process.cwd(), cli.flags.output);
const parent = dirname(outputFile);
mkdirpSync(parent);
writeFileSync(outputFile, result);
// Write to file if specifying output
if (cli.flags.output) {
const timeStart = process.hrtime();
const outputFile = resolve(process.cwd(), cli.flags.output);
const parent = dirname(outputFile);
mkdirpSync(parent);
writeFileSync(outputFile, result);
const timeEnd = process.hrtime(timeStart);
const time = timeEnd[0] + Math.round(timeEnd[1] / 1e6);
console.log(chalk.green(`🚀 ${cli.input[0]} -> ${chalk.bold(cli.flags.output)} [${time}ms]`));
return;
}
// Otherwise, return result
return result;
const timeEnd = process.hrtime(timeStart);
const time = timeEnd[0] + Math.round(timeEnd[1] / 1e6);
console.log(chalk.green(`🚀 ${cli.input[0]} -> ${chalk.bold(cli.flags.output)} [${time}ms]`));
return;
}
module.exports = run;
// Otherwise, return result
return result;
{
"name": "@manifoldco/graphql-gen",
"version": "1.1.0-alpha.3",
"version": "1.1.0-alpha.4",
"main": "dist/index.js",

@@ -5,0 +5,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