1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-11-21 11:35:34 +01:00

[SM-266] Remove fetch, webcrypto and custom-elements polyfills (#3672)

This commit is contained in:
Oscar Hinton 2022-10-27 14:25:10 +02:00 committed by GitHub
parent 4ff1a25634
commit 27426dec31
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 2 additions and 58 deletions

View File

@ -10,6 +10,4 @@ if (process.env.NODE_ENV === "production") {
}
// Other polyfills
require("whatwg-fetch");
require("webcrypto-shim");
require("date-input-polyfill");

View File

@ -36,8 +36,8 @@
@import "~bootstrap/scss/_close";
//@import "~bootstrap/scss/_toasts";
@import "~bootstrap/scss/_modal";
@import "~bootstrap/scss/_tooltip";
@import "~bootstrap/scss/_popover";
// @import "~bootstrap/scss/_tooltip";
// @import "~bootstrap/scss/_popover";
// @import "~bootstrap/scss/_carousel";
// @import "~bootstrap/scss/_spinners";
@import "~bootstrap/scss/_utilities";

50
package-lock.json generated
View File

@ -63,7 +63,6 @@
"sweetalert2": "^10.16.6",
"tldts": "^5.7.84",
"utf-8-validate": "^5.0.9",
"whatwg-fetch": "^3.6.2",
"zone.js": "^0.11.4",
"zxcvbn": "^4.4.2"
},
@ -103,11 +102,9 @@
"@types/papaparse": "^5.3.2",
"@types/proper-lockfile": "^4.1.2",
"@types/retry": "^0.12.2",
"@types/webcrypto": "^0.0.28",
"@types/zxcvbn": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"@webcomponents/custom-elements": "^1.5.0",
"autoprefixer": "^10.4.7",
"buffer": "^6.0.3",
"chromatic": "^6.5.6",
@ -167,7 +164,6 @@
"typescript": "4.6.4",
"url": "^0.11.0",
"util": "^0.12.4",
"webcrypto-shim": "^0.1.7",
"webpack": "^5.64.4",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.9.3",
@ -13245,12 +13241,6 @@
"@types/node": "*"
}
},
"node_modules/@types/webcrypto": {
"version": "0.0.28",
"resolved": "https://registry.npmjs.org/@types/webcrypto/-/webcrypto-0.0.28.tgz",
"integrity": "sha512-jzAoSUvqA+183nJO/Sc73CREQJsv+p77WJdn532GqA3YXQzlwRwHhClVa7U4O8iB2sJSR7G3v6f1mJFNkwA9YQ==",
"dev": true
},
"node_modules/@types/webpack": {
"version": "4.41.32",
"resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.32.tgz",
@ -13880,12 +13870,6 @@
"@xtuc/long": "4.2.2"
}
},
"node_modules/@webcomponents/custom-elements": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@webcomponents/custom-elements/-/custom-elements-1.5.0.tgz",
"integrity": "sha512-c+7jPQCs9h/BYVcZ2Kna/3tsl3A/9EyXfvWjp5RiTDm1OpTcbZaCa1z4RNcTe/hUtXaqn64JjNW1yrWT+rZ8gg==",
"dev": true
},
"node_modules/@webpack-cli/configtest": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz",
@ -42229,12 +42213,6 @@
"node": ">= 8"
}
},
"node_modules/webcrypto-shim": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/webcrypto-shim/-/webcrypto-shim-0.1.7.tgz",
"integrity": "sha512-JAvAQR5mRNRxZW2jKigWMjCMkjSdmP5cColRP1U/pTg69VgHXEi1orv5vVpJ55Zc5MIaPc1aaurzd9pjv2bveg==",
"dev": true
},
"node_modules/webidl-conversions": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",
@ -42697,11 +42675,6 @@
"node": ">=0.10.0"
}
},
"node_modules/whatwg-fetch": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz",
"integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA=="
},
"node_modules/whatwg-mimetype": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",
@ -53105,12 +53078,6 @@
"@types/node": "*"
}
},
"@types/webcrypto": {
"version": "0.0.28",
"resolved": "https://registry.npmjs.org/@types/webcrypto/-/webcrypto-0.0.28.tgz",
"integrity": "sha512-jzAoSUvqA+183nJO/Sc73CREQJsv+p77WJdn532GqA3YXQzlwRwHhClVa7U4O8iB2sJSR7G3v6f1mJFNkwA9YQ==",
"dev": true
},
"@types/webpack": {
"version": "4.41.32",
"resolved": "https://registry.npmjs.org/@types/webpack/-/webpack-4.41.32.tgz",
@ -53605,12 +53572,6 @@
"@xtuc/long": "4.2.2"
}
},
"@webcomponents/custom-elements": {
"version": "1.5.0",
"resolved": "https://registry.npmjs.org/@webcomponents/custom-elements/-/custom-elements-1.5.0.tgz",
"integrity": "sha512-c+7jPQCs9h/BYVcZ2Kna/3tsl3A/9EyXfvWjp5RiTDm1OpTcbZaCa1z4RNcTe/hUtXaqn64JjNW1yrWT+rZ8gg==",
"dev": true
},
"@webpack-cli/configtest": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/@webpack-cli/configtest/-/configtest-1.2.0.tgz",
@ -75589,12 +75550,6 @@
"integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==",
"dev": true
},
"webcrypto-shim": {
"version": "0.1.7",
"resolved": "https://registry.npmjs.org/webcrypto-shim/-/webcrypto-shim-0.1.7.tgz",
"integrity": "sha512-JAvAQR5mRNRxZW2jKigWMjCMkjSdmP5cColRP1U/pTg69VgHXEi1orv5vVpJ55Zc5MIaPc1aaurzd9pjv2bveg==",
"dev": true
},
"webidl-conversions": {
"version": "6.1.0",
"resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-6.1.0.tgz",
@ -75906,11 +75861,6 @@
}
}
},
"whatwg-fetch": {
"version": "3.6.2",
"resolved": "https://registry.npmjs.org/whatwg-fetch/-/whatwg-fetch-3.6.2.tgz",
"integrity": "sha512-bJlen0FcuU/0EMLrdbJ7zOnW6ITZLrZMIarMUVmdKtsGvZna8vxKYaexICWPfZ8qwf9fzNq+UEIZrnSaApt6RA=="
},
"whatwg-mimetype": {
"version": "2.3.0",
"resolved": "https://registry.npmjs.org/whatwg-mimetype/-/whatwg-mimetype-2.3.0.tgz",

View File

@ -67,11 +67,9 @@
"@types/papaparse": "^5.3.2",
"@types/proper-lockfile": "^4.1.2",
"@types/retry": "^0.12.2",
"@types/webcrypto": "^0.0.28",
"@types/zxcvbn": "^4.4.1",
"@typescript-eslint/eslint-plugin": "^5.22.0",
"@typescript-eslint/parser": "^5.22.0",
"@webcomponents/custom-elements": "^1.5.0",
"autoprefixer": "^10.4.7",
"buffer": "^6.0.3",
"chromatic": "^6.5.6",
@ -131,7 +129,6 @@
"typescript": "4.6.4",
"url": "^0.11.0",
"util": "^0.12.4",
"webcrypto-shim": "^0.1.7",
"webpack": "^5.64.4",
"webpack-cli": "^4.9.1",
"webpack-dev-server": "^4.9.3",
@ -187,7 +184,6 @@
"sweetalert2": "^10.16.6",
"tldts": "^5.7.84",
"utf-8-validate": "^5.0.9",
"whatwg-fetch": "^3.6.2",
"zone.js": "^0.11.4",
"zxcvbn": "^4.4.2"
},