From dbb58263b3c919cb689e35fd35c73fe9595222b9 Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 19 Jun 2026 17:00:31 +0000 Subject: [PATCH 1/3] fix(dlp): downgrade mime to v3 to restore CommonJS compatibility --- dlp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlp/package.json b/dlp/package.json index 2ba79f42e8..b518889d1b 100644 --- a/dlp/package.json +++ b/dlp/package.json @@ -22,7 +22,7 @@ "devDependencies": { "c8": "^10.0.0", "chai": "^4.5.0", - "mime": "^4.0.0", + "mime": "^3.0.0", "mocha": "^10.0.0", "pixelmatch": "^6.0.0", "pngjs": "^7.0.0", From 50f91abe462a31a6e66fde06b48a1af4ea485b4d Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 19 Jun 2026 17:20:48 +0000 Subject: [PATCH 2/3] fix(dlp): downgrade mime and pixelmatch to restore CommonJS compatibility --- dlp/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dlp/package.json b/dlp/package.json index b518889d1b..6408fa818b 100644 --- a/dlp/package.json +++ b/dlp/package.json @@ -24,7 +24,7 @@ "chai": "^4.5.0", "mime": "^3.0.0", "mocha": "^10.0.0", - "pixelmatch": "^6.0.0", + "pixelmatch": "^5.3.0", "pngjs": "^7.0.0", "proxyquire": "^2.1.3", "sinon": "^18.0.0", From 115ebfbfd27270f118616bddb9c727d8147a32c7 Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Fri, 19 Jun 2026 19:09:58 +0000 Subject: [PATCH 3/3] test(dlp): use realistic mock SSN to fix DLP API likelihood filtering --- dlp/inspectWithCustomHotwords.js | 2 +- dlp/system-test/inspect.test.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dlp/inspectWithCustomHotwords.js b/dlp/inspectWithCustomHotwords.js index ea4c0fe6b4..4204278237 100644 --- a/dlp/inspectWithCustomHotwords.js +++ b/dlp/inspectWithCustomHotwords.js @@ -37,7 +37,7 @@ function main(projectId) { ], rows: [ { - values: [{stringValue: '111-11-1111'}, {stringValue: '222-22-2222'}], + values: [{stringValue: '111-11-1111'}, {stringValue: '458-90-3124'}], }, ], }; diff --git a/dlp/system-test/inspect.test.js b/dlp/system-test/inspect.test.js index 3d51f65817..742dfb5e40 100644 --- a/dlp/system-test/inspect.test.js +++ b/dlp/system-test/inspect.test.js @@ -1144,7 +1144,7 @@ describe('inspect', () => { it('should inspect a table excluding findings in a particular row', () => { const output = execSync(`node inspectWithCustomHotwords.js ${projectId}`); assert.match(output, /Findings: 1/); - assert.match(output, /Quote: 222-22-2222/); + assert.match(output, /Quote: 458-90-3124/); assert.notMatch(output, /Quote: 111-11-1111/); });