@microsoft/1ds-core-js 4.4.0-nightlybeta3.2602-17 → 4.4.1

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 (53) hide show
  1. package/README.md +56 -0
  2. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-17.gbl.js → ms.core-4.4.1.gbl.js} +498 -511
  3. package/bundle/es5/ms.core-4.4.1.gbl.js.map +1 -0
  4. package/bundle/es5/ms.core-4.4.1.gbl.min.js +7 -0
  5. package/bundle/es5/ms.core-4.4.1.gbl.min.js.map +1 -0
  6. package/bundle/es5/ms.core-4.4.1.integrity.json +46 -0
  7. package/bundle/es5/{ms.core-4.4.0-nightlybeta3.2602-17.js → ms.core-4.4.1.js} +498 -511
  8. package/bundle/es5/ms.core-4.4.1.js.map +1 -0
  9. package/bundle/es5/ms.core-4.4.1.min.js +7 -0
  10. package/bundle/es5/ms.core-4.4.1.min.js.map +1 -0
  11. package/bundle/es5/ms.core.gbl.js +497 -510
  12. package/bundle/es5/ms.core.gbl.js.map +1 -1
  13. package/bundle/es5/ms.core.gbl.min.js +2 -2
  14. package/bundle/es5/ms.core.gbl.min.js.map +1 -1
  15. package/bundle/es5/ms.core.integrity.json +17 -17
  16. package/bundle/es5/ms.core.js +497 -510
  17. package/bundle/es5/ms.core.js.map +1 -1
  18. package/bundle/es5/ms.core.min.js +2 -2
  19. package/bundle/es5/ms.core.min.js.map +1 -1
  20. package/dist/es5/ms.core.js +495 -508
  21. package/dist/es5/ms.core.js.map +1 -1
  22. package/dist/es5/ms.core.min.js +2 -2
  23. package/dist/es5/ms.core.min.js.map +1 -1
  24. package/dist-es5/Index.js +9 -22
  25. package/dist-es5/Index.js.map +1 -1
  26. package/package.json +69 -72
  27. package/types/1ds-core-js.d.ts +110 -691
  28. package/types/1ds-core-js.namespaced.d.ts +54 -5
  29. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.gbl.js.map +0 -1
  30. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.gbl.min.js +0 -7
  31. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.gbl.min.js.map +0 -1
  32. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.integrity.json +0 -46
  33. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.js.map +0 -1
  34. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.min.js +0 -7
  35. package/bundle/es5/ms.core-4.4.0-nightlybeta3.2602-17.min.js.map +0 -1
  36. package/dist-es5/AppInsightsCore.js +0 -96
  37. package/dist-es5/AppInsightsCore.js.map +0 -1
  38. package/dist-es5/BaseCore.js +0 -67
  39. package/dist-es5/BaseCore.js.map +0 -1
  40. package/dist-es5/DataModels.js +0 -7
  41. package/dist-es5/DataModels.js.map +0 -1
  42. package/dist-es5/Enums.js +0 -92
  43. package/dist-es5/Enums.js.map +0 -1
  44. package/dist-es5/InternalConstants.js +0 -19
  45. package/dist-es5/InternalConstants.js.map +0 -1
  46. package/dist-es5/Utils.js +0 -397
  47. package/dist-es5/Utils.js.map +0 -1
  48. package/dist-es5/ValueSanitizer.js +0 -262
  49. package/dist-es5/ValueSanitizer.js.map +0 -1
  50. package/dist-es5/__DynamicConstants.js +0 -28
  51. package/dist-es5/__DynamicConstants.js.map +0 -1
  52. package/dist-es5/extSpanUtils.js +0 -308
  53. package/dist-es5/extSpanUtils.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * 1DS JS SDK Core, 4.4.0-nightlybeta3.2602-17
2
+ * 1DS JS SDK Core, 4.4.1
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -1090,6 +1090,38 @@ declare namespace oneDS {
1090
1090
  INFORMATION = 3
1091
1091
  }
1092
1092
 
1093
+ /**
1094
+ * Controls how the user can configure which parts of the URL should be redacted. Example, certain query parameters, username and password, etc.
1095
+ */
1096
+ const enum eUrlRedactionOptions {
1097
+ /**
1098
+ * The default value, will redact the username and password as well as the default set of query parameters
1099
+ */
1100
+ true = 1,
1101
+ /**
1102
+ * Does not redact username and password or any query parameters, the URL will be left as is. Note: this is not recommended as it may lead
1103
+ * to sensitive data being sent in clear text.
1104
+ */
1105
+ false = 2,
1106
+ /**
1107
+ * This will append any additional queryParams that the user has provided through redactQueryParams config to the default set i.e to
1108
+ * @defaultValue ["sig", "Signature", "AWSAccessKeyId", "X-Goog-Signature"].
1109
+ */
1110
+ appendToDefault = 3,
1111
+ /**
1112
+ * This will replace the default set of query parameters to redact with the query parameters defined in redactQueryParams config, if provided by the user.
1113
+ */
1114
+ replaceDefault = 4,
1115
+ /**
1116
+ * This will redact username and password in the URL but will not redact any query parameters, even those in the default set.
1117
+ */
1118
+ usernamePasswordOnly = 5,
1119
+ /**
1120
+ * This will only redact the query parameter in the default set of query parameters to redact. It will not redact username and password.
1121
+ */
1122
+ queryParamsOnly = 6
1123
+ }
1124
+
1093
1125
  /**
1094
1126
  * The eValueKind contains a set of values that specify value kind of the property.
1095
1127
  * Either PII (Personal Identifiable Information) or customer content.
@@ -1231,7 +1263,7 @@ declare namespace oneDS {
1231
1263
  type EventPersistence = number | EventPersistenceValue;
1232
1264
 
1233
1265
  /**
1234
- * The EventPersistence contains a set of values that specify the event's persistence.
1266
+ * The EventPersistenceValue contains a set of values that specify the event's persistence.
1235
1267
  */
1236
1268
  const enum EventPersistenceValue {
1237
1269
  /**
@@ -1379,6 +1411,10 @@ declare namespace oneDS {
1379
1411
  */
1380
1412
  function formatTraceParent(value: ITraceParent): string;
1381
1413
 
1414
+ /**
1415
+ * Identifies the full version for the extended SDK (legacy constant)
1416
+ * @deprecated Use {@link ExtFullVersionString} instead
1417
+ */
1382
1418
  const FullVersionString: string;
1383
1419
 
1384
1420
  /**
@@ -2358,10 +2394,10 @@ declare namespace oneDS {
2358
2394
  */
2359
2395
  expCfg?: IExceptionConfig;
2360
2396
  /**
2361
- * [Optional] A flag to enable or disable the use of the field redaction for urls.
2397
+ * [Optional] A flag to enable or disable redaction for query parameters and username/password.
2362
2398
  * @defaultValue true
2363
2399
  */
2364
- redactUrls?: boolean;
2400
+ redactUrls?: UrlRedactionOptions;
2365
2401
  /**
2366
2402
  * [Optional] Additional query parameters to redact beyond the default set.
2367
2403
  * Use this to specify custom parameters that contain sensitive information.
@@ -7243,6 +7279,11 @@ declare namespace oneDS {
7243
7279
 
7244
7280
  type TraceLevel = number | eTraceLevel;
7245
7281
 
7282
+ /**
7283
+ * An enumeration that identifies the transport type that are requested to be used, if the requested
7284
+ * transport is not available ir supported the SDK may choose the first available transport or it
7285
+ * will log a warning to the diagnostic logger.
7286
+ */
7246
7287
  const enum TransportType {
7247
7288
  /**
7248
7289
  * Use the default available api
@@ -7264,6 +7305,10 @@ declare namespace oneDS {
7264
7305
 
7265
7306
  type UnloadHandler = (itemCtx: IProcessTelemetryUnloadContext, unloadState: ITelemetryUnloadState) => void;
7266
7307
 
7308
+ const UrlRedactionOptions: EnumValue<typeof eUrlRedactionOptions>;
7309
+
7310
+ type UrlRedactionOptions = boolean | eUrlRedactionOptions;
7311
+
7267
7312
  function useXDomainRequest(): boolean | undefined;
7268
7313
 
7269
7314
  /**
@@ -7330,7 +7375,11 @@ declare namespace oneDS {
7330
7375
  constructor(fieldSanitizerProvider?: IFieldValueSanitizerProvider);
7331
7376
  }
7332
7377
 
7333
- const Version = "4.4.0-nightlybeta3.2602-17";
7378
+ /**
7379
+ * Identifies the version for the extended SDK (legacy constant)
7380
+ * @deprecated Use {@link ExtVersion} instead
7381
+ */
7382
+ const Version = "4.4.1";
7334
7383
 
7335
7384
  /**
7336
7385
  * This is a helper method which will call warnToConsole on the passed logger with the provided message.