test
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
mol
2024-07-06 22:23:31 +08:00
parent 08173d8497
commit 263cb5ef03
1663 changed files with 526884 additions and 0 deletions

View File

@ -0,0 +1,21 @@
The MIT License (MIT)
Copyright (c) Microsoft Corporation
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

View File

@ -0,0 +1,17 @@
NOTICES AND INFORMATION
Do Not Translate or Localize
This software incorporates material from third parties. Microsoft makes certain
open source code available at https://3rdpartysource.microsoft.com, or you may
send a check or money order for US $5.00, including the product name, the open
source component name, and version number, to:
Source Code Compliance Team
Microsoft Corporation
One Microsoft Way
Redmond, WA 98052
USA
Notwithstanding any other terms, you may reverse engineer this software to the
extent required to debug changes to any libraries licensed under the GNU Lesser
General Public License.

View File

@ -0,0 +1,369 @@
/*!
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.ApplicationInsights = global.Microsoft.ApplicationInsights || {}, global.Microsoft.ApplicationInsights.Shims = {})));
})(this, (function (exports) { 'use strict';
var strShimFunction = "function";
var strShimObject = "object";
var strShimUndefined = "undefined";
var strShimPrototype = "prototype";
var strShimHasOwnProperty = "hasOwnProperty";
var strDefault = "default";
var ObjClass = Object;
var ObjProto = ObjClass[strShimPrototype];
var ObjAssign = ObjClass["assign"];
var ObjCreate = ObjClass["create"];
var ObjDefineProperty = ObjClass["defineProperty"];
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
var _cachedGlobal = null;
/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
function getGlobal(useCached) {
if (useCached === void 0) { useCached = true; }
var result = useCached === false ? null : _cachedGlobal;
if (!result) {
if (typeof globalThis !== strShimUndefined) {
result = globalThis;
}
if (!result && typeof self !== strShimUndefined) {
result = self;
}
if (!result && typeof window !== strShimUndefined) {
result = window;
}
if (!result && typeof global !== strShimUndefined) {
result = global;
}
_cachedGlobal = result;
}
return result;
}
function throwTypeError(message) {
throw new TypeError(message);
}
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
* Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations
* @param obj Object to use as a prototype. May be null
*/
function objCreateFn(obj) {
var func = ObjCreate;
// Use build in Object.create
if (func) {
// Use Object create method if it exists
return func(obj);
}
if (obj == null) {
return {};
}
var type = typeof obj;
if (type !== strShimObject && type !== strShimFunction) {
throwTypeError("Object prototype may only be an Object:" + obj);
}
function tmpFunc() { }
tmpFunc[strShimPrototype] = obj;
return new tmpFunc();
}
// Most of these functions have been directly shamelessly "lifted" from the https://github.com/@microsoft/tslib and
// modified to be ES3 compatible and applying several minification and tree-shaking techniques so that Application Insights
// can successfully use TypeScript "importHelpers" which imports tslib during compilation but it will use these at runtime
// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require
// them.
var SymbolObj = (getGlobal() || {})["Symbol"];
var ReflectObj = (getGlobal() || {})["Reflect"];
var __hasReflect = !!ReflectObj;
var strDecorate = "decorate";
var strMetadata = "metadata";
var strGetOwnPropertySymbols = "getOwnPropertySymbols";
var strIterator = "iterator";
var __objAssignFnImpl = function (t) {
// tslint:disable-next-line: ban-comma-operator
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (ObjProto[strShimHasOwnProperty].call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
var __assignFn = ObjAssign || __objAssignFnImpl;
// tslint:disable-next-line: only-arrow-functions
var extendStaticsFn = function (d, b) {
extendStaticsFn = ObjClass["setPrototypeOf"] ||
// tslint:disable-next-line: only-arrow-functions
({ __proto__: [] } instanceof Array && function (d, b) {
d.__proto__ = b;
}) ||
// tslint:disable-next-line: only-arrow-functions
function (d, b) {
for (var p in b) {
if (b[strShimHasOwnProperty](p)) {
d[p] = b[p];
}
}
};
return extendStaticsFn(d, b);
};
function __extendsFn(d, b) {
if (typeof b !== strShimFunction && b !== null) {
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
}
extendStaticsFn(d, b);
function __() {
this.constructor = d;
}
// tslint:disable-next-line: ban-comma-operator
d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
}
function __restFn(s, e) {
var t = {};
for (var k in s) {
if (ObjHasOwnProperty.call(s, k) && e.indexOf(k) < 0) {
t[k] = s[k];
}
}
if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {
for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && ObjProto["propertyIsEnumerable"].call(s, p[i])) {
t[p[i]] = s[p[i]];
}
}
}
return t;
}
function __decorateFn(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = ObjClass["getOwnPropertyDescriptor"](target, key) : desc, d;
if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {
r = ReflectObj[strDecorate](decorators, target, key, desc);
}
else {
for (var i = decorators.length - 1; i >= 0; i--) {
// eslint-disable-next-line no-cond-assign
if (d = decorators[i]) {
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
}
}
}
// tslint:disable-next-line:ban-comma-operator
return c > 3 && r && ObjDefineProperty(target, key, r), r;
}
function __paramFn(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
}
function __metadataFn(metadataKey, metadataValue) {
if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {
return ReflectObj[strMetadata](metadataKey, metadataValue);
}
}
function __exportStarFn(m, o) {
for (var p in m) {
if (p !== strDefault && !ObjHasOwnProperty.call(o, p)) {
__createBindingFn(o, m, p);
}
}
}
function __createBindingFn(o, m, k, k2) {
if (k2 === undefined) {
k2 = k;
}
if (!!ObjCreate) {
ObjDefineProperty(o, k2, {
enumerable: true,
get: function () {
return m[k];
}
});
}
else {
o[k2] = m[k];
}
}
function __valuesFn(o) {
var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator], m = s && o[s], i = 0;
if (m) {
return m.call(o);
}
if (o && typeof o.length === "number") {
return {
next: function () {
if (o && i >= o.length) {
o = void 0;
}
return { value: o && o[i++], done: !o };
}
};
}
throwTypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __readFn(o, n) {
var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];
if (!m) {
return o;
}
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
ar.push(r.value);
}
}
catch (error) {
e = {
error: error
};
}
finally {
try {
// tslint:disable-next-line:no-conditional-assignment
if (r && !r.done && (m = i["return"])) {
m.call(i);
}
}
finally {
if (e) {
// eslint-disable-next-line no-unsafe-finally
throw e.error;
}
}
}
return ar;
}
/** @deprecated */
function __spreadArraysFn() {
var theArgs = arguments;
// Calculate new total size
for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {
s += theArgs[i].length;
}
// Create new full array
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {
r[k] = a[j];
}
}
return r;
}
function __spreadArrayFn(to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {
to[j] = from[i];
}
return to;
}
function __makeTemplateObjectFn(cooked, raw) {
if (ObjDefineProperty) {
ObjDefineProperty(cooked, "raw", { value: raw });
}
else {
cooked.raw = raw;
}
return cooked;
}
function __importStarFn(mod) {
if (mod && mod.__esModule) {
return mod;
}
var result = {};
if (mod != null) {
for (var k in mod) {
if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {
__createBindingFn(result, mod, k);
}
}
}
// Set default module
if (!!ObjCreate) {
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod });
}
else {
result[strDefault] = mod;
}
return result;
}
function __importDefaultFn(mod) {
return (mod && mod.__esModule) ? mod : { strDefault: mod };
}
function __exposeGlobalTsLib() {
var globalObj = getGlobal() || {};
// tslint:disable: only-arrow-functions
(function (root, assignFn, extendsFn, createBindingFn) {
// Assign the globally scoped versions of the functions -- used when consuming individual ts files
// If check is to support NativeScript where these are marked as readonly
if (!root.__assign) {
root.__assign = ObjAssign || assignFn;
}
if (!root.__extends) {
root.__extends = extendsFn;
}
if (!root.__createBinding) {
root.__createBinding = createBindingFn;
}
})(globalObj, __assignFn, __extendsFn, __createBindingFn);
// Assign local variables that will be used for embedded scenarios, if check is to support NativeScript where these are marked as readonly
if (!__assign) {
__assign = globalObj.__assign;
}
if (!__extends) {
__extends = globalObj.__extends;
}
if (!__createBinding) {
__createBinding = globalObj.__createBinding;
}
}
exports.ObjAssign = ObjAssign;
exports.ObjClass = ObjClass;
exports.ObjCreate = ObjCreate;
exports.ObjDefineProperty = ObjDefineProperty;
exports.ObjHasOwnProperty = ObjHasOwnProperty;
exports.ObjProto = ObjProto;
exports.__assignFn = __assignFn;
exports.__createBindingFn = __createBindingFn;
exports.__decorateFn = __decorateFn;
exports.__exportStarFn = __exportStarFn;
exports.__exposeGlobalTsLib = __exposeGlobalTsLib;
exports.__extendsFn = __extendsFn;
exports.__importDefaultFn = __importDefaultFn;
exports.__importStarFn = __importStarFn;
exports.__makeTemplateObjectFn = __makeTemplateObjectFn;
exports.__metadataFn = __metadataFn;
exports.__paramFn = __paramFn;
exports.__readFn = __readFn;
exports.__restFn = __restFn;
exports.__spreadArrayFn = __spreadArrayFn;
exports.__spreadArraysFn = __spreadArraysFn;
exports.__valuesFn = __valuesFn;
exports.getGlobal = getGlobal;
exports.objCreateFn = objCreateFn;
exports.strDefault = strDefault;
exports.strShimFunction = strShimFunction;
exports.strShimHasOwnProperty = strShimHasOwnProperty;
exports.strShimObject = strShimObject;
exports.strShimPrototype = strShimPrototype;
exports.strShimUndefined = strShimUndefined;
exports.throwTypeError = throwTypeError;
(function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
}));

View File

@ -0,0 +1,5 @@
/*!
* 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 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={}));

View File

@ -0,0 +1,14 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export var strShimFunction = "function";
export var strShimObject = "object";
export var strShimUndefined = "undefined";
export var strShimPrototype = "prototype";
export var strShimHasOwnProperty = "hasOwnProperty";
export var strDefault = "default";
export var ObjClass = Object;
export var ObjProto = ObjClass[strShimPrototype];
export var ObjAssign = ObjClass["assign"];
export var ObjCreate = ObjClass["create"];
export var ObjDefineProperty = ObjClass["defineProperty"];
export var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];

View File

@ -0,0 +1,63 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { ObjCreate, strShimFunction, strShimObject, strShimPrototype, strShimUndefined } from "./Constants";
var _cachedGlobal = null;
/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
export function getGlobal(useCached) {
if (useCached === void 0) { useCached = true; }
var result = useCached === false ? null : _cachedGlobal;
if (!result) {
if (typeof globalThis !== strShimUndefined) {
result = globalThis;
}
if (!result && typeof self !== strShimUndefined) {
result = self;
}
if (!result && typeof window !== strShimUndefined) {
result = window;
}
if (!result && typeof global !== strShimUndefined) {
result = global;
}
_cachedGlobal = result;
}
return result;
}
export function throwTypeError(message) {
throw new TypeError(message);
}
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
* Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations
* @param obj Object to use as a prototype. May be null
*/
export function objCreateFn(obj) {
var func = ObjCreate;
// Use build in Object.create
if (func) {
// Use Object create method if it exists
return func(obj);
}
if (obj == null) {
return {};
}
var type = typeof obj;
if (type !== strShimObject && type !== strShimFunction) {
throwTypeError("Object prototype may only be an Object:" + obj);
}
function tmpFunc() { }
tmpFunc[strShimPrototype] = obj;
return new tmpFunc();
}

View File

@ -0,0 +1,32 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { ObjAssign } from "./Constants";
import { getGlobal } from "./Helpers";
import { __assignFn, __createBindingFn, __extendsFn } from "./TsLibShims";
export function __exposeGlobalTsLib() {
var globalObj = getGlobal() || {};
// tslint:disable: only-arrow-functions
(function (root, assignFn, extendsFn, createBindingFn) {
// Assign the globally scoped versions of the functions -- used when consuming individual ts files
// If check is to support NativeScript where these are marked as readonly
if (!root.__assign) {
root.__assign = ObjAssign || assignFn;
}
if (!root.__extends) {
root.__extends = extendsFn;
}
if (!root.__createBinding) {
root.__createBinding = createBindingFn;
}
})(globalObj, __assignFn, __extendsFn, __createBindingFn);
// Assign local variables that will be used for embedded scenarios, if check is to support NativeScript where these are marked as readonly
if (!__assign) {
__assign = globalObj.__assign;
}
if (!__extends) {
__extends = globalObj.__extends;
}
if (!__createBinding) {
__createBinding = globalObj.__createBinding;
}
}

View File

@ -0,0 +1,226 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
import { ObjAssign, ObjClass, ObjCreate, ObjDefineProperty, ObjHasOwnProperty, ObjProto, strDefault, strShimFunction, strShimHasOwnProperty, strShimPrototype } from "./Constants";
import { getGlobal, objCreateFn, throwTypeError } from "./Helpers";
// Most of these functions have been directly shamelessly "lifted" from the https://github.com/@microsoft/tslib and
// modified to be ES3 compatible and applying several minification and tree-shaking techniques so that Application Insights
// can successfully use TypeScript "importHelpers" which imports tslib during compilation but it will use these at runtime
// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require
// them.
export var SymbolObj = (getGlobal() || {})["Symbol"];
export var ReflectObj = (getGlobal() || {})["Reflect"];
export var __hasSymbol = !!SymbolObj;
export var __hasReflect = !!ReflectObj;
var strDecorate = "decorate";
var strMetadata = "metadata";
var strGetOwnPropertySymbols = "getOwnPropertySymbols";
var strIterator = "iterator";
export var __objAssignFnImpl = function (t) {
// tslint:disable-next-line: ban-comma-operator
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (ObjProto[strShimHasOwnProperty].call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
export var __assignFn = ObjAssign || __objAssignFnImpl;
// tslint:disable-next-line: only-arrow-functions
var extendStaticsFn = function (d, b) {
extendStaticsFn = ObjClass["setPrototypeOf"] ||
// tslint:disable-next-line: only-arrow-functions
({ __proto__: [] } instanceof Array && function (d, b) {
d.__proto__ = b;
}) ||
// tslint:disable-next-line: only-arrow-functions
function (d, b) {
for (var p in b) {
if (b[strShimHasOwnProperty](p)) {
d[p] = b[p];
}
}
};
return extendStaticsFn(d, b);
};
export function __extendsFn(d, b) {
if (typeof b !== strShimFunction && b !== null) {
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
}
extendStaticsFn(d, b);
function __() {
this.constructor = d;
}
// tslint:disable-next-line: ban-comma-operator
d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
}
export function __restFn(s, e) {
var t = {};
for (var k in s) {
if (ObjHasOwnProperty.call(s, k) && e.indexOf(k) < 0) {
t[k] = s[k];
}
}
if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {
for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && ObjProto["propertyIsEnumerable"].call(s, p[i])) {
t[p[i]] = s[p[i]];
}
}
}
return t;
}
export function __decorateFn(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = ObjClass["getOwnPropertyDescriptor"](target, key) : desc, d;
if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {
r = ReflectObj[strDecorate](decorators, target, key, desc);
}
else {
for (var i = decorators.length - 1; i >= 0; i--) {
// eslint-disable-next-line no-cond-assign
if (d = decorators[i]) {
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
}
}
}
// tslint:disable-next-line:ban-comma-operator
return c > 3 && r && ObjDefineProperty(target, key, r), r;
}
export function __paramFn(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
}
export function __metadataFn(metadataKey, metadataValue) {
if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {
return ReflectObj[strMetadata](metadataKey, metadataValue);
}
}
export function __exportStarFn(m, o) {
for (var p in m) {
if (p !== strDefault && !ObjHasOwnProperty.call(o, p)) {
__createBindingFn(o, m, p);
}
}
}
export function __createBindingFn(o, m, k, k2) {
if (k2 === undefined) {
k2 = k;
}
if (!!ObjCreate) {
ObjDefineProperty(o, k2, {
enumerable: true,
get: function () {
return m[k];
}
});
}
else {
o[k2] = m[k];
}
}
export function __valuesFn(o) {
var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator], m = s && o[s], i = 0;
if (m) {
return m.call(o);
}
if (o && typeof o.length === "number") {
return {
next: function () {
if (o && i >= o.length) {
o = void 0;
}
return { value: o && o[i++], done: !o };
}
};
}
throwTypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
export function __readFn(o, n) {
var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];
if (!m) {
return o;
}
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
ar.push(r.value);
}
}
catch (error) {
e = {
error: error
};
}
finally {
try {
// tslint:disable-next-line:no-conditional-assignment
if (r && !r.done && (m = i["return"])) {
m.call(i);
}
}
finally {
if (e) {
// eslint-disable-next-line no-unsafe-finally
throw e.error;
}
}
}
return ar;
}
/** @deprecated */
export function __spreadArraysFn() {
var theArgs = arguments;
// Calculate new total size
for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {
s += theArgs[i].length;
}
// Create new full array
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {
r[k] = a[j];
}
}
return r;
}
export function __spreadArrayFn(to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {
to[j] = from[i];
}
return to;
}
export function __makeTemplateObjectFn(cooked, raw) {
if (ObjDefineProperty) {
ObjDefineProperty(cooked, "raw", { value: raw });
}
else {
cooked.raw = raw;
}
return cooked;
}
export function __importStarFn(mod) {
if (mod && mod.__esModule) {
return mod;
}
var result = {};
if (mod != null) {
for (var k in mod) {
if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {
__createBindingFn(result, mod, k);
}
}
}
// Set default module
if (!!ObjCreate) {
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod });
}
else {
result[strDefault] = mod;
}
return result;
}
export function __importDefaultFn(mod) {
return (mod && mod.__esModule) ? mod : { strDefault: mod };
}

View File

@ -0,0 +1,6 @@
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
export { strShimFunction, strShimObject, strShimUndefined, strShimPrototype, strShimHasOwnProperty, strDefault, ObjClass, ObjProto, ObjAssign, ObjCreate, ObjDefineProperty, ObjHasOwnProperty } from "./Constants";
export { throwTypeError, objCreateFn, getGlobal } from "./Helpers";
export { __assignFn, __extendsFn, __restFn, __spreadArrayFn, __spreadArraysFn, __decorateFn, __paramFn, __metadataFn, __createBindingFn, __valuesFn, __readFn, __makeTemplateObjectFn, __importDefaultFn, __importStarFn, __exportStarFn } from "./TsLibShims";
export { __exposeGlobalTsLib } from "./TsLibGlobals";

View File

@ -0,0 +1,329 @@
/*!
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var strShimFunction = "function";
var strShimObject = "object";
var strShimUndefined = "undefined";
var strShimPrototype = "prototype";
var strShimHasOwnProperty = "hasOwnProperty";
var strDefault = "default";
var ObjClass = Object;
var ObjProto = ObjClass[strShimPrototype];
var ObjAssign = ObjClass["assign"];
var ObjCreate = ObjClass["create"];
var ObjDefineProperty = ObjClass["defineProperty"];
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
var _cachedGlobal = null;
/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
function getGlobal(useCached) {
if (useCached === void 0) { useCached = true; }
var result = useCached === false ? null : _cachedGlobal;
if (!result) {
if (typeof globalThis !== strShimUndefined) {
result = globalThis;
}
if (!result && typeof self !== strShimUndefined) {
result = self;
}
if (!result && typeof window !== strShimUndefined) {
result = window;
}
if (!result && typeof global !== strShimUndefined) {
result = global;
}
_cachedGlobal = result;
}
return result;
}
function throwTypeError(message) {
throw new TypeError(message);
}
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
* Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations
* @param obj Object to use as a prototype. May be null
*/
function objCreateFn(obj) {
var func = ObjCreate;
// Use build in Object.create
if (func) {
// Use Object create method if it exists
return func(obj);
}
if (obj == null) {
return {};
}
var type = typeof obj;
if (type !== strShimObject && type !== strShimFunction) {
throwTypeError("Object prototype may only be an Object:" + obj);
}
function tmpFunc() { }
tmpFunc[strShimPrototype] = obj;
return new tmpFunc();
}
// Most of these functions have been directly shamelessly "lifted" from the https://github.com/@microsoft/tslib and
// modified to be ES3 compatible and applying several minification and tree-shaking techniques so that Application Insights
// can successfully use TypeScript "importHelpers" which imports tslib during compilation but it will use these at runtime
// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require
// them.
var SymbolObj = (getGlobal() || {})["Symbol"];
var ReflectObj = (getGlobal() || {})["Reflect"];
var __hasReflect = !!ReflectObj;
var strDecorate = "decorate";
var strMetadata = "metadata";
var strGetOwnPropertySymbols = "getOwnPropertySymbols";
var strIterator = "iterator";
var __objAssignFnImpl = function (t) {
// tslint:disable-next-line: ban-comma-operator
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (ObjProto[strShimHasOwnProperty].call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
var __assignFn = ObjAssign || __objAssignFnImpl;
// tslint:disable-next-line: only-arrow-functions
var extendStaticsFn = function (d, b) {
extendStaticsFn = ObjClass["setPrototypeOf"] ||
// tslint:disable-next-line: only-arrow-functions
({ __proto__: [] } instanceof Array && function (d, b) {
d.__proto__ = b;
}) ||
// tslint:disable-next-line: only-arrow-functions
function (d, b) {
for (var p in b) {
if (b[strShimHasOwnProperty](p)) {
d[p] = b[p];
}
}
};
return extendStaticsFn(d, b);
};
function __extendsFn(d, b) {
if (typeof b !== strShimFunction && b !== null) {
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
}
extendStaticsFn(d, b);
function __() {
this.constructor = d;
}
// tslint:disable-next-line: ban-comma-operator
d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
}
function __restFn(s, e) {
var t = {};
for (var k in s) {
if (ObjHasOwnProperty.call(s, k) && e.indexOf(k) < 0) {
t[k] = s[k];
}
}
if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {
for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && ObjProto["propertyIsEnumerable"].call(s, p[i])) {
t[p[i]] = s[p[i]];
}
}
}
return t;
}
function __decorateFn(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = ObjClass["getOwnPropertyDescriptor"](target, key) : desc, d;
if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {
r = ReflectObj[strDecorate](decorators, target, key, desc);
}
else {
for (var i = decorators.length - 1; i >= 0; i--) {
// eslint-disable-next-line no-cond-assign
if (d = decorators[i]) {
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
}
}
}
// tslint:disable-next-line:ban-comma-operator
return c > 3 && r && ObjDefineProperty(target, key, r), r;
}
function __paramFn(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
}
function __metadataFn(metadataKey, metadataValue) {
if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {
return ReflectObj[strMetadata](metadataKey, metadataValue);
}
}
function __exportStarFn(m, o) {
for (var p in m) {
if (p !== strDefault && !ObjHasOwnProperty.call(o, p)) {
__createBindingFn(o, m, p);
}
}
}
function __createBindingFn(o, m, k, k2) {
if (k2 === undefined) {
k2 = k;
}
if (!!ObjCreate) {
ObjDefineProperty(o, k2, {
enumerable: true,
get: function () {
return m[k];
}
});
}
else {
o[k2] = m[k];
}
}
function __valuesFn(o) {
var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator], m = s && o[s], i = 0;
if (m) {
return m.call(o);
}
if (o && typeof o.length === "number") {
return {
next: function () {
if (o && i >= o.length) {
o = void 0;
}
return { value: o && o[i++], done: !o };
}
};
}
throwTypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __readFn(o, n) {
var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];
if (!m) {
return o;
}
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
ar.push(r.value);
}
}
catch (error) {
e = {
error: error
};
}
finally {
try {
// tslint:disable-next-line:no-conditional-assignment
if (r && !r.done && (m = i["return"])) {
m.call(i);
}
}
finally {
if (e) {
// eslint-disable-next-line no-unsafe-finally
throw e.error;
}
}
}
return ar;
}
/** @deprecated */
function __spreadArraysFn() {
var theArgs = arguments;
// Calculate new total size
for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {
s += theArgs[i].length;
}
// Create new full array
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {
r[k] = a[j];
}
}
return r;
}
function __spreadArrayFn(to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {
to[j] = from[i];
}
return to;
}
function __makeTemplateObjectFn(cooked, raw) {
if (ObjDefineProperty) {
ObjDefineProperty(cooked, "raw", { value: raw });
}
else {
cooked.raw = raw;
}
return cooked;
}
function __importStarFn(mod) {
if (mod && mod.__esModule) {
return mod;
}
var result = {};
if (mod != null) {
for (var k in mod) {
if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {
__createBindingFn(result, mod, k);
}
}
}
// Set default module
if (!!ObjCreate) {
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod });
}
else {
result[strDefault] = mod;
}
return result;
}
function __importDefaultFn(mod) {
return (mod && mod.__esModule) ? mod : { strDefault: mod };
}
function __exposeGlobalTsLib() {
var globalObj = getGlobal() || {};
// tslint:disable: only-arrow-functions
(function (root, assignFn, extendsFn, createBindingFn) {
// Assign the globally scoped versions of the functions -- used when consuming individual ts files
// If check is to support NativeScript where these are marked as readonly
if (!root.__assign) {
root.__assign = ObjAssign || assignFn;
}
if (!root.__extends) {
root.__extends = extendsFn;
}
if (!root.__createBinding) {
root.__createBinding = createBindingFn;
}
})(globalObj, __assignFn, __extendsFn, __createBindingFn);
// Assign local variables that will be used for embedded scenarios, if check is to support NativeScript where these are marked as readonly
if (!__assign) {
__assign = globalObj.__assign;
}
if (!__extends) {
__extends = globalObj.__extends;
}
if (!__createBinding) {
__createBinding = globalObj.__createBinding;
}
}
export { ObjAssign, ObjClass, ObjCreate, ObjDefineProperty, ObjHasOwnProperty, ObjProto, __assignFn, __createBindingFn, __decorateFn, __exportStarFn, __exposeGlobalTsLib, __extendsFn, __importDefaultFn, __importStarFn, __makeTemplateObjectFn, __metadataFn, __paramFn, __readFn, __restFn, __spreadArrayFn, __spreadArraysFn, __valuesFn, getGlobal, objCreateFn, strDefault, strShimFunction, strShimHasOwnProperty, strShimObject, strShimPrototype, strShimUndefined, throwTypeError };

View File

@ -0,0 +1,329 @@
/*!
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
var strShimFunction = "function";
var strShimObject = "object";
var strShimUndefined = "undefined";
var strShimPrototype = "prototype";
var strShimHasOwnProperty = "hasOwnProperty";
var strDefault = "default";
var ObjClass = Object;
var ObjProto = ObjClass[strShimPrototype];
var ObjAssign = ObjClass["assign"];
var ObjCreate = ObjClass["create"];
var ObjDefineProperty = ObjClass["defineProperty"];
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
var _cachedGlobal = null;
/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
function getGlobal(useCached) {
if (useCached === void 0) { useCached = true; }
var result = useCached === false ? null : _cachedGlobal;
if (!result) {
if (typeof globalThis !== strShimUndefined) {
result = globalThis;
}
if (!result && typeof self !== strShimUndefined) {
result = self;
}
if (!result && typeof window !== strShimUndefined) {
result = window;
}
if (!result && typeof global !== strShimUndefined) {
result = global;
}
_cachedGlobal = result;
}
return result;
}
function throwTypeError(message) {
throw new TypeError(message);
}
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
* Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations
* @param obj Object to use as a prototype. May be null
*/
function objCreateFn(obj) {
var func = ObjCreate;
// Use build in Object.create
if (func) {
// Use Object create method if it exists
return func(obj);
}
if (obj == null) {
return {};
}
var type = typeof obj;
if (type !== strShimObject && type !== strShimFunction) {
throwTypeError("Object prototype may only be an Object:" + obj);
}
function tmpFunc() { }
tmpFunc[strShimPrototype] = obj;
return new tmpFunc();
}
// Most of these functions have been directly shamelessly "lifted" from the https://github.com/@microsoft/tslib and
// modified to be ES3 compatible and applying several minification and tree-shaking techniques so that Application Insights
// can successfully use TypeScript "importHelpers" which imports tslib during compilation but it will use these at runtime
// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require
// them.
var SymbolObj = (getGlobal() || {})["Symbol"];
var ReflectObj = (getGlobal() || {})["Reflect"];
var __hasReflect = !!ReflectObj;
var strDecorate = "decorate";
var strMetadata = "metadata";
var strGetOwnPropertySymbols = "getOwnPropertySymbols";
var strIterator = "iterator";
var __objAssignFnImpl = function (t) {
// tslint:disable-next-line: ban-comma-operator
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (ObjProto[strShimHasOwnProperty].call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
var __assignFn = ObjAssign || __objAssignFnImpl;
// tslint:disable-next-line: only-arrow-functions
var extendStaticsFn = function (d, b) {
extendStaticsFn = ObjClass["setPrototypeOf"] ||
// tslint:disable-next-line: only-arrow-functions
({ __proto__: [] } instanceof Array && function (d, b) {
d.__proto__ = b;
}) ||
// tslint:disable-next-line: only-arrow-functions
function (d, b) {
for (var p in b) {
if (b[strShimHasOwnProperty](p)) {
d[p] = b[p];
}
}
};
return extendStaticsFn(d, b);
};
function __extendsFn(d, b) {
if (typeof b !== strShimFunction && b !== null) {
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
}
extendStaticsFn(d, b);
function __() {
this.constructor = d;
}
// tslint:disable-next-line: ban-comma-operator
d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
}
function __restFn(s, e) {
var t = {};
for (var k in s) {
if (ObjHasOwnProperty.call(s, k) && e.indexOf(k) < 0) {
t[k] = s[k];
}
}
if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {
for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && ObjProto["propertyIsEnumerable"].call(s, p[i])) {
t[p[i]] = s[p[i]];
}
}
}
return t;
}
function __decorateFn(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = ObjClass["getOwnPropertyDescriptor"](target, key) : desc, d;
if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {
r = ReflectObj[strDecorate](decorators, target, key, desc);
}
else {
for (var i = decorators.length - 1; i >= 0; i--) {
// eslint-disable-next-line no-cond-assign
if (d = decorators[i]) {
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
}
}
}
// tslint:disable-next-line:ban-comma-operator
return c > 3 && r && ObjDefineProperty(target, key, r), r;
}
function __paramFn(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
}
function __metadataFn(metadataKey, metadataValue) {
if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {
return ReflectObj[strMetadata](metadataKey, metadataValue);
}
}
function __exportStarFn(m, o) {
for (var p in m) {
if (p !== strDefault && !ObjHasOwnProperty.call(o, p)) {
__createBindingFn(o, m, p);
}
}
}
function __createBindingFn(o, m, k, k2) {
if (k2 === undefined) {
k2 = k;
}
if (!!ObjCreate) {
ObjDefineProperty(o, k2, {
enumerable: true,
get: function () {
return m[k];
}
});
}
else {
o[k2] = m[k];
}
}
function __valuesFn(o) {
var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator], m = s && o[s], i = 0;
if (m) {
return m.call(o);
}
if (o && typeof o.length === "number") {
return {
next: function () {
if (o && i >= o.length) {
o = void 0;
}
return { value: o && o[i++], done: !o };
}
};
}
throwTypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __readFn(o, n) {
var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];
if (!m) {
return o;
}
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
ar.push(r.value);
}
}
catch (error) {
e = {
error: error
};
}
finally {
try {
// tslint:disable-next-line:no-conditional-assignment
if (r && !r.done && (m = i["return"])) {
m.call(i);
}
}
finally {
if (e) {
// eslint-disable-next-line no-unsafe-finally
throw e.error;
}
}
}
return ar;
}
/** @deprecated */
function __spreadArraysFn() {
var theArgs = arguments;
// Calculate new total size
for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {
s += theArgs[i].length;
}
// Create new full array
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {
r[k] = a[j];
}
}
return r;
}
function __spreadArrayFn(to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {
to[j] = from[i];
}
return to;
}
function __makeTemplateObjectFn(cooked, raw) {
if (ObjDefineProperty) {
ObjDefineProperty(cooked, "raw", { value: raw });
}
else {
cooked.raw = raw;
}
return cooked;
}
function __importStarFn(mod) {
if (mod && mod.__esModule) {
return mod;
}
var result = {};
if (mod != null) {
for (var k in mod) {
if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {
__createBindingFn(result, mod, k);
}
}
}
// Set default module
if (!!ObjCreate) {
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod });
}
else {
result[strDefault] = mod;
}
return result;
}
function __importDefaultFn(mod) {
return (mod && mod.__esModule) ? mod : { strDefault: mod };
}
function __exposeGlobalTsLib() {
var globalObj = getGlobal() || {};
// tslint:disable: only-arrow-functions
(function (root, assignFn, extendsFn, createBindingFn) {
// Assign the globally scoped versions of the functions -- used when consuming individual ts files
// If check is to support NativeScript where these are marked as readonly
if (!root.__assign) {
root.__assign = ObjAssign || assignFn;
}
if (!root.__extends) {
root.__extends = extendsFn;
}
if (!root.__createBinding) {
root.__createBinding = createBindingFn;
}
})(globalObj, __assignFn, __extendsFn, __createBindingFn);
// Assign local variables that will be used for embedded scenarios, if check is to support NativeScript where these are marked as readonly
if (!__assign) {
__assign = globalObj.__assign;
}
if (!__extends) {
__extends = globalObj.__extends;
}
if (!__createBinding) {
__createBinding = globalObj.__createBinding;
}
}
export { ObjAssign, ObjClass, ObjCreate, ObjDefineProperty, ObjHasOwnProperty, ObjProto, __assignFn, __createBindingFn, __decorateFn, __exportStarFn, __exposeGlobalTsLib, __extendsFn, __importDefaultFn, __importStarFn, __makeTemplateObjectFn, __metadataFn, __paramFn, __readFn, __restFn, __spreadArrayFn, __spreadArraysFn, __valuesFn, getGlobal, objCreateFn, strDefault, strShimFunction, strShimHasOwnProperty, strShimObject, strShimPrototype, strShimUndefined, throwTypeError };

View File

@ -0,0 +1,369 @@
/*!
* Microsoft Application Insights JavaScript SDK - Shim functions, 2.0.2
* Copyright (c) Microsoft and contributors. All rights reserved.
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports) :
typeof define === 'function' && define.amd ? define(['exports'], factory) :
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory((global.Microsoft = global.Microsoft || {}, global.Microsoft.ApplicationInsights = global.Microsoft.ApplicationInsights || {}, global.Microsoft.ApplicationInsights.Shims = {})));
})(this, (function (exports) { 'use strict';
var strShimFunction = "function";
var strShimObject = "object";
var strShimUndefined = "undefined";
var strShimPrototype = "prototype";
var strShimHasOwnProperty = "hasOwnProperty";
var strDefault = "default";
var ObjClass = Object;
var ObjProto = ObjClass[strShimPrototype];
var ObjAssign = ObjClass["assign"];
var ObjCreate = ObjClass["create"];
var ObjDefineProperty = ObjClass["defineProperty"];
var ObjHasOwnProperty = ObjProto[strShimHasOwnProperty];
var _cachedGlobal = null;
/**
* Returns the current global scope object, for a normal web page this will be the current
* window, for a Web Worker this will be current worker global scope via "self". The internal
* implementation returns the first available instance object in the following order
* - globalThis (New standard)
* - self (Will return the current window instance for supported browsers)
* - window (fallback for older browser implementations)
* - global (NodeJS standard)
* - <null> (When all else fails)
* While the return type is a Window for the normal case, not all environments will support all
* of the properties or functions.
*/
function getGlobal(useCached) {
if (useCached === void 0) { useCached = true; }
var result = useCached === false ? null : _cachedGlobal;
if (!result) {
if (typeof globalThis !== strShimUndefined) {
result = globalThis;
}
if (!result && typeof self !== strShimUndefined) {
result = self;
}
if (!result && typeof window !== strShimUndefined) {
result = window;
}
if (!result && typeof global !== strShimUndefined) {
result = global;
}
_cachedGlobal = result;
}
return result;
}
function throwTypeError(message) {
throw new TypeError(message);
}
/**
* Creates an object that has the specified prototype, and that optionally contains specified properties. This helper exists to avoid adding a polyfil
* for older browsers that do not define Object.create eg. ES3 only, IE8 just in case any page checks for presence/absence of the prototype implementation.
* Note: For consistency this will not use the Object.create implementation if it exists as this would cause a testing requirement to test with and without the implementations
* @param obj Object to use as a prototype. May be null
*/
function objCreateFn(obj) {
var func = ObjCreate;
// Use build in Object.create
if (func) {
// Use Object create method if it exists
return func(obj);
}
if (obj == null) {
return {};
}
var type = typeof obj;
if (type !== strShimObject && type !== strShimFunction) {
throwTypeError("Object prototype may only be an Object:" + obj);
}
function tmpFunc() { }
tmpFunc[strShimPrototype] = obj;
return new tmpFunc();
}
// Most of these functions have been directly shamelessly "lifted" from the https://github.com/@microsoft/tslib and
// modified to be ES3 compatible and applying several minification and tree-shaking techniques so that Application Insights
// can successfully use TypeScript "importHelpers" which imports tslib during compilation but it will use these at runtime
// Which is also why all of the functions have not been included as Application Insights currently doesn't use or require
// them.
var SymbolObj = (getGlobal() || {})["Symbol"];
var ReflectObj = (getGlobal() || {})["Reflect"];
var __hasReflect = !!ReflectObj;
var strDecorate = "decorate";
var strMetadata = "metadata";
var strGetOwnPropertySymbols = "getOwnPropertySymbols";
var strIterator = "iterator";
var __objAssignFnImpl = function (t) {
// tslint:disable-next-line: ban-comma-operator
for (var s, i = 1, n = arguments.length; i < n; i++) {
s = arguments[i];
for (var p in s) {
if (ObjProto[strShimHasOwnProperty].call(s, p)) {
t[p] = s[p];
}
}
}
return t;
};
var __assignFn = ObjAssign || __objAssignFnImpl;
// tslint:disable-next-line: only-arrow-functions
var extendStaticsFn = function (d, b) {
extendStaticsFn = ObjClass["setPrototypeOf"] ||
// tslint:disable-next-line: only-arrow-functions
({ __proto__: [] } instanceof Array && function (d, b) {
d.__proto__ = b;
}) ||
// tslint:disable-next-line: only-arrow-functions
function (d, b) {
for (var p in b) {
if (b[strShimHasOwnProperty](p)) {
d[p] = b[p];
}
}
};
return extendStaticsFn(d, b);
};
function __extendsFn(d, b) {
if (typeof b !== strShimFunction && b !== null) {
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
}
extendStaticsFn(d, b);
function __() {
this.constructor = d;
}
// tslint:disable-next-line: ban-comma-operator
d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
}
function __restFn(s, e) {
var t = {};
for (var k in s) {
if (ObjHasOwnProperty.call(s, k) && e.indexOf(k) < 0) {
t[k] = s[k];
}
}
if (s != null && typeof ObjClass[strGetOwnPropertySymbols] === strShimFunction) {
for (var i = 0, p = ObjClass[strGetOwnPropertySymbols](s); i < p.length; i++) {
if (e.indexOf(p[i]) < 0 && ObjProto["propertyIsEnumerable"].call(s, p[i])) {
t[p[i]] = s[p[i]];
}
}
}
return t;
}
function __decorateFn(decorators, target, key, desc) {
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = ObjClass["getOwnPropertyDescriptor"](target, key) : desc, d;
if (__hasReflect && typeof ReflectObj[strDecorate] === strShimFunction) {
r = ReflectObj[strDecorate](decorators, target, key, desc);
}
else {
for (var i = decorators.length - 1; i >= 0; i--) {
// eslint-disable-next-line no-cond-assign
if (d = decorators[i]) {
r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
}
}
}
// tslint:disable-next-line:ban-comma-operator
return c > 3 && r && ObjDefineProperty(target, key, r), r;
}
function __paramFn(paramIndex, decorator) {
return function (target, key) {
decorator(target, key, paramIndex);
};
}
function __metadataFn(metadataKey, metadataValue) {
if (__hasReflect && ReflectObj[strMetadata] === strShimFunction) {
return ReflectObj[strMetadata](metadataKey, metadataValue);
}
}
function __exportStarFn(m, o) {
for (var p in m) {
if (p !== strDefault && !ObjHasOwnProperty.call(o, p)) {
__createBindingFn(o, m, p);
}
}
}
function __createBindingFn(o, m, k, k2) {
if (k2 === undefined) {
k2 = k;
}
if (!!ObjCreate) {
ObjDefineProperty(o, k2, {
enumerable: true,
get: function () {
return m[k];
}
});
}
else {
o[k2] = m[k];
}
}
function __valuesFn(o) {
var s = typeof SymbolObj === strShimFunction && SymbolObj[strIterator], m = s && o[s], i = 0;
if (m) {
return m.call(o);
}
if (o && typeof o.length === "number") {
return {
next: function () {
if (o && i >= o.length) {
o = void 0;
}
return { value: o && o[i++], done: !o };
}
};
}
throwTypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
}
function __readFn(o, n) {
var m = typeof SymbolObj === strShimFunction && o[SymbolObj[strIterator]];
if (!m) {
return o;
}
var i = m.call(o), r, ar = [], e;
try {
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) {
ar.push(r.value);
}
}
catch (error) {
e = {
error: error
};
}
finally {
try {
// tslint:disable-next-line:no-conditional-assignment
if (r && !r.done && (m = i["return"])) {
m.call(i);
}
}
finally {
if (e) {
// eslint-disable-next-line no-unsafe-finally
throw e.error;
}
}
}
return ar;
}
/** @deprecated */
function __spreadArraysFn() {
var theArgs = arguments;
// Calculate new total size
for (var s = 0, i = 0, il = theArgs.length; i < il; i++) {
s += theArgs[i].length;
}
// Create new full array
for (var r = Array(s), k = 0, i = 0; i < il; i++) {
for (var a = theArgs[i], j = 0, jl = a.length; j < jl; j++, k++) {
r[k] = a[j];
}
}
return r;
}
function __spreadArrayFn(to, from) {
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++) {
to[j] = from[i];
}
return to;
}
function __makeTemplateObjectFn(cooked, raw) {
if (ObjDefineProperty) {
ObjDefineProperty(cooked, "raw", { value: raw });
}
else {
cooked.raw = raw;
}
return cooked;
}
function __importStarFn(mod) {
if (mod && mod.__esModule) {
return mod;
}
var result = {};
if (mod != null) {
for (var k in mod) {
if (k !== strDefault && Object.prototype.hasOwnProperty.call(mod, k)) {
__createBindingFn(result, mod, k);
}
}
}
// Set default module
if (!!ObjCreate) {
ObjDefineProperty(result, strDefault, { enumerable: true, value: mod });
}
else {
result[strDefault] = mod;
}
return result;
}
function __importDefaultFn(mod) {
return (mod && mod.__esModule) ? mod : { strDefault: mod };
}
function __exposeGlobalTsLib() {
var globalObj = getGlobal() || {};
// tslint:disable: only-arrow-functions
(function (root, assignFn, extendsFn, createBindingFn) {
// Assign the globally scoped versions of the functions -- used when consuming individual ts files
// If check is to support NativeScript where these are marked as readonly
if (!root.__assign) {
root.__assign = ObjAssign || assignFn;
}
if (!root.__extends) {
root.__extends = extendsFn;
}
if (!root.__createBinding) {
root.__createBinding = createBindingFn;
}
})(globalObj, __assignFn, __extendsFn, __createBindingFn);
// Assign local variables that will be used for embedded scenarios, if check is to support NativeScript where these are marked as readonly
if (!__assign) {
__assign = globalObj.__assign;
}
if (!__extends) {
__extends = globalObj.__extends;
}
if (!__createBinding) {
__createBinding = globalObj.__createBinding;
}
}
exports.ObjAssign = ObjAssign;
exports.ObjClass = ObjClass;
exports.ObjCreate = ObjCreate;
exports.ObjDefineProperty = ObjDefineProperty;
exports.ObjHasOwnProperty = ObjHasOwnProperty;
exports.ObjProto = ObjProto;
exports.__assignFn = __assignFn;
exports.__createBindingFn = __createBindingFn;
exports.__decorateFn = __decorateFn;
exports.__exportStarFn = __exportStarFn;
exports.__exposeGlobalTsLib = __exposeGlobalTsLib;
exports.__extendsFn = __extendsFn;
exports.__importDefaultFn = __importDefaultFn;
exports.__importStarFn = __importStarFn;
exports.__makeTemplateObjectFn = __makeTemplateObjectFn;
exports.__metadataFn = __metadataFn;
exports.__paramFn = __paramFn;
exports.__readFn = __readFn;
exports.__restFn = __restFn;
exports.__spreadArrayFn = __spreadArrayFn;
exports.__spreadArraysFn = __spreadArraysFn;
exports.__valuesFn = __valuesFn;
exports.getGlobal = getGlobal;
exports.objCreateFn = objCreateFn;
exports.strDefault = strDefault;
exports.strShimFunction = strShimFunction;
exports.strShimHasOwnProperty = strShimHasOwnProperty;
exports.strShimObject = strShimObject;
exports.strShimPrototype = strShimPrototype;
exports.strShimUndefined = strShimUndefined;
exports.throwTypeError = throwTypeError;
(function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
}));

View File

@ -0,0 +1,5 @@
/*!
* 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 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={}));

View File

@ -0,0 +1,54 @@
{
"name": "@microsoft/applicationinsights-shims",
"author": "Microsoft Application Insights Team",
"version": "2.0.2",
"description": "Microsoft Application Insights JavaScript SDK - Shim functions",
"homepage": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/tools/shims",
"keywords": [
"azure",
"cloud",
"microsoft",
"application insights",
"tslib",
"es3"
],
"main": "dist/umd/applicationinsights-shims.js",
"module": "dist-esm/applicationinsights-shims.js",
"types": "types/applicationinsights-shims.d.ts",
"scripts": {
"clean": "grunt clean",
"build": "npm run build:esm && npm run build:bundle",
"build:esm": "grunt shims",
"build:bundle": "rollup -c rollup.config.js",
"rebuild": "npm run build",
"test": "grunt shimstest",
"lint": "tslint -p tsconfig.json"
},
"repository": {
"type": "git",
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/tools/shims"
},
"license": "MIT",
"sideEffects": [
"**/TsLibGlobals.js",
"**/TsLibGlobals.ts"
],
"devDependencies": {
"@microsoft/ai-test-framework": "0.0.1",
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
"@microsoft/applicationinsights-rollup-es3" : "1.1.3",
"grunt": "^1.5.3",
"grunt-cli": "^1.4.3",
"grunt-contrib-qunit": "^5.0.1",
"@nevware21/grunt-ts-plugin": "^0.4.3",
"@nevware21/grunt-eslint-ts": "^0.2.2",
"@rollup/plugin-commonjs": "^18.0.0",
"@rollup/plugin-node-resolve": "^11.2.1",
"@rollup/plugin-replace": "^2.3.3",
"rollup-plugin-minify-es": "^1.1.1",
"rollup": "^2.32.0",
"typescript": "^4.3.4"
},
"dependencies": {
}
}

View File

@ -0,0 +1,24 @@
{
"compilerOptions": {
"sourceMap": true,
"inlineSources": true,
"noImplicitAny": true,
"module": "es6",
"moduleResolution": "node",
"target": "es3",
"forceConsistentCasingInFileNames": true,
"importHelpers": false,
"noEmitHelpers": true,
"alwaysStrict": true,
"declaration": true,
"declarationDir": "tools/shims/types",
"outDir": "./dist-esm",
"rootDir": "tools/shims/src",
"suppressImplicitAnyIndexErrors": true,
"allowSyntheticDefaultImports": true
},
"include": [
"./src/**/*.ts"
],
"exclude": ["./node_modules/**"]
}