This commit is contained in:
Piyali Jana 2018-06-24 09:13:12 -07:00
Родитель e0d27eddef
Коммит 57662eb8ef
17 изменённых файлов: 43 добавлений и 75 удалений

Просмотреть файл

@ -6,7 +6,7 @@
import { _InternalLogging, PageView } from "applicationinsights-common";
import { AppInsightsCore, IConfiguration, ITelemetryItem } from "applicationinsights-core-js";
import { Sender } from "Sender";
import { ApplicationInsights, IPageViewTelemetry } from "AppInsights/applicationinsights-analytics-js";
import { ApplicationInsights, IPageViewTelemetry } from "ApplicationInsights/applicationinsights-analytics-js";
"use strict";

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-sdk-js",
"version": "0.0.4",
"version": "0.0.5",
"description": "Microsoft Application Insights Javascript SDK apis",
"main": "bundle/applicationinsights-sdk-js.js",
"types": "bundle/applicationinsights-sdk-js.d.ts",
@ -11,9 +11,9 @@
"registry": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry"
},
"dependencies": {
"applicationinsights-common": "0.0.39",
"applicationinsights-core-js": "0.0.31",
"applicationinsights-channel-js": "0.0.6",
"applicationinsights-analytics-js": "0.0.7"
"applicationinsights-common": "0.0.43",
"applicationinsights-core-js": "0.0.33",
"applicationinsights-channel-js": "0.0.8",
"applicationinsights-analytics-js": "0.0.12"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-sdk-js",
"version": "0.0.4",
"version": "0.0.5",
"description": "Microsoft Application Insights Javascript SDK apis",
"main": "bundle/applicationinsights-sdk-js.js",
"types": "bundle/applicationinsights-sdk-js.d.ts",
@ -11,9 +11,9 @@
"registry": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry"
},
"dependencies": {
"applicationinsights-common": "0.0.39",
"applicationinsights-core-js": "0.0.31",
"applicationinsights-channel-js": "0.0.7",
"applicationinsights-analytics-js": "0.0.7"
"applicationinsights-common": "0.0.43",
"applicationinsights-core-js": "0.0.33",
"applicationinsights-channel-js": "0.0.8",
"applicationinsights-analytics-js": "0.0.12"
}
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-channel-js",
"version": "0.0.7",
"version": "0.0.8",
"description": "Microsoft Application Insights JavaScript SDK Channel",
"main": "bundle/aichannel.js",
"types": "bundle/aichannel.d.ts",
@ -8,7 +8,7 @@
"typescript": "2.5.3"
},
"dependencies": {
"applicationinsights-common": "0.0.39",
"applicationinsights-core-js": "0.0.31"
"applicationinsights-common": "0.0.43",
"applicationinsights-core-js": "0.0.33"
}
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-channel-js",
"version": "0.0.7",
"version": "0.0.8",
"description": "Microsoft Application Insights JavaScript SDK Channel",
"main": "bundle/aichannel.js",
"types": "bundle/aichannel.d.ts",
@ -8,7 +8,7 @@
"typescript": "2.5.3"
},
"dependencies": {
"applicationinsights-common": "0.0.39",
"applicationinsights-core-js": "0.0.31"
"applicationinsights-common": "0.0.43",
"applicationinsights-core-js": "0.0.33"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-common",
"version": "0.0.39",
"version": "0.0.43",
"description": "Microsoft Application Insights Common JavaScript Library - AMD version",
"main": "./bundle/applicationinsights-common.js",
"types": "./bundle/applicationinsights-common.d.ts",
@ -11,6 +11,6 @@
"registry": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry"
},
"dependencies": {
"applicationinsights-core-js": "0.0.27"
"applicationinsights-core-js": "0.0.33"
}
}
}

Просмотреть файл

@ -20,4 +20,5 @@ export { Data } from './Telemetry/Common/Data';
export { SeverityLevel } from './Interfaces/Contracts/Generated/SeverityLevel';
export { IConfig } from './Interfaces/IConfig';
export { IChannelControlsAI } from './Interfaces/IChannelControlsAI';
export { ContextTagKeys } from './Interfaces/Contracts/Generated/ContextTagKeys';
export { ContextTagKeys } from './Interfaces/Contracts/Generated/ContextTagKeys';
export { DataSanitizer } from './Telemetry/Common/DataSanitizer';

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-common",
"version": "0.0.39",
"version": "0.0.43",
"description": "Microsoft Application Insights Common JavaScript Library - AMD version",
"main": "./bundle/applicationinsights-common.js",
"types": "./bundle/applicationinsights-common.d.ts",
@ -11,6 +11,6 @@
"registry": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry"
},
"dependencies": {
"applicationinsights-core-js": "0.0.27"
"applicationinsights-core-js": "0.0.33"
}
}

Просмотреть файл

@ -1,20 +1,19 @@
import { RequestHeaders, Util, LoggingSeverity, _InternalMessageId, _InternalLogging, CorrelationIdHelper } from 'applicationinsights-common';
import { ajaxRecord } from './ajaxRecord';
import { AI } from '../../AI';
import { extensions, dateTime, EventHelper } from './ajaxUtils';
import { RemoteDependencyData } from 'applicationinsights-common';
import { ApplicationInsights } from '../../ApplicationInsights';
export interface XMLHttpRequestInstrumented extends XMLHttpRequest {
ajaxData: ajaxRecord;
}
export class AjaxMonitor {
private appInsights: AI;
private appInsights: ApplicationInsights;
private initialized: boolean;
private static instrumentedByAppInsightsName = "InstrumentedByAppInsights";
private currentWindowHost;
constructor(appInsights: AI) {
constructor(appInsights: ApplicationInsights) {
this.currentWindowHost = window.location.host && window.location.host.toLowerCase();
this.appInsights = appInsights;
this.initialized = false;

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-analytics-js",
"version": "0.0.7",
"version": "0.0.12",
"description": "Microsoft Application Insights Javascript SDK apis",
"main": "bundle/applicationinsights-analytics-js.js",
"types": "bundle/applicationinsights-analytics-js.d.ts",
@ -11,7 +11,7 @@
"registry": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry"
},
"dependencies": {
"applicationinsights-common": "0.0.39",
"applicationinsights-core-js": "0.0.31"
"applicationinsights-common": "0.0.43",
"applicationinsights-core-js": "0.0.33"
}
}

Просмотреть файл

@ -1 +1,2 @@
export { ApplicationInsights } from "./JavaScriptSDK/ApplicationInsights";
export { ApplicationInsights } from "./JavaScriptSDK/ApplicationInsights";
export { IPageViewTelemetry } from "./JavaScriptSDK.Interfaces/IPageViewTelemetry";

34
ApplicationInsights/package-lock.json сгенерированный
Просмотреть файл

@ -1,34 +0,0 @@
{
"name": "applicationinsights-analytics-js",
"version": "0.0.7",
"lockfileVersion": 1,
"requires": true,
"dependencies": {
"applicationinsights-common": {
"version": "0.0.39",
"resolved": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/applicationinsights-common/-/applicationinsights-common-0.0.39.tgz",
"integrity": "sha1-lNQR8/k0CmkPbj5pZMC6aVRq4xo=",
"requires": {
"applicationinsights-core-js": "0.0.27"
},
"dependencies": {
"applicationinsights-core-js": {
"version": "0.0.27",
"resolved": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/applicationinsights-core-js/-/applicationinsights-core-js-0.0.27.tgz",
"integrity": "sha1-2NSsJLWeCv6GLrBxCwaxFhjrMlM="
}
}
},
"applicationinsights-core-js": {
"version": "0.0.31",
"resolved": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/applicationinsights-core-js/-/applicationinsights-core-js-0.0.31.tgz",
"integrity": "sha1-6kJG+mRPJGb1NnXsisAOKQ+5wxM="
},
"typescript": {
"version": "2.5.3",
"resolved": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry/typescript/-/typescript-2.5.3.tgz",
"integrity": "sha1-3z3Nw48764ANS8MiZGsEo/bKfw0=",
"dev": true
}
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-analytics-js",
"version": "0.0.7",
"version": "0.0.12",
"description": "Microsoft Application Insights Javascript SDK apis",
"main": "bundle/applicationinsights-analytics-js.js",
"types": "bundle/applicationinsights-analytics-js.d.ts",
@ -11,7 +11,7 @@
"registry": "https://mseng.pkgs.visualstudio.com/_packaging/ApplicationInsights-Team/npm/registry"
},
"dependencies": {
"applicationinsights-common": "0.0.39",
"applicationinsights-core-js": "0.0.31"
"applicationinsights-common": "0.0.43",
"applicationinsights-core-js": "0.0.33"
}
}

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-core-js",
"version": "0.0.31",
"version": "0.0.33",
"description": "Microsoft Application Insights Core Javascript SDK",
"main": "bundle/applicationinsights-core-js.js",
"types": "bundle/applicationinsights-core-js.d.ts",

Просмотреть файл

@ -3,4 +3,5 @@ export { IChannelControls, MinChannelPriorty } from "./JavaScriptSDK.Interfaces/
export { ITelemetryPlugin, IPlugin } from "./JavaScriptSDK.Interfaces/ITelemetryPlugin";
export { IAppInsightsCore } from "./JavaScriptSDK.Interfaces/IAppInsightsCore";
export { ITelemetryItem } from "./JavaScriptSDK.Interfaces/ITelemetryItem";
export { AppInsightsCore } from "./JavaScriptSDK/AppInsightsCore";
export { AppInsightsCore } from "./JavaScriptSDK/AppInsightsCore";
export { CoreUtils } from "./JavaScriptSDK/CoreUtils";

Просмотреть файл

@ -1,6 +1,6 @@
{
"name": "applicationinsights-core-js",
"version": "0.0.30",
"version": "0.0.32",
"description": "Microsoft Application Insights Core Javascript SDK",
"devDependencies": {
"typescript": "2.5.3"

Просмотреть файл

@ -69,7 +69,7 @@ module.exports = function (grunt) {
src: [
'ApplicationInsights/JavascriptSDK/*.ts',
'ApplicationInsights/JavascriptSDK.Interfaces/*.ts',
'ApplicationInsights/applicationinsights-analytics-js.ts'
'ApplicationInsights/*.ts'
]
},
core: {
@ -91,7 +91,7 @@ module.exports = function (grunt) {
src: [
'ApplicationInsights/JavascriptSDK.Interfaces/*.ts',
'ApplicationInsights/JavascriptSDK/*.ts',
'ApplicationInsights/applicationinsights-analytics-js.ts'
'ApplicationInsights/*.ts'
],
out: 'ApplicationInsights/amd/bundle/applicationinsights-analytics-js.js',
},