Skip to content

Commit

Permalink
bump dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
bezoerb committed Sep 18, 2023
1 parent 32adde0 commit 0301451
Show file tree
Hide file tree
Showing 7 changed files with 1,649 additions and 2,477 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node: [14, 16, 18]
node: [16, 18]
os: [ubuntu-latest, windows-latest]

steps:
Expand Down
18 changes: 9 additions & 9 deletions cli.js
Expand Up @@ -41,26 +41,26 @@ const meowOpts = {
flags: {
base: {
type: 'string',
alias: 'b',
shortFlag: 'b',
},
css: {
type: 'string',
alias: 'c',
shortFlag: 'c',
isMultiple: true,
},
width: {
alias: 'w',
shortFlag: 'w',
},
height: {
alias: 'h',
shortFlag: 'h',
},
inline: {
type: 'boolean',
alias: 'i',
shortFlag: 'i',
},
extract: {
type: 'boolean',
alias: 'e',
shortFlag: 'e',
default: false,
},
inlineImages: {
Expand All @@ -85,7 +85,7 @@ const meowOpts = {
},
userAgent: {
type: 'string',
alias: 'ua',
shortFlag: 'ua',
},
dimensions: {
type: 'string',
Expand Down Expand Up @@ -120,8 +120,8 @@ const isAlias = (key) => {
}

const aliases = Object.keys(meowOpts.flags)
.filter((k) => meowOpts.flags[k].alias)
.map((k) => meowOpts.flags[k].alias);
.filter((k) => meowOpts.flags[k].shortFlag)
.map((k) => meowOpts.flags[k].shortFlag);

return aliases.includes(key);
};
Expand Down

0 comments on commit 0301451

Please sign in to comment.