@microsoft/applicationinsights-web-basic 2.8.0-nightly.2204-06 → 2.8.0-nightly.2204-07

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.
@@ -2960,6 +2960,126 @@
2960
2960
  "endIndex": 2
2961
2961
  }
2962
2962
  },
2963
+ {
2964
+ "kind": "Enum",
2965
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel:enum",
2966
+ "docComment": "/**\n * Defines the level of severity for the event.\n */\n",
2967
+ "excerptTokens": [
2968
+ {
2969
+ "kind": "Content",
2970
+ "text": "export declare const enum eSeverityLevel "
2971
+ }
2972
+ ],
2973
+ "releaseTag": "Public",
2974
+ "name": "eSeverityLevel",
2975
+ "members": [
2976
+ {
2977
+ "kind": "EnumMember",
2978
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel.Critical:member",
2979
+ "docComment": "",
2980
+ "excerptTokens": [
2981
+ {
2982
+ "kind": "Content",
2983
+ "text": "Critical = "
2984
+ },
2985
+ {
2986
+ "kind": "Content",
2987
+ "text": "4"
2988
+ }
2989
+ ],
2990
+ "releaseTag": "Public",
2991
+ "name": "Critical",
2992
+ "initializerTokenRange": {
2993
+ "startIndex": 1,
2994
+ "endIndex": 2
2995
+ }
2996
+ },
2997
+ {
2998
+ "kind": "EnumMember",
2999
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel.Error:member",
3000
+ "docComment": "",
3001
+ "excerptTokens": [
3002
+ {
3003
+ "kind": "Content",
3004
+ "text": "Error = "
3005
+ },
3006
+ {
3007
+ "kind": "Content",
3008
+ "text": "3"
3009
+ }
3010
+ ],
3011
+ "releaseTag": "Public",
3012
+ "name": "Error",
3013
+ "initializerTokenRange": {
3014
+ "startIndex": 1,
3015
+ "endIndex": 2
3016
+ }
3017
+ },
3018
+ {
3019
+ "kind": "EnumMember",
3020
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel.Information:member",
3021
+ "docComment": "",
3022
+ "excerptTokens": [
3023
+ {
3024
+ "kind": "Content",
3025
+ "text": "Information = "
3026
+ },
3027
+ {
3028
+ "kind": "Content",
3029
+ "text": "1"
3030
+ }
3031
+ ],
3032
+ "releaseTag": "Public",
3033
+ "name": "Information",
3034
+ "initializerTokenRange": {
3035
+ "startIndex": 1,
3036
+ "endIndex": 2
3037
+ }
3038
+ },
3039
+ {
3040
+ "kind": "EnumMember",
3041
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel.Verbose:member",
3042
+ "docComment": "",
3043
+ "excerptTokens": [
3044
+ {
3045
+ "kind": "Content",
3046
+ "text": "Verbose = "
3047
+ },
3048
+ {
3049
+ "kind": "Content",
3050
+ "text": "0"
3051
+ }
3052
+ ],
3053
+ "releaseTag": "Public",
3054
+ "name": "Verbose",
3055
+ "initializerTokenRange": {
3056
+ "startIndex": 1,
3057
+ "endIndex": 2
3058
+ }
3059
+ },
3060
+ {
3061
+ "kind": "EnumMember",
3062
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel.Warning:member",
3063
+ "docComment": "",
3064
+ "excerptTokens": [
3065
+ {
3066
+ "kind": "Content",
3067
+ "text": "Warning = "
3068
+ },
3069
+ {
3070
+ "kind": "Content",
3071
+ "text": "2"
3072
+ }
3073
+ ],
3074
+ "releaseTag": "Public",
3075
+ "name": "Warning",
3076
+ "initializerTokenRange": {
3077
+ "startIndex": 1,
3078
+ "endIndex": 2
3079
+ }
3080
+ }
3081
+ ]
3082
+ },
2963
3083
  {
2964
3084
  "kind": "Interface",
2965
3085
  "canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore:interface",
@@ -6886,7 +7006,7 @@
6886
7006
  {
6887
7007
  "kind": "Reference",
6888
7008
  "text": "SeverityLevel",
6889
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel:enum"
7009
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel:type"
6890
7010
  },
6891
7011
  {
6892
7012
  "kind": "Content",
@@ -8381,124 +8501,73 @@
8381
8501
  ]
8382
8502
  },
8383
8503
  {
8384
- "kind": "Enum",
8385
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel:enum",
8386
- "docComment": "/**\n * Defines the level of severity for the event.\n */\n",
8504
+ "kind": "TypeAlias",
8505
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel:type",
8506
+ "docComment": "",
8387
8507
  "excerptTokens": [
8388
8508
  {
8389
8509
  "kind": "Content",
8390
- "text": "export declare enum SeverityLevel "
8510
+ "text": "export declare type SeverityLevel = "
8511
+ },
8512
+ {
8513
+ "kind": "Content",
8514
+ "text": "number | "
8515
+ },
8516
+ {
8517
+ "kind": "Reference",
8518
+ "text": "eSeverityLevel",
8519
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel:enum"
8520
+ },
8521
+ {
8522
+ "kind": "Content",
8523
+ "text": ";"
8391
8524
  }
8392
8525
  ],
8393
8526
  "releaseTag": "Public",
8394
8527
  "name": "SeverityLevel",
8395
- "members": [
8528
+ "typeTokenRange": {
8529
+ "startIndex": 1,
8530
+ "endIndex": 3
8531
+ }
8532
+ },
8533
+ {
8534
+ "kind": "Variable",
8535
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel:var",
8536
+ "docComment": "/**\n * Defines the level of severity for the event.\n */\n",
8537
+ "excerptTokens": [
8396
8538
  {
8397
- "kind": "EnumMember",
8398
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel.Critical:member",
8399
- "docComment": "",
8400
- "excerptTokens": [
8401
- {
8402
- "kind": "Content",
8403
- "text": "Critical = "
8404
- },
8405
- {
8406
- "kind": "Content",
8407
- "text": "4"
8408
- }
8409
- ],
8410
- "releaseTag": "Public",
8411
- "name": "Critical",
8412
- "initializerTokenRange": {
8413
- "startIndex": 1,
8414
- "endIndex": 2
8415
- }
8539
+ "kind": "Content",
8540
+ "text": "SeverityLevel: "
8416
8541
  },
8417
8542
  {
8418
- "kind": "EnumMember",
8419
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel.Error:member",
8420
- "docComment": "",
8421
- "excerptTokens": [
8422
- {
8423
- "kind": "Content",
8424
- "text": "Error = "
8425
- },
8426
- {
8427
- "kind": "Content",
8428
- "text": "3"
8429
- }
8430
- ],
8431
- "releaseTag": "Public",
8432
- "name": "Error",
8433
- "initializerTokenRange": {
8434
- "startIndex": 1,
8435
- "endIndex": 2
8436
- }
8543
+ "kind": "Content",
8544
+ "text": "import(\"@microsoft/applicationinsights-core-js\")."
8437
8545
  },
8438
8546
  {
8439
- "kind": "EnumMember",
8440
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel.Information:member",
8441
- "docComment": "",
8442
- "excerptTokens": [
8443
- {
8444
- "kind": "Content",
8445
- "text": "Information = "
8446
- },
8447
- {
8448
- "kind": "Content",
8449
- "text": "1"
8450
- }
8451
- ],
8452
- "releaseTag": "Public",
8453
- "name": "Information",
8454
- "initializerTokenRange": {
8455
- "startIndex": 1,
8456
- "endIndex": 2
8457
- }
8547
+ "kind": "Reference",
8548
+ "text": "EnumValue",
8549
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!EnumValue:type"
8458
8550
  },
8459
8551
  {
8460
- "kind": "EnumMember",
8461
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel.Verbose:member",
8462
- "docComment": "",
8463
- "excerptTokens": [
8464
- {
8465
- "kind": "Content",
8466
- "text": "Verbose = "
8467
- },
8468
- {
8469
- "kind": "Content",
8470
- "text": "0"
8471
- }
8472
- ],
8473
- "releaseTag": "Public",
8474
- "name": "Verbose",
8475
- "initializerTokenRange": {
8476
- "startIndex": 1,
8477
- "endIndex": 2
8478
- }
8552
+ "kind": "Content",
8553
+ "text": "<typeof "
8479
8554
  },
8480
8555
  {
8481
- "kind": "EnumMember",
8482
- "canonicalReference": "@microsoft/applicationinsights-web-basic!SeverityLevel.Warning:member",
8483
- "docComment": "",
8484
- "excerptTokens": [
8485
- {
8486
- "kind": "Content",
8487
- "text": "Warning = "
8488
- },
8489
- {
8490
- "kind": "Content",
8491
- "text": "2"
8492
- }
8493
- ],
8494
- "releaseTag": "Public",
8495
- "name": "Warning",
8496
- "initializerTokenRange": {
8497
- "startIndex": 1,
8498
- "endIndex": 2
8499
- }
8556
+ "kind": "Reference",
8557
+ "text": "eSeverityLevel",
8558
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel:enum"
8559
+ },
8560
+ {
8561
+ "kind": "Content",
8562
+ "text": ">"
8500
8563
  }
8501
- ]
8564
+ ],
8565
+ "releaseTag": "Public",
8566
+ "name": "SeverityLevel",
8567
+ "variableTypeTokenRange": {
8568
+ "startIndex": 1,
8569
+ "endIndex": 6
8570
+ }
8502
8571
  },
8503
8572
  {
8504
8573
  "kind": "Function",
@@ -218,6 +218,20 @@ export const enum _eInternalMessageId {
218
218
  UrlTooLong = 66
219
219
  }
220
220
 
221
+ // @public
222
+ export const enum eSeverityLevel {
223
+ // (undocumented)
224
+ Critical = 4,
225
+ // (undocumented)
226
+ Error = 3,
227
+ // (undocumented)
228
+ Information = 1,
229
+ // (undocumented)
230
+ Verbose = 0,
231
+ // (undocumented)
232
+ Warning = 2
233
+ }
234
+
221
235
  // Warning: (ae-forgotten-export) The symbol "IPerfManagerProvider" needs to be exported by the entry point index.d.ts
222
236
  //
223
237
  // @public (undocumented)
@@ -504,18 +518,10 @@ export const enum SendRequestReason {
504
518
  }
505
519
 
506
520
  // @public
507
- export enum SeverityLevel {
508
- // (undocumented)
509
- Critical = 4,
510
- // (undocumented)
511
- Error = 3,
512
- // (undocumented)
513
- Information = 1,
514
- // (undocumented)
515
- Verbose = 0,
516
- // (undocumented)
517
- Warning = 2
518
- }
521
+ export const SeverityLevel: EnumValue<typeof eSeverityLevel>;
522
+
523
+ // @public (undocumented)
524
+ export type SeverityLevel = number | eSeverityLevel;
519
525
 
520
526
  // @public (undocumented)
521
527
  export function throwError(message: string): never;
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft.ApplicationInsights, 2.8.0-nightly.2204-06
2
+ * Microsoft.ApplicationInsights, 2.8.0-nightly.2204-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -289,11 +289,7 @@ declare namespace ApplicationInsights {
289
289
  */
290
290
  const CoreUtils: ICoreUtils;
291
291
 
292
- const DistributedTracingModes: EnumValue< {
293
- AI: number;
294
- AI_AND_W3C: number;
295
- W3C: number;
296
- }>;
292
+ const DistributedTracingModes: EnumValue<typeof eDistributedTracingModes>;
297
293
 
298
294
  type DistributedTracingModes = number | eDistributedTracingModes;
299
295
 
@@ -412,6 +408,17 @@ declare namespace ApplicationInsights {
412
408
  readonly [key in keyof E]: E[key];
413
409
  };
414
410
 
411
+ /**
412
+ * Defines the level of severity for the event.
413
+ */
414
+ const enum eSeverityLevel {
415
+ Verbose = 0,
416
+ Information = 1,
417
+ Warning = 2,
418
+ Error = 3,
419
+ Critical = 4
420
+ }
421
+
415
422
  const enum GetExtCfgMergeType {
416
423
  None = 0,
417
424
  MergeDefaultOnly = 1,
@@ -827,7 +834,7 @@ declare namespace ApplicationInsights {
827
834
  */
828
835
  enableSessionStorageBuffer?: boolean;
829
836
  /**
830
- * @deprecated Use either disableCookiesUsage or specify a cookieMgrCfg with the enabled value set.
837
+ * @deprecated Use either disableCookiesUsage or specify a cookieCfg with the enabled value set.
831
838
  * If true, the SDK will not store or read any data from cookies. Default is false. As this field is being deprecated, when both
832
839
  * isCookieUseDisabled and disableCookiesUsage are used disableCookiesUsage will take precedent.
833
840
  * @defaultValue false
@@ -835,7 +842,7 @@ declare namespace ApplicationInsights {
835
842
  isCookieUseDisabled?: boolean;
836
843
  /**
837
844
  * If true, the SDK will not store or read any data from cookies. Default is false.
838
- * If you have also specified a cookieMgrCfg then enabled property (if specified) will take precedent over this value.
845
+ * If you have also specified a cookieCfg then enabled property (if specified) will take precedent over this value.
839
846
  * @defaultValue false
840
847
  */
841
848
  disableCookiesUsage?: boolean;
@@ -849,12 +856,6 @@ declare namespace ApplicationInsights {
849
856
  * @defaultValue ""
850
857
  */
851
858
  cookiePath?: string;
852
- /**
853
- * [Optional] A Cookie Manager configuration which includes hooks to allow interception of the get, set and delete cookie
854
- * operations. If this configuration is specified any specified enabled and domain properties will take precedence over the
855
- * cookieDomain and disableCookiesUsage values.
856
- */
857
- cookieMgrCfg?: ICookieMgrConfig;
858
859
  /**
859
860
  * Default false. If false, retry on 206 (partial success), 408 (timeout), 429 (too many requests), 500 (internal server error), 503 (service unavailable), and 0 (offline, only if detected)
860
861
  * @description
@@ -2504,13 +2505,9 @@ declare namespace ApplicationInsights {
2504
2505
  /**
2505
2506
  * Defines the level of severity for the event.
2506
2507
  */
2507
- enum SeverityLevel {
2508
- Verbose = 0,
2509
- Information = 1,
2510
- Warning = 2,
2511
- Error = 3,
2512
- Critical = 4
2513
- }
2508
+ const SeverityLevel: EnumValue<typeof eSeverityLevel>;
2509
+
2510
+ type SeverityLevel = number | eSeverityLevel;
2514
2511
 
2515
2512
  interface Tags {
2516
2513
  [key: string]: any;
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript Web SDK - Basic, 2.8.0-nightly.2204-06
2
+ * Application Insights JavaScript Web SDK - Basic, 2.8.0-nightly.2204-07
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -844,6 +844,14 @@
844
844
  });
845
845
  return deepFreeze(enumClass);
846
846
  }
847
+ function createValueMap(values) {
848
+ var mapClass = {};
849
+ objForEachKey(values, function (field, value) {
850
+ mapClass[field] = value[1];
851
+ mapClass[value[0]] = value[1];
852
+ });
853
+ return deepFreeze(mapClass);
854
+ }
847
855
 
848
856
  var strWindow = "window";
849
857
  var strDocument = "document";
@@ -1467,7 +1475,7 @@
1467
1475
  }
1468
1476
 
1469
1477
  var _objDefineProperty = ObjDefineProperty;
1470
- var version = "2.8.0-nightly.2204-06";
1478
+ var version = "2.8.0-nightly.2204-07";
1471
1479
  var instanceName = "." + newId(6);
1472
1480
  var _dataUid = 0;
1473
1481
  function _createAccessor(target, prop, value) {
@@ -3173,7 +3181,7 @@
3173
3181
  function _validateTelemetryItem(telemetryItem) {
3174
3182
  if (isNullOrUndefined(telemetryItem.name)) {
3175
3183
  _notifyInvalidEvent(telemetryItem);
3176
- throw Error("telemetry name required");
3184
+ throwError("telemetry name required");
3177
3185
  }
3178
3186
  }
3179
3187
  function _notifyInvalidEvent(telemetryItem) {
@@ -3564,17 +3572,17 @@
3564
3572
  InMemoryStorageBufferFull: 105
3565
3573
  });
3566
3574
 
3567
- var RequestHeaders = {
3568
- requestContextHeader: "Request-Context",
3569
- requestContextTargetKey: "appId",
3570
- requestContextAppIdFormat: "appId=cid-v1:",
3571
- requestIdHeader: "Request-Id",
3572
- traceParentHeader: "traceparent",
3573
- traceStateHeader: "tracestate",
3574
- sdkContextHeader: "Sdk-Context",
3575
- sdkContextHeaderAppIdRequest: "appId",
3576
- requestContextHeaderLowerCase: "request-context"
3577
- };
3575
+ var RequestHeaders = createValueMap({
3576
+ requestContextHeader: [0 , "Request-Context"],
3577
+ requestContextTargetKey: [1 , "appId"],
3578
+ requestContextAppIdFormat: [2 , "appId=cid-v1:"],
3579
+ requestIdHeader: [3 , "Request-Id"],
3580
+ traceParentHeader: [4 , "traceparent"],
3581
+ traceStateHeader: [5 , "tracestate"],
3582
+ sdkContextHeader: [6 , "Sdk-Context"],
3583
+ sdkContextHeaderAppIdRequest: [7 , "appId"],
3584
+ requestContextHeaderLowerCase: [8 , "request-context"]
3585
+ });
3578
3586
 
3579
3587
  function dataSanitizeKeyAndAddUniqueness(logger, key, map) {
3580
3588
  var origLength = key.length;
@@ -3728,11 +3736,11 @@
3728
3736
  if (isNullOrUndefined(getGlobal())) {
3729
3737
  return null;
3730
3738
  }
3731
- var uid = new Date;
3739
+ var uid = (new Date).toString();
3732
3740
  var storage = getGlobalInst(storageType === StorageType.LocalStorage ? "localStorage" : "sessionStorage");
3733
- storage.setItem(uid.toString(), uid.toString());
3734
- var fail = storage.getItem(uid.toString()) !== uid.toString();
3735
- storage.removeItem(uid.toString());
3741
+ storage.setItem(uid, uid);
3742
+ var fail = storage.getItem(uid) !== uid;
3743
+ storage.removeItem(uid);
3736
3744
  if (!fail) {
3737
3745
  return storage;
3738
3746
  }
@@ -4556,14 +4564,13 @@
4556
4564
  return Data;
4557
4565
  }());
4558
4566
 
4559
- exports.SeverityLevel = void 0;
4560
- (function (SeverityLevel) {
4561
- SeverityLevel[SeverityLevel["Verbose"] = 0] = "Verbose";
4562
- SeverityLevel[SeverityLevel["Information"] = 1] = "Information";
4563
- SeverityLevel[SeverityLevel["Warning"] = 2] = "Warning";
4564
- SeverityLevel[SeverityLevel["Error"] = 3] = "Error";
4565
- SeverityLevel[SeverityLevel["Critical"] = 4] = "Critical";
4566
- })(exports.SeverityLevel || (exports.SeverityLevel = {}));
4567
+ var SeverityLevel = createEnumStyle({
4568
+ Verbose: 0 ,
4569
+ Information: 1 ,
4570
+ Warning: 2 ,
4571
+ Error: 3 ,
4572
+ Critical: 4
4573
+ });
4567
4574
 
4568
4575
  function _aiNameFunc(baseName) {
4569
4576
  var aiName = "ai." + baseName + ".";
@@ -4926,7 +4933,7 @@
4926
4933
  }
4927
4934
  }
4928
4935
  var EnvelopeCreator = {
4929
- Version: "2.8.0-nightly.2204-06"
4936
+ Version: "2.8.0-nightly.2204-07"
4930
4937
  };
4931
4938
  function DependencyEnvelopeCreator(logger, telemetryItem, customUndefinedValue) {
4932
4939
  EnvelopeCreatorInit(logger, telemetryItem);
@@ -6131,6 +6138,7 @@
6131
6138
  exports.ApplicationInsights = ApplicationInsights;
6132
6139
  exports.CoreUtils = CoreUtils;
6133
6140
  exports.Sender = Sender;
6141
+ exports.SeverityLevel = SeverityLevel;
6134
6142
  exports._InternalMessageId = _InternalMessageId;
6135
6143
  exports.arrForEach = arrForEach;
6136
6144
  exports.isNullOrUndefined = isNullOrUndefined;