diff --git a/cli/helpers.js b/cli/helpers.js index ed7e05d..fa795ae 100644 --- a/cli/helpers.js +++ b/cli/helpers.js @@ -65,7 +65,7 @@ function getPassword(positionalArguments) { exitEarly("Missing password: please provide an argument or set the STATICRYPT_PASSWORD environment variable in the environment or .env file"); } - return positionalArguments[1]; + return positionalArguments[1].toString(); } exports.getPassword = getPassword; diff --git a/package-lock.json b/package-lock.json index 6e662e0..3696597 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "staticrypt", - "version": "2.3.2", + "version": "2.3.3", "lockfileVersion": 2, "requires": true, "packages": { "": { "name": "staticrypt", - "version": "2.3.2", + "version": "2.3.3", "license": "MIT", "dependencies": { "crypto-js": "3.1.9-1", diff --git a/package.json b/package.json index 24c27d5..ac10770 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "staticrypt", - "version": "2.3.2", + "version": "2.3.3", "description": "Based on the [crypto-js](https://github.com/brix/crypto-js) library, StatiCrypt uses AES-256 to encrypt your input with your passphrase and put it in a HTML file with a password prompt that can decrypted in-browser (client side).", "main": "index.js", "files": [