chore: update generated content
Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
This commit is contained in:
2 files changed
+3
-3
No files matched your search
+1
-1
@@ -231,7 +231,7 @@ ${t.mark.snippet}`),`${t.reason} ${r}`):t.reason}o(F0e,"formatError");var dQ=cla
|
||||
`,i),Buffer.from("\r",i)];e:for(let c=0;c<a.length;c++){let l=a[c].length;for(let u=0;u<l;u++)if(a[c][u]!==n[s+u])continue e;return this.options.record_delimiter.push(a[c]),this.state.recordDelimiterMaxLength=a[c].length,a[c].length}return 0},"__autoDiscoverRecordDelimiter"),__error:o(function(n){let{encoding:s,raw:i,skip_records_with_error:a}=this.options,c=typeof n=="string"?new Error(n):n;if(a){if(this.state.recordHasError=!0,this.options.on_skip!==void 0)try{this.options.on_skip(c,i?this.state.rawBuffer.toString(s):void 0)}catch(l){return l}return}else return c},"__error"),__infoDataSet:o(function(){return{...this.info,columns:this.options.columns}},"__infoDataSet"),__infoRecord:o(function(){let{columns:n,raw:s,encoding:i}=this.options;return{...this.__infoDataSet(),bytes_records:this.info.bytes,error:this.state.error,header:n===!0,index:this.state.record.length,raw:s?this.state.rawBuffer.toString(i):void 0}},"__infoRecord"),__infoField:o(function(){let{columns:n}=this.options,s=Array.isArray(n),i=this.info.bytes_records;return{...this.__infoRecord(),bytes_records:i,column:s===!0?n.length>this.state.record.length?n[this.state.record.length].name:null:this.state.record.length,quoting:this.state.wasQuoting}},"__infoField")}},"transform");var mve=o(function(t,e={}){typeof t=="string"&&(t=Buffer.from(t));let r=e&&e.objname?Object.create(null):[],n=yD(e),s=o(c=>{n.options.objname===void 0?r.push(c):r[c[0]]=c[1]},"push"),i=o(()=>{},"close"),a=n.parse(t,!0,s,i);if(a!==void 0)throw a;return r},"parse");var up=class t{static{o(this,"Util")}static getInputList(e,r){return this.getList(ji(e,{trimWhitespace:r?.trimWhitespace!==!1}),r)}static getList(e,r){let n=[];if(e=="")return n;let s=mve(e,{columns:!1,relaxQuotes:!0,comment:r?.comment,comment_no_infix:r?.commentNoInfix,relaxColumnCount:!0,skipEmptyLines:!0,quote:r?.quote});for(let i of s)i.length==1?r?.ignoreComma?n.push(i[0]):n.push(...i[0].split(",")):r?.ignoreComma?n.push(i.join(",")):n.push(...i);return n.filter(i=>i).map(i=>r?.trimWhitespace===!1?i:i.trim())}static getInputNumber(e){let r=ji(e);if(r)return parseInt(r)}static async asyncForEach(e,r){for(let n=0;n<e.length;n++)await r(e[n],n,e)}static isValidURL(e){let r;try{r=new URL(e)}catch{return!1}return r.protocol==="http:"||r.protocol==="https:"}static isValidRef(e){if(t.isValidURL(e))return!0;for(let r of["git://","github.com/","git@"])if(e.startsWith(r))return!0;return!1}static async powershellCommand(e,r){let n=await ws("powershell",!0),s=e.replace(/'/g,"''").replace(/"|\n|\r/g,""),i=[];if(r)for(let a in r)i.push(`-${a} '${r[a].replace(/'/g,"''").replace(/"|\n|\r/g,"")}'`);return{command:`"${n}"`,args:["-NoLogo","-Sta","-NoProfile","-NonInteractive","-ExecutionPolicy","Unrestricted","-Command",`& '${s}' ${i.join(" ")}`]}}static isDirectory(e){try{return hve.default.lstatSync(e).isDirectory()}catch{}return!1}static trimPrefix(e,r){return!e||!r||e.indexOf(r)!==0?e:e.substring(r.length)}static trimSuffix(e,r){if(!e||!r)return e;let n=e.lastIndexOf(r);return n===-1||n+r.length!==e.length?e:e.substring(0,n)}static sleep(e){return new Promise(r=>setTimeout(r,e*1e3))}static hash(e){return V6.default.createHash("sha256").update(e).digest("hex")}static parseBool(e){if(e===void 0)return!1;switch(e){case"1":case"t":case"T":case"true":case"TRUE":case"True":return!0;case"0":case"f":case"F":case"false":case"FALSE":case"False":return!1;default:throw new Error(`parseBool syntax error: ${e}`)}}static parseBoolOrDefault(e,r=!1){try{return this.parseBool(e)}catch{return r}}static formatFileSize(e){if(e===0)return"0 Bytes";let r=1024,n=["Bytes","KB","MB","GB","TB","PB","EB","ZB","YB"],s=Math.floor(Math.log(e)/Math.log(r));return parseFloat((e/Math.pow(r,s)).toFixed(2))+" "+n[s]}static generateRandomString(e=10){return V6.default.randomBytes(Math.ceil(e/2)).toString("hex").slice(0,e)}static compileHandlebars(e,r,n){return Ave.default.compile(e,r)(n)}static stringToUnicodeEntities(e){return Array.from(e).map(r=>`&#x${r.charCodeAt(0).toString(16)};`).join("")}static countLines(e){return e.split(/\r\n|\r|\n/).length}static isPathRelativeTo(e,r){let n=Ow.default.resolve(e);return Ow.default.resolve(r).startsWith(n.endsWith(Ow.default.sep)?n:`${n}${Ow.default.sep}`)}static formatDuration(e){if(e===0)return"0s";let r=Math.floor(e/1e9),n=Math.floor(r/3600),s=Math.floor(r%3600/60),i=r%60,a=[];return n&&a.push(`${n}h`),s&&a.push(`${s}m`),(i||a.length===0)&&a.push(`${i}s`),a.join("")}};var dp=class t{static{o(this,"Docker")}static get configDir(){return process.env.DOCKER_CONFIG||Lw.default.join(gve.default.homedir(),".docker")}static configFile(){let e=Lw.default.join(t.configDir,"config.json");if(W6.default.existsSync(e))return JSON.parse(W6.default.readFileSync(e,{encoding:"utf-8"}))}static async isAvailable(){return await ws("docker",!0).then(e=>(P(`Docker.isAvailable ok: ${e}`),!0)).catch(e=>(P(`Docker.isAvailable error: ${e}`),!1))}static async isDaemonRunning(){try{return await t.getExecOutput(["version"],{silent:!0}),!0}
Line truncated
|
||||
`+t.errors.map(e=>` - ${e.message}`).join(`
|
||||
`)}o(l$t,"_buildMessageForResponseErrors");var u$t=class extends Error{static{o(this,"GraphqlResponseError")}constructor(t,e,r){super(l$t(r)),this.request=t,this.headers=e,this.response=r,this.errors=r.errors,this.data=r.data,Error.captureStackTrace&&Error.captureStackTrace(this,this.constructor)}name="GraphqlResponseError";errors;data},d$t=["method","baseUrl","url","headers","request","query","mediaType","operationName"],p$t=["query","method","url"],tPe=/\/api\/v3\/?$/;function f$t(t,e,r){if(r){if(typeof e=="string"&&"query"in r)return Promise.reject(new Error('[@octokit/graphql] "query" cannot be used as variable name'));for(let a in r)if(p$t.includes(a))return Promise.reject(new Error(`[@octokit/graphql] "${a}" cannot be used as variable name`))}let n=typeof e=="string"?Object.assign({query:e},r):e,s=Object.keys(n).reduce((a,c)=>d$t.includes(c)?(a[c]=n[c],a):(a.variables||(a.variables={}),a.variables[c]=n[c],a),{}),i=n.baseUrl||t.endpoint.DEFAULTS.baseUrl;return tPe.test(i)&&(s.url=i.replace(tPe,"/api/graphql")),t(s).then(a=>{if(a.data.errors){let c={};for(let l of Object.keys(a.headers))c[l]=a.headers[l];throw new u$t(s,c,a.data)}return a.data.data})}o(f$t,"graphql");function s9(t,e){let r=t.defaults(e);return Object.assign(o((s,i)=>f$t(r,s,i),"newApi"),{defaults:s9.bind(null,r),endpoint:r.endpoint})}o(s9,"withDefaults");var xHr=s9($w,{headers:{"user-agent":`octokit-graphql.js/${c$t} ${pp()}`},method:"POST",url:"/graphql"});function rPe(t){return s9(t,{method:"POST",url:"/graphql"})}o(rPe,"withCustomRequest");var o9="(?:[a-zA-Z0-9_-]+)",nPe="\\.",sPe=new RegExp(`^${o9}${nPe}${o9}${nPe}${o9}$`),m$t=sPe.test.bind(sPe);async function h$t(t){let e=m$t(t),r=t.startsWith("v1.")||t.startsWith("ghs_"),n=t.startsWith("ghu_");return{type:"token",token:t,tokenType:e?"app":r?"installation":n?"user-to-server":"oauth"}}o(h$t,"auth");function A$t(t){return t.split(/\./).length===3?`bearer ${t}`:`token ${t}`}o(A$t,"withAuthorizationPrefix");async function g$t(t,e,r,n){let s=e.endpoint.merge(r,n);return s.headers.authorization=A$t(t),e(s)}o(g$t,"hook");var oPe=o(function(e){if(!e)throw new Error("[@octokit/auth-token] No token passed to createTokenAuth");if(typeof e!="string")throw new Error("[@octokit/auth-token] Token passed to createTokenAuth is not a string");return e=e.replace(/^(token|bearer) +/i,""),Object.assign(h$t.bind(null,e),{hook:g$t.bind(null,e)})},"createTokenAuth2");var i9="7.0.6";var iPe=o(()=>{},"noop"),y$t=console.warn.bind(console),E$t=console.error.bind(console);function C$t(t={}){return typeof t.debug!="function"&&(t.debug=iPe),typeof t.info!="function"&&(t.info=iPe),typeof t.warn!="function"&&(t.warn=y$t),typeof t.error!="function"&&(t.error=E$t),t}o(C$t,"createLogger");var aPe=`octokit-core.js/${i9} ${pp()}`,vD=class{static{o(this,"Octokit")}static VERSION=i9;static defaults(e){return class extends this{static{o(this,"OctokitWithDefaults")}constructor(...n){let s=n[0]||{};if(typeof e=="function"){super(e(s));return}super(Object.assign({},e,s,s.userAgent&&e.userAgent?{userAgent:`${s.userAgent} ${e.userAgent}`}:null))}}}static plugins=[];static plugin(...e){let r=this.plugins;return class extends this{static{o(this,"NewOctokit")}static plugins=r.concat(e.filter(s=>!r.includes(s)))}}constructor(e={}){let r=new Dve.Collection,n={baseUrl:$w.endpoint.DEFAULTS.baseUrl,headers:{},request:Object.assign({},e.request,{hook:r.bind(null,"request")}),mediaType:{previews:[],format:""}};if(n.headers["user-agent"]=e.userAgent?`${e.userAgent} ${aPe}`:aPe,e.baseUrl&&(n.baseUrl=e.baseUrl),e.previews&&(n.mediaType.previews=e.previews),e.timeZone&&(n.headers["time-zone"]=e.timeZone),this.request=$w.defaults(n),this.graphql=rPe(this.request).defaults(n),this.log=C$t(e.log),this.hook=r,e.authStrategy){let{authStrategy:i,...a}=e,c=i(Object.assign({request:this.request,log:this.log,octokit:this,octokitOptions:a},e.auth));r.wrap("request",c.hook),this.auth=c}else if(!e.auth)this.auth=async()=>({type:"unauthenticated"});else{let i=oPe(e.auth);r.wrap("request",i.hook),this.auth=i}let s=this.constructor;for(let i=0;i<s.plugins.length;++i)Object.assign(this,s.plugins[i](this,e))}request;graphql;log;hook;auth};var a9="17.0.0";var I$t={actions:{addCustomLabelsToSelfHostedRunnerForOrg:["POST /orgs/{org}/actions/runners/{runner_id}/labels"],addCustomLabelsToSelfHostedRunnerForRepo:["POST /repos/{owner}/{repo}/actions/runners/{runner_id}/labels"],addRepoAccessToSelfHostedRunnerGroupInOrg:["PUT /orgs/{org}/actions/runner-groups/{runner_group_id}/repositories/{repository_id}"],addSelectedRepoToOrgSecret:["PUT /orgs/{org}/actions/secrets/{secret_name}/repositories/{repository_id}"],addSelectedRepoToOrgVariable:["PUT /orgs/{org}/actions/variables/{name}/repositories/{repository_id}"],approveWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/approve"],cancelWorkflowRun:["POST /repos/{owner}/{repo}/actions/runs/{run_id}/cancel"],createEnvironmentVariable:["POST /repos/{owner}/{repo}/environments/{environment_name}/variables"
Line truncated
|
||||
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:p,message:f,file:g.path,startLine:m}),A=!0;break}A||P(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function gPe(){return{registry:ji("registry"),username:ji("username"),password:ji("password"),scope:ji("scope"),ecr:ji("ecr"),logout:Rhe("logout"),registryAuth:ji("registry-auth")}}o(gPe,"getInputs");function yPe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=aBe(t.registryAuth).map(r=>{co(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:DD(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:DD(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}o(yPe,"getAuthList");function DD(t,e){if(U$t()||!e||e==="")return"";let r=g9.default.join(QD.configDir,"config",t==="docker.io"?"registry-1.docker.io":t);return e.startsWith("@")?r+=e:r=g9.default.join(r,e),r}o(DD,"scopeToConfigDir");function U$t(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?up.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}o(U$t,"scopeDisabled");var _nt=R(Met(),1),Qnt=R(Ant(),1),gie=R(nd(),1);var Cnt=R(require("net"),1),Int=R(require("tls"),1),Snt=R(gm(),1),bnt=require("events");var gnt=R(require("net"),1),ynt=R(require("http"),1),Ent=require("https");var Ql=Symbol("AgentBaseInternalState"),pq=class extends ynt.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Ql]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
More info: ${l.url}`);let m=l.range&&l.range.length>0?l.range[0]?.start.line:void 0,A=!1;for(let g of a)if(g.remote||g.path.endsWith(u)&&g.content===d){c.push({title:p,message:f,file:g.path,startLine:m}),A=!0;break}A||P(`Buildx.convertWarningsToGitHubAnnotations: skipping warning without matching Dockerfile ${u}: ${p}`)}return c}};function gPe(){return{registry:ji("registry"),username:ji("username"),password:ji("password"),scope:ji("scope"),ecr:ji("ecr"),logout:Rhe("logout"),registryAuth:ji("registry-auth")}}o(gPe,"getInputs");function yPe(t){if(t.registryAuth&&(t.registry||t.username||t.password||t.scope||t.ecr))throw new Error("Cannot use registry-auth with other inputs");let e=[];if(t.registryAuth)e=aBe(t.registryAuth).map(r=>{r.password&&co(r.password);let n=r.registry||"docker.io";return{registry:n,username:r.username,password:r.password,scope:r.scope,ecr:r.ecr||"auto",configDir:DD(n,r.scope)}});else{let r=t.registry||"docker.io";e.push({registry:r,username:t.username,password:t.password,scope:t.scope,ecr:t.ecr||"auto",configDir:DD(r,t.scope)})}if(e.length==0)throw new Error("No registry to login");return e}o(yPe,"getAuthList");function DD(t,e){if(U$t()||!e||e==="")return"";let r=g9.default.join(QD.configDir,"config",t==="docker.io"?"registry-1.docker.io":t);return e.startsWith("@")?r+=e:r=g9.default.join(r,e),r}o(DD,"scopeToConfigDir");function U$t(){return process.env.DOCKER_LOGIN_SCOPE_DISABLED?up.parseBool(process.env.DOCKER_LOGIN_SCOPE_DISABLED):!1}o(U$t,"scopeDisabled");var _nt=R(Met(),1),Qnt=R(Ant(),1),gie=R(nd(),1);var Cnt=R(require("net"),1),Int=R(require("tls"),1),Snt=R(gm(),1),bnt=require("events");var gnt=R(require("net"),1),ynt=R(require("http"),1),Ent=require("https");var Ql=Symbol("AgentBaseInternalState"),pq=class extends ynt.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Ql]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
`).some(n=>n.indexOf("(https.js:")!==-1||n.indexOf("node:https:")!==-1)}incrementSockets(e){if(this.maxSockets===1/0&&this.maxTotalSockets===1/0)return null;this.sockets[e]||(this.sockets[e]=[]);let r=new gnt.Socket({writable:!1});return this.sockets[e].push(r),this.totalSocketCount++,r}decrementSockets(e,r){if(!this.sockets[e]||r===null)return;let n=this.sockets[e],s=n.indexOf(r);s!==-1&&(n.splice(s,1),this.totalSocketCount--,n.length===0&&delete this.sockets[e])}getName(e){return this.isSecureEndpoint(e)?Ent.Agent.prototype.getName.call(this,e):super.getName(e)}createSocket(e,r,n){let s={...r,secureEndpoint:this.isSecureEndpoint(r)},i=this.getName(s),a=this.incrementSockets(i);Promise.resolve().then(()=>this.connect(e,s)).then(c=>{if(this.decrementSockets(i,a),typeof c.addRequest=="function")try{return c.addRequest(e,s)}catch(l){return n(l)}this[Ql].currentSocket=c,super.createSocket(e,r,n)},c=>{this.decrementSockets(i,a),n(c)})}createConnection(){let e=this[Ql].currentSocket;if(this[Ql].currentSocket=void 0,!e)throw new Error("No socket was returned in the `connect()` function");return e}get defaultPort(){return this[Ql].defaultPort??(this.protocol==="https:"?443:80)}set defaultPort(e){this[Ql]&&(this[Ql].defaultPort=e)}get protocol(){return this[Ql].protocol??(this.isSecureEndpoint()?"https:":"http:")}set protocol(e){this[Ql]&&(this[Ql].protocol=e)}};var mie=require("url");function fq(){return async({response:t,scheme:e})=>{if(e.toLowerCase()!=="negotiate")throw new Error(`Expected Negotiate scheme but got "${e}"`);let r;try{r=await import("kerberos")}catch{throw new Error('The "kerberos" package is required for Negotiate proxy authentication. Install it with: npm install kerberos')}let n=t.headers["proxy-authenticate"]||"",s=Array.isArray(n)?n[0]:n,i=typeof s=="string"&&s.includes(" ")?s.split(" ").slice(1).join(" "):void 0,c=await(await r.initializeClient("HTTP@proxy",{mechOID:r.GSS_MECH_OID_SPNEGO})).step(i||"");if(!c)throw new Error("Kerberos client.step() returned no token");return{headers:{"Proxy-Authorization":`Negotiate ${c}`}}}}o(fq,"createNegotiateAuth");var hI=(0,Snt.default)("http-proxy-agent"),sR=class extends pq{static{o(this,"HttpProxyAgent")}constructor(e,r){super(r),this.proxy=typeof e=="string"?new mie.URL(e):e,this.proxyHeaders=r?.headers??{},hI("Creating new HttpProxyAgent instance: %o",this.proxy.href),r?.negotiate?this.onProxyAuth=fq():r?.onProxyAuth&&(this.onProxyAuth=r.onProxyAuth);let n=(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={...r?Zar(r,"headers","onProxyAuth","negotiate"):null,host:n,port:s}}addRequest(e,r){e._header=null,this.setRequestProps(e,r),super.addRequest(e,r)}setRequestProps(e,r){let{proxy:n}=this,s=r.secureEndpoint?"https:":"http:",i=e.getHeader("host")||"localhost",a=`${s}//${i}`,c=new mie.URL(e.path,a);r.port!==80&&(c.port=String(r.port)),e.path=String(c);let l=typeof this.proxyHeaders=="function"?this.proxyHeaders():{...this.proxyHeaders};if(n.username||n.password){let u=`${decodeURIComponent(n.username)}:${decodeURIComponent(n.password)}`;l["Proxy-Authorization"]=`Basic ${Buffer.from(u).toString("base64")}`}l["Proxy-Connection"]||(l["Proxy-Connection"]=this.keepAlive?"Keep-Alive":"close");for(let u of Object.keys(l)){let d=l[u];d&&e.setHeader(u,d)}}async connect(e,r){e._header=null,e.path.includes("://")||this.setRequestProps(e,r);let n,s;hI("Regenerating stored HTTP header string for request"),e._implicitHeader(),e.outputData&&e.outputData.length>0&&(hI("Patching connection write() output buffer with updated header"),n=e.outputData[0].data,s=n.indexOf(`\r
|
||||
\r
|
||||
`)+4,e.outputData[0].data=e._header+n.substring(s),hI("Output buffer: %o",e.outputData[0].data));let i;this.proxy.protocol==="https:"?(hI("Creating `tls.Socket`: %o",this.connectOpts),i=Int.connect(this.connectOpts)):(hI("Creating `net.Socket`: %o",this.connectOpts),i=Cnt.connect(this.connectOpts)),await(0,bnt.once)(i,"connect");let a={socket:i};return e.emit("proxyConnect",a),this.emit("proxyConnect",a,e),e.emit("proxy",{proxy:this.proxy.href,socket:i}),i}};sR.protocols=["http","https"];function Zar(t,...e){let r={},n;for(n in t)e.includes(n)||(r[n]=t[n]);return r}o(Zar,"omit");var kl=R(require("net"),1),oR=R(require("tls"),1),Tnt=R(require("assert"),1),vnt=R(gm(),1);var wnt=R(require("net"),1),xnt=R(require("http"),1),Bnt=require("https");var Dl=Symbol("AgentBaseInternalState"),mq=class extends xnt.Agent{static{o(this,"Agent")}constructor(e){super(e),this[Dl]={}}isSecureEndpoint(e){if(e){if(typeof e.secureEndpoint=="boolean")return e.secureEndpoint;if(typeof e.protocol=="string")return e.protocol==="https:"}let{stack:r}=new Error;return typeof r!="string"?!1:r.split(`
|
||||
|
||||
Reference in new issue
Block a user