@microsoft/applicationinsights-channel-js 2.8.0-beta.2203-08 → 2.8.0-beta.2203-11
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 +20 -8
- 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 +1 -30
- package/dist/applicationinsights-channel-js.api.md +0 -2
- package/dist/applicationinsights-channel-js.d.ts +1 -2
- package/dist/applicationinsights-channel-js.js +20 -8
- 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 +1 -2
- 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/Offline.js +1 -1
- package/dist-esm/SendBuffer.js +1 -1
- package/dist-esm/Sender.js +4 -2
- package/dist-esm/Sender.js.map +1 -1
- package/dist-esm/Serializer.js +1 -1
- package/dist-esm/TelemetryProcessors/Sample.js +3 -3
- package/dist-esm/TelemetryProcessors/Sample.js.map +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
- package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
- package/dist-esm/applicationinsights-channel-js.js +1 -1
- package/package.json +4 -4
- package/src/EnvelopeCreator.ts +2 -2
- package/src/Sender.ts +14 -14
- package/src/Serializer.ts +4 -8
- package/src/TelemetryProcessors/Sample.ts +1 -1
- package/src/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.ts +3 -1
- package/types/Sender.d.ts +0 -1
- package/types/TelemetryProcessors/Sample.d.ts +2 -2
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.19.
|
|
4
|
+
"toolVersion": "7.19.5",
|
|
5
5
|
"schemaVersion": 1004,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -1183,35 +1183,6 @@
|
|
|
1183
1183
|
"parameters": [],
|
|
1184
1184
|
"name": "resume"
|
|
1185
1185
|
},
|
|
1186
|
-
{
|
|
1187
|
-
"kind": "Method",
|
|
1188
|
-
"canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#teardown:member(1)",
|
|
1189
|
-
"docComment": "",
|
|
1190
|
-
"excerptTokens": [
|
|
1191
|
-
{
|
|
1192
|
-
"kind": "Content",
|
|
1193
|
-
"text": "teardown(): "
|
|
1194
|
-
},
|
|
1195
|
-
{
|
|
1196
|
-
"kind": "Content",
|
|
1197
|
-
"text": "void"
|
|
1198
|
-
},
|
|
1199
|
-
{
|
|
1200
|
-
"kind": "Content",
|
|
1201
|
-
"text": ";"
|
|
1202
|
-
}
|
|
1203
|
-
],
|
|
1204
|
-
"isOptional": false,
|
|
1205
|
-
"isStatic": false,
|
|
1206
|
-
"returnTypeTokenRange": {
|
|
1207
|
-
"startIndex": 1,
|
|
1208
|
-
"endIndex": 2
|
|
1209
|
-
},
|
|
1210
|
-
"releaseTag": "Public",
|
|
1211
|
-
"overloadIndex": 1,
|
|
1212
|
-
"parameters": [],
|
|
1213
|
-
"name": "teardown"
|
|
1214
|
-
},
|
|
1215
1186
|
{
|
|
1216
1187
|
"kind": "Method",
|
|
1217
1188
|
"canonicalReference": "@microsoft/applicationinsights-channel-js!Sender#triggerSend:member(1)",
|
|
@@ -49,8 +49,6 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
|
|
|
49
49
|
_sender: SenderFunction;
|
|
50
50
|
// Warning: (ae-forgotten-export) The symbol "ISenderConfig" needs to be exported by the entry point applicationinsights-channel-js.d.ts
|
|
51
51
|
readonly _senderConfig: ISenderConfig;
|
|
52
|
-
// (undocumented)
|
|
53
|
-
teardown(): void;
|
|
54
52
|
triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void;
|
|
55
53
|
// Warning: (ae-forgotten-export) The symbol "XDomainRequest" needs to be exported by the entry point applicationinsights-channel-js.d.ts
|
|
56
54
|
_xdrOnLoad(xdr: XDomainRequest, payload: string[]): void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-
|
|
2
|
+
* Microsoft Application Insights JavaScript SDK Channel, 2.8.0-beta.2203-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -194,7 +194,6 @@ declare namespace ApplicationInsights {
|
|
|
194
194
|
* Will not flush if the Send has been paused.
|
|
195
195
|
*/
|
|
196
196
|
onunloadFlush(): void;
|
|
197
|
-
teardown(): void;
|
|
198
197
|
initialize(config: IConfiguration & IConfig, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain): void;
|
|
199
198
|
processTelemetry(telemetryItem: ITelemetryItem, itemCtx?: IProcessTelemetryContext): void;
|
|
200
199
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Channel, 2.8.0-beta.2203-
|
|
2
|
+
* Application Insights JavaScript SDK - Channel, 2.8.0-beta.2203-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -75,7 +75,9 @@
|
|
|
75
75
|
var __assignFn = ObjAssign || __objAssignFnImpl;
|
|
76
76
|
var extendStaticsFn = function (d, b) {
|
|
77
77
|
extendStaticsFn = ObjClass["setPrototypeOf"] ||
|
|
78
|
-
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
78
|
+
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
79
|
+
d.__proto__ = b;
|
|
80
|
+
}) ||
|
|
79
81
|
function (d, b) {
|
|
80
82
|
for (var p in b) {
|
|
81
83
|
if (b[strShimHasOwnProperty](p)) {
|
|
@@ -90,7 +92,9 @@
|
|
|
90
92
|
throwTypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
91
93
|
}
|
|
92
94
|
extendStaticsFn(d, b);
|
|
93
|
-
function __() {
|
|
95
|
+
function __() {
|
|
96
|
+
this.constructor = d;
|
|
97
|
+
}
|
|
94
98
|
d[strShimPrototype] = b === null ? objCreateFn(b) : (__[strShimPrototype] = b[strShimPrototype], new __());
|
|
95
99
|
}
|
|
96
100
|
|
|
@@ -1251,7 +1255,7 @@
|
|
|
1251
1255
|
}
|
|
1252
1256
|
|
|
1253
1257
|
var _objDefineProperty = ObjDefineProperty;
|
|
1254
|
-
var version = "2.
|
|
1258
|
+
var version = "2.8.0-beta.2203-11";
|
|
1255
1259
|
var instanceName = "." + newId(6);
|
|
1256
1260
|
var _dataUid = 0;
|
|
1257
1261
|
function _createAccessor(target, prop, value) {
|
|
@@ -1349,7 +1353,9 @@
|
|
|
1349
1353
|
var context = {
|
|
1350
1354
|
_next: _moveNext,
|
|
1351
1355
|
ctx: {
|
|
1352
|
-
core: function () {
|
|
1356
|
+
core: function () {
|
|
1357
|
+
return core;
|
|
1358
|
+
},
|
|
1353
1359
|
diagLog: function () {
|
|
1354
1360
|
return safeGetLogger(core, config);
|
|
1355
1361
|
},
|
|
@@ -1849,6 +1855,8 @@
|
|
|
1849
1855
|
var strEvents = "events";
|
|
1850
1856
|
createUniqueNamespace("aiEvtPageHide");
|
|
1851
1857
|
createUniqueNamespace("aiEvtPageShow");
|
|
1858
|
+
var rRemoveEmptyNs = /\.[\.]+/g;
|
|
1859
|
+
var rRemoveTrailingEmptyNs = /[\.]+$/;
|
|
1852
1860
|
var _guid = 1;
|
|
1853
1861
|
var elmNodeData = createElmNodeData("events");
|
|
1854
1862
|
var eventNamespace = /^([^.]*)(?:\.(.+)|)/;
|
|
@@ -1883,10 +1891,10 @@
|
|
|
1883
1891
|
eventName = (eventName || "") + theNamespace_1;
|
|
1884
1892
|
}
|
|
1885
1893
|
}
|
|
1886
|
-
var parsedEvent = (eventNamespace.exec(eventName) || []);
|
|
1894
|
+
var parsedEvent = (eventNamespace.exec(eventName || "") || []);
|
|
1887
1895
|
return {
|
|
1888
1896
|
type: parsedEvent[1],
|
|
1889
|
-
ns: ((parsedEvent[2] || "").split(".").sort()).join(".")
|
|
1897
|
+
ns: ((parsedEvent[2] || "").replace(rRemoveEmptyNs, ".").replace(rRemoveTrailingEmptyNs, "").split(".").sort()).join(".")
|
|
1890
1898
|
};
|
|
1891
1899
|
}
|
|
1892
1900
|
function _getRegisteredEvents(target, evtName, addDefault) {
|
|
@@ -1959,6 +1967,7 @@
|
|
|
1959
1967
|
else {
|
|
1960
1968
|
newNamespaces = [theNamespace, namespaces];
|
|
1961
1969
|
}
|
|
1970
|
+
newNamespaces = (_getEvtNamespace("xx", newNamespaces).ns).split(".");
|
|
1962
1971
|
}
|
|
1963
1972
|
else {
|
|
1964
1973
|
newNamespaces = theNamespace;
|
|
@@ -3586,7 +3595,7 @@
|
|
|
3586
3595
|
}
|
|
3587
3596
|
}
|
|
3588
3597
|
var EnvelopeCreator = {
|
|
3589
|
-
Version: "2.8.0-beta.2203-
|
|
3598
|
+
Version: "2.8.0-beta.2203-11"
|
|
3590
3599
|
};
|
|
3591
3600
|
function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
|
|
3592
3601
|
EnvelopeCreatorInit(logger, telemetryItem);
|
|
@@ -4144,6 +4153,9 @@
|
|
|
4144
4153
|
_headers[name] = value;
|
|
4145
4154
|
};
|
|
4146
4155
|
_self.initialize = function (config, core, extensions, pluginChain) {
|
|
4156
|
+
if (_self.isInitialized()) {
|
|
4157
|
+
_throwInternal(_self.diagLog(), LoggingSeverity.CRITICAL, _InternalMessageId.SenderNotInitialized, "Sender is already initialized");
|
|
4158
|
+
}
|
|
4147
4159
|
_base.initialize(config, core, extensions, pluginChain);
|
|
4148
4160
|
var ctx = _self._getTelCtx();
|
|
4149
4161
|
var identifier = _self.identifier;
|