@microsoft/applicationinsights-core-js 3.0.0-beta.2302-05 → 3.0.0-beta.2302-06
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 +2 -1
- package/browser/applicationinsights-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +59 -75
- package/browser/applicationinsights-core-js.js.map +1 -1
- package/browser/applicationinsights-core-js.min.js +2 -2
- package/browser/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.api.json +57 -9
- package/dist/applicationinsights-core-js.api.md +3 -3
- package/dist/applicationinsights-core-js.d.ts +7 -4
- package/dist/applicationinsights-core-js.js +59 -75
- package/dist/applicationinsights-core-js.js.map +1 -1
- package/dist/applicationinsights-core-js.min.js +2 -2
- package/dist/applicationinsights-core-js.min.js.map +1 -1
- package/dist/applicationinsights-core-js.rollup.d.ts +7 -4
- package/dist-esm/Config/ConfigDefaultHelpers.js +1 -1
- package/dist-esm/Config/ConfigDefaults.js +1 -1
- package/dist-esm/Config/DynamicConfig.js +1 -1
- package/dist-esm/Config/DynamicProperty.js +1 -1
- package/dist-esm/Config/DynamicState.js +1 -1
- package/dist-esm/Config/DynamicSupport.js +1 -1
- package/dist-esm/Config/IConfigDefaults.js +1 -1
- package/dist-esm/Config/IDynamicConfigHandler.js +1 -1
- package/dist-esm/Config/IDynamicPropertyHandler.js +1 -1
- package/dist-esm/Config/IDynamicWatcher.js +1 -1
- package/dist-esm/Config/_IDynamicConfigHandlerState.js +1 -1
- package/dist-esm/JavaScriptSDK/AggregationError.js +1 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/Constants.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js +2 -2
- package/dist-esm/JavaScriptSDK/DataCacheHelper.js.map +1 -1
- package/dist-esm/JavaScriptSDK/DbgExtensionUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/DiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK/EnvUtils.js +1 -1
- package/dist-esm/JavaScriptSDK/EventHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/HelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js +12 -9
- package/dist-esm/JavaScriptSDK/InstrumentHooks.js.map +1 -1
- package/dist-esm/JavaScriptSDK/InternalConstants.js +1 -1
- package/dist-esm/JavaScriptSDK/NotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK/PerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK/ProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK/RandomHelper.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryHelpers.js +1 -1
- package/dist-esm/JavaScriptSDK/TelemetryInitializerPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHandlerContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/UnloadHookContainer.js +1 -1
- package/dist-esm/JavaScriptSDK/W3cTraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EnumHelperFuncs.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/EventsDiscardedReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/LoggingEnums.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/SendRequestReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUnloadReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Enums/TelemetryUpdateReason.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IAppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IChannelControls.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IConfiguration.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ICookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDbgExtension.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDiagnosticLogger.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IDistributedTraceContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IInstrumentHooks.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationListener.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/INotificationManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfEvent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IPerfManager.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IProcessTelemetryContext.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryInitializers.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryItem.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryPluginChain.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUnloadState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITelemetryUpdateState.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/ITraceParent.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadHook.js +1 -1
- package/dist-esm/JavaScriptSDK.Interfaces/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +1 -1
- package/src/JavaScriptSDK/InstrumentHooks.ts +11 -8
- package/types/JavaScriptSDK/InstrumentHooks.d.ts +6 -3
|
@@ -16386,7 +16386,7 @@
|
|
|
16386
16386
|
{
|
|
16387
16387
|
"kind": "Function",
|
|
16388
16388
|
"canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentEvent:function(1)",
|
|
16389
|
-
"docComment": "/**\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\n *\n * @param target - The target object\n *\n * @param evtName - The name of the event\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
|
|
16389
|
+
"docComment": "/**\n * Add an instrumentation hook to the provided named \"event\" for the target class / object, this doesn't check whether the named \"event\" is in fact a function and just assigns the instrumentation hook to the target[evtName]\n *\n * @param target - The target object\n *\n * @param evtName - The name of the event\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
|
|
16390
16390
|
"excerptTokens": [
|
|
16391
16391
|
{
|
|
16392
16392
|
"kind": "Content",
|
|
@@ -16421,6 +16421,14 @@
|
|
|
16421
16421
|
"kind": "Content",
|
|
16422
16422
|
"text": "boolean"
|
|
16423
16423
|
},
|
|
16424
|
+
{
|
|
16425
|
+
"kind": "Content",
|
|
16426
|
+
"text": ", checkParentProto?: "
|
|
16427
|
+
},
|
|
16428
|
+
{
|
|
16429
|
+
"kind": "Content",
|
|
16430
|
+
"text": "boolean"
|
|
16431
|
+
},
|
|
16424
16432
|
{
|
|
16425
16433
|
"kind": "Content",
|
|
16426
16434
|
"text": "): "
|
|
@@ -16437,8 +16445,8 @@
|
|
|
16437
16445
|
],
|
|
16438
16446
|
"fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
|
|
16439
16447
|
"returnTypeTokenRange": {
|
|
16440
|
-
"startIndex":
|
|
16441
|
-
"endIndex":
|
|
16448
|
+
"startIndex": 11,
|
|
16449
|
+
"endIndex": 12
|
|
16442
16450
|
},
|
|
16443
16451
|
"releaseTag": "Public",
|
|
16444
16452
|
"overloadIndex": 1,
|
|
@@ -16474,6 +16482,14 @@
|
|
|
16474
16482
|
"endIndex": 8
|
|
16475
16483
|
},
|
|
16476
16484
|
"isOptional": true
|
|
16485
|
+
},
|
|
16486
|
+
{
|
|
16487
|
+
"parameterName": "checkParentProto",
|
|
16488
|
+
"parameterTypeTokenRange": {
|
|
16489
|
+
"startIndex": 9,
|
|
16490
|
+
"endIndex": 10
|
|
16491
|
+
},
|
|
16492
|
+
"isOptional": true
|
|
16477
16493
|
}
|
|
16478
16494
|
],
|
|
16479
16495
|
"name": "InstrumentEvent"
|
|
@@ -16481,7 +16497,7 @@
|
|
|
16481
16497
|
{
|
|
16482
16498
|
"kind": "Function",
|
|
16483
16499
|
"canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentFunc:function(1)",
|
|
16484
|
-
"docComment": "/**\n * Intercept the named prototype functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcName - The function name\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
|
|
16500
|
+
"docComment": "/**\n * Intercept the named prototype functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcName - The function name\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
|
|
16485
16501
|
"excerptTokens": [
|
|
16486
16502
|
{
|
|
16487
16503
|
"kind": "Content",
|
|
@@ -16516,6 +16532,14 @@
|
|
|
16516
16532
|
"kind": "Content",
|
|
16517
16533
|
"text": "boolean"
|
|
16518
16534
|
},
|
|
16535
|
+
{
|
|
16536
|
+
"kind": "Content",
|
|
16537
|
+
"text": ", checkParentProto?: "
|
|
16538
|
+
},
|
|
16539
|
+
{
|
|
16540
|
+
"kind": "Content",
|
|
16541
|
+
"text": "boolean"
|
|
16542
|
+
},
|
|
16519
16543
|
{
|
|
16520
16544
|
"kind": "Content",
|
|
16521
16545
|
"text": "): "
|
|
@@ -16532,8 +16556,8 @@
|
|
|
16532
16556
|
],
|
|
16533
16557
|
"fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
|
|
16534
16558
|
"returnTypeTokenRange": {
|
|
16535
|
-
"startIndex":
|
|
16536
|
-
"endIndex":
|
|
16559
|
+
"startIndex": 11,
|
|
16560
|
+
"endIndex": 12
|
|
16537
16561
|
},
|
|
16538
16562
|
"releaseTag": "Public",
|
|
16539
16563
|
"overloadIndex": 1,
|
|
@@ -16569,6 +16593,14 @@
|
|
|
16569
16593
|
"endIndex": 8
|
|
16570
16594
|
},
|
|
16571
16595
|
"isOptional": true
|
|
16596
|
+
},
|
|
16597
|
+
{
|
|
16598
|
+
"parameterName": "checkParentProto",
|
|
16599
|
+
"parameterTypeTokenRange": {
|
|
16600
|
+
"startIndex": 9,
|
|
16601
|
+
"endIndex": 10
|
|
16602
|
+
},
|
|
16603
|
+
"isOptional": true
|
|
16572
16604
|
}
|
|
16573
16605
|
],
|
|
16574
16606
|
"name": "InstrumentFunc"
|
|
@@ -16576,7 +16608,7 @@
|
|
|
16576
16608
|
{
|
|
16577
16609
|
"kind": "Function",
|
|
16578
16610
|
"canonicalReference": "@microsoft/applicationinsights-core-js!InstrumentFuncs:function(1)",
|
|
16579
|
-
"docComment": "/**\n * Intercept the named functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcNames - The function names to intercept and call\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n */\n",
|
|
16611
|
+
"docComment": "/**\n * Intercept the named functions for the target class / object\n *\n * @param target - The target object\n *\n * @param funcNames - The function names to intercept and call\n *\n * @param callbacks - The callbacks to configure and call whenever the function is called\n *\n * @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function\n *\n * @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype\n */\n",
|
|
16580
16612
|
"excerptTokens": [
|
|
16581
16613
|
{
|
|
16582
16614
|
"kind": "Content",
|
|
@@ -16611,6 +16643,14 @@
|
|
|
16611
16643
|
"kind": "Content",
|
|
16612
16644
|
"text": "boolean"
|
|
16613
16645
|
},
|
|
16646
|
+
{
|
|
16647
|
+
"kind": "Content",
|
|
16648
|
+
"text": ", checkParentProto?: "
|
|
16649
|
+
},
|
|
16650
|
+
{
|
|
16651
|
+
"kind": "Content",
|
|
16652
|
+
"text": "boolean"
|
|
16653
|
+
},
|
|
16614
16654
|
{
|
|
16615
16655
|
"kind": "Content",
|
|
16616
16656
|
"text": "): "
|
|
@@ -16631,8 +16671,8 @@
|
|
|
16631
16671
|
],
|
|
16632
16672
|
"fileUrlPath": "types/JavaScriptSDK/InstrumentHooks.d.ts",
|
|
16633
16673
|
"returnTypeTokenRange": {
|
|
16634
|
-
"startIndex":
|
|
16635
|
-
"endIndex":
|
|
16674
|
+
"startIndex": 11,
|
|
16675
|
+
"endIndex": 13
|
|
16636
16676
|
},
|
|
16637
16677
|
"releaseTag": "Public",
|
|
16638
16678
|
"overloadIndex": 1,
|
|
@@ -16668,6 +16708,14 @@
|
|
|
16668
16708
|
"endIndex": 8
|
|
16669
16709
|
},
|
|
16670
16710
|
"isOptional": true
|
|
16711
|
+
},
|
|
16712
|
+
{
|
|
16713
|
+
"parameterName": "checkParentProto",
|
|
16714
|
+
"parameterTypeTokenRange": {
|
|
16715
|
+
"startIndex": 9,
|
|
16716
|
+
"endIndex": 10
|
|
16717
|
+
},
|
|
16718
|
+
"isOptional": true
|
|
16671
16719
|
}
|
|
16672
16720
|
],
|
|
16673
16721
|
"name": "InstrumentFuncs"
|
|
@@ -831,13 +831,13 @@ export interface INotificationManager {
|
|
|
831
831
|
}
|
|
832
832
|
|
|
833
833
|
// @public
|
|
834
|
-
export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
834
|
+
export function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
835
835
|
|
|
836
836
|
// @public
|
|
837
|
-
export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
837
|
+
export function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
838
838
|
|
|
839
839
|
// @public
|
|
840
|
-
export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook[];
|
|
840
|
+
export function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
|
|
841
841
|
|
|
842
842
|
// @public
|
|
843
843
|
export type InstrumentorHooksCallback = (funcArgs: IInstrumentCallDetails, ...orgArgs: any[]) => void;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2302-
|
|
2
|
+
* Microsoft Application Insights Core Javascript SDK, 3.0.0-beta.2302-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1812,8 +1812,9 @@ declare namespace ApplicationInsights {
|
|
|
1812
1812
|
* @param evtName - The name of the event
|
|
1813
1813
|
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
1814
1814
|
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
1815
|
+
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
1815
1816
|
*/
|
|
1816
|
-
function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
1817
|
+
function InstrumentEvent(target: any, evtName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
1817
1818
|
|
|
1818
1819
|
/**
|
|
1819
1820
|
* Intercept the named prototype functions for the target class / object
|
|
@@ -1821,8 +1822,9 @@ declare namespace ApplicationInsights {
|
|
|
1821
1822
|
* @param funcName - The function name
|
|
1822
1823
|
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
1823
1824
|
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
1825
|
+
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
1824
1826
|
*/
|
|
1825
|
-
function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook;
|
|
1827
|
+
function InstrumentFunc(target: any, funcName: string, callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook;
|
|
1826
1828
|
|
|
1827
1829
|
/**
|
|
1828
1830
|
* Intercept the named functions for the target class / object
|
|
@@ -1830,8 +1832,9 @@ declare namespace ApplicationInsights {
|
|
|
1830
1832
|
* @param funcNames - The function names to intercept and call
|
|
1831
1833
|
* @param callbacks - The callbacks to configure and call whenever the function is called
|
|
1832
1834
|
* @param checkPrototype - If the function doesn't exist on the target should it attempt to hook the prototype function
|
|
1835
|
+
* @param checkParentProto - If the function doesn't exist on the target or it's prototype should it attempt to hook the parent's prototype
|
|
1833
1836
|
*/
|
|
1834
|
-
function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean): IInstrumentHook[];
|
|
1837
|
+
function InstrumentFuncs(target: any, funcNames: string[], callbacks: IInstrumentHooksCallbacks, checkPrototype?: boolean, checkParentProto?: boolean): IInstrumentHook[];
|
|
1835
1838
|
|
|
1836
1839
|
/**
|
|
1837
1840
|
* A callback function that will be called for the wrapped instrumentation function
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2302-
|
|
2
|
+
* Application Insights JavaScript SDK - Core, 3.0.0-beta.2302-06
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
(function (global, factory) {
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
|
|
11
11
|
var MinChannelPriorty = 100;
|
|
12
12
|
|
|
13
|
+
/*!
|
|
14
|
+
* NevWare21 - ts-utils, 0.8.0
|
|
15
|
+
* https://github.com/nevware21/ts-utils
|
|
16
|
+
* Copyright (c) NevWare21 and contributors. All rights reserved.
|
|
17
|
+
* Licensed under the MIT license.
|
|
18
|
+
*/
|
|
13
19
|
var UNDEF_VALUE = undefined;
|
|
14
20
|
var EMPTY = "";
|
|
15
21
|
var BOOLEAN = "boolean";
|
|
@@ -30,10 +36,9 @@
|
|
|
30
36
|
var ObjClass$1 = Object;
|
|
31
37
|
var ObjProto = ObjClass$1[PROTOTYPE];
|
|
32
38
|
var StrCls = String;
|
|
33
|
-
var StrProto = StrCls[PROTOTYPE];
|
|
34
39
|
var MathCls = Math;
|
|
35
40
|
var ArrCls = Array;
|
|
36
|
-
|
|
41
|
+
var ArrProto = ArrCls[PROTOTYPE];
|
|
37
42
|
function _safeGet(cb, defValue) {
|
|
38
43
|
var result = defValue;
|
|
39
44
|
try {
|
|
@@ -43,7 +48,6 @@
|
|
|
43
48
|
}
|
|
44
49
|
return result;
|
|
45
50
|
}
|
|
46
|
-
|
|
47
51
|
var PRIMITIVE_TYPES = [STRING, NUMBER, BOOLEAN, UNDEFINED$1, "symbol", "bigint"];
|
|
48
52
|
function _createIs(theType) {
|
|
49
53
|
return function (value) {
|
|
@@ -97,18 +101,14 @@
|
|
|
97
101
|
function isTruthy(value) {
|
|
98
102
|
return !(!value || _safeGet(function () { return !(value && (0 + value)); }, !value));
|
|
99
103
|
}
|
|
100
|
-
|
|
101
104
|
var objGetOwnPropertyDescriptor = ObjClass$1.getOwnPropertyDescriptor;
|
|
102
|
-
|
|
103
105
|
function objHasOwnProperty(obj, prop) {
|
|
104
106
|
return obj && ObjProto[HAS_OWN_PROPERTY].call(obj, prop);
|
|
105
107
|
}
|
|
106
|
-
|
|
107
108
|
var objHasOwn = ObjClass$1["hasOwn"] || polyObjHasOwn;
|
|
108
109
|
function polyObjHasOwn(obj, prop) {
|
|
109
110
|
return objHasOwnProperty(obj, prop) || !!objGetOwnPropertyDescriptor(obj, prop);
|
|
110
111
|
}
|
|
111
|
-
|
|
112
112
|
function objForEachKey(theObject, callbackfn, thisArg) {
|
|
113
113
|
if (theObject && isObject(theObject)) {
|
|
114
114
|
for (var prop in theObject) {
|
|
@@ -120,7 +120,6 @@
|
|
|
120
120
|
}
|
|
121
121
|
}
|
|
122
122
|
}
|
|
123
|
-
|
|
124
123
|
function _createKeyValueMap(values, keyType, valueType, completeFn) {
|
|
125
124
|
var theMap = {};
|
|
126
125
|
objForEachKey(values, function (key, value) {
|
|
@@ -129,14 +128,12 @@
|
|
|
129
128
|
});
|
|
130
129
|
return completeFn(theMap);
|
|
131
130
|
}
|
|
132
|
-
|
|
133
131
|
function throwError(message) {
|
|
134
132
|
throw new Error(message);
|
|
135
133
|
}
|
|
136
134
|
function throwTypeError$1(message) {
|
|
137
135
|
throw new TypeError(message);
|
|
138
136
|
}
|
|
139
|
-
|
|
140
137
|
var _objFreeze = ObjClass$1["freeze"];
|
|
141
138
|
var _doNothing = function (value) { return value; };
|
|
142
139
|
function objKeys(value) {
|
|
@@ -158,9 +155,11 @@
|
|
|
158
155
|
var objFreeze = _objFreeze || _doNothing;
|
|
159
156
|
var objSeal = ObjClass$1["seal"] || _doNothing;
|
|
160
157
|
var objGetPrototypeOf = ObjClass$1["getPrototypeOf"] || _doNothing;
|
|
161
|
-
|
|
162
158
|
function createEnum(values) {
|
|
163
|
-
return _createKeyValueMap(values, 1, 0, objDeepFreeze);
|
|
159
|
+
return _createKeyValueMap(values, 1 , 0 , objDeepFreeze);
|
|
160
|
+
}
|
|
161
|
+
function createEnumKeyMap(values) {
|
|
162
|
+
return _createKeyValueMap(values, 0 , 0 , objDeepFreeze);
|
|
164
163
|
}
|
|
165
164
|
function createSimpleMap(values) {
|
|
166
165
|
var mapClass = {};
|
|
@@ -173,9 +172,22 @@
|
|
|
173
172
|
function createTypeMap(values) {
|
|
174
173
|
return createSimpleMap(values);
|
|
175
174
|
}
|
|
176
|
-
|
|
175
|
+
createEnumKeyMap({
|
|
176
|
+
asyncIterator: 0 ,
|
|
177
|
+
hasInstance: 1 ,
|
|
178
|
+
isConcatSpreadable: 2 ,
|
|
179
|
+
iterator: 3 ,
|
|
180
|
+
match: 4 ,
|
|
181
|
+
matchAll: 5 ,
|
|
182
|
+
replace: 6 ,
|
|
183
|
+
search: 7 ,
|
|
184
|
+
species: 8 ,
|
|
185
|
+
split: 9 ,
|
|
186
|
+
toPrimitive: 10 ,
|
|
187
|
+
toStringTag: 11 ,
|
|
188
|
+
unscopables: 12
|
|
189
|
+
});
|
|
177
190
|
var asString = StrCls;
|
|
178
|
-
|
|
179
191
|
var GLOBAL_CONFIG_KEY = "__tsUtils$gblCfg";
|
|
180
192
|
var _globalCfg;
|
|
181
193
|
function _getGlobalValue() {
|
|
@@ -201,7 +213,6 @@
|
|
|
201
213
|
}
|
|
202
214
|
return _globalCfg;
|
|
203
215
|
}
|
|
204
|
-
|
|
205
216
|
function dumpObj(object, format) {
|
|
206
217
|
var propertyValueDump = "";
|
|
207
218
|
if (isError(object)) {
|
|
@@ -217,7 +228,6 @@
|
|
|
217
228
|
}
|
|
218
229
|
return objToString(object) + ": " + propertyValueDump;
|
|
219
230
|
}
|
|
220
|
-
|
|
221
231
|
function _extractArgs(args, startAt) {
|
|
222
232
|
var theArgs = [];
|
|
223
233
|
for (var lp = startAt; lp < args[LENGTH]; lp++) {
|
|
@@ -225,24 +235,25 @@
|
|
|
225
235
|
}
|
|
226
236
|
return theArgs;
|
|
227
237
|
}
|
|
228
|
-
|
|
229
|
-
function _unwrapFunction(funcName) {
|
|
238
|
+
function _unwrapFunction(funcName, target, polyFunc) {
|
|
230
239
|
return function (thisArg) {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
240
|
+
if ((thisArg || thisArg === EMPTY)) {
|
|
241
|
+
var theFunc = thisArg[funcName] || (target && target[funcName]);
|
|
242
|
+
if (theFunc) {
|
|
243
|
+
return theFunc.apply(thisArg, _extractArgs(arguments, 1));
|
|
244
|
+
}
|
|
245
|
+
if (polyFunc) {
|
|
246
|
+
return polyFunc.apply(thisArg, arguments);
|
|
247
|
+
}
|
|
234
248
|
}
|
|
235
|
-
throwTypeError$1("'" + funcName + "' not defined for " + dumpObj(thisArg));
|
|
249
|
+
throwTypeError$1("'" + asString(funcName) + "' not defined for " + dumpObj(thisArg));
|
|
236
250
|
};
|
|
237
251
|
}
|
|
238
|
-
|
|
239
252
|
var mathMax = MathCls.max;
|
|
240
|
-
|
|
241
253
|
var strSlice = _unwrapFunction("slice");
|
|
242
|
-
|
|
243
254
|
var SUB_STR = "substr";
|
|
244
255
|
var strSubstring = _unwrapFunction("substring");
|
|
245
|
-
var strSubstr =
|
|
256
|
+
var strSubstr = _unwrapFunction(SUB_STR, UNDEF_VALUE, polyStrSubstr);
|
|
246
257
|
function polyStrSubstr(value, start, length) {
|
|
247
258
|
if (isNullOrUndefined(value)) {
|
|
248
259
|
throwTypeError$1("'polyStrSubstr called with invalid " + dumpObj(value));
|
|
@@ -262,9 +273,8 @@
|
|
|
262
273
|
function strLeft(value, count) {
|
|
263
274
|
return strSubstring(value, 0, count);
|
|
264
275
|
}
|
|
265
|
-
|
|
266
276
|
var STARTS_WITH = "startsWith";
|
|
267
|
-
var strStartsWith =
|
|
277
|
+
var strStartsWith = _unwrapFunction(STARTS_WITH, UNDEF_VALUE, polyStrStartsWith);
|
|
268
278
|
function polyStrStartsWith(value, searchString, position) {
|
|
269
279
|
if (!isString(value)) {
|
|
270
280
|
throwTypeError$1("'" + dumpObj(value) + "' is not a string");
|
|
@@ -274,7 +284,6 @@
|
|
|
274
284
|
var pos = position > 0 ? position : 0;
|
|
275
285
|
return strSubstring(value, pos, pos + chkLen) === searchValue;
|
|
276
286
|
}
|
|
277
|
-
|
|
278
287
|
var _polySymbols;
|
|
279
288
|
function _globalSymbolRegistry() {
|
|
280
289
|
if (!_polySymbols) {
|
|
@@ -300,7 +309,6 @@
|
|
|
300
309
|
}
|
|
301
310
|
return registry.k[key];
|
|
302
311
|
}
|
|
303
|
-
|
|
304
312
|
var propMap = {
|
|
305
313
|
e: "enumerable",
|
|
306
314
|
c: "configurable",
|
|
@@ -318,7 +326,7 @@
|
|
|
318
326
|
});
|
|
319
327
|
return prop;
|
|
320
328
|
}
|
|
321
|
-
var objDefineProp = ObjClass$1
|
|
329
|
+
var objDefineProp = ObjClass$1["defineProperty"];
|
|
322
330
|
function objDefineAccessors(target, prop, getProp, setProp, configurable, enumerable) {
|
|
323
331
|
var desc = {
|
|
324
332
|
e: enumerable,
|
|
@@ -335,7 +343,6 @@
|
|
|
335
343
|
function objDefine(target, key, propDesc) {
|
|
336
344
|
return objDefineProp(target, key, _createProp(propDesc));
|
|
337
345
|
}
|
|
338
|
-
|
|
339
346
|
var _globalLazyTestHooks;
|
|
340
347
|
var _fetchLazyTestHooks = function () {
|
|
341
348
|
_globalLazyTestHooks = _getGlobalConfig();
|
|
@@ -362,11 +369,9 @@
|
|
|
362
369
|
});
|
|
363
370
|
return lazyValue;
|
|
364
371
|
}
|
|
365
|
-
|
|
366
372
|
function _lazySafeGet(cb, defValue) {
|
|
367
373
|
return getLazy(function () { return _safeGet(cb, defValue); });
|
|
368
374
|
}
|
|
369
|
-
|
|
370
375
|
var DOCUMENT = "document";
|
|
371
376
|
var HISTORY = "history";
|
|
372
377
|
var NAVIGATOR = "navigator";
|
|
@@ -421,7 +426,6 @@
|
|
|
421
426
|
(!_cachedHistory || (_globalLazyTestHooks.lzy && !_cachedHistory.b)) && (_cachedHistory = _lazySafeGetInst(HISTORY));
|
|
422
427
|
return _cachedHistory.v;
|
|
423
428
|
}
|
|
424
|
-
|
|
425
429
|
var _symbol;
|
|
426
430
|
var _symbolFor;
|
|
427
431
|
var _symbolKeyFor;
|
|
@@ -446,11 +450,9 @@
|
|
|
446
450
|
(!_symbolFor || (_globalLazyTestHooks.lzy && !_symbol.b)) && getSymbol();
|
|
447
451
|
return (_symbolFor.v || polySymbolFor)(key);
|
|
448
452
|
}
|
|
449
|
-
|
|
450
453
|
function isIterator(value) {
|
|
451
454
|
return !!value && isFunction(value.next);
|
|
452
455
|
}
|
|
453
|
-
|
|
454
456
|
function arrAppend(target, elms) {
|
|
455
457
|
if (!isUndefined(elms) && target) {
|
|
456
458
|
if (isArray(elms)) {
|
|
@@ -469,26 +471,21 @@
|
|
|
469
471
|
}
|
|
470
472
|
return target;
|
|
471
473
|
}
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
var len = arr[LENGTH];
|
|
474
|
+
function arrForEach(theArray, callbackfn, thisArg) {
|
|
475
|
+
if (theArray) {
|
|
476
|
+
var len = theArray[LENGTH] >>> 0;
|
|
476
477
|
for (var idx = 0; idx < len; idx++) {
|
|
477
|
-
if (idx in
|
|
478
|
-
if (callbackfn.call(thisArg ||
|
|
478
|
+
if (idx in theArray) {
|
|
479
|
+
if (callbackfn.call(thisArg || theArray, theArray[idx], idx, theArray) === -1) {
|
|
479
480
|
break;
|
|
480
481
|
}
|
|
481
482
|
}
|
|
482
483
|
}
|
|
483
484
|
}
|
|
484
485
|
}
|
|
485
|
-
|
|
486
|
-
var
|
|
487
|
-
|
|
488
|
-
var arrMap = _unwrapFunction("map");
|
|
489
|
-
|
|
490
|
-
var arrReduce = _unwrapFunction("reduce");
|
|
491
|
-
|
|
486
|
+
var arrIndexOf = _unwrapFunction(INDEX_OF, ArrProto);
|
|
487
|
+
var arrMap = _unwrapFunction("map", ArrProto);
|
|
488
|
+
var arrReduce = _unwrapFunction("reduce", ArrProto);
|
|
492
489
|
function objSetPrototypeOf(obj, proto) {
|
|
493
490
|
var fn = ObjClass$1["setPrototypeOf"] ||
|
|
494
491
|
({ __proto__: [] } instanceof Array && function (d, b) {
|
|
@@ -499,7 +496,6 @@
|
|
|
499
496
|
};
|
|
500
497
|
return fn(obj, proto);
|
|
501
498
|
}
|
|
502
|
-
|
|
503
499
|
function _createCustomError(name, d, b) {
|
|
504
500
|
objSetPrototypeOf(d, b);
|
|
505
501
|
function __() {
|
|
@@ -520,14 +516,12 @@
|
|
|
520
516
|
}, baseClass);
|
|
521
517
|
return customError;
|
|
522
518
|
}
|
|
523
|
-
|
|
524
519
|
function utcNow() {
|
|
525
520
|
return (Date.now || polyUtcNow)();
|
|
526
521
|
}
|
|
527
522
|
function polyUtcNow() {
|
|
528
523
|
return new Date().getTime();
|
|
529
524
|
}
|
|
530
|
-
|
|
531
525
|
var _fnToString;
|
|
532
526
|
var _objCtrFnString;
|
|
533
527
|
var _gblWindow;
|
|
@@ -559,7 +553,6 @@
|
|
|
559
553
|
}
|
|
560
554
|
return result;
|
|
561
555
|
}
|
|
562
|
-
|
|
563
556
|
function _defaultDeepCopyHandler(details) {
|
|
564
557
|
var target = details.result = {};
|
|
565
558
|
details.copyTo(target, details.value);
|
|
@@ -686,7 +679,6 @@
|
|
|
686
679
|
}
|
|
687
680
|
return false;
|
|
688
681
|
}
|
|
689
|
-
|
|
690
682
|
function _doExtend(target, theArgs) {
|
|
691
683
|
arrForEach(theArgs, function (theArg) {
|
|
692
684
|
objCopyProps(target, theArg);
|
|
@@ -700,7 +692,6 @@
|
|
|
700
692
|
}
|
|
701
693
|
return _doExtend(objDeepCopy(target) || {}, theArgs);
|
|
702
694
|
}
|
|
703
|
-
|
|
704
695
|
var _perf;
|
|
705
696
|
function getPerformance() {
|
|
706
697
|
(!_perf || (_globalLazyTestHooks.lzy && !_perf.b)) && (_perf = _lazySafeGetInst("performance"));
|
|
@@ -713,9 +704,8 @@
|
|
|
713
704
|
}
|
|
714
705
|
return utcNow();
|
|
715
706
|
}
|
|
716
|
-
|
|
717
707
|
var ENDS_WITH = "endsWith";
|
|
718
|
-
var strEndsWith =
|
|
708
|
+
var strEndsWith = _unwrapFunction(ENDS_WITH, UNDEF_VALUE, polyStrEndsWith);
|
|
719
709
|
function polyStrEndsWith(value, searchString, length) {
|
|
720
710
|
if (!isString(value)) {
|
|
721
711
|
throwTypeError$1("'" + dumpObj(value) + "' is not a string");
|
|
@@ -726,9 +716,7 @@
|
|
|
726
716
|
var end = !isUndefined(length) && length < len ? length : len;
|
|
727
717
|
return strSubstring(value, end - chkLen, end) === searchValue;
|
|
728
718
|
}
|
|
729
|
-
|
|
730
719
|
var strIndexOf = _unwrapFunction(INDEX_OF);
|
|
731
|
-
|
|
732
720
|
function _createTrimFn(exp) {
|
|
733
721
|
return function _doTrim(value) {
|
|
734
722
|
if (isNullOrUndefined(value)) {
|
|
@@ -741,10 +729,8 @@
|
|
|
741
729
|
};
|
|
742
730
|
}
|
|
743
731
|
var polyStrTrim = _createTrimFn(/^\s+|(?=\s)\s+$/g);
|
|
744
|
-
|
|
745
732
|
var TRIM = "trim";
|
|
746
|
-
var strTrim =
|
|
747
|
-
|
|
733
|
+
var strTrim = _unwrapFunction(TRIM, UNDEF_VALUE, polyStrTrim);
|
|
748
734
|
function _createTimerHandler(startTimer, refreshFn, cancelFn) {
|
|
749
735
|
var ref = true;
|
|
750
736
|
var timerId = startTimer ? refreshFn(null) : null;
|
|
@@ -782,7 +768,6 @@
|
|
|
782
768
|
};
|
|
783
769
|
return timer;
|
|
784
770
|
}
|
|
785
|
-
|
|
786
771
|
function _createTimeoutWith(self, startTimer, overrideFn, theArgs) {
|
|
787
772
|
var isArr = isArray(overrideFn);
|
|
788
773
|
var len = isArr ? overrideFn.length : 0;
|
|
@@ -804,7 +789,6 @@
|
|
|
804
789
|
function scheduleTimeout(callback, timeout) {
|
|
805
790
|
return _createTimeoutWith(this, true, UNDEF_VALUE, _extractArgs(arguments, 0));
|
|
806
791
|
}
|
|
807
|
-
|
|
808
792
|
function scheduleInterval(callback, timeout) {
|
|
809
793
|
var self = this;
|
|
810
794
|
var theArguments = _extractArgs(arguments, 0);
|
|
@@ -1740,7 +1724,7 @@
|
|
|
1740
1724
|
}
|
|
1741
1725
|
|
|
1742
1726
|
var _objDefineProperty = ObjDefineProperty;
|
|
1743
|
-
var version = "3.0.0-beta.2302-
|
|
1727
|
+
var version = "3.0.0-beta.2302-06";
|
|
1744
1728
|
var instanceName = "." + newId(6);
|
|
1745
1729
|
var _dataUid = 0;
|
|
1746
1730
|
function _createAccessor(target, prop, value) {
|
|
@@ -5125,14 +5109,14 @@
|
|
|
5125
5109
|
return funcArgs.rslt;
|
|
5126
5110
|
};
|
|
5127
5111
|
}
|
|
5128
|
-
function _getOwner(target, name, checkPrototype) {
|
|
5112
|
+
function _getOwner(target, name, checkPrototype, checkParentProto) {
|
|
5129
5113
|
var owner = null;
|
|
5130
5114
|
if (target) {
|
|
5131
5115
|
if (objHasOwnProperty(target, name)) {
|
|
5132
5116
|
owner = target;
|
|
5133
5117
|
}
|
|
5134
5118
|
else if (checkPrototype) {
|
|
5135
|
-
owner = _getOwner(_getObjProto(target), name, false);
|
|
5119
|
+
owner = _getOwner(_getObjProto(target), name, checkParentProto, false);
|
|
5136
5120
|
}
|
|
5137
5121
|
}
|
|
5138
5122
|
return owner;
|
|
@@ -5179,10 +5163,10 @@
|
|
|
5179
5163
|
aiHook.h[_DYN_PUSH ](theHook);
|
|
5180
5164
|
return theHook;
|
|
5181
5165
|
}
|
|
5182
|
-
function InstrumentFunc(target, funcName, callbacks, checkPrototype) {
|
|
5166
|
+
function InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto) {
|
|
5183
5167
|
if (checkPrototype === void 0) { checkPrototype = true; }
|
|
5184
5168
|
if (target && funcName && callbacks) {
|
|
5185
|
-
var owner = _getOwner(target, funcName, checkPrototype);
|
|
5169
|
+
var owner = _getOwner(target, funcName, checkPrototype, checkParentProto);
|
|
5186
5170
|
if (owner) {
|
|
5187
5171
|
var fn = owner[funcName];
|
|
5188
5172
|
if (typeof fn === strShimFunction) {
|
|
@@ -5192,11 +5176,11 @@
|
|
|
5192
5176
|
}
|
|
5193
5177
|
return null;
|
|
5194
5178
|
}
|
|
5195
|
-
function InstrumentFuncs(target, funcNames, callbacks, checkPrototype) {
|
|
5179
|
+
function InstrumentFuncs(target, funcNames, callbacks, checkPrototype, checkParentProto) {
|
|
5196
5180
|
if (checkPrototype === void 0) { checkPrototype = true; }
|
|
5197
5181
|
var hooks = null;
|
|
5198
5182
|
_arrLoop(funcNames, function (funcName) {
|
|
5199
|
-
var hook = InstrumentFunc(target, funcName, callbacks, checkPrototype);
|
|
5183
|
+
var hook = InstrumentFunc(target, funcName, callbacks, checkPrototype, checkParentProto);
|
|
5200
5184
|
if (hook) {
|
|
5201
5185
|
if (!hooks) {
|
|
5202
5186
|
hooks = [];
|
|
@@ -5206,9 +5190,9 @@
|
|
|
5206
5190
|
});
|
|
5207
5191
|
return hooks;
|
|
5208
5192
|
}
|
|
5209
|
-
function InstrumentEvent(target, evtName, callbacks, checkPrototype) {
|
|
5193
|
+
function InstrumentEvent(target, evtName, callbacks, checkPrototype, checkParentProto) {
|
|
5210
5194
|
if (target && evtName && callbacks) {
|
|
5211
|
-
var owner = _getOwner(target, evtName, checkPrototype) || target;
|
|
5195
|
+
var owner = _getOwner(target, evtName, checkPrototype, checkParentProto) || target;
|
|
5212
5196
|
if (owner) {
|
|
5213
5197
|
return _createInstrumentHook(owner, evtName, owner[evtName], callbacks);
|
|
5214
5198
|
}
|