@uploadista/react-native-bare 0.0.20 → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -2,15 +2,15 @@
|
|
|
2
2
|
"name": "@uploadista/react-native-bare",
|
|
3
3
|
"type": "module",
|
|
4
4
|
"description": "Bare React Native Client for Uploadista",
|
|
5
|
-
"version": "0.0
|
|
5
|
+
"version": "0.1.0",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"author": "Uploadista",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./src/index.ts"
|
|
10
10
|
},
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@uploadista/client-core": "0.0
|
|
13
|
-
"@uploadista/react-native-core": "0.0
|
|
12
|
+
"@uploadista/client-core": "0.1.0",
|
|
13
|
+
"@uploadista/react-native-core": "0.1.0"
|
|
14
14
|
},
|
|
15
15
|
"peerDependencies": {
|
|
16
16
|
"js-base64": ">=3.7.0",
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
},
|
|
37
37
|
"devDependencies": {
|
|
38
38
|
"@types/react": ">=18.0.0",
|
|
39
|
-
"tsdown": "0.
|
|
40
|
-
"@uploadista/typescript-config": "0.0
|
|
39
|
+
"tsdown": "0.19.0",
|
|
40
|
+
"@uploadista/typescript-config": "0.1.0"
|
|
41
41
|
},
|
|
42
42
|
"scripts": {
|
|
43
43
|
"build": "tsc --noEmit && tsdown",
|
|
@@ -52,7 +52,10 @@ async function computeFingerprintFromUri(uri: string): Promise<string> {
|
|
|
52
52
|
}
|
|
53
53
|
|
|
54
54
|
// Read the entire file as base64
|
|
55
|
-
const base64String = await RNFetchBlob.fs.readFile(
|
|
55
|
+
const base64String = await RNFetchBlob.fs.readFile(
|
|
56
|
+
normalizedPath,
|
|
57
|
+
"base64",
|
|
58
|
+
);
|
|
56
59
|
|
|
57
60
|
// Convert base64 to Uint8Array
|
|
58
61
|
const uint8Array = base64ToUint8Array(base64String);
|