sdc-cli 1.2.0 → 1.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/cli.js +1 -1
  2. package/package.json +1 -1
package/cli.js CHANGED
@@ -142,7 +142,7 @@ class CryptCLI {
142
142
  if (code === 0) {
143
143
  if (options.r) resolve(stdout);
144
144
  const trimmed = stdout.trim();
145
- if (trimmed !== password) process.stdout.write('Warning: Password was trimmed');
145
+ if (trimmed !== stdout) process.stdout.write('Warning: Password was trimmed');
146
146
  resolve(trimmed);
147
147
  } else {
148
148
  reject(new Error(`Password script failed with code ${code}`));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "sdc-cli",
3
- "version": "1.2.0",
3
+ "version": "1.2.1",
4
4
  "description": "A useful CLI in Node.js to use simple-data-crypto library",
5
5
  "keywords": [
6
6
  "encryption",