1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-11-22 09:57:02 +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,7 +894,8 @@ export default class MetamaskController extends EventEmitter {
name: 'RateLimitController', name: 'RateLimitController',
}), }),
implementations: { implementations: {
showNativeNotification: (origin, message) => { showNativeNotification: {
method: (origin, message) => {
const subjectMetadataState = this.controllerMessenger.call( const subjectMetadataState = this.controllerMessenger.call(
'SubjectMetadataController:getState', 'SubjectMetadataController:getState',
); );
@ -909,7 +910,9 @@ export default class MetamaskController extends EventEmitter {
return null; return null;
}, },
showInAppNotification: (origin, message) => { },
showInAppNotification: {
method: (origin, message) => {
this.controllerMessenger.call( this.controllerMessenger.call(
'NotificationController:show', 'NotificationController:show',
origin, origin,
@ -919,6 +922,7 @@ export default class MetamaskController extends EventEmitter {
return null; return null;
}, },
}, },
},
}); });
const cronjobControllerMessenger = this.controllerMessenger.getRestricted({ const cronjobControllerMessenger = this.controllerMessenger.getRestricted({
name: 'CronjobController', name: 'CronjobController',

View File

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

View File

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

View File

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

View File

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