mirror of
https://github.com/docker/build-push-action.git
synced 2026-10-17 12:07:52 +02:00
chore: update generated content
This commit is contained in:
1 parent
ffa52ef3ea
commit
c707ca9135
3 files changed
+4
-4
No files matched your search
+1
-1
@@ -103,7 +103,7 @@ globstar while`,L,Ce,G,Ze,St),this.matchOne(L.slice(Ce),G.slice(Ze),Y))return th
|
||||
`),p=d.shift();if(!p)return t.destroy(),r(new Error("No header received from proxy CONNECT response"));let A=p.split(" "),y=+A[1],g=A.slice(2).join(" "),E={};for(let w of d){if(!w)continue;let C=w.indexOf(":");if(C===-1)return t.destroy(),r(new Error(`Invalid header from proxy CONNECT response: "${w}"`));let N=w.slice(0,C).toLowerCase(),q=w.slice(C+1).trimStart(),x=E[N];typeof x=="string"?E[N]=[x,q]:Array.isArray(x)?x.push(q):E[N]=q}Q3("got proxy server response: %o %o",p,E),o(),e({connect:{statusCode:y,statusText:g,headers:E},buffered:f})}t.on("error",c),t.on("end",a),n()})}jI.parseProxyResponse=qar});var nJe=m(Bl=>{"use strict";var Gar=Bl&&Bl.__createBinding||(Object.create?(function(t,e,r,i){i===void 0&&(i=r);var s=Object.getOwnPropertyDescriptor(e,r);(!s||("get"in s?!e.__esModule:s.writable||s.configurable))&&(s={enumerable:!0,get:function(){return e[r]}}),Object.defineProperty(t,i,s)}):(function(t,e,r,i){i===void 0&&(i=r),t[i]=e[r]})),Har=Bl&&Bl.__setModuleDefault||(Object.create?(function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}):function(t,e){t.default=e}),iJe=Bl&&Bl.__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)&&Gar(e,t,r);return Har(e,t),e},sJe=Bl&&Bl.__importDefault||function(t){return t&&t.__esModule?t:{default:t}};Object.defineProperty(Bl,"__esModule",{value:!0});Bl.HttpsProxyAgent=void 0;var oN=iJe(require("net")),tJe=iJe(require("tls")),jar=sJe(require("assert")),zar=sJe(Ug()),Var=Qv(),$ar=require("url"),War=eJe(),aN=(0,zar.default)("https-proxy-agent"),k3=class extends Var.Agent{constructor(e,r){super(r),this.options={path:void 0},this.proxy=typeof e=="string"?new $ar.URL(e):e,this.proxyHeaders=r?.headers??{},aN("Creating new HttpsProxyAgent instance: %o",this.proxy.href);let i=(this.proxy.hostname||this.proxy.host).replace(/^\[|\]$/g,""),s=this.proxy.port?parseInt(this.proxy.port,10):this.proxy.protocol==="https:"?443:80;this.connectOpts={ALPNProtocols:["http/1.1"],...r?rJe(r,"headers"):null,host:i,port:s}}async connect(e,r){let{proxy:i}=this;if(!r.host)throw new TypeError('No "host" provided');let s;if(i.protocol==="https:"){aN("Creating `tls.Socket`: %o",this.connectOpts);let h=this.connectOpts.servername||this.connectOpts.host;s=tJe.connect({...this.connectOpts,servername:h&&oN.isIP(h)?void 0:h})}else aN("Creating `net.Socket`: %o",this.connectOpts),s=oN.connect(this.connectOpts);let n=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders},o=oN.isIPv6(r.host)?`[${r.host}]`:r.host,a=`CONNECT ${o}:${r.port} HTTP/1.1\r
|
||||
`;if(i.username||i.password){let h=`${decodeURIComponent(i.username)}:${decodeURIComponent(i.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,War.parseProxyResponse)(s);s.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",Jar),r.secureEndpoint){aN("Upgrading socket connection to TLS");let h=r.servername||r.host;return tJe.connect({...rJe(r,"host","path","port"),socket:s,servername:oN.isIP(h)?void 0:h})}return s}s.destroy();let f=new oN.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{aN("Replaying proxy buffer for failed request"),(0,jar.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),f}};k3.protocols=["http","https"];Bl.HttpsProxyAgent=k3;function Jar(t){t.resume()}function rJe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var lJe=m(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var oJe=require("buffer"),QE={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."};xp.ERRORS=QE;function Yar(t){if(!oJe.Buffer.isEncoding(t))throw new Error(QE.INVALID_ENCODING)}xp.checkEncoding=Yar;function aJe(t){return typeof t=="number"&&isFinite(t)&&ecr(t)}xp.isFiniteInteger=aJe;function cJe(t,e){if(typeof t=="number"){if(!aJe(t)||t<0)throw new Error(e?QE.INVALID_OFFSET:QE.INVALID_LENGTH)}else throw new Error(e?QE.INVALID_OFFSET_NON_NUMBER:QE.INVALID_LENGTH_NON_NUMBER)}function Kar(t){cJe(t,!1)}xp.checkLengthValue=Kar;function Xar(t){cJe(t,!0)}xp.checkOffsetValue=Xar;function Zar(t,e){if(t<0||t>e.length)throw new Error(QE.INVALID_TARGET_OFFSET)}xp.checkTargetOffset=Zar;function ecr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function tcr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof oJe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}xp.bigIntAndBufferInt64Check=tcr});var fJe=m(zae=>{"use strict";Object.defineProperty(zae,"__esModule",{value:!0});var Ut=lJe(),uJe=4096,rcr="utf8",jae=class t{constructor(e){if(this.length=0,this._encoding=rcr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Ut.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Ut.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Ut.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(Ut.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(uJe);else{if(typeof e<"u")throw new Error(Ut.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(uJe)}}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 Ut.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Ut.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){retur
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",Jar),r.secureEndpoint){aN("Upgrading socket connection to TLS");let h=r.servername||r.host;return tJe.connect({...rJe(r,"host","path","port"),socket:s,servername:oN.isIP(h)?void 0:h})}return s}s.destroy();let f=new oN.Socket({writable:!1});return f.readable=!0,e.once("socket",h=>{aN("Replaying proxy buffer for failed request"),(0,jar.default)(h.listenerCount("data")>0),h.push(u),h.push(null)}),f}};k3.protocols=["http","https"];Bl.HttpsProxyAgent=k3;function Jar(t){t.resume()}function rJe(t,...e){let r={},i;for(i in t)e.includes(i)||(r[i]=t[i]);return r}});var lJe=m(xp=>{"use strict";Object.defineProperty(xp,"__esModule",{value:!0});var oJe=require("buffer"),QE={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."};xp.ERRORS=QE;function Yar(t){if(!oJe.Buffer.isEncoding(t))throw new Error(QE.INVALID_ENCODING)}xp.checkEncoding=Yar;function aJe(t){return typeof t=="number"&&isFinite(t)&&ecr(t)}xp.isFiniteInteger=aJe;function cJe(t,e){if(typeof t=="number"){if(!aJe(t)||t<0)throw new Error(e?QE.INVALID_OFFSET:QE.INVALID_LENGTH)}else throw new Error(e?QE.INVALID_OFFSET_NON_NUMBER:QE.INVALID_LENGTH_NON_NUMBER)}function Kar(t){cJe(t,!1)}xp.checkLengthValue=Kar;function Xar(t){cJe(t,!0)}xp.checkOffsetValue=Xar;function Zar(t,e){if(t<0||t>e.length)throw new Error(QE.INVALID_TARGET_OFFSET)}xp.checkTargetOffset=Zar;function ecr(t){return typeof t=="number"&&isFinite(t)&&Math.floor(t)===t}function tcr(t){if(typeof BigInt>"u")throw new Error("Platform does not support JS BigInt type.");if(typeof oJe.Buffer.prototype[t]>"u")throw new Error(`Platform does not support Buffer.prototype.${t}.`)}xp.bigIntAndBufferInt64Check=tcr});var fJe=m(zae=>{"use strict";Object.defineProperty(zae,"__esModule",{value:!0});var Ut=lJe(),uJe=4096,rcr="utf8",jae=class t{constructor(e){if(this.length=0,this._encoding=rcr,this._writeOffset=0,this._readOffset=0,t.isSmartBufferOptions(e))if(e.encoding&&(Ut.checkEncoding(e.encoding),this._encoding=e.encoding),e.size)if(Ut.isFiniteInteger(e.size)&&e.size>0)this._buff=Buffer.allocUnsafe(e.size);else throw new Error(Ut.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(Ut.ERRORS.INVALID_SMARTBUFFER_BUFFER);else this._buff=Buffer.allocUnsafe(uJe);else{if(typeof e<"u")throw new Error(Ut.ERRORS.INVALID_SMARTBUFFER_OBJECT);this._buff=Buffer.allocUnsafe(uJe)}}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 Ut.bigIntAndBufferInt64Check("readBigInt64BE"),this._readNumberValue(Buffer.prototype.readBigInt64BE,8,e)}readBigInt64LE(e){return Ut.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){retur
Line truncated
|
||||
`).join(`
|
||||
`+n),t.push(s+"m+"+J4.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=xpr()+e+" "+t[0]}function xpr(){return hn.inspectOpts.hideDate?"":new Date().toISOString()+" "}function _pr(...t){return process.stderr.write(W4.formatWithOptions(hn.inspectOpts,...t)+`
|
||||
`)}function Rpr(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function Tpr(){return process.env.DEBUG}function Npr(t){t.inspectOpts={};let e=Object.keys(hn.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=hn.inspectOpts[e[r]]}J4.exports=Gle()(hn);var{formatters:eKe}=J4.exports;eKe.o=function(t){return this.inspectOpts.colors=this.useColors,W4.inspect(t,this.inspectOpts).split(`
|
||||
|
||||
Reference in new issue
Block a user