@opexa/portal-components 0.0.98 → 0.0.99
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.
|
@@ -23,14 +23,6 @@ export async function graphqlRequest(url, query, variables, options) {
|
|
|
23
23
|
}
|
|
24
24
|
try {
|
|
25
25
|
const response = await fetch(url_, {
|
|
26
|
-
cache: 'force-cache',
|
|
27
|
-
next: {
|
|
28
|
-
revalidate: 1,
|
|
29
|
-
tags: [
|
|
30
|
-
url_.toString(),
|
|
31
|
-
variables ? JSON.stringify(variables) : '',
|
|
32
|
-
].filter(Boolean),
|
|
33
|
-
},
|
|
34
26
|
...options,
|
|
35
27
|
method: 'POST',
|
|
36
28
|
headers,
|
|
@@ -134,14 +126,6 @@ export async function graphqlUpload(url, query, variables, options) {
|
|
|
134
126
|
}
|
|
135
127
|
try {
|
|
136
128
|
const response = await fetch(url_, {
|
|
137
|
-
cache: 'force-cache',
|
|
138
|
-
next: {
|
|
139
|
-
revalidate: 1,
|
|
140
|
-
tags: [
|
|
141
|
-
url_.toString(),
|
|
142
|
-
variables ? JSON.stringify(variables) : '',
|
|
143
|
-
].filter(Boolean),
|
|
144
|
-
},
|
|
145
129
|
...options,
|
|
146
130
|
method: 'POST',
|
|
147
131
|
headers,
|
|
@@ -15,11 +15,6 @@ export async function httpRequest(url, opts = {}) {
|
|
|
15
15
|
headers.delete(RECAPTCHA_HEADER_KEY);
|
|
16
16
|
}
|
|
17
17
|
const res = await fetch(url, {
|
|
18
|
-
cache: 'force-cache',
|
|
19
|
-
next: {
|
|
20
|
-
revalidate: 1,
|
|
21
|
-
tags: [url, JSON.stringify(opts.body ?? {})].filter(Boolean),
|
|
22
|
-
},
|
|
23
18
|
...opts,
|
|
24
19
|
headers,
|
|
25
20
|
});
|
|
@@ -57,11 +52,6 @@ httpRequest.json = async (url, opts = {}) => {
|
|
|
57
52
|
headers.delete(RECAPTCHA_HEADER_KEY);
|
|
58
53
|
}
|
|
59
54
|
const response = await fetch(url, {
|
|
60
|
-
cache: 'force-cache',
|
|
61
|
-
next: {
|
|
62
|
-
revalidate: 1,
|
|
63
|
-
tags: [url, JSON.stringify(opts.body ?? {})].filter(Boolean),
|
|
64
|
-
},
|
|
65
55
|
...opts,
|
|
66
56
|
headers,
|
|
67
57
|
});
|