@react-three/fiber 8.14.0 → 8.14.1

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/CHANGELOG.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # @react-three/fiber
2
2
 
3
+ ## 8.14.1
4
+
5
+ ### Patch Changes
6
+
7
+ - c99907bf: fix(native): prefer local uri for fs
8
+
3
9
  ## 8.14.0
4
10
 
5
11
  ### Minor Changes
@@ -410,8 +410,8 @@ function polyfills() {
410
410
  let uri = asset.localUri || asset.uri;
411
411
 
412
412
  // Make FS paths web-safe
413
- if (asset.uri.startsWith('file://')) {
414
- const data = await fs__namespace.readAsStringAsync(asset.uri, {
413
+ if (uri.startsWith('file://')) {
414
+ const data = await fs__namespace.readAsStringAsync(uri, {
415
415
  encoding: fs__namespace.EncodingType.Base64
416
416
  });
417
417
  uri = `data:application/octet-stream;base64,${data}`;
@@ -410,8 +410,8 @@ function polyfills() {
410
410
  let uri = asset.localUri || asset.uri;
411
411
 
412
412
  // Make FS paths web-safe
413
- if (asset.uri.startsWith('file://')) {
414
- const data = await fs__namespace.readAsStringAsync(asset.uri, {
413
+ if (uri.startsWith('file://')) {
414
+ const data = await fs__namespace.readAsStringAsync(uri, {
415
415
  encoding: fs__namespace.EncodingType.Base64
416
416
  });
417
417
  uri = `data:application/octet-stream;base64,${data}`;
@@ -385,8 +385,8 @@ function polyfills() {
385
385
  let uri = asset.localUri || asset.uri;
386
386
 
387
387
  // Make FS paths web-safe
388
- if (asset.uri.startsWith('file://')) {
389
- const data = await fs.readAsStringAsync(asset.uri, {
388
+ if (uri.startsWith('file://')) {
389
+ const data = await fs.readAsStringAsync(uri, {
390
390
  encoding: fs.EncodingType.Base64
391
391
  });
392
392
  uri = `data:application/octet-stream;base64,${data}`;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@react-three/fiber",
3
- "version": "8.14.0",
3
+ "version": "8.14.1",
4
4
  "description": "A React renderer for Threejs",
5
5
  "keywords": [
6
6
  "react",