Skip to content

Commit

Permalink
Merge pull request #95 from viqueen/snyk-fix-f337fcb746e9a8f6b917c1a2…
Browse files Browse the repository at this point in the history
…9f4b3126

[Snyk] Security upgrade axios from 1.6.2 to 1.6.3
  • Loading branch information
viqueen authored Jan 3, 2024
2 parents 29f2993 + 4ae0e40 commit ca8a2b3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions modules/commands/chance-command.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,10 @@ actions.forEach((action) => {
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const doIt = (chance as any)[action];
const wordParam = opts.words ? { words: parseInt(opts.words) } : {};
const versionParam = opts.version ? { version: parseInt(opts.version)} : {};
const output = doIt.bind(chance)({...wordParam, ...versionParam});
const versionParam = opts.version
? { version: parseInt(opts.version) }
: {};
const output = doIt.bind(chance)({ ...wordParam, ...versionParam });
console.info({
output,
length: output.length
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"typescript": "^5.0.4"
},
"dependencies": {
"axios": "^1.6.0",
"axios": "^1.6.3",
"chalk": "4",
"chance": "^1.1.11",
"commander": "^11.0.0",
Expand Down

0 comments on commit ca8a2b3

Please sign in to comment.