mirror of
https://github.com/tj-actions/changed-files
synced 2025-03-05 11:06:22 +00:00
Added missing changes and modified dist assets.
This commit is contained in:
parent
ba558db977
commit
1c938490c8
2 changed files with 34 additions and 43 deletions
75
dist/index.js
generated
vendored
75
dist/index.js
generated
vendored
|
@ -33037,6 +33037,7 @@ function request (opts, callback) {
|
|||
}
|
||||
|
||||
module.exports = request
|
||||
module.exports.RequestHandler = RequestHandler
|
||||
|
||||
|
||||
/***/ }),
|
||||
|
@ -33583,7 +33584,7 @@ module.exports = class BodyReadable extends Readable {
|
|||
this
|
||||
.on('close', function () {
|
||||
signalListenerCleanup()
|
||||
if (signal?.aborted) {
|
||||
if (signal && signal.aborted) {
|
||||
reject(signal.reason || Object.assign(new Error('The operation was aborted'), { name: 'AbortError' }))
|
||||
} else {
|
||||
resolve(null)
|
||||
|
@ -34977,13 +34978,13 @@ module.exports = {
|
|||
/***/ }),
|
||||
|
||||
/***/ 9174:
|
||||
/***/ ((module) => {
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
"use strict";
|
||||
|
||||
|
||||
module.exports = {
|
||||
kConstruct: Symbol('constructable')
|
||||
kConstruct: (__nccwpck_require__(2785).kConstruct)
|
||||
}
|
||||
|
||||
|
||||
|
@ -39234,7 +39235,8 @@ module.exports = {
|
|||
kHTTP1BuildRequest: Symbol('http1 build request'),
|
||||
kHTTP2CopyHeaders: Symbol('http2 copy headers'),
|
||||
kHTTPConnVersion: Symbol('http connection version'),
|
||||
kRetryHandlerDefaultRetry: Symbol('retry agent default retry')
|
||||
kRetryHandlerDefaultRetry: Symbol('retry agent default retry'),
|
||||
kConstruct: Symbol('constructable')
|
||||
}
|
||||
|
||||
|
||||
|
@ -40882,17 +40884,14 @@ function dataURLProcessor (dataURL) {
|
|||
* @param {boolean} excludeFragment
|
||||
*/
|
||||
function URLSerializer (url, excludeFragment = false) {
|
||||
const href = url.href
|
||||
|
||||
if (!excludeFragment) {
|
||||
return href
|
||||
return url.href
|
||||
}
|
||||
|
||||
const hash = href.lastIndexOf('#')
|
||||
if (hash === -1) {
|
||||
return href
|
||||
}
|
||||
return href.slice(0, hash)
|
||||
const href = url.href
|
||||
const hashLength = url.hash.length
|
||||
|
||||
return hashLength === 0 ? href : href.substring(0, href.length - hashLength)
|
||||
}
|
||||
|
||||
// https://infra.spec.whatwg.org/#collect-a-sequence-of-code-points
|
||||
|
@ -42076,7 +42075,7 @@ module.exports = {
|
|||
|
||||
|
||||
|
||||
const { kHeadersList } = __nccwpck_require__(2785)
|
||||
const { kHeadersList, kConstruct } = __nccwpck_require__(2785)
|
||||
const { kGuard } = __nccwpck_require__(5861)
|
||||
const { kEnumerableProperty } = __nccwpck_require__(3983)
|
||||
const {
|
||||
|
@ -42314,6 +42313,9 @@ 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:
|
||||
|
@ -42954,7 +42956,7 @@ function finalizeAndReportTiming (response, initiatorType = 'other') {
|
|||
}
|
||||
|
||||
// 8. If response’s timing allow passed flag is not set, then:
|
||||
if (!timingInfo.timingAllowPassed) {
|
||||
if (!response.timingAllowPassed) {
|
||||
// 1. Set timingInfo to a the result of creating an opaque timing info for timingInfo.
|
||||
timingInfo = createOpaqueTimingInfo({
|
||||
startTime: timingInfo.startTime
|
||||
|
@ -44849,13 +44851,12 @@ const { kHeaders, kSignal, kState, kGuard, kRealm } = __nccwpck_require__(5861)
|
|||
const { webidl } = __nccwpck_require__(1744)
|
||||
const { getGlobalOrigin } = __nccwpck_require__(1246)
|
||||
const { URLSerializer } = __nccwpck_require__(685)
|
||||
const { kHeadersList } = __nccwpck_require__(2785)
|
||||
const { kHeadersList, kConstruct } = __nccwpck_require__(2785)
|
||||
const assert = __nccwpck_require__(9491)
|
||||
const { getMaxListeners, setMaxListeners, getEventListeners, defaultMaxListeners } = __nccwpck_require__(2361)
|
||||
|
||||
let TransformStream = globalThis.TransformStream
|
||||
|
||||
const kInit = Symbol('init')
|
||||
const kAbortController = Symbol('abortController')
|
||||
|
||||
const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
|
||||
|
@ -44866,7 +44867,7 @@ const requestFinalizer = new FinalizationRegistry(({ signal, abort }) => {
|
|||
class Request {
|
||||
// https://fetch.spec.whatwg.org/#dom-request
|
||||
constructor (input, init = {}) {
|
||||
if (input === kInit) {
|
||||
if (input === kConstruct) {
|
||||
return
|
||||
}
|
||||
|
||||
|
@ -45123,7 +45124,7 @@ class Request {
|
|||
}
|
||||
|
||||
// 23. If init["integrity"] exists, then set request’s integrity metadata to it.
|
||||
if (init.integrity !== undefined && init.integrity != null) {
|
||||
if (init.integrity != null) {
|
||||
request.integrity = String(init.integrity)
|
||||
}
|
||||
|
||||
|
@ -45219,7 +45220,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()
|
||||
this[kHeaders] = new Headers(kConstruct)
|
||||
this[kHeaders][kHeadersList] = request.headersList
|
||||
this[kHeaders][kGuard] = 'request'
|
||||
this[kHeaders][kRealm] = this[kRealm]
|
||||
|
@ -45546,10 +45547,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(kInit)
|
||||
const clonedRequestObject = new Request(kConstruct)
|
||||
clonedRequestObject[kState] = clonedRequest
|
||||
clonedRequestObject[kRealm] = this[kRealm]
|
||||
clonedRequestObject[kHeaders] = new Headers()
|
||||
clonedRequestObject[kHeaders] = new Headers(kConstruct)
|
||||
clonedRequestObject[kHeaders][kHeadersList] = clonedRequest.headersList
|
||||
clonedRequestObject[kHeaders][kGuard] = this[kHeaders][kGuard]
|
||||
clonedRequestObject[kHeaders][kRealm] = this[kHeaders][kRealm]
|
||||
|
@ -45799,7 +45800,7 @@ const { webidl } = __nccwpck_require__(1744)
|
|||
const { FormData } = __nccwpck_require__(2015)
|
||||
const { getGlobalOrigin } = __nccwpck_require__(1246)
|
||||
const { URLSerializer } = __nccwpck_require__(685)
|
||||
const { kHeadersList } = __nccwpck_require__(2785)
|
||||
const { kHeadersList, kConstruct } = __nccwpck_require__(2785)
|
||||
const assert = __nccwpck_require__(9491)
|
||||
const { types } = __nccwpck_require__(3837)
|
||||
|
||||
|
@ -45920,7 +45921,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()
|
||||
this[kHeaders] = new Headers(kConstruct)
|
||||
this[kHeaders][kGuard] = 'response'
|
||||
this[kHeaders][kHeadersList] = this[kState].headersList
|
||||
this[kHeaders][kRealm] = this[kRealm]
|
||||
|
@ -46290,11 +46291,7 @@ webidl.converters.XMLHttpRequestBodyInit = function (V) {
|
|||
return webidl.converters.Blob(V, { strict: false })
|
||||
}
|
||||
|
||||
if (
|
||||
types.isAnyArrayBuffer(V) ||
|
||||
types.isTypedArray(V) ||
|
||||
types.isDataView(V)
|
||||
) {
|
||||
if (types.isArrayBuffer(V) || types.isTypedArray(V) || types.isDataView(V)) {
|
||||
return webidl.converters.BufferSource(V)
|
||||
}
|
||||
|
||||
|
@ -49568,7 +49565,7 @@ module.exports = RedirectHandler
|
|||
/***/ 2286:
|
||||
/***/ ((module, __unused_webpack_exports, __nccwpck_require__) => {
|
||||
|
||||
const assert = __nccwpck_require__(8061)
|
||||
const assert = __nccwpck_require__(9491)
|
||||
|
||||
const { kRetryHandlerDefaultRetry } = __nccwpck_require__(2785)
|
||||
const { RequestRetryError } = __nccwpck_require__(8045)
|
||||
|
@ -49665,7 +49662,7 @@ class RetryHandler {
|
|||
}
|
||||
|
||||
onBodySent (chunk) {
|
||||
return this.handler.onBodySent(chunk)
|
||||
if (this.handler.onBodySent) return this.handler.onBodySent(chunk)
|
||||
}
|
||||
|
||||
static [kRetryHandlerDefaultRetry] (err, { state, opts }, cb) {
|
||||
|
@ -51828,6 +51825,9 @@ 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) {
|
||||
|
@ -51835,11 +51835,10 @@ 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 })
|
||||
|
@ -51863,7 +51862,7 @@ class ProxyAgent extends DispatcherBase {
|
|||
})
|
||||
if (statusCode !== 200) {
|
||||
socket.on('error', () => {}).destroy()
|
||||
callback(new RequestAbortedError('Proxy response !== 200 when HTTP Tunneling'))
|
||||
callback(new RequestAbortedError(`Proxy response (${statusCode}) !== 200 when HTTP Tunneling`))
|
||||
}
|
||||
if (opts.protocol !== 'https:') {
|
||||
callback(null, socket)
|
||||
|
@ -54860,14 +54859,6 @@ module.exports = require("net");
|
|||
|
||||
/***/ }),
|
||||
|
||||
/***/ 8061:
|
||||
/***/ ((module) => {
|
||||
|
||||
"use strict";
|
||||
module.exports = require("node:assert");
|
||||
|
||||
/***/ }),
|
||||
|
||||
/***/ 5673:
|
||||
/***/ ((module) => {
|
||||
|
||||
|
|
2
dist/index.js.map
generated
vendored
2
dist/index.js.map
generated
vendored
File diff suppressed because one or more lines are too long
Loading…
Add table
Reference in a new issue