Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@neylorxt/react-request",
"version": "0.0.4",
"version": "0.0.5",
"description": "It's a mini package that makes it easy for you to send data via axios.",
"keywords": [
"neylorxt",
Expand Down
2 changes: 2 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,6 +212,7 @@ export async function updateData(url, data = {}, config = {}) {
*/
export async function deleteData(url, data = {}, config = {}) {
try {

const { method, data, ...safeConfig } = config; // on retire toute méthode fournie

const axiosConfig = {
Expand All @@ -236,6 +237,7 @@ export async function deleteData(url, data = {}, config = {}) {




/**
* Receive data using axios (GET)
* @param {string} url - The endpoint URL
Expand Down