@microsoft/applicationinsights-channel-js 3.4.0-nightlybeta3.2504-05 → 3.4.0-nightlybeta3.2504-17

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 (58) hide show
  1. package/browser/es5/{applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.js → applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.cjs.js} +320 -179
  2. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.cjs.js.map +1 -0
  3. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.cjs.min.js +6 -0
  4. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.cjs.min.js.map +1 -0
  5. package/browser/es5/{applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.gbl.js → applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.gbl.js} +322 -154
  6. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.gbl.js.map +1 -0
  7. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.gbl.min.js +6 -0
  8. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.gbl.min.js.map +1 -0
  9. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.integrity.json +66 -0
  10. package/browser/es5/{applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.cjs.js → applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.js} +347 -152
  11. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.js.map +1 -0
  12. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.min.js +6 -0
  13. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-17.min.js.map +1 -0
  14. package/browser/es5/applicationinsights-channel-js.3.cjs.js +319 -151
  15. package/browser/es5/applicationinsights-channel-js.3.cjs.js.map +1 -1
  16. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js +2 -2
  17. package/browser/es5/applicationinsights-channel-js.3.cjs.min.js.map +1 -1
  18. package/browser/es5/applicationinsights-channel-js.3.gbl.js +321 -153
  19. package/browser/es5/applicationinsights-channel-js.3.gbl.js.map +1 -1
  20. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js +2 -2
  21. package/browser/es5/applicationinsights-channel-js.3.gbl.min.js.map +1 -1
  22. package/browser/es5/applicationinsights-channel-js.3.integrity.json +25 -25
  23. package/browser/es5/applicationinsights-channel-js.3.js +321 -153
  24. package/browser/es5/applicationinsights-channel-js.3.js.map +1 -1
  25. package/browser/es5/applicationinsights-channel-js.3.min.js +2 -2
  26. package/browser/es5/applicationinsights-channel-js.3.min.js.map +1 -1
  27. package/dist/es5/applicationinsights-channel-js.js +319 -151
  28. package/dist/es5/applicationinsights-channel-js.js.map +1 -1
  29. package/dist/es5/applicationinsights-channel-js.min.js +2 -2
  30. package/dist/es5/applicationinsights-channel-js.min.js.map +1 -1
  31. package/dist-es5/EnvelopeCreator.js +2 -2
  32. package/dist-es5/EnvelopeCreator.js.map +1 -1
  33. package/dist-es5/Interfaces.js +1 -1
  34. package/dist-es5/InternalConstants.js +1 -1
  35. package/dist-es5/SendBuffer.js +2 -1
  36. package/dist-es5/SendBuffer.js.map +1 -1
  37. package/dist-es5/Sender.js +84 -15
  38. package/dist-es5/Sender.js.map +1 -1
  39. package/dist-es5/Serializer.js +1 -1
  40. package/dist-es5/TelemetryProcessors/Sample.js +1 -1
  41. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  42. package/dist-es5/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  43. package/dist-es5/__DynamicConstants.js +5 -5
  44. package/dist-es5/__DynamicConstants.js.map +1 -1
  45. package/dist-es5/applicationinsights-channel-js.js +1 -1
  46. package/package.json +3 -3
  47. package/types/applicationinsights-channel-js.d.ts +17 -4
  48. package/types/applicationinsights-channel-js.namespaced.d.ts +49 -4
  49. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.cjs.js.map +0 -1
  50. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.cjs.min.js +0 -6
  51. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.cjs.min.js.map +0 -1
  52. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.gbl.js.map +0 -1
  53. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.gbl.min.js +0 -6
  54. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.gbl.min.js.map +0 -1
  55. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.integrity.json +0 -66
  56. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.js.map +0 -1
  57. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.min.js +0 -6
  58. package/browser/es5/applicationinsights-channel-js.3.4.0-nightlybeta3.2504-05.min.js.map +0 -1
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Microsoft Application Insights JavaScript SDK Channel, 3.4.0-nightlybeta3.2504-05
2
+ * Microsoft Application Insights JavaScript SDK Channel, 3.4.0-nightlybeta3.2504-17
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  *
5
5
  * Microsoft Application Insights Team
@@ -371,6 +371,7 @@ declare namespace ApplicationInsights {
371
371
  */
372
372
  addTelemetryInitializer(telemetryInitializer: TelemetryInitializerFunction): ITelemetryInitializerHandler;
373
373
  pollInternalLogs?(eventName?: string): ITimerHandler;
374
+ getStatsBeat?(statsBeatConfig?: IStatsBeatConfig): IStatsBeat;
374
375
  stopPollingInternalLogs?(): void;
375
376
  /**
376
377
  * Return a new instance of the IProcessTelemetryContext for processing events
@@ -1169,6 +1170,11 @@ declare namespace ApplicationInsights {
1169
1170
  * @since 3.3.2
1170
1171
  */
1171
1172
  expCfg?: IExceptionConfig;
1173
+ /**
1174
+ * [Optional] Internal SDK configuration for developers
1175
+ * @internal
1176
+ */
1177
+ _sdk?: IInternalSdkConfiguration;
1172
1178
  }
1173
1179
 
1174
1180
  interface ICookieMgr {
@@ -1550,6 +1556,18 @@ declare namespace ApplicationInsights {
1550
1556
  createOneDSPayload?: (evts: ITelemetryItem[]) => IPayloadData;
1551
1557
  }
1552
1558
 
1559
+ /**
1560
+ * Internal SDK configuration options
1561
+ * @internal
1562
+ */
1563
+ interface IInternalSdkConfiguration {
1564
+ /**
1565
+ * [Optional] Enable Internal StatsBeat
1566
+ * @internal
1567
+ */
1568
+ stats?: boolean;
1569
+ }
1570
+
1553
1571
  /**
1554
1572
  * Internal interface for sendBuffer, do not export it
1555
1573
  * @internal
@@ -2345,6 +2363,19 @@ declare namespace ApplicationInsights {
2345
2363
  * @since 3.2.0
2346
2364
  */
2347
2365
  maxRetryCnt?: number;
2366
+ /**
2367
+ * [Optional] Specifies the Cross-Origin Resource Policy (CORP) for the endpoint.
2368
+ * This value is included in the response header as `Cross-Origin-Resource-Policy`,
2369
+ * which helps control how resources can be shared across different origins.
2370
+ *
2371
+ * Possible values:
2372
+ * - `same-site`: Allows access only from the same site.
2373
+ * - `same-origin`: Allows access only from the same origin (protocol, host, and port).
2374
+ * - `cross-origin`: Allows access from any origin.
2375
+ *
2376
+ * @since 3.3.7
2377
+ */
2378
+ corsPolicy?: string;
2348
2379
  }
2349
2380
 
2350
2381
  interface ISerializable {
@@ -2356,6 +2387,20 @@ declare namespace ApplicationInsights {
2356
2387
  aiDataContract: any;
2357
2388
  }
2358
2389
 
2390
+ interface IStatsBeat {
2391
+ initialize(core: IAppInsightsCore, statsBeatConfig: IStatsBeatConfig): void;
2392
+ isInitialized(): boolean;
2393
+ count(status: number, payloadData: IPayloadData, endpoint: string): void;
2394
+ countException(endpoint: string, exceptionType: string): void;
2395
+ getEndpoint(): string;
2396
+ }
2397
+
2398
+ interface IStatsBeatConfig {
2399
+ ikey: string;
2400
+ endpoint: string;
2401
+ version?: string;
2402
+ }
2403
+
2359
2404
  /**
2360
2405
  * Identifies a simple interface to allow you to override the storage mechanism used
2361
2406
  * to track unsent and unacknowledged events. When provided it must provide both
@@ -2869,19 +2914,19 @@ declare namespace ApplicationInsights {
2869
2914
  triggerSend(async?: boolean, forcedSender?: SenderFunction, sendReason?: SendRequestReason): void | IPromise<boolean>;
2870
2915
  /**
2871
2916
  * error handler
2872
- * @Internal
2917
+ * @internal
2873
2918
  * since version 3.2.0, if the payload is string[], this function is no-op (string[] is only used for backwards Compatibility)
2874
2919
  */
2875
2920
  _onError(payload: string[] | IInternalStorageItem[], message: string, event?: ErrorEvent): void;
2876
2921
  /**
2877
2922
  * partial success handler
2878
- * @Internal
2923
+ * @internal
2879
2924
  * since version 3.2.0, if the payload is string[], this function is no-op (string[] is only used for backwards Compatibility)
2880
2925
  */
2881
2926
  _onPartialSuccess(payload: string[] | IInternalStorageItem[], results: IBackendResponse): void;
2882
2927
  /**
2883
2928
  * success handler
2884
- * @Internal
2929
+ * @internal
2885
2930
  * since version 3.2.0, if the payload is string[], this function is no-op (string[] is only used for backwards Compatibility)
2886
2931
  */
2887
2932
  _onSuccess(payload: string[] | IInternalStorageItem[], countOfItemsInPayload: number): void;