Repository navigation
Update bitwarden extension - #25553
mabraithwaite wants to merge 1 commit into
Conversation
|
Thank you for your first contribution! 🎉 🔔 @jomifepe @daniel-stoneuk @andreaselia @pernielsentikaer @eth-p @YamenSharaf @undefinedzack @anirudhganwal06 @ivaarsson @gasparhabif @marinsokol @jose-elias-alvarez @krambono @clins1994 you might want to have a look. You can use this guide to learn how to check out the Pull Request locally in order to test it. 📋 Quick checkout commandsBRANCH="ext/bitwarden"
FORK_URL="https://github.com/mabraithwaite/raycast-extensions.git"
EXTENSION_NAME="bitwarden"
REPO_NAME="raycast-extensions"
git clone -n --depth=1 --filter=tree:0 -b $BRANCH $FORK_URL
cd $REPO_NAME
git sparse-checkout set --no-cone "extensions/$EXTENSION_NAME"
git checkout
cd "extensions/$EXTENSION_NAME"
npm install && npm run devWe're currently experiencing a high volume of incoming requests. As a result, the initial review may take up to 10-15 business days. |
| if (existsSync(dataJsonPath)) { | ||
| await tryExec(() => unlink(dataJsonPath)); | ||
| } |
There was a problem hiding this comment.
Did you have any issues with this line? Curious if it's a failing point
There was a problem hiding this comment.
Yeah when first forking the project it kept failing on build because the json wasn't present
| export const PASSPHRASE_OPTION_KEYS: readonly string[] = asOptionKeys<PassphraseOptions>()([ | ||
| "passphrase", | ||
| "words", | ||
| "separator", | ||
| "capitalize", | ||
| "includeNumber", | ||
| ]); |
There was a problem hiding this comment.
This is an ok solution, but in the end, the issue was only that boolean args were being passed with a value, as you described. The generate command doesn't really care about password args being mixed with passphrase ones, or vice-versa.
There was a problem hiding this comment.
yeah though when debugging it gets confusing when all params are passed but only a select few are taking effect.
There was a problem hiding this comment.
Didn't realize you had closed this already so opened another PR after pulling most recent changes, added additional tests to if you want to take a look. #25598
Description
Open issue: #25549 (comment)
There's a bug when trying to generate passwords. It's looking like we're passing
falsefor flags like--passphrasewhen they should instead by omitted from the cli call.Updated
getPasswordGeneratingArgs()to only allow args for the eitherpassphrasetype passwords or regular type passwords, and filtered out flags when the value is false.Checklist
npm run buildand tested this distribution build in Raycastassetsfolder are used by the extension itselfREADMEare placed outside of themetadatafolder