From 78682ea9d29e673b4a5ab4a3705d0e27536d42a6 Mon Sep 17 00:00:00 2001 From: Alex Donesky Date: Wed, 8 Jun 2022 20:07:43 -0500 Subject: [PATCH] fix lavamoat policy files for drag and drop package (#14901) --- lavamoat/browserify/beta/policy.json | 5 ++++- lavamoat/browserify/flask/policy.json | 3 +++ lavamoat/browserify/main/policy.json | 3 +++ lavamoat/browserify/policy-override.json | 7 +++++++ 4 files changed, 17 insertions(+), 1 deletion(-) diff --git a/lavamoat/browserify/beta/policy.json b/lavamoat/browserify/beta/policy.json index 1a9534d04..5249bd797 100644 --- a/lavamoat/browserify/beta/policy.json +++ b/lavamoat/browserify/beta/policy.json @@ -6176,10 +6176,13 @@ "react-dnd-html5-backend": { "globals": { "Image": true, + "addEventListener": true, + "clearTimeout": true, "console.warn": true, "devicePixelRatio": true, "document": true, "navigator.userAgent": true, + "removeEventListener": true, "safari": true, "setTimeout": true } @@ -6726,4 +6729,4 @@ } } } -} \ No newline at end of file +} diff --git a/lavamoat/browserify/flask/policy.json b/lavamoat/browserify/flask/policy.json index 1a9534d04..1d70e3142 100644 --- a/lavamoat/browserify/flask/policy.json +++ b/lavamoat/browserify/flask/policy.json @@ -6176,10 +6176,13 @@ "react-dnd-html5-backend": { "globals": { "Image": true, + "addEventListener": true, + "clearTimeout": true, "console.warn": true, "devicePixelRatio": true, "document": true, "navigator.userAgent": true, + "removeEventListener": true, "safari": true, "setTimeout": true } diff --git a/lavamoat/browserify/main/policy.json b/lavamoat/browserify/main/policy.json index 1a9534d04..1d70e3142 100644 --- a/lavamoat/browserify/main/policy.json +++ b/lavamoat/browserify/main/policy.json @@ -6176,10 +6176,13 @@ "react-dnd-html5-backend": { "globals": { "Image": true, + "addEventListener": true, + "clearTimeout": true, "console.warn": true, "devicePixelRatio": true, "document": true, "navigator.userAgent": true, + "removeEventListener": true, "safari": true, "setTimeout": true } diff --git a/lavamoat/browserify/policy-override.json b/lavamoat/browserify/policy-override.json index 212074b38..96504e814 100644 --- a/lavamoat/browserify/policy-override.json +++ b/lavamoat/browserify/policy-override.json @@ -31,6 +31,13 @@ "clearTimeout": true } }, + "react-dnd-html5-backend": { + "globals": { + "clearTimeout": true, + "addEventListener": true, + "removeEventListener": true + } + }, "ethers>@ethersproject/random": { "globals": { "crypto.getRandomValues": true