@microsoft/applicationinsights-perfmarkmeasure-js 2.7.4-nightly.2202-09 → 2.8.0-beta.2202-06

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.
Files changed (30) hide show
  1. package/browser/{ai.prfmm-mgr.2.7.4-nightly.2202-09.cjs.js → ai.prfmm-mgr.2.8.0-beta.2202-06.cjs.js} +2 -2
  2. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.cjs.js.map +1 -0
  3. package/browser/{ai.prfmm-mgr.2.7.4-nightly.2202-09.cjs.min.js → ai.prfmm-mgr.2.8.0-beta.2202-06.cjs.min.js} +3 -3
  4. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.cjs.min.js.map +1 -0
  5. package/browser/{ai.prfmm-mgr.2.7.4-nightly.2202-09.gbl.js → ai.prfmm-mgr.2.8.0-beta.2202-06.gbl.js} +2 -2
  6. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.gbl.js.map +1 -0
  7. package/browser/{ai.prfmm-mgr.2.7.4-nightly.2202-09.gbl.min.js → ai.prfmm-mgr.2.8.0-beta.2202-06.gbl.min.js} +3 -3
  8. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.gbl.min.js.map +1 -0
  9. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.integrity.json +66 -0
  10. package/browser/{ai.prfmm-mgr.2.7.4-nightly.2202-09.js → ai.prfmm-mgr.2.8.0-beta.2202-06.js} +2 -2
  11. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.js.map +1 -0
  12. package/browser/{ai.prfmm-mgr.2.7.4-nightly.2202-09.min.js → ai.prfmm-mgr.2.8.0-beta.2202-06.min.js} +3 -3
  13. package/browser/ai.prfmm-mgr.2.8.0-beta.2202-06.min.js.map +1 -0
  14. package/dist/applicationinsights-perfmarkmeasure-js.d.ts +1 -1
  15. package/dist/applicationinsights-perfmarkmeasure-js.js +1 -1
  16. package/dist/applicationinsights-perfmarkmeasure-js.js.map +1 -1
  17. package/dist/applicationinsights-perfmarkmeasure-js.min.js +2 -2
  18. package/dist/applicationinsights-perfmarkmeasure-js.min.js.map +1 -1
  19. package/dist/applicationinsights-perfmarkmeasure-js.rollup.d.ts +1 -1
  20. package/dist-esm/PerfMarkMeasureManager.js +1 -1
  21. package/dist-esm/applicationinsights-perfmarkmeasure-js.js +1 -1
  22. package/dist-esm/interfaces/IPerfMarkMeasureConfiguration.js +1 -1
  23. package/package.json +3 -3
  24. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.cjs.js.map +0 -1
  25. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.cjs.min.js.map +0 -1
  26. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.gbl.js.map +0 -1
  27. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.gbl.min.js.map +0 -1
  28. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.integrity.json +0 -66
  29. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.js.map +0 -1
  30. package/browser/ai.prfmm-mgr.2.7.4-nightly.2202-09.min.js.map +0 -1
@@ -1,6 +1,6 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - Performance Mark and Measure Manager plugin, 2.7.4-nightly.2202-09
2
+ * Application Insights JavaScript SDK - Performance Mark and Measure Manager plugin, 2.8.0-beta.2202-06
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
- var t=this,e=function(i){"use strict";var u="function",a="undefined",t="prototype",s="hasOwnProperty",c=Object,e=c[t],n=(c.create,c.defineProperty),l=e[s],r=null;function p(t){return void 0===t&&(t=!0),r&&t||(typeof globalThis!==a&&globalThis&&(r=globalThis),typeof self!==a&&self&&(r=self),typeof window!==a&&window&&(r=window),typeof global!==a&&global&&(r=global)),r}function y(t){throw new TypeError(t)}(p()||{}).Symbol,(p()||{}).Reflect;var C=function(t,e){return(C=c.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[s](n)&&(t[n]=e[n])})(t,e)},m="constructor",d="prototype",g="function",P="_dynInstFuncs",_="_isDynProxy",x="_dynClass",k="_dynInstChk",M=k,w="_dfOpts",b="_unknown_",E="__proto__",K="useBaseInst",O="setInstFuncs",T=Object,A=T.getPrototypeOf,I=0;function v(t,e){return t&&T[d].hasOwnProperty.call(t,e)}function j(t){return t&&(t===T[d]||t===Array[d])}function N(t){return j(t)||t===Function[d]}function h(t){if(t){if(A)return A(t);t=t[E]||t[d]||(t[m]?t[m][d]:null);if(t)return t}return null}function F(t,e){var n=[],r=T.getOwnPropertyNames;if(r)n=r(t);else for(var o in t)"string"==typeof o&&v(t,o)&&n.push(o);if(n&&0<n.length)for(var i=0;i<n.length;i++)e(n[i])}function D(t,e,n){return e!==m&&typeof t[e]===g&&(n||v(t,e))}function B(t){throw new TypeError("DynamicProto: "+t)}function S(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function $(t,e){return v(t,d)?t.name||e||b:((t||{})[m]||{}).name||e||b}function q(t,r,e,n){v(t,d)||B("theClass is an invalid class definition.");var c,o,i,u,l,p,f=t[d],a=(function(t){if(A)for(var e=[],n=h(r);n&&!N(n)&&!S(e,n);){if(n===t)return 1;e.push(n),n=h(n)}}(f)||B("["+$(t)+"] is not in class hierarchy of ["+$(r)+"]"),null),t=(v(f,x)?a=f[x]:(a="_dynCls$"+$(t,"_")+"$"+I,I++,f[x]=a),q[w]),s=!!t[K],y=(s&&n&&n[K]!==undefined&&(s=!!n[K]),o={},F(c=r,function(t){!o[t]&&D(c,t,!1)&&(o[t]=c[t])}),o),s=(e(r,function(t,e,n,i){function r(t,e,n){var r,o=e[n];return o[_]&&i&&!1!==(r=t[P]||{})[M]&&(o=(r[e[x]]||{})[n]||o),function(){return o.apply(t,arguments)}}for(var o={},u=(F(n,function(t){o[t]=r(e,n,t)}),h(t)),f=[];u&&!N(u)&&!S(f,u);)F(u,function(t){!o[t]&&D(u,t,!A)&&(o[t]=r(e,u,t))}),f.push(u),u=h(u);return o}(f,r,y,s)),!!A&&!!t[O]);i=f,e=a,u=r,l=y,t=!1!==(s=s&&n?!!n[O]:s),j(i)||(f=u[P]=u[P]||{},p=f[e]=f[e]||{},!1!==f[M]&&(f[M]=!!t),F(u,function(t){var n,r,o;D(u,t,!1)&&u[t]!==l[t]&&(p[t]=u[t],delete u[t],v(i,t)&&(!i[t]||i[t][_])||(i[t]=(n=i,r=t,(o=function(){var t,e;return(function(t,e,n,c){var r=null;if(t&&v(n,x)){var o=t[P]||{};if((r=(o[n[x]]||{})[e])||B("Missing ["+e+"] "+g),!r[k]&&!1!==o[M]){for(var i=!v(t,e),u=h(t),f=[];i&&u&&!N(u)&&!S(f,u);){var a=u[e];if(a){i=a===c;break}f.push(u),u=h(u)}try{i&&(t[e]=r),r[k]=1}catch(s){o[M]=!1}}}return r}(this,r,n,o)||(typeof(e=(e=n[t=r])===o?h(n)[t]:e)!==g&&B("["+t+"] is not a "+g),e)).apply(this,arguments)})[_]=1,o)))}))}q[w]={setInstFuncs:!0,useBaseInst:!0};var R="toString",U=n,n=Array.isArray,z=e[R];function G(t){return t===undefined||typeof t===a}function H(t){return t&&typeof t===u}l[R].call(c);var J=n||function(t){return!(!t||"[object Array]"!==z.call(t))};function L(){var t=Date;return t.now?t.now():(new t).getTime()}function o(t,e,n){var r;return t?(r=t[e])||null!==r&&!G(r)||(r=G(n)?{}:n,t[e]=r):r=G(n)?{}:n,r}f.ParentContextKey="parent",f.ChildrenContextKey="childEvts";var Q=f;function f(t,o,e){var r,i=this,u=!1;i.start=L(),i.name=t,i.isAsync=e,i.isChildEvt=function(){return!1},H(o)&&(u=function(t){if(U)try{var e={enumerable:!0,configurable:!0,get:function(){return!r&&H(o)&&(r=o(),o=null),r}};return U(t,"payload",e),!0}catch(n){}return!1}(i)),i.getCtx=function(t){return t?(t===f.ParentContextKey||t===f.ChildrenContextKey?i:i.ctx||{})[t]:null},i.setCtx=function(t,e){t&&(t===f.ParentContextKey?(i[t]||(i.isChildEvt=function(){return!0}),i[t]=e):t===f.ChildrenContextKey?i[t]=e:(i.ctx=i.ctx||{})[t]=e)},i.complete=function(){var t=0,e=i.getCtx(f.ChildrenContextKey);if(J(e))for(var n=0;n<e.length;n++){var r=e[n];r&&(t+=r.time)}i.time=L()-i.start,i.exTime=i.time-t,i.complete=function(){},!u&&H(o)&&(i.payload=o())}}var V,W,X="CoreUtils.doPerf",Y="prf-mark",Z="prf-mark-end",tt="prf-measure";function et(t,e){var e=V.call(this,e)||this,a=t||{},s=0;function c(t,e){return t?t[e]:e}return o(a,"useMarks",!0),o(a,"markPrefix","ai.prfmrk."),o(a,"useEndMarks",!1),o(a,"markEndPrefix","ai.prfmrk-end."),o(a,"useMeasures",!0),o(a,"measurePrefix","ai.prfmsr."),q(et,e,function(t,u){var e,n,e="performance",f=(n=p())&&n[e]?n[e]:null;t.create=function(t,e,n){var r,o,i,t=u.create(t,e,n);return t&&(e=t,n=null,i="",a.uniqueNames&&(i=s+".",s++),a.useMarks&&(o=c(a.markNameMap,e.name))&&(n=(a.markPrefix||"")+i+o,e.setCtx(Y,n),!0===a.useEndMarks&&(r=(a.markEndPrefix||"")+i+o,e.setCtx(Z,r))),!a.useMeasures||(o=c(a.measureNameMap||a.markNameMap,e.name))&&(r=(a.measurePrefix||"")+i+o,e.setCtx(tt,r)),(i=n)&&f.mark(i)),t},t.fire=function(t){var e,n,r;t&&(!(e=null)===a.useEndMarks&&(e=t.getCtx(Z))&&f.mark(e),(n=t.getCtx(tt))&&((r=t.getCtx(Y))?e?f.measure(n,r,e):f.measure(n,r):e?f.measure(n,undefined,e):f.measure(n)),u.fire(t))}}),e}function nt(){this.constructor=W}W=et,typeof(e=V=function rt(e){this.ctx={},q(rt,this,function(n){n.create=function(t,e,n){return new Q(t,e,n)},n.fire=function(t){t&&(t.complete(),e&&H(e.perfEvent)&&e.perfEvent(t))},n.setCtx=function(t,e){t&&((n.ctx=n.ctx||{})[t]=e)},n.getCtx=function(t){return(n.ctx||{})[t]}})})!==u&&null!==e&&y("Class extends value "+e+" is not a constructor or null"),C(W,e),W[t]=(nt[t]=e[t],new nt),i.PerfMarkMeasureManager=et,i.doPerf=function(t,e,n,r,o){if(t)if(t=H(t.getPerfMgr)?t.getPerfMgr():t){var i,u=void 0,f=t.getCtx(X);try{if(u=t.create(e(),r,o))return f&&u.setCtx&&(u.setCtx(Q.ParentContextKey,f),f.getCtx&&f.setCtx&&((i=f.getCtx(Q.ChildrenContextKey))||(i=[],f.setCtx(Q.ChildrenContextKey,i)),i.push(u))),t.setCtx(X,u),n(u)}catch(a){u&&u.setCtx&&u.setCtx("exception",a)}finally{u&&t.fire(u),t.setCtx(X,f)}}return n()};R=i,l="__esModule",n={value:!0},t=Object.defineProperty;if(t)try{return void t(R,l,n)}catch(ot){}typeof n.value!==undefined&&(R[l]=n.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
5
+ var t=this,e=function(i){"use strict";var u="function",e="undefined",t="prototype",a="hasOwnProperty",s=Object,n=s[t],c=(s.create,s.defineProperty),l=n[a],r=null;function p(t){return void 0===t&&(t=!0),r&&t||(typeof globalThis!==e&&globalThis&&(r=globalThis),typeof self!==e&&self&&(r=self),typeof window!==e&&window&&(r=window),typeof global!==e&&global&&(r=global)),r}function y(t){throw new TypeError(t)}(p()||{}).Symbol,(p()||{}).Reflect;var C=function(t,e){return(C=s.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var n in e)e[a](n)&&(t[n]=e[n])})(t,e)},m="constructor",d="prototype",g="function",P="_dynInstFuncs",_="_isDynProxy",x="_dynClass",k="_dynInstChk",M=k,w="_dfOpts",b="_unknown_",E="__proto__",K="useBaseInst",O="setInstFuncs",T=Object,A=T.getPrototypeOf,I=0;function v(t,e){return t&&T[d].hasOwnProperty.call(t,e)}function j(t){return t&&(t===T[d]||t===Array[d])}function N(t){return j(t)||t===Function[d]}function h(t){if(t){if(A)return A(t);t=t[E]||t[d]||(t[m]?t[m][d]:null);if(t)return t}return null}function F(t,e){var n=[],r=T.getOwnPropertyNames;if(r)n=r(t);else for(var o in t)"string"==typeof o&&v(t,o)&&n.push(o);if(n&&0<n.length)for(var i=0;i<n.length;i++)e(n[i])}function D(t,e,n){return e!==m&&typeof t[e]===g&&(n||v(t,e))}function B(t){throw new TypeError("DynamicProto: "+t)}function S(t,e){for(var n=t.length-1;0<=n;n--)if(t[n]===e)return 1}function $(t,e){return v(t,d)?t.name||e||b:((t||{})[m]||{}).name||e||b}function q(t,r,e,n){v(t,d)||B("theClass is an invalid class definition.");var c,o,i,u,l,p,f=t[d],a=(function(t){if(A)for(var e=[],n=h(r);n&&!N(n)&&!S(e,n);){if(n===t)return 1;e.push(n),n=h(n)}}(f)||B("["+$(t)+"] is not in class hierarchy of ["+$(r)+"]"),null),t=(v(f,x)?a=f[x]:(a="_dynCls$"+$(t,"_")+"$"+I,I++,f[x]=a),q[w]),s=!!t[K],y=(s&&n&&n[K]!==undefined&&(s=!!n[K]),o={},F(c=r,function(t){!o[t]&&D(c,t,!1)&&(o[t]=c[t])}),o),s=(e(r,function(t,e,n,i){function r(t,e,n){var r,o=e[n];return o[_]&&i&&!1!==(r=t[P]||{})[M]&&(o=(r[e[x]]||{})[n]||o),function(){return o.apply(t,arguments)}}for(var o={},u=(F(n,function(t){o[t]=r(e,n,t)}),h(t)),f=[];u&&!N(u)&&!S(f,u);)F(u,function(t){!o[t]&&D(u,t,!A)&&(o[t]=r(e,u,t))}),f.push(u),u=h(u);return o}(f,r,y,s)),!!A&&!!t[O]);i=f,e=a,u=r,l=y,t=!1!==(s=s&&n?!!n[O]:s),j(i)||(f=u[P]=u[P]||{},p=f[e]=f[e]||{},!1!==f[M]&&(f[M]=!!t),F(u,function(t){var n,r,o;D(u,t,!1)&&u[t]!==l[t]&&(p[t]=u[t],delete u[t],v(i,t)&&(!i[t]||i[t][_])||(i[t]=(n=i,r=t,(o=function(){var t,e;return(function(t,e,n,c){var r=null;if(t&&v(n,x)){var o=t[P]||{};if((r=(o[n[x]]||{})[e])||B("Missing ["+e+"] "+g),!r[k]&&!1!==o[M]){for(var i=!v(t,e),u=h(t),f=[];i&&u&&!N(u)&&!S(f,u);){var a=u[e];if(a){i=a===c;break}f.push(u),u=h(u)}try{i&&(t[e]=r),r[k]=1}catch(s){o[M]=!1}}}return r}(this,r,n,o)||(typeof(e=(e=n[t=r])===o?h(n)[t]:e)!==g&&B("["+t+"] is not a "+g),e)).apply(this,arguments)})[_]=1,o)))}))}q[w]={setInstFuncs:!0,useBaseInst:!0};var R="toString",U=c,c=Array.isArray,z=n[R];function G(t){return t===undefined||typeof t===e}function H(t){return t&&typeof t===u}l[R].call(s);var J=c||function(t){return!(!t||"[object Array]"!==z.call(t))};function L(){var t=Date;return t.now?t.now():(new t).getTime()}function o(t,e,n){var r;return t?(r=t[e])||null!==r&&!G(r)||(r=G(n)?{}:n,t[e]=r):r=G(n)?{}:n,r}f.ParentContextKey="parent",f.ChildrenContextKey="childEvts";var Q=f;function f(t,o,e){var r,i=this,u=!1;i.start=L(),i.name=t,i.isAsync=e,i.isChildEvt=function(){return!1},H(o)&&(u=function(t){if(U)try{var e={enumerable:!0,configurable:!0,get:function(){return!r&&H(o)&&(r=o(),o=null),r}};return U(t,"payload",e),!0}catch(n){}return!1}(i)),i.getCtx=function(t){return t?(t===f.ParentContextKey||t===f.ChildrenContextKey?i:i.ctx||{})[t]:null},i.setCtx=function(t,e){t&&(t===f.ParentContextKey?(i[t]||(i.isChildEvt=function(){return!0}),i[t]=e):t===f.ChildrenContextKey?i[t]=e:(i.ctx=i.ctx||{})[t]=e)},i.complete=function(){var t=0,e=i.getCtx(f.ChildrenContextKey);if(J(e))for(var n=0;n<e.length;n++){var r=e[n];r&&(t+=r.time)}i.time=L()-i.start,i.exTime=i.time-t,i.complete=function(){},!u&&H(o)&&(i.payload=o())}}var V,W,X="CoreUtils.doPerf",Y="prf-mark",Z="prf-mark-end",tt="prf-measure",R=(W=nt,typeof(n=V=function rt(e){this.ctx={},q(rt,this,function(n){n.create=function(t,e,n){return new Q(t,e,n)},n.fire=function(t){t&&(t.complete(),e&&H(e.perfEvent)&&e.perfEvent(t))},n.setCtx=function(t,e){t&&((n.ctx=n.ctx||{})[t]=e)},n.getCtx=function(t){return(n.ctx||{})[t]}})})!==u&&null!==n&&y("Class extends value "+n+" is not a constructor or null"),C(W,n),W[t]=(et[t]=n[t],new et),nt);function et(){this.constructor=W}function nt(t,e){var e=V.call(this,e)||this,a=t||{},s=0;function c(t,e){return t?t[e]:e}return o(a,"useMarks",!0),o(a,"markPrefix","ai.prfmrk."),o(a,"useEndMarks",!1),o(a,"markEndPrefix","ai.prfmrk-end."),o(a,"useMeasures",!0),o(a,"measurePrefix","ai.prfmsr."),q(nt,e,function(t,u){var e,n,e="performance",f=(n=p())&&n[e]?n[e]:null;t.create=function(t,e,n){var r,o,i,t=u.create(t,e,n);return t&&(e=t,n=null,i="",a.uniqueNames&&(i=s+".",s++),a.useMarks&&(o=c(a.markNameMap,e.name))&&(n=(a.markPrefix||"")+i+o,e.setCtx(Y,n),!0===a.useEndMarks&&(r=(a.markEndPrefix||"")+i+o,e.setCtx(Z,r))),!a.useMeasures||(o=c(a.measureNameMap||a.markNameMap,e.name))&&(r=(a.measurePrefix||"")+i+o,e.setCtx(tt,r)),(i=n)&&f.mark(i)),t},t.fire=function(t){var e,n,r;t&&(!(e=null)===a.useEndMarks&&(e=t.getCtx(Z))&&f.mark(e),(n=t.getCtx(tt))&&((r=t.getCtx(Y))?e?f.measure(n,r,e):f.measure(n,r):e?f.measure(n,undefined,e):f.measure(n)),u.fire(t))}}),e}i.PerfMarkMeasureManager=R,i.doPerf=function(t,e,n,r,o){if(t)if(t=H(t.getPerfMgr)?t.getPerfMgr():t){var i,u=void 0,f=t.getCtx(X);try{if(u=t.create(e(),r,o))return f&&u.setCtx&&(u.setCtx(Q.ParentContextKey,f),f.getCtx&&f.setCtx&&((i=f.getCtx(Q.ChildrenContextKey))||(i=[],f.setCtx(Q.ChildrenContextKey,i)),i.push(u))),t.setCtx(X,u),n(u)}catch(a){u&&u.setCtx&&u.setCtx("exception",a)}finally{u&&t.fire(u),t.setCtx(X,f)}}return n()};l=i,c="__esModule",t={value:!0},n=Object.defineProperty;if(n)try{return void n(l,c,t)}catch(ot){}typeof t.value!==undefined&&(l[c]=t.value)};"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).Microsoft=t.Microsoft||{},t.Microsoft.ApplicationInsights=t.Microsoft.ApplicationInsights||{}));
6
6
  //# sourceMappingURL=applicationinsights-perfmarkmeasure-js.min.js.map