mirror of
https://github.com/fjogeleit/http-request-action.git
synced 2024-11-25 05:10:57 -05:00
revert conitional stringify which leads to breaking changes with older versions
Signed-off-by: Frank Jogeleit <frank.jogeleit@lovoo.com>
This commit is contained in:
parent
6dd87961de
commit
c23f0d6631
3 changed files with 4 additions and 16 deletions
10
dist/index.js
vendored
10
dist/index.js
vendored
|
@ -26612,13 +26612,7 @@ const { GithubActions } = __nccwpck_require__(8169);
|
||||||
* @returns {(response: axios.AxiosResponse) => void}
|
* @returns {(response: axios.AxiosResponse) => void}
|
||||||
*/
|
*/
|
||||||
const createMaskHandler = (actions) => (response) => {
|
const createMaskHandler = (actions) => (response) => {
|
||||||
let data = response.data
|
actions.setSecret(JSON.stringify(response.data))
|
||||||
|
|
||||||
if (typeof data == 'object') {
|
|
||||||
data = JSON.stringify(data)
|
|
||||||
}
|
|
||||||
|
|
||||||
actions.setSecret(data)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { createMaskHandler }
|
module.exports = { createMaskHandler }
|
||||||
|
@ -26640,7 +26634,7 @@ const { GithubActions } = __nccwpck_require__(8169);
|
||||||
* @returns {(response: axios.AxiosResponse) => void}
|
* @returns {(response: axios.AxiosResponse) => void}
|
||||||
*/
|
*/
|
||||||
const createOutputHandler = (actions) => (response) => {
|
const createOutputHandler = (actions) => (response) => {
|
||||||
actions.setOutput('response', response.data)
|
actions.setOutput('response', JSON.stringify(response.data))
|
||||||
actions.setOutput('headers', response.headers)
|
actions.setOutput('headers', response.headers)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -9,13 +9,7 @@ const { GithubActions } = require('../githubActions');
|
||||||
* @returns {(response: axios.AxiosResponse) => void}
|
* @returns {(response: axios.AxiosResponse) => void}
|
||||||
*/
|
*/
|
||||||
const createMaskHandler = (actions) => (response) => {
|
const createMaskHandler = (actions) => (response) => {
|
||||||
let data = response.data
|
actions.setSecret(JSON.stringify(response.data))
|
||||||
|
|
||||||
if (typeof data == 'object') {
|
|
||||||
data = JSON.stringify(data)
|
|
||||||
}
|
|
||||||
|
|
||||||
actions.setSecret(data)
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = { createMaskHandler }
|
module.exports = { createMaskHandler }
|
|
@ -9,7 +9,7 @@ const { GithubActions } = require('../githubActions');
|
||||||
* @returns {(response: axios.AxiosResponse) => void}
|
* @returns {(response: axios.AxiosResponse) => void}
|
||||||
*/
|
*/
|
||||||
const createOutputHandler = (actions) => (response) => {
|
const createOutputHandler = (actions) => (response) => {
|
||||||
actions.setOutput('response', response.data)
|
actions.setOutput('response', JSON.stringify(response.data))
|
||||||
actions.setOutput('headers', response.headers)
|
actions.setOutput('headers', response.headers)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue