1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-22 09:23:21 +01:00

[FLASK] Bump RateLimitController to v3 (#19578)

* Bump RateLimitController to latest

* Regen LavaMoat policies
This commit is contained in:
Frederik Bolding 2023-06-13 15:04:28 +02:00 committed by GitHub
parent 4f4192c6f4
commit be7900e9e9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 32 additions and 38 deletions

View File

@ -894,29 +894,33 @@ export default class MetamaskController extends EventEmitter {
name: 'RateLimitController',
}),
implementations: {
showNativeNotification: (origin, message) => {
const subjectMetadataState = this.controllerMessenger.call(
'SubjectMetadataController:getState',
);
showNativeNotification: {
method: (origin, message) => {
const subjectMetadataState = this.controllerMessenger.call(
'SubjectMetadataController:getState',
);
const originMetadata = subjectMetadataState.subjectMetadata[origin];
const originMetadata = subjectMetadataState.subjectMetadata[origin];
this.platform
._showNotification(originMetadata?.name ?? origin, message)
.catch((error) => {
log.error('Failed to create notification', error);
});
this.platform
._showNotification(originMetadata?.name ?? origin, message)
.catch((error) => {
log.error('Failed to create notification', error);
});
return null;
return null;
},
},
showInAppNotification: (origin, message) => {
this.controllerMessenger.call(
'NotificationController:show',
origin,
message,
);
showInAppNotification: {
method: (origin, message) => {
this.controllerMessenger.call(
'NotificationController:show',
origin,
message,
);
return null;
return null;
},
},
},
});

View File

@ -1849,15 +1849,10 @@
"setTimeout": true
},
"packages": {
"@metamask/rate-limit-controller>@metamask/base-controller": true,
"@metamask/base-controller": true,
"eth-rpc-errors": true
}
},
"@metamask/rate-limit-controller>@metamask/base-controller": {
"packages": {
"immer": true
}
},
"@metamask/rpc-methods-flask": {
"packages": {
"@metamask/key-tree": true,

View File

@ -1849,15 +1849,10 @@
"setTimeout": true
},
"packages": {
"@metamask/rate-limit-controller>@metamask/base-controller": true,
"@metamask/base-controller": true,
"eth-rpc-errors": true
}
},
"@metamask/rate-limit-controller>@metamask/base-controller": {
"packages": {
"immer": true
}
},
"@metamask/rpc-methods-flask": {
"packages": {
"@metamask/key-tree": true,

View File

@ -255,7 +255,7 @@
"@metamask/phishing-controller": "^3.0.0",
"@metamask/post-message-stream": "^6.0.0",
"@metamask/providers": "^10.2.1",
"@metamask/rate-limit-controller": "^2.0.0",
"@metamask/rate-limit-controller": "^3.0.0",
"@metamask/rpc-methods": "^0.32.2",
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.34.0-flask.1",
"@metamask/safe-event-emitter": "^2.0.0",

View File

@ -4555,14 +4555,14 @@ __metadata:
languageName: node
linkType: hard
"@metamask/rate-limit-controller@npm:^2.0.0":
version: 2.0.0
resolution: "@metamask/rate-limit-controller@npm:2.0.0"
"@metamask/rate-limit-controller@npm:^3.0.0":
version: 3.0.0
resolution: "@metamask/rate-limit-controller@npm:3.0.0"
dependencies:
"@metamask/base-controller": ^2.0.0
eth-rpc-errors: ^4.0.0
"@metamask/base-controller": ^3.0.0
eth-rpc-errors: ^4.0.2
immer: ^9.0.6
checksum: da0b3cb6607201b07ee54f81a4ce8ce3ce047acde33c5f483aa0c8c907bcbe32e70944d95cf4f0df5d4b664388be832320d6973cf61cd00e22f81d16ff0ddfd2
checksum: 9bf1a99056303a1a23e3ea1984f2db2635f5a09edc307e114e6246db1addac878f8d8e89be862d2f1ad06248c0d4e4613d648caf191dc42fbdc0d310e6f8896f
languageName: node
linkType: hard
@ -24066,7 +24066,7 @@ __metadata:
"@metamask/phishing-warning": ^2.1.0
"@metamask/post-message-stream": ^6.0.0
"@metamask/providers": ^10.2.1
"@metamask/rate-limit-controller": ^2.0.0
"@metamask/rate-limit-controller": ^3.0.0
"@metamask/rpc-methods": ^0.32.2
"@metamask/rpc-methods-flask": "npm:@metamask/rpc-methods@0.34.0-flask.1"
"@metamask/safe-event-emitter": ^2.0.0