1
0
Fork 0
mirror of https://github.com/fjogeleit/http-request-action.git synced 2024-12-04 21:30:23 +00:00

Merge pull request #127 from fjogeleit/revert-conditional-stringify

revert conditional stringify which leads to breaking changes with older versions
This commit is contained in:
Frank Jogeleit 2023-12-19 09:14:06 +01:00 committed by GitHub
commit 3fee944184
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 4 additions and 16 deletions

10
dist/index.js vendored
View file

@ -26612,13 +26612,7 @@ const { GithubActions } = __nccwpck_require__(8169);
* @returns {(response: axios.AxiosResponse) => void}
*/
const createMaskHandler = (actions) => (response) => {
let data = response.data
if (typeof data == 'object') {
data = JSON.stringify(data)
}
actions.setSecret(data)
actions.setSecret(JSON.stringify(response.data))
}
module.exports = { createMaskHandler }
@ -26640,7 +26634,7 @@ const { GithubActions } = __nccwpck_require__(8169);
* @returns {(response: axios.AxiosResponse) => void}
*/
const createOutputHandler = (actions) => (response) => {
actions.setOutput('response', response.data)
actions.setOutput('response', JSON.stringify(response.data))
actions.setOutput('headers', response.headers)
}

View file

@ -9,13 +9,7 @@ const { GithubActions } = require('../githubActions');
* @returns {(response: axios.AxiosResponse) => void}
*/
const createMaskHandler = (actions) => (response) => {
let data = response.data
if (typeof data == 'object') {
data = JSON.stringify(data)
}
actions.setSecret(data)
actions.setSecret(JSON.stringify(response.data))
}
module.exports = { createMaskHandler }

View file

@ -9,7 +9,7 @@ const { GithubActions } = require('../githubActions');
* @returns {(response: axios.AxiosResponse) => void}
*/
const createOutputHandler = (actions) => (response) => {
actions.setOutput('response', response.data)
actions.setOutput('response', JSON.stringify(response.data))
actions.setOutput('headers', response.headers)
}