react-native-fetch-blob
Advanced tools
Comparing version 0.5.2 to 0.5.3
{ | ||
"name": "react-native-fetch-blob", | ||
"version": "0.5.2", | ||
"version": "0.5.3", | ||
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.", | ||
@@ -5,0 +5,0 @@ "main": "index.js", |
@@ -1,7 +0,5 @@ | ||
# react-native-fetch-blob [](https://badge.fury.io/js/react-native-fetch-blob)   | ||
# react-native-fetch-blob [](https://badge.fury.io/js/react-native-fetch-blob)   | ||
A module provides upload, download, and files access API. Supports file stream read/write for process large files. | ||
**[Please visit our Github for updated document](https://github.com/wkh237/react-native-fetch-blob)** | ||
**Why do we need this** | ||
@@ -31,2 +29,3 @@ | ||
* [Manage cached files](#user-content-manage-cached-files) | ||
* [Self-Signed SSL Server](#user-content-selfsigned-ssl-server) | ||
* [API](#user-content-api) | ||
@@ -488,2 +487,16 @@ * [config](#user-content-configoptionsrnfetchblobconfigfetch) | ||
#### Self-Signed SSL Server | ||
By default, react-native-fetch-blob does NOT allow connection to unknown certification provider since it's dangerous. If you're going to connect a server with self-signed certification, add `trusty` to `config`. This function is available for version >= `0.5.3` | ||
```js | ||
RNFetchBlob.config({ | ||
trusty : true | ||
}) | ||
.then('GET', 'https://mysite.com') | ||
.then((resp) => { | ||
// ... | ||
}) | ||
``` | ||
--- | ||
@@ -764,6 +777,10 @@ | ||
#### trusty:boolean | ||
`0.5.3` | ||
Set this property to `true` will allow the request create connection with server have self-signed SSL certification. This is not recommended to use in production. | ||
#### fileCache:boolean | ||
Set this property to `true` will makes response data of the `fetch` stored in a temp file, by default the temp file will stored in App's own root folder with file name template `RNFetchBlob_tmp${timestamp}`. | ||
#### appendExt:string | ||
Set this propery to change temp file extension that created by `fetch` response data. | ||
Set this property to change temp file extension that created by `fetch` response data. | ||
#### path:string | ||
@@ -821,3 +838,3 @@ When this property has value, `fetch` API will try to store response data in the path ignoring `fileCache` and `appendExt` property. | ||
A `session` is an object that helps you manage files. It simply main a list of file path and let you use `dispose()`to delete files in this session once and for all. | ||
A `session` is an object that helps you manage files. It simply maintains a list of file path and let you use `dispose()`to delete files in this session once and for all. | ||
@@ -837,2 +854,3 @@ #### add(path:string):RNFetchBlobSession | ||
|---|---| | ||
| 0.5.3 | Add API for access untrusted SSL server | | ||
| 0.5.2 | Fix improper url params bug [#26](https://github.com/wkh237/react-native-fetch-blob/issues/26) and change IOS HTTP implementation from NSURLConnection to NSURLSession | | ||
@@ -857,3 +875,3 @@ | 0.5.0 | Upload/download with direct access to file storage, and also added file access APIs | | ||
If you're interested in hacking this module, check our [development guide](https://github.com/wkh237/react-native-fetch-blob/wiki/Development-Guide), there might be some helpful information. | ||
If you're interested in hacking this module, check our [development guide](https://github.com/wkh237/react-native-fetch-blob/wiki/Home), there might be some helpful information. | ||
Please feel free to make a PR or file an issue. |
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
221660
49
1750
872