Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: TooTallNate/proxy-agents
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: https-proxy-agent@7.0.3
Choose a base ref
...
head repository: TooTallNate/proxy-agents
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: https-proxy-agent@7.0.4
Choose a head ref
  • 4 commits
  • 13 files changed
  • 3 contributors

Commits on Feb 13, 2024

  1. chore: fix some typos (#282)

    striezel authored Feb 13, 2024
    Copy the full SHA
    d494f89 View commit details
  2. chore: update actions in GitHub Actions workflows (#283)

    The following updates are performed:
    * update actions/checkout to v4
    * update actions/setup-node to v4
    * update pnpm/action-setup to v3
    striezel authored Feb 13, 2024
    Copy the full SHA
    d8a4fba View commit details

Commits on Feb 15, 2024

  1. fix: URL imports for Node 14 (#289)

    danielbankhead authored Feb 15, 2024

    Verified

    This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
    Copy the full SHA
    b88ab46 View commit details
  2. Version Packages (#290)

    github-actions[bot] authored Feb 15, 2024
    Copy the full SHA
    b5f94e3 View commit details
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -13,18 +13,18 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Fetch git tags
run: git fetch origin 'refs/tags/*:refs/tags/*'

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 7.32.2

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
18 changes: 9 additions & 9 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -23,15 +23,15 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 7.32.2

- name: Setup Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
@@ -49,15 +49,15 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 7.32.2

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
@@ -77,15 +77,15 @@ jobs:

steps:
- name: Checkout Repo
uses: actions/checkout@v3
uses: actions/checkout@v4

- name: Setup pnpm
uses: pnpm/action-setup@v2
uses: pnpm/action-setup@v3
with:
version: 7.32.2

- name: Setup Node.js 20.x
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'pnpm'
4 changes: 2 additions & 2 deletions packages/degenerator/README.md
Original file line number Diff line number Diff line change
@@ -44,7 +44,7 @@ function myFn() {
}
```

Now we can compile this into an asyncronous function, implement the
Now we can compile this into an asynchronous function, implement the
async `get()` function, and finally evaluate it into a real JavaScript function
instance with the `vm` module:

@@ -87,4 +87,4 @@ API

### degenerator(code: string, names: Array<string|RegExp>): String

Returns a "degeneratorified" JavaScript string, with `async`/`await` transplanted.
Returns a "degeneratorified" JavaScript string, with `async`/`await` transplanted.
2 changes: 1 addition & 1 deletion packages/get-uri/README.md
Original file line number Diff line number Diff line change
@@ -55,7 +55,7 @@ Cacheability

When calling `getUri()` with the same URI multiple times, the `get-uri` module
supports sending an indicator that the remote resource has not been modified
since the last time it has been retreived from that node process.
since the last time it has been retrieved from that node process.

To do this, define a `cache` property on the "options object" argument
with the value set to the `stream.Readable` instance that was previously
4 changes: 2 additions & 2 deletions packages/get-uri/src/index.ts
Original file line number Diff line number Diff line change
@@ -47,10 +47,10 @@ export function isValidProtocol(p: string): p is keyof Protocols {
*
* For caching purposes, you can pass in a `stream` instance from a previous
* `getUri()` call as a `cache: stream` option, and if the destination has
* not changed since the last time the endpoint was retreived then the callback
* not changed since the last time the endpoint was retrieved then the callback
* will be invoked with an Error object with `code` set to "ENOTMODIFIED" and
* `null` for the "stream" instance argument. In this case, you can skip
* retreiving the file again and continue to use the previous payload.
* retrieving the file again and continue to use the previous payload.
*
* @param {String} uri URI to retrieve
* @param {Object} opts optional "options" object
6 changes: 6 additions & 0 deletions packages/http-proxy-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# http-proxy-agent

## 7.0.2

### Patch Changes

- b88ab46: Import `url` instead of `node:url` 🤷‍♂️

## 7.0.1

### Patch Changes
2 changes: 1 addition & 1 deletion packages/http-proxy-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "http-proxy-agent",
"version": "7.0.1",
"version": "7.0.2",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTP",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
2 changes: 1 addition & 1 deletion packages/http-proxy-agent/src/index.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import * as http from 'http';
import createDebug from 'debug';
import { once } from 'events';
import { Agent, AgentConnectOpts } from 'agent-base';
import { URL } from 'node:url';
import { URL } from 'url';
import type { OutgoingHttpHeaders } from 'http';

const debug = createDebug('http-proxy-agent');
6 changes: 6 additions & 0 deletions packages/https-proxy-agent/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# https-proxy-agent

## 7.0.4

### Patch Changes

- b88ab46: Import `url` instead of `node:url` 🤷‍♂️

## 7.0.3

### Patch Changes
2 changes: 1 addition & 1 deletion packages/https-proxy-agent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "https-proxy-agent",
"version": "7.0.3",
"version": "7.0.4",
"description": "An HTTP(s) proxy `http.Agent` implementation for HTTPS",
"main": "./dist/index.js",
"types": "./dist/index.d.ts",
2 changes: 1 addition & 1 deletion packages/https-proxy-agent/src/index.ts
Original file line number Diff line number Diff line change
@@ -4,7 +4,7 @@ import * as http from 'http';
import assert from 'assert';
import createDebug from 'debug';
import { Agent, AgentConnectOpts } from 'agent-base';
import { URL } from 'node:url';
import { URL } from 'url';
import { parseProxyResponse } from './parse-proxy-response';
import type { OutgoingHttpHeaders } from 'http';

2 changes: 1 addition & 1 deletion packages/pac-resolver/src/weekdayRange.ts
Original file line number Diff line number Diff line change
@@ -7,7 +7,7 @@ const weekdays: Weekday[] = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];
* Only the first parameter is mandatory. Either the second, the third, or both
* may be left out.
*
* If only one parameter is present, the function yeilds a true value on the
* If only one parameter is present, the function yields a true value on the
* weekday that the parameter represents. If the string "GMT" is specified as
* a second parameter, times are taken to be in GMT, otherwise in local timezone.
*
4 changes: 2 additions & 2 deletions packages/proxy/src/proxy.ts
Original file line number Diff line number Diff line change
@@ -91,7 +91,7 @@ async function onrequest(
if (!success) return requestAuthorization(req, res);
} catch (_err: unknown) {
const err = _err as Error;
// an error occured during login!
// an error occurred during login!
res.writeHead(500);
res.end((err.stack || err.message || err) + '\n');
return;
@@ -401,7 +401,7 @@ async function onconnect(
if (!success) return requestAuthorization(req, res);
} catch (_err) {
const err = _err as Error;
// an error occured during login!
// an error occurred during login!
res.writeHead(500);
res.end((err.stack || err.message || err) + '\n');
return;