Compare commits

...

15 Commits

Author SHA1 Message Date
Frank Jogeleit
c0b95d02a0 Update Dependencies (#199)
Some checks failed
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
* Update Dependencies

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>

* Update test case

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>

---------

Signed-off-by: Frank Jogeleit <frank.jogeleit@web.de>
2025-12-03 16:10:45 +01:00
Frank Jogeleit
cb027c729e Merge pull request #198 from fjogeleit/dependabot/github_actions/actions/checkout-6
Some checks failed
CI / build (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump actions/checkout from 5 to 6
2025-12-02 15:20:12 +01:00
dependabot[bot]
5129f202e4 Bump actions/checkout from 5 to 6
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6.
- [Release notes](https://github.com/actions/checkout/releases)
- [Commits](https://github.com/actions/checkout/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-12-01 19:06:43 +00:00
Frank Jogeleit
b5b7f5686d Merge pull request #196 from fjogeleit/dependabot/npm_and_yarn/axios-1.13.2
Some checks failed
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump axios from 1.13.1 to 1.13.2
2025-11-10 18:57:10 +01:00
dependabot[bot]
3e33b6ec27 Bump axios from 1.13.1 to 1.13.2
Bumps [axios](https://github.com/axios/axios) from 1.13.1 to 1.13.2.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.13.1...v1.13.2)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.13.2
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-10 17:09:59 +00:00
Frank Jogeleit
70c8b254c4 Merge pull request #195 from fjogeleit/dependabot/npm_and_yarn/axios-1.13.1
Some checks failed
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump axios from 1.13.0 to 1.13.1
2025-11-04 11:01:30 +01:00
dependabot[bot]
e83066a37c Bump axios from 1.13.0 to 1.13.1
Bumps [axios](https://github.com/axios/axios) from 1.13.0 to 1.13.1.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.13.0...v1.13.1)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.13.1
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-03 17:19:26 +00:00
Frank Jogeleit
441aeee075 Merge pull request #194 from fjogeleit/dependabot/github_actions/actions/setup-node-6
Some checks failed
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump actions/setup-node from 5 to 6
2025-11-01 19:59:29 +01:00
dependabot[bot]
17652c2e56 Bump actions/setup-node from 5 to 6
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v5...v6)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '6'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-11-01 17:01:36 +00:00
Frank Jogeleit
bf80477504 Merge pull request #193 from fjogeleit/dependabot/npm_and_yarn/axios-1.13.0
Some checks failed
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump axios from 1.12.2 to 1.13.0
2025-10-28 08:14:52 +01:00
dependabot[bot]
d584927edd Bump axios from 1.12.2 to 1.13.0
Bumps [axios](https://github.com/axios/axios) from 1.12.2 to 1.13.0.
- [Release notes](https://github.com/axios/axios/releases)
- [Changelog](https://github.com/axios/axios/blob/v1.x/CHANGELOG.md)
- [Commits](https://github.com/axios/axios/compare/v1.12.2...v1.13.0)

---
updated-dependencies:
- dependency-name: axios
  dependency-version: 1.13.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-27 17:18:16 +00:00
Frank Jogeleit
4317ec8cf0 Merge pull request #192 from fjogeleit/dependabot/github_actions/actions/setup-node-5
Some checks failed
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump actions/setup-node from 4 to 5
2025-10-01 19:13:35 +02:00
dependabot[bot]
bf10f06e08 Bump actions/setup-node from 4 to 5
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 4 to 5.
- [Release notes](https://github.com/actions/setup-node/releases)
- [Commits](https://github.com/actions/setup-node/compare/v4...v5)

---
updated-dependencies:
- dependency-name: actions/setup-node
  dependency-version: '5'
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-10-01 17:01:53 +00:00
Frank Jogeleit
4642e6017d Merge pull request #191 from fjogeleit/dependabot/npm_and_yarn/vercel/ncc-0.38.4
Some checks failed
CI / build (push) Has been cancelled
/ IT Test - Request Postman Echo GET (push) Has been cancelled
/ IT Test - Request Postman Echo POST (push) Has been cancelled
/ IT Test - Request Postman Echo POST with Unescaped Newline (push) Has been cancelled
/ IT Test - Request Postman Echo BasicAuth (push) Has been cancelled
/ IT Test - Request Postman Echo with 404 Response and ignore failure code (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart (push) Has been cancelled
/ IT Test - Request Postman Echo POST and persist response (push) Has been cancelled
/ IT Test - Request Postman Echo POST Multipart without data (push) Has been cancelled
/ IT Test - Request Postman Echo POST single file (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded string data (push) Has been cancelled
/ IT Test - Request Postman Echo POST URLEncoded json data (push) Has been cancelled
/ IT Test - Request Postman Echo DELETE (push) Has been cancelled
CI / integrity (push) Has been cancelled
/ All IT Tests have to pass (push) Has been cancelled
Bump @vercel/ncc from 0.38.3 to 0.38.4
2025-09-22 19:48:12 +02:00
dependabot[bot]
312d8f2503 Bump @vercel/ncc from 0.38.3 to 0.38.4
Bumps [@vercel/ncc](https://github.com/vercel/ncc) from 0.38.3 to 0.38.4.
- [Release notes](https://github.com/vercel/ncc/releases)
- [Commits](https://github.com/vercel/ncc/compare/0.38.3...0.38.4)

---
updated-dependencies:
- dependency-name: "@vercel/ncc"
  dependency-version: 0.38.4
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2025-09-22 17:05:38 +00:00
6 changed files with 418 additions and 163 deletions

View File

@@ -14,10 +14,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout repo - name: checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v6
with: with:
ref: ${{ inputs.ref }} ref: ${{ inputs.ref }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@v6
with: with:
node-version: '16' node-version: '16'
- name: Install dependencies - name: Install dependencies

View File

@@ -26,10 +26,10 @@ jobs:
echo "branch=$branch" >> $GITHUB_OUTPUT echo "branch=$branch" >> $GITHUB_OUTPUT
fi fi
- name: checkout repo - name: checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v6
with: with:
ref: ${{ steps.ref.outputs.branch }} ref: ${{ steps.ref.outputs.branch }}
- uses: actions/setup-node@v4 - uses: actions/setup-node@v6
with: with:
node-version: '16' node-version: '16'
- name: Install dependencies - name: Install dependencies
@@ -56,10 +56,10 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: checkout repo - name: checkout repo
uses: actions/checkout@v5 uses: actions/checkout@v6
with: with:
persist-credentials: false persist-credentials: false
- uses: actions/setup-node@v4 - uses: actions/setup-node@v6
with: with:
node-version: '16.17.0' node-version: '16.17.0'
- name: Build action - name: Build action

View File

@@ -9,7 +9,7 @@ jobs:
name: "IT Test - Request Postman Echo GET" name: "IT Test - Request Postman Echo GET"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with GET and a valid URL - name: Given the gh-action is used with GET and a valid URL
id: execution id: execution
uses: ./ uses: ./
@@ -28,7 +28,7 @@ jobs:
name: "IT Test - Request Postman Echo POST" name: "IT Test - Request Postman Echo POST"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with POST using valid data - name: Given the gh-action is used with POST using valid data
id: execution id: execution
uses: ./ uses: ./
@@ -48,7 +48,7 @@ jobs:
name: "IT Test - Request Postman Echo POST with Unescaped Newline" name: "IT Test - Request Postman Echo POST with Unescaped Newline"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with POST using unescaped new line within data - name: Given the gh-action is used with POST using unescaped new line within data
id: execution id: execution
uses: ./ uses: ./
@@ -73,7 +73,7 @@ jobs:
name: "IT Test - Request Postman Echo BasicAuth" name: "IT Test - Request Postman Echo BasicAuth"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with valid BasicAuth parameters - name: Given the gh-action is used with valid BasicAuth parameters
id: execution id: execution
uses: ./ uses: ./
@@ -94,7 +94,7 @@ jobs:
name: "IT Test - Request Postman Echo with 404 Response and ignore failure code" name: "IT Test - Request Postman Echo with 404 Response and ignore failure code"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with unknown URL and ignoreStatusCode 404 for it - name: Given the gh-action is used with unknown URL and ignoreStatusCode 404 for it
id: execution id: execution
uses: ./ uses: ./
@@ -121,7 +121,7 @@ jobs:
name: "IT Test - Request Postman Echo with 404 Response and ignore failure code" name: "IT Test - Request Postman Echo with 404 Response and ignore failure code"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with unknown URL and ignore status codes 401,404 - name: Given the gh-action is used with unknown URL and ignore status codes 401,404
id: execution id: execution
uses: ./ uses: ./
@@ -148,7 +148,7 @@ jobs:
name: "IT Test - Request Postman Echo POST Multipart" name: "IT Test - Request Postman Echo POST Multipart"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Create Test File - name: Create Test File
run: | run: |
echo "test" > testfile.txt echo "test" > testfile.txt
@@ -172,7 +172,7 @@ jobs:
name: "IT Test - Request Postman Echo POST and persist response" name: "IT Test - Request Postman Echo POST and persist response"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Create Test File - name: Create Test File
run: | run: |
echo "test" > testfile2.txt echo "test" > testfile2.txt
@@ -199,7 +199,7 @@ jobs:
- uses: nick-fields/assert-action@aa0067e01f0f6545c31755d6ca128c5a3a14f6bf # v2 - uses: nick-fields/assert-action@aa0067e01f0f6545c31755d6ca128c5a3a14f6bf # v2
name: Then outputs.response_content value must include name: Then outputs.response_content value must include
with: with:
expected: '"accept":"application/json, text/plain, */*","content-type":"application/json","user-agent"' expected: '"accept":"application/json, text/plain, */*"'
actual: ${{ steps.execution-response-file.outputs.response_content }} actual: ${{ steps.execution-response-file.outputs.response_content }}
comparison: contains comparison: contains
@@ -207,7 +207,7 @@ jobs:
name: "IT Test - Request Postman Echo POST Multipart without data" name: "IT Test - Request Postman Echo POST Multipart without data"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Create Test File - name: Create Test File
run: | run: |
echo "test" > testfile3.txt echo "test" > testfile3.txt
@@ -230,7 +230,7 @@ jobs:
name: "IT Test - Request Postman Echo POST single file" name: "IT Test - Request Postman Echo POST single file"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Create Test File - name: Create Test File
run: | run: |
echo "test" > testfile4.txt echo "test" > testfile4.txt
@@ -253,7 +253,7 @@ jobs:
name: "IT Test - Request Postman Echo POST URLEncoded string data" name: "IT Test - Request Postman Echo POST URLEncoded string data"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with data form url encoded - name: Given the gh-action is used with data form url encoded
id: execution id: execution
uses: ./ uses: ./
@@ -274,7 +274,7 @@ jobs:
name: "IT Test - Request Postman Echo POST URLEncoded json data" name: "IT Test - Request Postman Echo POST URLEncoded json data"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with json data - name: Given the gh-action is used with json data
id: execution id: execution
uses: ./ uses: ./
@@ -295,7 +295,7 @@ jobs:
name: "IT Test - Request Postman Echo DELETE" name: "IT Test - Request Postman Echo DELETE"
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@ff7abcd0c3c05ccf6adc123a8cd1fd4fb30fb493 # v4.1.7 - uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v4.1.7
- name: Given the gh-action is used with method DELETE - name: Given the gh-action is used with method DELETE
id: execution id: execution
uses: ./ uses: ./

461
dist/index.js vendored
View File

@@ -5426,7 +5426,7 @@ FormData.prototype.submit = function (params, cb) {
request.removeListener('error', callback); request.removeListener('error', callback);
request.removeListener('response', onResponse); request.removeListener('response', onResponse);
return cb.call(this, error, responce); // eslint-disable-line no-invalid-this return cb.call(this, error, responce);
}; };
onResponse = callback.bind(this, null); onResponse = callback.bind(this, null);
@@ -5450,7 +5450,7 @@ FormData.prototype._error = function (err) {
FormData.prototype.toString = function () { FormData.prototype.toString = function () {
return '[object FormData]'; return '[object FormData]';
}; };
setToStringTag(FormData, 'FormData'); setToStringTag(FormData.prototype, 'FormData');
// Public API // Public API
module.exports = FormData; module.exports = FormData;
@@ -5677,6 +5677,7 @@ var INTRINSICS = {
'%Error%': $Error, '%Error%': $Error,
'%eval%': eval, // eslint-disable-line no-eval '%eval%': eval, // eslint-disable-line no-eval
'%EvalError%': $EvalError, '%EvalError%': $EvalError,
'%Float16Array%': typeof Float16Array === 'undefined' ? undefined : Float16Array,
'%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array, '%Float32Array%': typeof Float32Array === 'undefined' ? undefined : Float32Array,
'%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array, '%Float64Array%': typeof Float64Array === 'undefined' ? undefined : Float64Array,
'%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry, '%FinalizationRegistry%': typeof FinalizationRegistry === 'undefined' ? undefined : FinalizationRegistry,
@@ -31388,7 +31389,7 @@ module.exports = parseParams
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => { /***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
"use strict"; "use strict";
/*! Axios v1.12.2 Copyright (c) 2025 Matt Zabriskie and contributors */ /*! Axios v1.13.2 Copyright (c) 2025 Matt Zabriskie and contributors */
const FormData$1 = __nccwpck_require__(6454); const FormData$1 = __nccwpck_require__(6454);
@@ -31397,6 +31398,7 @@ const url = __nccwpck_require__(7016);
const proxyFromEnv = __nccwpck_require__(7777); const proxyFromEnv = __nccwpck_require__(7777);
const http = __nccwpck_require__(8611); const http = __nccwpck_require__(8611);
const https = __nccwpck_require__(5692); const https = __nccwpck_require__(5692);
const http2 = __nccwpck_require__(5675);
const util = __nccwpck_require__(9023); const util = __nccwpck_require__(9023);
const followRedirects = __nccwpck_require__(1573); const followRedirects = __nccwpck_require__(1573);
const zlib = __nccwpck_require__(3106); const zlib = __nccwpck_require__(3106);
@@ -31411,11 +31413,19 @@ const url__default = /*#__PURE__*/_interopDefaultLegacy(url);
const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv); const proxyFromEnv__default = /*#__PURE__*/_interopDefaultLegacy(proxyFromEnv);
const http__default = /*#__PURE__*/_interopDefaultLegacy(http); const http__default = /*#__PURE__*/_interopDefaultLegacy(http);
const https__default = /*#__PURE__*/_interopDefaultLegacy(https); const https__default = /*#__PURE__*/_interopDefaultLegacy(https);
const http2__default = /*#__PURE__*/_interopDefaultLegacy(http2);
const util__default = /*#__PURE__*/_interopDefaultLegacy(util); const util__default = /*#__PURE__*/_interopDefaultLegacy(util);
const followRedirects__default = /*#__PURE__*/_interopDefaultLegacy(followRedirects); const followRedirects__default = /*#__PURE__*/_interopDefaultLegacy(followRedirects);
const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib); const zlib__default = /*#__PURE__*/_interopDefaultLegacy(zlib);
const stream__default = /*#__PURE__*/_interopDefaultLegacy(stream); const stream__default = /*#__PURE__*/_interopDefaultLegacy(stream);
/**
* Create a bound version of a function with a specified `this` context
*
* @param {Function} fn - The function to bind
* @param {*} thisArg - The value to be passed as the `this` parameter
* @returns {Function} A new function that will call the original function with the specified `this` context
*/
function bind(fn, thisArg) { function bind(fn, thisArg) {
return function wrap() { return function wrap() {
return fn.apply(thisArg, arguments); return fn.apply(thisArg, arguments);
@@ -32665,7 +32675,7 @@ class InterceptorManager {
* *
* @param {Number} id The ID that was returned by `use` * @param {Number} id The ID that was returned by `use`
* *
* @returns {Boolean} `true` if the interceptor was removed, `false` otherwise * @returns {void}
*/ */
eject(id) { eject(id) {
if (this.handlers[id]) { if (this.handlers[id]) {
@@ -33540,7 +33550,7 @@ function buildFullPath(baseURL, requestedURL, allowAbsoluteUrls) {
return requestedURL; return requestedURL;
} }
const VERSION = "1.12.2"; const VERSION = "1.13.2";
function parseProtocol(url) { function parseProtocol(url) {
const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url); const match = /^([-+\w]{1,25})(:?\/\/|:)/.exec(url);
@@ -34136,6 +34146,101 @@ const flushOnFinish = (stream, [throttled, flush]) => {
return throttled; return throttled;
}; };
class Http2Sessions {
constructor() {
this.sessions = Object.create(null);
}
getSession(authority, options) {
options = Object.assign({
sessionTimeout: 1000
}, options);
let authoritySessions = this.sessions[authority];
if (authoritySessions) {
let len = authoritySessions.length;
for (let i = 0; i < len; i++) {
const [sessionHandle, sessionOptions] = authoritySessions[i];
if (!sessionHandle.destroyed && !sessionHandle.closed && util__default["default"].isDeepStrictEqual(sessionOptions, options)) {
return sessionHandle;
}
}
}
const session = http2__default["default"].connect(authority, options);
let removed;
const removeSession = () => {
if (removed) {
return;
}
removed = true;
let entries = authoritySessions, len = entries.length, i = len;
while (i--) {
if (entries[i][0] === session) {
if (len === 1) {
delete this.sessions[authority];
} else {
entries.splice(i, 1);
}
return;
}
}
};
const originalRequestFn = session.request;
const {sessionTimeout} = options;
if(sessionTimeout != null) {
let timer;
let streamsCount = 0;
session.request = function () {
const stream = originalRequestFn.apply(this, arguments);
streamsCount++;
if (timer) {
clearTimeout(timer);
timer = null;
}
stream.once('close', () => {
if (!--streamsCount) {
timer = setTimeout(() => {
timer = null;
removeSession();
}, sessionTimeout);
}
});
return stream;
};
}
session.once('close', removeSession);
let entry = [
session,
options
];
authoritySessions ? authoritySessions.push(entry) : authoritySessions = this.sessions[authority] = [entry];
return session;
}
}
const http2Sessions = new Http2Sessions();
/** /**
* If the proxy or config beforeRedirects functions are defined, call them with the options * If the proxy or config beforeRedirects functions are defined, call them with the options
@@ -34248,16 +34353,75 @@ const resolveFamily = ({address, family}) => {
const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {address, family}); const buildAddressEntry = (address, family) => resolveFamily(utils$1.isObject(address) ? address : {address, family});
const http2Transport = {
request(options, cb) {
const authority = options.protocol + '//' + options.hostname + ':' + (options.port || 80);
const {http2Options, headers} = options;
const session = http2Sessions.getSession(authority, http2Options);
const {
HTTP2_HEADER_SCHEME,
HTTP2_HEADER_METHOD,
HTTP2_HEADER_PATH,
HTTP2_HEADER_STATUS
} = http2__default["default"].constants;
const http2Headers = {
[HTTP2_HEADER_SCHEME]: options.protocol.replace(':', ''),
[HTTP2_HEADER_METHOD]: options.method,
[HTTP2_HEADER_PATH]: options.path,
};
utils$1.forEach(headers, (header, name) => {
name.charAt(0) !== ':' && (http2Headers[name] = header);
});
const req = session.request(http2Headers);
req.once('response', (responseHeaders) => {
const response = req; //duplex
responseHeaders = Object.assign({}, responseHeaders);
const status = responseHeaders[HTTP2_HEADER_STATUS];
delete responseHeaders[HTTP2_HEADER_STATUS];
response.headers = responseHeaders;
response.statusCode = +status;
cb(response);
});
return req;
}
};
/*eslint consistent-return:0*/ /*eslint consistent-return:0*/
const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) { const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) { return wrapAsync(async function dispatchHttpRequest(resolve, reject, onDone) {
let {data, lookup, family} = config; let {data, lookup, family, httpVersion = 1, http2Options} = config;
const {responseType, responseEncoding} = config; const {responseType, responseEncoding} = config;
const method = config.method.toUpperCase(); const method = config.method.toUpperCase();
let isDone; let isDone;
let rejected = false; let rejected = false;
let req; let req;
httpVersion = +httpVersion;
if (Number.isNaN(httpVersion)) {
throw TypeError(`Invalid protocol version: '${config.httpVersion}' is not a number`);
}
if (httpVersion !== 1 && httpVersion !== 2) {
throw TypeError(`Unsupported protocol version '${httpVersion}'`);
}
const isHttp2 = httpVersion === 2;
if (lookup) { if (lookup) {
const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]); const _lookup = callbackify$1(lookup, (value) => utils$1.isArray(value) ? value : [value]);
// hotfix to support opt.all option which is required for node 20.x // hotfix to support opt.all option which is required for node 20.x
@@ -34274,8 +34438,17 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
}; };
} }
// temporary internal emitter until the AxiosRequest class will be implemented const abortEmitter = new events.EventEmitter();
const emitter = new events.EventEmitter();
function abort(reason) {
try {
abortEmitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
} catch(err) {
console.warn('emit error', err);
}
}
abortEmitter.once('abort', reject);
const onFinished = () => { const onFinished = () => {
if (config.cancelToken) { if (config.cancelToken) {
@@ -34286,23 +34459,9 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
config.signal.removeEventListener('abort', abort); config.signal.removeEventListener('abort', abort);
} }
emitter.removeAllListeners(); abortEmitter.removeAllListeners();
}; };
onDone((value, isRejected) => {
isDone = true;
if (isRejected) {
rejected = true;
onFinished();
}
});
function abort(reason) {
emitter.emit('abort', !reason || reason.type ? new CanceledError(null, config, req) : reason);
}
emitter.once('abort', reject);
if (config.cancelToken || config.signal) { if (config.cancelToken || config.signal) {
config.cancelToken && config.cancelToken.subscribe(abort); config.cancelToken && config.cancelToken.subscribe(abort);
if (config.signal) { if (config.signal) {
@@ -34310,6 +34469,31 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
} }
} }
onDone((response, isRejected) => {
isDone = true;
if (isRejected) {
rejected = true;
onFinished();
return;
}
const {data} = response;
if (data instanceof stream__default["default"].Readable || data instanceof stream__default["default"].Duplex) {
const offListeners = stream__default["default"].finished(data, () => {
offListeners();
onFinished();
});
} else {
onFinished();
}
});
// Parse url // Parse url
const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls); const fullPath = buildFullPath(config.baseURL, config.url, config.allowAbsoluteUrls);
const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined); const parsed = new URL(fullPath, platform.hasBrowserEnv ? platform.origin : undefined);
@@ -34514,7 +34698,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
protocol, protocol,
family, family,
beforeRedirect: dispatchBeforeRedirect, beforeRedirect: dispatchBeforeRedirect,
beforeRedirects: {} beforeRedirects: {},
http2Options
}; };
// cacheable-lookup integration hotfix // cacheable-lookup integration hotfix
@@ -34531,18 +34716,23 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
let transport; let transport;
const isHttpsRequest = isHttps.test(options.protocol); const isHttpsRequest = isHttps.test(options.protocol);
options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent; options.agent = isHttpsRequest ? config.httpsAgent : config.httpAgent;
if (config.transport) {
transport = config.transport; if (isHttp2) {
} else if (config.maxRedirects === 0) { transport = http2Transport;
transport = isHttpsRequest ? https__default["default"] : http__default["default"];
} else { } else {
if (config.maxRedirects) { if (config.transport) {
options.maxRedirects = config.maxRedirects; transport = config.transport;
} else if (config.maxRedirects === 0) {
transport = isHttpsRequest ? https__default["default"] : http__default["default"];
} else {
if (config.maxRedirects) {
options.maxRedirects = config.maxRedirects;
}
if (config.beforeRedirect) {
options.beforeRedirects.config = config.beforeRedirect;
}
transport = isHttpsRequest ? httpsFollow : httpFollow;
} }
if (config.beforeRedirect) {
options.beforeRedirects.config = config.beforeRedirect;
}
transport = isHttpsRequest ? httpsFollow : httpFollow;
} }
if (config.maxBodyLength > -1) { if (config.maxBodyLength > -1) {
@@ -34562,7 +34752,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
const streams = [res]; const streams = [res];
const responseLength = +res.headers['content-length']; const responseLength = utils$1.toFiniteNumber(res.headers['content-length']);
if (onDownloadProgress || maxDownloadRate) { if (onDownloadProgress || maxDownloadRate) {
const transformStream = new AxiosTransformStream$1({ const transformStream = new AxiosTransformStream$1({
@@ -34625,10 +34815,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0]; responseStream = streams.length > 1 ? stream__default["default"].pipeline(streams, utils$1.noop) : streams[0];
const offListeners = stream__default["default"].finished(responseStream, () => {
offListeners();
onFinished();
});
const response = { const response = {
status: res.statusCode, status: res.statusCode,
@@ -34654,7 +34841,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
// stream.destroy() emit aborted event before calling reject() on Node.js v16 // stream.destroy() emit aborted event before calling reject() on Node.js v16
rejected = true; rejected = true;
responseStream.destroy(); responseStream.destroy();
reject(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded', abort(new AxiosError('maxContentLength size of ' + config.maxContentLength + ' exceeded',
AxiosError.ERR_BAD_RESPONSE, config, lastRequest)); AxiosError.ERR_BAD_RESPONSE, config, lastRequest));
} }
}); });
@@ -34696,7 +34883,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
}); });
} }
emitter.once('abort', err => { abortEmitter.once('abort', err => {
if (!responseStream.destroyed) { if (!responseStream.destroyed) {
responseStream.emit('error', err); responseStream.emit('error', err);
responseStream.destroy(); responseStream.destroy();
@@ -34704,9 +34891,12 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
}); });
}); });
emitter.once('abort', err => { abortEmitter.once('abort', err => {
reject(err); if (req.close) {
req.destroy(err); req.close();
} else {
req.destroy(err);
}
}); });
// Handle errors // Handle errors
@@ -34728,7 +34918,7 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
const timeout = parseInt(config.timeout, 10); const timeout = parseInt(config.timeout, 10);
if (Number.isNaN(timeout)) { if (Number.isNaN(timeout)) {
reject(new AxiosError( abort(new AxiosError(
'error trying to parse `config.timeout` to int', 'error trying to parse `config.timeout` to int',
AxiosError.ERR_BAD_OPTION_VALUE, AxiosError.ERR_BAD_OPTION_VALUE,
config, config,
@@ -34750,14 +34940,16 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
if (config.timeoutErrorMessage) { if (config.timeoutErrorMessage) {
timeoutErrorMessage = config.timeoutErrorMessage; timeoutErrorMessage = config.timeoutErrorMessage;
} }
reject(new AxiosError( abort(new AxiosError(
timeoutErrorMessage, timeoutErrorMessage,
transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED, transitional.clarifyTimeoutError ? AxiosError.ETIMEDOUT : AxiosError.ECONNABORTED,
config, config,
req req
)); ));
abort();
}); });
} else {
// explicitly reset the socket timeout value for a possible `keep-alive` request
req.setTimeout(0);
} }
@@ -34783,7 +34975,8 @@ const httpAdapter = isHttpAdapterSupported && function httpAdapter(config) {
data.pipe(req); data.pipe(req);
} else { } else {
req.end(data); data && req.write(data);
req.end();
} }
}); });
}; };
@@ -34805,27 +34998,38 @@ const cookies = platform.hasStandardBrowserEnv ?
// Standard browser envs support document.cookie // Standard browser envs support document.cookie
{ {
write(name, value, expires, path, domain, secure) { write(name, value, expires, path, domain, secure, sameSite) {
const cookie = [name + '=' + encodeURIComponent(value)]; if (typeof document === 'undefined') return;
utils$1.isNumber(expires) && cookie.push('expires=' + new Date(expires).toGMTString()); const cookie = [`${name}=${encodeURIComponent(value)}`];
utils$1.isString(path) && cookie.push('path=' + path); if (utils$1.isNumber(expires)) {
cookie.push(`expires=${new Date(expires).toUTCString()}`);
utils$1.isString(domain) && cookie.push('domain=' + domain); }
if (utils$1.isString(path)) {
secure === true && cookie.push('secure'); cookie.push(`path=${path}`);
}
if (utils$1.isString(domain)) {
cookie.push(`domain=${domain}`);
}
if (secure === true) {
cookie.push('secure');
}
if (utils$1.isString(sameSite)) {
cookie.push(`SameSite=${sameSite}`);
}
document.cookie = cookie.join('; '); document.cookie = cookie.join('; ');
}, },
read(name) { read(name) {
const match = document.cookie.match(new RegExp('(^|;\\s*)(' + name + ')=([^;]*)')); if (typeof document === 'undefined') return null;
return (match ? decodeURIComponent(match[3]) : null); const match = document.cookie.match(new RegExp('(?:^|; )' + name + '=([^;]*)'));
return match ? decodeURIComponent(match[1]) : null;
}, },
remove(name) { remove(name) {
this.write(name, '', Date.now() - 86400000); this.write(name, '', Date.now() - 86400000, '/');
} }
} }
@@ -34868,11 +35072,11 @@ function mergeConfig(config1, config2) {
} }
// eslint-disable-next-line consistent-return // eslint-disable-next-line consistent-return
function mergeDeepProperties(a, b, prop , caseless) { function mergeDeepProperties(a, b, prop, caseless) {
if (!utils$1.isUndefined(b)) { if (!utils$1.isUndefined(b)) {
return getMergedValue(a, b, prop , caseless); return getMergedValue(a, b, prop, caseless);
} else if (!utils$1.isUndefined(a)) { } else if (!utils$1.isUndefined(a)) {
return getMergedValue(undefined, a, prop , caseless); return getMergedValue(undefined, a, prop, caseless);
} }
} }
@@ -34930,7 +35134,7 @@ function mergeConfig(config1, config2) {
socketPath: defaultToConfig2, socketPath: defaultToConfig2,
responseEncoding: defaultToConfig2, responseEncoding: defaultToConfig2,
validateStatus: mergeDirectKeys, validateStatus: mergeDirectKeys,
headers: (a, b , prop) => mergeDeepProperties(headersToObject(a), headersToObject(b),prop, true) headers: (a, b, prop) => mergeDeepProperties(headersToObject(a), headersToObject(b), prop, true)
}; };
utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) { utils$1.forEach(Object.keys({...config1, ...config2}), function computeConfigValue(prop) {
@@ -35570,7 +35774,7 @@ const factory = (env) => {
const seedCache = new Map(); const seedCache = new Map();
const getFetch = (config) => { const getFetch = (config) => {
let env = config ? config.env : {}; let env = (config && config.env) || {};
const {fetch, Request, Response} = env; const {fetch, Request, Response} = env;
const seeds = [ const seeds = [
Request, Response, fetch Request, Response, fetch
@@ -35593,6 +35797,15 @@ const getFetch = (config) => {
getFetch(); getFetch();
/**
* Known adapters mapping.
* Provides environment-specific adapters for Axios:
* - `http` for Node.js
* - `xhr` for browsers
* - `fetch` for fetch API-based requests
*
* @type {Object<string, Function|Object>}
*/
const knownAdapters = { const knownAdapters = {
http: httpAdapter, http: httpAdapter,
xhr: xhrAdapter, xhr: xhrAdapter,
@@ -35601,71 +35814,107 @@ const knownAdapters = {
} }
}; };
// Assign adapter names for easier debugging and identification
utils$1.forEach(knownAdapters, (fn, value) => { utils$1.forEach(knownAdapters, (fn, value) => {
if (fn) { if (fn) {
try { try {
Object.defineProperty(fn, 'name', {value}); Object.defineProperty(fn, 'name', { value });
} catch (e) { } catch (e) {
// eslint-disable-next-line no-empty // eslint-disable-next-line no-empty
} }
Object.defineProperty(fn, 'adapterName', {value}); Object.defineProperty(fn, 'adapterName', { value });
} }
}); });
/**
* Render a rejection reason string for unknown or unsupported adapters
*
* @param {string} reason
* @returns {string}
*/
const renderReason = (reason) => `- ${reason}`; const renderReason = (reason) => `- ${reason}`;
/**
* Check if the adapter is resolved (function, null, or false)
*
* @param {Function|null|false} adapter
* @returns {boolean}
*/
const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false; const isResolvedHandle = (adapter) => utils$1.isFunction(adapter) || adapter === null || adapter === false;
const adapters = { /**
getAdapter: (adapters, config) => { * Get the first suitable adapter from the provided list.
adapters = utils$1.isArray(adapters) ? adapters : [adapters]; * Tries each adapter in order until a supported one is found.
* Throws an AxiosError if no adapter is suitable.
*
* @param {Array<string|Function>|string|Function} adapters - Adapter(s) by name or function.
* @param {Object} config - Axios request configuration
* @throws {AxiosError} If no suitable adapter is available
* @returns {Function} The resolved adapter function
*/
function getAdapter(adapters, config) {
adapters = utils$1.isArray(adapters) ? adapters : [adapters];
const {length} = adapters; const { length } = adapters;
let nameOrAdapter; let nameOrAdapter;
let adapter; let adapter;
const rejectedReasons = {}; const rejectedReasons = {};
for (let i = 0; i < length; i++) { for (let i = 0; i < length; i++) {
nameOrAdapter = adapters[i]; nameOrAdapter = adapters[i];
let id; let id;
adapter = nameOrAdapter; adapter = nameOrAdapter;
if (!isResolvedHandle(nameOrAdapter)) { if (!isResolvedHandle(nameOrAdapter)) {
adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()]; adapter = knownAdapters[(id = String(nameOrAdapter)).toLowerCase()];
if (adapter === undefined) { if (adapter === undefined) {
throw new AxiosError(`Unknown adapter '${id}'`); throw new AxiosError(`Unknown adapter '${id}'`);
}
} }
if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
break;
}
rejectedReasons[id || '#' + i] = adapter;
} }
if (!adapter) { if (adapter && (utils$1.isFunction(adapter) || (adapter = adapter.get(config)))) {
break;
}
const reasons = Object.entries(rejectedReasons) rejectedReasons[id || '#' + i] = adapter;
.map(([id, state]) => `adapter ${id} ` + }
(state === false ? 'is not supported by the environment' : 'is not available in the build')
);
let s = length ? if (!adapter) {
(reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) : const reasons = Object.entries(rejectedReasons)
'as no adapter specified'; .map(([id, state]) => `adapter ${id} ` +
(state === false ? 'is not supported by the environment' : 'is not available in the build')
throw new AxiosError(
`There is no suitable adapter to dispatch the request ` + s,
'ERR_NOT_SUPPORT'
); );
}
return adapter; let s = length ?
}, (reasons.length > 1 ? 'since :\n' + reasons.map(renderReason).join('\n') : ' ' + renderReason(reasons[0])) :
'as no adapter specified';
throw new AxiosError(
`There is no suitable adapter to dispatch the request ` + s,
'ERR_NOT_SUPPORT'
);
}
return adapter;
}
/**
* Exports Axios adapters and utility to resolve an adapter
*/
const adapters = {
/**
* Resolve an adapter from a list of adapter names or functions.
* @type {Function}
*/
getAdapter,
/**
* Exposes all known adapters
* @type {Object<string, Function|Object>}
*/
adapters: knownAdapters adapters: knownAdapters
}; };
@@ -36299,6 +36548,12 @@ const HttpStatusCode = {
LoopDetected: 508, LoopDetected: 508,
NotExtended: 510, NotExtended: 510,
NetworkAuthenticationRequired: 511, NetworkAuthenticationRequired: 511,
WebServerIsDown: 521,
ConnectionTimedOut: 522,
OriginIsUnreachable: 523,
TimeoutOccurred: 524,
SslHandshakeFailed: 525,
InvalidSslCertificate: 526,
}; };
Object.entries(HttpStatusCode).forEach(([key, value]) => { Object.entries(HttpStatusCode).forEach(([key, value]) => {

76
package-lock.json generated
View File

@@ -12,8 +12,8 @@
"@actions/core": "^1.11.1" "@actions/core": "^1.11.1"
}, },
"devDependencies": { "devDependencies": {
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.4",
"axios": "^1.12", "axios": "^1.13",
"form-data": "^4.0.3", "form-data": "^4.0.3",
"yargs": "^18.0.0" "yargs": "^18.0.0"
}, },
@@ -66,9 +66,9 @@
} }
}, },
"node_modules/@vercel/ncc": { "node_modules/@vercel/ncc": {
"version": "0.38.3", "version": "0.38.4",
"resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.3.tgz", "resolved": "https://registry.npmjs.org/@vercel/ncc/-/ncc-0.38.4.tgz",
"integrity": "sha512-rnK6hJBS6mwc+Bkab+PGPs9OiS0i/3kdTO+CkI8V0/VrW3vmz7O2Pxjw/owOlmo6PKEIxRSeZKv/kuL9itnpYA==", "integrity": "sha512-8LwjnlP39s08C08J5NstzriPvW1SP8Zfpp1BvC2sI35kPeZnHfxVkCwu4/+Wodgnd60UtT1n8K8zw+Mp7J9JmQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"bin": { "bin": {
@@ -76,9 +76,9 @@
} }
}, },
"node_modules/ansi-regex": { "node_modules/ansi-regex": {
"version": "6.1.0", "version": "6.2.2",
"resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.1.0.tgz", "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-6.2.2.tgz",
"integrity": "sha512-7HSX4QQb4CspciLpVFwyRe79O3xsIZDDLER21kERQ71oaPodF8jL725AgJMFAYbooIqolJoRLuM81SpeUkpkvA==", "integrity": "sha512-Bq3SmSpyFHaWjPk8If9yc6svM8c56dB5BAtW4Qbw5jHTwwXXcTLoRMkpDJp6VL0XzlWaCHTXrkFURMYmD0sLqg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@@ -89,9 +89,9 @@
} }
}, },
"node_modules/ansi-styles": { "node_modules/ansi-styles": {
"version": "6.2.1", "version": "6.2.3",
"resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.1.tgz", "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-6.2.3.tgz",
"integrity": "sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug==", "integrity": "sha512-4Dj6M28JB+oAH8kFkTLUo+a2jwOFkuqb3yucU0CANcRRUbxS0cP0nZYCGjcc3BNXwRIsUVmDGgzawme7zvJHvg==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@@ -109,9 +109,9 @@
"license": "MIT" "license": "MIT"
}, },
"node_modules/axios": { "node_modules/axios": {
"version": "1.12.2", "version": "1.13.2",
"resolved": "https://registry.npmjs.org/axios/-/axios-1.12.2.tgz", "resolved": "https://registry.npmjs.org/axios/-/axios-1.13.2.tgz",
"integrity": "sha512-vMJzPewAlRyOgxV2dU0Cuz2O8zzzx9VYtbJOaBgXFeLc4IV/Eg50n4LowmehOOR61S8ZMpc2K5Sa7g6A4jfkUw==", "integrity": "sha512-VPk9ebNqPcy5lRGuSlKx752IlDatOjT9paPlm8A7yOuW2Fbvp4X3JznJtT4f0GzGLLiWE9W8onz51SqLYwzGaA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -188,9 +188,9 @@
} }
}, },
"node_modules/emoji-regex": { "node_modules/emoji-regex": {
"version": "10.4.0", "version": "10.6.0",
"resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.4.0.tgz", "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-10.6.0.tgz",
"integrity": "sha512-EC+0oUMY1Rqm4O6LLrgjtYDvcVYTy7chDnM4Q7030tP4Kwj3u/pR6gP9ygnp2CJMK5Gq+9Q2oqmrFJAz01DXjw==", "integrity": "sha512-toUI84YS5YmxW219erniWD0CIVOo46xGKColeNQRgOzDorgBi1v4D71/OFzgD9GO2UGKIv1C3Sp8DAn0+j5w7A==",
"dev": true, "dev": true,
"license": "MIT" "license": "MIT"
}, },
@@ -254,9 +254,9 @@
} }
}, },
"node_modules/follow-redirects": { "node_modules/follow-redirects": {
"version": "1.15.9", "version": "1.15.11",
"resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.9.tgz", "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.11.tgz",
"integrity": "sha512-gew4GsXizNgdoRyqmyfMHyAmXsZDk6mHkSxZFCzW9gwlbtOW44CDtYavM+y+72qD/Vq2l550kMF52DT8fOLJqQ==", "integrity": "sha512-deG2P0JfjrTxl50XGCDyfI97ZGVCxIpfKYmfyrQ54n5FO/0gfIES8C/Psl6kWVDolizcaaxZJnTS0QSMxvnsBQ==",
"dev": true, "dev": true,
"funding": [ "funding": [
{ {
@@ -275,9 +275,9 @@
} }
}, },
"node_modules/form-data": { "node_modules/form-data": {
"version": "4.0.4", "version": "4.0.5",
"resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.4.tgz", "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.5.tgz",
"integrity": "sha512-KrGhL9Q4zjj0kiUt5OO4Mr/A/jlI2jDYs5eHBpYHPcBEVSiipAvn2Ko2HnPe20rmcuuvMHNdZFp+4IlGTMF0Ow==", "integrity": "sha512-8RipRLol37bNs2bhoV67fiTEvdTrbMUYcFTiy3+wuuOnUog2QBHCZWXDRijWQfAkhBj2Uf5UnVaiWwA5vdd82w==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -312,9 +312,9 @@
} }
}, },
"node_modules/get-east-asian-width": { "node_modules/get-east-asian-width": {
"version": "1.3.0", "version": "1.4.0",
"resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.3.0.tgz", "resolved": "https://registry.npmjs.org/get-east-asian-width/-/get-east-asian-width-1.4.0.tgz",
"integrity": "sha512-vpeMIQKxczTD/0s2CdEWHcb0eeJe6TFjxb+J5xgX7hScxqrGuyjmv4c1D4A/gelKfyox0gJJwIHF+fLjeaM8kQ==", "integrity": "sha512-QZjmEOC+IT1uk6Rx0sX22V6uHWVwbdbxf1faPqJ1QhLdGgsRGCZoyaQBm/piRdJy/D2um6hM1UP7ZEeQ4EkP+Q==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"engines": { "engines": {
@@ -325,18 +325,18 @@
} }
}, },
"node_modules/get-intrinsic": { "node_modules/get-intrinsic": {
"version": "1.2.7", "version": "1.3.0",
"resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.2.7.tgz", "resolved": "https://registry.npmjs.org/get-intrinsic/-/get-intrinsic-1.3.0.tgz",
"integrity": "sha512-VW6Pxhsrk0KAOqs3WEd0klDiF/+V7gQOpAvY1jVU/LHmaD/kQO4523aiJuikX/QAKYiW6x8Jh+RJej1almdtCA==", "integrity": "sha512-9fSjSaos/fRIVIp+xSJlE6lfwhES7LNtKaCBIamHsjr2na1BiABJPo0mOjjz8GJDURarmCPGqaiVg5mfjb98CQ==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"call-bind-apply-helpers": "^1.0.1", "call-bind-apply-helpers": "^1.0.2",
"es-define-property": "^1.0.1", "es-define-property": "^1.0.1",
"es-errors": "^1.3.0", "es-errors": "^1.3.0",
"es-object-atoms": "^1.0.0", "es-object-atoms": "^1.1.1",
"function-bind": "^1.1.2", "function-bind": "^1.1.2",
"get-proto": "^1.0.0", "get-proto": "^1.0.1",
"gopd": "^1.2.0", "gopd": "^1.2.0",
"has-symbols": "^1.1.0", "has-symbols": "^1.1.0",
"hasown": "^2.0.2", "hasown": "^2.0.2",
@@ -477,9 +477,9 @@
} }
}, },
"node_modules/strip-ansi": { "node_modules/strip-ansi": {
"version": "7.1.0", "version": "7.1.2",
"resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.0.tgz", "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-7.1.2.tgz",
"integrity": "sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ==", "integrity": "sha512-gmBGslpoQJtgnMAvOVqGZpEz9dyoKTCzy2nfz/n8aIFhN/jCE/rCmcxabB6jOOHV+0WNnylOxaxBQPSvcWklhA==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
@@ -514,9 +514,9 @@
} }
}, },
"node_modules/wrap-ansi": { "node_modules/wrap-ansi": {
"version": "9.0.0", "version": "9.0.2",
"resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.0.tgz", "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-9.0.2.tgz",
"integrity": "sha512-G8ura3S+3Z2G+mkgNRq8dqaFZAuxfsxpBB8OCTGRTCtp+l/v9nbFNmCUP1BZMts3G1142MsZfn6eeUKrr4PD1Q==", "integrity": "sha512-42AtmgqjV+X1VpdOfyTGOYRi0/zsoLqtXQckTmqTeybT+BDIbM/Guxo7x3pE2vtpr1ok6xRqM9OpBe+Jyoqyww==",
"dev": true, "dev": true,
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {

View File

@@ -19,8 +19,8 @@
}, },
"homepage": "https://github.com/fjogeleit/http-request-action#readme", "homepage": "https://github.com/fjogeleit/http-request-action#readme",
"devDependencies": { "devDependencies": {
"@vercel/ncc": "^0.38.3", "@vercel/ncc": "^0.38.4",
"axios": "^1.12", "axios": "^1.13",
"form-data": "^4.0.3", "form-data": "^4.0.3",
"yargs": "^18.0.0" "yargs": "^18.0.0"
}, },