diff options
author | dan <dan.abramov@gmail.com> | 2024-12-16 15:42:29 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-12-16 15:42:29 +0000 |
commit | e4e5a589b135e05187772a6961fbaff0cd5f21be (patch) | |
tree | 6cbead9cb3c6987803dc56b79692886f0ee2c0b2 /patches | |
parent | b1b6affb715326402674f6d6457dbe45288cbb2a (diff) | |
download | voidsky-e4e5a589b135e05187772a6961fbaff0cd5f21be.tar.zst |
Fix video uploads on native (#7126)
* Fix duplicate expo-modules-core * Patch expo/expo#33621
Diffstat (limited to 'patches')
-rw-r--r-- | patches/expo-modules-core+2.1.1.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/patches/expo-modules-core+2.1.1.patch b/patches/expo-modules-core+2.1.1.patch index f3d9bfd14..5695b8f44 100644 --- a/patches/expo-modules-core+2.1.1.patch +++ b/patches/expo-modules-core+2.1.1.patch @@ -13,3 +13,23 @@ index 47c4d15..afe138d 100644 // Check for Content-Type val skipContentTypes = listOf( "text/event-stream", // Server Sent Events +diff --git a/node_modules/expo-modules-core/src/uuid/uuid.ts b/node_modules/expo-modules-core/src/uuid/uuid.ts +index 148beac..fabdff5 100644 +--- a/node_modules/expo-modules-core/src/uuid/uuid.ts ++++ b/node_modules/expo-modules-core/src/uuid/uuid.ts +@@ -5,6 +5,7 @@ const nativeUuidv4 = globalThis?.expo?.uuidv4; + const nativeUuidv5 = globalThis?.expo?.uuidv5; + + function uuidv4(): string { ++ const nativeUuidv4 = globalThis?.expo?.uuidv4; + if (!nativeUuidv4) { + throw Error( + "Native UUID version 4 generator implementation wasn't found in `expo-modules-core`" +@@ -23,6 +24,7 @@ function uuidv5(name: string, namespace: string | number[]) { + throw new Error('`namespace` must be a valid UUID string or an Array of 16 byte values'); + } + ++ const nativeUuidv5 = globalThis?.expo?.uuidv5; + if (!nativeUuidv5) { + throw Error("Native UUID type 5 generator implementation wasn't found in `expo-modules-core`"); + } |