All Downloads are FREE. Search and download functionalities are using the official Maven repository.

package.dist.prod.Runtimes.js Maven / Gradle / Ivy

"use strict";import p from"./generated/VersionInfo.js";import d from"./getSharedResource.js";let i,s="";const u=new Map,r=d("Runtimes",[]),R=()=>{if(i===void 0){i=r.length;const t=p;r.push({...t,alias:s,description:`Runtime ${i} - ver ${t.version}${s?` (${s})`:""}`})}},g=()=>i,h=(t,m)=>{const o=`${t},${m}`;if(u.has(o))return u.get(o);const e=r[t],n=r[m];if(!e||!n)throw new Error("Invalid runtime index supplied");if(e.isNext||n.isNext)return e.buildTime-n.buildTime;const c=e.major-n.major;if(c)return c;const a=e.minor-n.minor;if(a)return a;const f=e.patch-n.patch;if(f)return f;const l=new Intl.Collator(void 0,{numeric:!0,sensitivity:"base"}).compare(e.suffix,n.suffix);return u.set(o,l),l},I=t=>{s=t},b=()=>r;export{g as getCurrentRuntimeIndex,R as registerCurrentRuntime,h as compareRuntimes,I as setRuntimeAlias,b as getAllRuntimes};
//# sourceMappingURL=Runtimes.js.map




© 2015 - 2024 Weber Informatics LLC | Privacy Policy