@microsoft/1ds-core-js 4.1.0-nightly3.2402-09 → 4.1.0-nightly3.2402-12

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