@microsoft/1ds-core-js 3.2.2 → 3.2.3
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.
- package/README.md +1 -1
- package/bundle/{ms.core-3.2.2.gbl.js → ms.core-3.2.3.gbl.js} +1522 -1326
- package/bundle/ms.core-3.2.3.gbl.js.map +1 -0
- package/bundle/ms.core-3.2.3.gbl.min.js +7 -0
- package/bundle/ms.core-3.2.3.gbl.min.js.map +1 -0
- package/bundle/ms.core-3.2.3.integrity.json +46 -0
- package/bundle/{ms.core-3.2.2.js → ms.core-3.2.3.js} +1522 -1326
- package/bundle/ms.core-3.2.3.js.map +1 -0
- package/bundle/ms.core-3.2.3.min.js +7 -0
- package/bundle/ms.core-3.2.3.min.js.map +1 -0
- package/bundle/ms.core.gbl.js +1521 -1325
- package/bundle/ms.core.gbl.js.map +1 -1
- package/bundle/ms.core.gbl.min.js +2 -2
- package/bundle/ms.core.gbl.min.js.map +1 -1
- package/bundle/ms.core.integrity.json +17 -17
- package/bundle/ms.core.js +1521 -1325
- package/bundle/ms.core.js.map +1 -1
- package/bundle/ms.core.min.js +2 -2
- package/bundle/ms.core.min.js.map +1 -1
- package/dist/ms.core.js +10 -2
- package/dist/ms.core.js.map +1 -1
- package/dist/ms.core.min.js +2 -2
- package/dist/ms.core.min.js.map +1 -1
- package/dist-esm/src/AppInsightsCore.js +4 -4
- package/dist-esm/src/AppInsightsCore.js.map +1 -1
- package/dist-esm/src/BaseCore.js +2 -2
- package/dist-esm/src/BaseCore.js.map +1 -1
- package/dist-esm/src/DataModels.js +1 -1
- package/dist-esm/src/ESPromise.js +9 -9
- package/dist-esm/src/ESPromise.js.map +1 -1
- package/dist-esm/src/ESPromiseScheduler.js +1 -1
- package/dist-esm/src/Enums.d.ts +1 -0
- package/dist-esm/src/Enums.js +56 -56
- package/dist-esm/src/Enums.js.map +1 -1
- package/dist-esm/src/Index.d.ts +1 -1
- package/dist-esm/src/Index.js +2 -2
- package/dist-esm/src/Index.js.map +1 -1
- package/dist-esm/src/Utils.d.ts +1 -1
- package/dist-esm/src/Utils.js +23 -23
- package/dist-esm/src/Utils.js.map +1 -1
- package/dist-esm/src/ValueSanitizer.js +15 -15
- package/dist-esm/src/ValueSanitizer.js.map +1 -1
- package/package.json +2 -3
- package/src/Index.ts +2 -2
- package/bundle/ms.core-3.2.2.gbl.js.map +0 -1
- package/bundle/ms.core-3.2.2.gbl.min.js +0 -7
- package/bundle/ms.core-3.2.2.gbl.min.js.map +0 -1
- package/bundle/ms.core-3.2.2.integrity.json +0 -46
- package/bundle/ms.core-3.2.2.js.map +0 -1
- package/bundle/ms.core-3.2.2.min.js +0 -7
- package/bundle/ms.core-3.2.2.min.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"BaseCore.js.map","sources":["BaseCore.js"],"sourcesContent":["import { __extends } from \"tslib\";\r\n/**\r\n * BaseCore.ts\r\n * Base Core is a subset of 1DS Web SDK Core. The purpose of Base Core is to generate a smaller bundle size while providing essential features of Core. Features that are not included in Base Core are:\r\n * 1. Internal logging\r\n * 2. Sending notifications on telemetry sent/discarded\r\n * @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)\r\n * @copyright Microsoft 2018\r\n */\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { BaseCore as InternalCore, dumpObj, _throwInternal } from \"@microsoft/applicationinsights-core-js\";\r\nimport { FullVersionString, isDocumentObjectAvailable } from \"./Utils\";\r\nvar BaseCore = /** @class */ (function (_super) {\r\n __extends(BaseCore, _super);\r\n function BaseCore() {\r\n var _this = _super.call(this) || this;\r\n dynamicProto(BaseCore, _this, function (_self, _base) {\r\n _self.initialize = function (config, extensions, logger, notificationManager) {\r\n if (config && !config.endpointUrl) {\r\n config.endpointUrl = \"https://browser.events.data.microsoft.com/OneCollector/1.0/\";\r\n }\r\n _self.getWParam = function () {\r\n return isDocumentObjectAvailable ? 0 : -1;\r\n };\r\n try {\r\n _base.initialize(config, extensions, logger, notificationManager);\r\n }\r\n catch (e) {\r\n _throwInternal(_self.logger, 1 /* CRITICAL */, 514 /* FailedToInitializeSDK */, \"Initialization Failed: \" + dumpObj(e) + \"\\n - Note: Channels must be provided through config.channels only\");\r\n }\r\n };\r\n _self.track = function (item) {\r\n var telemetryItem = item;\r\n if (telemetryItem) {\r\n var ext = telemetryItem.ext = telemetryItem.ext || {};\r\n ext.sdk = ext.sdk || {};\r\n ext.sdk.ver = FullVersionString;\r\n }\r\n _base.track(telemetryItem);\r\n };\r\n });\r\n return _this;\r\n }\r\n /**\r\n * Initialize the sdk.\r\n * @param config - The configuration to initialize the SDK.\r\n * @param extensions - An array of extensions that are to be used by the core.\r\n */\r\n BaseCore.prototype.initialize = function (config, extensions, logger, notificationManager) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n BaseCore.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return BaseCore;\r\n}(InternalCore));\r\nexport default BaseCore;\r\n//# sourceMappingURL=BaseCore.js.map"],"names":[],"mappings":";;;;;AAAA,gFAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;6CAUM;AACN;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"BaseCore.js.map","sources":["BaseCore.js"],"sourcesContent":["import { __extends } from \"tslib\";\r\n/**\r\n * BaseCore.ts\r\n * Base Core is a subset of 1DS Web SDK Core. The purpose of Base Core is to generate a smaller bundle size while providing essential features of Core. Features that are not included in Base Core are:\r\n * 1. Internal logging\r\n * 2. Sending notifications on telemetry sent/discarded\r\n * @author Abhilash Panwar (abpanwar) Hector Hernandez (hectorh)\r\n * @copyright Microsoft 2018\r\n */\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\nimport { BaseCore as InternalCore, dumpObj, _throwInternal } from \"@microsoft/applicationinsights-core-js\";\r\nimport { FullVersionString, isDocumentObjectAvailable } from \"./Utils\";\r\nvar BaseCore = /** @class */ (function (_super) {\r\n __extends(BaseCore, _super);\r\n function BaseCore() {\r\n var _this = _super.call(this) || this;\r\n dynamicProto(BaseCore, _this, function (_self, _base) {\r\n _self.initialize = function (config, extensions, logger, notificationManager) {\r\n if (config && !config.endpointUrl) {\r\n config.endpointUrl = \"https://browser.events.data.microsoft.com/OneCollector/1.0/\";\r\n }\r\n _self.getWParam = function () {\r\n return isDocumentObjectAvailable ? 0 : -1;\r\n };\r\n try {\r\n _base.initialize(config, extensions, logger, notificationManager);\r\n }\r\n catch (e) {\r\n _throwInternal(_self.logger, 1 /* eLoggingSeverity.CRITICAL */, 514 /* _eExtendedInternalMessageId.FailedToInitializeSDK */, \"Initialization Failed: \" + dumpObj(e) + \"\\n - Note: Channels must be provided through config.channels only\");\r\n }\r\n };\r\n _self.track = function (item) {\r\n var telemetryItem = item;\r\n if (telemetryItem) {\r\n var ext = telemetryItem.ext = telemetryItem.ext || {};\r\n ext.sdk = ext.sdk || {};\r\n ext.sdk.ver = FullVersionString;\r\n }\r\n _base.track(telemetryItem);\r\n };\r\n });\r\n return _this;\r\n }\r\n /**\r\n * Initialize the sdk.\r\n * @param config - The configuration to initialize the SDK.\r\n * @param extensions - An array of extensions that are to be used by the core.\r\n */\r\n BaseCore.prototype.initialize = function (config, extensions, logger, notificationManager) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n BaseCore.prototype.track = function (item) {\r\n // @DynamicProtoStub -- DO NOT add any code as this will be removed during packaging\r\n };\r\n return BaseCore;\r\n}(InternalCore));\r\nexport default BaseCore;\r\n//# sourceMappingURL=BaseCore.js.map"],"names":[],"mappings":";;;;;AAAA,gFAAkC;AAClC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;6CAUM;AACN;AACA;AACA;AACA"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 1DS JS SDK Core, 3.2.
|
|
2
|
+
* 1DS JS SDK Core, 3.2.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
@@ -49,7 +49,7 @@ var ESPromise = /** @class */ (function () {
|
|
|
49
49
|
* promise is rejected. The return value of the executor is ignored.
|
|
50
50
|
*/
|
|
51
51
|
function ESPromise(resolverFunc) {
|
|
52
|
-
var _state = 0 /* Pending */;
|
|
52
|
+
var _state = 0 /* PromiseState.Pending */;
|
|
53
53
|
var _settledValue = null;
|
|
54
54
|
var _queue = [];
|
|
55
55
|
dynamicProto(ESPromise, this, function (_this) {
|
|
@@ -71,7 +71,7 @@ var ESPromise = /** @class */ (function () {
|
|
|
71
71
|
// First call the onFulfilled or onRejected handler, on the settled value
|
|
72
72
|
// of this promise. If the corresponding handler does not exist, simply
|
|
73
73
|
// pass through the settled value.
|
|
74
|
-
if (_state === 1 /* Resolved */) {
|
|
74
|
+
if (_state === 1 /* PromiseState.Resolved */) {
|
|
75
75
|
value = _isFunction(onResolved) ? onResolved(_settledValue) : _settledValue;
|
|
76
76
|
}
|
|
77
77
|
else {
|
|
@@ -82,7 +82,7 @@ var ESPromise = /** @class */ (function () {
|
|
|
82
82
|
// will follow the state of this promise.
|
|
83
83
|
value.then(resolve, reject);
|
|
84
84
|
}
|
|
85
|
-
else if (_state === 2 /* Rejected */ && !_isFunction(onRejected)) {
|
|
85
|
+
else if (_state === 2 /* PromiseState.Rejected */ && !_isFunction(onRejected)) {
|
|
86
86
|
// If there wasn't an onRejected handler and this promise is rejected, then
|
|
87
87
|
// the chained promise also rejects with the same reason.
|
|
88
88
|
reject(value);
|
|
@@ -105,7 +105,7 @@ var ESPromise = /** @class */ (function () {
|
|
|
105
105
|
});
|
|
106
106
|
// If this promise is already settled, then immediately process the callback we
|
|
107
107
|
// just added to the queue.
|
|
108
|
-
if (_state !== 0 /* Pending */) {
|
|
108
|
+
if (_state !== 0 /* PromiseState.Pending */) {
|
|
109
109
|
_processQueue();
|
|
110
110
|
}
|
|
111
111
|
}
|
|
@@ -129,16 +129,16 @@ var ESPromise = /** @class */ (function () {
|
|
|
129
129
|
}
|
|
130
130
|
}
|
|
131
131
|
function _resolve(value) {
|
|
132
|
-
if (_state === 0 /* Pending */) {
|
|
132
|
+
if (_state === 0 /* PromiseState.Pending */) {
|
|
133
133
|
_settledValue = value;
|
|
134
|
-
_state = 1 /* Resolved */;
|
|
134
|
+
_state = 1 /* PromiseState.Resolved */;
|
|
135
135
|
_processQueue();
|
|
136
136
|
}
|
|
137
137
|
}
|
|
138
138
|
function _reject(reason) {
|
|
139
|
-
if (_state === 0 /* Pending */) {
|
|
139
|
+
if (_state === 0 /* PromiseState.Pending */) {
|
|
140
140
|
_settledValue = reason;
|
|
141
|
-
_state = 2 /* Rejected */;
|
|
141
|
+
_state = 2 /* PromiseState.Rejected */;
|
|
142
142
|
_processQueue();
|
|
143
143
|
}
|
|
144
144
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ESPromise.js.map","sources":["ESPromise.js"],"sourcesContent":["/**\r\n * ESPromise.ts\r\n * @author Nev Wylie (newylie))\r\n * @copyright Microsoft 2019\r\n * Simplified wrapper to provide ES6 style Promise callback handling for older browsers\r\n */\r\nimport { isFunction } from \"@microsoft/applicationinsights-core-js\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\n/**\r\n * @ignore -- Don't include in the generated documentation\r\n * Using a local variable to assist with minfication\r\n */\r\nvar _isFunction = isFunction;\r\n/**\r\n * @ignore -- Don't include in the generated documentation\r\n * This function will be used as onFulfilled handler for any Promise found in the iterable passed to Promise.all.\r\n * The goal here is to capture in a closure the index of the current item from the iterable. If we did not create\r\n * this closure, the captured index variable would be the same one that the for loop updates and thus would always\r\n * be pointing to the last index in the iterable by the time that the onFulfilled handler is called.\r\n * However, note that for the resolvedCallback callback we want the opposite. For this one we do want to capture\r\n * the same variable that the for loop updates so that we have the full count of pending promises by the time\r\n * the onFulfilled handlers start getting called.\r\n * @param values The resolving promise values\r\n * @param index The index of this callback function\r\n * @param resolvedCallback THe callback function used to check if the \"all\" promise is complete\r\n */\r\nfunction _createPromiseAllOnResolvedFunction(values, index, resolvedCallback) {\r\n return function (value) {\r\n values[index] = value;\r\n resolvedCallback();\r\n };\r\n}\r\n/**\r\n * Simplified wrapper to provide ES6 style Promise callback handling for older browsers\r\n */\r\nvar ESPromise = /** @class */ (function () {\r\n /**\r\n * The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.\r\n * @param resolverFunc A function that is passed with the arguments resolve and reject. The executor function is executed\r\n * immediately by the Promise implementation, passing resolve and reject functions (the executor is called before the Promise\r\n * constructor even returns the created object). The resolve and reject functions, when called, resolve or reject the promise,\r\n * respectively. The executor normally initiates some asynchronous work, and then, once that completes, either calls the resolve\r\n * function to resolve the promise or else rejects it if an error occurred. If an error is thrown in the executor function, the\r\n * promise is rejected. The return value of the executor is ignored.\r\n */\r\n function ESPromise(resolverFunc) {\r\n var _state = 0 /* Pending */;\r\n var _settledValue = null;\r\n var _queue = [];\r\n dynamicProto(ESPromise, this, function (_this) {\r\n _this.then = function (onResolved, onRejected) {\r\n return new ESPromise(function (resolve, reject) {\r\n // Queue the new promise returned to be resolved or rejected\r\n // when this promise settles.\r\n _enqueue(onResolved, onRejected, resolve, reject);\r\n });\r\n };\r\n _this[\"catch\"] = function (onRejected) {\r\n return _this.then(null, onRejected);\r\n };\r\n });\r\n function _enqueue(onResolved, onRejected, resolve, reject) {\r\n _queue.push(function () {\r\n var value;\r\n try {\r\n // First call the onFulfilled or onRejected handler, on the settled value\r\n // of this promise. If the corresponding handler does not exist, simply\r\n // pass through the settled value.\r\n if (_state === 1 /* Resolved */) {\r\n value = _isFunction(onResolved) ? onResolved(_settledValue) : _settledValue;\r\n }\r\n else {\r\n value = _isFunction(onRejected) ? onRejected(_settledValue) : _settledValue;\r\n }\r\n if (value instanceof ESPromise) {\r\n // The called handlers returned a new promise, so the chained promise\r\n // will follow the state of this promise.\r\n value.then(resolve, reject);\r\n }\r\n else if (_state === 2 /* Rejected */ && !_isFunction(onRejected)) {\r\n // If there wasn't an onRejected handler and this promise is rejected, then\r\n // the chained promise also rejects with the same reason.\r\n reject(value);\r\n }\r\n else {\r\n // If this promise is fulfilled, then the chained promise is also fulfilled\r\n // with either the settled value of this promise (if no onFulfilled handler\r\n // was available) or the return value of the handler. If this promise is\r\n // rejected and there was an onRejected handler, then the chained promise is\r\n // fulfilled with the return value of the handler.\r\n resolve(value);\r\n }\r\n }\r\n catch (error) {\r\n // The chained promise will reject if there is any exception thrown while\r\n // calling the onFulfilled or onRejected handlers.\r\n reject(error);\r\n return;\r\n }\r\n });\r\n // If this promise is already settled, then immediately process the callback we\r\n // just added to the queue.\r\n if (_state !== 0 /* Pending */) {\r\n _processQueue();\r\n }\r\n }\r\n function _processQueue() {\r\n if (_queue.length > 0) {\r\n // The onFulfilled and onRejected handlers must be called asynchronously. Thus,\r\n // we make a copy of the queue and work on it once the current call stack unwinds.\r\n var pending_1 = _queue.slice();\r\n _queue = [];\r\n setTimeout(function () {\r\n for (var i = 0, len = pending_1.length; i < len; ++i) {\r\n try {\r\n pending_1[i]();\r\n }\r\n catch (e) {\r\n // Don't let 1 failing handler break all others\r\n // TODO (newylie): Add some form of error reporting (i.e. Call any registered JS error handler so the error is reported)\r\n }\r\n }\r\n }, 0);\r\n }\r\n }\r\n function _resolve(value) {\r\n if (_state === 0 /* Pending */) {\r\n _settledValue = value;\r\n _state = 1 /* Resolved */;\r\n _processQueue();\r\n }\r\n }\r\n function _reject(reason) {\r\n if (_state === 0 /* Pending */) {\r\n _settledValue = reason;\r\n _state = 2 /* Rejected */;\r\n _processQueue();\r\n }\r\n }\r\n (function _initialize() {\r\n if (!_isFunction(resolverFunc)) {\r\n throw new TypeError(\"ESPromise: resolvedFunc argument is not a Function\");\r\n }\r\n try {\r\n resolverFunc(_resolve, _reject);\r\n }\r\n catch (error) {\r\n // This promise will immediately reject if any exception is thrown\r\n // from within the executor function.\r\n _reject(error);\r\n }\r\n })();\r\n }\r\n /**\r\n * The Promise.resolve() method returns a Promise object that is resolved with a given value. If the value is a promise, that promise is returned;\r\n * if the value is a thenable (i.e. has a \"then\" method), the returned promise will \"follow\" that thenable, adopting its eventual state; otherwise\r\n * the returned promise will be fulfilled with the value. This function flattens nested layers of promise-like objects (e.g. a promise that resolves\r\n * to a promise that resolves to something) into a single layer.\r\n * @param value Argument to be resolved by this Promise. Can also be a Promise or a thenable to resolve.\r\n */\r\n ESPromise.resolve = function (value) {\r\n if (value instanceof ESPromise) {\r\n // Value is a Promise so just return it\r\n return value;\r\n }\r\n else if (value && _isFunction(value.then)) {\r\n // Value looks like a promise or thenable (has a then function)\r\n return new ESPromise(function (resolve, reject) {\r\n try {\r\n value.then(resolve, reject);\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n }\r\n return new ESPromise(function (resolve) {\r\n resolve(value);\r\n });\r\n };\r\n /**\r\n * The Promise.reject() method returns a Promise object that is rejected with a given reason.\r\n * @param reason The reason why this Promise rejected.\r\n */\r\n ESPromise.reject = function (reason) {\r\n return new ESPromise(function (resolve, reject) {\r\n reject(reason);\r\n });\r\n };\r\n /**\r\n * The Promise.all() method returns a single Promise that resolves when all of the promises passed as an iterable\r\n * have resolved or when the iterable contains no promises. It rejects with the reason of the first promise that\r\n * rejects. There is no implied ordering in the execution of the array of Promises given. On some computers, they\r\n * may be executed in parallel, or in some sense concurrently, while on others they may be executed serially. For\r\n * this reason, there must be no dependency in any Promise on the order of execution of the Promises.\r\n * This method can be useful for aggregating the results of multiple promises.\r\n * FulfillmentSection - The returned promise is fulfilled with an array containing all the values of the iterable\r\n * passed as argument (also non-promise values).\r\n * If an empty iterable is passed, then this method returns (synchronously) an already resolved promise.\r\n * If all of the passed-in promises fulfill, or are not promises, the promise returned by Promise.all is fulfilled\r\n * asynchronously.\r\n * RejectionSection - If any of the passed-in promises reject, Promise.all asynchronously rejects with the value of\r\n * the promise that rejected, whether or not the other promises have resolved.\r\n * @param iterable\r\n */\r\n ESPromise.all = function (iterable) {\r\n if (!iterable || !iterable.length) {\r\n return;\r\n }\r\n return new ESPromise(function (resolve, reject) {\r\n try {\r\n var values_1 = [];\r\n var pending_2 = 0;\r\n for (var lp = 0; lp < iterable.length; lp++) {\r\n var item = iterable[lp];\r\n // Quick and direct check for a Promise (will also catch a thenable)\r\n if (item && _isFunction(item.then)) {\r\n pending_2++;\r\n item.then(_createPromiseAllOnResolvedFunction(values_1, lp, function () {\r\n if (--pending_2 === 0) {\r\n resolve(values_1);\r\n }\r\n }), reject);\r\n }\r\n else {\r\n values_1[lp] = item;\r\n }\r\n }\r\n if (pending_2 === 0) {\r\n // All promises were either resolved or where not a promise\r\n setTimeout(function () {\r\n resolve(values_1);\r\n }, 0);\r\n }\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n };\r\n /**\r\n * The race function returns a Promise that is settled the same way (and takes the same value) as the first promise\r\n * that settles amongst the promises of the iterable passed as an argument.\r\n * If the iterable passed is empty, the promise returned will be forever pending.\r\n * If the iterable contains one or more non-promise value and/or an already settled promise, then Promise.race will\r\n * resolve to the first of these values found in the iterable.\r\n * @param iterable\r\n */\r\n ESPromise.race = function (iterable) {\r\n return new ESPromise(function (resolve, reject) {\r\n if (!iterable || !iterable.length) {\r\n return;\r\n }\r\n try {\r\n var _loop_1 = function (lp) {\r\n var item = iterable[lp];\r\n // Quick and direct check for a Promise (will also catch a thenable)\r\n if (item && _isFunction(item.then)) {\r\n item.then(resolve, reject);\r\n }\r\n else {\r\n setTimeout(function () {\r\n resolve(item);\r\n }, 0);\r\n }\r\n };\r\n for (var lp = 0; lp < iterable.length; lp++) {\r\n _loop_1(lp);\r\n }\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n };\r\n /**\r\n * The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise.\r\n * @param onResolved A Function called if the Promise is fulfilled. This function has one argument, the fulfillment value. If it is not a\r\n * function, it is internally replaced with an \"Identity\" function (it returns the received argument).\r\n * @param onRejected A Function called if the Promise is rejected. This function has one argument, the rejection reason. If it is not a\r\n * function, it is internally replaced with a \"Thrower\" function (it throws an error it received as argument).\r\n * @returns Once a Promise is fulfilled or rejected, the respective handler function (onFulfilled or onRejected) will be called asynchronously\r\n * (scheduled in the current thread loop). The behavior of the handler function follows a specific set of rules. If a handler function:\r\n * - returns a value, the promise returned by then gets resolved with the returned value as its value;\r\n * - doesn't return anything, the promise returned by then gets resolved with an undefined value;\r\n * - throws an error, the promise returned by then gets rejected with the thrown error as its value;\r\n * - returns an already fulfilled promise, the promise returned by then gets fulfilled with that promise's value as its value;\r\n * - returns an already rejected promise, the promise returned by then gets rejected with that promise's value as its value;\r\n * - returns another pending promise object, the resolution/rejection of the promise returned by then will be subsequent to the\r\n * resolution/rejection of the promise returned by the handler. Also, the value of the promise returned by then will be the same as the value of the promise returned by the handler.\r\n */\r\n ESPromise.prototype.then = function (onResolved, onRejected) {\r\n // @DynamicProtoStub - DO NOT add any code as this will be removed during packaging\r\n return;\r\n };\r\n /**\r\n * The catch() method returns a Promise and deals with rejected cases only. It behaves the same as calling Promise.prototype.then(undefined, onRejected)\r\n * (in fact, calling obj.catch(onRejected) internally calls obj.then(undefined, onRejected)). This means that you have to provide an onRejected function\r\n * even if you want to fall back to an undefined result value - for example obj.catch(() => {}).\r\n * @param onRejected A Function called when the Promise is rejected. This function has one argument: reason The rejection reason.\r\n * @returns Internally calls Promise.prototype.then on the object upon which it was called, passing the parameters undefined and the received\r\n * onRejected handler. Returns the value of that call, which is a Promise.\r\n */\r\n ESPromise.prototype[\"catch\"] = function (onRejected) {\r\n // @DynamicProtoStub - DO NOT add any code as this will be removed during packaging\r\n return;\r\n };\r\n return ESPromise;\r\n}());\r\nexport default ESPromise;\r\n//# sourceMappingURL=ESPromise.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iDA+BM;AACN;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"ESPromise.js.map","sources":["ESPromise.js"],"sourcesContent":["/**\r\n * ESPromise.ts\r\n * @author Nev Wylie (newylie))\r\n * @copyright Microsoft 2019\r\n * Simplified wrapper to provide ES6 style Promise callback handling for older browsers\r\n */\r\nimport { isFunction } from \"@microsoft/applicationinsights-core-js\";\r\nimport dynamicProto from \"@microsoft/dynamicproto-js\";\r\n/**\r\n * @ignore -- Don't include in the generated documentation\r\n * Using a local variable to assist with minfication\r\n */\r\nvar _isFunction = isFunction;\r\n/**\r\n * @ignore -- Don't include in the generated documentation\r\n * This function will be used as onFulfilled handler for any Promise found in the iterable passed to Promise.all.\r\n * The goal here is to capture in a closure the index of the current item from the iterable. If we did not create\r\n * this closure, the captured index variable would be the same one that the for loop updates and thus would always\r\n * be pointing to the last index in the iterable by the time that the onFulfilled handler is called.\r\n * However, note that for the resolvedCallback callback we want the opposite. For this one we do want to capture\r\n * the same variable that the for loop updates so that we have the full count of pending promises by the time\r\n * the onFulfilled handlers start getting called.\r\n * @param values The resolving promise values\r\n * @param index The index of this callback function\r\n * @param resolvedCallback THe callback function used to check if the \"all\" promise is complete\r\n */\r\nfunction _createPromiseAllOnResolvedFunction(values, index, resolvedCallback) {\r\n return function (value) {\r\n values[index] = value;\r\n resolvedCallback();\r\n };\r\n}\r\n/**\r\n * Simplified wrapper to provide ES6 style Promise callback handling for older browsers\r\n */\r\nvar ESPromise = /** @class */ (function () {\r\n /**\r\n * The Promise object represents the eventual completion (or failure) of an asynchronous operation, and its resulting value.\r\n * @param resolverFunc A function that is passed with the arguments resolve and reject. The executor function is executed\r\n * immediately by the Promise implementation, passing resolve and reject functions (the executor is called before the Promise\r\n * constructor even returns the created object). The resolve and reject functions, when called, resolve or reject the promise,\r\n * respectively. The executor normally initiates some asynchronous work, and then, once that completes, either calls the resolve\r\n * function to resolve the promise or else rejects it if an error occurred. If an error is thrown in the executor function, the\r\n * promise is rejected. The return value of the executor is ignored.\r\n */\r\n function ESPromise(resolverFunc) {\r\n var _state = 0 /* PromiseState.Pending */;\r\n var _settledValue = null;\r\n var _queue = [];\r\n dynamicProto(ESPromise, this, function (_this) {\r\n _this.then = function (onResolved, onRejected) {\r\n return new ESPromise(function (resolve, reject) {\r\n // Queue the new promise returned to be resolved or rejected\r\n // when this promise settles.\r\n _enqueue(onResolved, onRejected, resolve, reject);\r\n });\r\n };\r\n _this[\"catch\"] = function (onRejected) {\r\n return _this.then(null, onRejected);\r\n };\r\n });\r\n function _enqueue(onResolved, onRejected, resolve, reject) {\r\n _queue.push(function () {\r\n var value;\r\n try {\r\n // First call the onFulfilled or onRejected handler, on the settled value\r\n // of this promise. If the corresponding handler does not exist, simply\r\n // pass through the settled value.\r\n if (_state === 1 /* PromiseState.Resolved */) {\r\n value = _isFunction(onResolved) ? onResolved(_settledValue) : _settledValue;\r\n }\r\n else {\r\n value = _isFunction(onRejected) ? onRejected(_settledValue) : _settledValue;\r\n }\r\n if (value instanceof ESPromise) {\r\n // The called handlers returned a new promise, so the chained promise\r\n // will follow the state of this promise.\r\n value.then(resolve, reject);\r\n }\r\n else if (_state === 2 /* PromiseState.Rejected */ && !_isFunction(onRejected)) {\r\n // If there wasn't an onRejected handler and this promise is rejected, then\r\n // the chained promise also rejects with the same reason.\r\n reject(value);\r\n }\r\n else {\r\n // If this promise is fulfilled, then the chained promise is also fulfilled\r\n // with either the settled value of this promise (if no onFulfilled handler\r\n // was available) or the return value of the handler. If this promise is\r\n // rejected and there was an onRejected handler, then the chained promise is\r\n // fulfilled with the return value of the handler.\r\n resolve(value);\r\n }\r\n }\r\n catch (error) {\r\n // The chained promise will reject if there is any exception thrown while\r\n // calling the onFulfilled or onRejected handlers.\r\n reject(error);\r\n return;\r\n }\r\n });\r\n // If this promise is already settled, then immediately process the callback we\r\n // just added to the queue.\r\n if (_state !== 0 /* PromiseState.Pending */) {\r\n _processQueue();\r\n }\r\n }\r\n function _processQueue() {\r\n if (_queue.length > 0) {\r\n // The onFulfilled and onRejected handlers must be called asynchronously. Thus,\r\n // we make a copy of the queue and work on it once the current call stack unwinds.\r\n var pending_1 = _queue.slice();\r\n _queue = [];\r\n setTimeout(function () {\r\n for (var i = 0, len = pending_1.length; i < len; ++i) {\r\n try {\r\n pending_1[i]();\r\n }\r\n catch (e) {\r\n // Don't let 1 failing handler break all others\r\n // TODO (newylie): Add some form of error reporting (i.e. Call any registered JS error handler so the error is reported)\r\n }\r\n }\r\n }, 0);\r\n }\r\n }\r\n function _resolve(value) {\r\n if (_state === 0 /* PromiseState.Pending */) {\r\n _settledValue = value;\r\n _state = 1 /* PromiseState.Resolved */;\r\n _processQueue();\r\n }\r\n }\r\n function _reject(reason) {\r\n if (_state === 0 /* PromiseState.Pending */) {\r\n _settledValue = reason;\r\n _state = 2 /* PromiseState.Rejected */;\r\n _processQueue();\r\n }\r\n }\r\n (function _initialize() {\r\n if (!_isFunction(resolverFunc)) {\r\n throw new TypeError(\"ESPromise: resolvedFunc argument is not a Function\");\r\n }\r\n try {\r\n resolverFunc(_resolve, _reject);\r\n }\r\n catch (error) {\r\n // This promise will immediately reject if any exception is thrown\r\n // from within the executor function.\r\n _reject(error);\r\n }\r\n })();\r\n }\r\n /**\r\n * The Promise.resolve() method returns a Promise object that is resolved with a given value. If the value is a promise, that promise is returned;\r\n * if the value is a thenable (i.e. has a \"then\" method), the returned promise will \"follow\" that thenable, adopting its eventual state; otherwise\r\n * the returned promise will be fulfilled with the value. This function flattens nested layers of promise-like objects (e.g. a promise that resolves\r\n * to a promise that resolves to something) into a single layer.\r\n * @param value Argument to be resolved by this Promise. Can also be a Promise or a thenable to resolve.\r\n */\r\n ESPromise.resolve = function (value) {\r\n if (value instanceof ESPromise) {\r\n // Value is a Promise so just return it\r\n return value;\r\n }\r\n else if (value && _isFunction(value.then)) {\r\n // Value looks like a promise or thenable (has a then function)\r\n return new ESPromise(function (resolve, reject) {\r\n try {\r\n value.then(resolve, reject);\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n }\r\n return new ESPromise(function (resolve) {\r\n resolve(value);\r\n });\r\n };\r\n /**\r\n * The Promise.reject() method returns a Promise object that is rejected with a given reason.\r\n * @param reason The reason why this Promise rejected.\r\n */\r\n ESPromise.reject = function (reason) {\r\n return new ESPromise(function (resolve, reject) {\r\n reject(reason);\r\n });\r\n };\r\n /**\r\n * The Promise.all() method returns a single Promise that resolves when all of the promises passed as an iterable\r\n * have resolved or when the iterable contains no promises. It rejects with the reason of the first promise that\r\n * rejects. There is no implied ordering in the execution of the array of Promises given. On some computers, they\r\n * may be executed in parallel, or in some sense concurrently, while on others they may be executed serially. For\r\n * this reason, there must be no dependency in any Promise on the order of execution of the Promises.\r\n * This method can be useful for aggregating the results of multiple promises.\r\n * FulfillmentSection - The returned promise is fulfilled with an array containing all the values of the iterable\r\n * passed as argument (also non-promise values).\r\n * If an empty iterable is passed, then this method returns (synchronously) an already resolved promise.\r\n * If all of the passed-in promises fulfill, or are not promises, the promise returned by Promise.all is fulfilled\r\n * asynchronously.\r\n * RejectionSection - If any of the passed-in promises reject, Promise.all asynchronously rejects with the value of\r\n * the promise that rejected, whether or not the other promises have resolved.\r\n * @param iterable\r\n */\r\n ESPromise.all = function (iterable) {\r\n if (!iterable || !iterable.length) {\r\n return;\r\n }\r\n return new ESPromise(function (resolve, reject) {\r\n try {\r\n var values_1 = [];\r\n var pending_2 = 0;\r\n for (var lp = 0; lp < iterable.length; lp++) {\r\n var item = iterable[lp];\r\n // Quick and direct check for a Promise (will also catch a thenable)\r\n if (item && _isFunction(item.then)) {\r\n pending_2++;\r\n item.then(_createPromiseAllOnResolvedFunction(values_1, lp, function () {\r\n if (--pending_2 === 0) {\r\n resolve(values_1);\r\n }\r\n }), reject);\r\n }\r\n else {\r\n values_1[lp] = item;\r\n }\r\n }\r\n if (pending_2 === 0) {\r\n // All promises were either resolved or where not a promise\r\n setTimeout(function () {\r\n resolve(values_1);\r\n }, 0);\r\n }\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n };\r\n /**\r\n * The race function returns a Promise that is settled the same way (and takes the same value) as the first promise\r\n * that settles amongst the promises of the iterable passed as an argument.\r\n * If the iterable passed is empty, the promise returned will be forever pending.\r\n * If the iterable contains one or more non-promise value and/or an already settled promise, then Promise.race will\r\n * resolve to the first of these values found in the iterable.\r\n * @param iterable\r\n */\r\n ESPromise.race = function (iterable) {\r\n return new ESPromise(function (resolve, reject) {\r\n if (!iterable || !iterable.length) {\r\n return;\r\n }\r\n try {\r\n var _loop_1 = function (lp) {\r\n var item = iterable[lp];\r\n // Quick and direct check for a Promise (will also catch a thenable)\r\n if (item && _isFunction(item.then)) {\r\n item.then(resolve, reject);\r\n }\r\n else {\r\n setTimeout(function () {\r\n resolve(item);\r\n }, 0);\r\n }\r\n };\r\n for (var lp = 0; lp < iterable.length; lp++) {\r\n _loop_1(lp);\r\n }\r\n }\r\n catch (error) {\r\n reject(error);\r\n }\r\n });\r\n };\r\n /**\r\n * The then() method returns a Promise. It takes up to two arguments: callback functions for the success and failure cases of the Promise.\r\n * @param onResolved A Function called if the Promise is fulfilled. This function has one argument, the fulfillment value. If it is not a\r\n * function, it is internally replaced with an \"Identity\" function (it returns the received argument).\r\n * @param onRejected A Function called if the Promise is rejected. This function has one argument, the rejection reason. If it is not a\r\n * function, it is internally replaced with a \"Thrower\" function (it throws an error it received as argument).\r\n * @returns Once a Promise is fulfilled or rejected, the respective handler function (onFulfilled or onRejected) will be called asynchronously\r\n * (scheduled in the current thread loop). The behavior of the handler function follows a specific set of rules. If a handler function:\r\n * - returns a value, the promise returned by then gets resolved with the returned value as its value;\r\n * - doesn't return anything, the promise returned by then gets resolved with an undefined value;\r\n * - throws an error, the promise returned by then gets rejected with the thrown error as its value;\r\n * - returns an already fulfilled promise, the promise returned by then gets fulfilled with that promise's value as its value;\r\n * - returns an already rejected promise, the promise returned by then gets rejected with that promise's value as its value;\r\n * - returns another pending promise object, the resolution/rejection of the promise returned by then will be subsequent to the\r\n * resolution/rejection of the promise returned by the handler. Also, the value of the promise returned by then will be the same as the value of the promise returned by the handler.\r\n */\r\n ESPromise.prototype.then = function (onResolved, onRejected) {\r\n // @DynamicProtoStub - DO NOT add any code as this will be removed during packaging\r\n return;\r\n };\r\n /**\r\n * The catch() method returns a Promise and deals with rejected cases only. It behaves the same as calling Promise.prototype.then(undefined, onRejected)\r\n * (in fact, calling obj.catch(onRejected) internally calls obj.then(undefined, onRejected)). This means that you have to provide an onRejected function\r\n * even if you want to fall back to an undefined result value - for example obj.catch(() => {}).\r\n * @param onRejected A Function called when the Promise is rejected. This function has one argument: reason The rejection reason.\r\n * @returns Internally calls Promise.prototype.then on the object upon which it was called, passing the parameters undefined and the received\r\n * onRejected handler. Returns the value of that call, which is a Promise.\r\n */\r\n ESPromise.prototype[\"catch\"] = function (onRejected) {\r\n // @DynamicProtoStub - DO NOT add any code as this will be removed during packaging\r\n return;\r\n };\r\n return ESPromise;\r\n}());\r\nexport default ESPromise;\r\n//# sourceMappingURL=ESPromise.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;iDA+BM;AACN;AACA;AACA;AACA"}
|
package/dist-esm/src/Enums.d.ts
CHANGED
|
@@ -313,6 +313,7 @@ export declare const _ExtendedInternalMessageId: {
|
|
|
313
313
|
TrackPageActionEventFailed: _eInternalMessageId.TrackPageActionEventFailed;
|
|
314
314
|
FailedAddingCustomDefinedRequestContext: _eInternalMessageId.FailedAddingCustomDefinedRequestContext;
|
|
315
315
|
InMemoryStorageBufferFull: _eInternalMessageId.InMemoryStorageBufferFull;
|
|
316
|
+
InstrumentationKeyDeprecation: _eInternalMessageId.InstrumentationKeyDeprecation;
|
|
316
317
|
};
|
|
317
318
|
export declare type _ExtendedInternalMessageId = number | _eExtendedInternalMessageId | _eInternalMessageId;
|
|
318
319
|
export declare const enum GuidStyle {
|
package/dist-esm/src/Enums.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 1DS JS SDK Core, 3.2.
|
|
2
|
+
* 1DS JS SDK Core, 3.2.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
@@ -16,21 +16,21 @@ import { _InternalMessageId, createEnumStyle, objFreeze } from "@microsoft/appli
|
|
|
16
16
|
* Either PII (Personal Identifiable Information) or customer content.
|
|
17
17
|
*/
|
|
18
18
|
export var ValueKind = createEnumStyle({
|
|
19
|
-
NotSet: 0 /* NotSet */,
|
|
20
|
-
Pii_DistinguishedName: 1 /* Pii_DistinguishedName */,
|
|
21
|
-
Pii_GenericData: 2 /* Pii_GenericData */,
|
|
22
|
-
Pii_IPV4Address: 3 /* Pii_IPV4Address */,
|
|
23
|
-
Pii_IPv6Address: 4 /* Pii_IPv6Address */,
|
|
24
|
-
Pii_MailSubject: 5 /* Pii_MailSubject */,
|
|
25
|
-
Pii_PhoneNumber: 6 /* Pii_PhoneNumber */,
|
|
26
|
-
Pii_QueryString: 7 /* Pii_QueryString */,
|
|
27
|
-
Pii_SipAddress: 8 /* Pii_SipAddress */,
|
|
28
|
-
Pii_SmtpAddress: 9 /* Pii_SmtpAddress */,
|
|
29
|
-
Pii_Identity: 10 /* Pii_Identity */,
|
|
30
|
-
Pii_Uri: 11 /* Pii_Uri */,
|
|
31
|
-
Pii_Fqdn: 12 /* Pii_Fqdn */,
|
|
32
|
-
Pii_IPV4AddressLegacy: 13 /* Pii_IPV4AddressLegacy */,
|
|
33
|
-
CustomerContent_GenericContent: 32 /* CustomerContent_GenericContent */
|
|
19
|
+
NotSet: 0 /* eValueKind.NotSet */,
|
|
20
|
+
Pii_DistinguishedName: 1 /* eValueKind.Pii_DistinguishedName */,
|
|
21
|
+
Pii_GenericData: 2 /* eValueKind.Pii_GenericData */,
|
|
22
|
+
Pii_IPV4Address: 3 /* eValueKind.Pii_IPV4Address */,
|
|
23
|
+
Pii_IPv6Address: 4 /* eValueKind.Pii_IPv6Address */,
|
|
24
|
+
Pii_MailSubject: 5 /* eValueKind.Pii_MailSubject */,
|
|
25
|
+
Pii_PhoneNumber: 6 /* eValueKind.Pii_PhoneNumber */,
|
|
26
|
+
Pii_QueryString: 7 /* eValueKind.Pii_QueryString */,
|
|
27
|
+
Pii_SipAddress: 8 /* eValueKind.Pii_SipAddress */,
|
|
28
|
+
Pii_SmtpAddress: 9 /* eValueKind.Pii_SmtpAddress */,
|
|
29
|
+
Pii_Identity: 10 /* eValueKind.Pii_Identity */,
|
|
30
|
+
Pii_Uri: 11 /* eValueKind.Pii_Uri */,
|
|
31
|
+
Pii_Fqdn: 12 /* eValueKind.Pii_Fqdn */,
|
|
32
|
+
Pii_IPV4AddressLegacy: 13 /* eValueKind.Pii_IPV4AddressLegacy */,
|
|
33
|
+
CustomerContent_GenericContent: 32 /* eValueKind.CustomerContent_GenericContent */
|
|
34
34
|
});
|
|
35
35
|
/**
|
|
36
36
|
* The EventLatency contains a set of values that specify the latency with which an event is sent.
|
|
@@ -39,35 +39,35 @@ export var EventLatency = createEnumStyle({
|
|
|
39
39
|
/**
|
|
40
40
|
* Normal latency.
|
|
41
41
|
*/
|
|
42
|
-
Normal: 1 /* Normal */,
|
|
42
|
+
Normal: 1 /* EventLatencyValue.Normal */,
|
|
43
43
|
/**
|
|
44
44
|
* Cost deferred latency. At the moment this latency is treated as Normal latency.
|
|
45
45
|
*/
|
|
46
|
-
CostDeferred: 2 /* CostDeferred */,
|
|
46
|
+
CostDeferred: 2 /* EventLatencyValue.CostDeferred */,
|
|
47
47
|
/**
|
|
48
48
|
* Real time latency.
|
|
49
49
|
*/
|
|
50
|
-
RealTime: 3 /* RealTime */,
|
|
50
|
+
RealTime: 3 /* EventLatencyValue.RealTime */,
|
|
51
51
|
/**
|
|
52
52
|
* Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.
|
|
53
53
|
* Added in v3.1.1
|
|
54
54
|
*/
|
|
55
|
-
Immediate: 4 /* Immediate */
|
|
55
|
+
Immediate: 4 /* EventLatencyValue.Immediate */
|
|
56
56
|
});
|
|
57
57
|
/**
|
|
58
58
|
* Enum for property types.
|
|
59
59
|
*/
|
|
60
60
|
export var EventPropertyType = createEnumStyle({
|
|
61
|
-
Unspecified: 0 /* Unspecified */,
|
|
62
|
-
String: 1 /* String */,
|
|
63
|
-
Int32: 2 /* Int32 */,
|
|
64
|
-
UInt32: 3 /* UInt32 */,
|
|
65
|
-
Int64: 4 /* Int64 */,
|
|
66
|
-
UInt64: 5 /* UInt64 */,
|
|
67
|
-
Double: 6 /* Double */,
|
|
68
|
-
Bool: 7 /* Bool */,
|
|
69
|
-
Guid: 8 /* Guid */,
|
|
70
|
-
DateTime: 9 /* DateTime */
|
|
61
|
+
Unspecified: 0 /* eEventPropertyType.Unspecified */,
|
|
62
|
+
String: 1 /* eEventPropertyType.String */,
|
|
63
|
+
Int32: 2 /* eEventPropertyType.Int32 */,
|
|
64
|
+
UInt32: 3 /* eEventPropertyType.UInt32 */,
|
|
65
|
+
Int64: 4 /* eEventPropertyType.Int64 */,
|
|
66
|
+
UInt64: 5 /* eEventPropertyType.UInt64 */,
|
|
67
|
+
Double: 6 /* eEventPropertyType.Double */,
|
|
68
|
+
Bool: 7 /* eEventPropertyType.Bool */,
|
|
69
|
+
Guid: 8 /* eEventPropertyType.Guid */,
|
|
70
|
+
DateTime: 9 /* eEventPropertyType.DateTime */
|
|
71
71
|
});
|
|
72
72
|
/**
|
|
73
73
|
* The EventPersistence contains a set of values that specify the event's persistence.
|
|
@@ -76,38 +76,38 @@ export var EventPersistence = createEnumStyle({
|
|
|
76
76
|
/**
|
|
77
77
|
* Normal persistence.
|
|
78
78
|
*/
|
|
79
|
-
Normal: 1 /* Normal */,
|
|
79
|
+
Normal: 1 /* EventPersistenceValue.Normal */,
|
|
80
80
|
/**
|
|
81
81
|
* Critical persistence.
|
|
82
82
|
*/
|
|
83
|
-
Critical: 2 /* Critical */
|
|
83
|
+
Critical: 2 /* EventPersistenceValue.Critical */
|
|
84
84
|
});
|
|
85
85
|
export var TraceLevel = createEnumStyle({
|
|
86
|
-
NONE: 0 /* NONE */,
|
|
87
|
-
ERROR: 1 /* ERROR */,
|
|
88
|
-
WARNING: 2 /* WARNING */,
|
|
89
|
-
INFORMATION: 3 /* INFORMATION */
|
|
86
|
+
NONE: 0 /* eTraceLevel.NONE */,
|
|
87
|
+
ERROR: 1 /* eTraceLevel.ERROR */,
|
|
88
|
+
WARNING: 2 /* eTraceLevel.WARNING */,
|
|
89
|
+
INFORMATION: 3 /* eTraceLevel.INFORMATION */
|
|
90
90
|
});
|
|
91
91
|
export var _ExtendedInternalMessageId = objFreeze(__assign(__assign({}, _InternalMessageId), createEnumStyle({
|
|
92
|
-
AuthHandShakeError: 501 /* AuthHandShakeError */,
|
|
93
|
-
AuthRedirectFail: 502 /* AuthRedirectFail */,
|
|
94
|
-
BrowserCannotReadLocalStorage: 503 /* BrowserCannotReadLocalStorage */,
|
|
95
|
-
BrowserCannotWriteLocalStorage: 504 /* BrowserCannotWriteLocalStorage */,
|
|
96
|
-
BrowserDoesNotSupportLocalStorage: 505 /* BrowserDoesNotSupportLocalStorage */,
|
|
97
|
-
CannotParseBiBlobValue: 506 /* CannotParseBiBlobValue */,
|
|
98
|
-
CannotParseDataAttribute: 507 /* CannotParseDataAttribute */,
|
|
99
|
-
CVPluginNotAvailable: 508 /* CVPluginNotAvailable */,
|
|
100
|
-
DroppedEvent: 509 /* DroppedEvent */,
|
|
101
|
-
ErrorParsingAISessionCookie: 510 /* ErrorParsingAISessionCookie */,
|
|
102
|
-
ErrorProvidedChannels: 511 /* ErrorProvidedChannels */,
|
|
103
|
-
FailedToGetCookies: 512 /* FailedToGetCookies */,
|
|
104
|
-
FailedToInitializeCorrelationVector: 513 /* FailedToInitializeCorrelationVector */,
|
|
105
|
-
FailedToInitializeSDK: 514 /* FailedToInitializeSDK */,
|
|
106
|
-
InvalidContentBlob: 515 /* InvalidContentBlob */,
|
|
107
|
-
InvalidCorrelationValue: 516 /* InvalidCorrelationValue */,
|
|
108
|
-
SessionRenewalDateIsZero: 517 /* SessionRenewalDateIsZero */,
|
|
109
|
-
SendPostOnCompleteFailure: 518 /* SendPostOnCompleteFailure */,
|
|
110
|
-
PostResponseHandler: 519 /* PostResponseHandler */,
|
|
111
|
-
SDKNotInitialized: 520 /* SDKNotInitialized */
|
|
92
|
+
AuthHandShakeError: 501 /* _eExtendedInternalMessageId.AuthHandShakeError */,
|
|
93
|
+
AuthRedirectFail: 502 /* _eExtendedInternalMessageId.AuthRedirectFail */,
|
|
94
|
+
BrowserCannotReadLocalStorage: 503 /* _eExtendedInternalMessageId.BrowserCannotReadLocalStorage */,
|
|
95
|
+
BrowserCannotWriteLocalStorage: 504 /* _eExtendedInternalMessageId.BrowserCannotWriteLocalStorage */,
|
|
96
|
+
BrowserDoesNotSupportLocalStorage: 505 /* _eExtendedInternalMessageId.BrowserDoesNotSupportLocalStorage */,
|
|
97
|
+
CannotParseBiBlobValue: 506 /* _eExtendedInternalMessageId.CannotParseBiBlobValue */,
|
|
98
|
+
CannotParseDataAttribute: 507 /* _eExtendedInternalMessageId.CannotParseDataAttribute */,
|
|
99
|
+
CVPluginNotAvailable: 508 /* _eExtendedInternalMessageId.CVPluginNotAvailable */,
|
|
100
|
+
DroppedEvent: 509 /* _eExtendedInternalMessageId.DroppedEvent */,
|
|
101
|
+
ErrorParsingAISessionCookie: 510 /* _eExtendedInternalMessageId.ErrorParsingAISessionCookie */,
|
|
102
|
+
ErrorProvidedChannels: 511 /* _eExtendedInternalMessageId.ErrorProvidedChannels */,
|
|
103
|
+
FailedToGetCookies: 512 /* _eExtendedInternalMessageId.FailedToGetCookies */,
|
|
104
|
+
FailedToInitializeCorrelationVector: 513 /* _eExtendedInternalMessageId.FailedToInitializeCorrelationVector */,
|
|
105
|
+
FailedToInitializeSDK: 514 /* _eExtendedInternalMessageId.FailedToInitializeSDK */,
|
|
106
|
+
InvalidContentBlob: 515 /* _eExtendedInternalMessageId.InvalidContentBlob */,
|
|
107
|
+
InvalidCorrelationValue: 516 /* _eExtendedInternalMessageId.InvalidCorrelationValue */,
|
|
108
|
+
SessionRenewalDateIsZero: 517 /* _eExtendedInternalMessageId.SessionRenewalDateIsZero */,
|
|
109
|
+
SendPostOnCompleteFailure: 518 /* _eExtendedInternalMessageId.SendPostOnCompleteFailure */,
|
|
110
|
+
PostResponseHandler: 519 /* _eExtendedInternalMessageId.PostResponseHandler */,
|
|
111
|
+
SDKNotInitialized: 520 /* _eExtendedInternalMessageId.SDKNotInitialized */
|
|
112
112
|
})));
|
|
113
113
|
//# sourceMappingURL=Enums.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Enums.js.map","sources":["Enums.js"],"sourcesContent":["/**\r\n * Enums.ts\r\n * @author Abhilash Panwar (abpanwar)\r\n * @copyright Microsoft 2018\r\n * File containing the enums as constants.\r\n */\r\nimport { __assign } from \"tslib\";\r\nimport { _InternalMessageId, createEnumStyle, objFreeze } from \"@microsoft/applicationinsights-core-js\";\r\n/**\r\n * The ValueKind contains a set of values that specify value kind of the property.\r\n * Either PII (Personal Identifiable Information) or customer content.\r\n */\r\nexport var ValueKind = createEnumStyle({\r\n NotSet: 0 /* NotSet */,\r\n Pii_DistinguishedName: 1 /* Pii_DistinguishedName */,\r\n Pii_GenericData: 2 /* Pii_GenericData */,\r\n Pii_IPV4Address: 3 /* Pii_IPV4Address */,\r\n Pii_IPv6Address: 4 /* Pii_IPv6Address */,\r\n Pii_MailSubject: 5 /* Pii_MailSubject */,\r\n Pii_PhoneNumber: 6 /* Pii_PhoneNumber */,\r\n Pii_QueryString: 7 /* Pii_QueryString */,\r\n Pii_SipAddress: 8 /* Pii_SipAddress */,\r\n Pii_SmtpAddress: 9 /* Pii_SmtpAddress */,\r\n Pii_Identity: 10 /* Pii_Identity */,\r\n Pii_Uri: 11 /* Pii_Uri */,\r\n Pii_Fqdn: 12 /* Pii_Fqdn */,\r\n Pii_IPV4AddressLegacy: 13 /* Pii_IPV4AddressLegacy */,\r\n CustomerContent_GenericContent: 32 /* CustomerContent_GenericContent */\r\n});\r\n/**\r\n * The EventLatency contains a set of values that specify the latency with which an event is sent.\r\n */\r\nexport var EventLatency = createEnumStyle({\r\n /**\r\n * Normal latency.\r\n */\r\n Normal: 1 /* Normal */,\r\n /**\r\n * Cost deferred latency. At the moment this latency is treated as Normal latency.\r\n */\r\n CostDeferred: 2 /* CostDeferred */,\r\n /**\r\n * Real time latency.\r\n */\r\n RealTime: 3 /* RealTime */,\r\n /**\r\n * Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.\r\n * Added in v3.1.1\r\n */\r\n Immediate: 4 /* Immediate */\r\n});\r\n/**\r\n * Enum for property types.\r\n */\r\nexport var EventPropertyType = createEnumStyle({\r\n Unspecified: 0 /* Unspecified */,\r\n String: 1 /* String */,\r\n Int32: 2 /* Int32 */,\r\n UInt32: 3 /* UInt32 */,\r\n Int64: 4 /* Int64 */,\r\n UInt64: 5 /* UInt64 */,\r\n Double: 6 /* Double */,\r\n Bool: 7 /* Bool */,\r\n Guid: 8 /* Guid */,\r\n DateTime: 9 /* DateTime */\r\n});\r\n/**\r\n * The EventPersistence contains a set of values that specify the event's persistence.\r\n */\r\nexport var EventPersistence = createEnumStyle({\r\n /**\r\n * Normal persistence.\r\n */\r\n Normal: 1 /* Normal */,\r\n /**\r\n * Critical persistence.\r\n */\r\n Critical: 2 /* Critical */\r\n});\r\nexport var TraceLevel = createEnumStyle({\r\n NONE: 0 /* NONE */,\r\n ERROR: 1 /* ERROR */,\r\n WARNING: 2 /* WARNING */,\r\n INFORMATION: 3 /* INFORMATION */\r\n});\r\nexport var _ExtendedInternalMessageId = objFreeze(__assign(__assign({}, _InternalMessageId), createEnumStyle({\r\n AuthHandShakeError: 501 /* AuthHandShakeError */,\r\n AuthRedirectFail: 502 /* AuthRedirectFail */,\r\n BrowserCannotReadLocalStorage: 503 /* BrowserCannotReadLocalStorage */,\r\n BrowserCannotWriteLocalStorage: 504 /* BrowserCannotWriteLocalStorage */,\r\n BrowserDoesNotSupportLocalStorage: 505 /* BrowserDoesNotSupportLocalStorage */,\r\n CannotParseBiBlobValue: 506 /* CannotParseBiBlobValue */,\r\n CannotParseDataAttribute: 507 /* CannotParseDataAttribute */,\r\n CVPluginNotAvailable: 508 /* CVPluginNotAvailable */,\r\n DroppedEvent: 509 /* DroppedEvent */,\r\n ErrorParsingAISessionCookie: 510 /* ErrorParsingAISessionCookie */,\r\n ErrorProvidedChannels: 511 /* ErrorProvidedChannels */,\r\n FailedToGetCookies: 512 /* FailedToGetCookies */,\r\n FailedToInitializeCorrelationVector: 513 /* FailedToInitializeCorrelationVector */,\r\n FailedToInitializeSDK: 514 /* FailedToInitializeSDK */,\r\n InvalidContentBlob: 515 /* InvalidContentBlob */,\r\n InvalidCorrelationValue: 516 /* InvalidCorrelationValue */,\r\n SessionRenewalDateIsZero: 517 /* SessionRenewalDateIsZero */,\r\n SendPostOnCompleteFailure: 518 /* SendPostOnCompleteFailure */,\r\n PostResponseHandler: 519 /* PostResponseHandler */,\r\n SDKNotInitialized: 520 /* SDKNotInitialized */\r\n})));\r\n//# sourceMappingURL=Enums.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8EAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"Enums.js.map","sources":["Enums.js"],"sourcesContent":["/**\r\n * Enums.ts\r\n * @author Abhilash Panwar (abpanwar)\r\n * @copyright Microsoft 2018\r\n * File containing the enums as constants.\r\n */\r\nimport { __assign } from \"tslib\";\r\nimport { _InternalMessageId, createEnumStyle, objFreeze } from \"@microsoft/applicationinsights-core-js\";\r\n/**\r\n * The ValueKind contains a set of values that specify value kind of the property.\r\n * Either PII (Personal Identifiable Information) or customer content.\r\n */\r\nexport var ValueKind = createEnumStyle({\r\n NotSet: 0 /* eValueKind.NotSet */,\r\n Pii_DistinguishedName: 1 /* eValueKind.Pii_DistinguishedName */,\r\n Pii_GenericData: 2 /* eValueKind.Pii_GenericData */,\r\n Pii_IPV4Address: 3 /* eValueKind.Pii_IPV4Address */,\r\n Pii_IPv6Address: 4 /* eValueKind.Pii_IPv6Address */,\r\n Pii_MailSubject: 5 /* eValueKind.Pii_MailSubject */,\r\n Pii_PhoneNumber: 6 /* eValueKind.Pii_PhoneNumber */,\r\n Pii_QueryString: 7 /* eValueKind.Pii_QueryString */,\r\n Pii_SipAddress: 8 /* eValueKind.Pii_SipAddress */,\r\n Pii_SmtpAddress: 9 /* eValueKind.Pii_SmtpAddress */,\r\n Pii_Identity: 10 /* eValueKind.Pii_Identity */,\r\n Pii_Uri: 11 /* eValueKind.Pii_Uri */,\r\n Pii_Fqdn: 12 /* eValueKind.Pii_Fqdn */,\r\n Pii_IPV4AddressLegacy: 13 /* eValueKind.Pii_IPV4AddressLegacy */,\r\n CustomerContent_GenericContent: 32 /* eValueKind.CustomerContent_GenericContent */\r\n});\r\n/**\r\n * The EventLatency contains a set of values that specify the latency with which an event is sent.\r\n */\r\nexport var EventLatency = createEnumStyle({\r\n /**\r\n * Normal latency.\r\n */\r\n Normal: 1 /* EventLatencyValue.Normal */,\r\n /**\r\n * Cost deferred latency. At the moment this latency is treated as Normal latency.\r\n */\r\n CostDeferred: 2 /* EventLatencyValue.CostDeferred */,\r\n /**\r\n * Real time latency.\r\n */\r\n RealTime: 3 /* EventLatencyValue.RealTime */,\r\n /**\r\n * Bypass normal batching/timing and send as soon as possible, this will still send asynchronously.\r\n * Added in v3.1.1\r\n */\r\n Immediate: 4 /* EventLatencyValue.Immediate */\r\n});\r\n/**\r\n * Enum for property types.\r\n */\r\nexport var EventPropertyType = createEnumStyle({\r\n Unspecified: 0 /* eEventPropertyType.Unspecified */,\r\n String: 1 /* eEventPropertyType.String */,\r\n Int32: 2 /* eEventPropertyType.Int32 */,\r\n UInt32: 3 /* eEventPropertyType.UInt32 */,\r\n Int64: 4 /* eEventPropertyType.Int64 */,\r\n UInt64: 5 /* eEventPropertyType.UInt64 */,\r\n Double: 6 /* eEventPropertyType.Double */,\r\n Bool: 7 /* eEventPropertyType.Bool */,\r\n Guid: 8 /* eEventPropertyType.Guid */,\r\n DateTime: 9 /* eEventPropertyType.DateTime */\r\n});\r\n/**\r\n * The EventPersistence contains a set of values that specify the event's persistence.\r\n */\r\nexport var EventPersistence = createEnumStyle({\r\n /**\r\n * Normal persistence.\r\n */\r\n Normal: 1 /* EventPersistenceValue.Normal */,\r\n /**\r\n * Critical persistence.\r\n */\r\n Critical: 2 /* EventPersistenceValue.Critical */\r\n});\r\nexport var TraceLevel = createEnumStyle({\r\n NONE: 0 /* eTraceLevel.NONE */,\r\n ERROR: 1 /* eTraceLevel.ERROR */,\r\n WARNING: 2 /* eTraceLevel.WARNING */,\r\n INFORMATION: 3 /* eTraceLevel.INFORMATION */\r\n});\r\nexport var _ExtendedInternalMessageId = objFreeze(__assign(__assign({}, _InternalMessageId), createEnumStyle({\r\n AuthHandShakeError: 501 /* _eExtendedInternalMessageId.AuthHandShakeError */,\r\n AuthRedirectFail: 502 /* _eExtendedInternalMessageId.AuthRedirectFail */,\r\n BrowserCannotReadLocalStorage: 503 /* _eExtendedInternalMessageId.BrowserCannotReadLocalStorage */,\r\n BrowserCannotWriteLocalStorage: 504 /* _eExtendedInternalMessageId.BrowserCannotWriteLocalStorage */,\r\n BrowserDoesNotSupportLocalStorage: 505 /* _eExtendedInternalMessageId.BrowserDoesNotSupportLocalStorage */,\r\n CannotParseBiBlobValue: 506 /* _eExtendedInternalMessageId.CannotParseBiBlobValue */,\r\n CannotParseDataAttribute: 507 /* _eExtendedInternalMessageId.CannotParseDataAttribute */,\r\n CVPluginNotAvailable: 508 /* _eExtendedInternalMessageId.CVPluginNotAvailable */,\r\n DroppedEvent: 509 /* _eExtendedInternalMessageId.DroppedEvent */,\r\n ErrorParsingAISessionCookie: 510 /* _eExtendedInternalMessageId.ErrorParsingAISessionCookie */,\r\n ErrorProvidedChannels: 511 /* _eExtendedInternalMessageId.ErrorProvidedChannels */,\r\n FailedToGetCookies: 512 /* _eExtendedInternalMessageId.FailedToGetCookies */,\r\n FailedToInitializeCorrelationVector: 513 /* _eExtendedInternalMessageId.FailedToInitializeCorrelationVector */,\r\n FailedToInitializeSDK: 514 /* _eExtendedInternalMessageId.FailedToInitializeSDK */,\r\n InvalidContentBlob: 515 /* _eExtendedInternalMessageId.InvalidContentBlob */,\r\n InvalidCorrelationValue: 516 /* _eExtendedInternalMessageId.InvalidCorrelationValue */,\r\n SessionRenewalDateIsZero: 517 /* _eExtendedInternalMessageId.SessionRenewalDateIsZero */,\r\n SendPostOnCompleteFailure: 518 /* _eExtendedInternalMessageId.SendPostOnCompleteFailure */,\r\n PostResponseHandler: 519 /* _eExtendedInternalMessageId.PostResponseHandler */,\r\n SDKNotInitialized: 520 /* _eExtendedInternalMessageId.SDKNotInitialized */\r\n})));\r\n//# sourceMappingURL=Enums.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA,8EAAiC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-esm/src/Index.d.ts
CHANGED
|
@@ -13,7 +13,7 @@ import ESPromiseScheduler, { ESPromiseSchedulerEvent } from "./ESPromiseSchedule
|
|
|
13
13
|
import { ValueSanitizer } from "./ValueSanitizer";
|
|
14
14
|
export { ValueKind, IExtendedConfiguration, IPropertyStorageOverride, EventLatency, EventPersistence, TraceLevel, IEventProperty, IExtendedTelemetryItem, TransportType, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, _eExtendedInternalMessageId, IExtendedAppInsightsCore, EventPropertyType, IEventTiming, ESPromise, ESPromiseOnResolvedFunc, ESPromiseOnRejectedFunc, ResolverResolveFunc, ResolverRejectFunc, ESPromiseScheduler, ESPromiseSchedulerEvent, GuidStyle, FieldValueSanitizerFunc, FieldValueSanitizerType, FieldValueSanitizerTypes, IFieldSanitizerDetails, IFieldValueSanitizerProvider, IValueSanitizer, ValueSanitizer, EventLatencyValue, EventPersistenceValue, EventSendType };
|
|
15
15
|
export { IAppInsightsCore, IChannelControls, IPlugin, INotificationManager, NotificationManager, INotificationListener, IConfiguration, ITelemetryItem, ITelemetryPlugin, BaseTelemetryPlugin, IProcessTelemetryContext, ProcessTelemetryContext, ITelemetryPluginChain, MinChannelPriorty, EventsDiscardedReason, ICoreUtils, IDiagnosticLogger, DiagnosticLogger, LoggingSeverity, SendRequestReason, IPerfEvent, IPerfManager, IPerfManagerProvider, PerfEvent, PerfManager, doPerf, ICustomProperties, Tags, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, eLoggingSeverity, _eInternalMessageId, _throwInternal, // _warnToConsole, _logInternalMessage
|
|
16
|
-
isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, _IRegisteredEvents, __getRegisteredEvents, TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer, createProcessTelemetryContext, IProcessTelemetryUnloadContext, UnloadHandler, IUnloadHandlerContainer, ITelemetryUnloadState, createUnloadHandlerContainer, TelemetryUnloadReason, ITelemetryUpdateState, IUnloadableComponent } from "@microsoft/applicationinsights-core-js";
|
|
16
|
+
isTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, randomValue, random32, ICookieMgr, ICookieMgrConfig, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, _IRegisteredEvents, __getRegisteredEvents, TelemetryInitializerFunction, ITelemetryInitializerHandler, ITelemetryInitializerContainer, createProcessTelemetryContext, IProcessTelemetryUnloadContext, UnloadHandler, IUnloadHandlerContainer, ITelemetryUnloadState, createUnloadHandlerContainer, TelemetryUnloadReason, ITelemetryUpdateState, IUnloadableComponent, IDistributedTraceContext, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "@microsoft/applicationinsights-core-js";
|
|
17
17
|
export { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking
|
|
18
18
|
Utils, // Replacement for import * as Utils from "./Utils";
|
|
19
19
|
isChromium, // Replace with ai-core version once published in ai-core
|
package/dist-esm/src/Index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 1DS JS SDK Core, 3.2.
|
|
2
|
+
* 1DS JS SDK Core, 3.2.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
@@ -24,7 +24,7 @@ getGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCry
|
|
|
24
24
|
// Random
|
|
25
25
|
randomValue, random32, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr,
|
|
26
26
|
// Aliases
|
|
27
|
-
toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, __getRegisteredEvents, createProcessTelemetryContext, createUnloadHandlerContainer } from "@microsoft/applicationinsights-core-js";
|
|
27
|
+
toISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, __getRegisteredEvents, createProcessTelemetryContext, createUnloadHandlerContainer, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from "@microsoft/applicationinsights-core-js";
|
|
28
28
|
export { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking
|
|
29
29
|
Utils, // Replacement for import * as Utils from "./Utils";
|
|
30
30
|
isChromium, // Replace with ai-core version once published in ai-core
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Index.js.map","sources":["Index.js"],"sourcesContent":["/**\r\n * Index.ts\r\n * @author Abhilash Panwar (abpanwar)\r\n * @copyright Microsoft 2018\r\n * File to export public classes, interfaces and enums.\r\n */\r\nimport { ValueKind, EventLatency, EventPersistence, TraceLevel, EventPropertyType, _ExtendedInternalMessageId } from \"./Enums\";\r\nimport AppInsightsCore from \"./AppInsightsCore\";\r\nimport BaseCore from \"./BaseCore\";\r\nimport ESPromise from \"./ESPromise\";\r\nimport ESPromiseScheduler from \"./ESPromiseScheduler\";\r\nimport { ValueSanitizer } from \"./ValueSanitizer\";\r\nexport { ValueKind, EventLatency, EventPersistence, TraceLevel, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, EventPropertyType, ESPromise, ESPromiseScheduler, ValueSanitizer };\r\nexport { NotificationManager, BaseTelemetryPlugin, ProcessTelemetryContext, MinChannelPriorty, EventsDiscardedReason, DiagnosticLogger, LoggingSeverity, PerfEvent, PerfManager, doPerf, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, _throwInternal, // _warnToConsole, _logInternalMessage\r\n// The HelperFuncs functions\r\nisTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, \r\n// EnvUtils\r\ngetGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, \r\n// Random\r\nrandomValue, random32, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, \r\n// Aliases\r\ntoISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, __getRegisteredEvents, createProcessTelemetryContext, createUnloadHandlerContainer } from \"@microsoft/applicationinsights-core-js\";\r\nexport { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking\r\nUtils, // Replacement for import * as Utils from \"./Utils\";\r\nisChromium, // Replace with ai-core version once published in ai-core\r\nopenXhr } from \"./Utils\";\r\n//# sourceMappingURL=Index.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
|
1
|
+
{"version":3,"file":"Index.js.map","sources":["Index.js"],"sourcesContent":["/**\r\n * Index.ts\r\n * @author Abhilash Panwar (abpanwar)\r\n * @copyright Microsoft 2018\r\n * File to export public classes, interfaces and enums.\r\n */\r\nimport { ValueKind, EventLatency, EventPersistence, TraceLevel, EventPropertyType, _ExtendedInternalMessageId } from \"./Enums\";\r\nimport AppInsightsCore from \"./AppInsightsCore\";\r\nimport BaseCore from \"./BaseCore\";\r\nimport ESPromise from \"./ESPromise\";\r\nimport ESPromiseScheduler from \"./ESPromiseScheduler\";\r\nimport { ValueSanitizer } from \"./ValueSanitizer\";\r\nexport { ValueKind, EventLatency, EventPersistence, TraceLevel, AppInsightsCore, BaseCore, _ExtendedInternalMessageId, EventPropertyType, ESPromise, ESPromiseScheduler, ValueSanitizer };\r\nexport { NotificationManager, BaseTelemetryPlugin, ProcessTelemetryContext, MinChannelPriorty, EventsDiscardedReason, DiagnosticLogger, LoggingSeverity, PerfEvent, PerfManager, doPerf, EventHelper, AppInsightsCore as InternalAppInsightsCore, BaseCore as InternalBaseCore, _InternalLogMessage, _InternalMessageId, createEnumStyle, _throwInternal, // _warnToConsole, _logInternalMessage\r\n// The HelperFuncs functions\r\nisTypeof, isUndefined, isNullOrUndefined, hasOwnProperty, isObject, isFunction, attachEvent, detachEvent, normalizeJsName, objForEachKey, strStartsWith, strEndsWith, strContains, strTrim, isDate, isArray, isError, isString, isNumber, isBoolean, toISOString, arrForEach, arrIndexOf, arrMap, arrReduce, objKeys, objDefineAccessors, dateNow, getExceptionName, throwError, setValue, getSetValue, isNotTruthy, isTruthy, proxyAssign, proxyFunctions, proxyFunctionAs, optimizeObject, objCreate, addEventHandler, newGuid, perfNow, newId, generateW3CId, safeGetLogger, objFreeze, objSeal, \r\n// EnvUtils\r\ngetGlobal, getGlobalInst, hasWindow, getWindow, hasDocument, getDocument, getCrypto, getMsCrypto, hasNavigator, getNavigator, hasHistory, getHistory, getLocation, getPerformance, hasJSON, getJSON, isReactNative, getConsole, dumpObj, isIE, getIEVersion, strUndefined, strObject, strPrototype, strFunction, setEnableEnvMocks, strUndefined as Undefined, \r\n// Random\r\nrandomValue, random32, uaDisallowsSameSiteNone as disallowsSameSiteNone, areCookiesSupported, areCookiesSupported as cookieAvailable, createCookieMgr, safeGetCookieMgr, \r\n// Aliases\r\ntoISOString as getISOString, isBeaconsSupported, isFetchSupported, isXhrSupported, useXDomainRequest, addPageHideEventListener, addPageShowEventListener, addEventListeners, addPageUnloadEventListener, removeEventHandler, removeEventListeners, removePageUnloadEventListener, removePageHideEventListener, removePageShowEventListener, eventOn, eventOff, mergeEvtNamespace, createUniqueNamespace, __getRegisteredEvents, createProcessTelemetryContext, createUnloadHandlerContainer, createTraceParent, parseTraceParent, isValidTraceId, isValidSpanId, isValidTraceParent, isSampledFlag, formatTraceParent, findW3cTraceParent } from \"@microsoft/applicationinsights-core-js\";\r\nexport { isValueAssigned, isLatency, isUint8ArrayAvailable, getTenantId, sanitizeProperty, Version, FullVersionString, getCommonSchemaMetaData, getCookie, setCookie, deleteCookie, getCookieValue, extend, createGuid, isDocumentObjectAvailable, isWindowObjectAvailable, setProcessTelemetryTimings, getTime, isArrayValid, isValueKind, getFieldValueType, CoreUtils, disableCookies, // exporting the overridden version for tree-shaking\r\nUtils, // Replacement for import * as Utils from \"./Utils\";\r\nisChromium, // Replace with ai-core version once published in ai-core\r\nopenXhr } from \"./Utils\";\r\n//# sourceMappingURL=Index.js.map"],"names":[],"mappings":";;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA"}
|
package/dist-esm/src/Utils.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { IEventProperty } from "./DataModels";
|
|
2
2
|
import { GuidStyle, FieldValueSanitizerType, EventLatency } from "./Enums";
|
|
3
3
|
import { ITelemetryItem, objForEachKey, isNumber, isReactNative, isString, isBoolean, isObject, perfNow, addEventHandler, uaDisallowsSameSiteNone, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, areCookiesSupported, ICookieMgr, ICoreUtils, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener } from "@microsoft/applicationinsights-core-js";
|
|
4
|
-
export declare const Version = "3.2.
|
|
4
|
+
export declare const Version = "3.2.3";
|
|
5
5
|
export declare const FullVersionString: string;
|
|
6
6
|
/**
|
|
7
7
|
* Checks if document object is available
|
package/dist-esm/src/Utils.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* 1DS JS SDK Core, 3.2.
|
|
2
|
+
* 1DS JS SDK Core, 3.2.3
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
@@ -12,7 +12,7 @@ var _a;
|
|
|
12
12
|
*/
|
|
13
13
|
import { objCreateFn, strShimObject } from "@microsoft/applicationinsights-shims";
|
|
14
14
|
import { getDocument, getNavigator, getWindow, getGlobalInst, objForEachKey, isUndefined, isNullOrUndefined, isNumber, isReactNative, isString, isBoolean, isArray, newGuid, isObject, perfNow, hasOwnProperty, addEventHandler, uaDisallowsSameSiteNone, strPrototype, objDefineAccessors, toISOString, strTrim, isFunction, objKeys, arrReduce, arrMap, arrIndexOf, arrForEach, strUndefined, strObject, areCookiesSupported, safeGetCookieMgr, generateW3CId, mwcRandom32, mwcRandomSeed, random32, randomValue, newId, isIE, dateNow, isError, isDate, isTypeof, strEndsWith, useXDomainRequest, isBeaconsSupported, addPageUnloadEventListener, } from "@microsoft/applicationinsights-core-js";
|
|
15
|
-
export var Version = '3.2.
|
|
15
|
+
export var Version = '3.2.3';
|
|
16
16
|
export var FullVersionString = "1DS-Web-JS-" + Version;
|
|
17
17
|
// Defining here so we don't need to take (import) the ApplicationInsights Common module
|
|
18
18
|
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|
|
@@ -20,13 +20,13 @@ var strWithCredentials = "withCredentials";
|
|
|
20
20
|
var strTimeout = "timeout";
|
|
21
21
|
// If value is array just get the type for the first element
|
|
22
22
|
var _fieldTypeEventPropMap = (_a = {},
|
|
23
|
-
_a[0 /* NotSet */] = 0 /* Unspecified */,
|
|
24
|
-
_a[2 /* Number */] = 6 /* Double */,
|
|
25
|
-
_a[1 /* String */] = 1 /* String */,
|
|
26
|
-
_a[3 /* Boolean */] = 7 /* Bool */,
|
|
27
|
-
_a[4096 /* Array */ | 2 /* Number */] = 6 /* Double */,
|
|
28
|
-
_a[4096 /* Array */ | 1 /* String */] = 1 /* String */,
|
|
29
|
-
_a[4096 /* Array */ | 3 /* Boolean */] = 7 /* Bool */,
|
|
23
|
+
_a[0 /* FieldValueSanitizerType.NotSet */] = 0 /* eEventPropertyType.Unspecified */,
|
|
24
|
+
_a[2 /* FieldValueSanitizerType.Number */] = 6 /* eEventPropertyType.Double */,
|
|
25
|
+
_a[1 /* FieldValueSanitizerType.String */] = 1 /* eEventPropertyType.String */,
|
|
26
|
+
_a[3 /* FieldValueSanitizerType.Boolean */] = 7 /* eEventPropertyType.Bool */,
|
|
27
|
+
_a[4096 /* FieldValueSanitizerType.Array */ | 2 /* FieldValueSanitizerType.Number */] = 6 /* eEventPropertyType.Double */,
|
|
28
|
+
_a[4096 /* FieldValueSanitizerType.Array */ | 1 /* FieldValueSanitizerType.String */] = 1 /* eEventPropertyType.String */,
|
|
29
|
+
_a[4096 /* FieldValueSanitizerType.Array */ | 3 /* FieldValueSanitizerType.Boolean */] = 7 /* eEventPropertyType.Bool */,
|
|
30
30
|
_a);
|
|
31
31
|
/**
|
|
32
32
|
* @ignore
|
|
@@ -84,7 +84,7 @@ export function isUint8ArrayAvailable() {
|
|
|
84
84
|
* @returns True if the value is in AWTEventLatency, false otherwise.
|
|
85
85
|
*/
|
|
86
86
|
export function isLatency(value) {
|
|
87
|
-
if (value && isNumber(value) && value >= 1 /* Normal */ && value <= 4 /* Immediate */) {
|
|
87
|
+
if (value && isNumber(value) && value >= 1 /* EventLatencyValue.Normal */ && value <= 4 /* EventLatencyValue.Immediate */) {
|
|
88
88
|
return true;
|
|
89
89
|
}
|
|
90
90
|
return false;
|
|
@@ -162,7 +162,7 @@ export function getCommonSchemaMetaData(value, kind, type) {
|
|
|
162
162
|
// pii exists so we must return correct type
|
|
163
163
|
encodedTypeValue |= propType;
|
|
164
164
|
}
|
|
165
|
-
else if (propType === 6 /* Double */) {
|
|
165
|
+
else if (propType === 6 /* eEventPropertyType.Double */) {
|
|
166
166
|
encodedTypeValue = propType;
|
|
167
167
|
}
|
|
168
168
|
}
|
|
@@ -240,15 +240,15 @@ export function getCookieValue(cookieMgr, name, decode) {
|
|
|
240
240
|
* @returns The formatted guid.
|
|
241
241
|
*/
|
|
242
242
|
export function createGuid(style) {
|
|
243
|
-
if (style === void 0) { style = "D" /* Digits */; }
|
|
243
|
+
if (style === void 0) { style = "D" /* GuidStyle.Digits */; }
|
|
244
244
|
var theGuid = newGuid();
|
|
245
|
-
if (style === "B" /* Braces */) {
|
|
245
|
+
if (style === "B" /* GuidStyle.Braces */) {
|
|
246
246
|
theGuid = "{" + theGuid + "}";
|
|
247
247
|
}
|
|
248
|
-
else if (style === "P" /* Parentheses */) {
|
|
248
|
+
else if (style === "P" /* GuidStyle.Parentheses */) {
|
|
249
249
|
theGuid = "(" + theGuid + ")";
|
|
250
250
|
}
|
|
251
|
-
else if (style === "N" /* Numeric */) {
|
|
251
|
+
else if (style === "N" /* GuidStyle.Numeric */) {
|
|
252
252
|
theGuid = theGuid.replace(/-/g, "");
|
|
253
253
|
}
|
|
254
254
|
return theGuid;
|
|
@@ -306,7 +306,7 @@ export function extend(obj, obj2, obj3, obj4, obj5) {
|
|
|
306
306
|
export var getTime = perfNow;
|
|
307
307
|
export function isValueKind(value) {
|
|
308
308
|
// Always assume that it's a number (no type checking) for performance as this is used during the JSON serialization
|
|
309
|
-
if (value === 0 /* NotSet */ || ((value > 0 /* NotSet */ && value <= 13 /* Pii_IPV4AddressLegacy */) || value === 32 /* CustomerContent_GenericContent */)) {
|
|
309
|
+
if (value === 0 /* eValueKind.NotSet */ || ((value > 0 /* eValueKind.NotSet */ && value <= 13 /* eValueKind.Pii_IPV4AddressLegacy */) || value === 32 /* eValueKind.CustomerContent_GenericContent */)) {
|
|
310
310
|
return true;
|
|
311
311
|
}
|
|
312
312
|
return false;
|
|
@@ -344,22 +344,22 @@ export function setProcessTelemetryTimings(event, identifier) {
|
|
|
344
344
|
* @param value The value to determine the type
|
|
345
345
|
*/
|
|
346
346
|
export function getFieldValueType(value) {
|
|
347
|
-
var theType = 0 /* NotSet */;
|
|
347
|
+
var theType = 0 /* FieldValueSanitizerType.NotSet */;
|
|
348
348
|
if (value !== null && value !== undefined) {
|
|
349
349
|
var objType = typeof value;
|
|
350
350
|
if (objType === "string") {
|
|
351
|
-
theType = 1 /* String */;
|
|
351
|
+
theType = 1 /* FieldValueSanitizerType.String */;
|
|
352
352
|
}
|
|
353
353
|
else if (objType === "number") {
|
|
354
|
-
theType = 2 /* Number */;
|
|
354
|
+
theType = 2 /* FieldValueSanitizerType.Number */;
|
|
355
355
|
}
|
|
356
356
|
else if (objType === "boolean") {
|
|
357
|
-
theType = 3 /* Boolean */;
|
|
357
|
+
theType = 3 /* FieldValueSanitizerType.Boolean */;
|
|
358
358
|
}
|
|
359
359
|
else if (objType === strShimObject) {
|
|
360
|
-
theType = 4 /* Object */;
|
|
360
|
+
theType = 4 /* FieldValueSanitizerType.Object */;
|
|
361
361
|
if (isArray(value)) {
|
|
362
|
-
theType = 4096 /* Array */;
|
|
362
|
+
theType = 4096 /* FieldValueSanitizerType.Array */;
|
|
363
363
|
if (value.length > 0) {
|
|
364
364
|
// Empty arrays are not supported and are considered to be the same as null
|
|
365
365
|
theType |= getFieldValueType(value[0]);
|
|
@@ -367,7 +367,7 @@ export function getFieldValueType(value) {
|
|
|
367
367
|
}
|
|
368
368
|
else if (hasOwnProperty(value, "value")) {
|
|
369
369
|
// Looks like an IEventProperty
|
|
370
|
-
theType = 8192 /* EventProperty */ | getFieldValueType(value.value);
|
|
370
|
+
theType = 8192 /* FieldValueSanitizerType.EventProperty */ | getFieldValueType(value.value);
|
|
371
371
|
}
|
|
372
372
|
}
|
|
373
373
|
}
|