From 4e0b6ba5c5937440f8acf579c63b129a0e5c0773 Mon Sep 17 00:00:00 2001 From: Brett Zamir Date: Mon, 10 Apr 2023 02:34:58 +0800 Subject: [PATCH 1/2] Update package.json Haven't tested, but wondering if can work to avoid security issue warnings --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 6a0e5aa..6911c3c 100644 --- a/package.json +++ b/package.json @@ -53,6 +53,6 @@ "dependencies": { "css-color-names": "~1.0.1", "dot": "^1.1.3", - "svgo": "2.6.0" + "svgo": "^3.0.2" } } From 09d4bc6005a7c865b5f06f26cbd1ffc985b79591 Mon Sep 17 00:00:00 2001 From: Joshua Napoli Date: Sun, 11 Jun 2023 18:19:55 -0400 Subject: [PATCH 2/2] Update unit tests --- test/testData/good.svg | 2 +- test/testData/long.svg | 2 +- test/testData/v2-example.svg | 2 +- test/testData/v2-foo-bar-stroke.svg | 2 +- test/testData/v2-foo-bar.svg | 2 +- test/testData/v2-one-color.svg | 2 +- test/testData/xml.svg | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-) diff --git a/test/testData/good.svg b/test/testData/good.svg index 9c6f671..1c05e02 100644 --- a/test/testData/good.svg +++ b/test/testData/good.svg @@ -1 +1 @@ -batmanbatmancomponentcomponent +batmanbatmancomponentcomponent diff --git a/test/testData/long.svg b/test/testData/long.svg index c7b12a7..995b46a 100644 --- a/test/testData/long.svg +++ b/test/testData/long.svg @@ -1 +1 @@ -batmanandrobinforeverbatmanandrobinforevercomponentcomponent +batmanandrobinforeverbatmanandrobinforevercomponentcomponent diff --git a/test/testData/v2-example.svg b/test/testData/v2-example.svg index 5d792fc..ff35973 100644 --- a/test/testData/v2-example.svg +++ b/test/testData/v2-example.svg @@ -1 +1 @@ -foo/far;funfoo/far;funbarbarbazbazmork "mindy"mork "mindy"<∀><∀> +foo/far;funfoo/far;funbarbarbazbazmork "mindy"mork "mindy"<∀><∀> diff --git a/test/testData/v2-foo-bar-stroke.svg b/test/testData/v2-foo-bar-stroke.svg index cbf9a09..02bde61 100644 --- a/test/testData/v2-foo-bar-stroke.svg +++ b/test/testData/v2-foo-bar-stroke.svg @@ -1 +1 @@ -foofoobarbar +foofoobarbar diff --git a/test/testData/v2-foo-bar.svg b/test/testData/v2-foo-bar.svg index 71deae9..b667928 100644 --- a/test/testData/v2-foo-bar.svg +++ b/test/testData/v2-foo-bar.svg @@ -1 +1 @@ -foofoobarbar +foofoobarbar diff --git a/test/testData/v2-one-color.svg b/test/testData/v2-one-color.svg index cde1655..7010347 100644 --- a/test/testData/v2-one-color.svg +++ b/test/testData/v2-one-color.svg @@ -1 +1 @@ -foofoobarbar +foofoobarbar diff --git a/test/testData/xml.svg b/test/testData/xml.svg index 197d8a1..98e80b6 100644 --- a/test/testData/xml.svg +++ b/test/testData/xml.svg @@ -1 +1 @@ -&<>"'&<>"'&<>"'&<>"' +&<>"'&<>"'&<>"'&<>"'