diff --git a/.eslintrc.js b/.eslintrc.js index 0c7785e4b159..34fe33e62dd4 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -588,7 +588,7 @@ module.exports = { files: ['development/**/*.js', 'test/helpers/setup-helper.js'], rules: { 'n/no-process-exit': 'off', - 'n/shebang': 'off', + 'n/hashbang': 'off', }, }, /** diff --git a/.eslintrc.node.js b/.eslintrc.node.js index d2273f055534..564c7f78b2f8 100644 --- a/.eslintrc.node.js +++ b/.eslintrc.node.js @@ -2,6 +2,16 @@ module.exports = { extends: ['@metamask/eslint-config-nodejs'], rules: { 'n/no-process-env': 'off', + // eslint-plugin-n@17 started treating these browser globals as Node builtins + // and `n/hashbang` started flagging existing script headers in this repo. + // Keep prior behavior while we remain on the current shared config stack. + 'n/no-unsupported-features/node-builtins': [ + 'error', + { + ignores: ['navigator', 'Navigator', 'localStorage'], + }, + ], + 'n/hashbang': 'off', // TODO: re-enable these rules 'n/no-sync': 'off', 'n/no-unpublished-import': 'off', diff --git a/.yarnrc.yml b/.yarnrc.yml index 331c9e6295a0..b265f243fa86 100644 --- a/.yarnrc.yml +++ b/.yarnrc.yml @@ -26,29 +26,6 @@ npmAuditIgnoreAdvisories: # We are ignoring this on April 24, 2025 to unblock CI, we will follow with a proper fix or confirmation this does not affect our users - 1104001 - # Issue: `glob` vulnerability, already fixed in the version we're using (v10.5.0) but the - # advisory range hasn't been updated yet. - # URL: https://github.com/advisories/GHSA-5j98-mcp5-4vw2 - - 1109809 - - # Issue: `body-parser` denial of service vulnerability - # Seemingly only impacts v2.2.0, but we're on v1. The advisory range is overly wide. - # The attack vector also does not apply to how we use the package. - # URL: https://github.com/advisories/GHSA-wqch-xfxh-vrr4 - - 1110857 - - # Issue: ajv has ReDoS when using `$data` option - # A lot of our linting tooling relies on old versions of ajv, which proves hard to deal with - # For now, we are ignoring this to unblock CI - # URL: https://github.com/advisories/GHSA-2g4f-4pwh-qvx6 - - 1113214 - - # Issue: minimatch has a ReDoS via repeated wildcards with non-matching literal in pattern - # Only affects dev/build-time dependencies (eslint-plugin-n, glob) — not shipped to users. - # URL: https://github.com/advisories/GHSA-3ppc-4f35-3m26 - - 1113371 - - 1113459 - ### Package Deprecations: # React-tippy brings in popper.js and react-tippy has not been updated in @@ -104,3 +81,7 @@ npmPreapprovedPackages: - 'lavamoat-node' - 'lavamoat' - 'extension-port-stream' + # Temporary bypass for recent minimatch security patch; remove once older than age gate. + - 'minimatch' + # Temporary bypass for serialize-javascript@7.0.3 CVE fix; remove once older than age gate. + - 'serialize-javascript' diff --git a/CHANGELOG.md b/CHANGELOG.md index b70793f5cc0a..55333802a934 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,12 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +## [13.20.1] + +### Fixed + +- Conditionally display delete account confirmation (#40502) + ## [13.20.0] ### Added @@ -1837,7 +1843,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - This changelog was split off with 12.22.0 - All older changes can be found in [docs/CHANGELOG_older.md](https://github.com/MetaMask/metamask-extension/blob/main/docs/CHANGELOG_older.md) -[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v13.20.0...HEAD +[Unreleased]: https://github.com/MetaMask/metamask-extension/compare/v13.20.1...HEAD +[13.20.1]: https://github.com/MetaMask/metamask-extension/compare/v13.20.0...v13.20.1 [13.20.0]: https://github.com/MetaMask/metamask-extension/compare/v13.19.0...v13.20.0 [13.19.0]: https://github.com/MetaMask/metamask-extension/compare/v13.18.1...v13.19.0 [13.18.1]: https://github.com/MetaMask/metamask-extension/compare/v13.18.0...v13.18.1 diff --git a/attribution.txt b/attribution.txt index 439be79a7e34..8be164e83075 100644 --- a/attribution.txt +++ b/attribution.txt @@ -2509,33 +2509,6 @@ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -****************************** - -balanced-match -1.0.2 -(MIT) - -Copyright (c) 2013 Julian Gruber <julian@juliangruber.com> - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies -of the Software, and to permit persons to whom the Software is furnished to do -so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ****************************** bare-addon-resolve @@ -4662,33 +4635,6 @@ programs and associated documentation files created by the Original Author, when distributed with the Software. -****************************** - -brace-expansion -1.1.11 -MIT License - -Copyright (c) 2013 Julian Gruber - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - - ****************************** braces @@ -4999,21 +4945,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -****************************** - -builtin-modules -3.3.0 -MIT License - -Copyright (c) Sindre Sorhus (https://sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ****************************** builtins @@ -6306,30 +6237,6 @@ component-type license: MIT authors: undefined -****************************** - -concat-map -0.0.1 -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ****************************** concat-stream @@ -13737,6 +13644,32 @@ THE SOFTWARE. limitations under the License. +****************************** + +enhanced-resolve +5.19.0 +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining +a copy of this software and associated documentation files (the +'Software'), to deal in the Software without restriction, including +without limitation the rights to use, copy, modify, merge, publish, +distribute, sublicense, and/or sell copies of the Software, and to +permit persons to whom the Software is furnished to do so, subject to +the following conditions: + +The above copyright notice and this permission notice shall be +included in all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, +EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF +MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. +IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY +CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, +TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE +SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. + + ****************************** @ensdomains/content-hash @@ -13940,7 +13873,7 @@ SOFTWARE. ****************************** eslint-compat-utils -0.1.2 +0.5.1 MIT License Copyright (c) 2023 Yosuke Ota @@ -13967,7 +13900,7 @@ SOFTWARE. ****************************** eslint-plugin-es-x -7.5.0 +7.8.0 MIT License Copyright (c) 2018 Toru Nagashima @@ -13994,7 +13927,7 @@ SOFTWARE. ****************************** eslint-plugin-n -16.6.2 +17.24.0 The MIT License (MIT) Copyright (c) 2015 Toru Nagashima @@ -20115,7 +20048,7 @@ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLI ****************************** globals -13.24.0 +15.15.0 MIT License Copyright (c) Sindre Sorhus (https://sindresorhus.com) @@ -20148,6 +20081,33 @@ ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. +****************************** + +globrex +0.1.2 +MIT License + +Copyright (c) 2018 Terkel Gjervig Nielsen + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. + + ****************************** gl-vec3 @@ -21736,21 +21696,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -****************************** - -is-builtin-module -3.2.1 -MIT License - -Copyright (c) Sindre Sorhus (sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ****************************** is-callable @@ -35253,27 +35198,6 @@ minimalistic-crypto-utils license: MIT authors: Fedor Indutny -****************************** - -minimatch -3.1.2 -The ISC License - -Copyright (c) Isaac Z. Schlueter and Contributors - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES -WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF -MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR -ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES -WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN -ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR -IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. - - ****************************** minimist @@ -45881,6 +45805,33 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +****************************** + +tapable +2.3.0 +The MIT License + +Copyright JS Foundation and other contributors + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in +all copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN +THE SOFTWARE. + + ****************************** tar-fs @@ -47051,6 +47002,41 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. +****************************** + +ts-declaration-location +1.0.7 +BSD 3-Clause License + +Copyright (c) 2023, Rebecca Stevens +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + +1. Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + +2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + +3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. + + ****************************** ts-interface-checker @@ -47460,21 +47446,6 @@ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. -****************************** - -type-fest -0.20.2 -MIT License - -Copyright (c) Sindre Sorhus (https:/sindresorhus.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - - ****************************** type-fest diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index a24701ead0be..3810a5c6e67c 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -3877,7 +3877,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "packages": { "process": true, "semver": true @@ -6433,7 +6433,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/browserify/experimental/policy.json b/lavamoat/browserify/experimental/policy.json index a24701ead0be..3810a5c6e67c 100644 --- a/lavamoat/browserify/experimental/policy.json +++ b/lavamoat/browserify/experimental/policy.json @@ -3877,7 +3877,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "packages": { "process": true, "semver": true @@ -6433,7 +6433,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index a24701ead0be..3810a5c6e67c 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -3877,7 +3877,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "packages": { "process": true, "semver": true @@ -6433,7 +6433,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index a24701ead0be..3810a5c6e67c 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -3877,7 +3877,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "packages": { "process": true, "semver": true @@ -6433,7 +6433,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/build-system/policy.json b/lavamoat/build-system/policy.json index a68c5a31a43f..dd231e3ddec4 100644 --- a/lavamoat/build-system/policy.json +++ b/lavamoat/build-system/policy.json @@ -806,7 +806,7 @@ "@babel/core>@babel/template": true, "lavamoat>lavamoat-tofu>@babel/traverse>@babel/types": true, "nock>debug": true, - "lavamoat>lavamoat-tofu>@babel/traverse>globals": true + "@babel/preset-env>@babel/plugin-transform-classes>globals": true } }, "@babel/core>@babel/types": { @@ -905,7 +905,7 @@ "eslint-plugin-prettier": true, "eslint-plugin-react": true, "eslint-plugin-react-hooks": true, - "eslint>globals": true, + "eslint>@eslint/eslintrc>globals": true, "eslint>ignore": true, "eslint>minimatch": true, "mocha>strip-json-comments": true @@ -1781,14 +1781,6 @@ "Buffer": true } }, - "eslint-plugin-n>builtins": { - "globals": { - "process.version": true - }, - "packages": { - "semver": true - } - }, "gulp>gulp-cli>matchdep>micromatch>snapdragon>base>cache-base": { "packages": { "gulp>gulp-cli>matchdep>micromatch>snapdragon>base>cache-base>collection-visit": true, @@ -2526,6 +2518,30 @@ "@metamask/object-multiplex>once": true } }, + "webpack>enhanced-resolve": { + "builtin": { + "module.findPnpApi": true, + "path.basename": true, + "path.posix.dirname": true, + "path.posix.normalize": true, + "path.win32.dirname": true, + "path.win32.normalize": true, + "process.nextTick": true, + "process.versions.pnp": true, + "url": true + }, + "globals": { + "Buffer.isBuffer": true, + "URL": true, + "clearTimeout": true, + "process.cwd": true, + "setTimeout": true + }, + "packages": { + "del>graceful-fs": true, + "webpack>tapable": true + } + }, "gulp-livereload>tiny-lr>body>error": { "builtin": { "assert": true @@ -2708,6 +2724,17 @@ "eslint>natural-compare": true } }, + "eslint-plugin-n>eslint-plugin-es-x>eslint-compat-utils": { + "builtin": { + "fs.existsSync": true, + "path.basename": true, + "path.dirname": true, + "path.extname": true + }, + "globals": { + "process.cwd": true + } + }, "eslint-config-prettier": { "globals": { "process.env.ESLINT_CONFIG_PRETTIER_NO_DEPRECATED": true @@ -2766,13 +2793,14 @@ "eslint-import-resolver-node": true } }, - "eslint-plugin-n>eslint-plugin-es": { + "eslint-plugin-n>eslint-plugin-es-x": { "globals": { "process": true }, "packages": { - "eslint-plugin-n>eslint-plugin-es>eslint-utils": true, - "eslint-plugin-n>eslint-plugin-es>regexpp": true + "eslint>@eslint-community/eslint-utils": true, + "eslint>@eslint-community/regexpp": true, + "eslint-plugin-n>eslint-plugin-es-x>eslint-compat-utils": true } }, "eslint-plugin-import": { @@ -2839,29 +2867,34 @@ }, "eslint-plugin-n": { "builtin": { - "assert": true, - "fs": true, - "path": true, - "url.URL": true, - "url.fileURLToPath": true, - "url.pathToFileURL": true, - "util.format": true, - "util.inspect": true + "fs.existsSync": true, + "fs.readFileSync": true, + "fs.readdirSync": true, + "fs.statSync": true, + "node:module.isBuiltin": true, + "path.basename": true, + "path.dirname": true, + "path.extname": true, + "path.isAbsolute": true, + "path.join": true, + "path.posix.normalize": true, + "path.relative": true, + "path.resolve": true, + "path.sep": true }, "globals": { - "process.cwd": true, - "process.emitWarning": true, - "process.platform": true + "process.cwd": true }, "packages": { - "eslint-plugin-n>builtins": true, - "eslint-plugin-n>eslint-plugin-es": true, - "eslint-plugin-n>eslint-utils": true, + "eslint>@eslint-community/eslint-utils": true, + "webpack>enhanced-resolve": true, + "eslint-plugin-n>eslint-plugin-es-x": true, + "tsx>get-tsconfig": true, + "eslint-plugin-n>globals": true, + "eslint-plugin-n>globrex": true, "eslint>ignore": true, - "depcheck>is-core-module": true, - "eslint>minimatch": true, - "depcheck>resolve": true, - "semver": true + "semver": true, + "typescript": true } }, "eslint-plugin-prettier": { @@ -2940,21 +2973,11 @@ "semver": true } }, - "eslint-plugin-n>eslint-plugin-es>eslint-utils": { - "packages": { - "eslint-plugin-n>eslint-plugin-es>eslint-utils>eslint-visitor-keys": true - } - }, "eslint-plugin-mocha>eslint-utils": { "packages": { "eslint-plugin-mocha>eslint-utils>eslint-visitor-keys": true } }, - "eslint-plugin-n>eslint-utils": { - "packages": { - "eslint-plugin-n>eslint-utils>eslint-visitor-keys": true - } - }, "eslint>espree": { "packages": { "eslint>espree>acorn-jsx": true, @@ -3495,6 +3518,29 @@ "pumpify>pump": true } }, + "tsx>get-tsconfig": { + "builtin": { + "fs": true, + "node:fs": true, + "node:module": true, + "node:path.dirname": true, + "node:path.isAbsolute": true, + "node:path.join": true, + "node:path.posix": true, + "node:path.relative": true, + "node:path.resolve": true, + "os.tmpdir": true, + "path.join": true + }, + "globals": { + "process.cwd": true, + "process.pid": true, + "process.platform": true + }, + "packages": { + "tsx>get-tsconfig>resolve-pkg-maps": true + } + }, "gulp-watch>anymatch>micromatch>parse-glob>glob-base": { "builtin": { "path.dirname": true @@ -3600,6 +3646,11 @@ "del>slash": true } }, + "eslint-plugin-n>globrex": { + "globals": { + "process.platform": true + } + }, "del>graceful-fs": { "builtin": { "assert.equal": true, @@ -7204,6 +7255,11 @@ "tailwindcss>sucrase": true } }, + "webpack>tapable": { + "builtin": { + "util.deprecate": true + } + }, "terser": { "globals": { "Buffer": true, diff --git a/lavamoat/webpack/build/policy-override.json b/lavamoat/webpack/build/policy-override.json index c3bf4dd10d2e..bef5e8391dfe 100644 --- a/lavamoat/webpack/build/policy-override.json +++ b/lavamoat/webpack/build/policy-override.json @@ -12,6 +12,17 @@ }, "native": true }, + "copy-webpack-plugin": { + "packages": { + "copy-webpack-plugin>serialize-javascript": true + } + }, + "copy-webpack-plugin>serialize-javascript": { + "globals": { + "URL": true, + "crypto.getRandomValues": true + } + }, "@swc/core": { "packages": { "@swc/core>@swc/core-darwin-x64": true, diff --git a/lavamoat/webpack/build/policy.json b/lavamoat/webpack/build/policy.json index a55ef79ea6c4..670f35cfd58c 100644 --- a/lavamoat/webpack/build/policy.json +++ b/lavamoat/webpack/build/policy.json @@ -236,7 +236,7 @@ "@babel/core>@babel/template": true, "lavamoat>lavamoat-tofu>@babel/traverse>@babel/types": true, "nock>debug": true, - "lavamoat>lavamoat-tofu>@babel/traverse>globals": true + "@babel/preset-env>@babel/plugin-transform-classes>globals": true } }, "@babel/core>@babel/types": { @@ -1073,6 +1073,7 @@ "chokidar>normalize-path": true, "schema-utils": true, "copy-webpack-plugin>serialize-javascript": true, + "mocha>serialize-javascript": true, "copy-webpack-plugin>tinyglobby": true } }, @@ -1336,7 +1337,9 @@ "builtin": { "module.findPnpApi": true, "path.basename": true, + "path.posix.dirname": true, "path.posix.normalize": true, + "path.win32.dirname": true, "path.win32.normalize": true, "process.nextTick": true, "process.versions.pnp": true, @@ -1346,6 +1349,7 @@ "Buffer.isBuffer": true, "URL": true, "clearTimeout": true, + "process.cwd": true, "setTimeout": true }, "packages": { @@ -2496,11 +2500,6 @@ "string.prototype.matchall>side-channel": true } }, - "crypto-browserify>randombytes": { - "builtin": { - "crypto.randomBytes": true - } - }, "mockttp>body-parser>raw-body": { "builtin": { "async_hooks": true @@ -2787,10 +2786,14 @@ }, "copy-webpack-plugin>serialize-javascript": { "globals": { - "URL": true - }, - "packages": { - "crypto-browserify>randombytes": true + "URL": true, + "crypto.getRandomValues": true + } + }, + "mocha>serialize-javascript": { + "globals": { + "URL": true, + "crypto.getRandomValues": true } }, "webpack-dev-server>serve-index": { @@ -3056,7 +3059,7 @@ "@storybook/test-runner>@storybook/core-common>esbuild": true, "terser-webpack-plugin>jest-worker": true, "schema-utils": true, - "copy-webpack-plugin>serialize-javascript": true, + "mocha>serialize-javascript": true, "terser": true, "html-bundler-webpack-plugin>handlebars>uglify-js": true } diff --git a/lavamoat/webpack/mv2/beta/policy.json b/lavamoat/webpack/mv2/beta/policy.json index 0d5244430acc..549c3349a5f0 100644 --- a/lavamoat/webpack/mv2/beta/policy.json +++ b/lavamoat/webpack/mv2/beta/policy.json @@ -3688,7 +3688,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -6421,7 +6421,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv2/experimental/policy.json b/lavamoat/webpack/mv2/experimental/policy.json index 0d5244430acc..549c3349a5f0 100644 --- a/lavamoat/webpack/mv2/experimental/policy.json +++ b/lavamoat/webpack/mv2/experimental/policy.json @@ -3688,7 +3688,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -6421,7 +6421,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv2/flask/policy.json b/lavamoat/webpack/mv2/flask/policy.json index 0d5244430acc..549c3349a5f0 100644 --- a/lavamoat/webpack/mv2/flask/policy.json +++ b/lavamoat/webpack/mv2/flask/policy.json @@ -3688,7 +3688,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -6421,7 +6421,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv2/main/policy.json b/lavamoat/webpack/mv2/main/policy.json index 0d5244430acc..549c3349a5f0 100644 --- a/lavamoat/webpack/mv2/main/policy.json +++ b/lavamoat/webpack/mv2/main/policy.json @@ -3688,7 +3688,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -6421,7 +6421,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv3/beta/policy.json b/lavamoat/webpack/mv3/beta/policy.json index aad499088a93..dccfed43eb77 100644 --- a/lavamoat/webpack/mv3/beta/policy.json +++ b/lavamoat/webpack/mv3/beta/policy.json @@ -2330,7 +2330,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -4667,7 +4667,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv3/experimental/policy.json b/lavamoat/webpack/mv3/experimental/policy.json index aad499088a93..dccfed43eb77 100644 --- a/lavamoat/webpack/mv3/experimental/policy.json +++ b/lavamoat/webpack/mv3/experimental/policy.json @@ -2330,7 +2330,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -4667,7 +4667,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv3/flask/policy.json b/lavamoat/webpack/mv3/flask/policy.json index aad499088a93..dccfed43eb77 100644 --- a/lavamoat/webpack/mv3/flask/policy.json +++ b/lavamoat/webpack/mv3/flask/policy.json @@ -2330,7 +2330,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -4667,7 +4667,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/lavamoat/webpack/mv3/main/policy.json b/lavamoat/webpack/mv3/main/policy.json index aad499088a93..dccfed43eb77 100644 --- a/lavamoat/webpack/mv3/main/policy.json +++ b/lavamoat/webpack/mv3/main/policy.json @@ -2330,7 +2330,7 @@ "buffer>ieee754": true } }, - "eslint-plugin-n>builtins": { + "@metamask/snaps-utils>validate-npm-package-name>builtins": { "globals": { "process.version": true }, @@ -4667,7 +4667,7 @@ }, "@metamask/snaps-utils>validate-npm-package-name": { "packages": { - "eslint-plugin-n>builtins": true + "@metamask/snaps-utils>validate-npm-package-name>builtins": true } }, "react-markdown>vfile>vfile-message": { diff --git a/package.json b/package.json index 557bbb3346e2..8a530e3e237d 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "metamask-crx", - "version": "13.20.0", + "version": "13.20.1", "private": true, "repository": { "type": "git", @@ -150,7 +150,7 @@ "jest-clean-console-reporter/chalk": "^4.1.2", "chokidar": "^3.6.0", "@types/react": "^17.0.11", - "bn.js": "^5.2.1", + "bn.js": "^5.2.3", "ganache/abstract-level": "1.0.4", "git-url-parse@^12.0.0": "^13.1.0", "glob-parent": "^6.0.2", @@ -173,6 +173,7 @@ "abort-controller@^3.0.0": "patch:abort-controller@npm%3A3.0.0#./.yarn/patches/abort-controller-npm-3.0.0-2f3a9a2bcb.patch", "await-semaphore@^0.1.3": "patch:await-semaphore@npm%3A0.1.3#./.yarn/patches/await-semaphore-npm-0.1.3-b7a0001fab.patch", "eslint@npm:^8.7.0": "patch:eslint@npm%3A8.57.0#~/.yarn/patches/eslint-npm-8.57.0-4286e12a3a.patch", + "eslint-plugin-n@npm:^16.6.2": "^17.24.0", "ethereumjs-util@^7.0.10": "patch:ethereumjs-util@npm%3A7.1.5#./.yarn/patches/ethereumjs-util-npm-7.1.5-5bb4d00000.patch", "gulp-sourcemaps@^3.0.0": "patch:gulp-sourcemaps@npm%3A3.0.0#./.yarn/patches/gulp-sourcemaps-npm-3.0.0-1ae0fbef6d.patch", "inline-source-map@~0.6.0": "patch:inline-source-map@npm%3A0.6.2#./.yarn/patches/inline-source-map-npm-0.6.2-96902459a0.patch", @@ -193,6 +194,7 @@ "async-done@^1.2.0": "patch:async-done@npm%3A1.3.2#./.yarn/patches/async-done-npm-1.3.2-1f0a4a8997.patch", "async-done@^1.2.2": "patch:async-done@npm%3A1.3.2#./.yarn/patches/async-done-npm-1.3.2-1f0a4a8997.patch", "fast-json-patch@^3.1.1": "patch:fast-json-patch@npm%3A3.1.1#./.yarn/patches/fast-json-patch-npm-3.1.1-7e8bb70a45.patch", + "serialize-javascript": "7.0.3", "@types/readable-stream-2@^2.3.15": "npm:@types/readable-stream@^2.3.15", "@types/readable-stream-3@^4.0.4": "npm:@types/readable-stream@^4.0.4", "readable-stream-2@^2.3.3": "npm:readable-stream@^2.3.3", @@ -250,6 +252,7 @@ "@metamask/bridge-status-controller": "64.3.0", "@ledgerhq/hw-transport-webhid@npm:^6.31.0": "patch:@ledgerhq/hw-transport-webhid@npm%3A6.31.0#~/.yarn/patches/@ledgerhq-hw-transport-webhid-npm-6.31.0-efbecf27ab.patch", "fast-xml-parser": "^5.3.6", + "minimatch@npm:^10.1.1": "10.2.4", "@metamask/snaps-controllers": "^18.0.0", "@metamask/assets-controllers@npm:^99.2.0": "patch:@metamask/assets-controllers@npm%3A99.4.0#~/.yarn/patches/@metamask-assets-controllers-npm-99.4.0-13861a06b6.patch", "@metamask/assets-controllers@npm:^99.4.0": "patch:@metamask/assets-controllers@npm%3A99.4.0#~/.yarn/patches/@metamask-assets-controllers-npm-99.4.0-13861a06b6.patch", @@ -638,7 +641,7 @@ "eslint-plugin-jest": "^27.1.5", "eslint-plugin-jsdoc": "41.1.2", "eslint-plugin-mocha": "^10.1.0", - "eslint-plugin-n": "^15.7.0", + "eslint-plugin-n": "^17.24.0", "eslint-plugin-prettier": "^5.5.1", "eslint-plugin-promise": "^6.1.1", "eslint-plugin-react": "^7.37.5", diff --git a/test/e2e/lavamoat-stats.js b/test/e2e/lavamoat-stats.js index 16960a8792f0..f752945a9a1f 100755 --- a/test/e2e/lavamoat-stats.js +++ b/test/e2e/lavamoat-stats.js @@ -1,6 +1,6 @@ #!/usr/bin/env node -/* eslint-disable n/shebang */ +/* eslint-disable n/hashbang */ const path = require('path'); const { promises: fs, constants: fsConstants } = require('fs'); const yargs = require('yargs/yargs'); diff --git a/test/e2e/tests/notifications/mocks.ts b/test/e2e/tests/notifications/mocks.ts index 67019d146070..2f2d16a1b7a0 100644 --- a/test/e2e/tests/notifications/mocks.ts +++ b/test/e2e/tests/notifications/mocks.ts @@ -87,11 +87,11 @@ const mockFeatureAnnouncementResponse = { ...getMockFeatureAnnouncementResponse(), url: /^https:\/\/cdn\.contentful\.com\/.*$/u, }; -const date = new Date(); -date.setMonth(date.getMonth() - 1); +const FEATURE_ANNOUNCEMENT_EXPIRED_MS = 31 * 24 * 60 * 60 * 1000; +const date = new Date(Date.now() - FEATURE_ANNOUNCEMENT_EXPIRED_MS); // eslint-disable-next-line @typescript-eslint/no-explicit-any (mockFeatureAnnouncementResponse.response as any).items[0].sys.createdAt = - date.toString(); + date.toISOString(); export function getMockWalletNotificationItemId(trigger: TRIGGER_TYPES) { return ( diff --git a/test/helpers/file.js b/test/helpers/file.js index 32505cc97448..02f79f834c0d 100644 --- a/test/helpers/file.js +++ b/test/helpers/file.js @@ -1,4 +1,4 @@ -/* eslint-disable n/shebang */ +/* eslint-disable n/hashbang */ const path = require('path'); const { promises: fs, constants: fsConstants } = require('fs'); diff --git a/yarn.lock b/yarn.lock index 787ddc99f180..b65c57018a57 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2780,7 +2780,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0, @eslint-community/eslint-utils@npm:^4.8.0": +"@eslint-community/eslint-utils@npm:^4.1.2, @eslint-community/eslint-utils@npm:^4.2.0, @eslint-community/eslint-utils@npm:^4.4.0, @eslint-community/eslint-utils@npm:^4.5.0, @eslint-community/eslint-utils@npm:^4.8.0": version: 4.9.1 resolution: "@eslint-community/eslint-utils@npm:4.9.1" dependencies: @@ -2791,7 +2791,7 @@ __metadata: languageName: node linkType: hard -"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.6.0, @eslint-community/regexpp@npm:^4.6.1": +"@eslint-community/regexpp@npm:^4.10.0, @eslint-community/regexpp@npm:^4.11.0, @eslint-community/regexpp@npm:^4.12.1, @eslint-community/regexpp@npm:^4.6.1": version: 4.12.2 resolution: "@eslint-community/regexpp@npm:4.12.2" checksum: 10/049b280fddf71dd325514e0a520024969431dc3a8b02fa77476e6820e9122f28ab4c9168c11821f91a27982d2453bcd7a66193356ea84e84fb7c8d793be1ba0c @@ -20247,7 +20247,7 @@ __metadata: languageName: node linkType: hard -"bn.js@npm:^5.2.1": +"bn.js@npm:^5.2.3": version: 5.2.3 resolution: "bn.js@npm:5.2.3" checksum: 10/dfb3927e0d531e6ec4f191597ce6f7f7665310c356fef5f968ada676b8058027f959af42eaa37b5f5c63617e819d3741813025ab15dd71a90f2e74698df0b58e @@ -20874,13 +20874,6 @@ __metadata: languageName: node linkType: hard -"builtin-modules@npm:^3.3.0": - version: 3.3.0 - resolution: "builtin-modules@npm:3.3.0" - checksum: 10/62e063ab40c0c1efccbfa9ffa31873e4f9d57408cb396a2649981a0ecbce56aabc93c28feaccbc5658c95aab2703ad1d11980e62ec2e5e72637404e1eb60f39e - languageName: node - linkType: hard - "builtin-status-codes@npm:^3.0.0": version: 3.0.0 resolution: "builtin-status-codes@npm:3.0.0" @@ -20888,7 +20881,7 @@ __metadata: languageName: node linkType: hard -"builtins@npm:^5.0.0, builtins@npm:^5.0.1": +"builtins@npm:^5.0.0": version: 5.0.1 resolution: "builtins@npm:5.0.1" dependencies: @@ -24292,13 +24285,13 @@ __metadata: languageName: node linkType: hard -"enhanced-resolve@npm:>=5.7.0, enhanced-resolve@npm:^5.16.0, enhanced-resolve@npm:^5.17.4, enhanced-resolve@npm:^5.18.0": - version: 5.18.4 - resolution: "enhanced-resolve@npm:5.18.4" +"enhanced-resolve@npm:>=5.7.0, enhanced-resolve@npm:^5.16.0, enhanced-resolve@npm:^5.17.1, enhanced-resolve@npm:^5.17.4, enhanced-resolve@npm:^5.18.0": + version: 5.19.0 + resolution: "enhanced-resolve@npm:5.19.0" dependencies: graceful-fs: "npm:^4.2.4" - tapable: "npm:^2.2.0" - checksum: 10/dcd477cb694d9cc84109a03269c13d3da0851d50099fd3fa7c56b2867dd720d59c7f1431bd47c9cad2825ad52588bd71d3a68cf1e5ee0bc57551d8a3fab4e6f2 + tapable: "npm:^2.3.0" + checksum: 10/b537d52173bf1ba903c623f96a43ea3b51466ee2b606b2fcca30d73d453fd79c8683dccbb83523de27cd02763c906f11486e2591a4335e6afe49fa5ad6e67b83 languageName: node linkType: hard @@ -24894,12 +24887,14 @@ __metadata: languageName: node linkType: hard -"eslint-compat-utils@npm:^0.1.2": - version: 0.1.2 - resolution: "eslint-compat-utils@npm:0.1.2" +"eslint-compat-utils@npm:^0.5.1": + version: 0.5.1 + resolution: "eslint-compat-utils@npm:0.5.1" + dependencies: + semver: "npm:^7.5.4" peerDependencies: eslint: ">=6.0.0" - checksum: 10/8c273889485ab863f2b6089c36f042dd2d9bf65d219fa256c1991f9466ea8261f3ab753a017a6d8e93bec84abd568fe3e10216f3fda5b41d05e3dce3b2a5e514 + checksum: 10/ac65ac1c6107cf19f63f5fc17cea361c9cb1336be7356f23dbb0fac10979974b4622e13e950be43cbf431801f2c07f7dab448573181ccf6edc0b86d5b5304511 languageName: node linkType: hard @@ -24969,28 +24964,16 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-es-x@npm:^7.5.0": - version: 7.5.0 - resolution: "eslint-plugin-es-x@npm:7.5.0" +"eslint-plugin-es-x@npm:^7.8.0": + version: 7.8.0 + resolution: "eslint-plugin-es-x@npm:7.8.0" dependencies: "@eslint-community/eslint-utils": "npm:^4.1.2" - "@eslint-community/regexpp": "npm:^4.6.0" - eslint-compat-utils: "npm:^0.1.2" + "@eslint-community/regexpp": "npm:^4.11.0" + eslint-compat-utils: "npm:^0.5.1" peerDependencies: eslint: ">=8" - checksum: 10/b0aa59e5a9fe034d6d485969091abfcdc6893bc0b9b145864d29307b03465141cc073bed806d9cb1a343a561362f2d0e9b34526af8fe8b7ca3cd8aa144f3720a - languageName: node - linkType: hard - -"eslint-plugin-es@npm:^4.1.0": - version: 4.1.0 - resolution: "eslint-plugin-es@npm:4.1.0" - dependencies: - eslint-utils: "npm:^2.0.0" - regexpp: "npm:^3.0.0" - peerDependencies: - eslint: ">=4.19.1" - checksum: 10/431c7a6296f6f44d94acfb65c8d00fdd2c1c187d8aa97e1eab1d6780e9ed6cf6b62007fd403509ed5ec788a75cf41c8f1e3174cc16f5cc08b9ea266dc92de68e + checksum: 10/1df8d52c4fadc06854ce801af05b05f2642aa2deb918fb7d37738596eabd70b7f21a22b150b78ec9104bac6a1b6b4fb796adea2364ede91b01d20964849ce5f7 languageName: node linkType: hard @@ -25072,42 +25055,22 @@ __metadata: languageName: node linkType: hard -"eslint-plugin-n@npm:^15.7.0": - version: 15.7.0 - resolution: "eslint-plugin-n@npm:15.7.0" +"eslint-plugin-n@npm:^17.24.0": + version: 17.24.0 + resolution: "eslint-plugin-n@npm:17.24.0" dependencies: - builtins: "npm:^5.0.1" - eslint-plugin-es: "npm:^4.1.0" - eslint-utils: "npm:^3.0.0" - ignore: "npm:^5.1.1" - is-core-module: "npm:^2.11.0" - minimatch: "npm:^3.1.2" - resolve: "npm:^1.22.1" - semver: "npm:^7.3.8" - peerDependencies: - eslint: ">=7.0.0" - checksum: 10/c759f90ca802a6323b5ddab30ec83004bdd1cd620e2a2ff09078f3f5a732b0784e3e12b7cb3374d8464dcc178c7c8cc457c775d81e18c9b4543b5fe4c5995dd0 - languageName: node - linkType: hard - -"eslint-plugin-n@npm:^16.6.2": - version: 16.6.2 - resolution: "eslint-plugin-n@npm:16.6.2" - dependencies: - "@eslint-community/eslint-utils": "npm:^4.4.0" - builtins: "npm:^5.0.1" - eslint-plugin-es-x: "npm:^7.5.0" - get-tsconfig: "npm:^4.7.0" - globals: "npm:^13.24.0" - ignore: "npm:^5.2.4" - is-builtin-module: "npm:^3.2.1" - is-core-module: "npm:^2.12.1" - minimatch: "npm:^3.1.2" - resolve: "npm:^1.22.2" - semver: "npm:^7.5.3" + "@eslint-community/eslint-utils": "npm:^4.5.0" + enhanced-resolve: "npm:^5.17.1" + eslint-plugin-es-x: "npm:^7.8.0" + get-tsconfig: "npm:^4.8.1" + globals: "npm:^15.11.0" + globrex: "npm:^0.1.2" + ignore: "npm:^5.3.2" + semver: "npm:^7.6.3" + ts-declaration-location: "npm:^1.0.6" peerDependencies: - eslint: ">=7.0.0" - checksum: 10/e0f600d03d3a3df57e9a811648b1b534a6d67c90ea9406340ddf3763c2b87cf5ef910b390f787ca5cb27c8d8ff36aad42d70209b54e2a1cb4cc2507ca417229a + eslint: ">=8.23.0" + checksum: 10/bbff1172f7297288d209f167febb3a31747838d5ed8050aa7d1aa2540a49b4f9932828831529f0306f2909e41ae3ae8848c145238a6990eae5a9d128a59b056c languageName: node linkType: hard @@ -25265,15 +25228,6 @@ __metadata: languageName: node linkType: hard -"eslint-utils@npm:^2.0.0": - version: 2.1.0 - resolution: "eslint-utils@npm:2.1.0" - dependencies: - eslint-visitor-keys: "npm:^1.1.0" - checksum: 10/a7e43a5154a16a90c021cabeb160c3668cccbcf6474ccb2a7d7762698582398f3b938c5330909b858ef7c21182edfc9786dbf89ed7b294f51b7659a378bf7cec - languageName: node - linkType: hard - "eslint-utils@npm:^3.0.0": version: 3.0.0 resolution: "eslint-utils@npm:3.0.0" @@ -25292,13 +25246,6 @@ __metadata: languageName: node linkType: hard -"eslint-visitor-keys@npm:^1.1.0": - version: 1.3.0 - resolution: "eslint-visitor-keys@npm:1.3.0" - checksum: 10/595ab230e0fcb52f86ba0986a9a473b9fcae120f3729b43f1157f88f27f8addb1e545c4e3d444185f2980e281ca15be5ada6f65b4599eec227cf30e41233b762 - languageName: node - linkType: hard - "eslint-visitor-keys@npm:^2.0.0, eslint-visitor-keys@npm:^2.1.0": version: 2.1.0 resolution: "eslint-visitor-keys@npm:2.1.0" @@ -27612,7 +27559,7 @@ __metadata: languageName: node linkType: hard -"get-tsconfig@npm:^4.7.0, get-tsconfig@npm:^4.7.5": +"get-tsconfig@npm:^4.7.5, get-tsconfig@npm:^4.8.1": version: 4.13.6 resolution: "get-tsconfig@npm:4.13.6" dependencies: @@ -27956,6 +27903,13 @@ __metadata: languageName: node linkType: hard +"globals@npm:^15.11.0": + version: 15.15.0 + resolution: "globals@npm:15.15.0" + checksum: 10/7f561c87b2fd381b27fc2db7df8a4ea7a9bb378667b8a7193e61fd2ca3a876479174e2a303a74345fbea6e1242e16db48915c1fd3bf35adcf4060a795b425e18 + languageName: node + linkType: hard + "globalthis@npm:^1.0.1, globalthis@npm:^1.0.4": version: 1.0.4 resolution: "globalthis@npm:1.0.4" @@ -28000,6 +27954,13 @@ __metadata: languageName: node linkType: hard +"globrex@npm:^0.1.2": + version: 0.1.2 + resolution: "globrex@npm:0.1.2" + checksum: 10/81ce62ee6f800d823d6b7da7687f841676d60ee8f51f934ddd862e4057316d26665c4edc0358d4340a923ac00a514f8b67c787e28fe693aae16350f4e60d55e9 + languageName: node + linkType: hard + "glogg@npm:^1.0.0": version: 1.0.0 resolution: "glogg@npm:1.0.0" @@ -29316,7 +29277,7 @@ __metadata: languageName: node linkType: hard -"ignore@npm:^5.1.1, ignore@npm:^5.1.8, ignore@npm:^5.2.0, ignore@npm:^5.2.4, ignore@npm:^5.3.1": +"ignore@npm:^5.1.8, ignore@npm:^5.2.0, ignore@npm:^5.3.1, ignore@npm:^5.3.2": version: 5.3.2 resolution: "ignore@npm:5.3.2" checksum: 10/cceb6a457000f8f6a50e1196429750d782afce5680dd878aa4221bd79972d68b3a55b4b1458fc682be978f4d3c6a249046aa0880637367216444ab7b014cfc98 @@ -29773,15 +29734,6 @@ __metadata: languageName: node linkType: hard -"is-builtin-module@npm:^3.2.1": - version: 3.2.1 - resolution: "is-builtin-module@npm:3.2.1" - dependencies: - builtin-modules: "npm:^3.3.0" - checksum: 10/e8f0ffc19a98240bda9c7ada84d846486365af88d14616e737d280d378695c8c448a621dcafc8332dbf0fcd0a17b0763b845400709963fa9151ddffece90ae88 - languageName: node - linkType: hard - "is-callable@npm:^1.2.7": version: 1.2.7 resolution: "is-callable@npm:1.2.7" @@ -29811,7 +29763,7 @@ __metadata: languageName: node linkType: hard -"is-core-module@npm:^2.11.0, is-core-module@npm:^2.12.1, is-core-module@npm:^2.13.0, is-core-module@npm:^2.16.0, is-core-module@npm:^2.16.1, is-core-module@npm:^2.4.0": +"is-core-module@npm:^2.13.0, is-core-module@npm:^2.16.0, is-core-module@npm:^2.16.1, is-core-module@npm:^2.4.0": version: 2.16.1 resolution: "is-core-module@npm:2.16.1" dependencies: @@ -33976,7 +33928,7 @@ __metadata: eslint-plugin-jest: "npm:^27.1.5" eslint-plugin-jsdoc: "npm:41.1.2" eslint-plugin-mocha: "npm:^10.1.0" - eslint-plugin-n: "npm:^15.7.0" + eslint-plugin-n: "npm:^17.24.0" eslint-plugin-prettier: "npm:^5.5.1" eslint-plugin-promise: "npm:^6.1.1" eslint-plugin-react: "npm:^7.37.5" @@ -34373,6 +34325,15 @@ __metadata: languageName: node linkType: hard +"minimatch@npm:10.2.4": + version: 10.2.4 + resolution: "minimatch@npm:10.2.4" + dependencies: + brace-expansion: "npm:^5.0.2" + checksum: 10/aea4874e521c55bb60744685bbffe3d152e5460f84efac3ea936e6bbe2ceba7deb93345fec3f9bb17f7b6946776073a64d40ae32bf5f298ad690308121068a1f + languageName: node + linkType: hard + "minimatch@npm:3.1.2, minimatch@npm:^3.0.2, minimatch@npm:^3.0.4, minimatch@npm:^3.0.5, minimatch@npm:^3.1.1, minimatch@npm:^3.1.2": version: 3.1.2 resolution: "minimatch@npm:3.1.2" @@ -34400,15 +34361,6 @@ __metadata: languageName: node linkType: hard -"minimatch@npm:^10.1.1": - version: 10.2.2 - resolution: "minimatch@npm:10.2.2" - dependencies: - brace-expansion: "npm:^5.0.2" - checksum: 10/e135be7b502ac97c02bcee42ccc1c55dc26dbac036c0f4acde69e42fe339d7fb53fae711e57b3546cb533426382ea492c73a073c7f78832e0453d120d48dd015 - languageName: node - linkType: hard - "minimatch@npm:^9.0.0, minimatch@npm:^9.0.4": version: 9.0.5 resolution: "minimatch@npm:9.0.5" @@ -39124,13 +39076,6 @@ __metadata: languageName: node linkType: hard -"regexpp@npm:^3.0.0": - version: 3.2.0 - resolution: "regexpp@npm:3.2.0" - checksum: 10/3310010895a906873262f4b494fc99bcef1e71ef6720a0532c5999ca586498cbd4a284c8e3c2423f9d1d37512fd08d6064b7564e0e59508cf938f76dd15ace84 - languageName: node - linkType: hard - "regexpu-core@npm:^6.1.1": version: 6.1.1 resolution: "regexpu-core@npm:6.1.1" @@ -39667,7 +39612,7 @@ __metadata: languageName: node linkType: hard -"resolve@npm:^1.1.4, resolve@npm:^1.1.6, resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.17.0, resolve@npm:^1.18.1, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.1, resolve@npm:^1.22.2, resolve@npm:^1.22.4, resolve@npm:^1.22.8, resolve@npm:^1.4.0": +"resolve@npm:^1.1.4, resolve@npm:^1.1.6, resolve@npm:^1.1.7, resolve@npm:^1.10.0, resolve@npm:^1.14.2, resolve@npm:^1.17.0, resolve@npm:^1.18.1, resolve@npm:^1.19.0, resolve@npm:^1.20.0, resolve@npm:^1.22.1, resolve@npm:^1.22.4, resolve@npm:^1.22.8, resolve@npm:^1.4.0": version: 1.22.11 resolution: "resolve@npm:1.22.11" dependencies: @@ -39706,7 +39651,7 @@ __metadata: languageName: node linkType: hard -"resolve@patch:resolve@npm%3A^1.1.4#optional!builtin, resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.1.7#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.18.1#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin, resolve@patch:resolve@npm%3A^1.22.2#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin, resolve@patch:resolve@npm%3A^1.22.8#optional!builtin, resolve@patch:resolve@npm%3A^1.4.0#optional!builtin": +"resolve@patch:resolve@npm%3A^1.1.4#optional!builtin, resolve@patch:resolve@npm%3A^1.1.6#optional!builtin, resolve@patch:resolve@npm%3A^1.1.7#optional!builtin, resolve@patch:resolve@npm%3A^1.10.0#optional!builtin, resolve@patch:resolve@npm%3A^1.14.2#optional!builtin, resolve@patch:resolve@npm%3A^1.17.0#optional!builtin, resolve@patch:resolve@npm%3A^1.18.1#optional!builtin, resolve@patch:resolve@npm%3A^1.19.0#optional!builtin, resolve@patch:resolve@npm%3A^1.20.0#optional!builtin, resolve@patch:resolve@npm%3A^1.22.1#optional!builtin, resolve@patch:resolve@npm%3A^1.22.4#optional!builtin, resolve@patch:resolve@npm%3A^1.22.8#optional!builtin, resolve@patch:resolve@npm%3A^1.4.0#optional!builtin": version: 1.22.11 resolution: "resolve@patch:resolve@npm%3A1.22.11#optional!builtin::version=1.22.11&hash=c3c19d" dependencies: @@ -40648,21 +40593,10 @@ __metadata: languageName: node linkType: hard -"serialize-javascript@npm:6.0.0": - version: 6.0.0 - resolution: "serialize-javascript@npm:6.0.0" - dependencies: - randombytes: "npm:^2.1.0" - checksum: 10/ed3dabfbb565c48c9eb1ca8fe58f0d256902ab70a8a605be634ddd68388d5f728bb0bd1268e94fab628748ba8ad8392f01b05f3cbe1e4878b5c58c669fd3d1b4 - languageName: node - linkType: hard - -"serialize-javascript@npm:^6.0.2": - version: 6.0.2 - resolution: "serialize-javascript@npm:6.0.2" - dependencies: - randombytes: "npm:^2.1.0" - checksum: 10/445a420a6fa2eaee4b70cbd884d538e259ab278200a2ededd73253ada17d5d48e91fb1f4cd224a236ab62ea7ba0a70c6af29fc93b4f3d3078bf7da1c031fde58 +"serialize-javascript@npm:7.0.3": + version: 7.0.3 + resolution: "serialize-javascript@npm:7.0.3" + checksum: 10/ce45e28663ee1fa6f32c408c0a563c4a96e872cdc83dc3064c73126f2412048c6c984bfc1160c40188fcfa06cf5e075f5cc2e3261b0384dc8fdef34675c5adef languageName: node linkType: hard @@ -42641,7 +42575,7 @@ __metadata: languageName: node linkType: hard -"tapable@npm:^2.0.0, tapable@npm:^2.2.0, tapable@npm:^2.2.1, tapable@npm:^2.3.0": +"tapable@npm:^2.0.0, tapable@npm:^2.2.1, tapable@npm:^2.3.0": version: 2.3.0 resolution: "tapable@npm:2.3.0" checksum: 10/496a841039960533bb6e44816a01fffc2a1eb428bb2051ecab9e87adf07f19e1f937566cbbbb09dceff31163c0ffd81baafcad84db900b601f0155dd0b37e9f2 @@ -43250,6 +43184,17 @@ __metadata: languageName: node linkType: hard +"ts-declaration-location@npm:^1.0.6": + version: 1.0.7 + resolution: "ts-declaration-location@npm:1.0.7" + dependencies: + picomatch: "npm:^4.0.2" + peerDependencies: + typescript: ">=4.0.0" + checksum: 10/a7932fc75d41f10c16089f8f5a5c1ea49d6afca30f09c91c1df14d0a8510f72bcb9f8a395c04f060b66b855b6bd7ea4df81b335fb9d21bef402969a672a4afa7 + languageName: node + linkType: hard + "ts-dedent@npm:^2.0.0, ts-dedent@npm:^2.2.0": version: 2.2.0 resolution: "ts-dedent@npm:2.2.0"