mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
unblock ci: update vuln deps + fix npm registry for snaps firefox (#14437)
* dep-audit-fix for async@2.6.3 * deps - update async for vuln fix and remove patch * deps/ci-yarn-audit - remove outdated ignored vulns * deps/lock - deduplicate async@2 * deps/lock - deduplicate async@2 + remove indirectly used dep * Use regular NPM registry for snaps on Firefox (#14439) * Use regular NPM registry for snaps on FF * Fix linting * Update app/scripts/metamask-controller.js Co-authored-by: Shane <jonas.shane@gmail.com> Co-authored-by: kumavis <kumavis@users.noreply.github.com> Co-authored-by: Shane <jonas.shane@gmail.com> Co-authored-by: Frederik Bolding <frederik.bolding@gmail.com> Co-authored-by: Shane <jonas.shane@gmail.com>
This commit is contained in:
parent
432c88e185
commit
54ac00027b
@ -7,7 +7,7 @@ set -o pipefail
|
|||||||
|
|
||||||
# use `improved-yarn-audit` since that allows for exclude
|
# use `improved-yarn-audit` since that allows for exclude
|
||||||
# exclude 1002401 until we remove use of 3Box, 1002581 until we can find a better solution
|
# exclude 1002401 until we remove use of 3Box, 1002581 until we can find a better solution
|
||||||
yarn run improved-yarn-audit --ignore-dev-deps --min-severity moderate --exclude 1002401,1002581,GHSA-93q8-gq69-wqmw,GHSA-257v-vj4p-3w2h,GHSA-qrpm-p2h7-hrv2
|
yarn run improved-yarn-audit --ignore-dev-deps --min-severity moderate --exclude GHSA-93q8-gq69-wqmw,GHSA-257v-vj4p-3w2h,GHSA-fwr7-v2mv-hh25
|
||||||
audit_status="$?"
|
audit_status="$?"
|
||||||
|
|
||||||
# Use a bitmask to ignore INFO and LOW severity audit results
|
# Use a bitmask to ignore INFO and LOW severity audit results
|
||||||
|
@ -77,7 +77,6 @@ import { MILLISECOND } from '../../shared/constants/time';
|
|||||||
import {
|
import {
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
||||||
MESSAGE_TYPE,
|
MESSAGE_TYPE,
|
||||||
PLATFORM_FIREFOX,
|
|
||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
POLLING_TOKEN_ENVIRONMENT_TYPES,
|
POLLING_TOKEN_ENVIRONMENT_TYPES,
|
||||||
SUBJECT_TYPES,
|
SUBJECT_TYPES,
|
||||||
@ -138,10 +137,6 @@ import {
|
|||||||
///: END:ONLY_INCLUDE_IN
|
///: END:ONLY_INCLUDE_IN
|
||||||
} from './controllers/permissions';
|
} from './controllers/permissions';
|
||||||
|
|
||||||
///: BEGIN:ONLY_INCLUDE_IN(flask)
|
|
||||||
import { getPlatform } from './lib/util';
|
|
||||||
///: END:ONLY_INCLUDE_IN
|
|
||||||
|
|
||||||
export const METAMASK_CONTROLLER_EVENTS = {
|
export const METAMASK_CONTROLLER_EVENTS = {
|
||||||
// Fired after state changes that impact the extension badge (unapproved msg count)
|
// Fired after state changes that impact the extension badge (unapproved msg count)
|
||||||
// The process of updating the badge happens in app/scripts/background.js.
|
// The process of updating the badge happens in app/scripts/background.js.
|
||||||
@ -620,10 +615,7 @@ export default class MetamaskController extends EventEmitter {
|
|||||||
],
|
],
|
||||||
});
|
});
|
||||||
|
|
||||||
const usingFirefox = getPlatform() === PLATFORM_FIREFOX;
|
|
||||||
|
|
||||||
this.snapController = new SnapController({
|
this.snapController = new SnapController({
|
||||||
npmRegistryUrl: usingFirefox ? 'https://registry.npmjs.cf/' : undefined,
|
|
||||||
endowmentPermissionNames: Object.values(EndowmentPermissions),
|
endowmentPermissionNames: Object.values(EndowmentPermissions),
|
||||||
terminateAllSnaps: this.workerController.terminateAllSnaps.bind(
|
terminateAllSnaps: this.workerController.terminateAllSnaps.bind(
|
||||||
this.workerController,
|
this.workerController,
|
||||||
|
@ -6200,9 +6200,9 @@ async@^1.4.2:
|
|||||||
integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=
|
integrity sha1-7GphrlZIDAw8skHJVhjiCJL5Zyo=
|
||||||
|
|
||||||
async@^2.0.1, async@^2.1.2, async@^2.1.4, async@^2.4.0, async@^2.5.0, async@^2.6.0, async@^2.6.1, async@^2.6.2, async@^2.6.3:
|
async@^2.0.1, async@^2.1.2, async@^2.1.4, async@^2.4.0, async@^2.5.0, async@^2.6.0, async@^2.6.1, async@^2.6.2, async@^2.6.3:
|
||||||
version "2.6.3"
|
version "2.6.4"
|
||||||
resolved "https://registry.yarnpkg.com/async/-/async-2.6.3.tgz#d72625e2344a3656e3a3ad4fa749fa83299d82ff"
|
resolved "https://registry.yarnpkg.com/async/-/async-2.6.4.tgz#706b7ff6084664cd7eae713f6f965433b5504221"
|
||||||
integrity sha512-zflvls11DCy+dQWzTW2dzuilv8Z5X/pjfmZOWba6TNIVDm+2UDaJmXSOXlasHKfNBs8oo3M0aT50fDEWfKZjXg==
|
integrity sha512-mzo5dfJYwAn29PeiJ0zvwTo04zj8HDJj0Mn8TD7sno7q12prdbnasKJHhkm2c1LgrhlJ0teaea8860oxi51mGA==
|
||||||
dependencies:
|
dependencies:
|
||||||
lodash "^4.17.14"
|
lodash "^4.17.14"
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user