瀏覽代碼

Merge pull request #40 from ericmorgan1/master

Response typo
Shem 6 年之前
父節點
當前提交
4add85726f
No account linked to committer's email address
共有 2 個檔案被更改,包括 6 行新增18 行删除
  1. 4
    16
      README.md
  2. 2
    2
      polyfill/Fetch.js

+ 4
- 16
README.md 查看文件

@@ -1,15 +1,3 @@
1
-## New Maintainers
2
-
3
-We make quite a bit of use of react-native-fetch-blob at Jolt and would like to maintain the project.  Feel free to open issues, PRs, etc. here as you would on the original repository.  We will be investigating a new npm namespace under which to publish future versions of this library.
4
-
5
-<br>
6
-
7
-## About Pull Requests
8
-
9
-Bugfixes should be applied to the `0.10.9` branch and new features should be applied to the `0.11.0`. Documentation/README updates can be applied directly to `master`.
10
-
11
-<br>
12
-
13 1
 # react-native-fetch-blob
14 2
 [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?style=flat-square)](https://github.com/wkh237/react-native-fetch-blob/releases) [![npm](https://img.shields.io/npm/v/react-native-fetch-blob.svg?style=flat-square)](https://www.npmjs.com/package/react-native-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/wkh237/react-native-fetch-blob/wiki) [![npm](https://img.shields.io/npm/l/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
15 3
 
@@ -30,9 +18,9 @@ A project committed to making file access and data transfer easier and more effi
30 18
 * [Installation](#user-content-installation)
31 19
 * [HTTP Data Transfer](#user-content-http-data-transfer)
32 20
  * [Regular Request](#user-content-regular-request)
33
- * [Download file](#download-example-fetch-files-that-need-authorization-token)
21
+ * [Download file](#user-content-download-example--fetch-files-that-needs-authorization-token)
34 22
  * [Upload file](#user-content-upload-example--dropbox-files-upload-api)
35
- * [Multipart/form upload](#multipartform-data-example-post-form-data-with-file-and-data)
23
+ * [Multipart/form upload](#user-content-multipartform-data-example--post-form-data-with-file-and-data)
36 24
  * [Upload/Download progress](#user-content-uploaddownload-progress)
37 25
  * [Cancel HTTP request](#user-content-cancel-request)
38 26
  * [Android Media Scanner, and Download Manager Support](#user-content-android-media-scanner-and-download-manager-support)
@@ -650,7 +638,7 @@ RNFetchBlob.fs.readStream(
650 638
       console.log('oops', err)
651 639
     })
652 640
     ifstream.onEnd(() => {  
653
-      <Image source={{ uri : 'data:image/png,base64' + data }}/>
641
+      <Image source={{ uri : 'data:image/png,base64' + data }}
654 642
     })
655 643
 })
656 644
 ```
@@ -845,4 +833,4 @@ See [release notes](https://github.com/wkh237/react-native-fetch-blob/releases)
845 833
 ### Development
846 834
 
847 835
 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.
848
-Please feel free to make a PR or file an issue.
836
+Please feel free to make a PR or file an issue.

+ 2
- 2
polyfill/Fetch.js 查看文件

@@ -73,7 +73,7 @@ class RNFetchBlobFetchPolyfill {
73 73
               // release blob cache created when sending request
74 74
               if(blobCache !== null && blobCache instanceof Blob)
75 75
                 blobCache.close()
76
-              return Promise.resolve(new RNFetchBlobFetchRepsonse(resp))
76
+              return Promise.resolve(new RNFetchBlobFetchResponse(resp))
77 77
             })
78 78
           })
79 79
 
@@ -97,7 +97,7 @@ class RNFetchBlobFetchPolyfill {
97 97
 
98 98
 }
99 99
 
100
-class RNFetchBlobFetchRepsonse {
100
+class RNFetchBlobFetchResponse {
101 101
 
102 102
   constructor(resp:FetchBlobResponse) {
103 103
     let info = resp.info()