mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
Upgrade openpgp 5.3.0 to 5.10.1 (#165526)
## Summary Upgrade `openpgp` from `5.3.0` to `5.10.1` Commit log: https://github.com/openpgpjs/openpgpjs/compare/v5.3.0...v5.10.1 There is an incompatibility of `Uint8Array` when using Jest/JSDom with the TextEncoder/TextDecoder from node `util`. `https://github.com/kayahr/text-encoding` has been added as a `devDependency` so it can be used in the polyfill. It provides a working TextEncoder/Decoder for our Jest tests. --------- Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
This commit is contained in:
parent
7d5bb9be50
commit
70c7fc571b
5 changed files with 25 additions and 11 deletions
|
@ -952,7 +952,7 @@
|
|||
"object-hash": "^1.3.1",
|
||||
"object-path-immutable": "^3.1.1",
|
||||
"openai": "^3.3.0",
|
||||
"openpgp": "5.3.0",
|
||||
"openpgp": "5.10.1",
|
||||
"opn": "^5.5.0",
|
||||
"ora": "^4.0.4",
|
||||
"p-limit": "^3.0.1",
|
||||
|
@ -1098,6 +1098,7 @@
|
|||
"@jest/reporters": "^29.6.1",
|
||||
"@jest/transform": "^29.6.1",
|
||||
"@jest/types": "^29.6.1",
|
||||
"@kayahr/text-encoding": "^1.2.0",
|
||||
"@kbn/alerting-api-integration-helpers": "link:x-pack/test/alerting_api_integration/packages/helpers",
|
||||
"@kbn/ambient-common-types": "link:packages/kbn-ambient-common-types",
|
||||
"@kbn/ambient-ftr-types": "link:packages/kbn-ambient-ftr-types",
|
||||
|
|
|
@ -17,9 +17,9 @@ if (!global.URL.hasOwnProperty('createObjectURL')) {
|
|||
|
||||
// https://github.com/jsdom/jsdom/issues/2524
|
||||
if (!global.hasOwnProperty('TextEncoder')) {
|
||||
const { TextEncoder, TextDecoder } = require('util');
|
||||
global.TextEncoder = TextEncoder;
|
||||
global.TextDecoder = TextDecoder;
|
||||
const customTextEncoding = require('@kayahr/text-encoding');
|
||||
global.TextEncoder = customTextEncoding.TextEncoder;
|
||||
global.TextDecoder = customTextEncoding.TextDecoder;
|
||||
}
|
||||
|
||||
// NOTE: We should evaluate removing this once we upgrade to Node 18 and find out if loaders.gl already fixed this usage
|
||||
|
|
|
@ -286,7 +286,8 @@
|
|||
"tough-cookie",
|
||||
"@types/tough-cookie",
|
||||
"xml-crypto",
|
||||
"@types/xml-crypto"
|
||||
"@types/xml-crypto",
|
||||
"@kayahr/text-encoding"
|
||||
],
|
||||
"reviewers": [
|
||||
"team:kibana-security"
|
||||
|
@ -611,4 +612,4 @@
|
|||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
}
|
||||
|
|
|
@ -78,7 +78,7 @@ export const DEV_ONLY_LICENSE_ALLOWED = ['MPL-2.0'];
|
|||
// there are some licenses which should not be globally allowed
|
||||
// but can be brought in on a per-package basis
|
||||
export const PER_PACKAGE_ALLOWED_LICENSES = {
|
||||
'openpgp@5.3.0': ['LGPL-3.0+'],
|
||||
'openpgp@5.10.1': ['LGPL-3.0+'],
|
||||
};
|
||||
// Globally overrides a license for a given package@version
|
||||
export const LICENSE_OVERRIDES = {
|
||||
|
|
20
yarn.lock
20
yarn.lock
|
@ -2950,6 +2950,13 @@
|
|||
resolved "https://registry.yarnpkg.com/@juggle/resize-observer/-/resize-observer-3.4.0.tgz#08d6c5e20cf7e4cc02fd181c4b0c225cd31dbb60"
|
||||
integrity sha512-dfLbk+PwWvFzSxwk3n5ySL0hfBog779o8h68wK/7/APo/7cgyWp5jcXockbxdk5kFRkbeXWm4Fbi9FrdN381sA==
|
||||
|
||||
"@kayahr/text-encoding@^1.2.0":
|
||||
version "1.2.0"
|
||||
resolved "https://registry.yarnpkg.com/@kayahr/text-encoding/-/text-encoding-1.2.0.tgz#9d75de6b40d7694e524c8ce39fc6e08994680746"
|
||||
integrity sha512-61R84DjOQvO4bakOl4Vwuw0wU3FLbFtfUf4ApJquQ2+N3AY2VlN0j9te8rpGFHx2mzvhWKetyDgVZiLeU2/dhA==
|
||||
dependencies:
|
||||
tslib "^2.5.2"
|
||||
|
||||
"@kbn/aad-fixtures-plugin@link:x-pack/test/alerting_api_integration/common/plugins/aad":
|
||||
version "0.0.0"
|
||||
uid ""
|
||||
|
@ -23394,10 +23401,10 @@ opener@^1.5.2:
|
|||
resolved "https://registry.yarnpkg.com/opener/-/opener-1.5.2.tgz#5d37e1f35077b9dcac4301372271afdeb2a13598"
|
||||
integrity sha512-ur5UIdyw5Y7yEj9wLzhqXiy6GZ3Mwx0yGI+5sMn2r0N0v3cKJvUmFH5yPP+WXh9e0xfyzyJX95D8l088DNFj7A==
|
||||
|
||||
openpgp@5.3.0:
|
||||
version "5.3.0"
|
||||
resolved "https://registry.yarnpkg.com/openpgp/-/openpgp-5.3.0.tgz#e8fc97e538865b8c095dbd91c7be4203bd1dd1df"
|
||||
integrity sha512-qjCj0vYpV3dmmkE+vURiJ5kVAJwrMk8BPukvpWJiHcTNWKwPVsRS810plIe4klIcHVf1ScgUQwqtBbv99ff+kQ==
|
||||
openpgp@5.10.1:
|
||||
version "5.10.1"
|
||||
resolved "https://registry.yarnpkg.com/openpgp/-/openpgp-5.10.1.tgz#3b137470187b79281719ced16fb9e60b822cfd24"
|
||||
integrity sha512-SR5Ft+ej51d0+p53ld5Ney0Yiz0y8Mh1YYLJrvpRMbTaNhvS1QcDX0Oq1rW9sjBnQXtgrpWw2Zve3rm7K5C/pw==
|
||||
dependencies:
|
||||
asn1.js "^5.0.0"
|
||||
|
||||
|
@ -29154,6 +29161,11 @@ tslib@^2.0.0, tslib@^2.0.1, tslib@^2.0.3, tslib@^2.1.0, tslib@^2.3.1, tslib@^2.4
|
|||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.4.1.tgz#0d0bfbaac2880b91e22df0768e55be9753a5b17e"
|
||||
integrity sha512-tGyy4dAjRIEwI7BzsB0lynWgOpfqjUdq91XXAlIWD2OwKBH7oCl/GZG/HT4BOHrTlPMOASlMQ7veyTqpmRcrNA==
|
||||
|
||||
tslib@^2.5.2:
|
||||
version "2.6.2"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae"
|
||||
integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==
|
||||
|
||||
tslib@~2.1.0:
|
||||
version "2.1.0"
|
||||
resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.1.0.tgz#da60860f1c2ecaa5703ab7d39bc05b6bf988b97a"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue