Browse Source

bump to 0.8.1

Ben Hsieh 8 years ago
parent
commit
45ddccc288
6 changed files with 18 additions and 16 deletions
  1. 2
    1
      README.md
  2. 1
    1
      package.json
  3. 1
    0
      src/README.md
  4. 2
    2
      src/ios/RNFetchBlobNetwork.m
  5. 1
    1
      src/package.json
  6. 11
    11
      test/test-init.js

+ 2
- 1
README.md View File

@@ -1,4 +1,4 @@
1
-# react-native-fetch-blob [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) [![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) [![npm](https://img.shields.io/npm/l/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]() 
1
+# react-native-fetch-blob [![release](https://img.shields.io/github/release/wkh237/react-native-fetch-blob.svg?maxAge=86400&style=flat-square)](https://www.npmjs.com/package/react-native-fetch-blob) [![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) [![npm](https://img.shields.io/npm/l/react-native-fetch-blob.svg?maxAge=2592000&style=flat-square)]()
2 2
 
3 3
 A project committed to make file acess and data transfer easier, effiecient for React Native developers.
4 4
 
@@ -676,6 +676,7 @@ If you're going to concatenate files, you don't have to read the data to JS cont
676 676
 
677 677
 | Version | |
678 678
 |---|---|
679
+| 0.8.1 | Remove Web API log and fix ios progress report function. |
679 680
 | 0.8.0 | Added Web API polyfills, support regular request, added timeout option. |
680 681
 | 0.7.5 | Fix installation script that make it compatible to react-native < 0.28 |
681 682
 | 0.7.4 | Fix app crash problem in version > 0.27 |

+ 1
- 1
package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "fetchblob",
3
-  "version": "0.8.0",
3
+  "version": "0.8.1",
4 4
   "private": true,
5 5
   "scripts": {
6 6
     "start": "node node_modules/react-native/local-cli/cli.js start",

+ 1
- 0
src/README.md View File

@@ -678,6 +678,7 @@ If you're going to concatenate files, you don't have to read the data to JS cont
678 678
 
679 679
 | Version | |
680 680
 |---|---|
681
+| 0.8.1 | Remove Web API log and fix ios progress report function. |
681 682
 | 0.8.0 | Added Web API polyfills, support regular request, added timeout option. |
682 683
 | 0.7.5 | Fix installation script that make it compatible to react-native < 0.28 |
683 684
 | 0.7.4 | Fix app crash problem in version > 0.27 |

+ 2
- 2
src/ios/RNFetchBlobNetwork.m View File

@@ -169,7 +169,7 @@ NSOperationQueue *taskQueue;
169 169
         respFile = NO;
170 170
     }
171 171
     NSURLSessionDataTask * task = [session dataTaskWithRequest:req];
172
-    [taskTable setValue:@{ @"task": task, KEY_REPORT_PROGRESS : @NO, KEY_REPORT_UPLOAD_PROGRESS : @NO} forKey:taskId];
172
+    [taskTable setObject:task forKey:taskId];
173 173
     [task resume];
174 174
 
175 175
     // network status indicator
@@ -347,7 +347,7 @@ NSOperationQueue *taskQueue;
347 347
 
348 348
 + (void) cancelRequest:(NSString *)taskId
349 349
 {
350
-    NSURLSessionDataTask * task = (NSURLSessionDataTask *)[[taskTable objectForKey:taskId] objectForKey:@"task"];
350
+    NSURLSessionDataTask * task = [taskTable objectForKey:taskId];
351 351
     if(task != nil && task.state == NSURLSessionTaskStateRunning)
352 352
         [task cancel];
353 353
 }

+ 1
- 1
src/package.json View File

@@ -1,6 +1,6 @@
1 1
 {
2 2
   "name": "react-native-fetch-blob",
3
-  "version": "0.8.0",
3
+  "version": "0.8.1",
4 4
   "description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.",
5 5
   "main": "index.js",
6 6
   "scripts": {

+ 11
- 11
test/test-init.js View File

@@ -58,17 +58,17 @@ describe('GET image from server', (report, done) => {
58 58
 })
59 59
 
60 60
 
61
-require('./test-0.1.x-0.4.x')
62
-require('./test-0.5.1')
63
-require('./test-0.5.2')
64
-require('./test-0.6.0')
65
-require('./test-0.6.2')
66
-require('./test-0.6.3')
61
+// require('./test-0.1.x-0.4.x')
62
+// require('./test-0.5.1')
63
+// require('./test-0.5.2')
64
+// require('./test-0.6.0')
65
+// require('./test-0.6.2')
66
+// require('./test-0.6.3')
67 67
 require('./test-0.7.0')
68
-require('./test-0.8.0')
69
-require('./test-fs')
70
-require('./test-xmlhttp')
71
-require('./test-blob')
68
+// require('./test-0.8.0')
69
+// require('./test-fs')
70
+// require('./test-xmlhttp')
71
+// require('./test-blob')
72 72
 require('./test-firebase')
73
-require('./test-android')
73
+// require('./test-android')
74 74
 // require('./benchmark')