rest-api-kit
Advanced tools
Comparing version 0.0.6 to 0.0.7
@@ -205,6 +205,4 @@ "use strict"; | ||
const endpointConfig = endpoints[endpointName]; | ||
customHooks[`use${capitalizeFirstLetter(endpointName)}`] = () => { | ||
const { url, params } = endpoints[endpointName]; | ||
return useRest(url, params); | ||
}; | ||
const { url, params } = endpoints[endpointName]; | ||
customHooks[`use${capitalizeFirstLetter(endpointName)}`] = () => useRest(url, params); | ||
} | ||
@@ -211,0 +209,0 @@ console.log(customHooks); |
{ | ||
"name": "rest-api-kit", | ||
"version": "0.0.6", | ||
"version": "0.0.7", | ||
"main": "dist/index.js", | ||
@@ -5,0 +5,0 @@ "module": "dist/index.mjs", |
Sorry, the diff of this file is not supported yet
19144
503