@microsoft/applicationinsights-channel-js 3.0.0-beta.2303-06 → 3.0.0-beta.2303-10
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.
- package/browser/applicationinsights-channel-js.integrity.json +9 -9
- package/browser/applicationinsights-channel-js.js +50 -77
- package/browser/applicationinsights-channel-js.js.map +1 -1
- package/browser/applicationinsights-channel-js.min.js +2 -2
- package/browser/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.api.json +2 -2
- package/dist/applicationinsights-channel-js.api.md +2 -2
- package/dist/applicationinsights-channel-js.d.ts +3 -3
- package/dist/applicationinsights-channel-js.js +50 -77
- package/dist/applicationinsights-channel-js.js.map +1 -1
- package/dist/applicationinsights-channel-js.min.js +2 -2
- package/dist/applicationinsights-channel-js.min.js.map +1 -1
- package/dist/applicationinsights-channel-js.rollup.d.ts +3 -3
- package/dist-esm/EnvelopeCreator.js +2 -2
- package/dist-esm/EnvelopeCreator.js.map +1 -1
- package/dist-esm/Interfaces.js +1 -1
- package/dist-esm/InternalConstants.js +1 -1
- package/dist-esm/Offline.js +1 -1
- package/dist-esm/SendBuffer.js +1 -1
- package/dist-esm/Sender.js +6 -10
- package/dist-esm/Sender.js.map +1 -1
- package/dist-esm/Serializer.js +1 -1
- package/dist-esm/TelemetryProcessors/Sample.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-channel-js.js +1 -1
- package/package.json +3 -3
- package/src/Sender.ts +11 -15
- package/types/Sender.d.ts +3 -3
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-channel-js",
|
|
3
|
-
"version": "3.0.0-beta.2303-
|
|
3
|
+
"version": "3.0.0-beta.2303-10",
|
|
4
4
|
"description": "Microsoft Application Insights JavaScript SDK Channel",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
@@ -50,8 +50,8 @@
|
|
|
50
50
|
"dependencies": {
|
|
51
51
|
"@microsoft/dynamicproto-js": "^1.1.7",
|
|
52
52
|
"@microsoft/applicationinsights-shims": "2.0.2",
|
|
53
|
-
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2303-
|
|
54
|
-
"@microsoft/applicationinsights-common": "3.0.0-beta.2303-
|
|
53
|
+
"@microsoft/applicationinsights-core-js": "3.0.0-beta.2303-10",
|
|
54
|
+
"@microsoft/applicationinsights-common": "3.0.0-beta.2303-10",
|
|
55
55
|
"@nevware21/ts-utils": ">= 0.8.1 < 2.x"
|
|
56
56
|
},
|
|
57
57
|
"license": "MIT",
|
package/src/Sender.ts
CHANGED
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import dynamicProto from "@microsoft/dynamicproto-js";
|
|
2
2
|
import {
|
|
3
|
-
BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception,
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception, IConfig, IEnvelope,
|
|
4
|
+
ISample, Metric, PageView, PageViewPerformance, ProcessLegacy, RemoteDependencyData, RequestHeaders, SampleRate, Trace, eRequestHeaders,
|
|
5
|
+
isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage
|
|
6
6
|
} from "@microsoft/applicationinsights-common";
|
|
7
7
|
import {
|
|
8
|
-
BaseTelemetryPlugin, IAppInsightsCore, IConfigDefaults, IConfiguration, IDiagnosticLogger, INotificationManager,
|
|
9
|
-
IProcessTelemetryContext, IProcessTelemetryUnloadContext, ITelemetryItem, ITelemetryPluginChain, ITelemetryUnloadState,
|
|
8
|
+
BaseTelemetryPlugin, IAppInsightsCore, IChannelControls, IConfigDefaults, IConfiguration, IDiagnosticLogger, INotificationManager,
|
|
9
|
+
IPlugin, IProcessTelemetryContext, IProcessTelemetryUnloadContext, ITelemetryItem, ITelemetryPluginChain, ITelemetryUnloadState,
|
|
10
10
|
SendRequestReason, _eInternalMessageId, _throwInternal, _warnToConsole, arrForEach, cfgDfBoolean, cfgDfValidate,
|
|
11
11
|
createProcessTelemetryContext, createUniqueNamespace, dateNow, dumpObj, eLoggingSeverity, getExceptionName, getIEVersion, getJSON,
|
|
12
12
|
getNavigator, getWindow, isArray, isBeaconsSupported, isFetchSupported, isNullOrUndefined, isXhrSupported, mergeEvtNamespace, objExtend,
|
|
13
13
|
objKeys, onConfigChange, useXDomainRequest
|
|
14
14
|
} from "@microsoft/applicationinsights-core-js";
|
|
15
|
-
import { ITimerHandler, isTruthy, objDeepFreeze,
|
|
15
|
+
import { ITimerHandler, isTruthy, objDeepFreeze, objDefine, scheduleTimeout } from "@nevware21/ts-utils";
|
|
16
16
|
import {
|
|
17
17
|
DependencyEnvelopeCreator, EventEnvelopeCreator, ExceptionEnvelopeCreator, MetricEnvelopeCreator, PageViewEnvelopeCreator,
|
|
18
18
|
PageViewPerformanceEnvelopeCreator, TraceEnvelopeCreator
|
|
@@ -81,7 +81,7 @@ const EnvelopeTypeCreator: { [key:string] : EnvelopeCreator } = {
|
|
|
81
81
|
[RemoteDependencyData.dataType]: DependencyEnvelopeCreator
|
|
82
82
|
};
|
|
83
83
|
|
|
84
|
-
export class Sender extends BaseTelemetryPlugin implements
|
|
84
|
+
export class Sender extends BaseTelemetryPlugin implements IChannelControls {
|
|
85
85
|
|
|
86
86
|
public static constructEnvelope(orig: ITelemetryItem, iKey: string, logger: IDiagnosticLogger, convertUndefined?: any): IEnvelope {
|
|
87
87
|
let envelope: ITelemetryItem;
|
|
@@ -235,10 +235,8 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
|
|
|
235
235
|
let ctx = createProcessTelemetryContext(null, config, core);
|
|
236
236
|
let senderConfig = ctx.getExtCfg(identifier, defaultAppInsightsChannelConfig);
|
|
237
237
|
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
configurable: true,
|
|
241
|
-
get: function() {
|
|
238
|
+
objDefine(_self, "_senderConfig", {
|
|
239
|
+
g: function() {
|
|
242
240
|
return senderConfig;
|
|
243
241
|
}
|
|
244
242
|
});
|
|
@@ -1152,10 +1150,8 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
|
|
|
1152
1150
|
_sessionStorageUsed = null;
|
|
1153
1151
|
_namePrefix = UNDEFINED_VALUE;
|
|
1154
1152
|
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
configurable: true,
|
|
1158
|
-
get: function() {
|
|
1153
|
+
objDefine(_self, "_senderConfig", {
|
|
1154
|
+
g: function() {
|
|
1159
1155
|
return objExtend({}, defaultAppInsightsChannelConfig);
|
|
1160
1156
|
}
|
|
1161
1157
|
});
|
package/types/Sender.d.ts
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, IDiagnosticLogger, IPlugin, IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain, SendRequestReason } from "@microsoft/applicationinsights-core-js";
|
|
1
|
+
import { IConfig, IEnvelope, ISample } from "@microsoft/applicationinsights-common";
|
|
2
|
+
import { BaseTelemetryPlugin, IAppInsightsCore, IChannelControls, IConfiguration, IDiagnosticLogger, IPlugin, IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain, SendRequestReason } from "@microsoft/applicationinsights-core-js";
|
|
3
3
|
import { IBackendResponse, ISenderConfig, XDomainRequest as IXDomainRequest } from "./Interfaces";
|
|
4
4
|
import { ISendBuffer } from "./SendBuffer";
|
|
5
5
|
export type SenderFunction = (payload: string[], isAsync: boolean) => void;
|
|
6
|
-
export declare class Sender extends BaseTelemetryPlugin implements
|
|
6
|
+
export declare class Sender extends BaseTelemetryPlugin implements IChannelControls {
|
|
7
7
|
static constructEnvelope(orig: ITelemetryItem, iKey: string, logger: IDiagnosticLogger, convertUndefined?: any): IEnvelope;
|
|
8
8
|
readonly priority: number;
|
|
9
9
|
readonly identifier: string;
|