1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-08 11:33:15 +00:00

Feature/password protected export (#689)

* Simplify password protected file format

* no items to import is not an error

* Await inner importer

* Add export format type

* Error if import file is password protected

* Update tests

* Test password protected with normat json importer

* Simplify imports

* Ignore code coverage directory

* Expand importer options  without changing display options

* Import password require import error handling

* Use interface

* Fix curlies

* linter fixes

* Add null of empty util

* Lint fixes

* run prettier

* Move import options to separate enum file

* Fix imports
This commit is contained in:
Matt Gibson
2022-02-22 21:02:07 -06:00
committed by GitHub
parent 842d6cd001
commit 1fb3d54014
16 changed files with 194 additions and 233 deletions

View File

@@ -307,6 +307,10 @@ export class Utils {
return str == null || typeof str !== "string" || str.trim() === "";
}
static isNullOrEmpty(str: string): boolean {
return str == null || typeof str !== "string" || str == "";
}
static nameOf<T>(name: string & keyof T) {
return name;
}