mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 01:39:44 +01:00
34375a57e5
* security-prov: isFlaggedSecurityProviderResponse * security-prov: create shared/modules/util * security prov: rn isFlagged -> isSuspcious - util fn returns true if response is not verified and flagged * security prov: add util test and support undefined param * security prov: reorg util fn - no logic changes
14 lines
401 B
TypeScript
14 lines
401 B
TypeScript
/**
|
|
* @typedef {object} SecurityProviderMessageSeverity
|
|
* @property {0} NOT_MALICIOUS - Indicates message is not malicious
|
|
* @property {1} MALICIOUS - Indicates message is malicious
|
|
* @property {2} NOT_SAFE - Indicates message is not safe
|
|
*/
|
|
|
|
/** @type {SecurityProviderMessageSeverity} */
|
|
export const SECURITY_PROVIDER_MESSAGE_SEVERITY = {
|
|
NOT_MALICIOUS: 0,
|
|
MALICIOUS: 1,
|
|
NOT_SAFE: 2,
|
|
};
|