@microsoft/applicationinsights-react-js 3.3.0-beta.2203-16 → 3.3.0-nightly.2204-05

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,8 +1,8 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.19.5",
5
- "schemaVersion": 1004,
4
+ "toolVersion": "7.20.0",
5
+ "schemaVersion": 1005,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
8
8
  "$schema": "https://developer.microsoft.com/json-schemas/tsdoc/v0/tsdoc.schema.json",
@@ -281,14 +281,16 @@
281
281
  "parameterTypeTokenRange": {
282
282
  "startIndex": 1,
283
283
  "endIndex": 2
284
- }
284
+ },
285
+ "isOptional": false
285
286
  },
286
287
  {
287
288
  "parameterName": "errorInfo",
288
289
  "parameterTypeTokenRange": {
289
290
  "startIndex": 3,
290
291
  "endIndex": 4
291
- }
292
+ },
293
+ "isOptional": false
292
294
  }
293
295
  ],
294
296
  "name": "componentDidCatch"
@@ -604,28 +606,32 @@
604
606
  "parameterTypeTokenRange": {
605
607
  "startIndex": 1,
606
608
  "endIndex": 4
607
- }
609
+ },
610
+ "isOptional": false
608
611
  },
609
612
  {
610
613
  "parameterName": "core",
611
614
  "parameterTypeTokenRange": {
612
615
  "startIndex": 5,
613
616
  "endIndex": 6
614
- }
617
+ },
618
+ "isOptional": false
615
619
  },
616
620
  {
617
621
  "parameterName": "extensions",
618
622
  "parameterTypeTokenRange": {
619
623
  "startIndex": 7,
620
624
  "endIndex": 9
621
- }
625
+ },
626
+ "isOptional": false
622
627
  },
623
628
  {
624
629
  "parameterName": "pluginChain",
625
630
  "parameterTypeTokenRange": {
626
631
  "startIndex": 10,
627
632
  "endIndex": 11
628
- }
633
+ },
634
+ "isOptional": true
629
635
  }
630
636
  ],
631
637
  "name": "initialize"
@@ -707,14 +713,16 @@
707
713
  "parameterTypeTokenRange": {
708
714
  "startIndex": 1,
709
715
  "endIndex": 2
710
- }
716
+ },
717
+ "isOptional": false
711
718
  },
712
719
  {
713
720
  "parameterName": "itemCtx",
714
721
  "parameterTypeTokenRange": {
715
722
  "startIndex": 3,
716
723
  "endIndex": 4
717
- }
724
+ },
725
+ "isOptional": true
718
726
  }
719
727
  ],
720
728
  "name": "processTelemetry"
@@ -769,14 +777,16 @@
769
777
  "parameterTypeTokenRange": {
770
778
  "startIndex": 1,
771
779
  "endIndex": 2
772
- }
780
+ },
781
+ "isOptional": false
773
782
  },
774
783
  {
775
784
  "parameterName": "customProperties",
776
785
  "parameterTypeTokenRange": {
777
786
  "startIndex": 3,
778
787
  "endIndex": 4
779
- }
788
+ },
789
+ "isOptional": true
780
790
  }
781
791
  ],
782
792
  "name": "trackEvent"
@@ -831,14 +841,16 @@
831
841
  "parameterTypeTokenRange": {
832
842
  "startIndex": 1,
833
843
  "endIndex": 2
834
- }
844
+ },
845
+ "isOptional": false
835
846
  },
836
847
  {
837
848
  "parameterName": "customProperties",
838
849
  "parameterTypeTokenRange": {
839
850
  "startIndex": 3,
840
851
  "endIndex": 4
841
- }
852
+ },
853
+ "isOptional": true
842
854
  }
843
855
  ],
844
856
  "name": "trackException"
@@ -893,14 +905,16 @@
893
905
  "parameterTypeTokenRange": {
894
906
  "startIndex": 1,
895
907
  "endIndex": 2
896
- }
908
+ },
909
+ "isOptional": false
897
910
  },
898
911
  {
899
912
  "parameterName": "customProperties",
900
913
  "parameterTypeTokenRange": {
901
914
  "startIndex": 3,
902
915
  "endIndex": 4
903
- }
916
+ },
917
+ "isOptional": false
904
918
  }
905
919
  ],
906
920
  "name": "trackMetric"
@@ -946,7 +960,8 @@
946
960
  "parameterTypeTokenRange": {
947
961
  "startIndex": 1,
948
962
  "endIndex": 2
949
- }
963
+ },
964
+ "isOptional": false
950
965
  }
951
966
  ],
952
967
  "name": "trackPageView"
@@ -1001,14 +1016,16 @@
1001
1016
  "parameterTypeTokenRange": {
1002
1017
  "startIndex": 1,
1003
1018
  "endIndex": 2
1004
- }
1019
+ },
1020
+ "isOptional": false
1005
1021
  },
1006
1022
  {
1007
1023
  "parameterName": "customProperties",
1008
1024
  "parameterTypeTokenRange": {
1009
1025
  "startIndex": 3,
1010
1026
  "endIndex": 4
1011
- }
1027
+ },
1028
+ "isOptional": true
1012
1029
  }
1013
1030
  ],
1014
1031
  "name": "trackTrace"
@@ -1114,28 +1131,32 @@
1114
1131
  "parameterTypeTokenRange": {
1115
1132
  "startIndex": 1,
1116
1133
  "endIndex": 2
1117
- }
1134
+ },
1135
+ "isOptional": false
1118
1136
  },
1119
1137
  {
1120
1138
  "parameterName": "eventName",
1121
1139
  "parameterTypeTokenRange": {
1122
1140
  "startIndex": 3,
1123
1141
  "endIndex": 4
1124
- }
1142
+ },
1143
+ "isOptional": false
1125
1144
  },
1126
1145
  {
1127
1146
  "parameterName": "eventData",
1128
1147
  "parameterTypeTokenRange": {
1129
1148
  "startIndex": 5,
1130
1149
  "endIndex": 6
1131
- }
1150
+ },
1151
+ "isOptional": false
1132
1152
  },
1133
1153
  {
1134
1154
  "parameterName": "skipFirstRun",
1135
1155
  "parameterTypeTokenRange": {
1136
1156
  "startIndex": 7,
1137
1157
  "endIndex": 8
1138
- }
1158
+ },
1159
+ "isOptional": true
1139
1160
  }
1140
1161
  ],
1141
1162
  "typeParameters": [
@@ -1265,28 +1286,32 @@
1265
1286
  "parameterTypeTokenRange": {
1266
1287
  "startIndex": 1,
1267
1288
  "endIndex": 2
1268
- }
1289
+ },
1290
+ "isOptional": false
1269
1291
  },
1270
1292
  {
1271
1293
  "parameterName": "Component",
1272
1294
  "parameterTypeTokenRange": {
1273
1295
  "startIndex": 3,
1274
1296
  "endIndex": 5
1275
- }
1297
+ },
1298
+ "isOptional": false
1276
1299
  },
1277
1300
  {
1278
1301
  "parameterName": "componentName",
1279
1302
  "parameterTypeTokenRange": {
1280
1303
  "startIndex": 6,
1281
1304
  "endIndex": 7
1282
- }
1305
+ },
1306
+ "isOptional": true
1283
1307
  },
1284
1308
  {
1285
1309
  "parameterName": "className",
1286
1310
  "parameterTypeTokenRange": {
1287
1311
  "startIndex": 8,
1288
1312
  "endIndex": 9
1289
- }
1313
+ },
1314
+ "isOptional": true
1290
1315
  }
1291
1316
  ],
1292
1317
  "typeParameters": [
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights react plugin, 3.3.0-beta.2203-16
2
+ * Microsoft Application Insights react plugin, 3.3.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  *
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Application Insights JavaScript SDK - React Plugin, 3.3.0-beta.2203-16
2
+ * Application Insights JavaScript SDK - React Plugin, 3.3.0-nightly.2204-05
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  (function (global, factory) {
@@ -708,9 +708,6 @@
708
708
  function isTruthy(value) {
709
709
  return !!value;
710
710
  }
711
- function throwError(message) {
712
- throw new Error(message);
713
- }
714
711
  function _createProxyFunction(source, funcName) {
715
712
  var srcFunc = null;
716
713
  var src = null;
@@ -731,15 +728,13 @@
731
728
  };
732
729
  }
733
730
  function proxyFunctionAs(target, name, source, theFunc, overwriteTarget) {
734
- if (overwriteTarget === void 0) { overwriteTarget = true; }
735
731
  if (target && name && source) {
736
- if (overwriteTarget || isUndefined(target[name])) {
732
+ if (overwriteTarget !== false || isUndefined(target[name])) {
737
733
  target[name] = _createProxyFunction(source, theFunc);
738
734
  }
739
735
  }
740
736
  }
741
737
  function proxyFunctions(target, source, functionsToProxy, overwriteTarget) {
742
- if (overwriteTarget === void 0) { overwriteTarget = true; }
743
738
  if (target && source && isObject(target) && isArray(functionsToProxy)) {
744
739
  arrForEach(functionsToProxy, function (theFuncName) {
745
740
  if (isString(theFuncName)) {
@@ -749,17 +744,6 @@
749
744
  }
750
745
  return target;
751
746
  }
752
- function createEnumStyle(values) {
753
- var enumClass = {};
754
- objForEachKey(values, function (field, value) {
755
- enumClass[field] = value;
756
- if (!isUndefined(enumClass[value])) {
757
- throwError("[" + value + "] exists for " + field);
758
- }
759
- enumClass[value] = field;
760
- });
761
- return objFreeze(enumClass);
762
- }
763
747
  function objExtend(obj1, obj2, obj3, obj4, obj5, obj6) {
764
748
  var theArgs = arguments;
765
749
  var extended = theArgs[0] || {};
@@ -1280,7 +1264,7 @@
1280
1264
  }
1281
1265
 
1282
1266
  var _objDefineProperty = ObjDefineProperty;
1283
- var version = "2.8.0-beta.2203-16";
1267
+ var version = "2.8.0-nightly.2204-05";
1284
1268
  var instanceName = "." + newId(6);
1285
1269
  var _dataUid = 0;
1286
1270
  function _createAccessor(target, prop, value) {
@@ -2327,95 +2311,6 @@
2327
2311
  _legacyCookieMgr().setEnabled(false);
2328
2312
  }
2329
2313
 
2330
- var LoggingSeverity = createEnumStyle({
2331
- CRITICAL: 1 ,
2332
- WARNING: 2
2333
- });
2334
- var _InternalMessageId = createEnumStyle({
2335
- BrowserDoesNotSupportLocalStorage: 0 ,
2336
- BrowserCannotReadLocalStorage: 1 ,
2337
- BrowserCannotReadSessionStorage: 2 ,
2338
- BrowserCannotWriteLocalStorage: 3 ,
2339
- BrowserCannotWriteSessionStorage: 4 ,
2340
- BrowserFailedRemovalFromLocalStorage: 5 ,
2341
- BrowserFailedRemovalFromSessionStorage: 6 ,
2342
- CannotSendEmptyTelemetry: 7 ,
2343
- ClientPerformanceMathError: 8 ,
2344
- ErrorParsingAISessionCookie: 9 ,
2345
- ErrorPVCalc: 10 ,
2346
- ExceptionWhileLoggingError: 11 ,
2347
- FailedAddingTelemetryToBuffer: 12 ,
2348
- FailedMonitorAjaxAbort: 13 ,
2349
- FailedMonitorAjaxDur: 14 ,
2350
- FailedMonitorAjaxOpen: 15 ,
2351
- FailedMonitorAjaxRSC: 16 ,
2352
- FailedMonitorAjaxSend: 17 ,
2353
- FailedMonitorAjaxGetCorrelationHeader: 18 ,
2354
- FailedToAddHandlerForOnBeforeUnload: 19 ,
2355
- FailedToSendQueuedTelemetry: 20 ,
2356
- FailedToReportDataLoss: 21 ,
2357
- FlushFailed: 22 ,
2358
- MessageLimitPerPVExceeded: 23 ,
2359
- MissingRequiredFieldSpecification: 24 ,
2360
- NavigationTimingNotSupported: 25 ,
2361
- OnError: 26 ,
2362
- SessionRenewalDateIsZero: 27 ,
2363
- SenderNotInitialized: 28 ,
2364
- StartTrackEventFailed: 29 ,
2365
- StopTrackEventFailed: 30 ,
2366
- StartTrackFailed: 31 ,
2367
- StopTrackFailed: 32 ,
2368
- TelemetrySampledAndNotSent: 33 ,
2369
- TrackEventFailed: 34 ,
2370
- TrackExceptionFailed: 35 ,
2371
- TrackMetricFailed: 36 ,
2372
- TrackPVFailed: 37 ,
2373
- TrackPVFailedCalc: 38 ,
2374
- TrackTraceFailed: 39 ,
2375
- TransmissionFailed: 40 ,
2376
- FailedToSetStorageBuffer: 41 ,
2377
- FailedToRestoreStorageBuffer: 42 ,
2378
- InvalidBackendResponse: 43 ,
2379
- FailedToFixDepricatedValues: 44 ,
2380
- InvalidDurationValue: 45 ,
2381
- TelemetryEnvelopeInvalid: 46 ,
2382
- CreateEnvelopeError: 47 ,
2383
- CannotSerializeObject: 48 ,
2384
- CannotSerializeObjectNonSerializable: 49 ,
2385
- CircularReferenceDetected: 50 ,
2386
- ClearAuthContextFailed: 51 ,
2387
- ExceptionTruncated: 52 ,
2388
- IllegalCharsInName: 53 ,
2389
- ItemNotInArray: 54 ,
2390
- MaxAjaxPerPVExceeded: 55 ,
2391
- MessageTruncated: 56 ,
2392
- NameTooLong: 57 ,
2393
- SampleRateOutOfRange: 58 ,
2394
- SetAuthContextFailed: 59 ,
2395
- SetAuthContextFailedAccountName: 60 ,
2396
- StringValueTooLong: 61 ,
2397
- StartCalledMoreThanOnce: 62 ,
2398
- StopCalledWithoutStart: 63 ,
2399
- TelemetryInitializerFailed: 64 ,
2400
- TrackArgumentsNotSpecified: 65 ,
2401
- UrlTooLong: 66 ,
2402
- SessionStorageBufferFull: 67 ,
2403
- CannotAccessCookie: 68 ,
2404
- IdTooLong: 69 ,
2405
- InvalidEvent: 70 ,
2406
- FailedMonitorAjaxSetRequestHeader: 71 ,
2407
- SendBrowserInfoOnUserInit: 72 ,
2408
- PluginException: 73 ,
2409
- NotificationException: 74 ,
2410
- SnippetScriptLoadFailure: 99 ,
2411
- InvalidInstrumentationKey: 100 ,
2412
- CannotParseAiBlobValue: 101 ,
2413
- InvalidContentBlob: 102 ,
2414
- TrackPageActionEventFailed: 103 ,
2415
- FailedAddingCustomDefinedRequestContext: 104 ,
2416
- InMemoryStorageBufferFull: 105
2417
- });
2418
-
2419
2314
  var ReactPlugin = /** @class */ (function (_super) {
2420
2315
  __extendsFn(ReactPlugin, _super);
2421
2316
  function ReactPlugin() {
@@ -2479,7 +2374,7 @@
2479
2374
  }
2480
2375
  function _getAnalytics() {
2481
2376
  if (!_analyticsPlugin) {
2482
- _self.diagLog().throwInternal(LoggingSeverity.CRITICAL, _InternalMessageId.TelemetryInitializerFailed, "Analytics plugin is not available, React plugin telemetry will not be sent: ");
2377
+ _throwInternal(_self.diagLog(), 1 , 64 , "Analytics plugin is not available, React plugin telemetry will not be sent: ");
2483
2378
  }
2484
2379
  return _analyticsPlugin;
2485
2380
  }