Skip to content

Commit 802513f

Browse files
author
Ron Radtke
committed
small fixes
1 parent 552d2a7 commit 802513f

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import polyfill from './polyfill';
1212
import android from './android';
1313
import ios from './ios';
1414
import JSONStream from './json-stream';
15-
import {config, fetch} from 'fetch';
15+
import {config, fetch} from './fetch';
1616
import URIUtil from './utils/uri';
1717
import CanceledFetchError from './class/ReactNativeBlobUtilCanceledFetchError';
1818

ios/ReactNativeBlobUtil/ReactNativeBlobUtil.mm

+1-2
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ @implementation ReactNativeBlobUtil
3434
bool hasListeners;
3535

3636
- (NSArray<NSString*> *)supportedEvents {
37-
return @[@"ReactNativeBlobUtilState", @"ReactNativeBlobUtilServerPush", @"ReactNativeBlobUtilProgress", @"ReactNativeBlobUtilProgress-upload", @"ReactNativeBlobUtilExpire", @"ReactNativeBlobUtilMessage", @"log", @"warn", @"error", @"data", @"end", @"reportProgress", @"reportUploadProgress"];
37+
return @[@"ReactNativeBlobUtilState", @"ReactNativeBlobUtilServerPush", @"ReactNativeBlobUtilProgress", @"ReactNativeBlobUtilProgress-upload", @"ReactNativeBlobUtilExpire", @"ReactNativeBlobUtilMessage", @"ReactNativeBlobUtilFilesystem", @"log", @"warn", @"error", @"data", @"end", @"reportProgress", @"reportUploadProgress"];
3838
}
3939

4040
// Will be called when this module's first listener is added.
@@ -58,7 +58,6 @@ - (void)emitEvent:(NSString *)name body:(NSString *) body
5858
- (void)emitEventDict:(NSString *)name body:(NSDictionary *) body
5959
{
6060
//TODO: All the FS events use the stream id as name. These events will be omitted since the streamID is not part of <supportedEvents>
61-
NSLog(@"emit dict start");
6261
NSError *error;
6362
NSData *jsonData = [NSJSONSerialization dataWithJSONObject:body
6463
options:NSJSONWritingPrettyPrinted

0 commit comments

Comments
 (0)