You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

solpp

Package Overview
Dependencies
Maintainers
1
Versions
36
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

solpp - npm Package Compare versions

Comparing version

to
0.9.3

3

CHANGELOG.md

@@ -0,1 +1,4 @@

## Version 0.9.3
- Fix `--output` command line option failing. See https://github.com/merklejerk/solpp/pull/2.
## Version 0.9.2

@@ -2,0 +5,0 @@ - Fix bug where `pragma` strings being rendered without whitespace.

2

package.json
{
"name": "solpp",
"version": "0.9.2",
"version": "0.9.3",
"description": "A solidity preprocessor and flattener CLI and library",

@@ -5,0 +5,0 @@ "repository": "https://github.com/merklejerk/solpp",

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

.arguments('<source-file>')
.option('-o, --output <file>', 'write output to a file (instead of stdout)', path.resolve)
.option('-o, --output <file>', 'write output to a file (instead of stdout)')
.option('--no-flatten', 'do not flatten (include) naked imports')

@@ -55,3 +55,3 @@ .option('--no-pp', 'disable the preprocessor (just flatten)')

if (this.output)
await fs.writeFile(this.output, output, 'utf-8');
await fs.writeFile(path.resolve(this.output), output, 'utf-8');
else

@@ -58,0 +58,0 @@ console.log(output);