1
0
Fork 0
mirror of https://github.com/rharkor/caching-for-turbo.git synced 2025-06-09 17:44:48 +09:00
This commit is contained in:
rharkor 2024-06-13 14:53:45 +02:00
parent 446c56668a
commit a387c2631d
3 changed files with 7 additions and 3 deletions

4
dist/index.js generated vendored
View file

@ -88225,7 +88225,9 @@ function getCacheClient() {
const buildedError = new HandledError(status, statusText, data);
return handleFetchError('Unable to query cache')(buildedError);
}
const data = await res.json();
const text = await res.text();
core.info('Cache query response: ' + text);
const data = JSON.parse(text);
return { success: true, data };
}
catch (error) {

2
dist/index.js.map generated vendored

File diff suppressed because one or more lines are too long

View file

@ -119,7 +119,9 @@ export function getCacheClient() {
const buildedError = new HandledError(status, statusText, data)
return handleFetchError('Unable to query cache')(buildedError)
}
const data = await res.json()
const text = await res.text()
core.info('Cache query response: ' + text)
const data = JSON.parse(text)
return { success: true, data }
} catch (error) {
return handleFetchError('Unable to query cache')(error)