gh-action-bump-version/dist/main.js

1 line
76 KiB
JavaScript
Raw Normal View History

2021-08-07 23:35:30 +00:00
(()=>{var e={6434:(e,t,r)=>{"use strict";e=r.nmd(e);const n=r(2085),o=(e,t)=>function(){const r=e.apply(n,arguments);return`[${r+t}m`},s=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};5;${r}m`},i=(e,t)=>function(){const r=e.apply(n,arguments);return`[${38+t};2;${r[0]};${r[1]};${r[2]}m`};Object.defineProperty(e,"exports",{enumerable:!0,get:function(){const e=new Map,t={modifier:{reset:[0,0],bold:[1,22],dim:[2,22],italic:[3,23],underline:[4,24],inverse:[7,27],hidden:[8,28],strikethrough:[9,29]},color:{black:[30,39],red:[31,39],green:[32,39],yellow:[33,39],blue:[34,39],magenta:[35,39],cyan:[36,39],white:[37,39],gray:[90,39],redBright:[91,39],greenBright:[92,39],yellowBright:[93,39],blueBright:[94,39],magentaBright:[95,39],cyanBright:[96,39],whiteBright:[97,39]},bgColor:{bgBlack:[40,49],bgRed:[41,49],bgGreen:[42,49],bgYellow:[43,49],bgBlue:[44,49],bgMagenta:[45,49],bgCyan:[46,49],bgWhite:[47,49],bgBlackBright:[100,49],bgRedBright:[101,49],bgGreenBright:[102,49],bgYellowBright:[103,49],bgBlueBright:[104,49],bgMagentaBright:[105,49],bgCyanBright:[106,49],bgWhiteBright:[107,49]}};t.color.grey=t.color.gray;for(const r of Object.keys(t)){const n=t[r];for(const r of Object.keys(n)){const o=n[r];t[r]={open:`[${o[0]}m`,close:`[${o[1]}m`},n[r]=t[r],e.set(o[0],o[1])}Object.defineProperty(t,r,{value:n,enumerable:!1}),Object.defineProperty(t,"codes",{value:e,enumerable:!1})}const r=e=>e,a=(e,t,r)=>[e,t,r];t.color.close="",t.bgColor.close="",t.color.ansi={ansi:o(r,0)},t.color.ansi256={ansi256:s(r,0)},t.color.ansi16m={rgb:i(a,0)},t.bgColor.ansi={ansi:o(r,10)},t.bgColor.ansi256={ansi256:s(r,10)},t.bgColor.ansi16m={rgb:i(a,10)};for(let e of Object.keys(n)){if("object"!=typeof n[e])continue;const r=n[e];"ansi16"===e&&(e="ansi"),"ansi16"in r&&(t.color.ansi[e]=o(r.ansi16,0),t.bgColor.ansi[e]=o(r.ansi16,10)),"ansi256"in r&&(t.color.ansi256[e]=s(r.ansi256,0),t.bgColor.ansi256[e]=s(r.ansi256,10)),"rgb"in r&&(t.color.ansi16m[e]=i(r.rgb,0),t.bgColor.ansi16m[e]=i(r.rgb,10))}return t}})},2589:(e,t,r)=>{"use strict";const n=r(3150),o=r(6434),s=r(8470).stdout,i=r(6864),a="win32"===process.platform&&!(process.env.TERM||"").toLowerCase().startsWith("xterm"),c=["ansi","ansi","ansi256","ansi16m"],l=new Set(["gray"]),u=Object.create(null);function p(e,t){t=t||{};const r=s?s.level:0;e.level=void 0===t.level?r:t.level,e.enabled="enabled"in t?t.enabled:e.level>0}function d(e){if(!this||!(this instanceof d)||this.template){const t={};return p(t,e),t.template=function(){const e=[].slice.call(arguments);return g.apply(null,[t.template].concat(e))},Object.setPrototypeOf(t,d.prototype),Object.setPrototypeOf(t.template,t),t.template.constructor=d,t.template}p(this,e)}a&&(o.blue.open="");for(const e of Object.keys(o))o[e].closeRe=new RegExp(n(o[e].close),"g"),u[e]={get(){const t=o[e];return h.call(this,this._styles?this._styles.concat(t):[t],this._empty,e)}};u.visible={get(){return h.call(this,this._styles||[],!0,"visible")}},o.color.closeRe=new RegExp(n(o.color.close),"g");for(const e of Object.keys(o.color.ansi))l.has(e)||(u[e]={get(){const t=this.level;return function(){const r=o.color[c[t]][e].apply(null,arguments),n={open:r,close:o.color.close,closeRe:o.color.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}});o.bgColor.closeRe=new RegExp(n(o.bgColor.close),"g");for(const e of Object.keys(o.bgColor.ansi)){if(l.has(e))continue;u["bg"+e[0].toUpperCase()+e.slice(1)]={get(){const t=this.level;return function(){const r=o.bgColor[c[t]][e].apply(null,arguments),n={open:r,close:o.bgColor.close,closeRe:o.bgColor.closeRe};return h.call(this,this._styles?this._styles.concat(n):[n],this._empty,e)}}}}const f=Object.defineProperties((()=>{}),u);function h(e,t,r){const n=function(){return m.apply(n,arguments)};n._styles=e,n._empty=t;const o=this;return Object.defineProperty(n,"level",{enumerable:!0,get:()=>o.level,set(e){o.level=e}}),Object.defineProperty(n,"enabled",{enumerable:!0,get:()=>o.enabled,set(e){o.enabled=e}}),n.hasGrey=this.hasGrey||"gray"===r||"grey"===r,n.__proto__=f,n}function m(){const e=ar