delux-fetch
Advanced tools
Comparing version 1.0.0 to 1.1.0
@@ -12,4 +12,8 @@ module.exports = function (action) { | ||
return fetch(url, settings) | ||
.then(response => Object.assign(action.payload, {response})); | ||
.then(response => Object.assign(action.payload, {response})) | ||
.catch(error => Object.assign(action, { | ||
payload: error, | ||
error: true | ||
})); | ||
} | ||
}; |
{ | ||
"name": "delux-fetch", | ||
"version": "v1.0.0", | ||
"version": "v1.1.0", | ||
"description": "Fetch middleware for Delux", | ||
@@ -28,3 +28,7 @@ "main": "index.js", | ||
}, | ||
"homepage": "https://github.com/aniddan/delux-fetch" | ||
"homepage": "https://github.com/aniddan/delux-fetch", | ||
"devDependencies": { | ||
"isomorphic-fetch": "", | ||
"delux": "" | ||
} | ||
} |
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
Manifest confusion
Supply chain riskThis package has inconsistent metadata. This could be malicious or caused by an error when publishing the package.
Found 1 instance in 1 package
1815
5
35
2