Skip to content

Commit

Permalink
Replace optimist package by yargs
Browse files Browse the repository at this point in the history
Replace deprecated optimist package by yargs in order to fix the security vulnerability
  • Loading branch information
gkozlenko committed Mar 25, 2020
1 parent 461d7b8 commit 0b4da2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/logrotate-stream
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#! /usr/bin/env node
/* vim: set syntax=JavaScript : */

var args = require('optimist').argv
var args = require('yargs').argv
, stream = require('../');

args.file = args._.shift();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"dependencies": {
"byt": "~0.1.0",
"log-rotate": "~0.2.8",
"optimist": "~0.6.0"
"yargs": "~15.3.1"
},
"devDependencies": {
"tape": "~2.1.0"
Expand Down

0 comments on commit 0b4da2b

Please sign in to comment.