react-native-blob-util 0.17.0 → 0.17.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/README.md CHANGED
@@ -12,7 +12,7 @@ The project will be continued in this repository. React-Native-Blob-Util is full
12
12
 
13
13
  # Version Compatibility Warning
14
14
 
15
- react-native-blob-util version **0.17.0** and up is only compatible with react native **0.64** and up.
15
+ react-native-blob-util version **0.17.0** and up is only compatible with react native **0.65** and up.
16
16
 
17
17
  react-native-blob-util version **0.10.16** and up is only compatible with react native **0.60** and up.
18
18
 
@@ -27,7 +27,7 @@ public class MimeType {
27
27
  public static String getFullFileName(String name, String mimeType) {
28
28
  // Prior to API 29, MimeType.BINARY_FILE has no file extension
29
29
  String ext = MimeType.getExtensionFromMimeType(mimeType);
30
- if ((ext == null || ext.isEmpty()) || name.endsWith("." + "ext")) return name;
30
+ if ((ext == null || ext.isEmpty()) || name.endsWith("." + ext)) return name;
31
31
  else {
32
32
  String fn = name + "." + ext;
33
33
  if (fn.endsWith(".")) return StringUtils.stripEnd(fn, ".");
package/fs.js CHANGED
@@ -26,6 +26,13 @@ const dirs = {
26
26
  MainBundleDir: constants.MainBundleDir,
27
27
  LibraryDir: constants.LibraryDir,
28
28
  ApplicationSupportDir: constants.ApplicationSupportDir,
29
+
30
+ LegacyPictureDir: constants.LegacyPictureDir,
31
+ LegacyMusicDir: constants.LegacyMusicDir,
32
+ LegacyMovieDir: constants.LegacyMovieDir,
33
+ LegacyDownloadDir: constants.LegacyDownloadDir,
34
+ LegacyDCIMDir: constants.LegacyDCIMDir,
35
+ LegacySDCardDir: constants.LegacySDCardDir, // Depracated
29
36
  };
30
37
 
31
38
  function addCode(code: string, error: Error): Error {
package/index.d.ts CHANGED
@@ -555,6 +555,12 @@ export interface IOSApi {
555
555
  * @param {string} scheme URI scheme that needs to support, optional
556
556
  */
557
557
  presentPreview(path: string, scheme?: string): void;
558
+
559
+ /**
560
+ * Marks the file to be excluded from icloud/itunes backup. Works recursively if path is to a directory
561
+ * @param {string} path Path to a file or directory to mark to be excluded.
562
+ */
563
+ excludeFromBackupKey(path: string): Promise<void>;
558
564
  }
559
565
 
560
566
  export interface AndroidDownloadOption {
package/index.web.js ADDED
@@ -0,0 +1 @@
1
+ export default {};
package/package.json CHANGED
@@ -1,8 +1,8 @@
1
1
  {
2
2
  "name": "react-native-blob-util",
3
- "version": "0.17.0",
3
+ "version": "0.17.1",
4
4
  "description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",
5
- "main": "index.js",
5
+ "main": "index",
6
6
  "scripts": {
7
7
  "test": "echo \"Error: no test specified\" && exit 1"
8
8
  },