Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 3 additions & 17 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright 2024 EPAM Systems
# Copyright 2025 EPAM Systems
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
Expand All @@ -19,7 +19,7 @@ on:

permissions:
id-token: write # Required for NPM OIDC
contents: write
contents: read

jobs:
build:
Expand All @@ -38,7 +38,7 @@ jobs:
- name: Run tests and check coverage
run: npm run test:coverage

publish-to-npm-and-gpr:
publish-to-npm:
needs: build
runs-on: ubuntu-latest
steps:
Expand All @@ -55,17 +55,3 @@ jobs:
run: |
npm config list
npm publish --access public
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version: 24
registry-url: 'https://npm.pkg.github.com'
scope: '@reportportal'
- name: Publish to GPR
run: |
npm config set //npm.pkg.github.com/:_authToken=$NODE_AUTH_TOKEN
npm config set scope '@reportportal'
npm config list
npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
### Fixed
- The default agent params overriding via `restClientConfig.agent`. Fixes [agent-js-playwright#193](https://github.com/reportportal/agent-js-playwright/issues/193).

## [5.5.3] - 2025-11-06
### Changed
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
5.5.3
5.5.4-SNAPSHOT
6 changes: 4 additions & 2 deletions lib/rest.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,10 +65,12 @@ class RestClient {

request(method, url, data, options = {}) {
// Only apply proxy agents if custom agents are not explicitly provided
// Priority: explicit httpsAgent/httpAgent > proxy config > default
// Priority: explicit httpsAgent/httpAgent/agent > proxy config > default
const hasCustomAgents =
this.restClientConfig &&
('httpsAgent' in this.restClientConfig || 'httpAgent' in this.restClientConfig);
('httpsAgent' in this.restClientConfig ||
'httpAgent' in this.restClientConfig ||
'agent' in this.restClientConfig);
const proxyAgents = hasCustomAgents ? {} : getProxyAgentForUrl(url, this.restClientConfig);
const usingProxyAgent = Object.keys(proxyAgents).length > 0;

Expand Down
Loading