Commit Graph

842 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
Vincent Salucci f1c1ab38ad
Update jslib (#499) 2022-03-03 16:26:34 -06:00
Oscar Hinton b4555039d8
Add eslint (#496) 2022-03-03 12:24:41 -05:00
Daniel James Smith dd6a0cab7f
Pull in jslib (#498) 2022-03-03 15:41:25 +01:00
Daniel James Smith caf6a1173b
Add importing of 1passwords 1pux files (#440)
* Pull in jslib

* Install jszip

* Add method in utils to unzip and extract 1pux file

* Add importing/extracting of 1pux files to import command

* Update jslib

* Update package-lock.json
2022-03-03 15:32:49 +01:00
Thomas Rittson bc4bd664b6
Update jslib (#497) 2022-03-02 08:41:17 +10:00
Kyle Spearrin ed33d77b7e
Serve command fixes (#492)
* change to koa to support async/await

* get rid of session header

* error is unlocked for certain commands

* fix lint error

* use "object" routes

* revert change to vs code  launch
2022-02-25 17:35:27 -05:00
Micaiah Martin 3a14f04960
[BEEEP] - Ignored workflow files from triggering builds (#494) 2022-02-25 09:12:23 -05:00
Micaiah Martin 7033fa17da
Added dry run logic for release workflow (#495) 2022-02-25 09:12:07 -05:00
Thomas Rittson 1af0021af3
Update jslib (#493)
* Update jslib

* Add i18n error message

* Update deps
2022-02-24 09:35:18 -05:00
Matt Gibson 323c3ee04a
Feature/password protected export (#446)
* Update jslib

* Bumped version to 1.20.0 (#421)

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
(cherry picked from commit 3e4aa8e476)

* password protected export

* Run Prettier

* Add importer to list of known file types

* Improve launch.json settings

* Turn on import from password protected file

* Run prettier

* Fix webpack source map path change

* Update getPassword helper to use new options class

* Prettier

* Add client type

* Remove master password requirement for export

Alter password optional argument to indicating the file should be password protected rather than account protected

* update jslib

* Handle passwordProtected automagically

* Remove passwordproteted type from import command

* Update src/utils.ts

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* Update src/vault.program.ts

Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>

* Use new util method

* remove password protected format

* Update jslib

* Clarify export command

* Run prettier

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Co-authored-by: Matt Gibson <gibson.matt10@gmail.com>
Co-authored-by: Thomas Rittson <31796059+eliykat@users.noreply.github.com>
2022-02-23 15:47:32 -06:00
Chad Scharf 8e65d3e8d2
We're Hiring (#491)
Added link to README.md for Bitwarden Careers page.
2022-02-22 14:04:17 +01:00
Micaiah Martin 66012936ad
Create initial workflow (#488) 2022-02-18 13:28:44 -06:00
Thomas Rittson eb5be3c72f
Exclude jslib from prettier hook (#486) 2022-02-17 10:37:25 +10:00
Matt Gibson 4b2c9fd78b
Lint to match other repos (#487) 2022-02-16 08:49:12 -06:00
Addison Beck a4c22b8d4e
[lib] Update jslib (#485) 2022-02-15 15:06:50 -05:00
github-actions[bot] a262da0452
Bump version to 1.21.1 (#484)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-02-14 12:26:34 -06:00
Thomas Rittson ff98f4ca6b
Fix error when using password generator not logged in (#481)
* Do not fetch password policy if not logged in

* Update deps
2022-02-14 09:29:44 -05:00
Addison Beck 7ed67b69a6
update jslib (#483) 2022-02-14 09:29:30 -05:00
Thomas Rittson 5d34ee432e
Update jslib (#479) 2022-02-11 00:31:13 -05:00
Thomas Rittson 06497fdee7
Update jslib (#478) 2022-02-11 15:00:24 +10:00
Thomas Rittson bf53785930
Update jslib (#477) 2022-02-11 14:29:51 +10:00
Joseph Flinn 81afc009e6
Add Husky to release pipeline (#475) 2022-02-10 14:03:09 -08:00
Joseph Flinn f484ef37c5
Update secret manager for snap token (#474) 2022-02-10 11:34:51 -08:00
github-actions[bot] e8181e415b
Bump version to 1.21.0 (#473)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2022-02-10 12:29:40 -07: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
Addison Beck 2ae2fdfd14
bump jslib (#471) 2022-02-09 17:47:00 -05:00
Matt Gibson e515ec2625
Return response success from create attachmnt (#469) 2022-02-09 10:58:53 -06:00
Oscar Hinton 6b056d4f80
Client & Version headers (#468) 2022-02-08 15:29:22 +01:00
Thomas Rittson 220afb98c6
Update client for authService refactor (#448)
* Update for encrypted export support (to pass build only)
2022-02-07 17:31:36 -06:00
Thomas Rittson d938dc82df
Make husky pre-commit hook executable (#466) 2022-02-08 08:30:38 +10:00
Addison Beck 322568b40e
[chore] Update jslib (#467) 2022-02-07 12:08:24 -05:00
Matt Gibson c3f9e1053b
Add deleted date to items (#465) 2022-02-04 16:50:59 -06:00
Daniel James Smith c2ae1bd565
Pull jslib for https://github.com/bitwarden/jslib/pull/654 (#464) 2022-02-03 23:40:15 +01:00
Addison Beck af9b8b94f8
Update jslib (#462) 2022-02-03 14:08:45 -05:00
Addison Beck 3718f35efd
[chore] Update jslib (#459) 2022-01-31 18:00:19 -05:00
Matt Gibson 68548d8db9
Add bot to enforce hold PRs aren't merged (#456)
* Add bot to enforce hold PRs aren't merged

* Use commit hash rather than tag
2022-01-31 12:44:29 -06:00
Addison Beck 5731e1e316
[chore] Update jslib (#457) 2022-01-28 10:09:24 -05:00
Matt Gibson 210e0502ca
Feature/put serve behind feature flag (#455)
* Add build-time feature flag capabilities

* Toggle `bw serve` command with `serve` flag

* Run linter and prettier
2022-01-28 08:29:04 -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
Matt Gibson 21e8db9636
Create testing framework for CLI (#453)
* Create testing framework for CLI

- Need to add tsconfig for specs to convert module format and add spec
dir to output
- Use jasmine-ts to test

expected dev cycle would be to have two watchers, one for jslib
and one for CLI tests. We could add jslib tests to this jasmine config,
but it feels wrong to test a submodule

* Run prettier

* Add tests to build pipeline

* Include required package

* Add placeholder test

* Run prettier

* Add nodemon and fix watch
2022-01-21 10:28:36 -06:00
Thomas Rittson 8b650666c5
Fix migration to Key Connector (#452)
* Move Key Connector check to subclass

* Move authService.logout call to main program

* Move Key Connector migration check to unlock command

* Use get/setConvertAccountRequired flag

* Move Key Connector convert to own command, set usesKeyConnector after conversion

* Remove KC conversion check from syncCommand, fix callback

* Make class service private

* Fix naming convention

* Update jslib and deps
2022-01-21 06:03:37 +10:00
Kyle Spearrin 922cd1dc54
serve command (#451) 2022-01-19 10:45:14 -05:00
Thomas Rittson 84a0bfb07c
Update jslib (#449) 2022-01-19 07:05:48 +10:00
Vince Grassia b6c8307437
Update Version Bump action to latest (#445) 2022-01-14 12:38:38 -05:00
Matt Gibson 3b1ccb409e
Fix/lowdb no cache (#443)
* Add jslib prettier commit to client ignore hashes

* Remove lowdb caching

* Fix state service remove being set to null

* Await in-memory key retrieval

* Fix key loading and unlock requests.

* Linter fixes

* linter fixes

* linter fixes
2022-01-13 11:03:19 -06:00
Thomas Rittson b962af303a
Fix always logging out instead of lock (#444) 2022-01-13 17:35:48 +10:00
Ivan Kovnatsky da640794c4
Add git credential helper example (#388) 2022-01-12 04:54:33 -08:00
Daniel James Smith f26bfb5859
Add ts files to prettier (#433)
* Add ts files to prettier

* Add all filestypes to prettier and ignore via .prettierignore

* Add --ignore-unknown to prettier
2022-01-07 19:14:02 +01:00
Robyn MacCallum c874d0d1a7
update jslib (#434) 2022-01-06 13:41:18 -05:00