@microsoft/applicationinsights-angularplugin-js 2.6.1 → 2.7.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/README.md +43 -2
  2. package/{dist/applicationinsights-angularplugin-js/bundles → bundles}/microsoft-applicationinsights-angularplugin-js.umd.js +90 -44
  3. package/bundles/microsoft-applicationinsights-angularplugin-js.umd.js.map +1 -0
  4. package/bundles/microsoft-applicationinsights-angularplugin-js.umd.min.js +16 -0
  5. package/bundles/microsoft-applicationinsights-angularplugin-js.umd.min.js.map +1 -0
  6. package/esm2015/lib/IErrorService.js +2 -0
  7. package/esm2015/lib/applicationinsights-angularplugin-error.service.js +38 -0
  8. package/esm2015/lib/applicationinsights-angularplugin-js.component.js +87 -0
  9. package/{dist/applicationinsights-angularplugin-js/esm2015 → esm2015}/lib/applicationinsights-angularplugin-js.module.js +0 -0
  10. package/{dist/applicationinsights-angularplugin-js/esm2015 → esm2015}/microsoft-applicationinsights-angularplugin-js.js +0 -0
  11. package/{dist/applicationinsights-angularplugin-js/esm2015 → esm2015}/public-api.js +2 -1
  12. package/{dist/applicationinsights-angularplugin-js/fesm2015 → fesm2015}/microsoft-applicationinsights-angularplugin-js.js +45 -25
  13. package/fesm2015/microsoft-applicationinsights-angularplugin-js.js.map +1 -0
  14. package/lib/IErrorService.d.ts +4 -0
  15. package/{dist/applicationinsights-angularplugin-js/lib → lib}/applicationinsights-angularplugin-error.service.d.ts +4 -2
  16. package/{dist/applicationinsights-angularplugin-js/lib → lib}/applicationinsights-angularplugin-js.component.d.ts +0 -0
  17. package/{dist/applicationinsights-angularplugin-js/lib → lib}/applicationinsights-angularplugin-js.module.d.ts +0 -0
  18. package/microsoft-applicationinsights-angularplugin-js-2.7.0.tgz +0 -0
  19. package/{dist/applicationinsights-angularplugin-js/microsoft-applicationinsights-angularplugin-js.d.ts → microsoft-applicationinsights-angularplugin-js.d.ts} +0 -0
  20. package/{dist/applicationinsights-angularplugin-js/microsoft-applicationinsights-angularplugin-js.metadata.json → microsoft-applicationinsights-angularplugin-js.metadata.json} +1 -1
  21. package/package.json +24 -61
  22. package/{dist/applicationinsights-angularplugin-js/public-api.d.ts → public-api.d.ts} +1 -0
  23. package/LICENSE +0 -21
  24. package/dist/applicationinsights-angularplugin-js/README.md +0 -24
  25. package/dist/applicationinsights-angularplugin-js/bundles/microsoft-applicationinsights-angularplugin-js.umd.js.map +0 -1
  26. package/dist/applicationinsights-angularplugin-js/bundles/microsoft-applicationinsights-angularplugin-js.umd.min.js +0 -16
  27. package/dist/applicationinsights-angularplugin-js/bundles/microsoft-applicationinsights-angularplugin-js.umd.min.js.map +0 -1
  28. package/dist/applicationinsights-angularplugin-js/esm2015/lib/applicationinsights-angularplugin-error.service.js +0 -26
  29. package/dist/applicationinsights-angularplugin-js/esm2015/lib/applicationinsights-angularplugin-js.component.js +0 -79
  30. package/dist/applicationinsights-angularplugin-js/fesm2015/microsoft-applicationinsights-angularplugin-js.js.map +0 -1
  31. package/dist/applicationinsights-angularplugin-js/microsoft-applicationinsights-angularplugin-js-2.6.1.tgz +0 -0
  32. package/dist/applicationinsights-angularplugin-js/package.json +0 -24
  33. package/tsconfig.json +0 -24
@@ -4,4 +4,5 @@
4
4
  export * from './lib/applicationinsights-angularplugin-js.component';
5
5
  export * from './lib/applicationinsights-angularplugin-js.module';
6
6
  export * from './lib/applicationinsights-angularplugin-error.service';
7
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2FwcGxpY2F0aW9uaW5zaWdodHMtYW5ndWxhcnBsdWdpbi1qcy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsc0RBQXNELENBQUM7QUFDckUsY0FBYyxtREFBbUQsQ0FBQztBQUNsRSxjQUFjLHVEQUF1RCxDQUFDIiwic291cmNlc0NvbnRlbnQiOlsiLypcclxuICogUHVibGljIEFQSSBTdXJmYWNlIG9mIGFwcGxpY2F0aW9uaW5zaWdodHMtYW5ndWxhcnBsdWdpbi1qc1xyXG4gKi9cclxuXHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FwcGxpY2F0aW9uaW5zaWdodHMtYW5ndWxhcnBsdWdpbi1qcy5jb21wb25lbnQnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9hcHBsaWNhdGlvbmluc2lnaHRzLWFuZ3VsYXJwbHVnaW4tanMubW9kdWxlJztcclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYXBwbGljYXRpb25pbnNpZ2h0cy1hbmd1bGFycGx1Z2luLWVycm9yLnNlcnZpY2UnO1xyXG4iXX0=
7
+ export * from './lib/IErrorService';
8
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljLWFwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uL3Byb2plY3RzL2FwcGxpY2F0aW9uaW5zaWdodHMtYW5ndWxhcnBsdWdpbi1qcy9zcmMvcHVibGljLWFwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQTs7R0FFRztBQUVILGNBQWMsc0RBQXNELENBQUM7QUFDckUsY0FBYyxtREFBbUQsQ0FBQztBQUNsRSxjQUFjLHVEQUF1RCxDQUFDO0FBQ3RFLGNBQWMscUJBQXFCLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyIvKlxyXG4gKiBQdWJsaWMgQVBJIFN1cmZhY2Ugb2YgYXBwbGljYXRpb25pbnNpZ2h0cy1hbmd1bGFycGx1Z2luLWpzXHJcbiAqL1xyXG5cclxuZXhwb3J0ICogZnJvbSAnLi9saWIvYXBwbGljYXRpb25pbnNpZ2h0cy1hbmd1bGFycGx1Z2luLWpzLmNvbXBvbmVudCc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL2FwcGxpY2F0aW9uaW5zaWdodHMtYW5ndWxhcnBsdWdpbi1qcy5tb2R1bGUnO1xyXG5leHBvcnQgKiBmcm9tICcuL2xpYi9hcHBsaWNhdGlvbmluc2lnaHRzLWFuZ3VsYXJwbHVnaW4tZXJyb3Iuc2VydmljZSc7XHJcbmV4cG9ydCAqIGZyb20gJy4vbGliL0lFcnJvclNlcnZpY2UnO1xyXG4iXX0=
@@ -1,9 +1,12 @@
1
- import { ɵɵdefineInjectable, Injectable, Component, NgModule } from '@angular/core';
1
+ import * as i0 from '@angular/core';
2
+ import { Injectable, Component, NgModule } from '@angular/core';
2
3
  import { PropertiesPluginIdentifier, Util } from '@microsoft/applicationinsights-common';
3
- import { BaseTelemetryPlugin, CoreUtils, getLocation, LoggingSeverity, _InternalMessageId } from '@microsoft/applicationinsights-core-js';
4
+ import { arrForEach, BaseTelemetryPlugin, getLocation, LoggingSeverity, _InternalMessageId } from '@microsoft/applicationinsights-core-js';
5
+ import { NavigationEnd } from '@angular/router';
4
6
 
5
7
  class ApplicationinsightsAngularpluginErrorService {
6
8
  constructor() {
9
+ this.errorServices = [];
7
10
  if (ApplicationinsightsAngularpluginErrorService.instance === null) {
8
11
  ApplicationinsightsAngularpluginErrorService.instance = this;
9
12
  }
@@ -11,14 +14,24 @@ class ApplicationinsightsAngularpluginErrorService {
11
14
  set plugin(analyticsPlugin) {
12
15
  this.analyticsPlugin = analyticsPlugin;
13
16
  }
17
+ addErrorHandler(errorService) {
18
+ this.errorServices.push(errorService);
19
+ }
14
20
  handleError(error) {
15
21
  if (this.analyticsPlugin) {
16
22
  this.analyticsPlugin.trackException({ exception: error });
17
23
  }
24
+ if (this.errorServices && this.errorServices.length > 0) {
25
+ arrForEach(this.errorServices, errorService => {
26
+ if (errorService.handleError && typeof errorService.handleError === 'function') {
27
+ errorService.handleError(error);
28
+ }
29
+ });
30
+ }
18
31
  }
19
32
  }
20
33
  ApplicationinsightsAngularpluginErrorService.instance = null;
21
- ApplicationinsightsAngularpluginErrorService.ɵprov = ɵɵdefineInjectable({ factory: function ApplicationinsightsAngularpluginErrorService_Factory() { return new ApplicationinsightsAngularpluginErrorService(); }, token: ApplicationinsightsAngularpluginErrorService, providedIn: "root" });
34
+ ApplicationinsightsAngularpluginErrorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ApplicationinsightsAngularpluginErrorService_Factory() { return new ApplicationinsightsAngularpluginErrorService(); }, token: ApplicationinsightsAngularpluginErrorService, providedIn: "root" });
22
35
  ApplicationinsightsAngularpluginErrorService.decorators = [
23
36
  { type: Injectable, args: [{
24
37
  providedIn: 'root'
@@ -26,7 +39,6 @@ ApplicationinsightsAngularpluginErrorService.decorators = [
26
39
  ];
27
40
  ApplicationinsightsAngularpluginErrorService.ctorParameters = () => [];
28
41
 
29
- const NAVIGATIONEND = 'NavigationEnd';
30
42
  // tslint:disable-next-line:component-class-suffix
31
43
  class AngularPlugin extends BaseTelemetryPlugin {
32
44
  constructor() {
@@ -36,37 +48,44 @@ class AngularPlugin extends BaseTelemetryPlugin {
36
48
  }
37
49
  initialize(config, core, extensions, pluginChain) {
38
50
  super.initialize(config, core, extensions, pluginChain);
39
- const ctx = this._getTelCtx();
40
- const extConfig = ctx.getExtCfg(this.identifier, { router: null });
41
- CoreUtils.arrForEach(extensions, ext => {
51
+ const self = this;
52
+ const ctx = self._getTelCtx();
53
+ const extConfig = ctx.getExtCfg(self.identifier, { router: null, errorServices: null });
54
+ arrForEach(extensions, ext => {
42
55
  const identifier = ext.identifier;
43
56
  if (identifier === 'ApplicationInsightsAnalytics') {
44
- this.analyticsPlugin = ext;
57
+ self.analyticsPlugin = ext;
45
58
  if (ApplicationinsightsAngularpluginErrorService.instance !== null) {
46
- ApplicationinsightsAngularpluginErrorService.instance.plugin = this.analyticsPlugin;
59
+ ApplicationinsightsAngularpluginErrorService.instance.plugin = self.analyticsPlugin;
60
+ if (extConfig.errorServices && Array.isArray(extConfig.errorServices)) {
61
+ arrForEach(extConfig.errorServices, (errorService) => {
62
+ ApplicationinsightsAngularpluginErrorService.instance.addErrorHandler(errorService);
63
+ });
64
+ }
47
65
  }
48
66
  }
49
67
  if (identifier === PropertiesPluginIdentifier) {
50
- this.propertiesPlugin = ext;
68
+ self.propertiesPlugin = ext;
51
69
  }
52
70
  });
53
71
  if (extConfig.router) {
54
72
  let isPageInitialLoad = true;
55
- if (isPageInitialLoad) {
56
- const pageViewTelemetry = {
57
- uri: extConfig.router.url
58
- };
59
- this.trackPageView(pageViewTelemetry);
60
- }
73
+ const pageViewTelemetry = {
74
+ uri: extConfig.router.url
75
+ };
76
+ self.trackPageView(pageViewTelemetry);
61
77
  extConfig.router.events.subscribe(event => {
62
- if (event.constructor.name === NAVIGATIONEND) {
78
+ if (event instanceof NavigationEnd) {
63
79
  // for page initial load, do not call trackPageView twice
64
80
  if (isPageInitialLoad) {
65
81
  isPageInitialLoad = false;
66
82
  return;
67
83
  }
68
- const pageViewTelemetry = { uri: extConfig.router.url };
69
- this.trackPageView(pageViewTelemetry);
84
+ const pageViewTelemetry = {
85
+ uri: extConfig.router.url,
86
+ properties: { duration: 0 } // SPA route change loading durations are undefined, so send 0
87
+ };
88
+ self.trackPageView(pageViewTelemetry);
70
89
  }
71
90
  });
72
91
  }
@@ -79,16 +98,17 @@ class AngularPlugin extends BaseTelemetryPlugin {
79
98
  this.processNext(event, itemCtx);
80
99
  }
81
100
  trackPageView(pageView) {
82
- if (this.analyticsPlugin) {
101
+ const self = this;
102
+ if (self.analyticsPlugin) {
83
103
  const location = getLocation();
84
- if (this.propertiesPlugin && this.propertiesPlugin.context && this.propertiesPlugin.context.telemetryTrace) {
85
- this.propertiesPlugin.context.telemetryTrace.traceID = Util.generateW3CId();
86
- this.propertiesPlugin.context.telemetryTrace.name = location && location.pathname || '_unknown_';
104
+ if (self.propertiesPlugin && self.propertiesPlugin.context && self.propertiesPlugin.context.telemetryTrace) {
105
+ self.propertiesPlugin.context.telemetryTrace.traceID = Util.generateW3CId();
106
+ self.propertiesPlugin.context.telemetryTrace.name = location && location.pathname || '_unknown_';
87
107
  }
88
- this.analyticsPlugin.trackPageView(pageView);
108
+ self.analyticsPlugin.trackPageView(pageView);
89
109
  }
90
110
  else {
91
- this.diagLog().throwInternal(
111
+ self.diagLog().throwInternal(
92
112
  // tslint:disable-next-line:max-line-length
93
113
  LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, 'Analytics plugin is not available, Angular plugin telemetry will not be sent: ');
94
114
  }
@@ -0,0 +1 @@
1
+ {"version":3,"file":"microsoft-applicationinsights-angularplugin-js.js","sources":["../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-error.service.ts","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-js.component.ts","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-js.module.ts","../../../projects/applicationinsights-angularplugin-js/src/public-api.ts","../../../projects/applicationinsights-angularplugin-js/src/microsoft-applicationinsights-angularplugin-js.ts"],"sourcesContent":["import { Injectable } from '@angular/core';\r\nimport { IAppInsights } from '@microsoft/applicationinsights-common';\r\nimport { arrForEach } from '@microsoft/applicationinsights-core-js';\r\nimport { IErrorService } from './IErrorService';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ApplicationinsightsAngularpluginErrorService implements IErrorService {\r\n public static instance: ApplicationinsightsAngularpluginErrorService = null;\r\n private analyticsPlugin: IAppInsights;\r\n private errorServices: IErrorService[] = [];\r\n\r\n public set plugin(analyticsPlugin: IAppInsights) {\r\n this.analyticsPlugin = analyticsPlugin;\r\n }\r\n\r\n public addErrorHandler(errorService: IErrorService): void {\r\n this.errorServices.push(errorService);\r\n }\r\n\r\n constructor() {\r\n if (ApplicationinsightsAngularpluginErrorService.instance === null) {\r\n ApplicationinsightsAngularpluginErrorService.instance = this;\r\n }\r\n }\r\n\r\n handleError(error: any): void {\r\n if (this.analyticsPlugin) {\r\n this.analyticsPlugin.trackException({ exception: error });\r\n }\r\n\r\n if (this.errorServices && this.errorServices.length > 0) {\r\n arrForEach(this.errorServices, errorService => {\r\n if (errorService.handleError && typeof errorService.handleError === 'function') {\r\n errorService.handleError(error);\r\n }\r\n });\r\n }\r\n }\r\n}\r\n\r\n","import { Component } from '@angular/core';\r\nimport {\r\n IConfig, IPageViewTelemetry, IAppInsights, PropertiesPluginIdentifier, Util\r\n} from '@microsoft/applicationinsights-common';\r\nimport {\r\n IPlugin, IConfiguration, IAppInsightsCore,\r\n ITelemetryPlugin, BaseTelemetryPlugin, arrForEach, ITelemetryItem, ITelemetryPluginChain,\r\n IProcessTelemetryContext, _InternalMessageId, LoggingSeverity, getLocation\r\n} from '@microsoft/applicationinsights-core-js';\r\nimport { NavigationEnd, Router } from '@angular/router';\r\n// For types only\r\nimport * as properties from '@microsoft/applicationinsights-properties-js';\r\nimport { ApplicationinsightsAngularpluginErrorService } from './applicationinsights-angularplugin-error.service';\r\nimport { IErrorService } from './IErrorService';\r\n\r\ninterface IAngularExtensionConfig {\r\n /**\r\n * Angular router for enabling Application Insights PageView tracking.\r\n */\r\n router?: Router;\r\n\r\n /**\r\n * Custom error service for global error handling.\r\n */\r\n errorServices?: IErrorService[];\r\n}\r\n\r\n@Component({\r\n selector: 'lib-applicationinsights-angularplugin-js',\r\n template: ``,\r\n styles: []\r\n})\r\n// tslint:disable-next-line:component-class-suffix\r\nexport class AngularPlugin extends BaseTelemetryPlugin {\r\n public priority = 186;\r\n public identifier = 'AngularPlugin';\r\n\r\n private analyticsPlugin: IAppInsights;\r\n private propertiesPlugin: properties.PropertiesPlugin;\r\n\r\n initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) {\r\n super.initialize(config, core, extensions, pluginChain);\r\n const self = this;\r\n const ctx = self._getTelCtx();\r\n const extConfig = ctx.getExtCfg<IAngularExtensionConfig>(self.identifier, { router: null, errorServices: null });\r\n arrForEach(extensions, ext => {\r\n const identifier = (ext as ITelemetryPlugin).identifier;\r\n if (identifier === 'ApplicationInsightsAnalytics') {\r\n self.analyticsPlugin = (ext as any) as IAppInsights;\r\n if (ApplicationinsightsAngularpluginErrorService.instance !== null) {\r\n ApplicationinsightsAngularpluginErrorService.instance.plugin = self.analyticsPlugin;\r\n if (extConfig.errorServices && Array.isArray(extConfig.errorServices)) {\r\n arrForEach(extConfig.errorServices, (errorService: IErrorService) => {\r\n ApplicationinsightsAngularpluginErrorService.instance.addErrorHandler(errorService);\r\n });\r\n }\r\n }\r\n }\r\n if (identifier === PropertiesPluginIdentifier) {\r\n self.propertiesPlugin = (ext as any) as properties.PropertiesPlugin;\r\n }\r\n });\r\n\r\n if (extConfig.router) {\r\n let isPageInitialLoad = true;\r\n const pageViewTelemetry: IPageViewTelemetry = {\r\n uri: extConfig.router.url\r\n };\r\n self.trackPageView(pageViewTelemetry);\r\n extConfig.router.events.subscribe(event => {\r\n if (event instanceof NavigationEnd) {\r\n // for page initial load, do not call trackPageView twice\r\n if (isPageInitialLoad) {\r\n isPageInitialLoad = false;\r\n return;\r\n }\r\n const pageViewTelemetry: IPageViewTelemetry = {\r\n uri: extConfig.router.url,\r\n properties: { duration: 0 } // SPA route change loading durations are undefined, so send 0\r\n };\r\n self.trackPageView(pageViewTelemetry);\r\n }\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Add Part A fields to the event\r\n * @param event The event that needs to be processed\r\n */\r\n processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext) {\r\n this.processNext(event, itemCtx);\r\n }\r\n\r\n trackPageView(pageView: IPageViewTelemetry) {\r\n const self = this;\r\n\r\n if (self.analyticsPlugin) {\r\n const location = getLocation();\r\n if (self.propertiesPlugin && self.propertiesPlugin.context && self.propertiesPlugin.context.telemetryTrace) {\r\n self.propertiesPlugin.context.telemetryTrace.traceID = Util.generateW3CId();\r\n self.propertiesPlugin.context.telemetryTrace.name = location && location.pathname || '_unknown_';\r\n }\r\n self.analyticsPlugin.trackPageView(pageView);\r\n } else {\r\n self.diagLog().throwInternal(\r\n // tslint:disable-next-line:max-line-length\r\n LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, 'Analytics plugin is not available, Angular plugin telemetry will not be sent: ');\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { AngularPlugin } from './applicationinsights-angularplugin-js.component';\r\nimport { ApplicationinsightsAngularpluginErrorService } from './applicationinsights-angularplugin-error.service';\r\n\r\n@NgModule({\r\n declarations: [AngularPlugin],\r\n imports: [\r\n ],\r\n exports: [AngularPlugin],\r\n providers: [\r\n ApplicationinsightsAngularpluginErrorService\r\n ]\r\n})\r\nexport class ApplicationinsightsAngularpluginJsModule { }\r\n","/*\r\n * Public API Surface of applicationinsights-angularplugin-js\r\n */\r\n\r\nexport * from './lib/applicationinsights-angularplugin-js.component';\r\nexport * from './lib/applicationinsights-angularplugin-js.module';\r\nexport * from './lib/applicationinsights-angularplugin-error.service';\r\nexport * from './lib/IErrorService';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;MAQa,4CAA4C;IAavD;QAVQ,kBAAa,GAAoB,EAAE,CAAC;QAW1C,IAAI,4CAA4C,CAAC,QAAQ,KAAK,IAAI,EAAE;YAClE,4CAA4C,CAAC,QAAQ,GAAG,IAAI,CAAC;SAC9D;KACF;IAZD,IAAW,MAAM,CAAC,eAA6B;QAC7C,IAAI,CAAC,eAAe,GAAG,eAAe,CAAC;KACxC;IAEM,eAAe,CAAC,YAA2B;QAChD,IAAI,CAAC,aAAa,CAAC,IAAI,CAAC,YAAY,CAAC,CAAC;KACvC;IAQD,WAAW,CAAC,KAAU;QACpB,IAAI,IAAI,CAAC,eAAe,EAAE;YACxB,IAAI,CAAC,eAAe,CAAC,cAAc,CAAC,EAAE,SAAS,EAAE,KAAK,EAAE,CAAC,CAAC;SAC3D;QAED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,gBAAgB,CAAC,OAAO,IAAI,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,cAAc,EAAE;gBACxG,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,cAAc,CAAC,OAAO,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC;gBAC5E,IAAI,CAAC,gBAAgB,CAAC,OAAO,CAAC,cAAc,CAAC,IAAI,GAAG,QAAQ,IAAI,QAAQ,CAAC,QAAQ,IAAI,WAAW,CAAC;aACpG;YACD,IAAI,CAAC,eAAe,CAAC,aAAa,CAAC,QAAQ,CAAC,CAAC;SAChD;aAAM;YACH,IAAI,CAAC,OAAO,EAAE,CAAC,aAAa;;YAExB,eAAe,CAAC,QAAQ,EAAE,kBAAkB,CAAC,0BAA0B,EAAE,gFAAgF,CAAC,CAAC;SAClK;KACJ;;;YAlFJ,SAAS,SAAC;gBACP,QAAQ,EAAE,0CAA0C;gBACpD,QAAQ,EAAE,EAAE;aAEf;;;MClBY,wCAAwC;;;YATpD,QAAQ,SAAC;gBACR,YAAY,EAAE,CAAC,aAAa,CAAC;gBAC7B,OAAO,EAAE,EACR;gBACD,OAAO,EAAE,CAAC,aAAa,CAAC;gBACxB,SAAS,EAAE;oBACT,4CAA4C;iBAC7C;aACF;;;ACZD;;;;ACAA;;;;;;"}
@@ -0,0 +1,4 @@
1
+ import { ErrorHandler } from '@angular/core';
2
+ export interface IErrorService extends ErrorHandler {
3
+ handleError(error: any): void;
4
+ }
@@ -1,9 +1,11 @@
1
- import { ErrorHandler } from '@angular/core';
2
1
  import { IAppInsights } from '@microsoft/applicationinsights-common';
3
- export declare class ApplicationinsightsAngularpluginErrorService implements ErrorHandler {
2
+ import { IErrorService } from './IErrorService';
3
+ export declare class ApplicationinsightsAngularpluginErrorService implements IErrorService {
4
4
  static instance: ApplicationinsightsAngularpluginErrorService;
5
5
  private analyticsPlugin;
6
+ private errorServices;
6
7
  set plugin(analyticsPlugin: IAppInsights);
8
+ addErrorHandler(errorService: IErrorService): void;
7
9
  constructor();
8
10
  handleError(error: any): void;
9
11
  }
@@ -1 +1 @@
1
- {"__symbolic":"module","version":4,"metadata":{"AngularPlugin":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@microsoft/applicationinsights-core-js","name":"BaseTelemetryPlugin","line":29,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":23,"character":1},"arguments":[{"selector":"lib-applicationinsights-angularplugin-js","template":"","styles":[]}]}],"members":{"initialize":[{"__symbolic":"method"}],"processTelemetry":[{"__symbolic":"method"}],"trackPageView":[{"__symbolic":"method"}]}},"ApplicationinsightsAngularpluginJsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"AngularPlugin"}],"imports":[],"exports":[{"__symbolic":"reference","name":"AngularPlugin"}],"providers":[{"__symbolic":"reference","name":"ApplicationinsightsAngularpluginErrorService"}]}]}],"members":{}},"ApplicationinsightsAngularpluginErrorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":3,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"__ctor__":[{"__symbolic":"constructor"}],"handleError":[{"__symbolic":"method"}]},"statics":{"instance":null,"ɵprov":{}}}},"origins":{"AngularPlugin":"./lib/applicationinsights-angularplugin-js.component","ApplicationinsightsAngularpluginJsModule":"./lib/applicationinsights-angularplugin-js.module","ApplicationinsightsAngularpluginErrorService":"./lib/applicationinsights-angularplugin-error.service"},"importAs":"@microsoft/applicationinsights-angularplugin-js"}
1
+ {"__symbolic":"module","version":4,"metadata":{"AngularPlugin":{"__symbolic":"class","extends":{"__symbolic":"reference","module":"@microsoft/applicationinsights-core-js","name":"BaseTelemetryPlugin","line":33,"character":35},"decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Component","line":27,"character":1},"arguments":[{"selector":"lib-applicationinsights-angularplugin-js","template":"","styles":[]}]}],"members":{"initialize":[{"__symbolic":"method"}],"processTelemetry":[{"__symbolic":"method"}],"trackPageView":[{"__symbolic":"method"}]}},"ApplicationinsightsAngularpluginJsModule":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"NgModule","line":4,"character":1},"arguments":[{"declarations":[{"__symbolic":"reference","name":"AngularPlugin"}],"imports":[],"exports":[{"__symbolic":"reference","name":"AngularPlugin"}],"providers":[{"__symbolic":"reference","name":"ApplicationinsightsAngularpluginErrorService"}]}]}],"members":{}},"ApplicationinsightsAngularpluginErrorService":{"__symbolic":"class","decorators":[{"__symbolic":"call","expression":{"__symbolic":"reference","module":"@angular/core","name":"Injectable","line":5,"character":1},"arguments":[{"providedIn":"root"}]}],"members":{"addErrorHandler":[{"__symbolic":"method"}],"__ctor__":[{"__symbolic":"constructor"}],"handleError":[{"__symbolic":"method"}]},"statics":{"instance":null,"ɵprov":{}}},"IErrorService":{"__symbolic":"interface"}},"origins":{"AngularPlugin":"./lib/applicationinsights-angularplugin-js.component","ApplicationinsightsAngularpluginJsModule":"./lib/applicationinsights-angularplugin-js.module","ApplicationinsightsAngularpluginErrorService":"./lib/applicationinsights-angularplugin-error.service","IErrorService":"./lib/IErrorService"},"importAs":"@microsoft/applicationinsights-angularplugin-js"}
package/package.json CHANGED
@@ -1,61 +1,24 @@
1
- {
2
- "name": "@microsoft/applicationinsights-angularplugin-js",
3
- "version": "2.6.1",
4
- "description": "Microsoft Application Insights Angular plugin",
5
- "main": "dist/bundles/microsoft-applicationinsights-angularplugin-js.umd.js",
6
- "module": "dist/fesm2015/microsoft-applicationinsights-angularplugin-js.js",
7
- "types": "dist/microsoft-applicationinsights-angularplugin-js.d.ts",
8
- "metadata": "dist/microsoft-applicationinsights-angularplugin-js.metadata.json",
9
- "repository": {
10
- "type": "git",
11
- "url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/extensions/applicationinsights-angularplugin-js"
12
- },
13
- "scripts": {
14
- "ng": "ng",
15
- "start": "ng serve",
16
- "build": "ng build --prod",
17
- "test": "ng test",
18
- "lint": "ng lint"
19
- },
20
- "dependencies": {
21
- "@angular/animations": "~11.0.6",
22
- "@angular/common": "~11.0.6",
23
- "@angular/compiler": "~11.0.6",
24
- "@angular/core": "~11.0.6",
25
- "@angular/forms": "~11.0.6",
26
- "@angular/platform-browser": "~11.0.6",
27
- "@angular/platform-browser-dynamic": "~11.0.6",
28
- "@angular/router": "~11.0.6",
29
- "@microsoft/applicationinsights-common": "^2.6.1",
30
- "@microsoft/applicationinsights-core-js": "^2.6.1",
31
- "findup-sync": "^4.0.0",
32
- "grunt-cli": "^1.4.2",
33
- "nopt": "^5.0.0",
34
- "pify": "^2.3.0",
35
- "rxjs": "~6.6.0",
36
- "tslib": "^2.0.0",
37
- "zone.js": "~0.10.2"
38
- },
39
- "devDependencies": {
40
- "@angular-devkit/build-angular": "~0.1100.6",
41
- "@angular/cli": "~11.0.6",
42
- "@angular/compiler-cli": "~11.0.6",
43
- "@types/jasmine": "~3.6.0",
44
- "@types/node": "^12.11.1",
45
- "codelyzer": "^6.0.0",
46
- "jasmine-core": "~3.6.0",
47
- "jasmine-spec-reporter": "~5.0.0",
48
- "karma": "~5.1.0",
49
- "karma-chrome-launcher": "~3.1.0",
50
- "karma-coverage": "~2.0.3",
51
- "karma-jasmine": "~4.0.0",
52
- "karma-jasmine-html-reporter": "^1.5.0",
53
- "ng-packagr": "^11.0.0",
54
- "protractor": "~7.0.0",
55
- "ts-node": "~8.3.0",
56
- "tslint": "~6.1.0",
57
- "typescript": "~4.0.2",
58
- "@microsoft/applicationinsights-properties-js": "^2.6.1",
59
- "@microsoft/applicationinsights-analytics-js": "^2.6.1"
60
- }
61
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-angularplugin-js",
3
+ "version": "2.7.0",
4
+ "peerDependencies": {
5
+ "@angular/common": "^11.0.6",
6
+ "@angular/core": "^11.0.6"
7
+ },
8
+ "dependencies": {
9
+ "@microsoft/applicationinsights-common": "^2.7.1",
10
+ "@microsoft/applicationinsights-core-js": "^2.7.1",
11
+ "@microsoft/applicationinsights-properties-js": "^2.7.1",
12
+ "@microsoft/applicationinsights-rollup-es3": "^1.1.3",
13
+ "@microsoft/applicationinsights-shims": "^1.0.3",
14
+ "tslib": "^2.0.0"
15
+ },
16
+ "main": "bundles/microsoft-applicationinsights-angularplugin-js.umd.js",
17
+ "module": "fesm2015/microsoft-applicationinsights-angularplugin-js.js",
18
+ "es2015": "fesm2015/microsoft-applicationinsights-angularplugin-js.js",
19
+ "esm2015": "esm2015/microsoft-applicationinsights-angularplugin-js.js",
20
+ "fesm2015": "fesm2015/microsoft-applicationinsights-angularplugin-js.js",
21
+ "typings": "microsoft-applicationinsights-angularplugin-js.d.ts",
22
+ "metadata": "microsoft-applicationinsights-angularplugin-js.metadata.json",
23
+ "sideEffects": false
24
+ }
@@ -1,3 +1,4 @@
1
1
  export * from './lib/applicationinsights-angularplugin-js.component';
2
2
  export * from './lib/applicationinsights-angularplugin-js.module';
3
3
  export * from './lib/applicationinsights-angularplugin-error.service';
4
+ export * from './lib/IErrorService';
package/LICENSE DELETED
@@ -1,21 +0,0 @@
1
- MIT License
2
-
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission is hereby granted, free of charge, to any person obtaining a copy
6
- of this software and associated documentation files (the "Software"), to deal
7
- in the Software without restriction, including without limitation the rights
8
- to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
- copies of the Software, and to permit persons to whom the Software is
10
- furnished to do so, subject to the following conditions:
11
-
12
- The above copyright notice and this permission notice shall be included in all
13
- copies or substantial portions of the Software.
14
-
15
- THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
- IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
- FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
- AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
- LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
- OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
- SOFTWARE
@@ -1,24 +0,0 @@
1
- # ApplicationinsightsAngularpluginJs
2
-
3
- This library was generated with [Angular CLI](https://github.com/angular/angular-cli) version 11.0.6.
4
-
5
- ## Code scaffolding
6
-
7
- Run `ng generate component component-name --project applicationinsights-angularplugin-js` to generate a new component. You can also use `ng generate directive|pipe|service|class|guard|interface|enum|module --project applicationinsights-angularplugin-js`.
8
- > Note: Don't forget to add `--project applicationinsights-angularplugin-js` or else it will be added to the default project in your `angular.json` file.
9
-
10
- ## Build
11
-
12
- Run `ng build applicationinsights-angularplugin-js` to build the project. The build artifacts will be stored in the `dist/` directory.
13
-
14
- ## Publishing
15
-
16
- After building your library with `ng build applicationinsights-angularplugin-js`, go to the dist folder `cd dist/applicationinsights-angularplugin-js` and run `npm publish`.
17
-
18
- ## Running unit tests
19
-
20
- Run `ng test applicationinsights-angularplugin-js` to execute the unit tests via [Karma](https://karma-runner.github.io).
21
-
22
- ## Further help
23
-
24
- To get more help on the Angular CLI use `ng help` or go check out the [Angular CLI Overview and Command Reference](https://angular.io/cli) page.
@@ -1 +0,0 @@
1
- {"version":3,"file":"microsoft-applicationinsights-angularplugin-js.umd.js","sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-error.service.ts","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-js.component.ts","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-js.module.ts","../../../projects/applicationinsights-angularplugin-js/src/public-api.ts","../../../projects/applicationinsights-angularplugin-js/src/microsoft-applicationinsights-angularplugin-js.ts"],"sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { ErrorHandler, Injectable } from '@angular/core';\r\nimport { IAppInsights } from '@microsoft/applicationinsights-common';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ApplicationinsightsAngularpluginErrorService implements ErrorHandler {\r\n public static instance: ApplicationinsightsAngularpluginErrorService = null;\r\n private analyticsPlugin: IAppInsights;\r\n\r\n public set plugin(analyticsPlugin: IAppInsights) {\r\n this.analyticsPlugin = analyticsPlugin;\r\n }\r\n\r\n constructor() {\r\n if (ApplicationinsightsAngularpluginErrorService.instance === null) {\r\n ApplicationinsightsAngularpluginErrorService.instance = this;\r\n }\r\n }\r\n\r\n handleError(error: any): void {\r\n if (this.analyticsPlugin) {\r\n this.analyticsPlugin.trackException({ exception: error });\r\n }\r\n }\r\n}\r\n\r\n","import { Component } from '@angular/core';\r\nimport {\r\n IConfig, IPageViewTelemetry, IAppInsights, PropertiesPluginIdentifier, Util\r\n} from '@microsoft/applicationinsights-common';\r\nimport {\r\n IPlugin, IConfiguration, IAppInsightsCore,\r\n ITelemetryPlugin, BaseTelemetryPlugin, CoreUtils, ITelemetryItem, ITelemetryPluginChain,\r\n IProcessTelemetryContext, _InternalMessageId, LoggingSeverity, getLocation\r\n} from '@microsoft/applicationinsights-core-js';\r\nimport { Router } from '@angular/router';\r\n// For types only\r\nimport * as properties from '@microsoft/applicationinsights-properties-js';\r\nimport { ApplicationinsightsAngularpluginErrorService } from './applicationinsights-angularplugin-error.service';\r\n\r\ninterface IAngularExtensionConfig {\r\n /**\r\n * Angular router for enabling Application Insights PageView tracking.\r\n */\r\n router?: Router;\r\n}\r\n\r\nconst NAVIGATIONEND = 'NavigationEnd';\r\n\r\n@Component({\r\n selector: 'lib-applicationinsights-angularplugin-js',\r\n template: ``,\r\n styles: []\r\n})\r\n// tslint:disable-next-line:component-class-suffix\r\nexport class AngularPlugin extends BaseTelemetryPlugin {\r\n public priority = 186;\r\n public identifier = 'AngularPlugin';\r\n\r\n private analyticsPlugin: IAppInsights;\r\n private propertiesPlugin: properties.PropertiesPlugin;\r\n\r\n initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) {\r\n super.initialize(config, core, extensions, pluginChain);\r\n const ctx = this._getTelCtx();\r\n const extConfig = ctx.getExtCfg<IAngularExtensionConfig>(this.identifier, { router: null });\r\n CoreUtils.arrForEach(extensions, ext => {\r\n const identifier = (ext as ITelemetryPlugin).identifier;\r\n if (identifier === 'ApplicationInsightsAnalytics') {\r\n this.analyticsPlugin = (ext as any) as IAppInsights;\r\n if (ApplicationinsightsAngularpluginErrorService.instance !== null) {\r\n ApplicationinsightsAngularpluginErrorService.instance.plugin = this.analyticsPlugin;\r\n }\r\n }\r\n if (identifier === PropertiesPluginIdentifier) {\r\n this.propertiesPlugin = (ext as any) as properties.PropertiesPlugin;\r\n }\r\n });\r\n if (extConfig.router) {\r\n let isPageInitialLoad = true;\r\n if (isPageInitialLoad) {\r\n const pageViewTelemetry: IPageViewTelemetry = {\r\n uri: extConfig.router.url\r\n };\r\n this.trackPageView(pageViewTelemetry);\r\n }\r\n extConfig.router.events.subscribe(event => {\r\n if (event.constructor.name === NAVIGATIONEND) {\r\n // for page initial load, do not call trackPageView twice\r\n if (isPageInitialLoad) {\r\n isPageInitialLoad = false;\r\n return;\r\n }\r\n const pageViewTelemetry: IPageViewTelemetry = { uri: extConfig.router.url };\r\n this.trackPageView(pageViewTelemetry);\r\n }\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Add Part A fields to the event\r\n * @param event The event that needs to be processed\r\n */\r\n processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext) {\r\n this.processNext(event, itemCtx);\r\n }\r\n\r\n trackPageView(pageView: IPageViewTelemetry) {\r\n if (this.analyticsPlugin) {\r\n const location = getLocation();\r\n if (this.propertiesPlugin && this.propertiesPlugin.context && this.propertiesPlugin.context.telemetryTrace) {\r\n this.propertiesPlugin.context.telemetryTrace.traceID = Util.generateW3CId();\r\n this.propertiesPlugin.context.telemetryTrace.name = location && location.pathname || '_unknown_';\r\n }\r\n this.analyticsPlugin.trackPageView(pageView);\r\n } else {\r\n this.diagLog().throwInternal(\r\n // tslint:disable-next-line:max-line-length\r\n LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, 'Analytics plugin is not available, Angular plugin telemetry will not be sent: ');\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { AngularPlugin } from './applicationinsights-angularplugin-js.component';\r\nimport { ApplicationinsightsAngularpluginErrorService } from './applicationinsights-angularplugin-error.service';\r\n\r\n@NgModule({\r\n declarations: [AngularPlugin],\r\n imports: [\r\n ],\r\n exports: [AngularPlugin],\r\n providers: [\r\n ApplicationinsightsAngularpluginErrorService\r\n ]\r\n})\r\nexport class ApplicationinsightsAngularpluginJsModule { }\r\n","/*\r\n * Public API Surface of applicationinsights-angularplugin-js\r\n */\r\n\r\nexport * from './lib/applicationinsights-angularplugin-js.component';\r\nexport * from './lib/applicationinsights-angularplugin-js.module';\r\nexport * from './lib/applicationinsights-angularplugin-error.service';\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":["Injectable","CoreUtils","PropertiesPluginIdentifier","getLocation","Util","LoggingSeverity","_InternalMessageId","BaseTelemetryPlugin","Component","NgModule"],"mappings":";;;;;;IAAA;;;;;;;;;;;;;;IAcA;IAEA,IAAI,aAAa,GAA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,16 +0,0 @@
1
- !function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports,require("@angular/core"),require("@microsoft/applicationinsights-common"),require("@microsoft/applicationinsights-core-js")):"function"==typeof define&&define.amd?define("@microsoft/applicationinsights-angularplugin-js",["exports","@angular/core","@microsoft/applicationinsights-common","@microsoft/applicationinsights-core-js"],e):e(((t="undefined"!=typeof globalThis?globalThis:t||self).microsoft=t.microsoft||{},t.microsoft["applicationinsights-angularplugin-js"]={}),t.ng.core,t.applicationinsightsCommon,t.applicationinsightsCoreJs)}(this,(function(t,e,i,n){"use strict";
2
- /*! *****************************************************************************
3
- Copyright (c) Microsoft Corporation.
4
-
5
- Permission to use, copy, modify, and/or distribute this software for any
6
- purpose with or without fee is hereby granted.
7
-
8
- THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
9
- REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
10
- AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
11
- INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
12
- LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13
- OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
14
- PERFORMANCE OF THIS SOFTWARE.
15
- ***************************************************************************** */var r=function(t,e){return(r=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])})(t,e)};Object.create;function o(t,e){var i="function"==typeof Symbol&&t[Symbol.iterator];if(!i)return t;var n,r,o=i.call(t),a=[];try{for(;(void 0===e||e-- >0)&&!(n=o.next()).done;)a.push(n.value)}catch(t){r={error:t}}finally{try{n&&!n.done&&(i=o.return)&&i.call(o)}finally{if(r)throw r.error}}return a}function a(){for(var t=[],e=0;e<arguments.length;e++)t=t.concat(o(arguments[e]));return t}Object.create;var l=function(){function t(){null===t.instance&&(t.instance=this)}return Object.defineProperty(t.prototype,"plugin",{set:function(t){this.analyticsPlugin=t},enumerable:!1,configurable:!0}),t.prototype.handleError=function(t){this.analyticsPlugin&&this.analyticsPlugin.trackException({exception:t})},t}();l.instance=null,l.ɵprov=e.ɵɵdefineInjectable({factory:function(){return new l},token:l,providedIn:"root"}),l.decorators=[{type:e.Injectable,args:[{providedIn:"root"}]}],l.ctorParameters=function(){return[]};var s=function(t){function e(){var e=t.apply(this,a(arguments))||this;return e.priority=186,e.identifier="AngularPlugin",e}return function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}r(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}(e,t),e.prototype.initialize=function(e,r,o,a){var s=this;t.prototype.initialize.call(this,e,r,o,a);var c=this._getTelCtx().getExtCfg(this.identifier,{router:null});if(n.CoreUtils.arrForEach(o,(function(t){var e=t.identifier;"ApplicationInsightsAnalytics"===e&&(s.analyticsPlugin=t,null!==l.instance&&(l.instance.plugin=s.analyticsPlugin)),e===i.PropertiesPluginIdentifier&&(s.propertiesPlugin=t)})),c.router){var u=!0;if(u){var p={uri:c.router.url};this.trackPageView(p)}c.router.events.subscribe((function(t){if("NavigationEnd"===t.constructor.name){if(u)return void(u=!1);var e={uri:c.router.url};s.trackPageView(e)}}))}},e.prototype.processTelemetry=function(t,e){this.processNext(t,e)},e.prototype.trackPageView=function(t){if(this.analyticsPlugin){var e=n.getLocation();this.propertiesPlugin&&this.propertiesPlugin.context&&this.propertiesPlugin.context.telemetryTrace&&(this.propertiesPlugin.context.telemetryTrace.traceID=i.Util.generateW3CId(),this.propertiesPlugin.context.telemetryTrace.name=e&&e.pathname||"_unknown_"),this.analyticsPlugin.trackPageView(t)}else this.diagLog().throwInternal(n.LoggingSeverity.CRITICAL,n._InternalMessageId.TelemetryInitializerFailed,"Analytics plugin is not available, Angular plugin telemetry will not be sent: ")},e}(n.BaseTelemetryPlugin);s.decorators=[{type:e.Component,args:[{selector:"lib-applicationinsights-angularplugin-js",template:""}]}];var c=function(){};c.decorators=[{type:e.NgModule,args:[{declarations:[s],imports:[],exports:[s],providers:[l]}]}],t.AngularPlugin=s,t.ApplicationinsightsAngularpluginErrorService=l,t.ApplicationinsightsAngularpluginJsModule=c,Object.defineProperty(t,"__esModule",{value:!0})}));
16
- //# sourceMappingURL=microsoft-applicationinsights-angularplugin-js.umd.min.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../node_modules/tslib/tslib.es6.js","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-error.service.ts","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-js.component.ts","../../../projects/applicationinsights-angularplugin-js/src/lib/applicationinsights-angularplugin-js.module.ts"],"names":["extendStatics","d","b","Object","setPrototypeOf","__proto__","Array","p","prototype","hasOwnProperty","call","create","__read","o","n","m","Symbol","iterator","r","e","i","ar","next","done","push","value","error","__spread","arguments","length","concat","ApplicationinsightsAngularpluginErrorService","instance","this","defineProperty","analyticsPlugin","handleError","trackException","exception","Injectable","args","providedIn","AngularPlugin","_this","_super","apply","priority","identifier","TypeError","String","__","constructor","__extends","initialize","config","core","extensions","pluginChain","extConfig","_getTelCtx","getExtCfg","router","CoreUtils","arrForEach","ext","plugin","PropertiesPluginIdentifier","propertiesPlugin","isPageInitialLoad_1","pageViewTelemetry","uri","url","trackPageView","events","subscribe","event","name","processTelemetry","itemCtx","processNext","pageView","location","getLocation","context","telemetryTrace","traceID","Util","generateW3CId","pathname","diagLog","throwInternal","LoggingSeverity","CRITICAL","_InternalMessageId","TelemetryInitializerFailed","BaseTelemetryPlugin","Component","selector","template","NgModule","declarations","imports","exports","providers"],"mappings":";;;;;;;;;;;;;;oFAgBA,IAAIA,EAAgB,SAASC,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gE,cAAA,SAAcQ,GACZ,GAAI/C,KAAKE,gBAAiB,CACtB,IAAM8C,EAAWC,EAAAA,cACbjD,KAAKkC,kBAAoBlC,KAAKkC,iBAAiBgB,SAAWlD,KAAKkC,iBAAiBgB,QAAQC,iBACxFnD,KAAKkC,iBAAiBgB,QAAQC,eAAeC,QAAUC,EAAAA,KAAKC,gBAC5DtD,KAAKkC,iBAAiBgB,QAAQC,eAAeR,KAAOK,GAAYA,EAASO,UAAY,aAEzFvD,KAAKE,gBAAgBqC,cAAcQ,QAEnC/C,KAAKwD,UAAUC,cAEXC,EAAAA,gBAAgBC,SAAUC,EAAAA,mBAAmBC,2BAA4B,sFAhElDC,EAAAA,yCANlCC,EAAAA,UAASxD,KAAA,CAAC,CACTyD,SAAU,2CACVC,SAAU,aCZZ,iCATCC,EAAAA,SAAQ3D,KAAA,CAAC,CACR4D,aAAc,CAAC1D,GACf2D,QAAS,GAETC,QAAS,CAAC5D,GACV6D,UAAW,CACTxE","sourcesContent":["/*! *****************************************************************************\r\nCopyright (c) Microsoft Corporation.\r\n\r\nPermission to use, copy, modify, and/or distribute this software for any\r\npurpose with or without fee is hereby granted.\r\n\r\nTHE SOFTWARE IS PROVIDED \"AS IS\" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH\r\nREGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY\r\nAND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,\r\nINDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM\r\nLOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR\r\nOTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR\r\nPERFORMANCE OF THIS SOFTWARE.\r\n***************************************************************************** */\r\n/* global Reflect, Promise */\r\n\r\nvar extendStatics = function(d, b) {\r\n extendStatics = Object.setPrototypeOf ||\r\n ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||\r\n function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };\r\n return extendStatics(d, b);\r\n};\r\n\r\nexport function __extends(d, b) {\r\n if (typeof b !== \"function\" && b !== null)\r\n throw new TypeError(\"Class extends value \" + String(b) + \" is not a constructor or null\");\r\n extendStatics(d, b);\r\n function __() { this.constructor = d; }\r\n d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());\r\n}\r\n\r\nexport var __assign = function() {\r\n __assign = Object.assign || function __assign(t) {\r\n for (var s, i = 1, n = arguments.length; i < n; i++) {\r\n s = arguments[i];\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];\r\n }\r\n return t;\r\n }\r\n return __assign.apply(this, arguments);\r\n}\r\n\r\nexport function __rest(s, e) {\r\n var t = {};\r\n for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)\r\n t[p] = s[p];\r\n if (s != null && typeof Object.getOwnPropertySymbols === \"function\")\r\n for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {\r\n if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))\r\n t[p[i]] = s[p[i]];\r\n }\r\n return t;\r\n}\r\n\r\nexport function __decorate(decorators, target, key, desc) {\r\n var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;\r\n if (typeof Reflect === \"object\" && typeof Reflect.decorate === \"function\") r = Reflect.decorate(decorators, target, key, desc);\r\n else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;\r\n return c > 3 && r && Object.defineProperty(target, key, r), r;\r\n}\r\n\r\nexport function __param(paramIndex, decorator) {\r\n return function (target, key) { decorator(target, key, paramIndex); }\r\n}\r\n\r\nexport function __metadata(metadataKey, metadataValue) {\r\n if (typeof Reflect === \"object\" && typeof Reflect.metadata === \"function\") return Reflect.metadata(metadataKey, metadataValue);\r\n}\r\n\r\nexport function __awaiter(thisArg, _arguments, P, generator) {\r\n function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }\r\n return new (P || (P = Promise))(function (resolve, reject) {\r\n function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }\r\n function rejected(value) { try { step(generator[\"throw\"](value)); } catch (e) { reject(e); } }\r\n function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }\r\n step((generator = generator.apply(thisArg, _arguments || [])).next());\r\n });\r\n}\r\n\r\nexport function __generator(thisArg, body) {\r\n var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;\r\n return g = { next: verb(0), \"throw\": verb(1), \"return\": verb(2) }, typeof Symbol === \"function\" && (g[Symbol.iterator] = function() { return this; }), g;\r\n function verb(n) { return function (v) { return step([n, v]); }; }\r\n function step(op) {\r\n if (f) throw new TypeError(\"Generator is already executing.\");\r\n while (_) try {\r\n if (f = 1, y && (t = op[0] & 2 ? y[\"return\"] : op[0] ? y[\"throw\"] || ((t = y[\"return\"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;\r\n if (y = 0, t) op = [op[0] & 2, t.value];\r\n switch (op[0]) {\r\n case 0: case 1: t = op; break;\r\n case 4: _.label++; return { value: op[1], done: false };\r\n case 5: _.label++; y = op[1]; op = [0]; continue;\r\n case 7: op = _.ops.pop(); _.trys.pop(); continue;\r\n default:\r\n if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }\r\n if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }\r\n if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }\r\n if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }\r\n if (t[2]) _.ops.pop();\r\n _.trys.pop(); continue;\r\n }\r\n op = body.call(thisArg, _);\r\n } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }\r\n if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };\r\n }\r\n}\r\n\r\nexport var __createBinding = Object.create ? (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n Object.defineProperty(o, k2, { enumerable: true, get: function() { return m[k]; } });\r\n}) : (function(o, m, k, k2) {\r\n if (k2 === undefined) k2 = k;\r\n o[k2] = m[k];\r\n});\r\n\r\nexport function __exportStar(m, o) {\r\n for (var p in m) if (p !== \"default\" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);\r\n}\r\n\r\nexport function __values(o) {\r\n var s = typeof Symbol === \"function\" && Symbol.iterator, m = s && o[s], i = 0;\r\n if (m) return m.call(o);\r\n if (o && typeof o.length === \"number\") return {\r\n next: function () {\r\n if (o && i >= o.length) o = void 0;\r\n return { value: o && o[i++], done: !o };\r\n }\r\n };\r\n throw new TypeError(s ? \"Object is not iterable.\" : \"Symbol.iterator is not defined.\");\r\n}\r\n\r\nexport function __read(o, n) {\r\n var m = typeof Symbol === \"function\" && o[Symbol.iterator];\r\n if (!m) return o;\r\n var i = m.call(o), r, ar = [], e;\r\n try {\r\n while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);\r\n }\r\n catch (error) { e = { error: error }; }\r\n finally {\r\n try {\r\n if (r && !r.done && (m = i[\"return\"])) m.call(i);\r\n }\r\n finally { if (e) throw e.error; }\r\n }\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spread() {\r\n for (var ar = [], i = 0; i < arguments.length; i++)\r\n ar = ar.concat(__read(arguments[i]));\r\n return ar;\r\n}\r\n\r\n/** @deprecated */\r\nexport function __spreadArrays() {\r\n for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;\r\n for (var r = Array(s), k = 0, i = 0; i < il; i++)\r\n for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)\r\n r[k] = a[j];\r\n return r;\r\n}\r\n\r\nexport function __spreadArray(to, from) {\r\n for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)\r\n to[j] = from[i];\r\n return to;\r\n}\r\n\r\nexport function __await(v) {\r\n return this instanceof __await ? (this.v = v, this) : new __await(v);\r\n}\r\n\r\nexport function __asyncGenerator(thisArg, _arguments, generator) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var g = generator.apply(thisArg, _arguments || []), i, q = [];\r\n return i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i;\r\n function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }\r\n function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }\r\n function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }\r\n function fulfill(value) { resume(\"next\", value); }\r\n function reject(value) { resume(\"throw\", value); }\r\n function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }\r\n}\r\n\r\nexport function __asyncDelegator(o) {\r\n var i, p;\r\n return i = {}, verb(\"next\"), verb(\"throw\", function (e) { throw e; }), verb(\"return\"), i[Symbol.iterator] = function () { return this; }, i;\r\n function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === \"return\" } : f ? f(v) : v; } : f; }\r\n}\r\n\r\nexport function __asyncValues(o) {\r\n if (!Symbol.asyncIterator) throw new TypeError(\"Symbol.asyncIterator is not defined.\");\r\n var m = o[Symbol.asyncIterator], i;\r\n return m ? m.call(o) : (o = typeof __values === \"function\" ? __values(o) : o[Symbol.iterator](), i = {}, verb(\"next\"), verb(\"throw\"), verb(\"return\"), i[Symbol.asyncIterator] = function () { return this; }, i);\r\n function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }\r\n function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }\r\n}\r\n\r\nexport function __makeTemplateObject(cooked, raw) {\r\n if (Object.defineProperty) { Object.defineProperty(cooked, \"raw\", { value: raw }); } else { cooked.raw = raw; }\r\n return cooked;\r\n};\r\n\r\nvar __setModuleDefault = Object.create ? (function(o, v) {\r\n Object.defineProperty(o, \"default\", { enumerable: true, value: v });\r\n}) : function(o, v) {\r\n o[\"default\"] = v;\r\n};\r\n\r\nexport function __importStar(mod) {\r\n if (mod && mod.__esModule) return mod;\r\n var result = {};\r\n if (mod != null) for (var k in mod) if (k !== \"default\" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);\r\n __setModuleDefault(result, mod);\r\n return result;\r\n}\r\n\r\nexport function __importDefault(mod) {\r\n return (mod && mod.__esModule) ? mod : { default: mod };\r\n}\r\n\r\nexport function __classPrivateFieldGet(receiver, privateMap) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to get private field on non-instance\");\r\n }\r\n return privateMap.get(receiver);\r\n}\r\n\r\nexport function __classPrivateFieldSet(receiver, privateMap, value) {\r\n if (!privateMap.has(receiver)) {\r\n throw new TypeError(\"attempted to set private field on non-instance\");\r\n }\r\n privateMap.set(receiver, value);\r\n return value;\r\n}\r\n","import { ErrorHandler, Injectable } from '@angular/core';\r\nimport { IAppInsights } from '@microsoft/applicationinsights-common';\r\n\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class ApplicationinsightsAngularpluginErrorService implements ErrorHandler {\r\n public static instance: ApplicationinsightsAngularpluginErrorService = null;\r\n private analyticsPlugin: IAppInsights;\r\n\r\n public set plugin(analyticsPlugin: IAppInsights) {\r\n this.analyticsPlugin = analyticsPlugin;\r\n }\r\n\r\n constructor() {\r\n if (ApplicationinsightsAngularpluginErrorService.instance === null) {\r\n ApplicationinsightsAngularpluginErrorService.instance = this;\r\n }\r\n }\r\n\r\n handleError(error: any): void {\r\n if (this.analyticsPlugin) {\r\n this.analyticsPlugin.trackException({ exception: error });\r\n }\r\n }\r\n}\r\n\r\n","import { Component } from '@angular/core';\r\nimport {\r\n IConfig, IPageViewTelemetry, IAppInsights, PropertiesPluginIdentifier, Util\r\n} from '@microsoft/applicationinsights-common';\r\nimport {\r\n IPlugin, IConfiguration, IAppInsightsCore,\r\n ITelemetryPlugin, BaseTelemetryPlugin, CoreUtils, ITelemetryItem, ITelemetryPluginChain,\r\n IProcessTelemetryContext, _InternalMessageId, LoggingSeverity, getLocation\r\n} from '@microsoft/applicationinsights-core-js';\r\nimport { Router } from '@angular/router';\r\n// For types only\r\nimport * as properties from '@microsoft/applicationinsights-properties-js';\r\nimport { ApplicationinsightsAngularpluginErrorService } from './applicationinsights-angularplugin-error.service';\r\n\r\ninterface IAngularExtensionConfig {\r\n /**\r\n * Angular router for enabling Application Insights PageView tracking.\r\n */\r\n router?: Router;\r\n}\r\n\r\nconst NAVIGATIONEND = 'NavigationEnd';\r\n\r\n@Component({\r\n selector: 'lib-applicationinsights-angularplugin-js',\r\n template: ``,\r\n styles: []\r\n})\r\n// tslint:disable-next-line:component-class-suffix\r\nexport class AngularPlugin extends BaseTelemetryPlugin {\r\n public priority = 186;\r\n public identifier = 'AngularPlugin';\r\n\r\n private analyticsPlugin: IAppInsights;\r\n private propertiesPlugin: properties.PropertiesPlugin;\r\n\r\n initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) {\r\n super.initialize(config, core, extensions, pluginChain);\r\n const ctx = this._getTelCtx();\r\n const extConfig = ctx.getExtCfg<IAngularExtensionConfig>(this.identifier, { router: null });\r\n CoreUtils.arrForEach(extensions, ext => {\r\n const identifier = (ext as ITelemetryPlugin).identifier;\r\n if (identifier === 'ApplicationInsightsAnalytics') {\r\n this.analyticsPlugin = (ext as any) as IAppInsights;\r\n if (ApplicationinsightsAngularpluginErrorService.instance !== null) {\r\n ApplicationinsightsAngularpluginErrorService.instance.plugin = this.analyticsPlugin;\r\n }\r\n }\r\n if (identifier === PropertiesPluginIdentifier) {\r\n this.propertiesPlugin = (ext as any) as properties.PropertiesPlugin;\r\n }\r\n });\r\n if (extConfig.router) {\r\n let isPageInitialLoad = true;\r\n if (isPageInitialLoad) {\r\n const pageViewTelemetry: IPageViewTelemetry = {\r\n uri: extConfig.router.url\r\n };\r\n this.trackPageView(pageViewTelemetry);\r\n }\r\n extConfig.router.events.subscribe(event => {\r\n if (event.constructor.name === NAVIGATIONEND) {\r\n // for page initial load, do not call trackPageView twice\r\n if (isPageInitialLoad) {\r\n isPageInitialLoad = false;\r\n return;\r\n }\r\n const pageViewTelemetry: IPageViewTelemetry = { uri: extConfig.router.url };\r\n this.trackPageView(pageViewTelemetry);\r\n }\r\n });\r\n }\r\n }\r\n\r\n /**\r\n * Add Part A fields to the event\r\n * @param event The event that needs to be processed\r\n */\r\n processTelemetry(event: ITelemetryItem, itemCtx?: IProcessTelemetryContext) {\r\n this.processNext(event, itemCtx);\r\n }\r\n\r\n trackPageView(pageView: IPageViewTelemetry) {\r\n if (this.analyticsPlugin) {\r\n const location = getLocation();\r\n if (this.propertiesPlugin && this.propertiesPlugin.context && this.propertiesPlugin.context.telemetryTrace) {\r\n this.propertiesPlugin.context.telemetryTrace.traceID = Util.generateW3CId();\r\n this.propertiesPlugin.context.telemetryTrace.name = location && location.pathname || '_unknown_';\r\n }\r\n this.analyticsPlugin.trackPageView(pageView);\r\n } else {\r\n this.diagLog().throwInternal(\r\n // tslint:disable-next-line:max-line-length\r\n LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, 'Analytics plugin is not available, Angular plugin telemetry will not be sent: ');\r\n }\r\n }\r\n}\r\n","import { NgModule } from '@angular/core';\r\nimport { AngularPlugin } from './applicationinsights-angularplugin-js.component';\r\nimport { ApplicationinsightsAngularpluginErrorService } from './applicationinsights-angularplugin-error.service';\r\n\r\n@NgModule({\r\n declarations: [AngularPlugin],\r\n imports: [\r\n ],\r\n exports: [AngularPlugin],\r\n providers: [\r\n ApplicationinsightsAngularpluginErrorService\r\n ]\r\n})\r\nexport class ApplicationinsightsAngularpluginJsModule { }\r\n"]}
@@ -1,26 +0,0 @@
1
- import { Injectable } from '@angular/core';
2
- import * as i0 from "@angular/core";
3
- export class ApplicationinsightsAngularpluginErrorService {
4
- constructor() {
5
- if (ApplicationinsightsAngularpluginErrorService.instance === null) {
6
- ApplicationinsightsAngularpluginErrorService.instance = this;
7
- }
8
- }
9
- set plugin(analyticsPlugin) {
10
- this.analyticsPlugin = analyticsPlugin;
11
- }
12
- handleError(error) {
13
- if (this.analyticsPlugin) {
14
- this.analyticsPlugin.trackException({ exception: error });
15
- }
16
- }
17
- }
18
- ApplicationinsightsAngularpluginErrorService.instance = null;
19
- ApplicationinsightsAngularpluginErrorService.ɵprov = i0.ɵɵdefineInjectable({ factory: function ApplicationinsightsAngularpluginErrorService_Factory() { return new ApplicationinsightsAngularpluginErrorService(); }, token: ApplicationinsightsAngularpluginErrorService, providedIn: "root" });
20
- ApplicationinsightsAngularpluginErrorService.decorators = [
21
- { type: Injectable, args: [{
22
- providedIn: 'root'
23
- },] }
24
- ];
25
- ApplicationinsightsAngularpluginErrorService.ctorParameters = () => [];
26
- //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXBwbGljYXRpb25pbnNpZ2h0cy1hbmd1bGFycGx1Z2luLWVycm9yLnNlcnZpY2UuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9wcm9qZWN0cy9hcHBsaWNhdGlvbmluc2lnaHRzLWFuZ3VsYXJwbHVnaW4tanMvc3JjL2xpYi9hcHBsaWNhdGlvbmluc2lnaHRzLWFuZ3VsY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