File tree Expand file tree Collapse file tree 12 files changed +240
-807
lines changed
Expand file tree Collapse file tree 12 files changed +240
-807
lines changed Load Diff This file was deleted.
Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1+ ---
2+ version : 2
3+ updates :
4+ - package-ecosystem : " npm"
5+ directory : " /"
6+ schedule :
7+ interval : " daily"
8+ reviewers :
9+ - " scality/object"
10+ - package-ecosystem : " github-actions"
11+ directory : " /"
12+ schedule :
13+ interval : " daily"
14+ open-pull-requests-limit : 10
15+ reviewers :
16+ - " scality/object"
Original file line number Diff line number Diff line change 1+ ---
12name : release
3+ run-name : release ${{ inputs.tag }}
24
35on :
46 workflow_dispatch :
1315 runs-on : ubuntu-latest
1416 steps :
1517 - name : Checkout httpagent repository
16- uses : ' actions/checkout@v3 '
18+ uses : ' actions/checkout@v4 '
1719 with :
1820 ref : ${{ github.ref }}
1921
3335 - verify-release
3436 steps :
3537 - name : Create Release
36- uses : softprops/action-gh-release@v1
38+ uses : softprops/action-gh-release@v2
3739 env :
3840 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
3941 with :
Original file line number Diff line number Diff line change @@ -20,12 +20,12 @@ jobs:
2020 runs-on : ubuntu-latest
2121 steps :
2222 - name : Checkout
23- uses : actions/checkout@v3
23+ uses : actions/checkout@v4
2424 - name : Install deps
2525 run : sudo apt-get update -q
2626 - uses : actions/setup-node@v3
2727 with :
28- node-version : ' 16 '
28+ node-version : ' 20 '
2929 - name : Install Yarn
3030 run : npm install -g yarn
3131 - name : install dependencies
Original file line number Diff line number Diff line change 1+ import path from 'node:path' ;
2+ import { fileURLToPath } from 'node:url' ;
3+ import js from '@eslint/js' ;
4+ import { FlatCompat } from '@eslint/eslintrc' ;
5+
6+ const __filename = fileURLToPath ( import . meta. url ) ;
7+ const __dirname = path . dirname ( __filename ) ;
8+ const compat = new FlatCompat ( {
9+ baseDirectory : __dirname ,
10+ recommendedConfig : js . configs . recommended ,
11+ allConfig : js . configs . all
12+ } ) ;
13+
14+ export default [ ...compat . extends ( 'scality' ) , {
15+ languageOptions : {
16+ ecmaVersion : 2020 ,
17+ sourceType : 'module' ,
18+ } ,
19+ } ] ;
Original file line number Diff line number Diff line change 1- /* eslint-disable global-require */
2-
31exports . http = {
4- Agent : require ( './lib/http-agent' ) . default ,
2+ Agent : require ( './lib/http-agent' ) . default ,
53} ;
64
75exports . https = {
8- Agent : require ( './lib/https-agent' ) . default ,
6+ Agent : require ( './lib/https-agent' ) . default ,
97} ;
108
119exports . AgentConfiguration = require ( './lib/config/agentConfiguration' ) . default ;
Original file line number Diff line number Diff line change @@ -9,9 +9,9 @@ const maxSocketsNumber = Number(process.env.MAX_SOCKETS) || 50;
99 * handle load.
1010 */
1111const agentConfiguration = {
12- keepAlive : true ,
13- maxSockets : maxSocketsNumber ,
14- maxFreeSockets : maxSocketsNumber ,
12+ keepAlive : true ,
13+ maxSockets : maxSocketsNumber ,
14+ maxFreeSockets : maxSocketsNumber ,
1515} ;
1616
1717exports . default = agentConfiguration ;
Original file line number Diff line number Diff line change @@ -7,22 +7,22 @@ const agentConfiguration = require('./config/agentConfiguration');
77 * networking configuration across components.
88 */
99class AgentHttp extends HttpAgent {
10- /**
10+ /**
1111 * Constructor for the AgentHttp class
1212 *
1313 * @param opts - Custom HTTP Agent options
1414 * @param config - user-defined default configuration to apply
1515 */
16- constructor ( opts , config = {
17- maxSockets : true ,
18- } ) {
16+ constructor ( opts , config = {
17+ maxSockets : true ,
18+ } ) {
1919 // Enforce TCP session reuse configuration, unless explicitely specified.
20- let defaultConfigurations = { } ;
21- if ( config . maxSockets ) {
22- defaultConfigurations = agentConfiguration ;
20+ let defaultConfigurations = { } ;
21+ if ( config . maxSockets ) {
22+ defaultConfigurations = agentConfiguration ;
23+ }
24+ super ( { ...opts , ...defaultConfigurations } ) ;
2325 }
24- super ( { ...opts , ...defaultConfigurations } ) ;
25- }
2626}
2727
2828exports . default = AgentHttp ;
Original file line number Diff line number Diff line change @@ -7,22 +7,22 @@ const agentConfiguration = require('./config/agentConfiguration');
77 * networking configuration across components.
88 */
99class AgentHttps extends HttpsAgent {
10- /**
10+ /**
1111 * Constructor for the AgentHttps class
1212 *
1313 * @param opts - Custom HTTPs Agent options
1414 * @param config - user-defined default configuration to apply
1515 */
16- constructor ( opts , config = {
17- maxSockets : true ,
18- } ) {
16+ constructor ( opts , config = {
17+ maxSockets : true ,
18+ } ) {
1919 // Enforce TCP session reuse configuration, unless explicitely specified.
20- let defaultConfigurations = { } ;
21- if ( config . maxSockets ) {
22- defaultConfigurations = agentConfiguration ;
20+ let defaultConfigurations = { } ;
21+ if ( config . maxSockets ) {
22+ defaultConfigurations = agentConfiguration ;
23+ }
24+ super ( { ...opts , ...defaultConfigurations } ) ;
2325 }
24- super ( { ...opts , ...defaultConfigurations } ) ;
25- }
2626}
2727
2828exports . default = AgentHttps ;
You can’t perform that action at this time.
0 commit comments