@microsoft/applicationinsights-shims
Advanced tools
Comparing version 2.0.1 to 2.0.2
/*! | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.1 | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -39,17 +39,19 @@ */ | ||
if (useCached === void 0) { useCached = true; } | ||
if (!_cachedGlobal || !useCached) { | ||
if (typeof globalThis !== strShimUndefined && globalThis) { | ||
_cachedGlobal = globalThis; | ||
var result = useCached === false ? null : _cachedGlobal; | ||
if (!result) { | ||
if (typeof globalThis !== strShimUndefined) { | ||
result = globalThis; | ||
} | ||
if (typeof self !== strShimUndefined && self) { | ||
_cachedGlobal = self; | ||
if (!result && typeof self !== strShimUndefined) { | ||
result = self; | ||
} | ||
if (typeof window !== strShimUndefined && window) { | ||
_cachedGlobal = window; | ||
if (!result && typeof window !== strShimUndefined) { | ||
result = window; | ||
} | ||
if (typeof global !== strShimUndefined && global) { | ||
_cachedGlobal = global; | ||
if (!result && typeof global !== strShimUndefined) { | ||
result = global; | ||
} | ||
_cachedGlobal = result; | ||
} | ||
return _cachedGlobal; | ||
return result; | ||
} | ||
@@ -113,3 +115,5 @@ function throwTypeError(message) { | ||
// tslint:disable-next-line: only-arrow-functions | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
({ __proto__: [] } instanceof Array && function (d, b) { | ||
d.__proto__ = b; | ||
}) || | ||
// tslint:disable-next-line: only-arrow-functions | ||
@@ -130,3 +134,5 @@ function (d, b) { | ||
extendStaticsFn(d, b); | ||
function __() { this.constructor = d; } | ||
function __() { | ||
this.constructor = d; | ||
} | ||
// tslint:disable-next-line: ban-comma-operator | ||
@@ -188,3 +194,3 @@ d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __()); | ||
} | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(o, k2, { | ||
@@ -293,3 +299,3 @@ enumerable: true, | ||
// Set default module | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod }); | ||
@@ -296,0 +302,0 @@ } |
/*! | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.1 | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,n=function(e){"use strict";var f="function",a="object",n="undefined",r="prototype",l="hasOwnProperty",o="default",u=Object,_=u[r],d=u.assign,i=u.create,s=u.defineProperty,p=_[l],t=null;function y(e){return void 0===e&&(e=!0),t&&e||(typeof globalThis!=n&&globalThis&&(t=globalThis),typeof self!=n&&self&&(t=self),typeof window!=n&&window&&(t=window),typeof global!=n&&global&&(t=global)),t}function g(e){throw new TypeError(e)}function b(e){if(i)return i(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==f&&g("Object prototype may only be an Object:"+e),t[r]=e,new t}var v=(y()||{}).Symbol,c=(y()||{}).Reflect,h=!!c,m="decorate",O="metadata",w="getOwnPropertySymbols",j="iterator",F=d||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])_[l].call(n,o)&&(e[o]=n[o]);return e},x=function(e,n){return(x=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[l](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==f&&null!==n&&g("Class extends value "+n+" is not a constructor or null"),x(e,n),e[r]=null===n?b(n):(t[r]=n[r],new t)}function S(e,n,t,r){r===undefined&&(r=t),i?s(e,r,{enumerable:!0,get:function(){return n[t]}}):e[r]=n[t]}e.ObjAssign=d,e.ObjClass=u,e.ObjCreate=i,e.ObjDefineProperty=s,e.ObjHasOwnProperty=p,e.ObjProto=_,e.__assignFn=F,e.__createBindingFn=S,e.__decorateFn=function(e,n,t,r){var o,i=arguments.length,a=i<3?n:null===r?r=u.getOwnPropertyDescriptor(n,t):r;if(h&&typeof c[m]===f)a=c[m](e,n,t,r);else for(var l=e.length-1;0<=l;l--)(o=e[l])&&(a=(i<3?o(a):3<i?o(n,t,a):o(n,t))||a);return 3<i&&a&&s(n,t,a),a},e.__exportStarFn=function(e,n){for(var t in e)t===o||p.call(n,t)||S(n,e,t)},e.__exposeGlobalTsLib=function(){var e,n=y()||{},t=P,r=S;(e=n).__assign||(e.__assign=d||F),e.__extends||(e.__extends=t),e.__createBinding||(e.__createBinding=r),__assign=__assign||n.__assign,__extends=__extends||n.__extends,__createBinding=__createBinding||n.__createBinding},e.__extendsFn=P,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)t!==o&&Object.prototype.hasOwnProperty.call(e,t)&&S(n,e,t);return i?s(n,o,{enumerable:!0,value:e}):n[o]=e,n},e.__makeTemplateObjectFn=function(e,n){return s?s(e,"raw",{value:n}):e.raw=n,e},e.__metadataFn=function(e,n){if(h&&c[O]===f)return c[O](e,n)},e.__paramFn=function(t,r){return function(e,n){r(e,n,t)}},e.__readFn=function(e,n){var t=typeof v===f&&e[v[j]];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||0<n--)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(o)throw o.error}}return a},e.__restFn=function(e,n){var t,r={};for(t in e)p.call(e,t)&&!~n.indexOf(t)&&(r[t]=e[t]);if(null!=e&&typeof u[w]===f)for(var o=0,i=u[w](e);o<i.length;o++)!~n.indexOf(i[o])&&_.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r},e.__spreadArrayFn=function(e,n){for(var t=0,r=n.length,o=e.length;t<r;t++,o++)e[o]=n[t];return e},e.__spreadArraysFn=function(){for(var e=arguments,n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(var o=Array(n),i=0,t=0;t<r;t++)for(var a=e[t],l=0,f=a.length;l<f;l++,i++)o[i]=a[l];return o},e.__valuesFn=function(e){var n=typeof v===f&&v[j],t=n&&e[n],r=0;return t?t.call(e):e&&"number"==typeof e.length?{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}}:void g(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=y,e.objCreateFn=b,e.strDefault=o,e.strShimFunction=f,e.strShimHasOwnProperty=l,e.strShimObject=a,e.strShimPrototype=r,e.strShimUndefined=n,e.throwTypeError=g;var T="__esModule",A={value:!0},M=Object.defineProperty;if(M)try{return void M(e,T,A)}catch(B){}typeof A.value!==undefined&&(e[T]=A.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{},e.Microsoft.ApplicationInsights.Shims={})); | ||
var e=this,n=function(e){"use strict";var l="function",r="object",n="undefined",o="prototype",i="hasOwnProperty",a="default",u=Object,f=u[o],s=u.assign,c=u.create,_=u.defineProperty,p=f[i],t=null;function d(e){e=!1===(e=void 0===e||e)?null:t;return e||((e=(e=(e=typeof globalThis!=n?globalThis:e)||typeof self==n?e:self)||typeof window==n?e:window)||typeof global==n||(e=global),t=e),e}function y(e){throw new TypeError(e)}function g(e){if(c)return c(e);if(null==e)return{};var n=typeof e;function t(){}return n!==r&&n!==l&&y("Object prototype may only be an Object:"+e),t[o]=e,new t}var v=(d()||{}).Symbol,b=(d()||{}).Reflect,h=!!b,m="decorate",O="metadata",w="getOwnPropertySymbols",j="iterator",F=s||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])f[i].call(n,o)&&(e[o]=n[o]);return e},x=function(e,n){return(x=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==l&&null!==n&&y("Class extends value "+n+" is not a constructor or null"),x(e,n),e[o]=null===n?g(n):(t[o]=n[o],new t)}function S(e,n,t,r){r===undefined&&(r=t),c?_(e,r,{enumerable:!0,get:function(){return n[t]}}):e[r]=n[t]}e.ObjAssign=s,e.ObjClass=u,e.ObjCreate=c,e.ObjDefineProperty=_,e.ObjHasOwnProperty=p,e.ObjProto=f,e.__assignFn=F,e.__createBindingFn=S,e.__decorateFn=function(e,n,t,r){var o,i=arguments.length,a=i<3?n:null===r?r=u.getOwnPropertyDescriptor(n,t):r;if(h&&typeof b[m]===l)a=b[m](e,n,t,r);else for(var f=e.length-1;0<=f;f--)(o=e[f])&&(a=(i<3?o(a):3<i?o(n,t,a):o(n,t))||a);return 3<i&&a&&_(n,t,a),a},e.__exportStarFn=function(e,n){for(var t in e)t===a||p.call(n,t)||S(n,e,t)},e.__exposeGlobalTsLib=function(){var e,n=d()||{},t=P,r=S;(e=n).__assign||(e.__assign=s||F),e.__extends||(e.__extends=t),e.__createBinding||(e.__createBinding=r),__assign=__assign||n.__assign,__extends=__extends||n.__extends,__createBinding=__createBinding||n.__createBinding},e.__extendsFn=P,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)t!==a&&Object.prototype.hasOwnProperty.call(e,t)&&S(n,e,t);return c?_(n,a,{enumerable:!0,value:e}):n[a]=e,n},e.__makeTemplateObjectFn=function(e,n){return _?_(e,"raw",{value:n}):e.raw=n,e},e.__metadataFn=function(e,n){if(h&&b[O]===l)return b[O](e,n)},e.__paramFn=function(t,r){return function(e,n){r(e,n,t)}},e.__readFn=function(e,n){var t=typeof v===l&&e[v[j]];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||0<n--)&&!(r=i.next()).done;)a.push(r.value)}catch(f){o={error:f}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(o)throw o.error}}return a},e.__restFn=function(e,n){var t,r={};for(t in e)p.call(e,t)&&!~n.indexOf(t)&&(r[t]=e[t]);if(null!=e&&typeof u[w]===l)for(var o=0,i=u[w](e);o<i.length;o++)!~n.indexOf(i[o])&&f.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r},e.__spreadArrayFn=function(e,n){for(var t=0,r=n.length,o=e.length;t<r;t++,o++)e[o]=n[t];return e},e.__spreadArraysFn=function(){for(var e=arguments,n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(var o=Array(n),i=0,t=0;t<r;t++)for(var a=e[t],f=0,l=a.length;f<l;f++,i++)o[i]=a[f];return o},e.__valuesFn=function(e){var n=typeof v===l&&v[j],t=n&&e[n],r=0;return t?t.call(e):e&&"number"==typeof e.length?{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}}:void y(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=d,e.objCreateFn=g,e.strDefault=a,e.strShimFunction=l,e.strShimHasOwnProperty=i,e.strShimObject=r,e.strShimPrototype=o,e.strShimUndefined=n,e.throwTypeError=y;var A="__esModule",M={value:!0},T=Object.defineProperty;if(T)try{return void T(e,A,M)}catch(B){}typeof M.value!==undefined&&(e[A]=M.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{},e.Microsoft.ApplicationInsights.Shims={})); |
@@ -19,17 +19,19 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
if (useCached === void 0) { useCached = true; } | ||
if (!_cachedGlobal || !useCached) { | ||
if (typeof globalThis !== strShimUndefined && globalThis) { | ||
_cachedGlobal = globalThis; | ||
var result = useCached === false ? null : _cachedGlobal; | ||
if (!result) { | ||
if (typeof globalThis !== strShimUndefined) { | ||
result = globalThis; | ||
} | ||
if (typeof self !== strShimUndefined && self) { | ||
_cachedGlobal = self; | ||
if (!result && typeof self !== strShimUndefined) { | ||
result = self; | ||
} | ||
if (typeof window !== strShimUndefined && window) { | ||
_cachedGlobal = window; | ||
if (!result && typeof window !== strShimUndefined) { | ||
result = window; | ||
} | ||
if (typeof global !== strShimUndefined && global) { | ||
_cachedGlobal = global; | ||
if (!result && typeof global !== strShimUndefined) { | ||
result = global; | ||
} | ||
_cachedGlobal = result; | ||
} | ||
return _cachedGlobal; | ||
return result; | ||
} | ||
@@ -36,0 +38,0 @@ export function throwTypeError(message) { |
@@ -35,3 +35,5 @@ // Copyright (c) Microsoft Corporation. All rights reserved. | ||
// tslint:disable-next-line: only-arrow-functions | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
({ __proto__: [] } instanceof Array && function (d, b) { | ||
d.__proto__ = b; | ||
}) || | ||
// tslint:disable-next-line: only-arrow-functions | ||
@@ -52,3 +54,5 @@ function (d, b) { | ||
extendStaticsFn(d, b); | ||
function __() { this.constructor = d; } | ||
function __() { | ||
this.constructor = d; | ||
} | ||
// tslint:disable-next-line: ban-comma-operator | ||
@@ -110,3 +114,3 @@ d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __()); | ||
} | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(o, k2, { | ||
@@ -215,3 +219,3 @@ enumerable: true, | ||
// Set default module | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod }); | ||
@@ -218,0 +222,0 @@ } |
/*! | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.1 | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -33,17 +33,19 @@ */ | ||
if (useCached === void 0) { useCached = true; } | ||
if (!_cachedGlobal || !useCached) { | ||
if (typeof globalThis !== strShimUndefined && globalThis) { | ||
_cachedGlobal = globalThis; | ||
var result = useCached === false ? null : _cachedGlobal; | ||
if (!result) { | ||
if (typeof globalThis !== strShimUndefined) { | ||
result = globalThis; | ||
} | ||
if (typeof self !== strShimUndefined && self) { | ||
_cachedGlobal = self; | ||
if (!result && typeof self !== strShimUndefined) { | ||
result = self; | ||
} | ||
if (typeof window !== strShimUndefined && window) { | ||
_cachedGlobal = window; | ||
if (!result && typeof window !== strShimUndefined) { | ||
result = window; | ||
} | ||
if (typeof global !== strShimUndefined && global) { | ||
_cachedGlobal = global; | ||
if (!result && typeof global !== strShimUndefined) { | ||
result = global; | ||
} | ||
_cachedGlobal = result; | ||
} | ||
return _cachedGlobal; | ||
return result; | ||
} | ||
@@ -107,3 +109,5 @@ function throwTypeError(message) { | ||
// tslint:disable-next-line: only-arrow-functions | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
({ __proto__: [] } instanceof Array && function (d, b) { | ||
d.__proto__ = b; | ||
}) || | ||
// tslint:disable-next-line: only-arrow-functions | ||
@@ -124,3 +128,5 @@ function (d, b) { | ||
extendStaticsFn(d, b); | ||
function __() { this.constructor = d; } | ||
function __() { | ||
this.constructor = d; | ||
} | ||
// tslint:disable-next-line: ban-comma-operator | ||
@@ -182,3 +188,3 @@ d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __()); | ||
} | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(o, k2, { | ||
@@ -287,3 +293,3 @@ enumerable: true, | ||
// Set default module | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod }); | ||
@@ -290,0 +296,0 @@ } |
/*! | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.1 | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -33,17 +33,19 @@ */ | ||
if (useCached === void 0) { useCached = true; } | ||
if (!_cachedGlobal || !useCached) { | ||
if (typeof globalThis !== strShimUndefined && globalThis) { | ||
_cachedGlobal = globalThis; | ||
var result = useCached === false ? null : _cachedGlobal; | ||
if (!result) { | ||
if (typeof globalThis !== strShimUndefined) { | ||
result = globalThis; | ||
} | ||
if (typeof self !== strShimUndefined && self) { | ||
_cachedGlobal = self; | ||
if (!result && typeof self !== strShimUndefined) { | ||
result = self; | ||
} | ||
if (typeof window !== strShimUndefined && window) { | ||
_cachedGlobal = window; | ||
if (!result && typeof window !== strShimUndefined) { | ||
result = window; | ||
} | ||
if (typeof global !== strShimUndefined && global) { | ||
_cachedGlobal = global; | ||
if (!result && typeof global !== strShimUndefined) { | ||
result = global; | ||
} | ||
_cachedGlobal = result; | ||
} | ||
return _cachedGlobal; | ||
return result; | ||
} | ||
@@ -107,3 +109,5 @@ function throwTypeError(message) { | ||
// tslint:disable-next-line: only-arrow-functions | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
({ __proto__: [] } instanceof Array && function (d, b) { | ||
d.__proto__ = b; | ||
}) || | ||
// tslint:disable-next-line: only-arrow-functions | ||
@@ -124,3 +128,5 @@ function (d, b) { | ||
extendStaticsFn(d, b); | ||
function __() { this.constructor = d; } | ||
function __() { | ||
this.constructor = d; | ||
} | ||
// tslint:disable-next-line: ban-comma-operator | ||
@@ -182,3 +188,3 @@ d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __()); | ||
} | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(o, k2, { | ||
@@ -287,3 +293,3 @@ enumerable: true, | ||
// Set default module | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod }); | ||
@@ -290,0 +296,0 @@ } |
/*! | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.1 | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
@@ -39,17 +39,19 @@ */ | ||
if (useCached === void 0) { useCached = true; } | ||
if (!_cachedGlobal || !useCached) { | ||
if (typeof globalThis !== strShimUndefined && globalThis) { | ||
_cachedGlobal = globalThis; | ||
var result = useCached === false ? null : _cachedGlobal; | ||
if (!result) { | ||
if (typeof globalThis !== strShimUndefined) { | ||
result = globalThis; | ||
} | ||
if (typeof self !== strShimUndefined && self) { | ||
_cachedGlobal = self; | ||
if (!result && typeof self !== strShimUndefined) { | ||
result = self; | ||
} | ||
if (typeof window !== strShimUndefined && window) { | ||
_cachedGlobal = window; | ||
if (!result && typeof window !== strShimUndefined) { | ||
result = window; | ||
} | ||
if (typeof global !== strShimUndefined && global) { | ||
_cachedGlobal = global; | ||
if (!result && typeof global !== strShimUndefined) { | ||
result = global; | ||
} | ||
_cachedGlobal = result; | ||
} | ||
return _cachedGlobal; | ||
return result; | ||
} | ||
@@ -113,3 +115,5 @@ function throwTypeError(message) { | ||
// tslint:disable-next-line: only-arrow-functions | ||
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || | ||
({ __proto__: [] } instanceof Array && function (d, b) { | ||
d.__proto__ = b; | ||
}) || | ||
// tslint:disable-next-line: only-arrow-functions | ||
@@ -130,3 +134,5 @@ function (d, b) { | ||
extendStaticsFn(d, b); | ||
function __() { this.constructor = d; } | ||
function __() { | ||
this.constructor = d; | ||
} | ||
// tslint:disable-next-line: ban-comma-operator | ||
@@ -188,3 +194,3 @@ d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __()); | ||
} | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(o, k2, { | ||
@@ -293,3 +299,3 @@ enumerable: true, | ||
// Set default module | ||
if (ObjCreate) { | ||
if (!!ObjCreate) { | ||
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod }); | ||
@@ -296,0 +302,0 @@ } |
/*! | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.1 | ||
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2 | ||
* Copyright (c) Microsoft and contributors. All rights reserved. | ||
*/ | ||
var e=this,n=function(e){"use strict";var f="function",a="object",n="undefined",r="prototype",l="hasOwnProperty",o="default",u=Object,_=u[r],d=u.assign,i=u.create,s=u.defineProperty,p=_[l],t=null;function y(e){return void 0===e&&(e=!0),t&&e||(typeof globalThis!=n&&globalThis&&(t=globalThis),typeof self!=n&&self&&(t=self),typeof window!=n&&window&&(t=window),typeof global!=n&&global&&(t=global)),t}function g(e){throw new TypeError(e)}function b(e){if(i)return i(e);if(null==e)return{};var n=typeof e;function t(){}return n!==a&&n!==f&&g("Object prototype may only be an Object:"+e),t[r]=e,new t}var v=(y()||{}).Symbol,c=(y()||{}).Reflect,h=!!c,m="decorate",O="metadata",w="getOwnPropertySymbols",j="iterator",F=d||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])_[l].call(n,o)&&(e[o]=n[o]);return e},x=function(e,n){return(x=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[l](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==f&&null!==n&&g("Class extends value "+n+" is not a constructor or null"),x(e,n),e[r]=null===n?b(n):(t[r]=n[r],new t)}function S(e,n,t,r){r===undefined&&(r=t),i?s(e,r,{enumerable:!0,get:function(){return n[t]}}):e[r]=n[t]}e.ObjAssign=d,e.ObjClass=u,e.ObjCreate=i,e.ObjDefineProperty=s,e.ObjHasOwnProperty=p,e.ObjProto=_,e.__assignFn=F,e.__createBindingFn=S,e.__decorateFn=function(e,n,t,r){var o,i=arguments.length,a=i<3?n:null===r?r=u.getOwnPropertyDescriptor(n,t):r;if(h&&typeof c[m]===f)a=c[m](e,n,t,r);else for(var l=e.length-1;0<=l;l--)(o=e[l])&&(a=(i<3?o(a):3<i?o(n,t,a):o(n,t))||a);return 3<i&&a&&s(n,t,a),a},e.__exportStarFn=function(e,n){for(var t in e)t===o||p.call(n,t)||S(n,e,t)},e.__exposeGlobalTsLib=function(){var e,n=y()||{},t=P,r=S;(e=n).__assign||(e.__assign=d||F),e.__extends||(e.__extends=t),e.__createBinding||(e.__createBinding=r),__assign=__assign||n.__assign,__extends=__extends||n.__extends,__createBinding=__createBinding||n.__createBinding},e.__extendsFn=P,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)t!==o&&Object.prototype.hasOwnProperty.call(e,t)&&S(n,e,t);return i?s(n,o,{enumerable:!0,value:e}):n[o]=e,n},e.__makeTemplateObjectFn=function(e,n){return s?s(e,"raw",{value:n}):e.raw=n,e},e.__metadataFn=function(e,n){if(h&&c[O]===f)return c[O](e,n)},e.__paramFn=function(t,r){return function(e,n){r(e,n,t)}},e.__readFn=function(e,n){var t=typeof v===f&&e[v[j]];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||0<n--)&&!(r=i.next()).done;)a.push(r.value)}catch(l){o={error:l}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(o)throw o.error}}return a},e.__restFn=function(e,n){var t,r={};for(t in e)p.call(e,t)&&!~n.indexOf(t)&&(r[t]=e[t]);if(null!=e&&typeof u[w]===f)for(var o=0,i=u[w](e);o<i.length;o++)!~n.indexOf(i[o])&&_.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r},e.__spreadArrayFn=function(e,n){for(var t=0,r=n.length,o=e.length;t<r;t++,o++)e[o]=n[t];return e},e.__spreadArraysFn=function(){for(var e=arguments,n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(var o=Array(n),i=0,t=0;t<r;t++)for(var a=e[t],l=0,f=a.length;l<f;l++,i++)o[i]=a[l];return o},e.__valuesFn=function(e){var n=typeof v===f&&v[j],t=n&&e[n],r=0;return t?t.call(e):e&&"number"==typeof e.length?{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}}:void g(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=y,e.objCreateFn=b,e.strDefault=o,e.strShimFunction=f,e.strShimHasOwnProperty=l,e.strShimObject=a,e.strShimPrototype=r,e.strShimUndefined=n,e.throwTypeError=g;var T="__esModule",A={value:!0},M=Object.defineProperty;if(M)try{return void M(e,T,A)}catch(B){}typeof A.value!==undefined&&(e[T]=A.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{},e.Microsoft.ApplicationInsights.Shims={})); | ||
var e=this,n=function(e){"use strict";var l="function",r="object",n="undefined",o="prototype",i="hasOwnProperty",a="default",u=Object,f=u[o],s=u.assign,c=u.create,_=u.defineProperty,p=f[i],t=null;function d(e){e=!1===(e=void 0===e||e)?null:t;return e||((e=(e=(e=typeof globalThis!=n?globalThis:e)||typeof self==n?e:self)||typeof window==n?e:window)||typeof global==n||(e=global),t=e),e}function y(e){throw new TypeError(e)}function g(e){if(c)return c(e);if(null==e)return{};var n=typeof e;function t(){}return n!==r&&n!==l&&y("Object prototype may only be an Object:"+e),t[o]=e,new t}var v=(d()||{}).Symbol,b=(d()||{}).Reflect,h=!!b,m="decorate",O="metadata",w="getOwnPropertySymbols",j="iterator",F=s||function(e){for(var n,t=1,r=arguments.length;t<r;t++)for(var o in n=arguments[t])f[i].call(n,o)&&(e[o]=n[o]);return e},x=function(e,n){return(x=u.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,n){e.__proto__=n}||function(e,n){for(var t in n)n[i](t)&&(e[t]=n[t])})(e,n)};function P(e,n){function t(){this.constructor=e}typeof n!==l&&null!==n&&y("Class extends value "+n+" is not a constructor or null"),x(e,n),e[o]=null===n?g(n):(t[o]=n[o],new t)}function S(e,n,t,r){r===undefined&&(r=t),c?_(e,r,{enumerable:!0,get:function(){return n[t]}}):e[r]=n[t]}e.ObjAssign=s,e.ObjClass=u,e.ObjCreate=c,e.ObjDefineProperty=_,e.ObjHasOwnProperty=p,e.ObjProto=f,e.__assignFn=F,e.__createBindingFn=S,e.__decorateFn=function(e,n,t,r){var o,i=arguments.length,a=i<3?n:null===r?r=u.getOwnPropertyDescriptor(n,t):r;if(h&&typeof b[m]===l)a=b[m](e,n,t,r);else for(var f=e.length-1;0<=f;f--)(o=e[f])&&(a=(i<3?o(a):3<i?o(n,t,a):o(n,t))||a);return 3<i&&a&&_(n,t,a),a},e.__exportStarFn=function(e,n){for(var t in e)t===a||p.call(n,t)||S(n,e,t)},e.__exposeGlobalTsLib=function(){var e,n=d()||{},t=P,r=S;(e=n).__assign||(e.__assign=s||F),e.__extends||(e.__extends=t),e.__createBinding||(e.__createBinding=r),__assign=__assign||n.__assign,__extends=__extends||n.__extends,__createBinding=__createBinding||n.__createBinding},e.__extendsFn=P,e.__importDefaultFn=function(e){return e&&e.__esModule?e:{strDefault:e}},e.__importStarFn=function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var t in e)t!==a&&Object.prototype.hasOwnProperty.call(e,t)&&S(n,e,t);return c?_(n,a,{enumerable:!0,value:e}):n[a]=e,n},e.__makeTemplateObjectFn=function(e,n){return _?_(e,"raw",{value:n}):e.raw=n,e},e.__metadataFn=function(e,n){if(h&&b[O]===l)return b[O](e,n)},e.__paramFn=function(t,r){return function(e,n){r(e,n,t)}},e.__readFn=function(e,n){var t=typeof v===l&&e[v[j]];if(!t)return e;var r,o,i=t.call(e),a=[];try{for(;(void 0===n||0<n--)&&!(r=i.next()).done;)a.push(r.value)}catch(f){o={error:f}}finally{try{r&&!r.done&&(t=i["return"])&&t.call(i)}finally{if(o)throw o.error}}return a},e.__restFn=function(e,n){var t,r={};for(t in e)p.call(e,t)&&!~n.indexOf(t)&&(r[t]=e[t]);if(null!=e&&typeof u[w]===l)for(var o=0,i=u[w](e);o<i.length;o++)!~n.indexOf(i[o])&&f.propertyIsEnumerable.call(e,i[o])&&(r[i[o]]=e[i[o]]);return r},e.__spreadArrayFn=function(e,n){for(var t=0,r=n.length,o=e.length;t<r;t++,o++)e[o]=n[t];return e},e.__spreadArraysFn=function(){for(var e=arguments,n=0,t=0,r=e.length;t<r;t++)n+=e[t].length;for(var o=Array(n),i=0,t=0;t<r;t++)for(var a=e[t],f=0,l=a.length;f<l;f++,i++)o[i]=a[f];return o},e.__valuesFn=function(e){var n=typeof v===l&&v[j],t=n&&e[n],r=0;return t?t.call(e):e&&"number"==typeof e.length?{next:function(){return{value:(e=e&&r>=e.length?void 0:e)&&e[r++],done:!e}}}:void y(n?"Object is not iterable.":"Symbol.iterator is not defined.")},e.getGlobal=d,e.objCreateFn=g,e.strDefault=a,e.strShimFunction=l,e.strShimHasOwnProperty=i,e.strShimObject=r,e.strShimPrototype=o,e.strShimUndefined=n,e.throwTypeError=y;var A="__esModule",M={value:!0},T=Object.defineProperty;if(T)try{return void T(e,A,M)}catch(B){}typeof M.value!==undefined&&(e[A]=M.value)};"object"==typeof exports&&"undefined"!=typeof module?n(exports):"function"==typeof define&&define.amd?define(["exports"],n):n(((e="undefined"!=typeof globalThis?globalThis:e||self).Microsoft=e.Microsoft||{},e.Microsoft.ApplicationInsights=e.Microsoft.ApplicationInsights||{},e.Microsoft.ApplicationInsights.Shims={})); |
{ | ||
"name": "@microsoft/applicationinsights-shims", | ||
"author": "Microsoft Application Insights Team", | ||
"version": "2.0.1", | ||
"version": "2.0.2", | ||
"description": "Microsoft Application Insights JavaScript SDK - Shim functions", | ||
@@ -40,3 +40,3 @@ "homepage": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/tools/shims", | ||
"@microsoft/applicationinsights-rollup-es3" : "1.1.3", | ||
"grunt": "^1.4.1", | ||
"grunt": "^1.5.3", | ||
"grunt-cli": "^1.4.3", | ||
@@ -43,0 +43,0 @@ "grunt-contrib-qunit": "^5.0.1", |
@@ -53,4 +53,8 @@ # Microsoft Application Insights JavaScript SDK - Shims | ||
## Trademarks | ||
This project may contain trademarks or logos for projects, products, or services. Authorized use of Microsoft trademarks or logos is subject to and must follow [Microsoft’s Trademark & Brand Guidelines](https://www.microsoft.com/en-us/legal/intellectualproperty/trademarks/usage/general). Use of Microsoft trademarks or logos in modified versions of this project must not cause confusion or imply Microsoft sponsorship. Any use of third-party trademarks or logos are subject to those third-party’s policies. | ||
## License | ||
[MIT](LICENSE) |
@@ -10,5 +10,5 @@ export declare const strShimFunction = "function"; | ||
export declare const ObjAssign: { | ||
<T, U>(target: T, source: U): T & U; | ||
<T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V; | ||
<T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W; | ||
<T extends {}, U>(target: T, source: U): T & U; | ||
<T_1 extends {}, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V; | ||
<T_2 extends {}, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W; | ||
(target: object, ...sources: any[]): any; | ||
@@ -15,0 +15,0 @@ }; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
Unidentified License
License(Experimental) Something that seems like a license was found, but its contents could not be matched with a known license.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
114056
26
1850
59
1
80