diff --git a/.gitea/workflows/maintenance.yaml b/.gitea/workflows/maintenance.yaml
index e8e7766..eaf2ebe 100644
--- a/.gitea/workflows/maintenance.yaml
+++ b/.gitea/workflows/maintenance.yaml
@@ -32,6 +32,7 @@ jobs:
commit_message: 'chore: update pre-commit hooks'
branch: ${{ env.SPECIFIC_BRANCH }}
create_branch: true
+ push_options: --force
- name: Generate Date
run: echo "CURRENT_DATE=$(date +'%Y-%m-%d')" >> $GITHUB_ENV
- name: Create an PR action
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index 7ca0188..9ff7ddd 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -25,7 +25,7 @@ repos:
args: [--branch, main]
- repo: https://github.com/macisamuele/language-formatters-pre-commit-hooks
- rev: v2.13.0
+ rev: v2.1.0
hooks:
- id: pretty-format-ini
args: [--autofix]
diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json
index 90f35d9..7ea9ba9 100644
--- a/node_modules/.package-lock.json
+++ b/node_modules/.package-lock.json
@@ -14,18 +14,18 @@
}
},
"node_modules/@actions/http-client": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.1.tgz",
- "integrity": "sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw==",
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.0.tgz",
+ "integrity": "sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==",
"dependencies": {
"tunnel": "^0.0.6",
"undici": "^5.25.4"
}
},
"node_modules/@fastify/busboy": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz",
- "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz",
+ "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==",
"engines": {
"node": ">=14"
}
@@ -39,9 +39,9 @@
}
},
"node_modules/undici": {
- "version": "5.28.4",
- "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
- "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
+ "version": "5.27.2",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz",
+ "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==",
"dependencies": {
"@fastify/busboy": "^2.0.0"
},
diff --git a/node_modules/@actions/http-client/lib/index.js b/node_modules/@actions/http-client/lib/index.js
index f627c6a..5a3cad3 100644
--- a/node_modules/@actions/http-client/lib/index.js
+++ b/node_modules/@actions/http-client/lib/index.js
@@ -502,7 +502,7 @@ class HttpClient {
if (this._keepAlive && useProxy) {
agent = this._proxyAgent;
}
- if (!useProxy) {
+ if (this._keepAlive && !useProxy) {
agent = this._agent;
}
// if agent is already assigned use that agent.
@@ -534,12 +534,16 @@ class HttpClient {
agent = tunnelAgent(agentOptions);
this._proxyAgent = agent;
}
- // if tunneling agent isn't assigned create a new agent
- if (!agent) {
+ // if reusing agent across request and tunneling agent isn't assigned create a new agent
+ if (this._keepAlive && !agent) {
const options = { keepAlive: this._keepAlive, maxSockets };
agent = usingSsl ? new https.Agent(options) : new http.Agent(options);
this._agent = agent;
}
+ // if not using private agent and tunnel agent isn't setup then use global agent
+ if (!agent) {
+ agent = usingSsl ? https.globalAgent : http.globalAgent;
+ }
if (usingSsl && this._ignoreSslError) {
// we don't want to set NODE_TLS_REJECT_UNAUTHORIZED=0 since that will affect request for entire process
// http.RequestOptions doesn't expose a way to modify RequestOptions.agent.options
diff --git a/node_modules/@actions/http-client/lib/index.js.map b/node_modules/@actions/http-client/lib/index.js.map
index 1fce6fc..21d599d 100644
--- a/node_modules/@actions/http-client/lib/index.js.map
+++ b/node_modules/@actions/http-client/lib/index.js.map
@@ -1 +1 @@
-{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,2CAA4B;AAC5B,6CAA8B;AAG9B,4CAA6B;AAC7B,+CAAgC;AAChC,mCAAiC;AAEjC,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,uCAAQ,CAAA;IACR,iEAAqB,CAAA;IACrB,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,qEAAuB,CAAA;IACvB,qEAAuB,CAAA;IACvB,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,qDAAe,CAAA;IACf,mDAAc,CAAA;IACd,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,yFAAiC,CAAA;IACjC,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,2CAAU,CAAA;IACV,iEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,+DAAoB,CAAA;IACpB,uDAAgB,CAAA;IAChB,uEAAwB,CAAA;IACxB,+DAAoB,CAAA;AACtB,CAAC,EA5BW,SAAS,yBAAT,SAAS,QA4BpB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,uCAA4B,CA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AC,EAAE,EAAE,CAAC,CAAA"}
\ No newline at end of file
+{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,uDAAuD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAEvD,2CAA4B;AAC5B,6CAA8B;AAG9B,4CAA6B;AAC7B,+CAAgC;AAChC,mCAAiC;AAEjC,IAAY,SA4BX;AA5BD,WAAY,SAAS;IACnB,uCAAQ,CAAA;IACR,iEAAqB,CAAA;IACrB,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,mDAAc,CAAA;IACd,yDAAiB,CAAA;IACjB,qEAAuB,CAAA;IACvB,qEAAuB,CAAA;IACvB,uDAAgB,CAAA;IAChB,2DAAkB,CAAA;IAClB,iEAAqB,CAAA;IACrB,qDAAe,CAAA;IACf,mDAAc,CAAA;IACd,mEAAsB,CAAA;IACtB,6DAAmB,CAAA;IACnB,yFAAiC,CAAA;IACjC,+DAAoB,CAAA;IACpB,mDAAc,CAAA;IACd,2CAAU,CAAA;IACV,iEAAqB,CAAA;IACrB,yEAAyB,CAAA;IACzB,+DAAoB,CAAA;IACpB,uDAAgB,CAAA;IAChB,uEAAwB,CAAA;IACxB,+DAAoB,CAAA;AACtB,CAAC,EA5BW,SAAS,yBAAT,SAAS,QA4BpB;AAED,IAAY,OAGX;AAHD,WAAY,OAAO;IACjB,4BAAiB,CAAA;IACjB,uCAA4B,CAAA;AAC9B,CAAC,EAHW,OAAO,uBAAP,OAAO,QAGlB;AAED,IAAY,UAEX;AAFD,WAAY,UAAU;IACpB,kDAAoC,CAAA;AACtC,CAAC,EAFW,UAAU,0BAAV,UAAU,QAErB;AAED;;;GAGG;AACH,SAAgB,WAAW,CAAC,SAAiB;IAC3C,MAAM,QAAQ,GAAG,EAAE,CAAC,WAAW,CAAC,IAAI,GAAG,CAAC,SAAS,CAAC,CAAC,CAAA;IACnD,OAAO,QAAQ,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,CAAC,QAAQ,CAAC,CAAA;yBAC3B;wBAED,QAAQ,CAAC,MAAM,GAAG,GAAG,CAAA;qBACtB;oBAED,QAAQ,CAAC,OAAO,GAAG,GAAG,CAAC,OAAO,CAAC,OAAO,CAAA;iBACvC;gBAAC,OAAO,GAAG,EAAE;oBACZ,iEAAiE;iBAClE;gBAED,yDAAyD;gBACzD,IAAI,UAAU,GAAG,GAAG,EAAE;oBACpB,IAAI,GAAW,CAAA;oBAEf,0DAA0D;oBAC1D,IAAI,GAAG,IAAI,GAAG,CAAC,OAAO,EAAE;wBACtB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAA;qBAClB;yBAAM,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;wBAC1C,yEAAyE;wBACzE,GAAG,GAAG,QAAQ,CAAA;qBACf;yBAAM;wBACL,GAAG,GAAG,oBAAoB,UAAU,GAAG,CAAA;qBACxC;oBAED,MAAM,GAAG,GAAG,IAAI,eAAe,CAAC,GAAG,EAAE,UAAU,CAAC,CAAA;oBAChD,GAAG,CAAC,MAAM,GAAG,QAAQ,CAAC,MAAM,CAAA;oBAE5B,MAAM,CAAC,GAAG,CAAC,CAAA;iBACZ;qBAAM;oBACL,OAAO,CAAC,QAAQ,CAAC,CAAA;iBAClB;YACH,CAAC,CAAA,CAAC,CAAA;QACJ,CAAC;KAAA;CACF;AAhsBD,gCAgsBC;AAED,MAAM,aAAa,GAAG,CAAC,GAA2B,EAAO,EAAE,CACzD,MAAM,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,CAAC,CAAM,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,WAAW,EAAE,CAAC,GAAG,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAA"}
\ No newline at end of file
diff --git a/node_modules/@actions/http-client/package.json b/node_modules/@actions/http-client/package.json
index 0ae89c3..ed13437 100644
--- a/node_modules/@actions/http-client/package.json
+++ b/node_modules/@actions/http-client/package.json
@@ -1,6 +1,6 @@
{
"name": "@actions/http-client",
- "version": "2.2.1",
+ "version": "2.2.0",
"description": "Actions Http Client",
"keywords": [
"github",
@@ -48,4 +48,4 @@
"tunnel": "^0.0.6",
"undici": "^5.25.4"
}
-}
\ No newline at end of file
+}
diff --git a/node_modules/@fastify/busboy/README.md b/node_modules/@fastify/busboy/README.md
index ece3cc8..c74e618 100644
--- a/node_modules/@fastify/busboy/README.md
+++ b/node_modules/@fastify/busboy/README.md
@@ -2,10 +2,10 @@
-[](https://github.com/fastify/busboy/actions)
+[](https://github.com/fastify/busboy/actions)
[](https://coveralls.io/r/fastify/busboy?branch=master)
[](https://standardjs.com/)
-[](https://github.com/fastify/.github/blob/main/SECURITY.md)
+[](https://github.com/nodejs/security-wg/blob/HEAD/processes/responsible_disclosure_template.md)
diff --git a/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js b/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
index 3c8c081..79da160 100644
--- a/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
+++ b/node_modules/@fastify/busboy/deps/dicer/lib/Dicer.js
@@ -78,7 +78,7 @@ Dicer.prototype._write = function (data, encoding, cb) {
if (this._headerFirst && this._isPreamble) {
if (!this._part) {
this._part = new PartStream(this._partOpts)
- if (this.listenerCount('preamble') !== 0) { this.emit('preamble', this._part) } else { this._ignore() }
+ if (this._events.preamble) { this.emit('preamble', this._part) } else { this._ignore() }
}
const r = this._hparser.push(data)
if (!this._inHeader && r !== undefined && r < data.length) { data = data.slice(r) } else { return cb() }
@@ -135,7 +135,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
}
}
if (this._dashes === 2) {
- if ((start + i) < end && this.listenerCount('trailer') !== 0) { this.emit('trailer', data.slice(start + i, end)) }
+ if ((start + i) < end && this._events.trailer) { this.emit('trailer', data.slice(start + i, end)) }
this.reset()
this._finished = true
// no more parts will be added
@@ -153,13 +153,7 @@ Dicer.prototype._oninfo = function (isMatch, data, start, end) {
this._part._read = function (n) {
self._unpause()
}
- if (this._isPreamble && this.listenerCount('preamble') !== 0) {
- this.emit('preamble', this._part)
- } else if (this._isPreamble !== true && this.listenerCount('part') !== 0) {
- this.emit('part', this._part)
- } else {
- this._ignore()
- }
+ if (this._isPreamble && this._events.preamble) { this.emit('preamble', this._part) } else if (this._isPreamble !== true && this._events.part) { this.emit('part', this._part) } else { this._ignore() }
if (!this._isPreamble) { this._inHeader = true }
}
if (data && start < end && !this._ignoreData) {
diff --git a/node_modules/@fastify/busboy/lib/types/multipart.js b/node_modules/@fastify/busboy/lib/types/multipart.js
index d691eca..ad242db 100644
--- a/node_modules/@fastify/busboy/lib/types/multipart.js
+++ b/node_modules/@fastify/busboy/lib/types/multipart.js
@@ -163,7 +163,7 @@ function Multipart (boy, cfg) {
++nfiles
- if (boy.listenerCount('file') === 0) {
+ if (!boy._events.file) {
self.parser._ignore()
return
}
diff --git a/node_modules/@fastify/busboy/lib/utils/decodeText.js b/node_modules/@fastify/busboy/lib/utils/decodeText.js
index eac7d35..be35d6b 100644
--- a/node_modules/@fastify/busboy/lib/utils/decodeText.js
+++ b/node_modules/@fastify/busboy/lib/utils/decodeText.js
@@ -96,7 +96,7 @@ const decoders = {
if (textDecoders.has(this.toString())) {
try {
return textDecoders.get(this).decode(data)
- } catch {}
+ } catch (e) { }
}
return typeof data === 'string'
? data
diff --git a/node_modules/@fastify/busboy/package.json b/node_modules/@fastify/busboy/package.json
index 83693ac..4be895c 100644
--- a/node_modules/@fastify/busboy/package.json
+++ b/node_modules/@fastify/busboy/package.json
@@ -1,6 +1,6 @@
{
"name": "@fastify/busboy",
- "version": "2.1.1",
+ "version": "2.1.0",
"private": false,
"author": "Brian White ",
"contributors": [
@@ -43,7 +43,7 @@
"standard": "^17.0.0",
"tap": "^16.3.8",
"tinybench": "^2.5.1",
- "tsd": "^0.30.0",
+ "tsd": "^0.29.0",
"typescript": "^5.0.2"
},
"keywords": [
@@ -55,7 +55,7 @@
"license": "MIT",
"repository": {
"type": "git",
- "url": "git+https://github.com/fastify/busboy.git"
+ "url": "https://github.com/fastify/busboy.git"
},
"tsd": {
"directory": "test/types",
diff --git a/node_modules/undici/docs/api/Client.md b/node_modules/undici/docs/api/Client.md
index b9e26f0..4266838 100644
--- a/node_modules/undici/docs/api/Client.md
+++ b/node_modules/undici/docs/api/Client.md
@@ -33,7 +33,7 @@ Returns: `Client`
* **autoSelectFamily**: `boolean` (optional) - Default: depends on local Node version, on Node 18.13.0 and above is `false`. Enables a family autodetection algorithm that loosely implements section 5 of [RFC 8305](https://tools.ietf.org/html/rfc8305#section-5). See [here](https://nodejs.org/api/net.html#socketconnectoptions-connectlistener) for more details. This option is ignored if not supported by the current Node version.
* **autoSelectFamilyAttemptTimeout**: `number` - Default: depends on local Node version, on Node 18.13.0 and above is `250`. The amount of time in milliseconds to wait for a connection attempt to finish before trying the next address when using the `autoSelectFamily` option. See [here](https://nodejs.org/api/net.html#socketconnectoptions-connectlistener) for more details.
* **allowH2**: `boolean` - Default: `false`. Enables support for H2 if the server has assigned bigger priority to it through ALPN negotiation.
-* **maxConcurrentStreams**: `number` - Default: `100`. Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
+* **maxConcurrentStreams**: `number` - Default: `100`. Dictates the maximum number of concurrent streams for a single H2 session. It can be overriden by a SETTINGS remote frame.
#### Parameter: `ConnectOptions`
diff --git a/node_modules/undici/docs/api/MockPool.md b/node_modules/undici/docs/api/MockPool.md
index 96a986f..de53914 100644
--- a/node_modules/undici/docs/api/MockPool.md
+++ b/node_modules/undici/docs/api/MockPool.md
@@ -35,7 +35,8 @@ const mockPool = mockAgent.get('http://localhost:3000')
### `MockPool.intercept(options)`
-This method defines the interception rules for matching against requests for a MockPool or MockPool. We can intercept multiple times on a single instance, but each intercept is only used once. For example if you expect to make 2 requests inside a test, you need to call `intercept()` twice. Assuming you use `disableNetConnect()` you will get `MockNotMatchedError` on the second request when you only call `intercept()` once.
+This method defines the interception rules for matching against requests for a MockPool or MockPool. We can intercept multiple times on a single instance, but each intercept is only used once.
+For example if you expect to make 2 requests inside a test, you need to call `intercept()` twice. Assuming you use `disableNetConnect()` you will get `MockNotMatchedError` on the second request when you only call `intercept()` once.
When defining interception rules, all the rules must pass for a request to be intercepted. If a request is not intercepted, a real request will be attempted.
@@ -53,11 +54,11 @@ Returns: `MockInterceptor` corresponding to the input options.
### Parameter: `MockPoolInterceptOptions`
-* **path** `string | RegExp | (path: string) => boolean` - a matcher for the HTTP request path. When a `RegExp` or callback is used, it will match against the request path including all query parameters in alphabetical order. When a `string` is provided, the query parameters can be conveniently specified through the `MockPoolInterceptOptions.query` setting.
+* **path** `string | RegExp | (path: string) => boolean` - a matcher for the HTTP request path.
* **method** `string | RegExp | (method: string) => boolean` - (optional) - a matcher for the HTTP request method. Defaults to `GET`.
* **body** `string | RegExp | (body: string) => boolean` - (optional) - a matcher for the HTTP request body.
* **headers** `Record boolean`> - (optional) - a matcher for the HTTP request headers. To be intercepted, a request must match all defined headers. Extra headers not defined here may (or may not) be included in the request and do not affect the interception in any way.
-* **query** `Record | null` - (optional) - a matcher for the HTTP request query string params. Only applies when a `string` was provided for `MockPoolInterceptOptions.path`.
+* **query** `Record | null` - (optional) - a matcher for the HTTP request query string params.
### Return: `MockInterceptor`
@@ -457,41 +458,6 @@ const result3 = await request('http://localhost:3000/foo')
// Will not match and make attempt a real request
```
-#### Example - Mocked request with path callback
-
-```js
-import { MockAgent, setGlobalDispatcher, request } from 'undici'
-import querystring from 'querystring'
-
-const mockAgent = new MockAgent()
-setGlobalDispatcher(mockAgent)
-
-const mockPool = mockAgent.get('http://localhost:3000')
-
-const matchPath = requestPath => {
- const [pathname, search] = requestPath.split('?')
- const requestQuery = querystring.parse(search)
-
- if (!pathname.startsWith('/foo')) {
- return false
- }
-
- if (!Object.keys(requestQuery).includes('foo') || requestQuery.foo !== 'bar') {
- return false
- }
-
- return true
-}
-
-mockPool.intercept({
- path: matchPath,
- method: 'GET'
-}).reply(200, 'foo')
-
-const result = await request('http://localhost:3000/foo?foo=bar')
-// Will match and return mocked data
-```
-
### `MockPool.close()`
Closes the mock pool and de-registers from associated MockAgent.
diff --git a/node_modules/undici/docs/api/RetryHandler.md b/node_modules/undici/docs/api/RetryHandler.md
deleted file mode 100644
index 2323ce4..0000000
--- a/node_modules/undici/docs/api/RetryHandler.md
+++ /dev/null
@@ -1,108 +0,0 @@
-# Class: RetryHandler
-
-Extends: `undici.DispatcherHandlers`
-
-A handler class that implements the retry logic for a request.
-
-## `new RetryHandler(dispatchOptions, retryHandlers, [retryOptions])`
-
-Arguments:
-
-- **options** `Dispatch.DispatchOptions & RetryOptions` (required) - It is an intersection of `Dispatcher.DispatchOptions` and `RetryOptions`.
-- **retryHandlers** `RetryHandlers` (required) - Object containing the `dispatch` to be used on every retry, and `handler` for handling the `dispatch` lifecycle.
-
-Returns: `retryHandler`
-
-### Parameter: `Dispatch.DispatchOptions & RetryOptions`
-
-Extends: [`Dispatch.DispatchOptions`](Dispatcher.md#parameter-dispatchoptions).
-
-#### `RetryOptions`
-
-- **retry** `(err: Error, context: RetryContext, callback: (err?: Error | null) => void) => void` (optional) - Function to be called after every retry. It should pass error if no more retries should be performed.
-- **maxRetries** `number` (optional) - Maximum number of retries. Default: `5`
-- **maxTimeout** `number` (optional) - Maximum number of milliseconds to wait before retrying. Default: `30000` (30 seconds)
-- **minTimeout** `number` (optional) - Minimum number of milliseconds to wait before retrying. Default: `500` (half a second)
-- **timeoutFactor** `number` (optional) - Factor to multiply the timeout by for each retry attempt. Default: `2`
-- **retryAfter** `boolean` (optional) - It enables automatic retry after the `Retry-After` header is received. Default: `true`
--
-- **methods** `string[]` (optional) - Array of HTTP methods to retry. Default: `['GET', 'PUT', 'HEAD', 'OPTIONS', 'DELETE']`
-- **statusCodes** `number[]` (optional) - Array of HTTP status codes to retry. Default: `[429, 500, 502, 503, 504]`
-- **errorCodes** `string[]` (optional) - Array of Error codes to retry. Default: `['ECONNRESET', 'ECONNREFUSED', 'ENOTFOUND', 'ENETDOWN','ENETUNREACH', 'EHOSTDOWN',
-
-**`RetryContext`**
-
-- `state`: `RetryState` - Current retry state. It can be mutated.
-- `opts`: `Dispatch.DispatchOptions & RetryOptions` - Options passed to the retry handler.
-
-### Parameter `RetryHandlers`
-
-- **dispatch** `(options: Dispatch.DispatchOptions, handlers: Dispatch.DispatchHandlers) => Promise` (required) - Dispatch function to be called after every retry.
-- **handler** Extends [`Dispatch.DispatchHandlers`](Dispatcher.md#dispatcherdispatchoptions-handler) (required) - Handler function to be called after the request is successful or the retries are exhausted.
-
-Examples:
-
-```js
-const client = new Client(`http://localhost:${server.address().port}`);
-const chunks = [];
-const handler = new RetryHandler(
- {
- ...dispatchOptions,
- retryOptions: {
- // custom retry function
- retry: function (err, state, callback) {
- counter++;
-
- if (err.code && err.code === "UND_ERR_DESTROYED") {
- callback(err);
- return;
- }
-
- if (err.statusCode === 206) {
- callback(err);
- return;
- }
-
- setTimeout(() => callback(null), 1000);
- },
- },
- },
- {
- dispatch: (...args) => {
- return client.dispatch(...args);
- },
- handler: {
- onConnect() {},
- onBodySent() {},
- onHeaders(status, _rawHeaders, resume, _statusMessage) {
- // do something with headers
- },
- onData(chunk) {
- chunks.push(chunk);
- return true;
- },
- onComplete() {},
- onError() {
- // handle error properly
- },
- },
- }
-);
-```
-
-#### Example - Basic RetryHandler with defaults
-
-```js
-const client = new Client(`http://localhost:${server.address().port}`);
-const handler = new RetryHandler(dispatchOptions, {
- dispatch: client.dispatch.bind(client),
- handler: {
- onConnect() {},
- onBodySent() {},
- onHeaders(status, _rawHeaders, resume, _statusMessage) {},
- onData(chunk) {},
- onComplete() {},
- onError(err) {},
- },
-});
-```
diff --git a/node_modules/undici/index.js b/node_modules/undici/index.js
index 26302cc..7c0c8ad 100644
--- a/node_modules/undici/index.js
+++ b/node_modules/undici/index.js
@@ -15,7 +15,6 @@ const MockAgent = require('./lib/mock/mock-agent')
const MockPool = require('./lib/mock/mock-pool')
const mockErrors = require('./lib/mock/mock-errors')
const ProxyAgent = require('./lib/proxy-agent')
-const RetryHandler = require('./lib/handler/RetryHandler')
const { getGlobalDispatcher, setGlobalDispatcher } = require('./lib/global')
const DecoratorHandler = require('./lib/handler/DecoratorHandler')
const RedirectHandler = require('./lib/handler/RedirectHandler')
@@ -37,7 +36,6 @@ module.exports.Pool = Pool
module.exports.BalancedPool = BalancedPool
module.exports.Agent = Agent
module.exports.ProxyAgent = ProxyAgent
-module.exports.RetryHandler = RetryHandler
module.exports.DecoratorHandler = DecoratorHandler
module.exports.RedirectHandler = RedirectHandler
diff --git a/node_modules/undici/lib/api/api-request.js b/node_modules/undici/lib/api/api-request.js
index d4281ce..f130ecc 100644
--- a/node_modules/undici/lib/api/api-request.js
+++ b/node_modules/undici/lib/api/api-request.js
@@ -177,4 +177,3 @@ function request (opts, callback) {
}
module.exports = request
-module.exports.RequestHandler = RequestHandler
diff --git a/node_modules/undici/lib/api/readable.js b/node_modules/undici/lib/api/readable.js
index 5269dfa..d106568 100644
--- a/node_modules/undici/lib/api/readable.js
+++ b/node_modules/undici/lib/api/readable.js
@@ -16,8 +16,6 @@ const kBody = Symbol('kBody')
const kAbort = Symbol('abort')
const kContentType = Symbol('kContentType')
-const noop = () => {}
-
module.exports = class BodyReadable extends Readable {
constructor ({
resume,
@@ -151,50 +149,37 @@ module.exports = class BodyReadable extends Readable {
return this[kBody]
}
- dump (opts) {
+ async dump (opts) {
let limit = opts && Number.isFinite(opts.limit) ? opts.limit : 262144
const signal = opts && opts.signal
-
+ const abortFn = () => {
+ this.destroy()
+ }
+ let signalListenerCleanup
if (signal) {
- try {
- if (typeof signal !== 'object' || !('aborted' in signal)) {
- throw new InvalidArgumentError('signal must be an AbortSignal')
- }
+ if (typeof signal !== 'object' || !('aborted' in signal)) {
+ throw new InvalidArgumentError('signal must be an AbortSignal')
+ }
+ util.throwIfAborted(signal)
+ signalListenerCleanup = util.addAbortListener(signal, abortFn)
+ }
+ try {
+ for await (const chunk of this) {
util.throwIfAborted(signal)
- } catch (err) {
- return Promise.reject(err)
+ limit -= Buffer.byteLength(chunk)
+ if (limit < 0) {
+ return
+ }
+ }
+ } catch {
+ util.throwIfAborted(signal)
+ } finally {
+ if (typeof signalListenerCleanup === 'function') {
+ signalListenerCleanup()
+ } else if (signalListenerCleanup) {
+ signalListenerCleanup[Symbol.dispose]()
}
}
-
- if (this.closed) {
- return Promise.resolve(null)
- }
-
- return new Promise((resolve, reject) => {
- const signalListenerCleanup = signal
- ? util.addAbortListener(signal, () => {
- this.destroy()
- })
- : noop
-
- this
- .on('close', function () {
- signalListenerCleanup()
- if (signal && signal.aborted) {
- reject(signal.reason || Object.assign(new Error('The operation was aborted'), { name: 'AbortError' }))
- } else {
- resolve(null)
- }
- })
- .on('error', noop)
- .on('data', function (chunk) {
- limit -= chunk.length
- if (limit <= 0) {
- this.destroy()
- }
- })
- .resume()
- })
}
}
diff --git a/node_modules/undici/lib/cache/symbols.js b/node_modules/undici/lib/cache/symbols.js
index 40448d6..f9b1974 100644
--- a/node_modules/undici/lib/cache/symbols.js
+++ b/node_modules/undici/lib/cache/symbols.js
@@ -1,5 +1,5 @@
'use strict'
module.exports = {
- kConstruct: require('../core/symbols').kConstruct
+ kConstruct: Symbol('constructable')
}
diff --git a/node_modules/undici/lib/client.js b/node_modules/undici/lib/client.js
index 22cb390..968a7f9 100644
--- a/node_modules/undici/lib/client.js
+++ b/node_modules/undici/lib/client.js
@@ -917,9 +917,11 @@ class Parser {
socket[kReset] = true
}
- const pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false
-
- if (request.aborted) {
+ let pause
+ try {
+ pause = request.onHeaders(statusCode, headers, this.resume, statusText) === false
+ } catch (err) {
+ util.destroy(socket, err)
return -1
}
@@ -966,8 +968,13 @@ class Parser {
this.bytesRead += buf.length
- if (request.onData(buf) === false) {
- return constants.ERROR.PAUSED
+ try {
+ if (request.onData(buf) === false) {
+ return constants.ERROR.PAUSED
+ }
+ } catch (err) {
+ util.destroy(socket, err)
+ return -1
}
}
@@ -1008,7 +1015,11 @@ class Parser {
return -1
}
- request.onComplete(headers)
+ try {
+ request.onComplete(headers)
+ } catch (err) {
+ errorRequest(client, request, err)
+ }
client[kQueue][client[kRunningIdx]++] = null
@@ -1172,7 +1183,7 @@ async function connect (client) {
const idx = hostname.indexOf(']')
assert(idx !== -1)
- const ip = hostname.substring(1, idx)
+ const ip = hostname.substr(1, idx - 1)
assert(net.isIP(ip))
hostname = ip
@@ -1671,7 +1682,6 @@ function writeH2 (client, session, request) {
return false
}
- /** @type {import('node:http2').ClientHttp2Stream} */
let stream
const h2State = client[kHTTP2SessionState]
@@ -1767,10 +1777,14 @@ function writeH2 (client, session, request) {
const shouldEndStream = method === 'GET' || method === 'HEAD'
if (expectContinue) {
headers[HTTP2_HEADER_EXPECT] = '100-continue'
+ /**
+ * @type {import('node:http2').ClientHttp2Stream}
+ */
stream = session.request(headers, { endStream: shouldEndStream, signal })
stream.once('continue', writeBodyH2)
} else {
+ /** @type {import('node:http2').ClientHttp2Stream} */
stream = session.request(headers, {
endStream: shouldEndStream,
signal
@@ -1782,9 +1796,7 @@ function writeH2 (client, session, request) {
++h2State.openStreams
stream.once('response', headers => {
- const { [HTTP2_HEADER_STATUS]: statusCode, ...realHeaders } = headers
-
- if (request.onHeaders(Number(statusCode), realHeaders, stream.resume.bind(stream), '') === false) {
+ if (request.onHeaders(Number(headers[HTTP2_HEADER_STATUS]), headers, stream.resume.bind(stream), '') === false) {
stream.pause()
}
})
@@ -1794,17 +1806,13 @@ function writeH2 (client, session, request) {
})
stream.on('data', (chunk) => {
- if (request.onData(chunk) === false) {
- stream.pause()
- }
+ if (request.onData(chunk) === false) stream.pause()
})
stream.once('close', () => {
h2State.openStreams -= 1
// TODO(HTTP/2): unref only if current streams count is 0
- if (h2State.openStreams === 0) {
- session.unref()
- }
+ if (h2State.openStreams === 0) session.unref()
})
stream.once('error', function (err) {
@@ -1964,11 +1972,7 @@ function writeStream ({ h2stream, body, client, request, socket, contentLength,
}
}
const onAbort = function () {
- if (finished) {
- return
- }
- const err = new RequestAbortedError()
- queueMicrotask(() => onFinished(err))
+ onFinished(new RequestAbortedError())
}
const onFinished = function (err) {
if (finished) {
diff --git a/node_modules/undici/lib/core/errors.js b/node_modules/undici/lib/core/errors.js
index 7af704b..653782d 100644
--- a/node_modules/undici/lib/core/errors.js
+++ b/node_modules/undici/lib/core/errors.js
@@ -193,19 +193,6 @@ class ResponseExceededMaxSizeError extends UndiciError {
}
}
-class RequestRetryError extends UndiciError {
- constructor (message, code, { headers, data }) {
- super(message)
- Error.captureStackTrace(this, RequestRetryError)
- this.name = 'RequestRetryError'
- this.message = message || 'Request retry error'
- this.code = 'UND_ERR_REQ_RETRY'
- this.statusCode = code
- this.data = data
- this.headers = headers
- }
-}
-
module.exports = {
HTTPParserError,
UndiciError,
@@ -225,6 +212,5 @@ module.exports = {
NotSupportedError,
ResponseContentLengthMismatchError,
BalancedPoolMissingUpstreamError,
- ResponseExceededMaxSizeError,
- RequestRetryError
+ ResponseExceededMaxSizeError
}
diff --git a/node_modules/undici/lib/core/request.js b/node_modules/undici/lib/core/request.js
index 3697e6a..7db05ce 100644
--- a/node_modules/undici/lib/core/request.js
+++ b/node_modules/undici/lib/core/request.js
@@ -230,9 +230,9 @@ class Request {
onBodySent (chunk) {
if (this[kHandler].onBodySent) {
try {
- return this[kHandler].onBodySent(chunk)
+ this[kHandler].onBodySent(chunk)
} catch (err) {
- this.abort(err)
+ this.onError(err)
}
}
}
@@ -244,9 +244,9 @@ class Request {
if (this[kHandler].onRequestSent) {
try {
- return this[kHandler].onRequestSent()
+ this[kHandler].onRequestSent()
} catch (err) {
- this.abort(err)
+ this.onError(err)
}
}
}
@@ -271,23 +271,14 @@ class Request {
channels.headers.publish({ request: this, response: { statusCode, headers, statusText } })
}
- try {
- return this[kHandler].onHeaders(statusCode, headers, resume, statusText)
- } catch (err) {
- this.abort(err)
- }
+ return this[kHandler].onHeaders(statusCode, headers, resume, statusText)
}
onData (chunk) {
assert(!this.aborted)
assert(!this.completed)
- try {
- return this[kHandler].onData(chunk)
- } catch (err) {
- this.abort(err)
- return false
- }
+ return this[kHandler].onData(chunk)
}
onUpgrade (statusCode, headers, socket) {
@@ -306,13 +297,7 @@ class Request {
if (channels.trailers.hasSubscribers) {
channels.trailers.publish({ request: this, trailers })
}
-
- try {
- return this[kHandler].onComplete(trailers)
- } catch (err) {
- // TODO (fix): This might be a bad idea?
- this.onError(err)
- }
+ return this[kHandler].onComplete(trailers)
}
onError (error) {
@@ -326,7 +311,6 @@ class Request {
return
}
this.aborted = true
-
return this[kHandler].onError(error)
}
diff --git a/node_modules/undici/lib/core/symbols.js b/node_modules/undici/lib/core/symbols.js
index 68d8566..c2492f4 100644
--- a/node_modules/undici/lib/core/symbols.js
+++ b/node_modules/undici/lib/core/symbols.js
@@ -57,7 +57,5 @@ module.exports = {
kHTTP2BuildRequest: Symbol('http2 build request'),
kHTTP1BuildRequest: Symbol('http1 build request'),
kHTTP2CopyHeaders: Symbol('http2 copy headers'),
- kHTTPConnVersion: Symbol('http connection version'),
- kRetryHandlerDefaultRetry: Symbol('retry agent default retry'),
- kConstruct: Symbol('constructable')
+ kHTTPConnVersion: Symbol('http connection version')
}
diff --git a/node_modules/undici/lib/core/util.js b/node_modules/undici/lib/core/util.js
index 5741650..f2ead03 100644
--- a/node_modules/undici/lib/core/util.js
+++ b/node_modules/undici/lib/core/util.js
@@ -9,7 +9,6 @@ const { InvalidArgumentError } = require('./errors')
const { Blob } = require('buffer')
const nodeUtil = require('util')
const { stringify } = require('querystring')
-const { headerNameLowerCasedRecord } = require('./constants')
const [nodeMajor, nodeMinor] = process.versions.node.split('.').map(v => Number(v))
@@ -126,13 +125,13 @@ function getHostname (host) {
const idx = host.indexOf(']')
assert(idx !== -1)
- return host.substring(1, idx)
+ return host.substr(1, idx - 1)
}
const idx = host.indexOf(':')
if (idx === -1) return host
- return host.substring(0, idx)
+ return host.substr(0, idx)
}
// IP addresses are not valid server names per RFC6066
@@ -219,15 +218,6 @@ function parseKeepAliveTimeout (val) {
return m ? parseInt(m[1], 10) * 1000 : null
}
-/**
- * Retrieves a header name and returns its lowercase value.
- * @param {string | Buffer} value Header name
- * @returns {string}
- */
-function headerNameToString (value) {
- return headerNameLowerCasedRecord[value] || value.toLowerCase()
-}
-
function parseHeaders (headers, obj = {}) {
// For H2 support
if (!Array.isArray(headers)) return headers
@@ -238,7 +228,7 @@ function parseHeaders (headers, obj = {}) {
if (!val) {
if (Array.isArray(headers[i + 1])) {
- obj[key] = headers[i + 1].map(x => x.toString('utf8'))
+ obj[key] = headers[i + 1]
} else {
obj[key] = headers[i + 1].toString('utf8')
}
@@ -441,7 +431,16 @@ function throwIfAborted (signal) {
}
}
+let events
function addAbortListener (signal, listener) {
+ if (typeof Symbol.dispose === 'symbol') {
+ if (!events) {
+ events = require('events')
+ }
+ if (typeof events.addAbortListener === 'function' && 'aborted' in signal) {
+ return events.addAbortListener(signal, listener)
+ }
+ }
if ('addEventListener' in signal) {
signal.addEventListener('abort', listener, { once: true })
return () => signal.removeEventListener('abort', listener)
@@ -465,21 +464,6 @@ function toUSVString (val) {
return `${val}`
}
-// Parsed accordingly to RFC 9110
-// https://www.rfc-editor.org/rfc/rfc9110#field.content-range
-function parseRangeHeader (range) {
- if (range == null || range === '') return { start: 0, end: null, size: null }
-
- const m = range ? range.match(/^bytes (\d+)-(\d+)\/(\d+)?$/) : null
- return m
- ? {
- start: parseInt(m[1]),
- end: m[2] ? parseInt(m[2]) : null,
- size: m[3] ? parseInt(m[3]) : null
- }
- : null
-}
-
const kEnumerableProperty = Object.create(null)
kEnumerableProperty.enumerable = true
@@ -499,7 +483,6 @@ module.exports = {
isIterable,
isAsyncIterable,
isDestroyed,
- headerNameToString,
parseRawHeaders,
parseHeaders,
parseKeepAliveTimeout,
@@ -514,9 +497,7 @@ module.exports = {
buildURL,
throwIfAborted,
addAbortListener,
- parseRangeHeader,
nodeMajor,
nodeMinor,
- nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13),
- safeHTTPMethods: ['GET', 'HEAD', 'OPTIONS', 'TRACE']
+ nodeHasAutoSelectFamily: nodeMajor > 18 || (nodeMajor === 18 && nodeMinor >= 13)
}
diff --git a/node_modules/undici/lib/fetch/dataURL.js b/node_modules/undici/lib/fetch/dataURL.js
index 7b6a606..6df4fcc 100644
--- a/node_modules/undici/lib/fetch/dataURL.js
+++ b/node_modules/undici/lib/fetch/dataURL.js
@@ -119,14 +119,17 @@ function dataURLProcessor (dataURL) {
* @param {boolean} excludeFragment
*/
function URLSerializer (url, excludeFragment = false) {
+ const href = url.href
+
if (!excludeFragment) {
- return url.href
+ return href
}
- const href = url.href
- const hashLength = url.hash.length
-
- return hashLength === 0 ? href : href.substring(0, href.length - hashLength)
+ const hash = href.lastIndexOf('#')
+ if (hash === -1) {
+ return href
+ }
+ return href.slice(0, hash)
}
// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points
diff --git a/node_modules/undici/lib/fetch/headers.js b/node_modules/undici/lib/fetch/headers.js
index 2f1c0be..aa5e73e 100644
--- a/node_modules/undici/lib/fetch/headers.js
+++ b/node_modules/undici/lib/fetch/headers.js
@@ -2,7 +2,7 @@
'use strict'
-const { kHeadersList, kConstruct } = require('../core/symbols')
+const { kHeadersList } = require('../core/symbols')
const { kGuard } = require('./symbols')
const { kEnumerableProperty } = require('../core/util')
const {
@@ -16,13 +16,6 @@ const assert = require('assert')
const kHeadersMap = Symbol('headers map')
const kHeadersSortedMap = Symbol('headers map sorted')
-/**
- * @param {number} code
- */
-function isHTTPWhiteSpaceCharCode (code) {
- return code === 0x00a || code === 0x00d || code === 0x009 || code === 0x020
-}
-
/**
* @see https://fetch.spec.whatwg.org/#concept-header-value-normalize
* @param {string} potentialValue
@@ -31,12 +24,12 @@ function headerValueNormalize (potentialValue) {
// To normalize a byte sequence potentialValue, remove
// any leading and trailing HTTP whitespace bytes from
// potentialValue.
- let i = 0; let j = potentialValue.length
- while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(j - 1))) --j
- while (j > i && isHTTPWhiteSpaceCharCode(potentialValue.charCodeAt(i))) ++i
-
- return i === 0 && j === potentialValue.length ? potentialValue : potentialValue.substring(i, j)
+ // Trimming the end with `.replace()` and a RegExp is typically subject to
+ // ReDoS. This is safer and faster.
+ let i = potentialValue.length
+ while (/[\r\n\t ]/.test(potentialValue.charAt(--i)));
+ return potentialValue.slice(0, i + 1).replace(/^[\r\n\t ]+/, '')
}
function fill (headers, object) {
@@ -45,8 +38,7 @@ function fill (headers, object) {
// 1. If object is a sequence, then for each header in object:
// Note: webidl conversion to array has already been done.
if (Array.isArray(object)) {
- for (let i = 0; i < object.length; ++i) {
- const header = object[i]
+ for (const header of object) {
// 1. If header does not contain exactly two items, then throw a TypeError.
if (header.length !== 2) {
throw webidl.errors.exception({
@@ -56,16 +48,15 @@ function fill (headers, object) {
}
// 2. Append (header’s first item, header’s second item) to headers.
- appendHeader(headers, header[0], header[1])
+ headers.append(header[0], header[1])
}
} else if (typeof object === 'object' && object !== null) {
// Note: null should throw
// 2. Otherwise, object is a record, then for each key → value in object,
// append (key, value) to headers
- const keys = Object.keys(object)
- for (let i = 0; i < keys.length; ++i) {
- appendHeader(headers, keys[i], object[keys[i]])
+ for (const [key, value] of Object.entries(object)) {
+ headers.append(key, value)
}
} else {
throw webidl.errors.conversionFailed({
@@ -76,50 +67,6 @@ function fill (headers, object) {
}
}
-/**
- * @see https://fetch.spec.whatwg.org/#concept-headers-append
- */
-function appendHeader (headers, name, value) {
- // 1. Normalize value.
- value = headerValueNormalize(value)
-
- // 2. If name is not a header name or value is not a
- // header value, then throw a TypeError.
- if (!isValidHeaderName(name)) {
- throw webidl.errors.invalidArgument({
- prefix: 'Headers.append',
- value: name,
- type: 'header name'
- })
- } else if (!isValidHeaderValue(value)) {
- throw webidl.errors.invalidArgument({
- prefix: 'Headers.append',
- value,
- type: 'header value'
- })
- }
-
- // 3. If headers’s guard is "immutable", then throw a TypeError.
- // 4. Otherwise, if headers’s guard is "request" and name is a
- // forbidden header name, return.
- // Note: undici does not implement forbidden header names
- if (headers[kGuard] === 'immutable') {
- throw new TypeError('immutable')
- } else if (headers[kGuard] === 'request-no-cors') {
- // 5. Otherwise, if headers’s guard is "request-no-cors":
- // TODO
- }
-
- // 6. Otherwise, if headers’s guard is "response" and name is a
- // forbidden response-header name, return.
-
- // 7. Append (name, value) to headers’s header list.
- return headers[kHeadersList].append(name, value)
-
- // 8. If headers’s guard is "request-no-cors", then remove
- // privileged no-CORS request headers from headers
-}
-
class HeadersList {
/** @type {[string, string][]|null} */
cookies = null
@@ -128,7 +75,7 @@ class HeadersList {
if (init instanceof HeadersList) {
this[kHeadersMap] = new Map(init[kHeadersMap])
this[kHeadersSortedMap] = init[kHeadersSortedMap]
- this.cookies = init.cookies === null ? null : [...init.cookies]
+ this.cookies = init.cookies
} else {
this[kHeadersMap] = new Map(init)
this[kHeadersSortedMap] = null
@@ -190,7 +137,7 @@ class HeadersList {
// the first such header to value and remove the
// others.
// 2. Otherwise, append header (name, value) to list.
- this[kHeadersMap].set(lowercaseName, { name, value })
+ return this[kHeadersMap].set(lowercaseName, { name, value })
}
// https://fetch.spec.whatwg.org/#concept-header-list-delete
@@ -203,18 +150,20 @@ class HeadersList {
this.cookies = null
}
- this[kHeadersMap].delete(name)
+ return this[kHeadersMap].delete(name)
}
// https://fetch.spec.whatwg.org/#concept-header-list-get
get (name) {
- const value = this[kHeadersMap].get(name.toLowerCase())
-
// 1. If list does not contain name, then return null.
+ if (!this.contains(name)) {
+ return null
+ }
+
// 2. Return the values of all headers in list whose name
// is a byte-case-insensitive match for name,
// separated from each other by 0x2C 0x20, in order.
- return value === undefined ? null : value.value
+ return this[kHeadersMap].get(name.toLowerCase())?.value ?? null
}
* [Symbol.iterator] () {
@@ -240,9 +189,6 @@ class HeadersList {
// https://fetch.spec.whatwg.org/#headers-class
class Headers {
constructor (init = undefined) {
- if (init === kConstruct) {
- return
- }
this[kHeadersList] = new HeadersList()
// The new Headers(init) constructor steps are:
@@ -266,7 +212,43 @@ class Headers {
name = webidl.converters.ByteString(name)
value = webidl.converters.ByteString(value)
- return appendHeader(this, name, value)
+ // 1. Normalize value.
+ value = headerValueNormalize(value)
+
+ // 2. If name is not a header name or value is not a
+ // header value, then throw a TypeError.
+ if (!isValidHeaderName(name)) {
+ throw webidl.errors.invalidArgument({
+ prefix: 'Headers.append',
+ value: name,
+ type: 'header name'
+ })
+ } else if (!isValidHeaderValue(value)) {
+ throw webidl.errors.invalidArgument({
+ prefix: 'Headers.append',
+ value,
+ type: 'header value'
+ })
+ }
+
+ // 3. If headers’s guard is "immutable", then throw a TypeError.
+ // 4. Otherwise, if headers’s guard is "request" and name is a
+ // forbidden header name, return.
+ // Note: undici does not implement forbidden header names
+ if (this[kGuard] === 'immutable') {
+ throw new TypeError('immutable')
+ } else if (this[kGuard] === 'request-no-cors') {
+ // 5. Otherwise, if headers’s guard is "request-no-cors":
+ // TODO
+ }
+
+ // 6. Otherwise, if headers’s guard is "response" and name is a
+ // forbidden response-header name, return.
+
+ // 7. Append (name, value) to headers’s header list.
+ // 8. If headers’s guard is "request-no-cors", then remove
+ // privileged no-CORS request headers from headers
+ return this[kHeadersList].append(name, value)
}
// https://fetch.spec.whatwg.org/#dom-headers-delete
@@ -311,7 +293,7 @@ class Headers {
// 7. Delete name from this’s header list.
// 8. If this’s guard is "request-no-cors", then remove
// privileged no-CORS request headers from this.
- this[kHeadersList].delete(name)
+ return this[kHeadersList].delete(name)
}
// https://fetch.spec.whatwg.org/#dom-headers-get
@@ -404,7 +386,7 @@ class Headers {
// 7. Set (name, value) in this’s header list.
// 8. If this’s guard is "request-no-cors", then remove
// privileged no-CORS request headers from this
- this[kHeadersList].set(name, value)
+ return this[kHeadersList].set(name, value)
}
// https://fetch.spec.whatwg.org/#dom-headers-getsetcookie
@@ -440,8 +422,7 @@ class Headers {
const cookies = this[kHeadersList].cookies
// 3. For each name of names:
- for (let i = 0; i < names.length; ++i) {
- const [name, value] = names[i]
+ for (const [name, value] of names) {
// 1. If name is `set-cookie`, then:
if (name === 'set-cookie') {
// 1. Let values be a list of all values of headers in list whose name
@@ -449,8 +430,8 @@ class Headers {
// 2. For each value of values:
// 1. Append (name, value) to headers.
- for (let j = 0; j < cookies.length; ++j) {
- headers.push([name, cookies[j]])
+ for (const value of cookies) {
+ headers.push([name, value])
}
} else {
// 2. Otherwise:
@@ -474,12 +455,6 @@ class Headers {
keys () {
webidl.brandCheck(this, Headers)
- if (this[kGuard] === 'immutable') {
- const value = this[kHeadersSortedMap]
- return makeIterator(() => value, 'Headers',
- 'key')
- }
-
return makeIterator(
() => [...this[kHeadersSortedMap].values()],
'Headers',
@@ -490,12 +465,6 @@ class Headers {
values () {
webidl.brandCheck(this, Headers)
- if (this[kGuard] === 'immutable') {
- const value = this[kHeadersSortedMap]
- return makeIterator(() => value, 'Headers',
- 'value')
- }
-
return makeIterator(
() => [...this[kHeadersSortedMap].values()],
'Headers',
@@ -506,12 +475,6 @@ class Headers {
entries () {
webidl.brandCheck(this, Headers)
- if (this[kGuard] === 'immutable') {
- const value = this[kHeadersSortedMap]
- return makeIterator(() => value, 'Headers',
- 'key+value')
- }
-
return makeIterator(
() => [...this[kHeadersSortedMap].values()],
'Headers',
diff --git a/node_modules/undici/lib/fetch/index.js b/node_modules/undici/lib/fetch/index.js
index dea2069..298b3dd 100644
--- a/node_modules/undici/lib/fetch/index.js
+++ b/node_modules/undici/lib/fetch/index.js
@@ -286,7 +286,7 @@ function finalizeAndReportTiming (response, initiatorType = 'other') {
}
// 8. If response’s timing allow passed flag is not set, then:
- if (!response.timingAllowPassed) {
+ if (!timingInfo.timingAllowPassed) {
// 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
timingInfo = createOpaqueTimingInfo({
startTime: timingInfo.startTime
@@ -1203,9 +1203,6 @@ function httpRedirectFetch (fetchParams, response) {
// https://fetch.spec.whatwg.org/#cors-non-wildcard-request-header-name
request.headersList.delete('authorization')
- // https://fetch.spec.whatwg.org/#authentication-entries
- request.headersList.delete('proxy-authorization', true)
-
// "Cookie" and "Host" are forbidden request-headers, which undici doesn't implement.
request.headersList.delete('cookie')
request.headersList.delete('host')
@@ -1960,7 +1957,7 @@ async function httpNetworkFetch (
path: url.pathname + url.search,
origin: url.origin,
method: request.method,
- body: fetchParams.controller.dispatcher.isMockActive ? request.body && (request.body.source || request.body.stream) : body,
+ body: fetchParams.controller.dispatcher.isMockActive ? request.body && request.body.source : body,
headers: request.headersList.entries,
maxRedirections: 0,
upgrade: request.mode === 'websocket' ? 'websocket' : undefined
@@ -2005,7 +2002,7 @@ async function httpNetworkFetch (
location = val
}
- headers[kHeadersList].append(key, val)
+ headers.append(key, val)
}
} else {
const keys = Object.keys(headersList)
@@ -2019,7 +2016,7 @@ async function httpNetworkFetch (
location = val
}
- headers[kHeadersList].append(key, val)
+ headers.append(key, val)
}
}
@@ -2123,7 +2120,7 @@ async function httpNetworkFetch (
const key = headersList[n + 0].toString('latin1')
const val = headersList[n + 1].toString('latin1')
- headers[kHeadersList].append(key, val)
+ headers.append(key, val)
}
resolve({
diff --git a/node_modules/undici/lib/fetch/request.js b/node_modules/undici/lib/fetch/request.js
index 6fe4dff..60e654e 100644
--- a/node_modules/undici/lib/fetch/request.js
+++ b/node_modules/undici/lib/fetch/request.js
@@ -10,8 +10,7 @@ const {
isValidHTTPToken,
sameOrigin,
normalizeMethod,
- makePolicyContainer,
- normalizeMethodRecord
+ makePolicyContainer
} = require('./util')
const {
forbiddenMethodsSet,
@@ -28,12 +27,13 @@ const { kHeaders, kSignal, kState, kGuard, kRealm } = require('./symbols')
const { webidl } = require('./webidl')
const { getGlobalOrigin } = require('./global')
const { URLSerializer } = require('./dataURL')
-const { kHeadersList, kConstruct } = require('../core/symbols')
+const { kHeadersList } = require('../core/symbols')
const assert = require('assert')
const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = require('events')
let TransformStream = globalThis.TransformStream
+const kInit = Symbol('init')
const kAbortController = Symbol('abortController')
const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
@@ -44,7 +44,7 @@ const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
class Request {
// https://fetch.spec.whatwg.org/#dom-request
constructor (input, init = {}) {
- if (input === kConstruct) {
+ if (input === kInit) {
return
}
@@ -183,10 +183,8 @@ class Request {
urlList: [...request.urlList]
})
- const initHasKey = Object.keys(init).length !== 0
-
// 13. If init is not empty, then:
- if (initHasKey) {
+ if (Object.keys(init).length > 0) {
// 1. If request’s mode is "navigate", then set it to "same-origin".
if (request.mode === 'navigate') {
request.mode = 'same-origin'
@@ -301,7 +299,7 @@ class Request {
}
// 23. If init["integrity"] exists, then set request’s integrity metadata to it.
- if (init.integrity != null) {
+ if (init.integrity !== undefined && init.integrity != null) {
request.integrity = String(init.integrity)
}
@@ -317,16 +315,16 @@ class Request {
// 2. If method is not a method or method is a forbidden method, then
// throw a TypeError.
- if (!isValidHTTPToken(method)) {
- throw new TypeError(`'${method}' is not a valid HTTP method.`)
+ if (!isValidHTTPToken(init.method)) {
+ throw TypeError(`'${init.method}' is not a valid HTTP method.`)
}
if (forbiddenMethodsSet.has(method.toUpperCase())) {
- throw new TypeError(`'${method}' HTTP method is unsupported.`)
+ throw TypeError(`'${init.method}' HTTP method is unsupported.`)
}
// 3. Normalize method.
- method = normalizeMethodRecord[method] ?? normalizeMethod(method)
+ method = normalizeMethod(init.method)
// 4. Set request’s method to method.
request.method = method
@@ -397,7 +395,7 @@ class Request {
// 30. Set this’s headers to a new Headers object with this’s relevant
// Realm, whose header list is request’s header list and guard is
// "request".
- this[kHeaders] = new Headers(kConstruct)
+ this[kHeaders] = new Headers()
this[kHeaders][kHeadersList] = request.headersList
this[kHeaders][kGuard] = 'request'
this[kHeaders][kRealm] = this[kRealm]
@@ -417,25 +415,25 @@ class Request {
}
// 32. If init is not empty, then:
- if (initHasKey) {
- /** @type {HeadersList} */
- const headersList = this[kHeaders][kHeadersList]
+ if (Object.keys(init).length !== 0) {
// 1. Let headers be a copy of this’s headers and its associated header
// list.
+ let headers = new Headers(this[kHeaders])
+
// 2. If init["headers"] exists, then set headers to init["headers"].
- const headers = init.headers !== undefined ? init.headers : new HeadersList(headersList)
+ if (init.headers !== undefined) {
+ headers = init.headers
+ }
// 3. Empty this’s headers’s header list.
- headersList.clear()
+ this[kHeaders][kHeadersList].clear()
// 4. If headers is a Headers object, then for each header in its header
// list, append header’s name/header’s value to this’s headers.
- if (headers instanceof HeadersList) {
+ if (headers.constructor.name === 'Headers') {
for (const [key, val] of headers) {
- headersList.append(key, val)
+ this[kHeaders].append(key, val)
}
- // Note: Copy the `set-cookie` meta-data.
- headersList.cookies = headers.cookies
} else {
// 5. Otherwise, fill this’s headers with headers.
fillHeaders(this[kHeaders], headers)
@@ -724,10 +722,10 @@ class Request {
// 3. Let clonedRequestObject be the result of creating a Request object,
// given clonedRequest, this’s headers’s guard, and this’s relevant Realm.
- const clonedRequestObject = new Request(kConstruct)
+ const clonedRequestObject = new Request(kInit)
clonedRequestObject[kState] = clonedRequest
clonedRequestObject[kRealm] = this[kRealm]
- clonedRequestObject[kHeaders] = new Headers(kConstruct)
+ clonedRequestObject[kHeaders] = new Headers()
clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList
clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard]
clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm]
diff --git a/node_modules/undici/lib/fetch/response.js b/node_modules/undici/lib/fetch/response.js
index 7338612..23cf55c 100644
--- a/node_modules/undici/lib/fetch/response.js
+++ b/node_modules/undici/lib/fetch/response.js
@@ -23,7 +23,7 @@ const { webidl } = require('./webidl')
const { FormData } = require('./formdata')
const { getGlobalOrigin } = require('./global')
const { URLSerializer } = require('./dataURL')
-const { kHeadersList, kConstruct } = require('../core/symbols')
+const { kHeadersList } = require('../core/symbols')
const assert = require('assert')
const { types } = require('util')
@@ -144,7 +144,7 @@ class Response {
// 2. Set this’s headers to a new Headers object with this’s relevant
// Realm, whose header list is this’s response’s header list and guard
// is "response".
- this[kHeaders] = new Headers(kConstruct)
+ this[kHeaders] = new Headers()
this[kHeaders][kGuard] = 'response'
this[kHeaders][kHeadersList] = this[kState].headersList
this[kHeaders][kRealm] = this[kRealm]
@@ -514,7 +514,11 @@ webidl.converters.XMLHttpRequestBodyInit = function (V) {
return webidl.converters.Blob(V, { strict: false })
}
- if (types.isArrayBuffer(V) || types.isTypedArray(V) || types.isDataView(V)) {
+ if (
+ types.isAnyArrayBuffer(V) ||
+ types.isTypedArray(V) ||
+ types.isDataView(V)
+ ) {
return webidl.converters.BufferSource(V)
}
diff --git a/node_modules/undici/lib/fetch/util.js b/node_modules/undici/lib/fetch/util.js
index ede4ec4..033fa20 100644
--- a/node_modules/undici/lib/fetch/util.js
+++ b/node_modules/undici/lib/fetch/util.js
@@ -7,18 +7,14 @@ const { isBlobLike, toUSVString, ReadableStreamFrom } = require('../core/util')
const assert = require('assert')
const { isUint8Array } = require('util/types')
-let supportedHashes = []
-
// https://nodejs.org/api/crypto.html#determining-if-crypto-support-is-unavailable
/** @type {import('crypto')|undefined} */
let crypto
try {
crypto = require('crypto')
- const possibleRelevantHashes = ['sha256', 'sha384', 'sha512']
- supportedHashes = crypto.getHashes().filter((hash) => possibleRelevantHashes.includes(hash))
-/* c8 ignore next 3 */
} catch {
+
}
function responseURL (response) {
@@ -107,57 +103,52 @@ function isValidReasonPhrase (statusText) {
return true
}
-/**
- * @see https://tools.ietf.org/html/rfc7230#section-3.2.6
- * @param {number} c
- */
-function isTokenCharCode (c) {
- switch (c) {
- case 0x22:
- case 0x28:
- case 0x29:
- case 0x2c:
- case 0x2f:
- case 0x3a:
- case 0x3b:
- case 0x3c:
- case 0x3d:
- case 0x3e:
- case 0x3f:
- case 0x40:
- case 0x5b:
- case 0x5c:
- case 0x5d:
- case 0x7b:
- case 0x7d:
- // DQUOTE and "(),/:;<=>?@[\]{}"
- return false
- default:
- // VCHAR %x21-7E
- return c >= 0x21 && c <= 0x7e
- }
+function isTokenChar (c) {
+ return !(
+ c >= 0x7f ||
+ c <= 0x20 ||
+ c === '(' ||
+ c === ')' ||
+ c === '<' ||
+ c === '>' ||
+ c === '@' ||
+ c === ',' ||
+ c === ';' ||
+ c === ':' ||
+ c === '\\' ||
+ c === '"' ||
+ c === '/' ||
+ c === '[' ||
+ c === ']' ||
+ c === '?' ||
+ c === '=' ||
+ c === '{' ||
+ c === '}'
+ )
}
-/**
- * @param {string} characters
- */
+// See RFC 7230, Section 3.2.6.
+// https://github.com/chromium/chromium/blob/d7da0240cae77824d1eda25745c4022757499131/third_party/blink/renderer/platform/network/http_parsers.cc#L321
function isValidHTTPToken (characters) {
- if (characters.length === 0) {
+ if (!characters || typeof characters !== 'string') {
return false
}
for (let i = 0; i < characters.length; ++i) {
- if (!isTokenCharCode(characters.charCodeAt(i))) {
+ const c = characters.charCodeAt(i)
+ if (c > 0x7f || !isTokenChar(c)) {
return false
}
}
return true
}
-/**
- * @see https://fetch.spec.whatwg.org/#header-name
- * @param {string} potentialValue
- */
+// https://fetch.spec.whatwg.org/#header-name
+// https://github.com/chromium/chromium/blob/b3d37e6f94f87d59e44662d6078f6a12de845d17/net/http/http_util.cc#L342
function isValidHeaderName (potentialValue) {
+ if (potentialValue.length === 0) {
+ return false
+ }
+
return isValidHTTPToken(potentialValue)
}
@@ -546,56 +537,66 @@ function bytesMatch (bytes, metadataList) {
return true
}
- // 3. If response is not eligible for integrity validation, return false.
- // TODO
-
- // 4. If parsedMetadata is the empty set, return true.
+ // 3. If parsedMetadata is the empty set, return true.
if (parsedMetadata.length === 0) {
return true
}
- // 5. Let metadata be the result of getting the strongest
+ // 4. Let metadata be the result of getting the strongest
// metadata from parsedMetadata.
- const strongest = getStrongestMetadata(parsedMetadata)
- const metadata = filterMetadataListByAlgorithm(parsedMetadata, strongest)
+ const list = parsedMetadata.sort((c, d) => d.algo.localeCompare(c.algo))
+ // get the strongest algorithm
+ const strongest = list[0].algo
+ // get all entries that use the strongest algorithm; ignore weaker
+ const metadata = list.filter((item) => item.algo === strongest)
- // 6. For each item in metadata:
+ // 5. For each item in metadata:
for (const item of metadata) {
// 1. Let algorithm be the alg component of item.
const algorithm = item.algo
// 2. Let expectedValue be the val component of item.
- const expectedValue = item.hash
+ let expectedValue = item.hash
// See https://github.com/web-platform-tests/wpt/commit/e4c5cc7a5e48093220528dfdd1c4012dc3837a0e
// "be liberal with padding". This is annoying, and it's not even in the spec.
+ if (expectedValue.endsWith('==')) {
+ expectedValue = expectedValue.slice(0, -2)
+ }
+
// 3. Let actualValue be the result of applying algorithm to bytes.
let actualValue = crypto.createHash(algorithm).update(bytes).digest('base64')
- if (actualValue[actualValue.length - 1] === '=') {
- if (actualValue[actualValue.length - 2] === '=') {
- actualValue = actualValue.slice(0, -2)
- } else {
- actualValue = actualValue.slice(0, -1)
- }
+ if (actualValue.endsWith('==')) {
+ actualValue = actualValue.slice(0, -2)
}
// 4. If actualValue is a case-sensitive match for expectedValue,
// return true.
- if (compareBase64Mixed(actualValue, expectedValue)) {
+ if (actualValue === expectedValue) {
+ return true
+ }
+
+ let actualBase64URL = crypto.createHash(algorithm).update(bytes).digest('base64url')
+
+ if (actualBase64URL.endsWith('==')) {
+ actualBase64URL = actualBase64URL.slice(0, -2)
+ }
+
+ if (actualBase64URL === expectedValue) {
return true
}
}
- // 7. Return false.
+ // 6. Return false.
return false
}
// https://w3c.github.io/webappsec-subresource-integrity/#grammardef-hash-with-options
// https://www.w3.org/TR/CSP2/#source-list-syntax
// https://www.rfc-editor.org/rfc/rfc5234#appendix-B.1
-const parseHashWithOptions = /(?sha256|sha384|sha512)-((?[A-Za-z0-9+/]+|[A-Za-z0-9_-]+)={0,2}(?:\s|$)( +[!-~]*)?)?/i
+const parseHashWithOptions = /((?sha256|sha384|sha512)-(?[A-z0-9+/]{1}.*={0,2}))( +[\x21-\x7e]?)?/i
/**
* @see https://w3c.github.io/webappsec-subresource-integrity/#parse-metadata
@@ -609,6 +610,8 @@ function parseMetadata (metadata) {
// 2. Let empty be equal to true.
let empty = true
+ const supportedHashes = crypto.getHashes()
+
// 3. For each token returned by splitting metadata on spaces:
for (const token of metadata.split(' ')) {
// 1. Set empty to false.
@@ -618,11 +621,7 @@ function parseMetadata (metadata) {
const parsedToken = parseHashWithOptions.exec(token)
// 3. If token does not parse, continue to the next token.
- if (
- parsedToken === null ||
- parsedToken.groups === undefined ||
- parsedToken.groups.algo === undefined
- ) {
+ if (parsedToken === null || parsedToken.groups === undefined) {
// Note: Chromium blocks the request at this point, but Firefox
// gives a warning that an invalid integrity was given. The
// correct behavior is to ignore these, and subsequently not
@@ -631,11 +630,11 @@ function parseMetadata (metadata) {
}
// 4. Let algorithm be the hash-algo component of token.
- const algorithm = parsedToken.groups.algo.toLowerCase()
+ const algorithm = parsedToken.groups.algo
// 5. If algorithm is a hash function recognized by the user
// agent, add the parsed token to result.
- if (supportedHashes.includes(algorithm)) {
+ if (supportedHashes.includes(algorithm.toLowerCase())) {
result.push(parsedToken.groups)
}
}
@@ -648,82 +647,6 @@ function parseMetadata (metadata) {
return result
}
-/**
- * @param {{ algo: 'sha256' | 'sha384' | 'sha512' }[]} metadataList
- */
-function getStrongestMetadata (metadataList) {
- // Let algorithm be the algo component of the first item in metadataList.
- // Can be sha256
- let algorithm = metadataList[0].algo
- // If the algorithm is sha512, then it is the strongest
- // and we can return immediately
- if (algorithm[3] === '5') {
- return algorithm
- }
-
- for (let i = 1; i < metadataList.length; ++i) {
- const metadata = metadataList[i]
- // If the algorithm is sha512, then it is the strongest
- // and we can break the loop immediately
- if (metadata.algo[3] === '5') {
- algorithm = 'sha512'
- break
- // If the algorithm is sha384, then a potential sha256 or sha384 is ignored
- } else if (algorithm[3] === '3') {
- continue
- // algorithm is sha256, check if algorithm is sha384 and if so, set it as
- // the strongest
- } else if (metadata.algo[3] === '3') {
- algorithm = 'sha384'
- }
- }
- return algorithm
-}
-
-function filterMetadataListByAlgorithm (metadataList, algorithm) {
- if (metadataList.length === 1) {
- return metadataList
- }
-
- let pos = 0
- for (let i = 0; i < metadataList.length; ++i) {
- if (metadataList[i].algo === algorithm) {
- metadataList[pos++] = metadataList[i]
- }
- }
-
- metadataList.length = pos
-
- return metadataList
-}
-
-/**
- * Compares two base64 strings, allowing for base64url
- * in the second string.
- *
-* @param {string} actualValue always base64
- * @param {string} expectedValue base64 or base64url
- * @returns {boolean}
- */
-function compareBase64Mixed (actualValue, expectedValue) {
- if (actualValue.length !== expectedValue.length) {
- return false
- }
- for (let i = 0; i < actualValue.length; ++i) {
- if (actualValue[i] !== expectedValue[i]) {
- if (
- (actualValue[i] === '+' && expectedValue[i] === '-') ||
- (actualValue[i] === '/' && expectedValue[i] === '_')
- ) {
- continue
- }
- return false
- }
- }
-
- return true
-}
-
// https://w3c.github.io/webappsec-upgrade-insecure-requests/#upgrade-request
function tryUpgradeRequestToAPotentiallyTrustworthyURL (request) {
// TODO
@@ -770,30 +693,11 @@ function isCancelled (fetchParams) {
fetchParams.controller.state === 'terminated'
}
-const normalizeMethodRecord = {
- delete: 'DELETE',
- DELETE: 'DELETE',
- get: 'GET',
- GET: 'GET',
- head: 'HEAD',
- HEAD: 'HEAD',
- options: 'OPTIONS',
- OPTIONS: 'OPTIONS',
- post: 'POST',
- POST: 'POST',
- put: 'PUT',
- PUT: 'PUT'
-}
-
-// Note: object prototypes should not be able to be referenced. e.g. `Object#hasOwnProperty`.
-Object.setPrototypeOf(normalizeMethodRecord, null)
-
-/**
- * @see https://fetch.spec.whatwg.org/#concept-method-normalize
- * @param {string} method
- */
+// https://fetch.spec.whatwg.org/#concept-method-normalize
function normalizeMethod (method) {
- return normalizeMethodRecord[method.toLowerCase()] ?? method
+ return /^(DELETE|GET|HEAD|OPTIONS|POST|PUT)$/i.test(method)
+ ? method.toUpperCase()
+ : method
}
// https://infra.spec.whatwg.org/#serialize-a-javascript-value-to-a-json-string
@@ -1138,7 +1042,5 @@ module.exports = {
urlIsLocal,
urlHasHttpsScheme,
urlIsHttpHttpsScheme,
- readAllBytes,
- normalizeMethodRecord,
- parseMetadata
+ readAllBytes
}
diff --git a/node_modules/undici/lib/fetch/webidl.js b/node_modules/undici/lib/fetch/webidl.js
index 6fcf2ab..38a05e6 100644
--- a/node_modules/undici/lib/fetch/webidl.js
+++ b/node_modules/undici/lib/fetch/webidl.js
@@ -427,10 +427,12 @@ webidl.converters.ByteString = function (V) {
// 2. If the value of any element of x is greater than
// 255, then throw a TypeError.
for (let index = 0; index < x.length; index++) {
- if (x.charCodeAt(index) > 255) {
+ const charCode = x.charCodeAt(index)
+
+ if (charCode > 255) {
throw new TypeError(
'Cannot convert argument to a ByteString because the character at ' +
- `index ${index} has a value of ${x.charCodeAt(index)} which is greater than 255.`
+ `index ${index} has a value of ${charCode} which is greater than 255.`
)
}
}
diff --git a/node_modules/undici/lib/handler/RedirectHandler.js b/node_modules/undici/lib/handler/RedirectHandler.js
index 933725f..baca27e 100644
--- a/node_modules/undici/lib/handler/RedirectHandler.js
+++ b/node_modules/undici/lib/handler/RedirectHandler.js
@@ -184,17 +184,12 @@ function parseLocation (statusCode, headers) {
// https://tools.ietf.org/html/rfc7231#section-6.4.4
function shouldRemoveHeader (header, removeContent, unknownOrigin) {
- if (header.length === 4) {
- return util.headerNameToString(header) === 'host'
- }
- if (removeContent && util.headerNameToString(header).startsWith('content-')) {
- return true
- }
- if (unknownOrigin && (header.length === 13 || header.length === 6 || header.length === 19)) {
- const name = util.headerNameToString(header)
- return name === 'authorization' || name === 'cookie' || name === 'proxy-authorization'
- }
- return false
+ return (
+ (header.length === 4 && header.toString().toLowerCase() === 'host') ||
+ (removeContent && header.toString().toLowerCase().indexOf('content-') === 0) ||
+ (unknownOrigin && header.length === 13 && header.toString().toLowerCase() === 'authorization') ||
+ (unknownOrigin && header.length === 6 && header.toString().toLowerCase() === 'cookie')
+ )
}
// https://tools.ietf.org/html/rfc7231#section-6.4
diff --git a/node_modules/undici/lib/proxy-agent.js b/node_modules/undici/lib/proxy-agent.js
index e3c0f6f..c710948 100644
--- a/node_modules/undici/lib/proxy-agent.js
+++ b/node_modules/undici/lib/proxy-agent.js
@@ -65,9 +65,6 @@ class ProxyAgent extends DispatcherBase {
this[kProxyTls] = opts.proxyTls
this[kProxyHeaders] = opts.headers || {}
- const resolvedUrl = new URL(opts.uri)
- const { origin, port, host, username, password } = resolvedUrl
-
if (opts.auth && opts.token) {
throw new InvalidArgumentError('opts.auth cannot be used in combination with opts.token')
} else if (opts.auth) {
@@ -75,10 +72,11 @@ class ProxyAgent extends DispatcherBase {
this[kProxyHeaders]['proxy-authorization'] = `Basic ${opts.auth}`
} else if (opts.token) {
this[kProxyHeaders]['proxy-authorization'] = opts.token
- } else if (username && password) {
- this[kProxyHeaders]['proxy-authorization'] = `Basic ${Buffer.from(`${decodeURIComponent(username)}:${decodeURIComponent(password)}`).toString('base64')}`
}
+ const resolvedUrl = new URL(opts.uri)
+ const { origin, port, host } = resolvedUrl
+
const connect = buildConnector({ ...opts.proxyTls })
this[kConnectEndpoint] = buildConnector({ ...opts.requestTls })
this[kClient] = clientFactory(resolvedUrl, { connect })
@@ -102,7 +100,7 @@ class ProxyAgent extends DispatcherBase {
})
if (statusCode !== 200) {
socket.on('error', () => {}).destroy()
- callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))
+ callback(new RequestAbortedError('Proxy response !== 200 when HTTP Tunneling'))
}
if (opts.protocol !== 'https:') {
callback(null, socket)
diff --git a/node_modules/undici/package.json b/node_modules/undici/package.json
index 65a2d98..ea1228f 100644
--- a/node_modules/undici/package.json
+++ b/node_modules/undici/package.json
@@ -1,6 +1,6 @@
{
"name": "undici",
- "version": "5.28.4",
+ "version": "5.27.2",
"description": "An HTTP/1.1 client, written from scratch for Node.js",
"homepage": "https://undici.nodejs.org",
"bugs": {
@@ -115,16 +115,15 @@
"husky": "^8.0.1",
"import-fresh": "^3.3.0",
"jest": "^29.0.2",
- "jsdom": "^23.0.0",
+ "jsdom": "^22.1.0",
"jsfuzz": "^1.0.15",
"mocha": "^10.0.0",
- "mockttp": "^3.9.2",
"p-timeout": "^3.2.0",
"pre-commit": "^1.2.2",
"proxy": "^1.0.2",
"proxyquire": "^2.1.3",
"semver": "^7.5.4",
- "sinon": "^17.0.1",
+ "sinon": "^16.1.0",
"snazzy": "^9.0.0",
"standard": "^17.0.0",
"table": "^6.8.0",
diff --git a/node_modules/undici/types/client.d.ts b/node_modules/undici/types/client.d.ts
index 56e78cc..74948b1 100644
--- a/node_modules/undici/types/client.d.ts
+++ b/node_modules/undici/types/client.d.ts
@@ -77,7 +77,7 @@ export declare namespace Client {
*/
allowH2?: boolean;
/**
- * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overridden by a SETTINGS remote frame.
+ * @description Dictates the maximum number of concurrent streams for a single H2 session. It can be overriden by a SETTINGS remote frame.
* @default 100
*/
maxConcurrentStreams?: number
diff --git a/node_modules/undici/types/dispatcher.d.ts b/node_modules/undici/types/dispatcher.d.ts
index efc53ee..816db19 100644
--- a/node_modules/undici/types/dispatcher.d.ts
+++ b/node_modules/undici/types/dispatcher.d.ts
@@ -211,7 +211,7 @@ declare namespace Dispatcher {
/** Invoked when request is upgraded either due to a `Upgrade` header or `CONNECT` method. */
onUpgrade?(statusCode: number, headers: Buffer[] | string[] | null, socket: Duplex): void;
/** Invoked when statusCode and headers have been received. May be invoked multiple times due to 1xx informational headers. */
- onHeaders?(statusCode: number, headers: Buffer[] | string[] | null, resume: () => void, statusText: string): boolean;
+ onHeaders?(statusCode: number, headers: Buffer[] | string[] | null, resume: () => void): boolean;
/** Invoked when response payload data is received. */
onData?(chunk: Buffer): boolean;
/** Invoked when response payload and trailers have been received and the request has completed. */
diff --git a/node_modules/undici/types/fetch.d.ts b/node_modules/undici/types/fetch.d.ts
index 440f2b0..fa4619c 100644
--- a/node_modules/undici/types/fetch.d.ts
+++ b/node_modules/undici/types/fetch.d.ts
@@ -108,7 +108,7 @@ export interface RequestInit {
body?: BodyInit
redirect?: RequestRedirect
integrity?: string
- signal?: AbortSignal | null
+ signal?: AbortSignal
credentials?: RequestCredentials
mode?: RequestMode
referrer?: string
diff --git a/node_modules/undici/types/index.d.ts b/node_modules/undici/types/index.d.ts
index 0ea8bdc..4589845 100644
--- a/node_modules/undici/types/index.d.ts
+++ b/node_modules/undici/types/index.d.ts
@@ -14,7 +14,6 @@ import MockPool from'./mock-pool'
import MockAgent from'./mock-agent'
import mockErrors from'./mock-errors'
import ProxyAgent from'./proxy-agent'
-import RetryHandler from'./retry-handler'
import { request, pipeline, stream, connect, upgrade } from './api'
export * from './cookies'
@@ -28,7 +27,7 @@ export * from './content-type'
export * from './cache'
export { Interceptable } from './mock-interceptor'
-export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler, RetryHandler }
+export { Dispatcher, BalancedPool, Pool, Client, buildConnector, errors, Agent, request, stream, pipeline, connect, upgrade, setGlobalDispatcher, getGlobalDispatcher, setGlobalOrigin, getGlobalOrigin, MockClient, MockPool, MockAgent, mockErrors, ProxyAgent, RedirectHandler, DecoratorHandler }
export default Undici
declare namespace Undici {
@@ -36,7 +35,6 @@ declare namespace Undici {
var Pool: typeof import('./pool').default;
var RedirectHandler: typeof import ('./handlers').RedirectHandler
var DecoratorHandler: typeof import ('./handlers').DecoratorHandler
- var RetryHandler: typeof import ('./retry-handler').default
var createRedirectInterceptor: typeof import ('./interceptors').createRedirectInterceptor
var BalancedPool: typeof import('./balanced-pool').default;
var Client: typeof import('./client').default;
diff --git a/node_modules/undici/types/retry-handler.d.ts b/node_modules/undici/types/retry-handler.d.ts
deleted file mode 100644
index 0528eb4..0000000
--- a/node_modules/undici/types/retry-handler.d.ts
+++ /dev/null
@@ -1,116 +0,0 @@
-import Dispatcher from "./dispatcher";
-
-export default RetryHandler;
-
-declare class RetryHandler implements Dispatcher.DispatchHandlers {
- constructor(
- options: Dispatcher.DispatchOptions & {
- retryOptions?: RetryHandler.RetryOptions;
- },
- retryHandlers: RetryHandler.RetryHandlers
- );
-}
-
-declare namespace RetryHandler {
- export type RetryState = { counter: number; currentTimeout: number };
-
- export type RetryContext = {
- state: RetryState;
- opts: Dispatcher.DispatchOptions & {
- retryOptions?: RetryHandler.RetryOptions;
- };
- }
-
- export type OnRetryCallback = (result?: Error | null) => void;
-
- export type RetryCallback = (
- err: Error,
- context: {
- state: RetryState;
- opts: Dispatcher.DispatchOptions & {
- retryOptions?: RetryHandler.RetryOptions;
- };
- },
- callback: OnRetryCallback
- ) => number | null;
-
- export interface RetryOptions {
- /**
- * Callback to be invoked on every retry iteration.
- * It receives the error, current state of the retry object and the options object
- * passed when instantiating the retry handler.
- *
- * @type {RetryCallback}
- * @memberof RetryOptions
- */
- retry?: RetryCallback;
- /**
- * Maximum number of retries to allow.
- *
- * @type {number}
- * @memberof RetryOptions
- * @default 5
- */
- maxRetries?: number;
- /**
- * Max number of milliseconds allow between retries
- *
- * @type {number}
- * @memberof RetryOptions
- * @default 30000
- */
- maxTimeout?: number;
- /**
- * Initial number of milliseconds to wait before retrying for the first time.
- *
- * @type {number}
- * @memberof RetryOptions
- * @default 500
- */
- minTimeout?: number;
- /**
- * Factior to multiply the timeout factor between retries.
- *
- * @type {number}
- * @memberof RetryOptions
- * @default 2
- */
- timeoutFactor?: number;
- /**
- * It enables to automatically infer timeout between retries based on the `Retry-After` header.
- *
- * @type {boolean}
- * @memberof RetryOptions
- * @default true
- */
- retryAfter?: boolean;
- /**
- * HTTP methods to retry.
- *
- * @type {Dispatcher.HttpMethod[]}
- * @memberof RetryOptions
- * @default ['GET', 'HEAD', 'OPTIONS', 'PUT', 'DELETE', 'TRACE'],
- */
- methods?: Dispatcher.HttpMethod[];
- /**
- * Error codes to be retried. e.g. `ECONNRESET`, `ENOTFOUND`, `ETIMEDOUT`, `ECONNREFUSED`, etc.
- *
- * @type {string[]}
- * @default ['ECONNRESET','ECONNREFUSED','ENOTFOUND','ENETDOWN','ENETUNREACH','EHOSTDOWN','EHOSTUNREACH','EPIPE']
- */
- errorCodes?: string[];
- /**
- * HTTP status codes to be retried.
- *
- * @type {number[]}
- * @memberof RetryOptions
- * @default [500, 502, 503, 504, 429],
- */
- statusCodes?: number[];
- }
-
- export interface RetryHandlers {
- dispatch: Dispatcher["dispatch"];
- handler: Dispatcher.DispatchHandlers;
- }
-}
diff --git a/package-lock.json b/package-lock.json
index 3fcddcb..606a582 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -21,18 +21,18 @@
}
},
"node_modules/@actions/http-client": {
- "version": "2.2.1",
- "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.1.tgz",
- "integrity": "sha512-KhC/cZsq7f8I4LfZSJKgCvEwfkE8o1538VoBeoGzokVLLnbFDEAdFD3UhoMklxo2un9NJVBdANOresx7vTHlHw==",
+ "version": "2.2.0",
+ "resolved": "https://registry.npmjs.org/@actions/http-client/-/http-client-2.2.0.tgz",
+ "integrity": "sha512-q+epW0trjVUUHboliPb4UF9g2msf+w61b32tAkFEwL/IwP0DQWgbCMM0Hbe3e3WXSKz5VcUXbzJQgy8Hkra/Lg==",
"dependencies": {
"tunnel": "^0.0.6",
"undici": "^5.25.4"
}
},
"node_modules/@fastify/busboy": {
- "version": "2.1.1",
- "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz",
- "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==",
+ "version": "2.1.0",
+ "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.0.tgz",
+ "integrity": "sha512-+KpH+QxZU7O4675t3mnkQKcZZg56u+K/Ct2K+N2AZYNVK8kyeo/bI18tI8aPm3tvNNRyTWfj6s5tnGNlcbQRsA==",
"engines": {
"node": ">=14"
}
@@ -46,9 +46,9 @@
}
},
"node_modules/undici": {
- "version": "5.28.4",
- "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.4.tgz",
- "integrity": "sha512-72RFADWFqKmUb2hmmvNODKL3p9hcB6Gt2DOQMis1SEBaV6a4MH8soBvzg+95CYhCKPFedut2JY9bMfrDl9D23g==",
+ "version": "5.27.2",
+ "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz",
+ "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==",
"dependencies": {
"@fastify/busboy": "^2.0.0"
},