@microsoft/applicationinsights-channel-js 3.0.0-beta.2303-05 → 3.0.0-beta.2303-09

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 (30) hide show
  1. package/browser/applicationinsights-channel-js.integrity.json +9 -9
  2. package/browser/applicationinsights-channel-js.js +30 -68
  3. package/browser/applicationinsights-channel-js.js.map +1 -1
  4. package/browser/applicationinsights-channel-js.min.js +2 -2
  5. package/browser/applicationinsights-channel-js.min.js.map +1 -1
  6. package/dist/applicationinsights-channel-js.api.json +2 -2
  7. package/dist/applicationinsights-channel-js.api.md +2 -2
  8. package/dist/applicationinsights-channel-js.d.ts +3 -3
  9. package/dist/applicationinsights-channel-js.js +30 -68
  10. package/dist/applicationinsights-channel-js.js.map +1 -1
  11. package/dist/applicationinsights-channel-js.min.js +2 -2
  12. package/dist/applicationinsights-channel-js.min.js.map +1 -1
  13. package/dist/applicationinsights-channel-js.rollup.d.ts +3 -3
  14. package/dist-esm/EnvelopeCreator.js +2 -2
  15. package/dist-esm/EnvelopeCreator.js.map +1 -1
  16. package/dist-esm/Interfaces.js +1 -1
  17. package/dist-esm/InternalConstants.js +1 -1
  18. package/dist-esm/Offline.js +1 -1
  19. package/dist-esm/SendBuffer.js +1 -1
  20. package/dist-esm/Sender.js +6 -10
  21. package/dist-esm/Sender.js.map +1 -1
  22. package/dist-esm/Serializer.js +1 -1
  23. package/dist-esm/TelemetryProcessors/Sample.js +1 -1
  24. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/HashCodeScoreGenerator.js +1 -1
  25. package/dist-esm/TelemetryProcessors/SamplingScoreGenerators/SamplingScoreGenerator.js +1 -1
  26. package/dist-esm/__DynamicConstants.js +1 -1
  27. package/dist-esm/applicationinsights-channel-js.js +1 -1
  28. package/package.json +3 -3
  29. package/src/Sender.ts +11 -15
  30. package/types/Sender.d.ts +3 -3
@@ -1,5 +1,5 @@
1
1
  /*
2
- * Application Insights JavaScript SDK - Channel, 3.0.0-beta.2303-05
2
+ * Application Insights JavaScript SDK - Channel, 3.0.0-beta.2303-09
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 - Channel, 3.0.0-beta.2303-05
2
+ * Application Insights JavaScript SDK - Channel, 3.0.0-beta.2303-09
3
3
  * Copyright (c) Microsoft and contributors. All rights reserved.
4
4
  */
5
5
  export { Sender } from "./Sender";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@microsoft/applicationinsights-channel-js",
3
- "version": "3.0.0-beta.2303-05",
3
+ "version": "3.0.0-beta.2303-09",
4
4
  "description": "Microsoft Application Insights JavaScript SDK Channel",
5
5
  "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
6
  "author": "Microsoft Application Insights Team",
@@ -50,8 +50,8 @@
50
50
  "dependencies": {
51
51
  "@microsoft/dynamicproto-js": "^1.1.7",
52
52
  "@microsoft/applicationinsights-shims": "2.0.2",
53
- "@microsoft/applicationinsights-core-js": "3.0.0-beta.2303-05",
54
- "@microsoft/applicationinsights-common": "3.0.0-beta.2303-05",
53
+ "@microsoft/applicationinsights-core-js": "3.0.0-beta.2303-09",
54
+ "@microsoft/applicationinsights-common": "3.0.0-beta.2303-09",
55
55
  "@nevware21/ts-utils": ">= 0.8.1 < 2.x"
56
56
  },
57
57
  "license": "MIT",
package/src/Sender.ts CHANGED
@@ -1,18 +1,18 @@
1
1
  import dynamicProto from "@microsoft/dynamicproto-js";
2
2
  import {
3
- BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception, IChannelControlsAI,
4
- IConfig, IEnvelope, ISample, Metric, PageView, PageViewPerformance, ProcessLegacy, RemoteDependencyData, RequestHeaders, SampleRate,
5
- Trace, eRequestHeaders, isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage
3
+ BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception, IConfig, IEnvelope,
4
+ ISample, Metric, PageView, PageViewPerformance, ProcessLegacy, RemoteDependencyData, RequestHeaders, SampleRate, Trace, eRequestHeaders,
5
+ isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage
6
6
  } from "@microsoft/applicationinsights-common";
7
7
  import {
8
- BaseTelemetryPlugin, IAppInsightsCore, IConfigDefaults, IConfiguration, IDiagnosticLogger, INotificationManager, IPlugin,
9
- IProcessTelemetryContext, IProcessTelemetryUnloadContext, ITelemetryItem, ITelemetryPluginChain, ITelemetryUnloadState,
8
+ BaseTelemetryPlugin, IAppInsightsCore, IChannelControls, IConfigDefaults, IConfiguration, IDiagnosticLogger, INotificationManager,
9
+ IPlugin, IProcessTelemetryContext, IProcessTelemetryUnloadContext, ITelemetryItem, ITelemetryPluginChain, ITelemetryUnloadState,
10
10
  SendRequestReason, _eInternalMessageId, _throwInternal, _warnToConsole, arrForEach, cfgDfBoolean, cfgDfValidate,
11
11
  createProcessTelemetryContext, createUniqueNamespace, dateNow, dumpObj, eLoggingSeverity, getExceptionName, getIEVersion, getJSON,
12
12
  getNavigator, getWindow, isArray, isBeaconsSupported, isFetchSupported, isNullOrUndefined, isXhrSupported, mergeEvtNamespace, objExtend,
13
13
  objKeys, onConfigChange, useXDomainRequest
14
14
  } from "@microsoft/applicationinsights-core-js";
15
- import { ITimerHandler, isTruthy, objDeepFreeze, objDefineProp, scheduleTimeout } from "@nevware21/ts-utils";
15
+ import { ITimerHandler, isTruthy, objDeepFreeze, objDefine, scheduleTimeout } from "@nevware21/ts-utils";
16
16
  import {
17
17
  DependencyEnvelopeCreator, EventEnvelopeCreator, ExceptionEnvelopeCreator, MetricEnvelopeCreator, PageViewEnvelopeCreator,
18
18
  PageViewPerformanceEnvelopeCreator, TraceEnvelopeCreator
@@ -81,7 +81,7 @@ const EnvelopeTypeCreator: { [key:string] : EnvelopeCreator } = {
81
81
  [RemoteDependencyData.dataType]: DependencyEnvelopeCreator
82
82
  };
83
83
 
84
- export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
84
+ export class Sender extends BaseTelemetryPlugin implements IChannelControls {
85
85
 
86
86
  public static constructEnvelope(orig: ITelemetryItem, iKey: string, logger: IDiagnosticLogger, convertUndefined?: any): IEnvelope {
87
87
  let envelope: ITelemetryItem;
@@ -235,10 +235,8 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
235
235
  let ctx = createProcessTelemetryContext(null, config, core);
236
236
  let senderConfig = ctx.getExtCfg(identifier, defaultAppInsightsChannelConfig);
237
237
 
238
- objDefineProp(_self, "_senderConfig", {
239
- enumerable: true,
240
- configurable: true,
241
- get: function() {
238
+ objDefine(_self, "_senderConfig", {
239
+ g: function() {
242
240
  return senderConfig;
243
241
  }
244
242
  });
@@ -1152,10 +1150,8 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
1152
1150
  _sessionStorageUsed = null;
1153
1151
  _namePrefix = UNDEFINED_VALUE;
1154
1152
 
1155
- objDefineProp(_self, "_senderConfig", {
1156
- enumerable: true,
1157
- configurable: true,
1158
- get: function() {
1153
+ objDefine(_self, "_senderConfig", {
1154
+ g: function() {
1159
1155
  return objExtend({}, defaultAppInsightsChannelConfig);
1160
1156
  }
1161
1157
  });
package/types/Sender.d.ts CHANGED
@@ -1,9 +1,9 @@
1
- import { IChannelControlsAI, IConfig, IEnvelope, ISample } from "@microsoft/applicationinsights-common";
2
- import { BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, IDiagnosticLogger, IPlugin, IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain, SendRequestReason } from "@microsoft/applicationinsights-core-js";
1
+ import { IConfig, IEnvelope, ISample } from "@microsoft/applicationinsights-common";
2
+ import { BaseTelemetryPlugin, IAppInsightsCore, IChannelControls, IConfiguration, IDiagnosticLogger, IPlugin, IProcessTelemetryContext, ITelemetryItem, ITelemetryPluginChain, SendRequestReason } from "@microsoft/applicationinsights-core-js";
3
3
  import { IBackendResponse, ISenderConfig, XDomainRequest as IXDomainRequest } from "./Interfaces";
4
4
  import { ISendBuffer } from "./SendBuffer";
5
5
  export type SenderFunction = (payload: string[], isAsync: boolean) => void;
6
- export declare class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
6
+ export declare class Sender extends BaseTelemetryPlugin implements IChannelControls {
7
7
  static constructEnvelope(orig: ITelemetryItem, iKey: string, logger: IDiagnosticLogger, convertUndefined?: any): IEnvelope;
8
8
  readonly priority: number;
9
9
  readonly identifier: string;