1
0
mirror of https://github.com/bitwarden/browser synced 2025-12-16 00:03:56 +00:00
Commit Graph

18 Commits

Author SHA1 Message Date
Kyle Spearrin
2295cd3266 parse incoming JSON date strings as Date objects (#500)
* parse incoming JSON date strings as Date objects

* update create command too
2022-03-04 09:47:46 -05:00
Oscar Hinton
b4555039d8 Add eslint (#496) 2022-03-03 12:24:41 -05:00
Matt Gibson
ee664059d2 Fix/lock lowdb file (#470)
* Lock data.json while running

* Await floating promises

* Increase retry frequency and attempt count for lock file

* tweak lock retry times
2022-02-10 10:24:41 -06:00
Matt Gibson
1b409653a2 Fix/bitwarden serve (#454)
* Handle null passedOptions

* Require authentication to use `bs serve`
2022-01-26 10:28:56 -06:00
Kyle Spearrin
922cd1dc54 serve command (#451) 2022-01-19 10:45:14 -05:00
Addison Beck
179f1dfe5d [refactor(Account Switching)] Implement StateService (#424) 2021-12-28 15:38:51 -05:00
Oscar Hinton
910b4a24e6 Apply Prettier (#426) 2021-12-20 18:04:00 +01:00
Oscar Hinton
4ec06bbd1e Add support for helpers in environment service (#353) 2021-07-23 22:46:32 +02:00
Oscar Hinton
477066118e Add jslib as a "real" dependency (#321)
* Split jslib

* Bump jslib

* Bump jslib, replace alias with tsconfig-paths-webpack-plugin
2021-06-07 19:25:55 +02:00
Me
5edd0a2c76 Add maxAccessCount to send command (#298) 2021-05-11 14:55:04 -05:00
Matt Gibson
019966f6d5 Specify api url in Send file download request (#291) 2021-04-22 07:45:06 -05:00
Matt Gibson
754dfe9d80 Use Get command for final return value of edit (#290) 2021-04-20 14:55:04 -05:00
Matt Gibson
6d46dc4b87 If error is of unkown type, create and error response from it. (#289)
* If error is of unkown type, create and error response from it.

* Update src/commands/send/receive.command.ts

simplify error handling

Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>

Co-authored-by: Oscar Hinton <oscar@oscarhinton.com>
2021-04-15 08:28:31 -05:00
Matt Gibson
73f358a09d Add api parsing special case for send.bitwarden.com (#258) 2021-03-16 14:19:51 -05:00
Matt Gibson
976be0fe67 Use send.bitwarden.com (#251)
* Use send.bitwarden.com

still need compatibiltiy with /#/send/id/key, but adding on
compability with #id/key

* Fix create links pointing to vault with wrong hash

* Fix Url
2021-03-11 10:39:31 -06:00
Matt Gibson
fcd0c529ca Direct download for send (#243)
* Remove Get file capability

This needs to be removed because the SendFileResponse no longer contains
a url to download the file from. Instead, a GetDownloadLink method
must be used. That method increments access count, which is not
desirable for the owner of the Send. The cleanest approach is to remove
the capability, which also matches Web client's behavior

* jslib updates

* Use GetDownloadData method to receive download Url

* Update jslib
2021-03-02 10:05:20 -06:00
Matt Gibson
3b91a2c72b Ban single paren arrow functions (#226)
* Fix glob processing in npm. Ban single param parens

* Match typescript linter rules
2021-02-03 22:51:59 -06:00
Matt Gibson
57f7cf607a Add send to cli (#222)
* Add list all sends and filter by search term

* Add get send templates

* Add AccessUrl to send responses

* Add Send to Get command

* Add missing command options to login

These options are already coded to work in the command, but commander
did not know about the options.

* Upgrade Commander to 7.0.0

This is needed to enable the subcommand chaining required by Send.

This commit also adds get send and send receive functionality. get send
will be moved to send get along with send list and any other send commands.

* Use api url for send access url

* Move send commands to send subcommands

* Use webvault access url everywhere

Production instances all have api url located at `baseUrl/api`.
Receive command will parse the webvault url and alter it to an api url.

* Move create and receive commands to send directory

* Separate program concerns

program holds authentication/general program concerns
vault.program holds commands related to the vault
send.program holds commands related to Bitwarden Send

* Fix up imports and lint items

* Add edit command

* Use browser-hrtime

* Add send examples to help text

* Clean up receive help text

* correct help text

* Add delete command

* Code review Cleanup

* Scheme on send receive help text

* PR review items

Move buffer to array buffer to jslib
delete with server
some formatting fixes

* Add remove password command

This is the simplest way to enable removing passwords without
resorting to weird type parsing of piped in Send JSONs in edit

* Default hidden to false like web

* Do not allow password updates that aren't strings or are empty

* Delete appveyor.yml.flagged-for-delete

* Correctly order imports and include tslint rule

* fix npm globbing problem

https://stackoverflow.com/a/34594501
globs work differently in package.json. Encasing the globs in
single quotes expands them in shell rather than in npm

* Remove double slash in path

* Trigger github rebuild
2021-02-03 11:44:33 -06:00