mirror of
https://github.com/docker/setup-buildx-action.git
synced 2026-10-17 20:27:53 +02:00
chore: update generated content
This commit is contained in:
1 parent
2cf617d9a1
commit
4762b7dac3
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -89,7 +89,7 @@ globstar while`,v,ee,_,Pe,it),this.matchOne(v.slice(ee),_.slice(Pe),O))return th
|
||||
`),A=f.shift();if(!A)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let p=A.split(" "),E=+p[1],y=p.slice(2).join(" "),C={};for(let w of f){if(!w)continue;let x=w.indexOf(":");if(x===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,x).toLowerCase(),D=w.slice(x+1).trimStart(),P=C[N];typeof P=="string"?C[N]=[P,D]:Array.isArray(P)?P.push(D):C[N]=D}OQ("got proxy server response: %o %o",A,C),o(),e({connect:{statusCode:E,statusText:y,headers:C},buffered:d})}t.on("error",c),t.on("end",a),n()})}qg.parseProxyResponse=gft});var O0e=m(jo=>{"use strict";var yft=jo&&jo.__createBinding||(Object.create?(function(t,e,r,s){s===void 0&&(s=r);var i=Object.getOwnPropertyDescriptor(e,r);(!i||("get"in i?!e.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,s,i)}):(function(t,e,r,s){s===void 0&&(s=r),t[s]=e[r]})),Eft=jo&&jo.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),_0e=jo&&jo.__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)&&yft(e,t,r);return Eft(e,t),e},P0e=jo&&jo.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(jo,"__esModule",{value:!0});jo.HttpsProxyAgent=void 0;var j0=_0e(require("net")),v0e=_0e(require("tls")),Cft=P0e(require("assert")),Ift=P0e(df()),bft=hC(),wft=require("url"),Bft=T0e(),J0=(0,Ift.default)("https-proxy-agent"),DQ=class extends bft.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new wft.URL(e):e,this.proxyHeaders=r?.headers??{},J0("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let s=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),i=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?Q0e(r,"headers"):null,host:s,port:i}}async connect(e,r){let{proxy:s}=this;if(!r.host)throw new TypeError('No "host" provided');let i;if(s.protocol==="https:"){J0("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;i=v0e.connect({...this.connectOpts,servername:h&&j0.isIP(h)?void 0:h})}else J0("Creating `net.Socket`: %o",this.connectOpts),i=j0.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=j0.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(s.username||s.password){let h=`${decodeURIComponent(s.username)}:${decodeURIComponent(s.password)}`;n["Proxy-Authorization"]=`Basic ${Buffer.from(h).toString("base64")}`}n.Host=`${o}:${r.port}`,n["Proxy-Connection"]||(n["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let h of Object.keys(n))a+=`${h}: ${n[h]}\r
|
||||
`;let c=(0,Bft.parseProxyResponse)(i);i.write(`${a}\r
|
||||
`);let{connect:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Sft),r.secureEndpoint){J0("Upgrading socket connection to TLS");let h=r.servername||r.host;return v0e.connect({...Q0e(r,"host","path","port"),socket:i,servername:j0.isIP(h)?void 0:h})}return i}i.destroy();let d=new j0.Socket({writable:!1});return d.readable=!0,e.once("socket",h=>{J0("Replaying proxy buffer for failed request"),(0,Cft.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),d}};DQ.protocols=["http","https"];jo.HttpsProxyAgent=DQ;function Sft(t){t.resume()}function Q0e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var L0e=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var D0e=require("buffer"),EA={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."};Lu.ERRORS=EA;function xft(t){if(!D0e.Buffer.isEncoding(t))throw new Error(EA.INVALID_ENCODING)}Lu.checkEncoding=xft;function k0e(t){return typeof t=="number"&&isFinite(t)&&vft(t)}Lu.isFiniteInteger=k0e;function M0e(t,e){if(typeof t=="number"){if(!k0e(t)||t<0)throw new Error(e?EA.INVALID_OFFSET:EA.INVALID_LENGTH)}else throw new Error(e?EA.INVALID_OFFSET_NON_NUMBER:EA.INVALID_LENGTH_NON_NUMBER)}function Nft(t){M0e(t,!1)}Lu.checkLengthValue=Nft;function Rft(t){M0e(t,!0)}Lu.checkOffsetValue=Rft;function Tft(t,e){if(t<0||t>e.length)throw new Error(EA.INVALID_TARGET_OFFSET)}Lu.checkTargetOffset=Tft;function vft(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Qft(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof D0e.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Lu.bigIntAndBufferInt64Check=Qft});var U0e=m(zj=>{"use strict";Object.defineProperty(zj,"__esModule",{value:!0});var et=L0e(),F0e=4096,_ft="utf8",Hj=class t{constructor(e){if(this.length=0,this._encoding=_ft,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(et.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(et.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(et.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(et.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(F0e);else{if(typeof e<"u")throw new Error(et.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(F0e)}}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 et.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return et.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:l,buffered:u}=await c;if(e.emit("proxyConnect",l),this.emit("proxyConnect",l,e),l.statusCode===200){if(e.once("socket",Sft),r.secureEndpoint){J0("Upgrading socket connection to TLS");let h=r.servername||r.host;return v0e.connect({...Q0e(r,"host","path","port"),socket:i,servername:j0.isIP(h)?void 0:h})}return i}i.destroy();let d=new j0.Socket({writable:!1});return d.readable=!0,e.once("socket",h=>{J0("Replaying proxy buffer for failed request"),(0,Cft.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),d}};DQ.protocols=["http","https"];jo.HttpsProxyAgent=DQ;function Sft(t){t.resume()}function Q0e(t,...e){let r={},s;for(s in t)e.includes(s)||(r[s]=t[s]);return r}});var L0e=m(Lu=>{"use strict";Object.defineProperty(Lu,"__esModule",{value:!0});var D0e=require("buffer"),EA={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."};Lu.ERRORS=EA;function xft(t){if(!D0e.Buffer.isEncoding(t))throw new Error(EA.INVALID_ENCODING)}Lu.checkEncoding=xft;function k0e(t){return typeof t=="number"&&isFinite(t)&&vft(t)}Lu.isFiniteInteger=k0e;function M0e(t,e){if(typeof t=="number"){if(!k0e(t)||t<0)throw new Error(e?EA.INVALID_OFFSET:EA.INVALID_LENGTH)}else throw new Error(e?EA.INVALID_OFFSET_NON_NUMBER:EA.INVALID_LENGTH_NON_NUMBER)}function Nft(t){M0e(t,!1)}Lu.checkLengthValue=Nft;function Rft(t){M0e(t,!0)}Lu.checkOffsetValue=Rft;function Tft(t,e){if(t<0||t>e.length)throw new Error(EA.INVALID_TARGET_OFFSET)}Lu.checkTargetOffset=Tft;function vft(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function Qft(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof D0e.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}Lu.bigIntAndBufferInt64Check=Qft});var U0e=m(zj=>{"use strict";Object.defineProperty(zj,"__esModule",{value:!0});var et=L0e(),F0e=4096,_ft="utf8",Hj=class t{constructor(e){if(this.length=0,this._encoding=_ft,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(et.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(et.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(et.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(et.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(F0e);else{if(typeof e<"u")throw new Error(et.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(F0e)}}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 et.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return et.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(`
|
||||
`+n),t.push(i+"m+"+Y_.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=aCt()+e+" "+t[0]}function aCt(){return Ts.inspectOpts.hideDate?"":new Date().toISOString()+" "}function cCt(...t){return process.stderr.write(J_.formatWithOptions(Ts.inspectOpts,...t)+`
|
||||
`)}function lCt(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function uCt(){return process.env.DEBUG}function dCt(t){t.inspectOpts={};let e=Object.keys(Ts.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=Ts.inspectOpts[e[r]]}Y_.exports=FJ()(Ts);var{formatters:GBe}=Y_.exports;GBe.o=function(t){return this.inspectOpts.colors=this.useColors,J_.inspect(t,this.inspectOpts).split(`
|
||||
|
||||
Reference in new issue
Block a user