2019-02-11 12:07:22 +03:00
|
|
|
{"version":3,"file":"aisdklight.js","sources":["../bundle/index.js"],"sourcesContent":["(function (factory) {\r\n if (typeof module === \"object\" && typeof module.exports === \"object\") {\r\n var v = factory(require, exports);\r\n if (v !== undefined) module.exports = v;\r\n }\r\n else if (typeof define === \"function\" && define.amd) {\r\n define([\"require\", \"exports\", \"applicationinsights-core-js\", \"applicationinsights-channel-js\"], factory);\r\n }\r\n})(function (require, exports) {\r\n \"use strict\";\r\n Object.defineProperty(exports, \"__esModule\", { value: true });\r\n var applicationinsights_core_js_1 = require(\"applicationinsights-core-js\");\r\n var applicationinsights_channel_js_1 = require(\"applicationinsights-channel-js\");\r\n \"use strict\";\r\n var ApplicationInsights = /** @class */ (function () {\r\n function ApplicationInsights(config) {\r\n // initialize the queue and config in case they are undefined\r\n if (applicationinsights_core_js_1.CoreUtils.isNullOrUndefined(config) || applicationinsights_core_js_1.CoreUtils.isNullOrUndefined(config.instrumentationKey)) {\r\n throw new Error(\"Invalid input configuration\");\r\n }\r\n this.initialize();\r\n }\r\n ApplicationInsights.prototype.initialize = function () {\r\n this.core = new applicationinsights_core_js_1.AppInsightsCore();\r\n var extensions = [];\r\n var appInsightsChannel = new applicationinsights_channel_js_1.Sender();\r\n extensions.push(appInsightsChannel);\r\n // initialize core\r\n this.core.initialize(this.config, extensions);\r\n // initialize extensions\r\n appInsightsChannel.initialize(this.config, this.core, extensions);\r\n };\r\n ApplicationInsights.prototype.track = function (item) {\r\n this.core.track(item);\r\n };\r\n return ApplicationInsights;\r\n }());\r\n exports.ApplicationInsights = ApplicationInsights;\r\n});\r\n//# sourceMappingURL=index.js.map"],"names":[],"mappings":";;;;;;IAAA,CAAC,UAAU,OAAO,EAAE;IACpB,IAAI,IAAI,OAAO,MAAM,KAAK,QAAQ,IAAI,OAAO,MAAM,CAAC,OAAO,KAAK,QAAQ,EAAE;IAC1E,QAAQ,IAAI,CAAC,GAAG,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,C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