Skip to content

Commit

Permalink
chore: updated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
Johan committed Dec 7, 2019
1 parent 46d375c commit bced482
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 22 deletions.
37 changes: 19 additions & 18 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,11 +42,11 @@
"version": "git add -A src"
},
"dependencies": {
"args-any": "0.0.1-beta.9",
"args-any": "^1.0.1",
"chalk": "^2.4.2",
"cron-parser": "^2.13.0",
"flexi-path": "^0.2.0",
"nordvpn-server-lister": "https://github.com/jaspenlind/nordvpn-server-lister/releases/download/v0.1.0/nordvpn-server-lister-0.1.0.tgz",
"nordvpn-server-lister": "^0.2.1",
"promptly": "^3.0.3",
"shelljs": "^0.8.3",
"ssh-keygen": "^0.4.2",
Expand Down
5 changes: 3 additions & 2 deletions src/lib/commands/vpn/import.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
import { parse } from "args-any";
import promptly from "promptly";
import { table } from "table";
import fetch from "nordvpn-server-lister/dist/src";
import vpn from "nordvpn-server-lister";

import { skynetCommand } from "../../../models/command";

const description = "Import vpn endpoints";
Expand All @@ -16,7 +17,7 @@ const run = async (...args: string[]) => {

const country = filter.country || (await promptly.prompt("Country"));

const result = await fetch().then(response => response.items.filter(x => x.country === country));
const result = await vpn.fetch().then(response => response.items.filter(x => x.country === country));

const data = result.map(x => ({ ip: x.ip_address, name: x.name }));

Expand Down

0 comments on commit bced482

Please sign in to comment.