react-native-fetch-blob
Advanced tools
Comparing version 0.10.2 to 0.10.3-beta.1
19
net.js
@@ -16,11 +16,22 @@ // Copyright 2016 wkh237@github. All rights reserved. | ||
* Get cookie according to the given url. | ||
* @param {string} url HTTP URL string. | ||
* @param {string} domain Domain of the cookies to be removed, remove all | ||
* @return {Promise<Array<String>>} Cookies of a specific domain. | ||
*/ | ||
function getCookies(url:string):Promise<Array<String>> { | ||
return RNFetchBlob.getCookies(url) | ||
function getCookies(domain:string):Promise<Array<String>> { | ||
return RNFetchBlob.getCookies(domain || '') | ||
} | ||
/** | ||
* Remove cookies for a specific domain | ||
* @param {?string} domain Domain of the cookies to be removed, remove all | ||
* cookies when this is null. | ||
* @return {Promise<null>} | ||
*/ | ||
function removeCookies(domain:?string):Promise<null> { | ||
return RNFetchBlob.removeCookies(domain || '') | ||
} | ||
export default { | ||
getCookies | ||
getCookies, | ||
removeCookies | ||
} |
{ | ||
"name": "react-native-fetch-blob", | ||
"version": "0.10.2", | ||
"version": "0.10.3-beta.1", | ||
"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", |
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
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
503349
7401