@microsoft/1ds-core-js 3.1.6 → 3.1.7
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/bundle/ms.core-3.1.7.gbl.js +3589 -0
- package/bundle/ms.core-3.1.7.gbl.js.map +1 -0
- package/bundle/ms.core-3.1.7.gbl.min.js +7 -0
- package/bundle/{ms.core-3.1.6.gbl.min.js.map → ms.core-3.1.7.gbl.min.js.map} +1 -1
- package/bundle/ms.core-3.1.7.integrity.json +46 -0
- package/bundle/{ms.core-test.js → ms.core-3.1.7.js} +35 -5
- package/bundle/ms.core-3.1.7.js.map +1 -0
- package/bundle/{ms.core-test.min.js → ms.core-3.1.7.min.js} +3 -3
- package/bundle/{ms.core-3.1.6.min.js.map → ms.core-3.1.7.min.js.map} +1 -1
- package/bundle/{ms.core-3.1.6.gbl.js → ms.core.gbl.js} +34 -4
- package/bundle/ms.core.gbl.js.map +1 -0
- package/bundle/{ms.core-3.1.6.gbl.min.js → ms.core.gbl.min.js} +3 -3
- package/bundle/ms.core.gbl.min.js.map +1 -0
- package/bundle/ms.core.integrity.json +46 -0
- package/bundle/{ms.core-3.1.6.js → ms.core.js} +35 -5
- package/bundle/ms.core.js.map +1 -0
- package/bundle/{ms.core-3.1.6.min.js → ms.core.min.js} +3 -3
- package/bundle/ms.core.min.js.map +1 -0
- package/dist/ms.core.js +35 -5
- 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 +1 -1
- package/dist-esm/src/BaseCore.js +1 -1
- package/dist-esm/src/DataModels.d.ts +5 -2
- package/dist-esm/src/DataModels.js +1 -1
- package/dist-esm/src/ESPromise.js +1 -1
- package/dist-esm/src/ESPromiseScheduler.js +1 -1
- package/dist-esm/src/Enums.js +1 -1
- package/dist-esm/src/Index.d.ts +3 -2
- package/dist-esm/src/Index.js +3 -3
- package/dist-esm/src/Index.js.map +1 -1
- package/dist-esm/src/Utils.d.ts +11 -1
- package/dist-esm/src/Utils.js +45 -2
- package/dist-esm/src/Utils.js.map +1 -1
- package/dist-esm/src/ValueSanitizer.js +1 -1
- package/package.json +1 -1
- package/src/DataModels.ts +5 -2
- package/src/Index.ts +4 -3
- package/src/Utils.ts +50 -1
- package/bundle/ms.core-3.1.6.gbl.js.map +0 -1
- package/bundle/ms.core-3.1.6.integrity.json +0 -46
- package/bundle/ms.core-3.1.6.js.map +0 -1
- package/bundle/ms.core-test.integrity.json +0 -26
- package/bundle/ms.core-test.js.map +0 -1
- package/bundle/ms.core-test.min.js.map +0 -1
package/dist/ms.core.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* 1DS JS SDK Core, 3.1.
|
|
2
|
+
* 1DS JS SDK Core, 3.1.7
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
* (Microsoft Internal Only)
|
|
5
5
|
*/
|
|
@@ -7,9 +7,9 @@
|
|
|
7
7
|
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@microsoft/applicationinsights-shims'), require('@microsoft/applicationinsights-core-js'), require('@microsoft/dynamicproto-js')) :
|
|
8
8
|
typeof define === 'function' && define.amd ? define(['exports', '@microsoft/applicationinsights-shims', '@microsoft/applicationinsights-core-js', '@microsoft/dynamicproto-js'], factory) :
|
|
9
9
|
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.oneDS = global.oneDS || {}, global.applicationinsightsShims, global.applicationinsightsCoreJs, global.dynamicProto));
|
|
10
|
-
}(this, (function (exports, applicationinsightsShims, applicationinsightsCoreJs, dynamicProto) { 'use strict';
|
|
10
|
+
})(this, (function (exports, applicationinsightsShims, applicationinsightsCoreJs, dynamicProto) { 'use strict';
|
|
11
11
|
|
|
12
|
-
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e[
|
|
12
|
+
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e["default"] : e; }
|
|
13
13
|
|
|
14
14
|
var dynamicProto__default = /*#__PURE__*/_interopDefaultLegacy(dynamicProto);
|
|
15
15
|
|
|
@@ -61,8 +61,10 @@
|
|
|
61
61
|
var _ExtendedInternalMessageId = applicationinsightsShims.__assignFn(applicationinsightsShims.__assignFn({}, applicationinsightsCoreJs._InternalMessageId), { AuthHandShakeError: 501, AuthRedirectFail: 502, BrowserCannotReadLocalStorage: 503, BrowserCannotWriteLocalStorage: 504, BrowserDoesNotSupportLocalStorage: 505, CannotParseBiBlobValue: 506, CannotParseDataAttribute: 507, CVPluginNotAvailable: 508, DroppedEvent: 509, ErrorParsingAISessionCookie: 510, ErrorProvidedChannels: 511, FailedToGetCookies: 512, FailedToInitializeCorrelationVector: 513, FailedToInitializeSDK: 514, InvalidContentBlob: 515, InvalidCorrelationValue: 516, SessionRenewalDateIsZero: 517, SendPostOnCompleteFailure: 518, PostResponseHandler: 519, SDKNotInitialized: 520 });
|
|
62
62
|
|
|
63
63
|
var _a;
|
|
64
|
-
var Version = '3.1.
|
|
64
|
+
var Version = '3.1.7';
|
|
65
65
|
var FullVersionString = "1DS-Web-JS-" + Version;
|
|
66
|
+
var strDisabledPropertyName = "Microsoft_ApplicationInsights_BypassAjaxInstrumentation";
|
|
67
|
+
var strWithCredentials = "withCredentials";
|
|
66
68
|
var _fieldTypeEventPropMap = (_a = {},
|
|
67
69
|
_a[0 ] = EventPropertyType.Unspecified,
|
|
68
70
|
_a[2 ] = EventPropertyType.Double,
|
|
@@ -411,6 +413,29 @@
|
|
|
411
413
|
function isChromium() {
|
|
412
414
|
return !!applicationinsightsCoreJs.getGlobalInst("chrome");
|
|
413
415
|
}
|
|
416
|
+
function openXhr(method, urlString, withCredentials, disabled, isSync) {
|
|
417
|
+
if (disabled === void 0) { disabled = false; }
|
|
418
|
+
if (isSync === void 0) { isSync = false; }
|
|
419
|
+
function _wrapSetXhrProp(xhr, prop, value) {
|
|
420
|
+
try {
|
|
421
|
+
xhr[prop] = value;
|
|
422
|
+
}
|
|
423
|
+
catch (e) {
|
|
424
|
+
}
|
|
425
|
+
}
|
|
426
|
+
var xhr = new XMLHttpRequest();
|
|
427
|
+
if (disabled) {
|
|
428
|
+
_wrapSetXhrProp(xhr, strDisabledPropertyName, disabled);
|
|
429
|
+
}
|
|
430
|
+
if (withCredentials) {
|
|
431
|
+
_wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
|
|
432
|
+
}
|
|
433
|
+
xhr.open(method, urlString, !isSync);
|
|
434
|
+
if (withCredentials) {
|
|
435
|
+
_wrapSetXhrProp(xhr, strWithCredentials, withCredentials);
|
|
436
|
+
}
|
|
437
|
+
return xhr;
|
|
438
|
+
}
|
|
414
439
|
|
|
415
440
|
var PropVersion = "version";
|
|
416
441
|
var properties = "properties";
|
|
@@ -1106,6 +1131,8 @@
|
|
|
1106
1131
|
exports.DiagnosticLogger = applicationinsightsCoreJs.DiagnosticLogger;
|
|
1107
1132
|
exports.EventHelper = applicationinsightsCoreJs.EventHelper;
|
|
1108
1133
|
exports.EventsDiscardedReason = applicationinsightsCoreJs.EventsDiscardedReason;
|
|
1134
|
+
exports.InternalAppInsightsCore = applicationinsightsCoreJs.AppInsightsCore;
|
|
1135
|
+
exports.InternalBaseCore = applicationinsightsCoreJs.BaseCore;
|
|
1109
1136
|
exports.LoggingSeverity = applicationinsightsCoreJs.LoggingSeverity;
|
|
1110
1137
|
exports.MinChannelPriorty = applicationinsightsCoreJs.MinChannelPriorty;
|
|
1111
1138
|
exports.NotificationManager = applicationinsightsCoreJs.NotificationManager;
|
|
@@ -1113,6 +1140,8 @@
|
|
|
1113
1140
|
exports.PerfManager = applicationinsightsCoreJs.PerfManager;
|
|
1114
1141
|
exports.ProcessTelemetryContext = applicationinsightsCoreJs.ProcessTelemetryContext;
|
|
1115
1142
|
exports.Undefined = applicationinsightsCoreJs.strUndefined;
|
|
1143
|
+
exports._InternalLogMessage = applicationinsightsCoreJs._InternalLogMessage;
|
|
1144
|
+
exports._InternalMessageId = applicationinsightsCoreJs._InternalMessageId;
|
|
1116
1145
|
exports.addEventHandler = applicationinsightsCoreJs.addEventHandler;
|
|
1117
1146
|
exports.areCookiesSupported = applicationinsightsCoreJs.areCookiesSupported;
|
|
1118
1147
|
exports.arrForEach = applicationinsightsCoreJs.arrForEach;
|
|
@@ -1233,11 +1262,12 @@
|
|
|
1233
1262
|
exports.isValueAssigned = isValueAssigned;
|
|
1234
1263
|
exports.isValueKind = isValueKind;
|
|
1235
1264
|
exports.isWindowObjectAvailable = isWindowObjectAvailable;
|
|
1265
|
+
exports.openXhr = openXhr;
|
|
1236
1266
|
exports.sanitizeProperty = sanitizeProperty;
|
|
1237
1267
|
exports.setCookie = setCookie;
|
|
1238
1268
|
exports.setProcessTelemetryTimings = setProcessTelemetryTimings;
|
|
1239
1269
|
|
|
1240
1270
|
(function(obj, prop, descriptor) { /* ai_es3_polyfil defineProperty */ var func = Object["defineProperty"]; if (func) { try { return func(obj, prop, descriptor); } catch(e) { /* IE8 defines defineProperty, but will throw */ } } if (descriptor && typeof descriptor.value !== undefined) { obj[prop] = descriptor.value; } return obj; })(exports, '__esModule', { value: true });
|
|
1241
1271
|
|
|
1242
|
-
}))
|
|
1272
|
+
}));
|
|
1243
1273
|
//# sourceMappingURL=ms.core.js.map
|