Skip to content

Commit

Permalink
chore: update deps
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelwittig committed Feb 7, 2024
1 parent e8b2270 commit 284fea2
Show file tree
Hide file tree
Showing 4 changed files with 1,414 additions and 4,764 deletions.
17 changes: 6 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
name: CI

on: [push, pull_request]

defaults:
run:
shell: bash
jobs:
build:
runs-on: ['hyperenv', 'medium']
strategy:
matrix:
node: ['14', '16', '17']

node: ['18', '20']
name: Node.js ${{ matrix.node }}

steps:

- uses: 'actions/checkout@v2'

- uses: actions/setup-node@v2
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node }}
cache: npm

- name: install dependencies
run: npm ci

- name: run tests
run: npm test
8 changes: 4 additions & 4 deletions cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import console from 'console';
import requestretry from 'requestretry';
import docopt from 'docopt';
import semver from 'semver';
import proxy from 'proxy-agent';
import { HttpsProxyAgent } from 'hpagent';
import truncate from 'truncate-middle';
import md5 from 'md5';
import pLimit from 'p-limit';
Expand All @@ -23,7 +23,7 @@ import {
import { IAMClient, ListAccountAliasesCommand } from '@aws-sdk/client-iam';
import { STSClient, GetCallerIdentityCommand } from '@aws-sdk/client-sts';
import { fromIni, fromEnv } from '@aws-sdk/credential-providers';
import { NodeHttpHandler } from '@aws-sdk/node-http-handler';
import { NodeHttpHandler } from '@smithy/node-http-handler';

import { create as gcreate } from './lib/graph.js';
import { create as tcreate, print as tprint } from './lib/table.js';
Expand All @@ -36,8 +36,8 @@ function generateAwsConfig(account, configOverrides) {
const proxyConfig = {};
if ('HTTPS_PROXY' in process.env) {
proxyConfig.requestHandler = new NodeHttpHandler({
httpAgent: proxy(process.env.HTTPS_PROXY),
httpsAgent: proxy(process.env.HTTPS_PROXY)
httpAgent: new HttpsProxyAgent({ proxy: process.env.HTTPS_PROXY }),
httpsAgent: new HttpsProxyAgent({ proxy: process.env.HTTPS_PROXY })
});
}
return Object.assign({region: 'us-east-1'}, account.config, proxyConfig, configOverrides);
Expand Down
Loading

0 comments on commit 284fea2

Please sign in to comment.