@microsoft/applicationinsights-properties-js 3.0.0-beta.2210-15 → 3.0.0-beta.2210-17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/browser/applicationinsights-properties-js.integrity.json +9 -9
- package/browser/applicationinsights-properties-js.js +223 -155
- package/browser/applicationinsights-properties-js.js.map +1 -1
- package/browser/applicationinsights-properties-js.min.js +2 -2
- package/browser/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.api.json +8 -8
- package/dist/applicationinsights-properties-js.d.ts +1 -1
- package/dist/applicationinsights-properties-js.js +223 -155
- package/dist/applicationinsights-properties-js.js.map +1 -1
- package/dist/applicationinsights-properties-js.min.js +2 -2
- package/dist/applicationinsights-properties-js.min.js.map +1 -1
- package/dist/applicationinsights-properties-js.rollup.d.ts +1 -1
- package/dist-esm/Context/Application.js +1 -1
- package/dist-esm/Context/Device.js +1 -1
- package/dist-esm/Context/Internal.js +1 -1
- package/dist-esm/Context/Location.js +1 -1
- package/dist-esm/Context/Session.js +1 -1
- package/dist-esm/Context/TelemetryTrace.js +1 -1
- package/dist-esm/Context/User.js +1 -1
- package/dist-esm/Interfaces/IPropTelemetryContext.js +1 -1
- package/dist-esm/Interfaces/IPropertiesConfig.js +1 -1
- package/dist-esm/PropertiesPlugin.js +1 -1
- package/dist-esm/TelemetryContext.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-properties-js.js +1 -1
- package/package.json +4 -4
- package/types/tsdoc-metadata.json +1 -1
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"metadata": {
|
|
3
3
|
"toolPackage": "@microsoft/api-extractor",
|
|
4
|
-
"toolVersion": "7.33.
|
|
4
|
+
"toolVersion": "7.33.4",
|
|
5
5
|
"schemaVersion": 1010,
|
|
6
6
|
"oldestForwardsCompatibleVersion": 1001,
|
|
7
7
|
"tsdocConfig": {
|
|
@@ -191,7 +191,7 @@
|
|
|
191
191
|
"text": " "
|
|
192
192
|
}
|
|
193
193
|
],
|
|
194
|
-
"fileUrlPath": "
|
|
194
|
+
"fileUrlPath": "types/Interfaces/IPropTelemetryContext.d.ts",
|
|
195
195
|
"releaseTag": "Public",
|
|
196
196
|
"name": "IPropTelemetryContext",
|
|
197
197
|
"preserveMemberOrder": false,
|
|
@@ -872,7 +872,7 @@
|
|
|
872
872
|
"text": "export interface ISessionConfig "
|
|
873
873
|
}
|
|
874
874
|
],
|
|
875
|
-
"fileUrlPath": "
|
|
875
|
+
"fileUrlPath": "types/Context/Session.d.ts",
|
|
876
876
|
"releaseTag": "Public",
|
|
877
877
|
"name": "ISessionConfig",
|
|
878
878
|
"preserveMemberOrder": false,
|
|
@@ -1097,7 +1097,7 @@
|
|
|
1097
1097
|
"text": " "
|
|
1098
1098
|
}
|
|
1099
1099
|
],
|
|
1100
|
-
"fileUrlPath": "
|
|
1100
|
+
"fileUrlPath": "types/PropertiesPlugin.d.ts",
|
|
1101
1101
|
"releaseTag": "Public",
|
|
1102
1102
|
"name": "PropertiesPlugin",
|
|
1103
1103
|
"preserveMemberOrder": false,
|
|
@@ -1413,7 +1413,7 @@
|
|
|
1413
1413
|
"text": " "
|
|
1414
1414
|
}
|
|
1415
1415
|
],
|
|
1416
|
-
"fileUrlPath": "
|
|
1416
|
+
"fileUrlPath": "types/Context/Session.d.ts",
|
|
1417
1417
|
"releaseTag": "Public",
|
|
1418
1418
|
"name": "Session",
|
|
1419
1419
|
"preserveMemberOrder": false,
|
|
@@ -1523,7 +1523,7 @@
|
|
|
1523
1523
|
"text": "export declare class _SessionManager "
|
|
1524
1524
|
}
|
|
1525
1525
|
],
|
|
1526
|
-
"fileUrlPath": "
|
|
1526
|
+
"fileUrlPath": "types/Context/Session.d.ts",
|
|
1527
1527
|
"releaseTag": "Public",
|
|
1528
1528
|
"name": "SessionManager",
|
|
1529
1529
|
"preserveMemberOrder": false,
|
|
@@ -1690,7 +1690,7 @@
|
|
|
1690
1690
|
"text": " "
|
|
1691
1691
|
}
|
|
1692
1692
|
],
|
|
1693
|
-
"fileUrlPath": "
|
|
1693
|
+
"fileUrlPath": "types/TelemetryContext.d.ts",
|
|
1694
1694
|
"releaseTag": "Public",
|
|
1695
1695
|
"name": "TelemetryContext",
|
|
1696
1696
|
"preserveMemberOrder": false,
|
|
@@ -2797,7 +2797,7 @@
|
|
|
2797
2797
|
"text": " "
|
|
2798
2798
|
}
|
|
2799
2799
|
],
|
|
2800
|
-
"fileUrlPath": "
|
|
2800
|
+
"fileUrlPath": "types/Context/TelemetryTrace.d.ts",
|
|
2801
2801
|
"releaseTag": "Public",
|
|
2802
2802
|
"name": "TelemetryTrace",
|
|
2803
2803
|
"preserveMemberOrder": false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 3.0.0-beta.2210-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 3.0.0-beta.2210-17
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -377,7 +377,7 @@
|
|
|
377
377
|
var MathCls = Math;
|
|
378
378
|
var ArrCls = Array;
|
|
379
379
|
|
|
380
|
-
function
|
|
380
|
+
function _safeGet(cb, defValue) {
|
|
381
381
|
var result = defValue;
|
|
382
382
|
try {
|
|
383
383
|
result = cb();
|
|
@@ -421,59 +421,7 @@
|
|
|
421
421
|
var isNumber = _createIs(NUMBER);
|
|
422
422
|
var isError = _createObjIs("[object Error]");
|
|
423
423
|
function isTruthy(value) {
|
|
424
|
-
return !(!value ||
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
var DOCUMENT = "document";
|
|
428
|
-
var NAVIGATOR = "navigator";
|
|
429
|
-
var WINDOW = "window";
|
|
430
|
-
var _cachedGlobal = null;
|
|
431
|
-
var _hasWindow = _safeCheck(function () { return isDefined(window); }, false);
|
|
432
|
-
var _hasDocument = _safeCheck(function () { return isDefined(document); }, false);
|
|
433
|
-
var _hasNavigator = _safeCheck(function () { return isDefined(navigator); }, false);
|
|
434
|
-
_safeCheck(function () { return isDefined(history); }, false);
|
|
435
|
-
_safeCheck(function () { return !!(self && self instanceof WorkerGlobalScope); }, false);
|
|
436
|
-
_safeCheck(function () { return !!(process && (process.versions || {}).node); }, false);
|
|
437
|
-
function getGlobal(useCached) {
|
|
438
|
-
var result = useCached === false ? null : _cachedGlobal;
|
|
439
|
-
if (!result) {
|
|
440
|
-
if (!result && typeof globalThis !== UNDEFINED) {
|
|
441
|
-
result = globalThis;
|
|
442
|
-
}
|
|
443
|
-
if (!result && typeof self !== UNDEFINED) {
|
|
444
|
-
result = self;
|
|
445
|
-
}
|
|
446
|
-
if (!result && typeof window !== UNDEFINED) {
|
|
447
|
-
result = window;
|
|
448
|
-
}
|
|
449
|
-
if (!result && typeof global !== UNDEFINED) {
|
|
450
|
-
result = global;
|
|
451
|
-
}
|
|
452
|
-
_cachedGlobal = result;
|
|
453
|
-
}
|
|
454
|
-
return result;
|
|
455
|
-
}
|
|
456
|
-
function getInst(name, useCached) {
|
|
457
|
-
var gbl = getGlobal(useCached);
|
|
458
|
-
if (gbl && gbl[name]) {
|
|
459
|
-
return gbl[name];
|
|
460
|
-
}
|
|
461
|
-
if (name === WINDOW && _hasWindow) {
|
|
462
|
-
return window;
|
|
463
|
-
}
|
|
464
|
-
return null;
|
|
465
|
-
}
|
|
466
|
-
function getDocument() {
|
|
467
|
-
return _hasDocument ? document : getInst(DOCUMENT);
|
|
468
|
-
}
|
|
469
|
-
function hasWindow() {
|
|
470
|
-
return !!getWindow();
|
|
471
|
-
}
|
|
472
|
-
function getWindow() {
|
|
473
|
-
return _hasWindow ? window : getInst(WINDOW);
|
|
474
|
-
}
|
|
475
|
-
function getNavigator() {
|
|
476
|
-
return _hasNavigator ? navigator : getInst(NAVIGATOR);
|
|
424
|
+
return !(!value || _safeGet(function () { return !(value && (0 + value)); }, !value));
|
|
477
425
|
}
|
|
478
426
|
|
|
479
427
|
var objGetOwnPropertyDescriptor = ObjClass.getOwnPropertyDescriptor;
|
|
@@ -537,18 +485,45 @@
|
|
|
537
485
|
return objDeepFreeze(theEnum);
|
|
538
486
|
}
|
|
539
487
|
|
|
540
|
-
var
|
|
488
|
+
var asString = StrCls;
|
|
489
|
+
|
|
490
|
+
var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
|
|
491
|
+
var _globalCfg;
|
|
492
|
+
function _getGlobalValue() {
|
|
493
|
+
var result;
|
|
494
|
+
if (typeof globalThis !== UNDEFINED) {
|
|
495
|
+
result = globalThis;
|
|
496
|
+
}
|
|
497
|
+
if (!result && typeof self !== UNDEFINED) {
|
|
498
|
+
result = self;
|
|
499
|
+
}
|
|
500
|
+
if (!result && typeof window !== UNDEFINED) {
|
|
501
|
+
result = window;
|
|
502
|
+
}
|
|
503
|
+
if (!result && typeof global !== UNDEFINED) {
|
|
504
|
+
result = global;
|
|
505
|
+
}
|
|
506
|
+
return result;
|
|
507
|
+
}
|
|
508
|
+
function _getGlobalConfig() {
|
|
509
|
+
if (!_globalCfg) {
|
|
510
|
+
var gbl = _getGlobalValue() || {};
|
|
511
|
+
_globalCfg = gbl[GLOBAL_CONFIG_KEY] = gbl[GLOBAL_CONFIG_KEY] || {};
|
|
512
|
+
}
|
|
513
|
+
return _globalCfg;
|
|
514
|
+
}
|
|
515
|
+
|
|
541
516
|
var _polySymbols;
|
|
542
517
|
function _globalSymbolRegistry() {
|
|
543
518
|
if (!_polySymbols) {
|
|
544
|
-
var
|
|
545
|
-
_polySymbols =
|
|
519
|
+
var gblCfg = _getGlobalConfig();
|
|
520
|
+
_polySymbols = gblCfg.gblSym = gblCfg.gblSym || { k: {}, s: {} };
|
|
546
521
|
}
|
|
547
522
|
return _polySymbols;
|
|
548
523
|
}
|
|
549
524
|
function polyNewSymbol(description) {
|
|
550
525
|
var theSymbol = {
|
|
551
|
-
description:
|
|
526
|
+
description: asString(description),
|
|
552
527
|
toString: function () { return SYMBOL + "(" + description + ")"; }
|
|
553
528
|
};
|
|
554
529
|
theSymbol[POLYFILL_TAG] = true;
|
|
@@ -559,96 +534,11 @@
|
|
|
559
534
|
if (!objHasOwn(registry, key)) {
|
|
560
535
|
var newSymbol = polyNewSymbol(key);
|
|
561
536
|
registry.k[key] = newSymbol;
|
|
562
|
-
registry.s[newSymbol] =
|
|
537
|
+
registry.s[newSymbol] = asString(key);
|
|
563
538
|
}
|
|
564
539
|
return registry.k[key];
|
|
565
540
|
}
|
|
566
541
|
|
|
567
|
-
var _hasSymbol = _safeCheck(function () { return isDefined(Symbol); }, false);
|
|
568
|
-
var _symbol = getInst(SYMBOL);
|
|
569
|
-
var _symbolFor = _symbol && _safeCheck(function () { return _symbol["for"]; }, null);
|
|
570
|
-
_symbol && _safeCheck(function () { return _symbol["keyFor"]; }, null);
|
|
571
|
-
function newSymbol(description, noPoly) {
|
|
572
|
-
return _hasSymbol ? Symbol(description) : (!noPoly ? polyNewSymbol(description) : null);
|
|
573
|
-
}
|
|
574
|
-
var symbolFor = _symbolFor || polySymbolFor;
|
|
575
|
-
|
|
576
|
-
function isIterator(value) {
|
|
577
|
-
return !!value && isFunction(value.next);
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
function arrAppend(target, elms) {
|
|
581
|
-
if (!isUndefined(elms) && target) {
|
|
582
|
-
if (isArray(elms)) {
|
|
583
|
-
target.push.apply(target, elms);
|
|
584
|
-
}
|
|
585
|
-
else if (isIterator(elms)) {
|
|
586
|
-
var value = elms.next();
|
|
587
|
-
while (!value[DONE]) {
|
|
588
|
-
target.push(value[VALUE]);
|
|
589
|
-
value = elms.next();
|
|
590
|
-
}
|
|
591
|
-
}
|
|
592
|
-
else {
|
|
593
|
-
target.push(elms);
|
|
594
|
-
}
|
|
595
|
-
}
|
|
596
|
-
return target;
|
|
597
|
-
}
|
|
598
|
-
|
|
599
|
-
function arrForEach(arr, callbackfn, thisArg) {
|
|
600
|
-
if (arr) {
|
|
601
|
-
var len = arr[LENGTH];
|
|
602
|
-
for (var idx = 0; idx < len; idx++) {
|
|
603
|
-
if (idx in arr) {
|
|
604
|
-
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
605
|
-
break;
|
|
606
|
-
}
|
|
607
|
-
}
|
|
608
|
-
}
|
|
609
|
-
}
|
|
610
|
-
}
|
|
611
|
-
|
|
612
|
-
function dumpObj(object, format) {
|
|
613
|
-
var objectTypeDump = objToString(object);
|
|
614
|
-
var propertyValueDump = "";
|
|
615
|
-
if (objectTypeDump === "[object Error]") {
|
|
616
|
-
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
617
|
-
}
|
|
618
|
-
else {
|
|
619
|
-
try {
|
|
620
|
-
if (format) {
|
|
621
|
-
if (isNumber(format)) {
|
|
622
|
-
propertyValueDump = JSON.stringify(object, null, format);
|
|
623
|
-
}
|
|
624
|
-
else {
|
|
625
|
-
propertyValueDump = JSON.stringify(object, null, 4);
|
|
626
|
-
}
|
|
627
|
-
}
|
|
628
|
-
else {
|
|
629
|
-
propertyValueDump = JSON.stringify(object);
|
|
630
|
-
}
|
|
631
|
-
}
|
|
632
|
-
catch (e) {
|
|
633
|
-
propertyValueDump = objToString(object) + " - " + dumpObj(e, format);
|
|
634
|
-
}
|
|
635
|
-
}
|
|
636
|
-
return objectTypeDump + ": " + propertyValueDump;
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
function _unwrapFunction(funcName) {
|
|
640
|
-
return function (thisArg) {
|
|
641
|
-
var args = [];
|
|
642
|
-
for (var _i = 1; _i < arguments.length; _i++) {
|
|
643
|
-
args[_i - 1] = arguments[_i];
|
|
644
|
-
}
|
|
645
|
-
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
646
|
-
return thisArg[funcName].apply(thisArg, args);
|
|
647
|
-
}
|
|
648
|
-
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
649
|
-
};
|
|
650
|
-
}
|
|
651
|
-
|
|
652
542
|
function objSetPrototypeOf(obj, proto) {
|
|
653
543
|
var fn = ObjClass["setPrototypeOf"] ||
|
|
654
544
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
@@ -690,6 +580,33 @@
|
|
|
690
580
|
throw new _unsupportedError(message);
|
|
691
581
|
}
|
|
692
582
|
|
|
583
|
+
function dumpObj(object, format) {
|
|
584
|
+
var objectTypeDump = objToString(object);
|
|
585
|
+
var propertyValueDump = "";
|
|
586
|
+
if (objectTypeDump === "[object Error]") {
|
|
587
|
+
propertyValueDump = "{ stack: '" + object.stack + "', message: '" + object.message + "', name: '" + object.name + "'";
|
|
588
|
+
}
|
|
589
|
+
else {
|
|
590
|
+
try {
|
|
591
|
+
if (format) {
|
|
592
|
+
if (isNumber(format)) {
|
|
593
|
+
propertyValueDump = JSON.stringify(object, null, format);
|
|
594
|
+
}
|
|
595
|
+
else {
|
|
596
|
+
propertyValueDump = JSON.stringify(object, null, 4);
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
else {
|
|
600
|
+
propertyValueDump = JSON.stringify(object);
|
|
601
|
+
}
|
|
602
|
+
}
|
|
603
|
+
catch (e) {
|
|
604
|
+
propertyValueDump = objToString(object) + " - " + dumpObj(e, format);
|
|
605
|
+
}
|
|
606
|
+
}
|
|
607
|
+
return objectTypeDump + ": " + propertyValueDump;
|
|
608
|
+
}
|
|
609
|
+
|
|
693
610
|
var _objDefineProperty$1 = ObjClass["defineProperty"];
|
|
694
611
|
function objDefineProp(target, key, descriptor) {
|
|
695
612
|
if (_objDefineProperty$1) {
|
|
@@ -698,6 +615,19 @@
|
|
|
698
615
|
}
|
|
699
616
|
throwUnsupported("Unable to define property [" + objToString(key) + "] on " + dumpObj(target));
|
|
700
617
|
}
|
|
618
|
+
function objDefineGet(target, key, value, configurable) {
|
|
619
|
+
var desc = {
|
|
620
|
+
enumerable: true,
|
|
621
|
+
configurable: isUndefined(configurable) ? true : configurable
|
|
622
|
+
};
|
|
623
|
+
if (isFunction(value)) {
|
|
624
|
+
desc.get = value;
|
|
625
|
+
}
|
|
626
|
+
else {
|
|
627
|
+
desc[VALUE] = value;
|
|
628
|
+
}
|
|
629
|
+
return objDefineProp(target, key, desc);
|
|
630
|
+
}
|
|
701
631
|
function objDefineAccessors(target, prop, getProp, setProp, configurable) {
|
|
702
632
|
if (_objDefineProperty$1) {
|
|
703
633
|
try {
|
|
@@ -719,6 +649,145 @@
|
|
|
719
649
|
}
|
|
720
650
|
}
|
|
721
651
|
|
|
652
|
+
var _globalLazyTestHooks;
|
|
653
|
+
var _fetchLazyTestHooks = function () {
|
|
654
|
+
_globalLazyTestHooks = _getGlobalConfig();
|
|
655
|
+
_fetchLazyTestHooks = null;
|
|
656
|
+
};
|
|
657
|
+
function getLazy(cb) {
|
|
658
|
+
var lazyValue = {};
|
|
659
|
+
_fetchLazyTestHooks && _fetchLazyTestHooks();
|
|
660
|
+
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
661
|
+
objDefineGet(lazyValue, "v", function () {
|
|
662
|
+
var result = cb();
|
|
663
|
+
if (!_globalLazyTestHooks.lzy) {
|
|
664
|
+
objDefineProp(lazyValue, "v", {
|
|
665
|
+
enumerable: true,
|
|
666
|
+
configurable: true,
|
|
667
|
+
writable: false,
|
|
668
|
+
value: result
|
|
669
|
+
});
|
|
670
|
+
if (lazyValue.b) {
|
|
671
|
+
delete lazyValue.b;
|
|
672
|
+
}
|
|
673
|
+
}
|
|
674
|
+
if (_globalLazyTestHooks.lzy && lazyValue.b !== _globalLazyTestHooks.lzy) {
|
|
675
|
+
lazyValue.b = _globalLazyTestHooks.lzy;
|
|
676
|
+
}
|
|
677
|
+
return result;
|
|
678
|
+
}, true);
|
|
679
|
+
return lazyValue;
|
|
680
|
+
}
|
|
681
|
+
|
|
682
|
+
function _lazySafeGet(cb, defValue) {
|
|
683
|
+
return getLazy(function () { return _safeGet(cb, defValue); });
|
|
684
|
+
}
|
|
685
|
+
|
|
686
|
+
var DOCUMENT = "document";
|
|
687
|
+
var NAVIGATOR = "navigator";
|
|
688
|
+
var WINDOW = "window";
|
|
689
|
+
var _cachedGlobal;
|
|
690
|
+
var _cachedWindow;
|
|
691
|
+
var _cachedDocument;
|
|
692
|
+
var _cachedNavigator;
|
|
693
|
+
function getGlobal(useCached) {
|
|
694
|
+
(!_cachedGlobal || useCached === false || (_globalLazyTestHooks.lzy && !_cachedGlobal.b)) && (_cachedGlobal = _lazySafeGet(_getGlobalValue, null));
|
|
695
|
+
return _cachedGlobal.v;
|
|
696
|
+
}
|
|
697
|
+
function getInst(name, useCached) {
|
|
698
|
+
var gbl = getGlobal(useCached);
|
|
699
|
+
if (gbl && gbl[name]) {
|
|
700
|
+
return gbl[name];
|
|
701
|
+
}
|
|
702
|
+
if (name === WINDOW && _cachedWindow) {
|
|
703
|
+
return _cachedWindow.v;
|
|
704
|
+
}
|
|
705
|
+
return null;
|
|
706
|
+
}
|
|
707
|
+
function getDocument() {
|
|
708
|
+
(!_cachedDocument || (_globalLazyTestHooks.lzy && !_cachedDocument.b)) && (_cachedDocument = _lazySafeGet(function () { return getInst(DOCUMENT); }, UNDEF_VALUE));
|
|
709
|
+
return _cachedDocument.v;
|
|
710
|
+
}
|
|
711
|
+
function hasWindow() {
|
|
712
|
+
return !!getWindow();
|
|
713
|
+
}
|
|
714
|
+
function getWindow() {
|
|
715
|
+
(!_cachedWindow || (_globalLazyTestHooks.lzy && !_cachedWindow.b)) && (_cachedWindow = _lazySafeGet(function () { return getInst(WINDOW); }, UNDEF_VALUE));
|
|
716
|
+
return _cachedWindow.v;
|
|
717
|
+
}
|
|
718
|
+
function getNavigator() {
|
|
719
|
+
(!_cachedNavigator || (_globalLazyTestHooks.lzy && !_cachedNavigator.b)) && (_cachedNavigator = _lazySafeGet(function () { return getInst(NAVIGATOR); }, UNDEF_VALUE));
|
|
720
|
+
return _cachedNavigator.v;
|
|
721
|
+
}
|
|
722
|
+
|
|
723
|
+
var _symbol;
|
|
724
|
+
var _symbolFor;
|
|
725
|
+
var _symbolKeyFor;
|
|
726
|
+
function getSymbol() {
|
|
727
|
+
var resetCache = !_symbol || (_globalLazyTestHooks && _globalLazyTestHooks.lzy && !_symbol.b);
|
|
728
|
+
resetCache && (_symbol = _lazySafeGet(function () { return isDefined(Symbol) ? getInst(SYMBOL) : UNDEF_VALUE; }, UNDEF_VALUE));
|
|
729
|
+
(!_symbolFor || resetCache) && (_symbolFor = _lazySafeGet(function () { return _symbol.v ? _symbol["for"] : UNDEF_VALUE; }, UNDEF_VALUE));
|
|
730
|
+
(!_symbolKeyFor || resetCache) && (_symbolKeyFor = _lazySafeGet(function () { return _symbol.v ? _symbol["keyFor"] : UNDEF_VALUE; }, UNDEF_VALUE));
|
|
731
|
+
return _symbol.v;
|
|
732
|
+
}
|
|
733
|
+
function newSymbol(description, noPoly) {
|
|
734
|
+
(!_symbol || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
735
|
+
return _symbol.v ? _symbol.v(description) : (!noPoly ? polyNewSymbol(description) : null);
|
|
736
|
+
}
|
|
737
|
+
function symbolFor(key) {
|
|
738
|
+
(!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
739
|
+
return (_symbolFor.v || polySymbolFor)(key);
|
|
740
|
+
}
|
|
741
|
+
|
|
742
|
+
function isIterator(value) {
|
|
743
|
+
return !!value && isFunction(value.next);
|
|
744
|
+
}
|
|
745
|
+
|
|
746
|
+
function arrAppend(target, elms) {
|
|
747
|
+
if (!isUndefined(elms) && target) {
|
|
748
|
+
if (isArray(elms)) {
|
|
749
|
+
target.push.apply(target, elms);
|
|
750
|
+
}
|
|
751
|
+
else if (isIterator(elms)) {
|
|
752
|
+
var value = elms.next();
|
|
753
|
+
while (!value[DONE]) {
|
|
754
|
+
target.push(value[VALUE]);
|
|
755
|
+
value = elms.next();
|
|
756
|
+
}
|
|
757
|
+
}
|
|
758
|
+
else {
|
|
759
|
+
target.push(elms);
|
|
760
|
+
}
|
|
761
|
+
}
|
|
762
|
+
return target;
|
|
763
|
+
}
|
|
764
|
+
|
|
765
|
+
function arrForEach(arr, callbackfn, thisArg) {
|
|
766
|
+
if (arr) {
|
|
767
|
+
var len = arr[LENGTH];
|
|
768
|
+
for (var idx = 0; idx < len; idx++) {
|
|
769
|
+
if (idx in arr) {
|
|
770
|
+
if (callbackfn.call(thisArg || arr, arr[idx], idx, arr) === -1) {
|
|
771
|
+
break;
|
|
772
|
+
}
|
|
773
|
+
}
|
|
774
|
+
}
|
|
775
|
+
}
|
|
776
|
+
}
|
|
777
|
+
|
|
778
|
+
function _unwrapFunction(funcName) {
|
|
779
|
+
return function (thisArg) {
|
|
780
|
+
var args = [];
|
|
781
|
+
for (var _i = 1; _i < arguments.length; _i++) {
|
|
782
|
+
args[_i - 1] = arguments[_i];
|
|
783
|
+
}
|
|
784
|
+
if ((thisArg || thisArg === EMPTY) && thisArg[funcName]) {
|
|
785
|
+
return thisArg[funcName].apply(thisArg, args);
|
|
786
|
+
}
|
|
787
|
+
throwTypeError("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
788
|
+
};
|
|
789
|
+
}
|
|
790
|
+
|
|
722
791
|
var mathMax = MathCls.max;
|
|
723
792
|
|
|
724
793
|
var strSlice = _unwrapFunction("slice");
|
|
@@ -749,7 +818,7 @@
|
|
|
749
818
|
if (!isString(value)) {
|
|
750
819
|
throwTypeError("'" + dumpObj(value) + "' is not a string");
|
|
751
820
|
}
|
|
752
|
-
var searchValue = isString(searchString) ? searchString :
|
|
821
|
+
var searchValue = isString(searchString) ? searchString : asString(searchString);
|
|
753
822
|
var chkLen = searchValue[LENGTH];
|
|
754
823
|
var len = value[LENGTH];
|
|
755
824
|
var end = !isUndefined(length) && length < len ? length : len;
|
|
@@ -758,8 +827,6 @@
|
|
|
758
827
|
|
|
759
828
|
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
760
829
|
|
|
761
|
-
var asString = StrCls;
|
|
762
|
-
|
|
763
830
|
function _createTrimFn(exp) {
|
|
764
831
|
return function _doTrim(value) {
|
|
765
832
|
if (isNullOrUndefined(value)) {
|
|
@@ -784,21 +851,22 @@
|
|
|
784
851
|
return theArgs;
|
|
785
852
|
}
|
|
786
853
|
|
|
787
|
-
function _scheduleTimeoutWith(self,
|
|
788
|
-
var timeoutId =
|
|
854
|
+
function _scheduleTimeoutWith(self, setTimeoutFn, clearTimeoutFn, theArgs) {
|
|
855
|
+
var timeoutId = setTimeoutFn.apply(self, theArgs);
|
|
789
856
|
return {
|
|
790
857
|
cancel: function () {
|
|
791
|
-
|
|
858
|
+
timeoutId && clearTimeoutFn.call(self, timeoutId);
|
|
859
|
+
timeoutId = null;
|
|
792
860
|
},
|
|
793
861
|
refresh: function () {
|
|
794
|
-
|
|
795
|
-
timeoutId =
|
|
862
|
+
timeoutId && clearTimeoutFn.call(self, timeoutId);
|
|
863
|
+
timeoutId = setTimeoutFn.apply(self, theArgs);
|
|
796
864
|
return this;
|
|
797
865
|
}
|
|
798
866
|
};
|
|
799
867
|
}
|
|
800
868
|
function scheduleTimeout(callback, timeout) {
|
|
801
|
-
return _scheduleTimeoutWith(this, setTimeout, _extractArgs(arguments, 0));
|
|
869
|
+
return _scheduleTimeoutWith(this, setTimeout, clearTimeout, _extractArgs(arguments, 0));
|
|
802
870
|
}
|
|
803
871
|
|
|
804
872
|
var createEnumStyle = createEnum;
|
|
@@ -1126,7 +1194,7 @@
|
|
|
1126
1194
|
}
|
|
1127
1195
|
|
|
1128
1196
|
var _objDefineProperty = ObjDefineProperty;
|
|
1129
|
-
var version = "3.0.0-beta.2210-
|
|
1197
|
+
var version = "3.0.0-beta.2210-17";
|
|
1130
1198
|
var instanceName = "." + newId(6);
|
|
1131
1199
|
var _dataUid = 0;
|
|
1132
1200
|
function _createAccessor(target, prop, value) {
|