Skip to content

Commit

Permalink
replace vulnerable dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
a-sync committed Sep 17, 2024
1 parent 1541e7d commit a868def
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 26 deletions.
27 changes: 8 additions & 19 deletions package-lock.json

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

5 changes: 2 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,12 @@
"dotenv": "^16.3.2",
"gamedig": "^5.1.3",
"grammy": "^1.20.3",
"ip": "^2.0.1",
"lowdb": "^6.1.1",
"mustache": "^4.2.0"
"mustache": "^4.2.0",
"neoip": "^3.0.1"
},
"devDependencies": {
"@types/gamedig": "^5.0.0",
"@types/ip": "^1.1.3",
"@types/node": "^16.18.73",
"eslint": "^8.56.0",
"nodemon": "^3.0.3",
Expand Down
2 changes: 1 addition & 1 deletion src/discord-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { JSONPreset } from 'lowdb/node';
import { GameServer } from './game-server.js';
import hhmmss from './lib/hhmmss.js';
import { DiscordConfig } from './watcher.js';
import ip from 'ip';
import * as ip from 'neoip';

const DATA_PATH = process.env.DATA_PATH || './data/';
const DBG = Boolean(Number(process.env.DBG));
Expand Down
2 changes: 1 addition & 1 deletion src/game-server.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import axios from 'axios';
import { GameDig, Player, QueryOptions } from 'gamedig';
import { JSONPreset } from 'lowdb/node';
import ip from 'ip';
import * as ip from 'neoip';
import getIP from './lib/getip.js';
import { GameServerConfig } from './watcher.js';

Expand Down
2 changes: 1 addition & 1 deletion src/slack-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { JSONPreset } from 'lowdb/node';
import { GameServer } from './game-server.js';
import hhmmss from './lib/hhmmss.js';
import { SlackConfig } from './watcher.js';
import ip from 'ip';
import * as ip from 'neoip';

const DATA_PATH = process.env.DATA_PATH || './data/';
const DBG = Boolean(Number(process.env.DBG));
Expand Down
2 changes: 1 addition & 1 deletion src/telegram-bot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { JSONPreset } from 'lowdb/node';
import { GameServer } from './game-server.js';
import hhmmss from './lib/hhmmss.js';
import { TelegramConfig } from './watcher.js';
import ip from 'ip';
import * as ip from 'neoip';

const DATA_PATH = process.env.DATA_PATH || './data/';
const DBG = Boolean(Number(process.env.DBG));
Expand Down

0 comments on commit a868def

Please sign in to comment.