@microsoft/1ds-core-js 4.0.6-nightly3.2312-05 → 4.0.7

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.
Files changed (43) hide show
  1. package/bundle/es5/{ms.core-4.0.6-nightly3.2312-05.gbl.js → ms.core-4.0.7.gbl.js} +409 -328
  2. package/bundle/es5/ms.core-4.0.7.gbl.js.map +1 -0
  3. package/bundle/es5/ms.core-4.0.7.gbl.min.js +7 -0
  4. package/bundle/es5/ms.core-4.0.7.gbl.min.js.map +1 -0
  5. package/bundle/es5/ms.core-4.0.7.integrity.json +46 -0
  6. package/bundle/es5/{ms.core-4.0.6-nightly3.2312-05.js → ms.core-4.0.7.js} +409 -328
  7. package/bundle/es5/ms.core-4.0.7.js.map +1 -0
  8. package/bundle/es5/ms.core-4.0.7.min.js +7 -0
  9. package/bundle/es5/ms.core-4.0.7.min.js.map +1 -0
  10. package/bundle/es5/ms.core.gbl.js +408 -327
  11. package/bundle/es5/ms.core.gbl.js.map +1 -1
  12. package/bundle/es5/ms.core.gbl.min.js +2 -2
  13. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  14. package/bundle/es5/ms.core.integrity.json +17 -17
  15. package/bundle/es5/ms.core.js +408 -327
  16. package/bundle/es5/ms.core.js.map +1 -1
  17. package/bundle/es5/ms.core.min.js +2 -2
  18. package/bundle/es5/ms.core.min.js.map +1 -1
  19. package/dist/es5/ms.core.js +406 -325
  20. package/dist/es5/ms.core.js.map +1 -1
  21. package/dist/es5/ms.core.min.js +2 -2
  22. package/dist/es5/ms.core.min.js.map +1 -1
  23. package/dist-es5/AppInsightsCore.js +1 -1
  24. package/dist-es5/BaseCore.js +1 -1
  25. package/dist-es5/DataModels.js +1 -1
  26. package/dist-es5/Enums.js +1 -1
  27. package/dist-es5/Index.js +4 -2
  28. package/dist-es5/Index.js.map +1 -1
  29. package/dist-es5/InternalConstants.js +1 -1
  30. package/dist-es5/Utils.js +2 -2
  31. package/dist-es5/Utils.js.map +1 -1
  32. package/dist-es5/ValueSanitizer.js +1 -1
  33. package/dist-es5/__DynamicConstants.js +1 -1
  34. package/package.json +6 -6
  35. package/types/1ds-core-js.d.ts +182 -3
  36. package/types/1ds-core-js.namespaced.d.ts +4260 -573
  37. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.gbl.js.map +0 -1
  38. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.gbl.min.js +0 -7
  39. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.gbl.min.js.map +0 -1
  40. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.integrity.json +0 -46
  41. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.js.map +0 -1
  42. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.min.js +0 -7
  43. package/bundle/es5/ms.core-4.0.6-nightly3.2312-05.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Core, 4.0.6-nightly3.2312-05
2
+ * 1DS JS SDK Core, 4.0.7
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -184,6 +184,7 @@ import { strUndefined } from '@microsoft/applicationinsights-core-js';
184
184
  import { Tags } from '@microsoft/applicationinsights-core-js';
185
185
  import { TelemetryInitializerFunction } from '@microsoft/applicationinsights-core-js';
186
186
  import { TelemetryUnloadReason } from '@microsoft/applicationinsights-core-js';
187
+ import { _testHookMaxUnloadHooksCb } from '@microsoft/applicationinsights-core-js';
187
188
  import { throwError } from '@microsoft/applicationinsights-core-js';
188
189
  import { _throwInternal } from '@microsoft/applicationinsights-core-js';
189
190
  import { toISOString } from '@microsoft/applicationinsights-core-js';
@@ -193,11 +194,17 @@ import { _warnToConsole } from '@microsoft/applicationinsights-core-js';
193
194
  import { WatcherFunction } from '@microsoft/applicationinsights-core-js';
194
195
 
195
196
  export { __getRegisteredEvents }
197
+
196
198
  export { addEventHandler }
199
+
197
200
  export { addEventListeners }
201
+
198
202
  export { addPageHideEventListener }
203
+
199
204
  export { addPageShowEventListener }
205
+
200
206
  export { addPageUnloadEventListener }
207
+
201
208
  /**
202
209
  * @group Classes
203
210
  * @group Entrypoint
@@ -221,15 +228,25 @@ export { areCookiesSupported }
221
228
  export { areCookiesSupported as cookieAvailable }
222
229
 
223
230
  export { arrForEach }
231
+
224
232
  export { arrIndexOf }
233
+
225
234
  export { arrMap }
235
+
226
236
  export { arrReduce }
237
+
227
238
  export { attachEvent }
239
+
228
240
  export { BaseTelemetryPlugin }
241
+
229
242
  export { blockDynamicConversion }
243
+
230
244
  export { createCookieMgr }
245
+
231
246
  export { createDynamicConfig }
247
+
232
248
  export { createEnumStyle }
249
+
233
250
  /**
234
251
  * Create a new guid.
235
252
  * @param style - The style of guid to generated, defaults to Digits
@@ -242,15 +259,25 @@ export { createEnumStyle }
242
259
  export declare function createGuid(style?: GuidStyle): string;
243
260
 
244
261
  export { createProcessTelemetryContext }
262
+
245
263
  export { createTraceParent }
264
+
246
265
  export { createUniqueNamespace }
266
+
247
267
  export { createUnloadHandlerContainer }
268
+
248
269
  export { dateNow }
270
+
249
271
  export { detachEvent }
272
+
250
273
  export { DiagnosticLogger }
274
+
251
275
  export { disallowsSameSiteNone }
276
+
252
277
  export { doPerf }
278
+
253
279
  export { dumpObj }
280
+
254
281
  /**
255
282
  * Enum for property types.
256
283
  */
@@ -291,7 +318,9 @@ export declare const enum _eExtendedInternalMessageId {
291
318
  }
292
319
 
293
320
  export { _eInternalMessageId }
321
+
294
322
  export { eLoggingSeverity }
323
+
295
324
  /**
296
325
  * The TraceLevel contains a set of values that specify the trace level for the trace messages.
297
326
  */
@@ -413,7 +442,9 @@ export declare const enum EventLatencyValue {
413
442
  }
414
443
 
415
444
  export { eventOff }
445
+
416
446
  export { eventOn }
447
+
417
448
  /**
418
449
  * The EventPersistence contains a set of values that specify the event's persistence.
419
450
  */
@@ -443,6 +474,7 @@ export declare const EventPropertyType: EnumValue<typeof eEventPropertyType>;
443
474
  export declare type EventPropertyType = number | eEventPropertyType;
444
475
 
445
476
  export { EventsDiscardedReason }
477
+
446
478
  /**
447
479
  * Define a specific way to send an event synchronously
448
480
  */
@@ -499,14 +531,19 @@ export declare const enum FieldValueSanitizerType {
499
531
  export declare type FieldValueSanitizerTypes = string | number | boolean | object | string[] | number[] | boolean[] | IEventProperty;
500
532
 
501
533
  export { findW3cTraceParent }
534
+
502
535
  export { forceDynamicConversion }
536
+
503
537
  export { formatTraceParent }
538
+
504
539
  export declare const FullVersionString: string;
505
540
 
506
541
  export { generateW3CId }
542
+
507
543
  export declare function getCommonSchemaMetaData(value: string | boolean | number | string[] | number[] | boolean[] | undefined, kind: number | undefined, type?: number | undefined): number;
508
544
 
509
545
  export { getConsole }
546
+
510
547
  /**
511
548
  * Helper to get and decode the cookie value using decodeURIComponent, this is for historical
512
549
  * backward compatibility where the document.cookie value was decoded before parsing.
@@ -518,9 +555,13 @@ export { getConsole }
518
555
  export declare function getCookieValue(cookieMgr: ICookieMgr, name: string, decode?: boolean): string;
519
556
 
520
557
  export { getCrypto }
558
+
521
559
  export { getDocument }
560
+
522
561
  export { getDynamicConfigHandler }
562
+
523
563
  export { getExceptionName }
564
+
524
565
  /**
525
566
  * Returns a bitwise value for the FieldValueSanitizerType enum representing the decoded type of the passed value
526
567
  * @param value The value to determine the type
@@ -528,15 +569,25 @@ export { getExceptionName }
528
569
  export declare function getFieldValueType(value: any): FieldValueSanitizerType;
529
570
 
530
571
  export { getGlobal }
572
+
531
573
  export { getGlobalInst }
574
+
532
575
  export { getHistory }
576
+
533
577
  export { getIEVersion }
578
+
534
579
  export { getJSON }
580
+
535
581
  export { getLocation }
582
+
536
583
  export { getMsCrypto }
584
+
537
585
  export { getNavigator }
586
+
538
587
  export { getPerformance }
588
+
539
589
  export { getSetValue }
590
+
540
591
  /**
541
592
  * Gets the tenant id from the tenant token.
542
593
  * @param apiKey - The token from which the tenant id is to be extracted.
@@ -547,6 +598,7 @@ export declare function getTenantId(apiKey: string | undefined): string;
547
598
  export declare let getTime: typeof perfNow;
548
599
 
549
600
  export { getWindow }
601
+
550
602
  export declare const enum GuidStyle {
551
603
  Numeric = "N",
552
604
  Digits = "D",
@@ -555,25 +607,45 @@ export declare const enum GuidStyle {
555
607
  }
556
608
 
557
609
  export { hasDocument }
610
+
558
611
  export { hasHistory }
612
+
559
613
  export { hasJSON }
614
+
560
615
  export { hasNavigator }
616
+
561
617
  export { hasOwnProperty }
618
+
562
619
  export { hasWindow }
620
+
563
621
  export { IAppInsightsCore }
622
+
564
623
  export { IChannelControls }
624
+
565
625
  export { IConfigCheckFn }
626
+
566
627
  export { IConfigDefaultCheck }
628
+
567
629
  export { IConfigDefaults }
630
+
568
631
  export { IConfigSetFn }
632
+
569
633
  export { IConfiguration }
634
+
570
635
  export { ICookieMgr }
636
+
571
637
  export { ICookieMgrConfig }
638
+
572
639
  export { ICustomProperties }
640
+
573
641
  export { IDiagnosticLogger }
642
+
574
643
  export { IDistributedTraceContext }
644
+
575
645
  export { IDynamicConfigHandler }
646
+
576
647
  export { IDynamicPropertyHandler }
648
+
577
649
  /**
578
650
  * An interface used to create an event property value along with tagging it as PII, or customer content.
579
651
  * <b>Caution:</b> Customer content and PII are mutually exclusive. You can use only one of them at a time.
@@ -766,18 +838,31 @@ export declare interface IFieldValueSanitizerProvider {
766
838
  }
767
839
 
768
840
  export { ILegacyUnloadHook }
841
+
769
842
  export { INotificationListener }
843
+
770
844
  export { INotificationManager }
845
+
771
846
  export { InternalAppInsightsCore }
847
+
772
848
  export { _InternalLogMessage }
849
+
773
850
  export { _InternalMessageId }
851
+
774
852
  export { IPayloadData }
853
+
775
854
  export { IPerfEvent }
855
+
776
856
  export { IPerfManager }
857
+
777
858
  export { IPerfManagerProvider }
859
+
778
860
  export { IPlugin }
861
+
779
862
  export { IProcessTelemetryContext }
863
+
780
864
  export { IProcessTelemetryUnloadContext }
865
+
781
866
  /**
782
867
  * The IPropertyStorageOverride interface provides a custom interface for storing internal SDK properties - otherwise they are
783
868
  * stored as cookies.
@@ -799,25 +884,33 @@ export declare interface IPropertyStorageOverride {
799
884
  }
800
885
 
801
886
  export { _IRegisteredEvents }
887
+
802
888
  export { isArray }
889
+
803
890
  export declare function isArrayValid(value: any[]): boolean;
804
891
 
805
892
  export { isBeaconsSupported }
893
+
806
894
  export { isBoolean }
895
+
807
896
  /**
808
897
  * Helper to identify whether we are running in a chromium based browser environment
809
898
  */
810
899
  export declare function isChromium(): boolean;
811
900
 
812
901
  export { isDate }
902
+
813
903
  /**
814
904
  * Checks if document object is available
815
905
  */
816
906
  export declare const isDocumentObjectAvailable: boolean;
817
907
 
818
908
  export { isError }
909
+
819
910
  export { isFetchSupported }
911
+
820
912
  export { isFunction }
913
+
821
914
  /**
822
915
  * Check to see if the value is > 0
823
916
  * @param value - The value to check
@@ -826,6 +919,7 @@ export { isFunction }
826
919
  export declare function isGreaterThanZero(value: number): boolean;
827
920
 
828
921
  export { isIE }
922
+
829
923
  /**
830
924
  * Checks if the value is a valid EventLatency.
831
925
  * @param value - The value that needs to be checked.
@@ -834,14 +928,23 @@ export { isIE }
834
928
  export declare function isLatency(value: EventLatency | undefined): boolean;
835
929
 
836
930
  export { isNotTruthy }
931
+
837
932
  export { isNullOrUndefined }
933
+
838
934
  export { isNumber }
935
+
839
936
  export { isObject }
937
+
840
938
  export { isReactNative }
939
+
841
940
  export { isSampledFlag }
941
+
842
942
  export { isString }
943
+
843
944
  export { isTruthy }
945
+
844
946
  export { isTypeof }
947
+
845
948
  /**
846
949
  * Checks if Uint8Array are available in the current environment. Safari and Firefox along with
847
950
  * ReactNative are known to not support Uint8Array properly.
@@ -850,9 +953,13 @@ export { isTypeof }
850
953
  export declare function isUint8ArrayAvailable(): boolean;
851
954
 
852
955
  export { isUndefined }
956
+
853
957
  export { isValidSpanId }
958
+
854
959
  export { isValidTraceId }
960
+
855
961
  export { isValidTraceParent }
962
+
856
963
  /**
857
964
  * Checks if value is assigned to the given param.
858
965
  * @param value - The token from which the tenant id is to be extracted.
@@ -868,17 +975,29 @@ export declare function isValueKind(value: number | undefined): boolean;
868
975
  export declare const isWindowObjectAvailable: boolean;
869
976
 
870
977
  export { isXhrSupported }
978
+
871
979
  export { ITelemetryInitializerContainer }
980
+
872
981
  export { ITelemetryInitializerHandler }
982
+
873
983
  export { ITelemetryItem }
984
+
874
985
  export { ITelemetryPlugin }
986
+
875
987
  export { ITelemetryPluginChain }
988
+
876
989
  export { ITelemetryUnloadState }
990
+
877
991
  export { ITelemetryUpdateState }
992
+
878
993
  export { IUnloadableComponent }
994
+
879
995
  export { IUnloadHandlerContainer }
996
+
880
997
  export { IUnloadHook }
998
+
881
999
  export { IUnloadHookContainer }
1000
+
882
1001
  /**
883
1002
  * This interface is used during the serialization of events into envelope (serialized object) which is sent to the services, the format is defined via the
884
1003
  * [Common Schema 4.0](https://aka.ms/CommonSchema) specification. The path and field names used are based on how the data is serialized
@@ -930,23 +1049,41 @@ export declare interface IValueSanitizer {
930
1049
  }
931
1050
 
932
1051
  export { IWatchDetails }
1052
+
933
1053
  export { IWatcherHandler }
1054
+
934
1055
  export { IXHROverride }
1056
+
935
1057
  export { LoggingSeverity }
1058
+
936
1059
  export { _logInternalMessage }
1060
+
937
1061
  export { mergeEvtNamespace }
1062
+
938
1063
  export { MinChannelPriorty }
1064
+
939
1065
  export { newGuid }
1066
+
940
1067
  export { newId }
1068
+
941
1069
  export { normalizeJsName }
1070
+
942
1071
  export { NotificationManager }
1072
+
943
1073
  export { objDefineAccessors }
1074
+
944
1075
  export { objForEachKey }
1076
+
945
1077
  export { objFreeze }
1078
+
946
1079
  export { objKeys }
1080
+
947
1081
  export { objSeal }
1082
+
948
1083
  export { OnCompleteCallback }
1084
+
949
1085
  export { onConfigChange }
1086
+
950
1087
  /**
951
1088
  * Create and open an XMLHttpRequest object
952
1089
  * @param method - The request method
@@ -960,23 +1097,41 @@ export { onConfigChange }
960
1097
  export declare function openXhr(method: string, urlString: string, withCredentials?: boolean, disabled?: boolean, isSync?: boolean, timeout?: number): XMLHttpRequest;
961
1098
 
962
1099
  export { optimizeObject }
1100
+
963
1101
  export { parseTraceParent }
1102
+
964
1103
  export { PerfEvent }
1104
+
965
1105
  export { PerfManager }
1106
+
966
1107
  export { perfNow }
1108
+
967
1109
  export { ProcessTelemetryContext }
1110
+
968
1111
  export { proxyAssign }
1112
+
969
1113
  export { proxyFunctionAs }
1114
+
970
1115
  export { proxyFunctions }
1116
+
971
1117
  export { random32 }
1118
+
972
1119
  export { randomValue }
1120
+
973
1121
  export { removeEventHandler }
1122
+
974
1123
  export { removeEventListeners }
1124
+
975
1125
  export { removePageHideEventListener }
1126
+
976
1127
  export { removePageShowEventListener }
1128
+
977
1129
  export { removePageUnloadEventListener }
1130
+
978
1131
  export { safeGetCookieMgr }
1132
+
979
1133
  export { safeGetLogger }
1134
+
980
1135
  /**
981
1136
  * Sanitizes the Property. It checks the that the property name and value are valid. It also
982
1137
  * checks/populates the correct type and pii of the property value.
@@ -988,27 +1143,47 @@ export { safeGetLogger }
988
1143
  export declare function sanitizeProperty(name: string, property: string | number | boolean | string[] | number[] | boolean[] | object | IEventProperty, stringifyObjects?: boolean): IEventProperty | null;
989
1144
 
990
1145
  export { SendPOSTFunction }
1146
+
991
1147
  export { SendRequestReason }
1148
+
992
1149
  export { setEnableEnvMocks }
1150
+
993
1151
  export declare function setProcessTelemetryTimings(event: ITelemetryItem, identifier: string): void;
994
1152
 
995
1153
  export { setValue }
1154
+
996
1155
  export { strContains }
1156
+
997
1157
  export { strEndsWith }
1158
+
998
1159
  export { strFunction }
1160
+
999
1161
  export { strObject }
1162
+
1000
1163
  export { strPrototype }
1164
+
1001
1165
  export { strStartsWith }
1166
+
1002
1167
  export { strTrim }
1168
+
1003
1169
  export { strUndefined as Undefined }
1004
1170
  export { strUndefined }
1171
+
1005
1172
  export { Tags }
1173
+
1006
1174
  export { TelemetryInitializerFunction }
1175
+
1007
1176
  export { TelemetryUnloadReason }
1177
+
1178
+ export { _testHookMaxUnloadHooksCb }
1179
+
1008
1180
  export { throwError }
1181
+
1009
1182
  export { _throwInternal }
1183
+
1010
1184
  export { toISOString as getISOString }
1011
1185
  export { toISOString }
1186
+
1012
1187
  export declare const TraceLevel: EnumValue<typeof eTraceLevel>;
1013
1188
 
1014
1189
  export declare type TraceLevel = number | eTraceLevel;
@@ -1038,7 +1213,9 @@ export declare const enum TransportType {
1038
1213
  }
1039
1214
 
1040
1215
  export { UnloadHandler }
1216
+
1041
1217
  export { useXDomainRequest }
1218
+
1042
1219
  /**
1043
1220
  * The ValueKind contains a set of values that specify value kind of the property.
1044
1221
  * Either PII (Personal Identifiable Information) or customer content.
@@ -1103,8 +1280,10 @@ export declare class ValueSanitizer implements IValueSanitizer {
1103
1280
  constructor(fieldSanitizerProvider?: IFieldValueSanitizerProvider);
1104
1281
  }
1105
1282
 
1106
- export declare const Version = "4.0.6-nightly3.2312-05";
1283
+ export declare const Version = "4.0.7";
1107
1284
 
1108
1285
  export { _warnToConsole }
1286
+
1109
1287
  export { WatcherFunction }
1110
- export { }
1288
+
1289
+ export { }