mirror of
https://github.com/bitwarden/browser
synced 2025-12-10 05:13:29 +00:00
[PS-1123] Improve hostname and domain retrieval (#3168)
* Add test cases from previous PR https://github.com/bitwarden/jslib/pull/547 * Install tldts as replacement for tldjs * Use tldts for hostname and domain retrieval/validation * Remove usage of old tldjs.noop-implementation * Add handling of about protocol * Remove usage of tldEndingRegex and use tldts check instead * Uninstall @types/tldjs and tldjs * Updated package-lock.json * Fix accessibility cookie check * Rename loginUriView.spec to login-uri-view.spec * Add test for getDomain failing file links * getHostName - Return null when given, data, about or file links
This commit is contained in:
committed by
GitHub
parent
94e9744d06
commit
8c59eef257
47
apps/cli/package-lock.json
generated
47
apps/cli/package-lock.json
generated
@@ -32,7 +32,7 @@
|
||||
"papaparse": "^5.3.2",
|
||||
"proper-lockfile": "^4.1.2",
|
||||
"rxjs": "^7.5.5",
|
||||
"tldjs": "^2.3.1",
|
||||
"tldts": "^5.7.84",
|
||||
"zxcvbn": "^4.4.2"
|
||||
},
|
||||
"bin": {
|
||||
@@ -1433,11 +1433,6 @@
|
||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
|
||||
"integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="
|
||||
},
|
||||
"node_modules/punycode": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
|
||||
"integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ=="
|
||||
},
|
||||
"node_modules/qs": {
|
||||
"version": "6.10.5",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.10.5.tgz",
|
||||
@@ -1715,18 +1710,22 @@
|
||||
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
|
||||
"integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
|
||||
},
|
||||
"node_modules/tldjs": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/tldjs/-/tldjs-2.3.1.tgz",
|
||||
"integrity": "sha512-W/YVH/QczLUxVjnQhFC61Iq232NWu3TqDdO0S/MtXVz4xybejBov4ud+CIwN9aYqjOecEqIy0PscGkwpG9ZyTw==",
|
||||
"hasInstallScript": true,
|
||||
"node_modules/tldts": {
|
||||
"version": "5.7.84",
|
||||
"resolved": "https://registry.npmjs.org/tldts/-/tldts-5.7.84.tgz",
|
||||
"integrity": "sha512-PGkhyObqEEntI/xUDJdagtvNW+O7+5j8vbXSOXL+563At8gH/4LHxHjdPNv7qrahYuL6y6ZgjBxcvWdut7/LtA==",
|
||||
"dependencies": {
|
||||
"punycode": "^1.4.1"
|
||||
"tldts-core": "^5.7.84"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">= 4"
|
||||
"bin": {
|
||||
"tldts": "bin/cli.js"
|
||||
}
|
||||
},
|
||||
"node_modules/tldts-core": {
|
||||
"version": "5.7.84",
|
||||
"resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-5.7.84.tgz",
|
||||
"integrity": "sha512-1qKxwSDjmWdqG81cnXGvKI+FHPiVRT6w5DORjp2+YVqDdzFUZO0oQoWu0zbDtWA6HXVk+B15yY9DKbVKZ6fRLg=="
|
||||
},
|
||||
"node_modules/tmp": {
|
||||
"version": "0.0.33",
|
||||
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
|
||||
@@ -3035,11 +3034,6 @@
|
||||
"resolved": "https://registry.npmjs.org/psl/-/psl-1.8.0.tgz",
|
||||
"integrity": "sha512-RIdOzyoavK+hA18OGGWDqUTsCLhtA7IcZ/6NCs4fFJaHBDab+pDDmDIByWFRQJq2Cd7r1OoQxBGKOaztq+hjIQ=="
|
||||
},
|
||||
"punycode": {
|
||||
"version": "1.4.1",
|
||||
"resolved": "https://registry.npmjs.org/punycode/-/punycode-1.4.1.tgz",
|
||||
"integrity": "sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ=="
|
||||
},
|
||||
"qs": {
|
||||
"version": "6.10.5",
|
||||
"resolved": "https://registry.npmjs.org/qs/-/qs-6.10.5.tgz",
|
||||
@@ -3258,14 +3252,19 @@
|
||||
"resolved": "https://registry.npmjs.org/through/-/through-2.3.8.tgz",
|
||||
"integrity": "sha1-DdTJ/6q8NXlgsbckEV1+Doai4fU="
|
||||
},
|
||||
"tldjs": {
|
||||
"version": "2.3.1",
|
||||
"resolved": "https://registry.npmjs.org/tldjs/-/tldjs-2.3.1.tgz",
|
||||
"integrity": "sha512-W/YVH/QczLUxVjnQhFC61Iq232NWu3TqDdO0S/MtXVz4xybejBov4ud+CIwN9aYqjOecEqIy0PscGkwpG9ZyTw==",
|
||||
"tldts": {
|
||||
"version": "5.7.84",
|
||||
"resolved": "https://registry.npmjs.org/tldts/-/tldts-5.7.84.tgz",
|
||||
"integrity": "sha512-PGkhyObqEEntI/xUDJdagtvNW+O7+5j8vbXSOXL+563At8gH/4LHxHjdPNv7qrahYuL6y6ZgjBxcvWdut7/LtA==",
|
||||
"requires": {
|
||||
"punycode": "^1.4.1"
|
||||
"tldts-core": "^5.7.84"
|
||||
}
|
||||
},
|
||||
"tldts-core": {
|
||||
"version": "5.7.84",
|
||||
"resolved": "https://registry.npmjs.org/tldts-core/-/tldts-core-5.7.84.tgz",
|
||||
"integrity": "sha512-1qKxwSDjmWdqG81cnXGvKI+FHPiVRT6w5DORjp2+YVqDdzFUZO0oQoWu0zbDtWA6HXVk+B15yY9DKbVKZ6fRLg=="
|
||||
},
|
||||
"tmp": {
|
||||
"version": "0.0.33",
|
||||
"resolved": "https://registry.npmjs.org/tmp/-/tmp-0.0.33.tgz",
|
||||
|
||||
@@ -67,7 +67,7 @@
|
||||
"papaparse": "^5.3.2",
|
||||
"proper-lockfile": "^4.1.2",
|
||||
"rxjs": "^7.5.5",
|
||||
"tldjs": "^2.3.1",
|
||||
"tldts": "^5.7.84",
|
||||
"zxcvbn": "^4.4.2"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user