From 1be195a2a7c1efaf2a8403b3a21fa9322d8d38a4 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Mon, 10 Feb 2025 22:49:37 +0100 Subject: [PATCH] Fix react native svg --- front/patches/react-native-svg@15.11.1.patch | 39 +++++++++++++++++++- 1 file changed, 37 insertions(+), 2 deletions(-) diff --git a/front/patches/react-native-svg@15.11.1.patch b/front/patches/react-native-svg@15.11.1.patch index aa9e7177..6197f6a0 100644 --- a/front/patches/react-native-svg@15.11.1.patch +++ b/front/patches/react-native-svg@15.11.1.patch @@ -1,8 +1,11 @@ diff --git a/node_modules/react-native-svg/.bun-tag-55c72d773cdb59fb b/.bun-tag-55c72d773cdb59fb new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 +diff --git a/node_modules/react-native-svg/.bun-tag-f522b4a5929fac99 b/.bun-tag-f522b4a5929fac99 +new file mode 100644 +index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/lib/commonjs/utils/fetchData.js b/lib/commonjs/utils/fetchData.js -index 207b2937d048ca9c22b58dd7be3641b5a7262274..385556e71e6bf0ea1c843c40065520131be59907 100644 +index 207b2937d048ca9c22b58dd7be3641b5a7262274..d6a45c9fd9b69beaf5b3676f5702f71279c7ac84 100644 --- a/lib/commonjs/utils/fetchData.js +++ b/lib/commonjs/utils/fetchData.js @@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", { @@ -23,8 +26,40 @@ index 207b2937d048ca9c22b58dd7be3641b5a7262274..385556e71e6bf0ea1c843c4006552013 }; function dataUriToXml(uri) { try { +diff --git a/lib/module/lib/extract/transform.js b/lib/module/lib/extract/transform.js +index 06c724b760232c93e5ed9d72266a054d5fe65512..760929ccd9ffdee5c27accaf6d3eefaa83f2e721 100644 +--- a/lib/module/lib/extract/transform.js ++++ b/lib/module/lib/extract/transform.js +@@ -1478,8 +1478,6 @@ function peg$parse(input, options) { + throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); + } + } +-module.exports = { +- SyntaxError: peg$SyntaxError, +- parse: peg$parse +-}; ++export const SyntaxError = peg$SyntaxError; ++export const parse = peg$parse; + //# sourceMappingURL=transform.js.map +diff --git a/lib/module/lib/extract/transformToRn.js b/lib/module/lib/extract/transformToRn.js +index e2a7f4ca95728be34c45e55b96ce5ec1f43d14cc..c496d600fc0f91246fb41acfd6fdf1363c193cc9 100644 +--- a/lib/module/lib/extract/transformToRn.js ++++ b/lib/module/lib/extract/transformToRn.js +@@ -1148,9 +1148,7 @@ function peg$parse(input, options) { + throw peg$buildStructuredError(peg$maxFailExpected, peg$maxFailPos < input.length ? input.charAt(peg$maxFailPos) : null, peg$maxFailPos < input.length ? peg$computeLocation(peg$maxFailPos, peg$maxFailPos + 1) : peg$computeLocation(peg$maxFailPos, peg$maxFailPos)); + } + } +-module.exports = { +- StartRules: ['start'], +- SyntaxError: peg$SyntaxError, +- parse: peg$parse +-}; ++export const StartRules = ['start']; ++export const SyntaxError = peg$SyntaxError; ++export const parse = peg$parse; + //# sourceMappingURL=transformToRn.js.map diff --git a/lib/module/utils/fetchData.js b/lib/module/utils/fetchData.js -index 12b68966cbcfd9a18cae66824dfe7aec60d14a80..3d2698c3a982e90b795c35c05cf5efb2910e02c9 100644 +index 12b68966cbcfd9a18cae66824dfe7aec60d14a80..dda9fab51f762500eb3b1b2f84a5a6b0b1fbd4eb 100644 --- a/lib/module/utils/fetchData.js +++ b/lib/module/utils/fetchData.js @@ -1,5 +1,5 @@