subto 3.0.0 → 3.0.2
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.
- package/bin/subto.js +2 -2
- package/dist/package/README.md +3 -3
- package/dist/package/index.js +2 -2
- package/index.js +2 -2
- package/package.json +1 -1
package/bin/subto.js
CHANGED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
try {
|
|
4
4
|
const mod = require('../index.js');
|
|
5
5
|
if (mod && typeof mod.run === 'function') {
|
|
6
|
-
// pass
|
|
7
|
-
|
|
6
|
+
// pass user args only (slice off node and script paths)
|
|
7
|
+
mod.run(process.argv.slice(2)).catch(err => {
|
|
8
8
|
console.error('Error:', err && err.message ? err.message : String(err));
|
|
9
9
|
process.exit(1);
|
|
10
10
|
});
|
package/dist/package/README.md
CHANGED
|
@@ -40,7 +40,7 @@ Commands
|
|
|
40
40
|
{
|
|
41
41
|
"url": "https://example.com",
|
|
42
42
|
"source": "cli",
|
|
43
|
-
"client": { "name": "subto-cli", "version": "3.0.
|
|
43
|
+
"client": { "name": "subto-cli", "version": "3.0.2" }
|
|
44
44
|
}
|
|
45
45
|
```
|
|
46
46
|
|
|
@@ -98,11 +98,11 @@ Download
|
|
|
98
98
|
After publishing or packing, a distributable tarball will be available under `./dist/` e.g.:
|
|
99
99
|
|
|
100
100
|
```
|
|
101
|
-
./dist/subto-3.0.
|
|
101
|
+
./dist/subto-3.0.2.tgz
|
|
102
102
|
```
|
|
103
103
|
|
|
104
104
|
You can download that file directly and install locally with:
|
|
105
105
|
|
|
106
106
|
```bash
|
|
107
|
-
npm install -g ./dist/subto-3.0.
|
|
107
|
+
npm install -g ./dist/subto-3.0.2.tgz
|
|
108
108
|
```
|
package/dist/package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const chalk = (_chalk && _chalk.default) ? _chalk.default : _chalk;
|
|
|
11
11
|
const CONFIG_DIR = path.join(os.homedir(), '.subto');
|
|
12
12
|
const CONFIG_PATH = path.join(CONFIG_DIR, 'config.json');
|
|
13
13
|
const DEFAULT_API_BASE = 'https://subto.one';
|
|
14
|
-
const CLIENT_META = { name: 'subto-cli', version: '3.0.
|
|
14
|
+
const CLIENT_META = { name: 'subto-cli', version: '3.0.2' };
|
|
15
15
|
|
|
16
16
|
function configFilePath() { return CONFIG_PATH; }
|
|
17
17
|
|
|
@@ -91,7 +91,7 @@ function printScanSummary(obj) {
|
|
|
91
91
|
|
|
92
92
|
async function run(argv) {
|
|
93
93
|
const program = new Command();
|
|
94
|
-
program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '3.0.
|
|
94
|
+
program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '3.0.2');
|
|
95
95
|
|
|
96
96
|
program.command('login').description('Store your API key in ~/.subto/config.json').action(async () => {
|
|
97
97
|
try {
|
package/index.js
CHANGED
|
@@ -11,7 +11,7 @@ const chalk = (_chalk && _chalk.default) ? _chalk.default : _chalk;
|
|
|
11
11
|
const CONFIG_DIR = path.join(os.homedir(), '.subto');
|
|
12
12
|
const CONFIG_PATH = path.join(CONFIG_DIR, 'config.json');
|
|
13
13
|
const DEFAULT_API_BASE = 'https://subto.one';
|
|
14
|
-
const CLIENT_META = { name: 'subto-cli', version: '3.0.
|
|
14
|
+
const CLIENT_META = { name: 'subto-cli', version: '3.0.2' };
|
|
15
15
|
|
|
16
16
|
function configFilePath() { return CONFIG_PATH; }
|
|
17
17
|
|
|
@@ -91,7 +91,7 @@ function printScanSummary(obj) {
|
|
|
91
91
|
|
|
92
92
|
async function run(argv) {
|
|
93
93
|
const program = new Command();
|
|
94
|
-
program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '3.0.
|
|
94
|
+
program.name('subto').description('Subto CLI — wrapper around Subto.One API').version(CLIENT_META.version || '3.0.2');
|
|
95
95
|
|
|
96
96
|
program.command('login').description('Store your API key in ~/.subto/config.json').action(async () => {
|
|
97
97
|
try {
|