@mablhq/mabl-cli 1.55.1 → 1.55.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mablhq/mabl-cli",
3
- "version": "1.55.1",
3
+ "version": "1.55.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "The official mabl command line interface tool",
6
6
  "main": "index.js",
@@ -0,0 +1 @@
1
+ (()=>{"use strict";var e={d:(n,t)=>{for(var i in t)e.o(t,i)&&!e.o(n,i)&&Object.defineProperty(n,i,{enumerable:!0,get:t[i]})},o:(e,n)=>Object.prototype.hasOwnProperty.call(e,n),r:e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})}},n={};e.r(n),e.d(n,{attachListeners:()=>F,listenersAreAttached:()=>D});var t=-1,i=function(e){addEventListener("pageshow",(function(n){n.persisted&&(t=n.timeStamp,e(n))}),!0)},r=function(){return window.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]},o=function(){var e=r();return e&&e.activationStart||0},a=function(e,n){var i=r(),a="navigate";return t>=0?a="back-forward-cache":i&&(a=document.prerendering||o()>0?"prerender":document.wasDiscarded?"restore":i.type.replace(/_/g,"-")),{name:e,value:void 0===n?-1:n,rating:"good",delta:0,entries:[],id:"v3-".concat(Date.now(),"-").concat(Math.floor(8999999999999*Math.random())+1e12),navigationType:a}},d=function(e,n,t){try{if(PerformanceObserver.supportedEntryTypes.includes(e)){var i=new PerformanceObserver((function(e){Promise.resolve().then((function(){n(e.getEntries())}))}));return i.observe(Object.assign({type:e,buffered:!0},t||{})),i}}catch(e){}},c=function(e,n,t,i){var r,o;return function(a){n.value>=0&&(a||i)&&((o=n.value-(r||0))||void 0===r)&&(r=n.value,n.delta=o,n.rating=function(e,n){return e>n[1]?"poor":e>n[0]?"needs-improvement":"good"}(n.value,t),e(n))}},u=function(e){requestAnimationFrame((function(){return requestAnimationFrame((function(){return e()}))}))},l=function(e){var n=function(n){"pagehide"!==n.type&&"hidden"!==document.visibilityState||e(n)};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},v=function(e){var n=!1;return function(t){n||(e(t),n=!0)}},s=-1,f=function(){return"hidden"!==document.visibilityState||document.prerendering?1/0:0},m=function(e){"hidden"===document.visibilityState&&s>-1&&(s="visibilitychange"===e.type?e.timeStamp:0,g())},p=function(){addEventListener("visibilitychange",m,!0),addEventListener("prerenderingchange",m,!0)},g=function(){removeEventListener("visibilitychange",m,!0),removeEventListener("prerenderingchange",m,!0)},y=function(){return s<0&&(s=f(),p(),i((function(){setTimeout((function(){s=f(),p()}),0)}))),{get firstHiddenTime(){return s}}},E=function(e){document.prerendering?addEventListener("prerenderingchange",(function(){return e()}),!0):e()},h=[1800,3e3],T=function(e,n){n=n||{},E((function(){var t,r=y(),l=a("FCP"),v=d("paint",(function(e){e.forEach((function(e){"first-contentful-paint"===e.name&&(v.disconnect(),e.startTime<r.firstHiddenTime&&(l.value=Math.max(e.startTime-o(),0),l.entries.push(e),t(!0)))}))}));v&&(t=c(e,l,h,n.reportAllChanges),i((function(i){l=a("FCP"),t=c(e,l,h,n.reportAllChanges),u((function(){l.value=performance.now()-i.timeStamp,t(!0)}))})))}))},w=[.1,.25],b=function(e,n){n=n||{},T(v((function(){var t,r=a("CLS",0),o=0,v=[],s=function(e){e.forEach((function(e){if(!e.hadRecentInput){var n=v[0],t=v[v.length-1];o&&e.startTime-t.startTime<1e3&&e.startTime-n.startTime<5e3?(o+=e.value,v.push(e)):(o=e.value,v=[e])}})),o>r.value&&(r.value=o,r.entries=v,t())},f=d("layout-shift",s);f&&(t=c(e,r,w,n.reportAllChanges),l((function(){s(f.takeRecords()),t(!0)})),i((function(){o=0,r=a("CLS",0),t=c(e,r,w,n.reportAllChanges),u((function(){return t()}))})),setTimeout(t,0))})))},C=(new Date,[2500,4e3]),L={},S=function(e,n){n=n||{},E((function(){var t,r=y(),s=a("LCP"),f=function(e){var n=e[e.length-1];n&&n.startTime<r.firstHiddenTime&&(s.value=Math.max(n.startTime-o(),0),s.entries=[n],t())},m=d("largest-contentful-paint",f);if(m){t=c(e,s,C,n.reportAllChanges);var p=v((function(){L[s.id]||(f(m.takeRecords()),m.disconnect(),L[s.id]=!0,t(!0))}));["keydown","click"].forEach((function(e){addEventListener(e,p,!0)})),l(p),i((function(i){s=a("LCP"),t=c(e,s,C,n.reportAllChanges),u((function(){s.value=performance.now()-i.timeStamp,L[s.id]=!0,t(!0)}))}))}}))},A=[800,1800],O=function e(n){document.prerendering?E((function(){return e(n)})):"complete"!==document.readyState?addEventListener("load",(function(){return e(n)}),!0):setTimeout(n,0)},P=function(e,n){n=n||{};var t=a("TTFB"),d=c(e,t,A,n.reportAllChanges);O((function(){var u=r();if(u){var l=u.responseStart;if(l<=0||l>performance.now())return;t.value=Math.max(l-o(),0),t.entries=[u],d(!0),i((function(){t=a("TTFB",0),(d=c(e,t,A,n.reportAllChanges))(!0)}))}}))};const M=10,B=100;let D=!1;function F(){b(j),T(j),S(j),P(j),function(e){var n;const t=null===(n=performance.getEntriesByType("navigation"))||void 0===n?void 0:n[0];void 0!==t&&R("startTime",e);(null==t?void 0:t.domContentLoadedEventEnd)?R("domContentLoadedEventEnd",e):document.addEventListener("DOMContentLoaded",(function(){_("domContentLoadedEventEnd",e)}));"complete"===document.readyState||(null==t?void 0:t.loadEventEnd)?_("loadEventEnd",e,t):window.addEventListener("load",(function(){_("loadEventEnd",e)}))}(j),D=!0}function R(e,n){var t;const i=performance.getEntriesByType("navigation"),r=null==i?void 0:i[0],o=null==r?void 0:r[e];n({name:e,value:o,delta:o,rating:"none",id:`NAV:${e}:${o}:${Date.now()}`,entries:null==i?void 0:i.map((e=>null==e?void 0:e.toJSON())),navigationType:null!==(t=null==r?void 0:r.type)&&void 0!==t?t:"navigate"})}function _(e,n,t){var i;if(null==(t=null!=t?t:null===(i=performance.getEntriesByType("navigation"))||void 0===i?void 0:i[0])?void 0:t[e])return void R(e,n);let r=0;const o=window.setInterval((()=>{var t;r++;const i=null===(t=performance.getEntriesByType("navigation"))||void 0===t?void 0:t[0];((null==i?void 0:i[e])||r>=M)&&(R(e,n),window.clearInterval(o))}),B)}const j=e=>{var n,t,i;const r=null===(n=performance.getEntriesByType("navigation"))||void 0===n?void 0:n[0];null===(i=(t=window).dispatchMablEvent)||void 0===i||i.call(t,{createdTime:Date.now(),timeOrigin:performance.timeOrigin,type:"WEB_PERFORMANCE_METRIC_DETECTED",currentUrl:window.document.URL,navigationUrl:null==r?void 0:r.name,metric:e})};window.mablCoreWebVitals=n})();