@ventlio/tanstack-query 0.2.26 → 0.2.27
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.mjs +4 -0
- package/dist/index.mjs.map +1 -1
- package/dist/queries/useDeleteRequest.js +1 -0
- package/dist/queries/useDeleteRequest.js.map +1 -1
- package/dist/queries/useGetRequest.js +1 -0
- package/dist/queries/useGetRequest.js.map +1 -1
- package/dist/queries/usePatchRequest.js +1 -0
- package/dist/queries/usePatchRequest.js.map +1 -1
- package/dist/queries/usePostRequest.js +1 -0
- package/dist/queries/usePostRequest.js.map +1 -1
- package/package.json +1 -1
- package/src/queries/useDeleteRequest.ts +2 -0
- package/src/queries/useGetRequest.ts +2 -0
- package/src/queries/usePatchRequest.ts +2 -0
- package/src/queries/usePostRequest.ts +2 -0
package/dist/index.mjs
CHANGED
|
@@ -184,6 +184,7 @@ const useDeleteRequest = () => {
|
|
|
184
184
|
// get request headers
|
|
185
185
|
const headers = (await getHeadersAsync())
|
|
186
186
|
.headers;
|
|
187
|
+
console.log({ headers });
|
|
187
188
|
const postResponse = await makeRequest({
|
|
188
189
|
path: requestPath,
|
|
189
190
|
headers,
|
|
@@ -231,6 +232,7 @@ const useGetRequest = ({ path, load = false, queryOptions, keyTracker, }) => {
|
|
|
231
232
|
const sendRequest = async (res, rej) => {
|
|
232
233
|
// get request headers
|
|
233
234
|
const headers = (await getHeadersAsync()).headers;
|
|
235
|
+
console.log({ headers });
|
|
234
236
|
const postResponse = await makeRequest({
|
|
235
237
|
path: requestPath,
|
|
236
238
|
headers,
|
|
@@ -330,6 +332,7 @@ const usePatchRequest = ({ path }) => {
|
|
|
330
332
|
// get request headers
|
|
331
333
|
const headers = (await getHeadersAsync())
|
|
332
334
|
.headers;
|
|
335
|
+
console.log({ headers });
|
|
333
336
|
makeRequest({
|
|
334
337
|
path: path,
|
|
335
338
|
body: postData,
|
|
@@ -369,6 +372,7 @@ const usePostRequest = ({ path, isFormData = false, }) => {
|
|
|
369
372
|
// get request headers
|
|
370
373
|
const headers = (await getHeadersAsync())
|
|
371
374
|
.headers;
|
|
375
|
+
console.log({ headers });
|
|
372
376
|
makeRequest({
|
|
373
377
|
path: path,
|
|
374
378
|
body: postData,
|
package/dist/index.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useDeleteRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useDeleteRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -20,6 +20,7 @@ const useGetRequest = ({ path, load = false, queryOptions, keyTracker, }) => {
|
|
|
20
20
|
const sendRequest = async (res, rej) => {
|
|
21
21
|
// get request headers
|
|
22
22
|
const headers = (await getHeadersAsync()).headers;
|
|
23
|
+
console.log({ headers });
|
|
23
24
|
const postResponse = await makeRequest.makeRequest({
|
|
24
25
|
path: requestPath,
|
|
25
26
|
headers,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useGetRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"useGetRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePatchRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePatchRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePostRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"usePostRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
package/package.json
CHANGED
|
@@ -42,6 +42,8 @@ export const useGetRequest = <TResponse extends Record<string, any>>({
|
|
|
42
42
|
// get request headers
|
|
43
43
|
const headers: RawAxiosRequestHeaders = (await getHeadersAsync()).headers;
|
|
44
44
|
|
|
45
|
+
console.log({ headers });
|
|
46
|
+
|
|
45
47
|
const postResponse = await makeRequest<TResponse>({
|
|
46
48
|
path: requestPath,
|
|
47
49
|
headers,
|