rn-fetch-blob
Advanced tools
Comparing version 0.12.0 to 0.13.0-beta-1
@@ -24,3 +24,3 @@ // Copyright 2016 wkh237@github. All rights reserved. | ||
import polyfill from './polyfill' | ||
import _ from 'lodash' | ||
import reduce from 'lodash/reduce' | ||
import android from './android' | ||
@@ -228,3 +228,3 @@ import ios from './ios' | ||
// pass to native context | ||
headers = _.reduce(headers, (result, value, key) => { | ||
headers = reduce(headers, (result, value, key) => { | ||
result[key] = value || '' | ||
@@ -231,0 +231,0 @@ return result |
{ | ||
"name": "rn-fetch-blob", | ||
"version": "0.12.0", | ||
"version": "0.13.0-beta-1", | ||
"description": "A module provides upload, download, and files access API. Supports file stream read/write for process large files.", | ||
@@ -11,3 +11,4 @@ "main": "index.js", | ||
"base-64": "0.1.0", | ||
"glob": "7.0.6" | ||
"glob": "7.0.6", | ||
"lodash": "4.17.15" | ||
}, | ||
@@ -14,0 +15,0 @@ "keywords": [ |
@@ -5,3 +5,3 @@ // Copyright 2016 wkh237@github. All rights reserved. | ||
import RNFetchBlob from '../index.js' | ||
import {NativeModules} from 'react-native'; | ||
import fs from '../fs.js' | ||
@@ -12,2 +12,3 @@ import getUUID from '../utils/uuid' | ||
const RNFetchBlob = NativeModules.RNFetchBlob | ||
const log = new Log('Blob') | ||
@@ -14,0 +15,0 @@ const blobCacheDir = fs.dirs.DocumentDir + '/RNFetchBlob-blobs/' |
@@ -1,2 +0,2 @@ | ||
import RNFetchBlob from '../index.js' | ||
import {NativeModules} from 'react-native'; | ||
import Log from '../utils/log.js' | ||
@@ -7,2 +7,3 @@ import fs from '../fs' | ||
const RNFetchBlob = NativeModules.RNFetchBlob | ||
const log = new Log('FetchPolyfill') | ||
@@ -44,2 +45,3 @@ | ||
options.headers['Content-Type'] = 'multipart/form-data;boundary=' + b.multipartBoundary | ||
options.headers['content-type'] = 'multipart/form-data;boundary=' + b.multipartBoundary | ||
return Promise.resolve(RNFetchBlob.wrap(b._ref)) | ||
@@ -46,0 +48,0 @@ }) |
@@ -5,3 +5,3 @@ // Copyright 2016 wkh237@github. All rights reserved. | ||
import RNFetchBlob from '../index.js' | ||
import {NativeModules} from 'react-native'; | ||
import XMLHttpRequestEventTarget from './XMLHttpRequestEventTarget.js' | ||
@@ -13,2 +13,3 @@ import Log from '../utils/log.js' | ||
const RNFetchBlob = NativeModules.RNFetchBlob | ||
const log = new Log('XMLHttpRequest') | ||
@@ -15,0 +16,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
Sorry, the diff of this file is not supported yet
Deprecated
MaintenanceThe maintainer of the package marked it as deprecated. This could indicate that a single version should not be used, or that the package is no longer maintained and any new vulnerabilities will not be fixed.
Found 1 instance in 1 package
New author
Supply chain riskA new npm collaborator published a version of the package for the first time. New collaborators are usually benign additions to a project, but do indicate a change to the security surface area of a package.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Filesystem access
Supply chain riskAccesses the file system, and could potentially read sensitive data.
Found 1 instance in 1 package
0
568173
3
74
5379
1
3
+ Addedlodash@4.17.15
+ Addedlodash@4.17.15(transitive)