@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 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,
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"index.mjs","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -18,6 +18,7 @@ const useDeleteRequest = () => {
18
18
  // get request headers
19
19
  const headers = (await getHeadersAsync())
20
20
  .headers;
21
+ console.log({ headers });
21
22
  const postResponse = await makeRequest.makeRequest({
22
23
  path: requestPath,
23
24
  headers,
@@ -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":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -17,6 +17,7 @@ const usePatchRequest = ({ path }) => {
17
17
  // get request headers
18
18
  const headers = (await getHeadersAsync())
19
19
  .headers;
20
+ console.log({ headers });
20
21
  makeRequest.makeRequest({
21
22
  path: path,
22
23
  body: postData,
@@ -1 +1 @@
1
- {"version":3,"file":"usePatchRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
1
+ {"version":3,"file":"usePatchRequest.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
@@ -16,6 +16,7 @@ const usePostRequest = ({ path, isFormData = false, }) => {
16
16
  // get request headers
17
17
  const headers = (await getHeadersAsync())
18
18
  .headers;
19
+ console.log({ headers });
19
20
  makeRequest.makeRequest({
20
21
  path: path,
21
22
  body: postData,
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ventlio/tanstack-query",
3
- "version": "0.2.26",
3
+ "version": "0.2.27",
4
4
  "license": "MIT",
5
5
  "main": "dist/index.js",
6
6
  "contributors": [
@@ -23,6 +23,8 @@ export const useDeleteRequest = <TResponse>() => {
23
23
  const headers: RawAxiosRequestHeaders = (await getHeadersAsync())
24
24
  .headers;
25
25
 
26
+ console.log({ headers });
27
+
26
28
  const postResponse = await makeRequest<TResponse>({
27
29
  path: requestPath,
28
30
  headers,
@@ -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,
@@ -24,6 +24,8 @@ export const usePatchRequest = <TResponse>({ path }: { path: string }) => {
24
24
  const headers: RawAxiosRequestHeaders = (await getHeadersAsync())
25
25
  .headers;
26
26
 
27
+ console.log({ headers });
28
+
27
29
  makeRequest<TResponse>({
28
30
  path: path,
29
31
  body: postData,
@@ -26,6 +26,8 @@ export const usePostRequest = <TResponse>({
26
26
  const headers: RawAxiosRequestHeaders = (await getHeadersAsync())
27
27
  .headers;
28
28
 
29
+ console.log({ headers });
30
+
29
31
  makeRequest<TResponse>({
30
32
  path: path,
31
33
  body: postData,