Skip to content

Commit

Permalink
feat: remove unnecessary nanoid logic
Browse files Browse the repository at this point in the history
  • Loading branch information
gajus committed May 8, 2021
1 parent 1fdf9d2 commit cb8cecd
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 7 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
"chalk": "^4.1.0",
"es6-error": "^4.1.1",
"json5": "^2.1.3",
"nanoid": "^3.1.22",
"prettyjson": "^1.2.1",
"roarr": "^3.2.0",
"searchjs": "^1.1.0",
Expand Down
7 changes: 1 addition & 6 deletions src/bin/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@ import {
Instance as Chalk,
} from 'chalk';
import JSON5 from 'json5';
import {
customAlphabet,
} from 'nanoid';
import {
io,
} from 'socket.io-client';
Expand Down Expand Up @@ -87,8 +84,6 @@ const argv = yargs
.wrap(80)
.parse();

const nanoid = customAlphabet('0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz', 6);

const roarrConfigurationPath = findNearestRoarrConfigurationPath();

let filterFunction: FilterFunction | null = null;
Expand All @@ -114,7 +109,7 @@ if (argv['api-key']) {
socket = io(argv['api-url'], {
query: {
hostname: os.hostname(),
name: argv.name || os.hostname() + ' ' + nanoid(),
name: argv.name || '',
tags: argv.tags || '',
token: String(argv['api-key']),
version: '1.0.0',
Expand Down

0 comments on commit cb8cecd

Please sign in to comment.