decryption 0.6.0 → 0.6.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/index.js +10 -3
  2. package/package.json +3 -3
package/index.js CHANGED
@@ -1,4 +1,11 @@
1
1
  #!/usr/bin/env node
2
- // `npm install -g decryption` installs the `dcrypt` command from @decryption/cli.
3
- // This package holds no code of its own; it runs the CLI at the exact version it depends on.
4
- require('@decryption/cli').main();
2
+ // `decryption` is the entry point: `npm install -g decryption` installs the `dcrypt` command, and
3
+ // `require('decryption')` gives you the @decryption/cli API. This package holds no code of its own;
4
+ // it runs the CLI at the exact version it depends on.
5
+ const cli = require('@decryption/cli');
6
+
7
+ if (require.main === module) {
8
+ cli.main();
9
+ } else {
10
+ module.exports = cli;
11
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "decryption",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "dcrypt — local-first CLI for encryption, BIP39 wallets and team secrets",
5
5
  "author": "Constructive <developers@constructive.io>",
6
6
  "main": "index.js",
@@ -30,10 +30,10 @@
30
30
  "age"
31
31
  ],
32
32
  "dependencies": {
33
- "@decryption/cli": "0.6.0"
33
+ "@decryption/cli": "0.6.1"
34
34
  },
35
35
  "bin": {
36
36
  "dcrypt": "index.js"
37
37
  },
38
- "gitHead": "84d5350eaadb0744e9ec8fc67c4f658118d2cbd2"
38
+ "gitHead": "94dbf87284e3e813f241a4265c9009a0b27ccd26"
39
39
  }