1
0
mirror of https://github.com/bitwarden/jslib synced 2026-01-09 03:53:18 +00:00
Commit Graph

21 Commits

Author SHA1 Message Date
Daniel James Smith
89792dda27 Merge branch 'master' of https://github.com/bitwarden/jslib into improve-hostname-and-domain-retrieval 2022-03-11 12:19:39 +01:00
Matt Gibson
1fb3d54014 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
2022-02-23 13:02:07 +10:00
Oscar Hinton
60878cd4ed Add eslint (#610) 2022-02-22 15:39:11 +01:00
Daniel James Smith
d68c1dafaf Remove usage/detection of NativeScript (#566)
* Remove usage of NativeScript

* npm prettier run

* Removing type from Utils.global
2021-12-22 19:46:25 +01:00
Daniel James Smith
b73fbf75e3 Changes after npm run prettier 2021-12-16 15:13:39 +01:00
Oscar Hinton
193434461d Apply Prettier (#581) 2021-12-16 13:36:21 +01:00
Daniel James Smith
fde063f51a Add try/catch around tldts method calls 2021-12-06 20:09:43 +01:00
Daniel James Smith
4240eaeb23 Revert "Make validHosts private"
This reverts commit 6b527b77b2.
2021-12-06 20:07:29 +01:00
Daniel James Smith
6b527b77b2 Make validHosts private 2021-12-06 20:05:31 +01:00
Daniel James Smith
492030da4d Simplify check of url for null and whitespace 2021-12-06 20:05:09 +01:00
Daniel James Smith
1e9419747a Remove validIpAddress method 2021-12-06 20:02:44 +01:00
Daniel James Smith
016e978d1e Remove tldjs, noop's and fallback logic 2021-12-06 20:01:49 +01:00
Daniel James Smith
ecb4ac1fd9 Added parsing of urls with tldts with fallback to tldjs 2021-11-11 16:48:35 +01:00
Kyle Spearrin
c4fb4a35ab don't allow @ character in uriString prefixing (#538) 2021-11-09 11:16:40 -05:00
Oscar Hinton
f09fb69882 Remove empty catch blocks, and update tslint rule (#513) 2021-10-19 10:32:14 +02:00
Matt Gibson
562e1fe459 Feature/split manage collections permission (#504)
* Split manage collections permissions

* Convert camel to pascal case for element id -> name
2021-10-01 07:50:30 -05:00
Thomas Rittson
c694591e4c Use UrlB64 encoding for auth-email header (#450) 2021-08-11 06:33:15 +10:00
Matt Gibson
65c998dd0d Iterate over enum values (#445) 2021-07-30 13:57:42 -05:00
Oscar Hinton
75fff66f98 Move regexpEmojiPresentation to Utils class (#426) 2021-07-08 16:40:10 +02:00
Thomas Rittson
9ee31ad2fb Improve URL parsing (#411)
* Check hostname is valid in getDomain

* fix linting

* Update noop implementation

* Fix tests

* Fix tests
2021-06-23 06:00:14 +10:00
Oscar Hinton
1016bbfb9e Split jslib into multiple modules (#363)
* Split jslib into multiple modules
2021-06-03 18:58:57 +02:00