Comparing version 0.1.96 to 0.1.97
@@ -95,9 +95,9 @@ "use strict"; | ||
}, [url, requestInit, isServer]); | ||
const post = makeFetch(types_1.HTTPMethod.POST); | ||
const del = makeFetch(types_1.HTTPMethod.DELETE); | ||
const post = react_1.useCallback(makeFetch(types_1.HTTPMethod.POST), [makeFetch]); | ||
const del = react_1.useCallback(makeFetch(types_1.HTTPMethod.DELETE), [makeFetch]); | ||
const request = { | ||
get: makeFetch(types_1.HTTPMethod.GET), | ||
get: react_1.useCallback(makeFetch(types_1.HTTPMethod.GET), [makeFetch]), | ||
post, | ||
patch: makeFetch(types_1.HTTPMethod.PATCH), | ||
put: makeFetch(types_1.HTTPMethod.PUT), | ||
patch: react_1.useCallback(makeFetch(types_1.HTTPMethod.PATCH), [makeFetch]), | ||
put: react_1.useCallback(makeFetch(types_1.HTTPMethod.PUT), [makeFetch]), | ||
del, | ||
@@ -104,0 +104,0 @@ delete: del, |
{ | ||
"name": "use-http", | ||
"version": "0.1.96", | ||
"version": "0.1.97", | ||
"homepage": "http://use-http.com", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
Sorry, the diff of this file is not supported yet
85042