UNPKG

fast-brake

Version:

fast js feature detection with zero runtime dependencies; analyzes js to verify compatibility

1 lines 1.1 kB
import {d as d$1}from'./chunk-ANQWSHVW.js';function e(t="es5"){let s=d$1,n={},r=s.spec.orderedRules.indexOf(t);if(r===-1)return s;for(let[v,c]of Object.entries(s.spec.matches))s.spec.orderedRules.indexOf(c.rule)>r&&(n[v]=c);return {name:`es-version-${t}`,description:`Checks for features newer than ${t}`,spec:{orderedRules:s.spec.orderedRules,matches:n}}}var p=e("es5"),i=e("es2015"),x=e("es2016"),u=e("es2017"),l=e("es2018"),d=e("es2019"),g=e("es2020"),a=e("es2021"),f=e("es2022"),m=e("es2023"),P=e("es2024"),h=e("es2025"),y=i,E=x,I=u,O=l,S=d,D=g,$=a,b=f,j=m,k=P,q=h,R=d$1,w={name:"es-detect",description:"Detects the minimum ES version required",spec:d$1.spec};function M(t){return {es5:p,es2015:i,es2016:x,es2017:u,es2018:l,es2019:d,es2020:g,es2021:a,es2022:f,es2023:m,es2024:P,es2025:h,es6:y,es7:E,es8:I,es9:O,es10:S,es11:D,es12:$,es13:b,es14:j,es15:k,es16:q,all:R,detect:w}[t]||p}var N=R;export{M as A,N as B,e as a,p as b,i as c,x as d,u as e,l as f,d as g,g as h,a as i,f as j,m as k,P as l,h as m,y as n,E as o,I as p,O as q,S as r,D as s,$ as t,b as u,j as v,k as w,q as x,R as y,w as z};