Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

rn-fetch-blob

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

rn-fetch-blob - npm Package Compare versions

Comparing version 0.10.16 to 0.11.0

react-native.config.js

14

fs.js

@@ -139,2 +139,15 @@ // Copyright 2016 wkh237@github. All rights reserved.

/**
* Returns the path for the app group synchronous.
* @param {string} groupName Name of app group
* @return {string} Path of App Group dir
*/
function syncPathAppGroup(groupName: string): string {
if (Platform.OS === 'ios') {
return RNFetchBlob.syncPathAppGroup(groupName);
} else {
return '';
}
}
/**
* Wrapper method of readStream.

@@ -406,2 +419,3 @@ * @param {string} path Path of the file.

pathForAppGroup,
syncPathAppGroup,
readFile,

@@ -408,0 +422,0 @@ hash,

@@ -99,2 +99,3 @@ // Type definitions for react-native-fetch-blob 0.10

respInfo: RNFetchBlobResponseInfo;
info(): RNFetchBlobResponseInfo;
session(name: string): RNFetchBlobSession | null;

@@ -297,2 +298,3 @@ /**

type HashAlgorithm = "md5" | "sha1" | "sha224" | "sha256" | "sha384" | "sha512";
export interface FS {

@@ -322,2 +324,10 @@ RNFetchBlobSession: RNFetchBlobSession;

/**
* Read the file from the given path and calculate a cryptographic hash sum over its contents.
*
* @param path Path to the file
* @param algorithm The hash algorithm to use
*/
hash(path: string, algorithm: HashAlgorithm): Promise<string>;
/**
* Create file stream from file at `path`.

@@ -324,0 +334,0 @@ * @param path The file path.

@@ -231,4 +231,10 @@ // Copyright 2016 wkh237@github. All rights reserved.

let promiseResolve;
let promiseReject;
// from remote HTTP(S)
let promise = new Promise((resolve, reject) => {
promiseResolve = resolve;
promiseReject = reject;
let nativeMethodName = Array.isArray(body) ? 'fetchBlobForm' : 'fetchBlob'

@@ -374,2 +380,3 @@

RNFetchBlob.cancelRequest(taskId, fn)
promiseReject(new Error("canceled"))
}

@@ -376,0 +383,0 @@ promise.taskId = taskId

7

package.json
{
"name": "rn-fetch-blob",
"version": "0.10.16",
"version": "0.11.0",
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",

@@ -24,7 +24,2 @@ "main": "index.js",

],
"rnpm": {
"commands": {
"prelink": "node ./node_modules/rn-fetch-blob/scripts/prelink.js"
}
},
"repository": {

@@ -31,0 +26,0 @@ "url": "https://github.com/joltup/rn-fetch-blob.git"

@@ -5,3 +5,2 @@ // Copyright 2016 wkh237@github. All rights reserved.

import RNFetchBlob from '../index.js'
import ProgressEvent from './ProgressEvent.js'

@@ -8,0 +7,0 @@ import EventTarget from './EventTarget'

@@ -1,14 +0,10 @@

# New Releases
In order to publish new releases from this fork, we have renamed this project to
`rn-fetch-blob` and published to `https://www.npmjs.com/package/rn-fetch-blob`.
**Note**: If upgrading from the original fork change all references in your project from `react-native-fetch-blob` to `rn-fetch-blob`. This includes `*.xcodeproj/project.pbxproj` and `android/**/*.gradle` depending on the platform used, failing to do so may cause build errors.
# rn-fetch-blob
[![release](https://img.shields.io/github/release/joltup/rn-fetch-blob.svg?style=flat-square)](https://github.com/joltup/rn-fetch-blob/releases) [![npm](https://img.shields.io/npm/v/rn-fetch-blob.svg?style=flat-square)](https://www.npmjs.com/package/rn-fetch-blob) ![](https://img.shields.io/badge/PR-Welcome-brightgreen.svg?style=flat-square) [![](https://img.shields.io/badge/Wiki-Public-brightgreen.svg?style=flat-square)](https://github.com/joltup/rn-fetch-blob/wiki) [![npm](https://img.shields.io/npm/l/rn-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
A project committed to making file access and data transfer easier and more efficient for React Native developers.
> For Firebase Storage solution, please upgrade to the latest version for the best compatibility.
# Version Compatibility Warning
rn-fetch-blob version 0.10.16 is only compatible with react native 0.60 and up. It should have been a major version bump, we apologize for the mistake. If you are not yet upgraded to react native 0.60 or above, you should remain on rn-fetch-blob version 0.10.15
## Features

@@ -27,3 +23,3 @@ - Transfer data directly from/to storage without BASE64 bridging

* [Regular Request](#user-content-regular-request)
* [Download file](#user-content-download-example--fetch-files-that-needs-authorization-token)
* [Download file](#download-example-fetch-files-that-need-authorization-token)
* [Upload file](#user-content-upload-example--dropbox-files-upload-api)

@@ -87,3 +83,3 @@ * [Multipart/form upload](#user-content-multipartform-data-example--post-form-data-with-file-and-data)

```
react-native link
react-native link rn-fetch-blob
```

@@ -100,3 +96,3 @@

```sh
RNFB_ANDROID_PERMISSIONS=true react-native link
RNFB_ANDROID_PERMISSIONS=true react-native link rn-fetch-blob
```

@@ -103,0 +99,0 @@

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

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

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc