Skip to content

Commit

Permalink
fix: Hide internal arg (#37)
Browse files Browse the repository at this point in the history
  • Loading branch information
dmtrKovalenko authored May 27, 2021
1 parent fea16c3 commit cfb08c4
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion bin/ODiffBin.re
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ let cmd = {
),
Term.info(
"odiff",
~version="2.2.1",
~version="2.2.2",
~doc="Find difference between 2 images.",
~exits=[
Term.exit_info(0, ~doc="on image match"),
Expand Down
4 changes: 2 additions & 2 deletions bin/node-bindings/odiff.js
Original file line number Diff line number Diff line change
Expand Up @@ -79,11 +79,11 @@ function parsePixelDiffStdout(stdout) {
const CMD_BIN_HELPER_MSG =
"Usage: odiff [OPTION]... [BASE] [COMPARING] [DIFF]\nTry `odiff --help' for more information.\n";

async function compare(basePath, comparePath, diffOutput, options) {
async function compare(basePath, comparePath, diffOutput, options = {}) {
return new Promise((resolve, reject) => {
let producedStdout, producedStdError;

const binaryPath = options.__binaryPath
const binaryPath = options && options.__binaryPath
? options.__binaryPath
: path.join(__dirname, "bin", "odiff");

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "odiff",
"version": "2.2.1",
"version": "2.2.2",
"description": "The fastest image difference tool.",
"license": "MIT",
"esy": {
Expand Down

0 comments on commit cfb08c4

Please sign in to comment.