@microsoft/applicationinsights-web-basic 2.8.0-beta.2203-15 → 2.8.0-nightly.2204-04

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.
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.8.0-beta.2203-15
2
+ * Application Insights JavaScript Web SDK - Basic, 2.8.0-nightly.2204-04
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -1464,7 +1464,7 @@
1464
1464
  }
1465
1465
 
1466
1466
  var _objDefineProperty = ObjDefineProperty;
1467
- var version = "2.8.0-beta.2203-15";
1467
+ var version = "2.8.0-nightly.2204-04";
1468
1468
  var instanceName = "." + newId(6);
1469
1469
  var _dataUid = 0;
1470
1470
  function _createAccessor(target, prop, value) {
@@ -3869,37 +3869,17 @@
3869
3869
  };
3870
3870
  }
3871
3871
 
3872
- var Base = /** @class */ (function () {
3873
- function Base() {
3874
- }
3875
- return Base;
3876
- }());
3877
-
3878
- var Data$1 = /** @class */ (function (_super) {
3879
- __extendsFn(Data, _super);
3880
- function Data() {
3881
- return _super.call(this) || this;
3882
- }
3883
- return Data;
3884
- }(Base));
3885
-
3886
- var Envelope$1 = /** @class */ (function () {
3887
- function Envelope() {
3888
- this.ver = 1;
3889
- this.sampleRate = 100.0;
3890
- this.tags = {};
3891
- }
3892
- return Envelope;
3893
- }());
3894
-
3895
- var Envelope = /** @class */ (function (_super) {
3896
- __extendsFn(Envelope, _super);
3872
+ var Envelope = /** @class */ (function () {
3897
3873
  function Envelope(logger, data, name) {
3898
- var _this = _super.call(this) || this;
3899
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
3900
- _this.data = data;
3901
- _this.time = toISOString(new Date());
3902
- _this.aiDataContract = {
3874
+ var _this = this;
3875
+ var _self = this;
3876
+ _self.ver = 1;
3877
+ _self.sampleRate = 100.0;
3878
+ _self.tags = {};
3879
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
3880
+ _self.data = data;
3881
+ _self.time = toISOString(new Date());
3882
+ _self.aiDataContract = {
3903
3883
  time: 1 ,
3904
3884
  iKey: 1 ,
3905
3885
  name: 1 ,
@@ -3909,62 +3889,27 @@
3909
3889
  tags: 1 ,
3910
3890
  data: 1
3911
3891
  };
3912
- return _this;
3913
3892
  }
3914
3893
  return Envelope;
3915
- }(Envelope$1));
3916
-
3917
- var EventData = /** @class */ (function () {
3918
- function EventData() {
3919
- this.ver = 2;
3920
- this.properties = {};
3921
- this.measurements = {};
3922
- }
3923
- return EventData;
3924
3894
  }());
3925
3895
 
3926
- var Event = /** @class */ (function (_super) {
3927
- __extendsFn(Event, _super);
3896
+ var Event = /** @class */ (function () {
3928
3897
  function Event(logger, name, properties, measurements) {
3929
- var _this = _super.call(this) || this;
3930
- _this.aiDataContract = {
3898
+ this.aiDataContract = {
3931
3899
  ver: 1 ,
3932
3900
  name: 1 ,
3933
3901
  properties: 0 ,
3934
3902
  measurements: 0
3935
3903
  };
3936
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
3937
- _this.properties = dataSanitizeProperties(logger, properties);
3938
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
3939
- return _this;
3904
+ var _self = this;
3905
+ _self.ver = 2;
3906
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
3907
+ _self.properties = dataSanitizeProperties(logger, properties);
3908
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
3940
3909
  }
3941
3910
  Event.envelopeType = "Microsoft.ApplicationInsights.{0}.Event";
3942
3911
  Event.dataType = "EventData";
3943
3912
  return Event;
3944
- }(EventData));
3945
-
3946
- var StackFrame = /** @class */ (function () {
3947
- function StackFrame() {
3948
- }
3949
- return StackFrame;
3950
- }());
3951
-
3952
- var ExceptionData = /** @class */ (function () {
3953
- function ExceptionData() {
3954
- this.ver = 2;
3955
- this.exceptions = [];
3956
- this.properties = {};
3957
- this.measurements = {};
3958
- }
3959
- return ExceptionData;
3960
- }());
3961
-
3962
- var ExceptionDetails = /** @class */ (function () {
3963
- function ExceptionDetails() {
3964
- this.hasFullStack = true;
3965
- this.parsedStack = [];
3966
- }
3967
- return ExceptionDetails;
3968
3913
  }());
3969
3914
 
3970
3915
  var NoMethod = "<no_method>";
@@ -4208,50 +4153,48 @@
4208
4153
  }
4209
4154
  return "" + (errorObj || "");
4210
4155
  }
4211
- var Exception = /** @class */ (function (_super) {
4212
- __extendsFn(Exception, _super);
4156
+ var Exception = /** @class */ (function () {
4213
4157
  function Exception(logger, exception, properties, measurements, severityLevel, id) {
4214
- var _this = _super.call(this) || this;
4215
- _this.aiDataContract = {
4158
+ this.aiDataContract = {
4216
4159
  ver: 1 ,
4217
4160
  exceptions: 1 ,
4218
4161
  severityLevel: 0 ,
4219
4162
  properties: 0 ,
4220
4163
  measurements: 0
4221
4164
  };
4165
+ var _self = this;
4166
+ _self.ver = 2;
4222
4167
  if (!_isExceptionInternal(exception)) {
4223
4168
  if (!properties) {
4224
4169
  properties = {};
4225
4170
  }
4226
- _this.exceptions = [new _ExceptionDetails(logger, exception, properties)];
4227
- _this.properties = dataSanitizeProperties(logger, properties);
4228
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
4171
+ _self.exceptions = [new _ExceptionDetails(logger, exception, properties)];
4172
+ _self.properties = dataSanitizeProperties(logger, properties);
4173
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
4229
4174
  if (severityLevel) {
4230
- _this.severityLevel = severityLevel;
4175
+ _self.severityLevel = severityLevel;
4231
4176
  }
4232
4177
  if (id) {
4233
- _this.id = id;
4178
+ _self.id = id;
4234
4179
  }
4235
4180
  }
4236
4181
  else {
4237
- _this.exceptions = exception.exceptions;
4238
- _this.properties = exception.properties;
4239
- _this.measurements = exception.measurements;
4182
+ _self.exceptions = exception.exceptions || [];
4183
+ _self.properties = exception.properties;
4184
+ _self.measurements = exception.measurements;
4240
4185
  if (exception.severityLevel) {
4241
- _this.severityLevel = exception.severityLevel;
4186
+ _self.severityLevel = exception.severityLevel;
4242
4187
  }
4243
4188
  if (exception.id) {
4244
- _this.id = exception.id;
4189
+ _self.id = exception.id;
4245
4190
  }
4246
4191
  if (exception.problemGroup) {
4247
- _this.problemGroup = exception.problemGroup;
4192
+ _self.problemGroup = exception.problemGroup;
4248
4193
  }
4249
- _this.ver = 2;
4250
4194
  if (!isNullOrUndefined(exception.isManual)) {
4251
- _this.isManual = exception.isManual;
4195
+ _self.isManual = exception.isManual;
4252
4196
  }
4253
4197
  }
4254
- return _this;
4255
4198
  }
4256
4199
  Exception.CreateAutoException = function (message, url, lineNumber, columnNumber, error, evt, stack, errorSrc) {
4257
4200
  var errorType = _getErrorType(error || evt || message);
@@ -4305,12 +4248,10 @@
4305
4248
  Exception.dataType = "ExceptionData";
4306
4249
  Exception.formatError = _formatErrorCode;
4307
4250
  return Exception;
4308
- }(ExceptionData));
4309
- var _ExceptionDetails = /** @class */ (function (_super) {
4310
- __extendsFn(_ExceptionDetails, _super);
4251
+ }());
4252
+ var _ExceptionDetails = /** @class */ (function () {
4311
4253
  function _ExceptionDetails(logger, exception, properties) {
4312
- var _this = _super.call(this) || this;
4313
- _this.aiDataContract = {
4254
+ this.aiDataContract = {
4314
4255
  id: 0 ,
4315
4256
  outerId: 0 ,
4316
4257
  typeName: 1 ,
@@ -4319,41 +4260,42 @@
4319
4260
  stack: 0 ,
4320
4261
  parsedStack: 2
4321
4262
  };
4263
+ var _self = this;
4322
4264
  if (!_isExceptionDetailsInternal(exception)) {
4323
4265
  var error = exception;
4324
4266
  var evt = error && error.evt;
4325
4267
  if (!isError(error)) {
4326
4268
  error = error[strError] || evt || error;
4327
4269
  }
4328
- _this.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
4329
- _this.message = dataSanitizeMessage(logger, _formatMessage(exception || error, _this.typeName)) || strNotSpecified;
4270
+ _self.typeName = dataSanitizeString(logger, _getErrorType(error)) || strNotSpecified;
4271
+ _self.message = dataSanitizeMessage(logger, _formatMessage(exception || error, _self.typeName)) || strNotSpecified;
4330
4272
  var stack = exception[strStackDetails] || _getStackFromErrorObj(exception);
4331
- _this.parsedStack = _parseStack(stack);
4332
- _this[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
4333
- _this.hasFullStack = isArray(_this.parsedStack) && _this.parsedStack.length > 0;
4273
+ _self.parsedStack = _parseStack(stack);
4274
+ _self[strStack] = dataSanitizeException(logger, _formatStackTrace(stack));
4275
+ _self.hasFullStack = isArray(_self.parsedStack) && _self.parsedStack.length > 0;
4334
4276
  if (properties) {
4335
- properties.typeName = properties.typeName || _this.typeName;
4277
+ properties.typeName = properties.typeName || _self.typeName;
4336
4278
  }
4337
4279
  }
4338
4280
  else {
4339
- _this.typeName = exception.typeName;
4340
- _this.message = exception.message;
4341
- _this[strStack] = exception[strStack];
4342
- _this.parsedStack = exception.parsedStack;
4343
- _this.hasFullStack = exception.hasFullStack;
4281
+ _self.typeName = exception.typeName;
4282
+ _self.message = exception.message;
4283
+ _self[strStack] = exception[strStack];
4284
+ _self.parsedStack = exception.parsedStack || [];
4285
+ _self.hasFullStack = exception.hasFullStack;
4344
4286
  }
4345
- return _this;
4346
4287
  }
4347
4288
  _ExceptionDetails.prototype.toInterface = function () {
4348
- var parsedStack = this.parsedStack instanceof Array
4349
- && arrMap(this.parsedStack, function (frame) { return frame.toInterface(); });
4289
+ var _self = this;
4290
+ var parsedStack = _self.parsedStack instanceof Array
4291
+ && arrMap(_self.parsedStack, function (frame) { return frame.toInterface(); });
4350
4292
  var exceptionDetailsInterface = {
4351
- id: this.id,
4352
- outerId: this.outerId,
4353
- typeName: this.typeName,
4354
- message: this.message,
4355
- hasFullStack: this.hasFullStack,
4356
- stack: this[strStack],
4293
+ id: _self.id,
4294
+ outerId: _self.outerId,
4295
+ typeName: _self.typeName,
4296
+ message: _self.message,
4297
+ hasFullStack: _self.hasFullStack,
4298
+ stack: _self[strStack],
4357
4299
  parsedStack: parsedStack || undefined
4358
4300
  };
4359
4301
  return exceptionDetailsInterface;
@@ -4366,94 +4308,68 @@
4366
4308
  return exceptionDetails;
4367
4309
  };
4368
4310
  return _ExceptionDetails;
4369
- }(ExceptionDetails));
4370
- var _StackFrame = /** @class */ (function (_super) {
4371
- __extendsFn(_StackFrame, _super);
4311
+ }());
4312
+ var _StackFrame = /** @class */ (function () {
4372
4313
  function _StackFrame(sourceFrame, level) {
4373
- var _this = _super.call(this) || this;
4374
- _this.sizeInBytes = 0;
4375
- _this.aiDataContract = {
4314
+ this.aiDataContract = {
4376
4315
  level: 1 ,
4377
4316
  method: 1 ,
4378
4317
  assembly: 0 ,
4379
4318
  fileName: 0 ,
4380
4319
  line: 0
4381
4320
  };
4321
+ var _self = this;
4322
+ _self.sizeInBytes = 0;
4382
4323
  if (typeof sourceFrame === "string") {
4383
4324
  var frame = sourceFrame;
4384
- _this.level = level;
4385
- _this.method = NoMethod;
4386
- _this.assembly = strTrim(frame);
4387
- _this.fileName = "";
4388
- _this.line = 0;
4325
+ _self.level = level;
4326
+ _self.method = NoMethod;
4327
+ _self.assembly = strTrim(frame);
4328
+ _self.fileName = "";
4329
+ _self.line = 0;
4389
4330
  var matches = frame.match(_StackFrame.regex);
4390
4331
  if (matches && matches.length >= 5) {
4391
- _this.method = strTrim(matches[2]) || _this.method;
4392
- _this.fileName = strTrim(matches[4]);
4393
- _this.line = parseInt(matches[5]) || 0;
4332
+ _self.method = strTrim(matches[2]) || _self.method;
4333
+ _self.fileName = strTrim(matches[4]);
4334
+ _self.line = parseInt(matches[5]) || 0;
4394
4335
  }
4395
4336
  }
4396
4337
  else {
4397
- _this.level = sourceFrame.level;
4398
- _this.method = sourceFrame.method;
4399
- _this.assembly = sourceFrame.assembly;
4400
- _this.fileName = sourceFrame.fileName;
4401
- _this.line = sourceFrame.line;
4402
- _this.sizeInBytes = 0;
4403
- }
4404
- _this.sizeInBytes += _this.method.length;
4405
- _this.sizeInBytes += _this.fileName.length;
4406
- _this.sizeInBytes += _this.assembly.length;
4407
- _this.sizeInBytes += _StackFrame.baseSize;
4408
- _this.sizeInBytes += _this.level.toString().length;
4409
- _this.sizeInBytes += _this.line.toString().length;
4410
- return _this;
4338
+ _self.level = sourceFrame.level;
4339
+ _self.method = sourceFrame.method;
4340
+ _self.assembly = sourceFrame.assembly;
4341
+ _self.fileName = sourceFrame.fileName;
4342
+ _self.line = sourceFrame.line;
4343
+ _self.sizeInBytes = 0;
4344
+ }
4345
+ _self.sizeInBytes += _self.method.length;
4346
+ _self.sizeInBytes += _self.fileName.length;
4347
+ _self.sizeInBytes += _self.assembly.length;
4348
+ _self.sizeInBytes += _StackFrame.baseSize;
4349
+ _self.sizeInBytes += _self.level.toString().length;
4350
+ _self.sizeInBytes += _self.line.toString().length;
4411
4351
  }
4412
4352
  _StackFrame.CreateFromInterface = function (frame) {
4413
4353
  return new _StackFrame(frame, null );
4414
4354
  };
4415
4355
  _StackFrame.prototype.toInterface = function () {
4356
+ var _self = this;
4416
4357
  return {
4417
- level: this.level,
4418
- method: this.method,
4419
- assembly: this.assembly,
4420
- fileName: this.fileName,
4421
- line: this.line
4358
+ level: _self.level,
4359
+ method: _self.method,
4360
+ assembly: _self.assembly,
4361
+ fileName: _self.fileName,
4362
+ line: _self.line
4422
4363
  };
4423
4364
  };
4424
4365
  _StackFrame.regex = /^([\s]+at)?[\s]{0,50}([^\@\()]+?)[\s]{0,50}(\@|\()([^\(\n]+):([0-9]+):([0-9]+)(\)?)$/;
4425
4366
  _StackFrame.baseSize = 58;
4426
4367
  return _StackFrame;
4427
- }(StackFrame));
4428
-
4429
- var MetricData = /** @class */ (function () {
4430
- function MetricData() {
4431
- this.ver = 2;
4432
- this.metrics = [];
4433
- this.properties = {};
4434
- this.measurements = {};
4435
- }
4436
- return MetricData;
4437
- }());
4438
-
4439
- var DataPointType;
4440
- (function (DataPointType) {
4441
- DataPointType[DataPointType["Measurement"] = 0] = "Measurement";
4442
- DataPointType[DataPointType["Aggregation"] = 1] = "Aggregation";
4443
- })(DataPointType || (DataPointType = {}));
4444
-
4445
- var DataPoint$1 = /** @class */ (function () {
4446
- function DataPoint() {
4447
- this.kind = DataPointType.Measurement;
4448
- }
4449
- return DataPoint;
4450
4368
  }());
4451
4369
 
4452
- var DataPoint = /** @class */ (function (_super) {
4453
- __extendsFn(DataPoint, _super);
4370
+ var DataPoint = /** @class */ (function () {
4454
4371
  function DataPoint() {
4455
- var _this = _super !== null && _super.apply(this, arguments) || this;
4456
- _this.aiDataContract = {
4372
+ this.aiDataContract = {
4457
4373
  name: 1 ,
4458
4374
  kind: 0 ,
4459
4375
  value: 1 ,
@@ -4462,20 +4378,20 @@
4462
4378
  max: 0 ,
4463
4379
  stdDev: 0
4464
4380
  };
4465
- return _this;
4381
+ this.kind = 0 ;
4466
4382
  }
4467
4383
  return DataPoint;
4468
- }(DataPoint$1));
4384
+ }());
4469
4385
 
4470
- var Metric = /** @class */ (function (_super) {
4471
- __extendsFn(Metric, _super);
4386
+ var Metric = /** @class */ (function () {
4472
4387
  function Metric(logger, name, value, count, min, max, stdDev, properties, measurements) {
4473
- var _this = _super.call(this) || this;
4474
- _this.aiDataContract = {
4388
+ this.aiDataContract = {
4475
4389
  ver: 1 ,
4476
4390
  metrics: 1 ,
4477
4391
  properties: 0
4478
4392
  };
4393
+ var _self = this;
4394
+ _self.ver = 2;
4479
4395
  var dataPoint = new DataPoint();
4480
4396
  dataPoint.count = count > 0 ? count : undefined;
4481
4397
  dataPoint.max = isNaN(max) || max === null ? undefined : max;
@@ -4483,33 +4399,18 @@
4483
4399
  dataPoint.name = dataSanitizeString(logger, name) || strNotSpecified;
4484
4400
  dataPoint.value = value;
4485
4401
  dataPoint.stdDev = isNaN(stdDev) || stdDev === null ? undefined : stdDev;
4486
- _this.metrics = [dataPoint];
4487
- _this.properties = dataSanitizeProperties(logger, properties);
4488
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
4489
- return _this;
4402
+ _self.metrics = [dataPoint];
4403
+ _self.properties = dataSanitizeProperties(logger, properties);
4404
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
4490
4405
  }
4491
4406
  Metric.envelopeType = "Microsoft.ApplicationInsights.{0}.Metric";
4492
4407
  Metric.dataType = "MetricData";
4493
4408
  return Metric;
4494
- }(MetricData));
4495
-
4496
- var PageViewData = /** @class */ (function (_super) {
4497
- __extendsFn(PageViewData, _super);
4498
- function PageViewData() {
4499
- var _this = _super.call(this) || this;
4500
- _this.ver = 2;
4501
- _this.properties = {};
4502
- _this.measurements = {};
4503
- return _this;
4504
- }
4505
- return PageViewData;
4506
- }(EventData));
4409
+ }());
4507
4410
 
4508
- var PageView = /** @class */ (function (_super) {
4509
- __extendsFn(PageView, _super);
4411
+ var PageView = /** @class */ (function () {
4510
4412
  function PageView(logger, name, url, durationMs, properties, measurements, id) {
4511
- var _this = _super.call(this) || this;
4512
- _this.aiDataContract = {
4413
+ this.aiDataContract = {
4513
4414
  ver: 1 ,
4514
4415
  name: 0 ,
4515
4416
  url: 0 ,
@@ -4518,37 +4419,26 @@
4518
4419
  measurements: 0 ,
4519
4420
  id: 0
4520
4421
  };
4521
- _this.id = dataSanitizeId(logger, id);
4522
- _this.url = dataSanitizeUrl(logger, url);
4523
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
4422
+ var _self = this;
4423
+ _self.ver = 2;
4424
+ _self.id = dataSanitizeId(logger, id);
4425
+ _self.url = dataSanitizeUrl(logger, url);
4426
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
4524
4427
  if (!isNaN(durationMs)) {
4525
- _this.duration = msToTimeSpan(durationMs);
4428
+ _self.duration = msToTimeSpan(durationMs);
4526
4429
  }
4527
- _this.properties = dataSanitizeProperties(logger, properties);
4528
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
4529
- return _this;
4430
+ _self.properties = dataSanitizeProperties(logger, properties);
4431
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
4530
4432
  }
4531
4433
  PageView.envelopeType = "Microsoft.ApplicationInsights.{0}.Pageview";
4532
4434
  PageView.dataType = "PageviewData";
4533
4435
  return PageView;
4534
- }(PageViewData));
4535
-
4536
- var RemoteDependencyData$1 = /** @class */ (function () {
4537
- function RemoteDependencyData() {
4538
- this.ver = 2;
4539
- this.success = true;
4540
- this.properties = {};
4541
- this.measurements = {};
4542
- }
4543
- return RemoteDependencyData;
4544
4436
  }());
4545
4437
 
4546
- var RemoteDependencyData = /** @class */ (function (_super) {
4547
- __extendsFn(RemoteDependencyData, _super);
4438
+ var RemoteDependencyData = /** @class */ (function () {
4548
4439
  function RemoteDependencyData(logger, id, absoluteUrl, commandName, value, success, resultCode, method, requestAPI, correlationContext, properties, measurements) {
4549
4440
  if (requestAPI === void 0) { requestAPI = "Ajax"; }
4550
- var _this = _super.call(this) || this;
4551
- _this.aiDataContract = {
4441
+ this.aiDataContract = {
4552
4442
  id: 1 ,
4553
4443
  ver: 1 ,
4554
4444
  name: 0 ,
@@ -4571,77 +4461,54 @@
4571
4461
  commandName: 0 ,
4572
4462
  dependencyTypeName: 0
4573
4463
  };
4574
- _this.id = id;
4575
- _this.duration = msToTimeSpan(value);
4576
- _this.success = success;
4577
- _this.resultCode = resultCode + "";
4578
- _this.type = dataSanitizeString(logger, requestAPI);
4464
+ var _self = this;
4465
+ _self.ver = 2;
4466
+ _self.id = id;
4467
+ _self.duration = msToTimeSpan(value);
4468
+ _self.success = success;
4469
+ _self.resultCode = resultCode + "";
4470
+ _self.type = dataSanitizeString(logger, requestAPI);
4579
4471
  var dependencyFields = AjaxHelperParseDependencyPath(logger, absoluteUrl, method, commandName);
4580
- _this.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data;
4581
- _this.target = dataSanitizeString(logger, dependencyFields.target);
4472
+ _self.data = dataSanitizeUrl(logger, commandName) || dependencyFields.data;
4473
+ _self.target = dataSanitizeString(logger, dependencyFields.target);
4582
4474
  if (correlationContext) {
4583
- _this.target = "".concat(_this.target, " | ").concat(correlationContext);
4475
+ _self.target = "".concat(_self.target, " | ").concat(correlationContext);
4584
4476
  }
4585
- _this.name = dataSanitizeString(logger, dependencyFields.name);
4586
- _this.properties = dataSanitizeProperties(logger, properties);
4587
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
4588
- return _this;
4477
+ _self.name = dataSanitizeString(logger, dependencyFields.name);
4478
+ _self.properties = dataSanitizeProperties(logger, properties);
4479
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
4589
4480
  }
4590
4481
  RemoteDependencyData.envelopeType = "Microsoft.ApplicationInsights.{0}.RemoteDependency";
4591
4482
  RemoteDependencyData.dataType = "RemoteDependencyData";
4592
4483
  return RemoteDependencyData;
4593
- }(RemoteDependencyData$1));
4594
-
4595
- var MessageData = /** @class */ (function () {
4596
- function MessageData() {
4597
- this.ver = 2;
4598
- this.properties = {};
4599
- this.measurements = {};
4600
- }
4601
- return MessageData;
4602
4484
  }());
4603
4485
 
4604
- var Trace = /** @class */ (function (_super) {
4605
- __extendsFn(Trace, _super);
4486
+ var Trace = /** @class */ (function () {
4606
4487
  function Trace(logger, message, severityLevel, properties, measurements) {
4607
- var _this = _super.call(this) || this;
4608
- _this.aiDataContract = {
4488
+ this.aiDataContract = {
4609
4489
  ver: 1 ,
4610
4490
  message: 1 ,
4611
4491
  severityLevel: 0 ,
4612
4492
  properties: 0
4613
4493
  };
4494
+ var _self = this;
4495
+ _self.ver = 2;
4614
4496
  message = message || strNotSpecified;
4615
- _this.message = dataSanitizeMessage(logger, message);
4616
- _this.properties = dataSanitizeProperties(logger, properties);
4617
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
4497
+ _self.message = dataSanitizeMessage(logger, message);
4498
+ _self.properties = dataSanitizeProperties(logger, properties);
4499
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
4618
4500
  if (severityLevel) {
4619
- _this.severityLevel = severityLevel;
4501
+ _self.severityLevel = severityLevel;
4620
4502
  }
4621
- return _this;
4622
4503
  }
4623
4504
  Trace.envelopeType = "Microsoft.ApplicationInsights.{0}.Message";
4624
4505
  Trace.dataType = "MessageData";
4625
4506
  return Trace;
4626
- }(MessageData));
4627
-
4628
- var PageViewPerfData = /** @class */ (function (_super) {
4629
- __extendsFn(PageViewPerfData, _super);
4630
- function PageViewPerfData() {
4631
- var _this = _super.call(this) || this;
4632
- _this.ver = 2;
4633
- _this.properties = {};
4634
- _this.measurements = {};
4635
- return _this;
4636
- }
4637
- return PageViewPerfData;
4638
- }(PageViewData));
4507
+ }());
4639
4508
 
4640
- var PageViewPerformance = /** @class */ (function (_super) {
4641
- __extendsFn(PageViewPerformance, _super);
4509
+ var PageViewPerformance = /** @class */ (function () {
4642
4510
  function PageViewPerformance(logger, name, url, unused, properties, measurements, cs4BaseData) {
4643
- var _this = _super.call(this) || this;
4644
- _this.aiDataContract = {
4511
+ this.aiDataContract = {
4645
4512
  ver: 1 ,
4646
4513
  name: 0 ,
4647
4514
  url: 0 ,
@@ -4654,39 +4521,37 @@
4654
4521
  properties: 0 ,
4655
4522
  measurements: 0
4656
4523
  };
4657
- _this.url = dataSanitizeUrl(logger, url);
4658
- _this.name = dataSanitizeString(logger, name) || strNotSpecified;
4659
- _this.properties = dataSanitizeProperties(logger, properties);
4660
- _this.measurements = dataSanitizeMeasurements(logger, measurements);
4524
+ var _self = this;
4525
+ _self.ver = 2;
4526
+ _self.url = dataSanitizeUrl(logger, url);
4527
+ _self.name = dataSanitizeString(logger, name) || strNotSpecified;
4528
+ _self.properties = dataSanitizeProperties(logger, properties);
4529
+ _self.measurements = dataSanitizeMeasurements(logger, measurements);
4661
4530
  if (cs4BaseData) {
4662
- _this.domProcessing = cs4BaseData.domProcessing;
4663
- _this.duration = cs4BaseData.duration;
4664
- _this.networkConnect = cs4BaseData.networkConnect;
4665
- _this.perfTotal = cs4BaseData.perfTotal;
4666
- _this.receivedResponse = cs4BaseData.receivedResponse;
4667
- _this.sentRequest = cs4BaseData.sentRequest;
4531
+ _self.domProcessing = cs4BaseData.domProcessing;
4532
+ _self.duration = cs4BaseData.duration;
4533
+ _self.networkConnect = cs4BaseData.networkConnect;
4534
+ _self.perfTotal = cs4BaseData.perfTotal;
4535
+ _self.receivedResponse = cs4BaseData.receivedResponse;
4536
+ _self.sentRequest = cs4BaseData.sentRequest;
4668
4537
  }
4669
- return _this;
4670
4538
  }
4671
4539
  PageViewPerformance.envelopeType = "Microsoft.ApplicationInsights.{0}.PageviewPerformance";
4672
4540
  PageViewPerformance.dataType = "PageviewPerformanceData";
4673
4541
  return PageViewPerformance;
4674
- }(PageViewPerfData));
4542
+ }());
4675
4543
 
4676
- var Data = /** @class */ (function (_super) {
4677
- __extendsFn(Data, _super);
4544
+ var Data = /** @class */ (function () {
4678
4545
  function Data(baseType, data) {
4679
- var _this = _super.call(this) || this;
4680
- _this.aiDataContract = {
4546
+ this.aiDataContract = {
4681
4547
  baseType: 1 ,
4682
4548
  baseData: 1
4683
4549
  };
4684
- _this.baseType = baseType;
4685
- _this.baseData = data;
4686
- return _this;
4550
+ this.baseType = baseType;
4551
+ this.baseData = data;
4687
4552
  }
4688
4553
  return Data;
4689
- }(Data$1));
4554
+ }());
4690
4555
 
4691
4556
  exports.SeverityLevel = void 0;
4692
4557
  (function (SeverityLevel) {
@@ -5058,7 +4923,7 @@
5058
4923
  }
5059
4924
  }
5060
4925
  var EnvelopeCreator = {
5061
- Version: "2.8.0-beta.2203-15"
4926
+ Version: "2.8.0-nightly.2204-04"
5062
4927
  };
5063
4928
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
5064
4929
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -6272,4 +6137,4 @@
6272
6137
  (function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
6273
6138
 
6274
6139
  }));
6275
- //# sourceMappingURL=aib.2.8.0-beta.2203-15.js.map
6140
+ //# sourceMappingURL=aib.2.8.0-nightly.2204-04.js.map