diff --git a/bin/ODiffBin.re b/bin/ODiffBin.re index 8229b0e0..f826a946 100644 --- a/bin/ODiffBin.re +++ b/bin/ODiffBin.re @@ -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"), diff --git a/bin/node-bindings/odiff.js b/bin/node-bindings/odiff.js index e659f79e..459dbe66 100644 --- a/bin/node-bindings/odiff.js +++ b/bin/node-bindings/odiff.js @@ -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"); diff --git a/package.json b/package.json index aa78563c..8680004a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "odiff", - "version": "2.2.1", + "version": "2.2.2", "description": "The fastest image difference tool.", "license": "MIT", "esy": {