diff --git a/add-changeset/index.js b/add-changeset/index.js index e6bdc76be..60758f021 100644 --- a/add-changeset/index.js +++ b/add-changeset/index.js @@ -811,7 +811,7 @@ ${c.map(x=>`"${x.name}": ${x.type}`).join(` ${o} `;return await Tpn.default.writeFile(h,Jxe.default.format(b,$xe($xe({},D),{},{parser:"markdown"}))),d}zX.default=Apn});var Wxe=uc((Ngn,KX)=>{"use strict";process.env.NODE_ENV==="production"?KX.exports=zxe():KX.exports=Gxe()});var Hxe=uc(JX=>{var S6=require("path"),l3=process.platform==="win32",c3=require("fs"),Fpn=process.env.NODE_DEBUG&&/fs/.test(process.env.NODE_DEBUG);function Npn(){var n;if(Fpn){var i=new Error;n=o}else n=c;return n;function o(l){l&&(i.message=l.message,l=i,c(l))}function c(l){if(l){if(process.throwDeprecation)throw l;if(!process.noDeprecation){var d="fs: missing callback "+(l.stack||l.message);process.traceDeprecation?console.trace(d):console.error(d)}}}}function Ppn(n){return typeof n=="function"?n:Npn()}var Pgn=S6.normalize;l3?jk=/(.*?)(?:[\/\\]+|$)/g:jk=/(.*?)(?:[\/]+|$)/g;var jk;l3?qP=/^(?:[a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/][^\\\/]+)?[\\\/]*/:qP=/^[\/]*/;var qP;JX.realpathSync=function(i,o){if(i=S6.resolve(i),o&&Object.prototype.hasOwnProperty.call(o,i))return o[i];var c=i,l={},d={},D,h,b,x;E();function E(){var me=qP.exec(i);D=me[0].length,h=me[0],b=me[0],x="",l3&&!d[b]&&(c3.lstatSync(b),d[b]=!0)}for(;D=i.length)return o&&(o[l]=i),c(null,i);jk.lastIndex=h;var me=jk.exec(i);return E=b,b+=me[0],x=E+me[1],h=jk.lastIndex,D[x]||o&&o[x]===x?process.nextTick(v):o&&Object.prototype.hasOwnProperty.call(o,x)?X(o[x]):c3.lstat(x,k)}function k(me,De){if(me)return c(me);if(!De.isSymbolicLink())return D[x]=!0,o&&(o[x]=x),process.nextTick(v);if(!l3){var Qe=De.dev.toString(32)+":"+De.ino.toString(32);if(d.hasOwnProperty(Qe))return F(null,d[Qe],x)}c3.stat(x,function(ct){if(ct)return c(ct);c3.readlink(x,function(tn,un){l3||(d[Qe]=un),F(tn,un)})})}function F(me,De,Qe){if(me)return c(me);var ct=S6.resolve(E,De);o&&(o[Qe]=ct),X(ct)}function X(me){i=S6.resolve(me,i.slice(h)),S()}}});var WX=uc((Ign,Zxe)=>{Zxe.exports=f3;f3.realpath=f3;f3.sync=GX;f3.realpathSync=GX;f3.monkeypatch=Ipn;f3.unmonkeypatch=Lpn;var F5=require("fs"),VX=F5.realpath,$X=F5.realpathSync,Opn=process.version,Yxe=/^v[0-5]\./.test(Opn),Xxe=Hxe();function Qxe(n){return n&&n.syscall==="realpath"&&(n.code==="ELOOP"||n.code==="ENOMEM"||n.code==="ENAMETOOLONG")}function f3(n,i,o){if(Yxe)return VX(n,i,o);typeof i=="function"&&(o=i,i=null),VX(n,i,function(c,l){Qxe(c)?Xxe.realpath(n,i,o):o(c,l)})}function GX(n,i){if(Yxe)return $X(n,i);try{return $X(n,i)}catch(o){if(Qxe(o))return Xxe.realpathSync(n,i);throw o}}function Ipn(){F5.realpath=f3,F5.realpathSync=GX}function Lpn(){F5.realpath=VX,F5.realpathSync=$X}});var tSe=uc((Lgn,eSe)=>{eSe.exports=function(n,i){for(var o=[],c=0;c{"use strict";aSe.exports=rSe;function rSe(n,i,o){n instanceof RegExp&&(n=nSe(n,o)),i instanceof RegExp&&(i=nSe(i,o));var c=iSe(n,i,o);return c&&{start:c[0],end:c[1],pre:o.slice(0,c[0]),body:o.slice(c[0]+n.length,c[1]),post:o.slice(c[1]+i.length)}}function nSe(n,i){var o=i.match(n);return o?o[0]:null}rSe.range=iSe;function iSe(n,i,o){var c,l,d,D,h,b=o.indexOf(n),x=o.indexOf(i,b+1),E=b;if(b>=0&&x>0){if(n===i)return[b,x];for(c=[],d=o.length;E>=0&&!h;)E==b?(c.push(E),b=o.indexOf(n,E+1)):c.length==1?h=[c.pop(),x]:(l=c.pop(),l=0?b:x;c.length&&(h=[d,D])}return h}});var hSe=uc((Rgn,dSe)=>{var Rpn=tSe(),sSe=oSe();dSe.exports=Upn;var uSe="\0SLASH"+Math.random()+"\0",cSe="\0OPEN"+Math.random()+"\0",YX="\0CLOSE"+Math.random()+"\0",lSe="\0COMMA"+Math.random()+"\0",fSe="\0PERIOD"+Math.random()+"\0";function HX(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function Bpn(n){return n.split("\\\\").join(uSe).split("\\{").join(cSe).split("\\}").join(YX).split("\\,").join(lSe).split("\\.").join(fSe)}function jpn(n){return n.split(uSe).join("\\").split(cSe).join("{").split(YX).join("}").split(lSe).join(",").split(fSe).join(".")}function pSe(n){if(!n)return[""];var i=[],o=sSe("{","}",n);if(!o)return n.split(",");var c=o.pre,l=o.body,d=o.post,D=c.split(",");D[D.length-1]+="{"+l+"}";var h=pSe(d);return d.length&&(D[D.length-1]+=h.shift(),D.push.apply(D,h)),i.push.apply(i,D),i}function Upn(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),N5(Bpn(n),!0).map(jpn)):[]}function qpn(n){return"{"+n+"}"}function zpn(n){return/^-?0\d/.test(n)}function Kpn(n,i){return n<=i}function Jpn(n,i){return n>=i}function N5(n,i){var o=[],c=sSe("{","}",n);if(!c||/\$$/.test(c.pre))return[n];var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(c.body),d=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(c.body),D=l||d,h=c.body.indexOf(",")>=0;if(!D&&!h)return c.post.match(/,.*\}/)?(n=c.pre+"{"+c.body+YX+c.post,N5(n)):[n];var b;if(D)b=c.body.split(/\.\./);else if(b=pSe(c.body),b.length===1&&(b=N5(b[0],!1).map(qpn),b.length===1)){var E=c.post.length?N5(c.post,!1):[""];return E.map(function(Dn){return c.pre+b[0]+Dn})}var x=c.pre,E=c.post.length?N5(c.post,!1):[""],S;if(D){var v=HX(b[0]),k=HX(b[1]),F=Math.max(b[0].length,b[1].length),X=b.length==3?Math.abs(HX(b[2])):1,me=Kpn,De=k0){var Gr=new Array(un+1).join("0");ct<0?tn="-"+Gr+tn.slice(1):tn=Gr+tn}}S.push(tn)}}else S=Rpn(b,function(Wt){return N5(Wt,!1)});for(var Ur=0;Ur{ySe.exports=lx;lx.Minimatch=C2;var zP=function(){try{return require("path")}catch{}}()||{sep:"/"};lx.sep=zP.sep;var C6=lx.GLOBSTAR=C2.GLOBSTAR={},Vpn=hSe(),mSe={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},XX="[^/]",QX=XX+"*?",$pn="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",Gpn="(?:(?!(?:\\/|^)\\.).)*?",_Se=Wpn("().*{}+?[]^$\\!");function Wpn(n){return n.split("").reduce(function(i,o){return i[o]=!0,i},{})}var gSe=/\/+/;lx.filter=Hpn;function Hpn(n,i){return i=i||{},function(o,c,l){return lx(o,n,i)}}function p3(n,i){i=i||{};var o={};return Object.keys(n).forEach(function(c){o[c]=n[c]}),Object.keys(i).forEach(function(c){o[c]=i[c]}),o}lx.defaults=function(n){if(!n||typeof n!="object"||!Object.keys(n).length)return lx;var i=lx,o=function(l,d,D){return i(l,d,p3(n,D))};return o.Minimatch=function(l,d){return new i.Minimatch(l,p3(n,d))},o.Minimatch.defaults=function(l){return i.defaults(p3(n,l)).Minimatch},o.filter=function(l,d){return i.filter(l,p3(n,d))},o.defaults=function(l){return i.defaults(p3(n,l))},o.makeRe=function(l,d){return i.makeRe(l,p3(n,d))},o.braceExpand=function(l,d){return i.braceExpand(l,p3(n,d))},o.match=function(c,l,d){return i.match(c,l,p3(n,d))},o};C2.defaults=function(n){return lx.defaults(n).Minimatch};function lx(n,i,o){return Dq(i),o||(o={}),!o.nocomment&&i.charAt(0)==="#"?!1:new C2(i,o).match(n)}function C2(n,i){if(!(this instanceof C2))return new C2(n,i);Dq(n),i||(i={}),n=n.trim(),!i.allowWindowsEscape&&zP.sep!=="/"&&(n=n.split(zP.sep).join("/")),this.options=i,this.maxGlobstarRecursion=i.maxGlobstarRecursion!==void 0?i.maxGlobstarRecursion:200,this.set=[],this.pattern=n,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!i.partial,this.make()}C2.prototype.debug=function(){};C2.prototype.make=Ypn;function Ypn(){var n=this.pattern,i=this.options;if(!i.nocomment&&n.charAt(0)==="#"){this.comment=!0;return}if(!n){this.empty=!0;return}this.parseNegate();var o=this.globSet=this.braceExpand();i.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,o),o=this.globParts=o.map(function(c){return c.split(gSe)}),this.debug(this.pattern,o),o=o.map(function(c,l,d){return c.map(this.parse,this)},this),this.debug(this.pattern,o),o=o.filter(function(c){return c.indexOf(!1)===-1}),this.debug(this.pattern,o),this.set=o}C2.prototype.parseNegate=Xpn;function Xpn(){var n=this.pattern,i=!1,o=this.options,c=0;if(!o.nonegate){for(var l=0,d=n.length;l"u"?this.pattern:n,Dq(n),i.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:Vpn(n)}var Qpn=1024*64,Dq=function(n){if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>Qpn)throw new TypeError("pattern is too long")};C2.prototype.parse=Zpn;var bq={};function Zpn(n,i){Dq(n);var o=this.options;if(n==="**")if(o.noglobstar)n="*";else return C6;if(n==="")return"";var c="",l=!!o.nocase,d=!1,D=[],h=[],b,x=!1,E=-1,S=-1,v=n.charAt(0)==="."?"":o.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",k=this;function F(){if(b){switch(b){case"*":c+=QX,l=!0;break;case"?":c+=XX,l=!0;break;default:c+="\\"+b;break}k.debug("clearStateChar %j %j",b,c),b=!1}}for(var X=0,me=n.length,De;X-1;Br--){var hr=h[Br],Wt=c.slice(0,hr.reStart),Dn=c.slice(hr.reStart,hr.reEnd-8),Fr=c.slice(hr.reEnd-8,hr.reEnd),on=c.slice(hr.reEnd);Fr+=on;var Vr=Wt.split("(").length-1,mi=on;for(X=0;X"u"&&(o=this.partial),this.debug("match",i,this.pattern),this.comment)return!1;if(this.empty)return i==="";if(i==="/"&&o)return!0;var c=this.options;zP.sep!=="/"&&(i=i.split(zP.sep).join("/")),i=i.split(gSe),this.debug(this.pattern,"split",i);var l=this.set;this.debug(this.pattern,"set",l);var d,D;for(D=i.length-1;D>=0&&(d=i[D],!d);D--);for(D=0;D=0;d--)if(i[d]===C6){h=d;break}var b=i.slice(l,D),x=i.slice(D+1,h),E=i.slice(h+1);if(b.length){var S=n.slice(c,c+b.length);if(!this._matchOne(S,b,o,0,0))return!1;c+=b.length}var v=0;if(E.length){if(E.length+c>n.length)return!1;var k=n.length-E.length;if(this._matchOne(n,E,o,k,0))v=E.length;else{if(n[n.length-1]!==""||c+E.length===n.length||(k--,!this._matchOne(n,E,o,k,0)))return!1;v=E.length+1}}if(!x.length){var F=!!v;for(d=c;d{typeof Object.create=="function"?ZX.exports=function(i,o){o&&(i.super_=o,i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:ZX.exports=function(i,o){if(o){i.super_=o;var c=function(){};c.prototype=o.prototype,i.prototype=new c,i.prototype.constructor=i}}});var DSe=uc((Ugn,tQ)=>{try{if(eQ=require("util"),typeof eQ.inherits!="function")throw"";tQ.exports=eQ.inherits}catch{tQ.exports=bSe()}var eQ});var Sq=uc((qgn,xq)=>{"use strict";function ESe(n){return n.charAt(0)==="/"}function xSe(n){var i=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=i.exec(n),c=o[1]||"",l=Boolean(c&&c.charAt(1)!==":");return Boolean(o[2]||l)}xq.exports=process.platform==="win32"?xSe:ESe;xq.exports.posix=ESe;xq.exports.win32=xSe});var rQ=uc(d3=>{d3.setopts=udn;d3.ownProp=SSe;d3.makeAbs=KP;d3.finish=cdn;d3.mark=ldn;d3.isIgnored=TSe;d3.childrenIgnored=fdn;function SSe(n,i){return Object.prototype.hasOwnProperty.call(n,i)}var rdn=require("fs"),P5=require("path"),idn=Eq(),CSe=Sq(),nQ=idn.Minimatch;function adn(n,i){return n.localeCompare(i,"en")}function odn(n,i){n.ignore=i.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(sdn))}function sdn(n){var i=null;if(n.slice(-3)==="/**"){var o=n.replace(/(\/\*\*)+$/,"");i=new nQ(o,{dot:!0})}return{matcher:new nQ(n,{dot:!0}),gmatcher:i}}function udn(n,i,o){if(o||(o={}),o.matchBase&&i.indexOf("/")===-1){if(o.noglobstar)throw new Error("base matching requires globstar");i="**/"+i}n.silent=!!o.silent,n.pattern=i,n.strict=o.strict!==!1,n.realpath=!!o.realpath,n.realpathCache=o.realpathCache||Object.create(null),n.follow=!!o.follow,n.dot=!!o.dot,n.mark=!!o.mark,n.nodir=!!o.nodir,n.nodir&&(n.mark=!0),n.sync=!!o.sync,n.nounique=!!o.nounique,n.nonull=!!o.nonull,n.nosort=!!o.nosort,n.nocase=!!o.nocase,n.stat=!!o.stat,n.noprocess=!!o.noprocess,n.absolute=!!o.absolute,n.fs=o.fs||rdn,n.maxLength=o.maxLength||1/0,n.cache=o.cache||Object.create(null),n.statCache=o.statCache||Object.create(null),n.symlinks=o.symlinks||Object.create(null),odn(n,o),n.changedCwd=!1;var c=process.cwd();SSe(o,"cwd")?(n.cwd=P5.resolve(o.cwd),n.changedCwd=n.cwd!==c):n.cwd=c,n.root=o.root||P5.resolve(n.cwd,"/"),n.root=P5.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=CSe(n.cwd)?n.cwd:KP(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,o.allowWindowsEscape=!1,n.minimatch=new nQ(i,o),n.options=n.minimatch.options}function cdn(n){for(var i=n.nounique,o=i?[]:Object.create(null),c=0,l=n.matches.length;c{FSe.exports=ASe;ASe.GlobSync=j2;var pdn=WX(),kSe=Eq(),Kgn=kSe.Minimatch,Jgn=oQ().Glob,Vgn=require("util"),iQ=require("path"),wSe=require("assert"),Cq=Sq(),T6=rQ(),ddn=T6.setopts,aQ=T6.ownProp,hdn=T6.childrenIgnored,mdn=T6.isIgnored;function ASe(n,i){if(typeof i=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob + %s`,un,un,Qe,c);var Gr=Qe.type==="*"?QX:Qe.type==="?"?XX:"\\"+Qe.type;l=!0,c=c.slice(0,Qe.reStart)+Gr+"\\("+un}F(),d&&(c+="\\\\");var Ur=!1;switch(c.charAt(0)){case"[":case".":case"(":Ur=!0}for(var Br=h.length-1;Br>-1;Br--){var hr=h[Br],Wt=c.slice(0,hr.reStart),Dn=c.slice(hr.reStart,hr.reEnd-8),Fr=c.slice(hr.reEnd-8,hr.reEnd),on=c.slice(hr.reEnd);Fr+=on;var Vr=Wt.split("(").length-1,mi=on;for(X=0;X"u"&&(o=this.partial),this.debug("match",i,this.pattern),this.comment)return!1;if(this.empty)return i==="";if(i==="/"&&o)return!0;var c=this.options;zP.sep!=="/"&&(i=i.split(zP.sep).join("/")),i=i.split(gSe),this.debug(this.pattern,"split",i);var l=this.set;this.debug(this.pattern,"set",l);var d,D;for(D=i.length-1;D>=0&&(d=i[D],!d);D--);for(D=0;D=0;d--)if(i[d]===C6){h=d;break}var b=i.slice(l,D),x=o?i.slice(D+1):i.slice(D+1,h),E=o?[]:i.slice(h+1);if(b.length){var S=n.slice(c,c+b.length);if(!this._matchOne(S,b,o,0,0))return!1;c+=b.length}var v=0;if(E.length){if(E.length+c>n.length)return!1;var k=n.length-E.length;if(this._matchOne(n,E,o,k,0))v=E.length;else{if(n[n.length-1]!==""||c+E.length===n.length||(k--,!this._matchOne(n,E,o,k,0)))return!1;v=E.length+1}}if(!x.length){var F=!!v;for(d=c;d{typeof Object.create=="function"?ZX.exports=function(i,o){o&&(i.super_=o,i.prototype=Object.create(o.prototype,{constructor:{value:i,enumerable:!1,writable:!0,configurable:!0}}))}:ZX.exports=function(i,o){if(o){i.super_=o;var c=function(){};c.prototype=o.prototype,i.prototype=new c,i.prototype.constructor=i}}});var DSe=uc((Ugn,tQ)=>{try{if(eQ=require("util"),typeof eQ.inherits!="function")throw"";tQ.exports=eQ.inherits}catch{tQ.exports=bSe()}var eQ});var Sq=uc((qgn,xq)=>{"use strict";function ESe(n){return n.charAt(0)==="/"}function xSe(n){var i=/^([a-zA-Z]:|[\\\/]{2}[^\\\/]+[\\\/]+[^\\\/]+)?([\\\/])?([\s\S]*?)$/,o=i.exec(n),c=o[1]||"",l=Boolean(c&&c.charAt(1)!==":");return Boolean(o[2]||l)}xq.exports=process.platform==="win32"?xSe:ESe;xq.exports.posix=ESe;xq.exports.win32=xSe});var rQ=uc(d3=>{d3.setopts=udn;d3.ownProp=SSe;d3.makeAbs=KP;d3.finish=cdn;d3.mark=ldn;d3.isIgnored=TSe;d3.childrenIgnored=fdn;function SSe(n,i){return Object.prototype.hasOwnProperty.call(n,i)}var rdn=require("fs"),P5=require("path"),idn=Eq(),CSe=Sq(),nQ=idn.Minimatch;function adn(n,i){return n.localeCompare(i,"en")}function odn(n,i){n.ignore=i.ignore||[],Array.isArray(n.ignore)||(n.ignore=[n.ignore]),n.ignore.length&&(n.ignore=n.ignore.map(sdn))}function sdn(n){var i=null;if(n.slice(-3)==="/**"){var o=n.replace(/(\/\*\*)+$/,"");i=new nQ(o,{dot:!0})}return{matcher:new nQ(n,{dot:!0}),gmatcher:i}}function udn(n,i,o){if(o||(o={}),o.matchBase&&i.indexOf("/")===-1){if(o.noglobstar)throw new Error("base matching requires globstar");i="**/"+i}n.silent=!!o.silent,n.pattern=i,n.strict=o.strict!==!1,n.realpath=!!o.realpath,n.realpathCache=o.realpathCache||Object.create(null),n.follow=!!o.follow,n.dot=!!o.dot,n.mark=!!o.mark,n.nodir=!!o.nodir,n.nodir&&(n.mark=!0),n.sync=!!o.sync,n.nounique=!!o.nounique,n.nonull=!!o.nonull,n.nosort=!!o.nosort,n.nocase=!!o.nocase,n.stat=!!o.stat,n.noprocess=!!o.noprocess,n.absolute=!!o.absolute,n.fs=o.fs||rdn,n.maxLength=o.maxLength||1/0,n.cache=o.cache||Object.create(null),n.statCache=o.statCache||Object.create(null),n.symlinks=o.symlinks||Object.create(null),odn(n,o),n.changedCwd=!1;var c=process.cwd();SSe(o,"cwd")?(n.cwd=P5.resolve(o.cwd),n.changedCwd=n.cwd!==c):n.cwd=c,n.root=o.root||P5.resolve(n.cwd,"/"),n.root=P5.resolve(n.root),process.platform==="win32"&&(n.root=n.root.replace(/\\/g,"/")),n.cwdAbs=CSe(n.cwd)?n.cwd:KP(n,n.cwd),process.platform==="win32"&&(n.cwdAbs=n.cwdAbs.replace(/\\/g,"/")),n.nomount=!!o.nomount,o.nonegate=!0,o.nocomment=!0,o.allowWindowsEscape=!1,n.minimatch=new nQ(i,o),n.options=n.minimatch.options}function cdn(n){for(var i=n.nounique,o=i?[]:Object.create(null),c=0,l=n.matches.length;c{FSe.exports=ASe;ASe.GlobSync=j2;var pdn=WX(),kSe=Eq(),Kgn=kSe.Minimatch,Jgn=oQ().Glob,Vgn=require("util"),iQ=require("path"),wSe=require("assert"),Cq=Sq(),T6=rQ(),ddn=T6.setopts,aQ=T6.ownProp,hdn=T6.childrenIgnored,mdn=T6.isIgnored;function ASe(n,i){if(typeof i=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);return new j2(n,i).found}function j2(n,i){if(!n)throw new Error("must provide pattern");if(typeof i=="function"||arguments.length===3)throw new TypeError(`callback provided to sync glob See: https://github.com/isaacs/node-glob/issues/167`);if(!(this instanceof j2))return new j2(n,i);if(ddn(this,n,i),this.noprocess)return this;var o=this.minimatch.set.length;this.matches=new Array(o);for(var c=0;cthis.maxLength)return!1;if(!this.stat&&aQ(this.cache,i)){var D=this.cache[i];if(Array.isArray(D)&&(D="DIR"),!o||D==="DIR")return D;if(o&&D==="FILE")return!1}var c,l=this.statCache[i];if(!l){var d;try{d=this.fs.lstatSync(i)}catch(h){if(h&&(h.code==="ENOENT"||h.code==="ENOTDIR"))return this.statCache[i]=!1,!1}if(d&&d.isSymbolicLink())try{l=this.fs.statSync(i)}catch{l=d}else l=d}this.statCache[i]=l;var D=!0;return l&&(D=l.isDirectory()?"DIR":"FILE"),this.cache[i]=this.cache[i]||D,o&&D==="FILE"?!1:D};j2.prototype._mark=function(n){return T6.mark(this,n)};j2.prototype._makeAbs=function(n){return T6.makeAbs(this,n)}});var sQ=uc((Ggn,OSe)=>{OSe.exports=PSe;function PSe(n,i){if(n&&i)return PSe(n)(i);if(typeof n!="function")throw new TypeError("need wrapper function");return Object.keys(n).forEach(function(c){o[c]=n[c]}),o;function o(){for(var c=new Array(arguments.length),l=0;l{var ISe=sQ();uQ.exports=ISe(Tq);uQ.exports.strict=ISe(LSe);Tq.proto=Tq(function(){Object.defineProperty(Function.prototype,"once",{value:function(){return Tq(this)},configurable:!0}),Object.defineProperty(Function.prototype,"onceStrict",{value:function(){return LSe(this)},configurable:!0})});function Tq(n){var i=function(){return i.called?i.value:(i.called=!0,i.value=n.apply(this,arguments))};return i.called=!1,i}function LSe(n){var i=function(){if(i.called)throw new Error(i.onceError);return i.called=!0,i.value=n.apply(this,arguments)},o=n.name||"Function wrapped with `once`";return i.onceError=o+" shouldn't be called more than once",i.called=!1,i}});var RSe=uc((Hgn,MSe)=>{var _dn=sQ(),JP=Object.create(null),gdn=cQ();MSe.exports=_dn(vdn);function vdn(n,i){return JP[n]?(JP[n].push(i),null):(JP[n]=[i],ydn(n))}function ydn(n){return gdn(function i(){var o=JP[n],c=o.length,l=bdn(arguments);try{for(var d=0;dc?(o.splice(0,c),process.nextTick(function(){i.apply(null,l)})):delete JP[n]}})}function bdn(n){for(var i=n.length,o=[],c=0;c{jSe.exports=k6;var Ddn=WX(),BSe=Eq(),Ygn=BSe.Minimatch,Edn=DSe(),xdn=require("events").EventEmitter,lQ=require("path"),fQ=require("assert"),VP=Sq(),dQ=NSe(),w6=rQ(),Sdn=w6.setopts,pQ=w6.ownProp,hQ=RSe(),Xgn=require("util"),Cdn=w6.childrenIgnored,Tdn=w6.isIgnored,kdn=cQ();function k6(n,i,o){if(typeof i=="function"&&(o=i,i={}),i||(i={}),i.sync){if(o)throw new TypeError("callback provided to sync glob");return dQ(n,i)}return new gv(n,i,o)}k6.sync=dQ;var wdn=k6.GlobSync=dQ.GlobSync;k6.glob=k6;function Adn(n,i){if(i===null||typeof i!="object")return n;for(var o=Object.keys(i),c=o.length;c--;)n[o[c]]=i[o[c]];return n}k6.hasMagic=function(n,i){var o=Adn({},i);o.noprocess=!0;var c=new gv(n,o),l=c.minimatch.set;if(!n)return!1;if(l.length>1)return!0;for(var d=0;dthis.maxLength)return i();if(!this.stat&&pQ(this.cache,o)){var l=this.cache[o];if(Array.isArray(l)&&(l="DIR"),!c||l==="DIR")return i(null,l);if(c&&l==="FILE")return i()}var d,D=this.statCache[o];if(D!==void 0){if(D===!1)return i(null,D);var h=D.isDirectory()?"DIR":"FILE";return c&&h==="FILE"?i():i(null,h,D)}var b=this,x=hQ("stat\0"+o,E);x&&b.fs.lstat(o,x);function E(S,v){if(v&&v.isSymbolicLink())return b.fs.stat(o,function(k,F){k?b._stat2(n,o,null,v,i):b._stat2(n,o,k,F,i)});b._stat2(n,o,S,v,i)}};gv.prototype._stat2=function(n,i,o,c,l){if(o&&(o.code==="ENOENT"||o.code==="ENOTDIR"))return this.statCache[i]=!1,l();var d=n.slice(-1)==="/";if(this.statCache[i]=c,i.slice(-1)==="/"&&c&&!c.isDirectory())return l(null,!1,c);var D=!0;return c&&(D=c.isDirectory()?"DIR":"FILE"),this.cache[i]=this.cache[i]||D,d&&D==="FILE"?l():l(null,D,c)}});var KSe=EB(Gue());var USe=EB(Wxe()),mQ=EB(require("path")),qSe=EB(oQ()),_Q=require("fs"),kq=require("fs/promises"),Ndn=(n,i)=>new Promise((o,c)=>{(0,qSe.default)(n,i,(l,d)=>{l?c(l):o(d)})}),Pdn=async n=>{if(!(0,_Q.existsSync)(n))throw new Error(`Could not locate package.json in ${n}`);let i=await(0,kq.readFile)(n);return JSON.parse(i.toString())};async function Odn({filter:n,ignore:i,type:o,summary:c,cwd:l},d){let D=await Ndn("**/package.json",{cwd:l,absolute:!0,ignore:i}),h=[];for(let k of D){let F=await Pdn(k),X=!0;n!==void 0&&!n.test(F.name)&&(X=!1),X&&h.push({name:F.name,type:o||"patch"})}let b={summary:c,releases:h};d.info(`Writing changeset '${JSON.stringify(b)}'`);let x=l||".",E=mQ.default.join(x,".changeset");(0,_Q.existsSync)(E)||await(0,kq.mkdir)(E);let S=await(0,USe.default)(b,l||"."),v=mQ.default.join(E,`${S}.md`);return d.info(`Changeset '${S}' created at '${v}'`),{name:S,path:v}}async function zSe(n){try{let i=n.getInput("filter"),o=n.getMultilineInput("ignore"),c=n.getInput("type",{required:!0});if(c!=="major"&&c!=="minor"&&c!=="patch")throw new Error("Type must be one of 'major', 'minor' or 'patch'");let l=n.getInput("summary"),d=n.getInput("cwd"),{name:D,path:h}=await Odn({filter:i===""?void 0:new RegExp(i),summary:l,ignore:o,type:c,cwd:d===""?process.cwd():d},n);n.setOutput("changesetName",D),n.setOutput("changesetPath",h)}catch(i){n.setFailed(i.message)}}zSe(new KSe.GitHubActionsContextImpl).catch(()=>process.exit(1)); /* diff --git a/package.json b/package.json index 386836d47..dafcf5036 100644 --- a/package.json +++ b/package.json @@ -57,7 +57,7 @@ "braces@<3.0.3": "3.0.3", "form-data@<3.0.4": "3.0.4", "flatted@<=3.4.1": "3.4.2", - "minimatch@<3.1.4": "3.1.4", + "minimatch@<3.1.4": "3.1.5", "minimatch@>=9.0.0 <9.0.7": "9.0.7", "lodash@<=4.17.23": "4.18.1" } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index bf68a5350..87c098cf8 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -12,7 +12,7 @@ overrides: braces@<3.0.3: 3.0.3 form-data@<3.0.4: 3.0.4 flatted@<=3.4.1: 3.4.2 - minimatch@<3.1.4: 3.1.4 + minimatch@<3.1.4: 3.1.5 minimatch@>=9.0.0 <9.0.7: 9.0.7 lodash@<=4.17.23: 4.18.1 @@ -930,7 +930,7 @@ packages: ignore: 5.3.2 import-fresh: 3.3.1 js-yaml: 4.1.1 - minimatch: 3.1.4 + minimatch: 3.1.5 strip-json-comments: 3.1.1 transitivePeerDependencies: - supports-color @@ -996,7 +996,7 @@ packages: dependencies: '@humanwhocodes/object-schema': 2.0.3 debug: 4.4.3 - minimatch: 3.1.4 + minimatch: 3.1.5 transitivePeerDependencies: - supports-color dev: true @@ -2989,7 +2989,7 @@ packages: hasown: 2.0.2 is-core-module: 2.16.1 is-glob: 4.0.3 - minimatch: 3.1.4 + minimatch: 3.1.5 object.fromentries: 2.0.8 object.groupby: 1.0.3 object.values: 1.2.1 @@ -3120,7 +3120,7 @@ packages: json-stable-stringify-without-jsonify: 1.0.1 levn: 0.4.1 lodash.merge: 4.6.2 - minimatch: 3.1.4 + minimatch: 3.1.5 natural-compare: 1.4.0 optionator: 0.9.3 strip-ansi: 6.0.1 @@ -3618,7 +3618,7 @@ packages: fs.realpath: 1.0.0 inflight: 1.0.6 inherits: 2.0.4 - minimatch: 3.1.4 + minimatch: 3.1.5 once: 1.4.0 path-is-absolute: 1.0.1 @@ -5081,16 +5081,10 @@ packages: brace-expansion: 5.0.5 dev: true - /minimatch@3.1.4: - resolution: {integrity: sha512-twmL+S8+7yIsE9wsqgzU3E8/LumN3M3QELrBZ20OdmQ9jB2JvW5oZtBEmft84k/Gs5CG9mqtWc6Y9vW+JEzGxw==} - dependencies: - brace-expansion: 1.1.11 - /minimatch@3.1.5: resolution: {integrity: sha512-VgjWUsnnT6n+NUk6eZq77zeFdpW2LWDzP6zFGrCbHXiYNul5Dzqk2HHQ5uFH2DNW5Xbp8+jVzaeNt94ssEEl4w==} dependencies: brace-expansion: 1.1.11 - dev: true /minimatch@9.0.7: resolution: {integrity: sha512-MOwgjc8tfrpn5QQEvjijjmDVtMw2oL88ugTevzxQnzRLm6l3fVEF2gzU0kYeYYKD8C66+IdGX6peJ4MyUlUnPg==} @@ -6211,7 +6205,7 @@ packages: dependencies: '@istanbuljs/schema': 0.1.3 glob: 7.2.3 - minimatch: 3.1.4 + minimatch: 3.1.5 dev: true /text-table@0.2.0: