Comparing version 0.0.8 to 0.0.9
11
index.js
#!/usr/bin/env node | ||
const fs = require('fs'); | ||
const package = JSON.parse(fs.readFileSync('./package.json')); | ||
const OpenAPIGenerator = require('./OpenAPIGenerator'); | ||
@@ -9,5 +10,5 @@ const program = require('commander'); | ||
program | ||
.version('0.0.8') | ||
.name('abi2oas') | ||
.description("Autogenerate an Open API JSON corresponding to the functions in a smart contract's ABI. \n Call with the paths to your config file and your desired OpenAPI output file.") | ||
.version(package.version) | ||
.name(package.name) | ||
.description(package.description) | ||
.usage('<config_file_path> <output_file_path>') | ||
@@ -19,3 +20,3 @@ .action((config_file, output_file) => { | ||
program.on('--help', () => { | ||
paddedLog(' For more information about configuration and generation, view the abi2oas homepage on GitHub.'); | ||
paddedLog(' Both paths should be relative to the current working directory. For more information about configuration and generation, view the abi2oas homepage on GitHub.'); | ||
}); | ||
@@ -22,0 +23,0 @@ |
@@ -114,3 +114,3 @@ let fs = require("fs"); | ||
} | ||
paddedLog(`Successfully generated OpenAPI JSON for contract "${openAPIObj.info.title}", view result at "${path.resolve(__dirname, file_path)}"`); | ||
paddedLog(`Successfully generated OpenAPI JSON for contract "${openAPIObj.info.title}", view result at "${path.resolve(process.cwd(), file_path)}"`); | ||
return openAPIObj; | ||
@@ -117,0 +117,0 @@ } |
{ | ||
"name": "abi2oas", | ||
"version": "0.0.8", | ||
"description": "Ingests a smart contract's ABI and autogenerates OpenAPI JSON, ready for Swagger codegen.", | ||
"version": "0.0.9", | ||
"description": "Ingests a smart contract's ABI and autogenerates an OpenAPI JSON, ready for Swagger codegen.", | ||
"main": "index.js", | ||
@@ -6,0 +6,0 @@ "bin": "index.js", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
43220
846
3