@microsoft/applicationinsights-react-native 4.2.1-nightly.2406-06 → 4.2.1-nightly.2406-08
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/browser/applicationinsights-react-native.js +46 -39
- package/browser/applicationinsights-react-native.js.map +1 -1
- package/browser/applicationinsights-react-native.min.js +2 -2
- package/browser/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.d.ts +1 -1
- package/dist/applicationinsights-react-native.js +46 -39
- package/dist/applicationinsights-react-native.js.map +1 -1
- package/dist/applicationinsights-react-native.min.js +2 -2
- package/dist/applicationinsights-react-native.min.js.map +1 -1
- package/dist/applicationinsights-react-native.rollup.d.ts +1 -1
- package/dist-esm/DeviceInfo/DeviceModule.js +1 -1
- package/dist-esm/DeviceInfo/ReactNativeDeviceInfo.js +1 -1
- package/dist-esm/Interfaces/IDeviceInfoModule.js +1 -1
- package/dist-esm/Interfaces/INativeDevice.js +1 -1
- package/dist-esm/Interfaces/IReactNativePluginConfig.js +1 -1
- package/dist-esm/Interfaces/index.js +1 -1
- package/dist-esm/ReactNativeManualDevicePlugin.js +1 -1
- package/dist-esm/ReactNativePlugin.js +1 -1
- package/dist-esm/index.js +1 -1
- package/dist-esm/manualIndex.js +1 -1
- package/package.json +1 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - React Native Plugin, 4.2.1-nightly.2406-
|
|
2
|
+
* Application Insights JavaScript SDK - React Native Plugin, 4.2.1-nightly.2406-08
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -18,7 +18,7 @@
|
|
|
18
18
|
var strShimPrototype = "prototype";
|
|
19
19
|
var ObjClass$1 = Object;
|
|
20
20
|
|
|
21
|
-
/*! https://github.com/nevware21/ts-utils v0.11.
|
|
21
|
+
/*! https://github.com/nevware21/ts-utils v0.11.3 */
|
|
22
22
|
function _pureAssign(func1, func2) {
|
|
23
23
|
return func1 || func2;
|
|
24
24
|
}
|
|
@@ -117,13 +117,51 @@
|
|
|
117
117
|
}
|
|
118
118
|
}
|
|
119
119
|
}
|
|
120
|
-
|
|
120
|
+
var propMap = {
|
|
121
|
+
e: "enumerable",
|
|
122
|
+
c: "configurable",
|
|
123
|
+
v: "value",
|
|
124
|
+
w: "writable",
|
|
125
|
+
g: "get",
|
|
126
|
+
s: "set"
|
|
127
|
+
};
|
|
128
|
+
function _createProp(value) {
|
|
129
|
+
var prop = {};
|
|
130
|
+
prop[propMap["c"]] = true;
|
|
131
|
+
prop[propMap["e"]] = true;
|
|
132
|
+
if (value.l) {
|
|
133
|
+
prop.get = function () { return value.l.v; };
|
|
134
|
+
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
135
|
+
if (desc && desc.set) {
|
|
136
|
+
prop.set = function (newValue) {
|
|
137
|
+
value.l.v = newValue;
|
|
138
|
+
};
|
|
139
|
+
}
|
|
140
|
+
}
|
|
141
|
+
objForEachKey(value, function (key, value) {
|
|
142
|
+
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
143
|
+
});
|
|
144
|
+
return prop;
|
|
145
|
+
}
|
|
146
|
+
var objDefineProp = ( _pureRef(ObjClass, "defineProperty"));
|
|
147
|
+
( _pureRef(ObjClass, "defineProperties"));
|
|
148
|
+
function objDefine(target, key, propDesc) {
|
|
149
|
+
return objDefineProp(target, key, _createProp(propDesc));
|
|
150
|
+
}
|
|
151
|
+
function _createKeyValueMap(values, keyType, valueType, completeFn, writable) {
|
|
121
152
|
var theMap = {};
|
|
122
153
|
objForEachKey(values, function (key, value) {
|
|
123
|
-
theMap
|
|
124
|
-
theMap
|
|
154
|
+
_assignMapValue(theMap, key, keyType ? value : key, writable);
|
|
155
|
+
_assignMapValue(theMap, value, valueType ? value : key, writable);
|
|
156
|
+
});
|
|
157
|
+
return completeFn ? completeFn(theMap) : theMap;
|
|
158
|
+
}
|
|
159
|
+
function _assignMapValue(theMap, key, value, writable) {
|
|
160
|
+
objDefineProp(theMap, key, {
|
|
161
|
+
value: value,
|
|
162
|
+
enumerable: true,
|
|
163
|
+
writable: !!writable
|
|
125
164
|
});
|
|
126
|
-
return completeFn(theMap);
|
|
127
165
|
}
|
|
128
166
|
var asString = ( _pureAssign(StrCls));
|
|
129
167
|
var ERROR_TYPE = "[object Error]";
|
|
@@ -168,7 +206,7 @@
|
|
|
168
206
|
if (_objFreeze) {
|
|
169
207
|
objForEachKey(value, function (key, value) {
|
|
170
208
|
if (isArray(value) || isObject(value)) {
|
|
171
|
-
|
|
209
|
+
objDeepFreeze(value);
|
|
172
210
|
}
|
|
173
211
|
});
|
|
174
212
|
}
|
|
@@ -179,7 +217,7 @@
|
|
|
179
217
|
var objGetPrototypeOf = ( _pureAssign(( _pureRef(ObjClass, "getPrototypeOf")), _getProto));
|
|
180
218
|
( _pureAssign(( _pureRef(ObjClass, "entries")), polyObjEntries));
|
|
181
219
|
function createEnumKeyMap(values) {
|
|
182
|
-
return _createKeyValueMap(values, 0 , 0 ,
|
|
220
|
+
return _createKeyValueMap(values, 0 , 0 , objFreeze);
|
|
183
221
|
}
|
|
184
222
|
var _wellKnownSymbolMap = createEnumKeyMap({
|
|
185
223
|
asyncIterator: 0 ,
|
|
@@ -292,37 +330,6 @@
|
|
|
292
330
|
}
|
|
293
331
|
return result;
|
|
294
332
|
}
|
|
295
|
-
var propMap = {
|
|
296
|
-
e: "enumerable",
|
|
297
|
-
c: "configurable",
|
|
298
|
-
v: "value",
|
|
299
|
-
w: "writable",
|
|
300
|
-
g: "get",
|
|
301
|
-
s: "set"
|
|
302
|
-
};
|
|
303
|
-
function _createProp(value) {
|
|
304
|
-
var prop = {};
|
|
305
|
-
prop[propMap["c"]] = true;
|
|
306
|
-
prop[propMap["e"]] = true;
|
|
307
|
-
if (value.l) {
|
|
308
|
-
prop.get = function () { return value.l.v; };
|
|
309
|
-
var desc = objGetOwnPropertyDescriptor(value.l, "v");
|
|
310
|
-
if (desc && desc.set) {
|
|
311
|
-
prop.set = function (newValue) {
|
|
312
|
-
value.l.v = newValue;
|
|
313
|
-
};
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
objForEachKey(value, function (key, value) {
|
|
317
|
-
prop[propMap[key]] = isUndefined(value) ? prop[propMap[key]] : value;
|
|
318
|
-
});
|
|
319
|
-
return prop;
|
|
320
|
-
}
|
|
321
|
-
var objDefineProp = ( _pureRef(ObjClass, "defineProperty"));
|
|
322
|
-
( _pureRef(ObjClass, "defineProperties"));
|
|
323
|
-
function objDefine(target, key, propDesc) {
|
|
324
|
-
return objDefineProp(target, key, _createProp(propDesc));
|
|
325
|
-
}
|
|
326
333
|
var _globalLazyTestHooks;
|
|
327
334
|
function _initTestHooks() {
|
|
328
335
|
_globalLazyTestHooks = _getGlobalConfig();
|