@dr.pogodin/react-native-fs
Advanced tools
Comparing version 2.25.2 to 2.26.0
@@ -134,3 +134,3 @@ "use strict"; | ||
// 1 hour | ||
cacheable: !!options.cacheable, | ||
cacheable: options.cacheable ?? true, | ||
connectionTimeout: options.connectionTimeout || 5000, | ||
@@ -137,0 +137,0 @@ discretionary: !!options.discretionary, |
@@ -93,3 +93,3 @@ import { NativeEventEmitter } from 'react-native'; | ||
// 1 hour | ||
cacheable: !!options.cacheable, | ||
cacheable: options.cacheable ?? true, | ||
connectionTimeout: options.connectionTimeout || 5000, | ||
@@ -96,0 +96,0 @@ discretionary: !!options.discretionary, |
{ | ||
"name": "@dr.pogodin/react-native-fs", | ||
"version": "2.25.2", | ||
"version": "2.26.0", | ||
"description": "Native filesystem access for React Native", | ||
@@ -65,3 +65,3 @@ "main": "lib/commonjs/index", | ||
"react-native-builder-bob": "^0.23.2", | ||
"react-native-windows": "0.74.5", | ||
"react-native-windows": "0.74.7", | ||
"typescript": "^5.4.5" | ||
@@ -68,0 +68,0 @@ }, |
@@ -1251,4 +1251,4 @@ # React Native File System | ||
- `discretionary` — **boolean** — Optional. Allow the OS to control | ||
the timing and speed of the download to improve perceived performance | ||
(iOS only). | ||
the timing and speed of the download to improve perceived performance. This setting may prevent downloading with mobile internet or when the battery is low. Only works when `background` is activated | ||
(iOS only, defaults to _false_). | ||
- `cacheable` — **boolean** — Optional. Whether the download can be | ||
@@ -1255,0 +1255,0 @@ stored in the shared NSURLCache (iOS only, defaults to _true_). |
@@ -176,3 +176,3 @@ import { type EmitterSubscription, NativeEventEmitter } from 'react-native'; | ||
backgroundTimeout: options.backgroundTimeout || 3600000, // 1 hour | ||
cacheable: !!options.cacheable, | ||
cacheable: options.cacheable ?? true, | ||
connectionTimeout: options.connectionTimeout || 5000, | ||
@@ -179,0 +179,0 @@ discretionary: !!options.discretionary, |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
454529