chore: update generated content

This commit is contained in:
github-actions[bot] committed 2026-05-22 12:14:39 +00:00
1 parent 792ab493f0
commit 97ffca02cc
3 files changed
+4 -4

No files matched your search

Generated Vendored
+1 -1
View File
@@ -95,7 +95,7 @@ globstar while`,e,A,r,f,M),this.matchOne(e.slice(A),r.slice(f),s))return this.de
`),M=f.shift();if(!M)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let g=M.split(" "),y=+g[1],O=g.slice(2).join(" "),B={};for(let I of f){if(!I)continue;let R=I.indexOf(":");if(R===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${I}"`));let F=I.slice(0,R).toLowerCase(),T=I.slice(R+1).trimStart(),_=B[F];typeof _=="string"?B[F]=[_,T]:Array.isArray(_)?_.push(T):B[F]=T}c6("got proxy server response: %o %o",M,B),o(),e({connect:{statusCode:y,statusText:O,headers:B},buffered:l})}t.on("error",c),t.on("end",a),i()})}sm.parseProxyResponse=mT0});var rwe=b($i=>{"use strict";var gT0=$i&&$i.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var n=Object.getOwnPropertyDescriptor(e,r);(!n||("get"in n?!e.__esModule:n.writable||n.configurable))&&(n={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,n)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),zT0=$i&&$i.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),ewe=$i&&$i.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var r in t)r!=="default"&&Object.prototype.hasOwnProperty.call(t,r)&&gT0(e,t,r);return zT0(e,t),e},twe=$i&&$i.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty($i,"__esModule",{value:!0});$i.HttpsProxyAgent=void 0;var Ay=ewe(require("net")),KRe=ewe(require("tls")),OT0=twe(require("assert")),ET0=twe(F2()),yT0=aO(),CT0=require("url"),BT0=JRe(),dy=(0,ET0.default)("https-proxy-agent"),u6=class extends yT0.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new CT0.URL(e):e,this.proxyHeaders=r?.headers??{},dy("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),n=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?ZRe(r,"headers"):null,host:s,port:n}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let n;if(s.protocol==="https:"){dy("Creating `tls.Socket`: %o",this.connectOpts);let A=this.connectOpts.servername||this.connectOpts.host;n=KRe.connect({...this.connectOpts,servername:A&&Ay.isIP(A)?void 0:A})}else dy("Creating `net.Socket`: %o",this.connectOpts),n=Ay.connect(this.connectOpts);let i=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=Ay.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
`;if(s.username||s.password){let A=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;i["Proxy-Authorization"]=`Basic ${Buffer.from(A).toString("base64")}`}i.Host=`${o}:${r.port}`,i["Proxy-Connection"]||(i["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let A of Object.keys(i))a+=`${A}: ${i[A]}\r
`;let c=(0,BT0.parseProxyResponse)(n);n.write(`${a}\r
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",DT0),r.secureEndpoint){dy("Upgrading socket connection to TLS");let A=r.servername||r.host;return KRe.connect({...ZRe(r,"host","path","port"),socket:n,servername:Ay.isIP(A)?void 0:A})}return n}n.destroy();let l=new Ay.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{dy("Replaying proxy buffer for failed request"),(0,OT0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};u6.protocols=["http","https"];$i.HttpsProxyAgent=u6;function DT0(t){t.resume()}function ZRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var owe=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var swe=require("buffer"),Vd={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Rp.ERRORS=Vd;function qT0(t){if(!swe.Buffer.isEncoding(t))throw new Error(Vd.INVALID_ENCODING)}Rp.checkEncoding=qT0;function nwe(t){return typeof t=="number"&&isFinite(t)&&NT0(t)}Rp.isFiniteInteger=nwe;function iwe(t,e){if(typeof t=="number"){if(!nwe(t)||t<0)throw new Error(e?Vd.INVALID_OFFSET:Vd.INVALID_LENGTH)}else throw new Error(e?Vd.INVALID_OFFSET_NON_NUMBER:Vd.INVALID_LENGTH_NON_NUMBER)}function IT0(t){iwe(t,!1)}Rp.checkLengthValue=IT0;function RT0(t){iwe(t,!0)}Rp.checkOffsetValue=RT0;function wT0(t,e){if(t<0||t>e.length)throw new Error(Vd.INVALID_TARGET_OFFSET)}Rp.checkTargetOffset=wT0;function NT0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function ST0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof swe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Rp.bigIntAndBufferInt64Check=ST0});var cwe=b(uJ=>{"use strict";Object.defineProperty(uJ,"__esModule",{value:!0});var r0=owe(),awe=4096,FT0="utf8",cJ=class t{constructor(e){if(this.length=0,this._encoding=FT0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(r0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(r0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(awe);else{if(typeof e<"u")throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(awe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return r0.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return r0.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){return t Line truncated
`);let{connect:u,buffered:p}=await c;if(e.emit("proxyConnect",u),this.emit("proxyConnect",u,e),u.statusCode===200){if(e.once("socket",DT0),r.secureEndpoint){dy("Upgrading socket connection to TLS");let A=r.servername||r.host;return KRe.connect({...ZRe(r,"host","path","port"),socket:n,servername:Ay.isIP(A)?void 0:A})}return n}n.destroy();let l=new Ay.Socket({writable:!1});return l.readable=!0,e.once("socket",A=>{dy("Replaying proxy buffer for failed request"),(0,OT0.default)(A.listenerCount("data")>0),A.push(p),A.push(null)}),l}};u6.protocols=["http","https"];$i.HttpsProxyAgent=u6;function DT0(t){t.resume()}function ZRe(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var owe=b(Rp=>{"use strict";Object.defineProperty(Rp,"__esModule",{value:!0});var swe=require("buffer"),Vd={INVALID_ENCODING:"Invalid encoding provided. Please specify a valid encoding the internal Node.js Buffer supports.",INVALID_SMARTBUFFER_SIZE:"Invalid size provided. Size must be a valid integer greater than zero.",INVALID_SMARTBUFFER_BUFFER:"Invalid Buffer provided in SmartBufferOptions.",INVALID_SMARTBUFFER_OBJECT:"Invalid SmartBufferOptions object supplied to SmartBuffer constructor or factory methods.",INVALID_OFFSET:"An invalid offset value was provided.",INVALID_OFFSET_NON_NUMBER:"An invalid offset value was provided. A numeric value is required.",INVALID_LENGTH:"An invalid length value was provided.",INVALID_LENGTH_NON_NUMBER:"An invalid length value was provived. A numeric value is required.",INVALID_TARGET_OFFSET:"Target offset is beyond the bounds of the internal SmartBuffer data.",INVALID_TARGET_LENGTH:"Specified length value moves cursor beyong the bounds of the internal SmartBuffer data.",INVALID_READ_BEYOND_BOUNDS:"Attempted to read beyond the bounds of the managed data.",INVALID_WRITE_BEYOND_BOUNDS:"Attempted to write beyond the bounds of the managed data."};Rp.ERRORS=Vd;function qT0(t){if(!swe.Buffer.isEncoding(t))throw new Error(Vd.INVALID_ENCODING)}Rp.checkEncoding=qT0;function nwe(t){return typeof t=="number"&&isFinite(t)&&NT0(t)}Rp.isFiniteInteger=nwe;function iwe(t,e){if(typeof t=="number"){if(!nwe(t)||t<0)throw new Error(e?Vd.INVALID_OFFSET:Vd.INVALID_LENGTH)}else throw new Error(e?Vd.INVALID_OFFSET_NON_NUMBER:Vd.INVALID_LENGTH_NON_NUMBER)}function IT0(t){iwe(t,!1)}Rp.checkLengthValue=IT0;function RT0(t){iwe(t,!0)}Rp.checkOffsetValue=RT0;function wT0(t,e){if(t<0||t>e.length)throw new Error(Vd.INVALID_TARGET_OFFSET)}Rp.checkTargetOffset=wT0;function NT0(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function ST0(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof swe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Rp.bigIntAndBufferInt64Check=ST0});var cwe=b(uJ=>{"use strict";Object.defineProperty(uJ,"__esModule",{value:!0});var r0=owe(),awe=4096,FT0="utf8",cJ=class t{constructor(e){if(this.length=0,this._encoding=FT0,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(r0.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(r0.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_SIZE);else if(e.buff)if(Buffer.isBuffer(e.buff))this._buff=e.buff,this.length=e.buff.length;else throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(awe);else{if(typeof e<"u")throw new Error(r0.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(awe)}}static fromSize(e,r){return new this({size:e,encoding:r})}static fromBuffer(e,r){return new this({buff:e,encoding:r})}static fromOptions(e){return new this(e)}static isSmartBufferOptions(e){let r=e;return r&&(r.encoding!==void 0||r.size!==void 0||r.buff!==void 0)}readInt8(e){return this._readNumberValue(Buffer.prototype.readInt8,1,e)}readInt16BE(e){return this._readNumberValue(Buffer.prototype.readInt16BE,2,e)}readInt16LE(e){return this._readNumberValue(Buffer.prototype.readInt16LE,2,e)}readInt32BE(e){return this._readNumberValue(Buffer.prototype.readInt32BE,4,e)}readInt32LE(e){return this._readNumberValue(Buffer.prototype.readInt32LE,4,e)}readBigInt64BE(e){return r0.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return r0.bigIntAndBufferInt64Check("readBigInt64LE"),this._readNumberValue(Buffer.prototype.readBigInt64LE,8,e)}writeInt8(e,r){return this._writeNumberValue(Buffer.prototype.writeInt8,1,e,r),this}insertInt8(e,r){return this._insertNumberValue(Buffer.prototype.writeInt8,1,e,r)}writeInt16BE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}insertInt16BE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16BE,2,e,r)}writeInt16LE(e,r){return this._writeNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}insertInt16LE(e,r){return this._insertNumberValue(Buffer.prototype.writeInt16LE,2,e,r)}writeInt32BE(e,r){return t Line truncated
`).join(`
`+i),t.push(n+"m+"+yF.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=cP0()+e+" "+t[0]}function cP0(){return tr.inspectOpts.hideDate?"":new Date().toISOString()+" "}function uP0(...t){return process.stderr.write(EF.formatWithOptions(tr.inspectOpts,...t)+`
`)}function pP0(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function lP0(){return process.env.DEBUG}function AP0(t){t.inspectOpts={};let e=Object.keys(tr.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=tr.inspectOpts[e[r]]}yF.exports=nZ()(tr);var{formatters:p6e}=yF.exports;p6e.o=function(t){return this.inspectOpts.colors=this.useColors,EF.inspect(t,this.inspectOpts).split(`