Comparing version 0.4.5 to 0.5.0
{ | ||
"name": "fitch", | ||
"version": "0.4.5", | ||
"version": "0.5.0", | ||
"description": "Test using fetch API", | ||
@@ -5,0 +5,0 @@ "main": "src/index.js", |
@@ -86,3 +86,2 @@ ![Fitch.js](https://github.com/raphaelpor/fitch.js/raw/master/assets/fitch-mini.png) | ||
mode = 'no-cors', | ||
raw = true, // return the raw output of fetch() | ||
params: { // transform to '?test1=test-1&test2=test-2' | ||
@@ -92,2 +91,4 @@ test1: 'test-1', | ||
}, | ||
raw = true, // return the raw output of fetch() | ||
redirect: 'follow', | ||
} | ||
@@ -94,0 +95,0 @@ |
@@ -7,4 +7,6 @@ module.exports = { | ||
cache = 'default', | ||
credentials, | ||
headers = { 'Content-Type': 'application/json' }, | ||
mode = 'cors', | ||
redirect, | ||
} = {} | ||
@@ -20,6 +22,8 @@ ) { | ||
cache, | ||
credentials, | ||
headers, | ||
mode, | ||
redirect, | ||
}; | ||
}, | ||
}; |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22199
79
119