Commit Graph

111 Commits

Author SHA1 Message Date
Oscar Hinton b4555039d8
Add eslint (#496) 2022-03-03 12:24:41 -05: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
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
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
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
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
Kyle Spearrin 922cd1dc54
serve command (#451) 2022-01-19 10:45:14 -05:00
Matt Gibson a3ec45da7f
Update engines in lock file (#431) 2021-12-29 13:31:49 -06:00
Matt Gibson 7bc485b08d
Update webpack (#430)
* Update webpack

* also install dev dependencies in CI

* Add rimraf

* fix added whitespace

* Clarify node warnings and NPM compatibility
2021-12-29 12:05:33 -06:00
Oscar Hinton ec53a16c00
Add Prettier configuration (#425) 2021-12-20 17:44:12 +01:00
Daniel James Smith 18073696d0
Bump node to v16 (#422)
* Pull in jslib

* Bump engines required to node 16 and npm 8

* Bump @types/node to 16

* Modify build.yml to build with node 16 and npm 8

* Update requirements in README.md

* Update 'setup-node' action version

* Update 'pkg' to 5.5.1

* Removed installation of npm8
npm8 is included in node v16

* Pull jslib

* Change engines to only warn on node < 16

Co-authored-by: Vince Grassia <593223+vgrassia@users.noreply.github.com>
2021-12-13 17:18:20 +01:00
github-actions[bot] 3e4aa8e476
Bumped version to 1.20.0 (#421)
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2021-12-08 09:48:33 -05:00
Joseph Flinn 9d12d49072
Version Bump 1.19.1 (#400) 2021-10-27 15:47:42 -07:00
Joseph Flinn 3e05935262
Version Bump 1.19.0 (#397) 2021-10-27 08:42:04 -07:00
Joseph Flinn 07851bea53
Version bump to 1.18.1 (#376) 2021-09-22 08:39:04 -07:00
Matt Gibson e3c05b7bbd
1.18.0 (#363) 2021-08-17 14:04:48 -05:00
Oscar Hinton 4ec06bbd1e
Add support for helpers in environment service (#353) 2021-07-23 22:46:32 +02:00
Chad Scharf d446b0cc3e
[chore] version bump 1.17.1-patch (#348) 2021-07-07 17:24:15 -04:00
Oscar Hinton 4656b6e383
[Version] Bump to 1.17.1 (#345) 2021-07-01 15:52:03 +02:00
Oscar Hinton 347ebb5b36
Remove jslib as dependency, and re-add the old dependencies (#344) 2021-07-01 14:17:34 +02:00
Vincent Salucci e1b4481f32
[Version] Bump to 1.17.0 (#336) 2021-06-28 12:42:18 -05: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
Oscar Hinton 942eb5cfa5
Bump NPM to v7 (#311)
* Bump NPM to v7

* Add NPM v7 to readme
2021-05-26 22:34:39 +02:00
Oscar Hinton 1b22c91f35
Bump node to 14 (#296)
* Bump node to 14

* Change engine node to ~14. Fix linting
2021-05-14 14:30:26 +02:00
Oscar Hinton 9c55d78ffc
Update dependencies (#292)
* Update dependencies

* Remove types which are no longer needed

* Bump jslib

* Revert pkg to 4.5.1 since 5.0.0 does not compile on linux.

* Bump pkg-fetch in build pipeline
2021-04-23 21:04:11 +02:00
Vincent Salucci 679ad19561
[Version] Bump to 1.16.0 (#294) 2021-04-22 12:02:30 -05:00
Kyle Spearrin 5ed32739df revert pkg update 2021-04-12 12:54:16 -04:00
Kyle Spearrin 8131d01c7a npm audit fix 2021-04-12 11:43:53 -04:00
Kyle Spearrin 10114c02aa update some libs 2021-04-12 11:42:35 -04:00
Snyk bot 10abf12ad6
fix: upgrade node-forge from 0.7.6 to 0.10.0 (#279)
Snyk has created this PR to upgrade node-forge from 0.7.6 to 0.10.0.

See this package in npm:
https://www.npmjs.com/package/node-forge

See this project in Snyk:
https://app.snyk.io/org/kspearrin/project/415cdf2b-8075-4802-96cc-3dede3285373?utm_source=github&utm_medium=upgrade-pr
2021-04-12 11:37:30 -04:00
Snyk bot 0fc2472fa6
fix: upgrade big-integer from 1.6.36 to 1.6.48 (#278)
Snyk has created this PR to upgrade big-integer from 1.6.36 to 1.6.48.

See this package in npm:
https://www.npmjs.com/package/big-integer

See this project in Snyk:
https://app.snyk.io/org/kspearrin/project/415cdf2b-8075-4802-96cc-3dede3285373?utm_source=github&utm_medium=upgrade-pr
2021-04-12 11:36:49 -04:00
Matt Gibson 0d5a966734
Hotfix version bump (#259) 2021-03-17 08:48:04 -05:00
Thomas Rittson b80c93012b
Minor release version bump to 1.15.0 (#249)
* Minor release version bump to 1.15.0

* version bump in package-lock

Co-authored-by: Chad Scharf <3904944+cscharf@users.noreply.github.com>
2021-03-10 12:11:59 -05: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
Thomas Rittson cf0345020e Bump https-proxy-agent dep. to 5.0.0 2021-02-01 15:21:22 +10:00
addison 5abd8f7d15 changed hrtime library 2021-01-25 13:36:44 -05:00
Chad Scharf 2ad7e1bdd2 version bump 1.14.0 2021-01-19 15:11:46 -05:00
Kyle Spearrin 16d53b7f6f bump version 2020-12-02 15:38:25 -05:00
Addison Beck b7ded80ff0 updated version 2020-11-13 16:47:29 -05:00
Kyle Spearrin cf9263164c bump version 2020-11-13 15:46:32 -05:00
Kyle Spearrin d6a2992858 bump version 2020-09-28 13:29:02 -04:00
Kyle Spearrin 0e5cc66b67 Revert "Update pkg to support `open` lib (#167)"
This reverts commit 04a27ccd8d.
2020-09-23 10:19:24 -04:00
Kyle Spearrin 04a27ccd8d
Update pkg to support `open` lib (#167) 2020-09-22 10:06:17 -04:00
Chad Scharf 5558e5c807
bump version (#162) 2020-09-05 21:26:09 -04:00
Oscar Hinton 032dfb533a
Bump Typescript to 2.8.3 (#158) 2020-09-03 14:33:10 -04:00
Oscar Hinton 63b3068954
Upgrade TypeScript (#156) 2020-08-12 15:42:24 -04:00
Kyle Spearrin bd0f28b3be
SSO login (#154)
* support sso login

* update jslib

* set clientid in base login command
2020-08-03 12:30:32 -04:00
Kyle Spearrin c0c368cbfe bump version 2020-05-29 11:10:05 -04:00
Kyle Spearrin 4dfb39c957
update lunr types (#127) 2020-04-14 15:40:20 -04:00