From 9ff3a0ba244c0d5d95f9b0a766cccca54c145d67 Mon Sep 17 00:00:00 2001 From: Jyoti Puri Date: Wed, 28 Feb 2024 20:40:47 +0530 Subject: [PATCH] feat: update PPOM dependency to 1.4.2 (#23219) --- package.json | 2 +- .../__snapshots__/blockaid-banner-alert.test.js.snap | 12 ++++++------ .../blockaid-banner-alert.test.js | 5 +++-- yarn.lock | 10 +++++----- 4 files changed, 15 insertions(+), 14 deletions(-) diff --git a/package.json b/package.json index bc3327a0273a..ceb69703a229 100644 --- a/package.json +++ b/package.json @@ -223,7 +223,7 @@ }, "dependencies": { "@babel/runtime": "^7.23.2", - "@blockaid/ppom_release": "^1.4.1", + "@blockaid/ppom_release": "^1.4.2", "@ensdomains/content-hash": "^2.5.6", "@ethereumjs/common": "^3.1.1", "@ethereumjs/tx": "^4.1.1", diff --git a/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/__snapshots__/blockaid-banner-alert.test.js.snap b/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/__snapshots__/blockaid-banner-alert.test.js.snap index c8ba0efbb9dd..6207402c6d2b 100644 --- a/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/__snapshots__/blockaid-banner-alert.test.js.snap +++ b/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/__snapshots__/blockaid-banner-alert.test.js.snap @@ -50,7 +50,7 @@ exports[`Blockaid Banner Alert should render 'danger' UI when securityAlertRespo Something doesn't look right? @@ -142,7 +142,7 @@ exports[`Blockaid Banner Alert should render 'warning' UI when securityAlertResp Something doesn't look right? @@ -234,7 +234,7 @@ exports[`Blockaid Banner Alert should render 'warning' UI when securityAlertResp Something doesn't look right? @@ -327,7 +327,7 @@ exports[`Blockaid Banner Alert should render details section even when features Something doesn't look right? @@ -433,7 +433,7 @@ exports[`Blockaid Banner Alert should render details when provided 1`] = ` Something doesn't look right? @@ -527,7 +527,7 @@ exports[`Blockaid Banner Alert should render link to report url 1`] = ` Something doesn't look right? diff --git a/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/blockaid-banner-alert.test.js b/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/blockaid-banner-alert.test.js index b34d9d9b0e0a..810c16f7424c 100644 --- a/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/blockaid-banner-alert.test.js +++ b/ui/pages/confirmations/components/security-provider-banner-alert/blockaid-banner-alert/blockaid-banner-alert.test.js @@ -1,6 +1,7 @@ import React from 'react'; import * as Sentry from '@sentry/browser'; import { fireEvent, screen } from '@testing-library/react'; +import BlockaidPackage from '@blockaid/ppom_release/package.json'; import { renderWithProvider } from '../../../../../../test/lib/render-helpers'; import { Severity } from '../../../../../helpers/constants/design-system'; @@ -243,7 +244,7 @@ describe('Blockaid Banner Alert', () => { const elm = getByRole('link', { name: 'Report an issue' }); expect(elm.href).toBe( - 'https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom', + `https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%22${BlockaidPackage.version}%22%2C%22classification%22%3A%22set_approval_for_all%22%2C%22resultType%22%3A%22Warning%22%7D&utm_source=metamask-ppom`, ); }); @@ -264,7 +265,7 @@ describe('Blockaid Banner Alert', () => { const elm = getByRole('link', { name: 'Report an issue' }); expect(elm.href).toBe( - 'https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%221.4.1%22%2C%22classification%22%3A%22error%22%2C%22resultType%22%3A%22Error%22%7D&utm_source=metamask-ppom', + `https://blockaid-false-positive-portal.metamask.io/?data=%7B%22blockaidVersion%22%3A%22${BlockaidPackage.version}%22%2C%22classification%22%3A%22error%22%2C%22resultType%22%3A%22Error%22%7D&utm_source=metamask-ppom`, ); }); }); diff --git a/yarn.lock b/yarn.lock index 05bc18a5bfd0..7ff6dbec9f41 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1683,10 +1683,10 @@ __metadata: languageName: node linkType: hard -"@blockaid/ppom_release@npm:^1.4.1": - version: 1.4.1 - resolution: "@blockaid/ppom_release@npm:1.4.1" - checksum: 6fff1d24cdfe5a1457b7f64b169f225e67ccbed48c3f5d61b4d24514b7b60cf67bbf130808d7b9cd88d490a86d689afd4b90820929d140526fcd8759b3a4bc6b +"@blockaid/ppom_release@npm:^1.4.2": + version: 1.4.2 + resolution: "@blockaid/ppom_release@npm:1.4.2" + checksum: 5cf85e2f1a731036db02e337b9048a05ccf759890acc5b717b7fdce68a85da7a4b36675ab5478f4f29a586ef74af83d0efccba228972c2a806893bb82c8fad54 languageName: node linkType: hard @@ -24037,7 +24037,7 @@ __metadata: "@babel/preset-typescript": "npm:^7.23.2" "@babel/register": "npm:^7.22.15" "@babel/runtime": "npm:^7.23.2" - "@blockaid/ppom_release": "npm:^1.4.1" + "@blockaid/ppom_release": "npm:^1.4.2" "@ensdomains/content-hash": "npm:^2.5.6" "@ethereumjs/common": "npm:^3.1.1" "@ethereumjs/tx": "npm:^4.1.1"