@microsoft/applicationinsights-web-basic 3.0.0-beta.2208-03 → 3.0.0-beta.2208-16

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.
Files changed (32) hide show
  1. package/README.md +8 -1
  2. package/browser/aib.2.js +1153 -1328
  3. package/browser/aib.2.js.map +1 -1
  4. package/browser/aib.2.min.js +2 -2
  5. package/browser/aib.2.min.js.map +1 -1
  6. package/browser/aib.3.0.0-beta.2208-16.integrity.json +26 -0
  7. package/browser/{aib.3.0.0-beta.2208-03.js → aib.3.0.0-beta.2208-16.js} +1154 -1329
  8. package/browser/aib.3.0.0-beta.2208-16.js.map +1 -0
  9. package/browser/aib.3.0.0-beta.2208-16.min.js +6 -0
  10. package/browser/aib.3.0.0-beta.2208-16.min.js.map +1 -0
  11. package/dist/applicationinsights-web-basic.api.json +75 -284
  12. package/dist/applicationinsights-web-basic.api.md +9 -11
  13. package/dist/applicationinsights-web-basic.d.ts +16 -212
  14. package/dist/applicationinsights-web-basic.js +1153 -1328
  15. package/dist/applicationinsights-web-basic.js.map +1 -1
  16. package/dist/applicationinsights-web-basic.min.js +2 -2
  17. package/dist/applicationinsights-web-basic.min.js.map +1 -1
  18. package/dist/applicationinsights-web-basic.rollup.d.ts +16 -212
  19. package/dist-esm/__DynamicConstants.js +4 -4
  20. package/dist-esm/__DynamicConstants.js.map +1 -1
  21. package/dist-esm/index.js +5 -5
  22. package/dist-esm/index.js.map +1 -1
  23. package/package.json +6 -5
  24. package/src/__DynamicConstants.ts +3 -3
  25. package/src/index.ts +6 -7
  26. package/tsconfig.json +1 -1
  27. package/types/index.d.ts +1 -1
  28. package/types/tsdoc-metadata.json +1 -1
  29. package/browser/aib.3.0.0-beta.2208-03.integrity.json +0 -26
  30. package/browser/aib.3.0.0-beta.2208-03.js.map +0 -1
  31. package/browser/aib.3.0.0-beta.2208-03.min.js +0 -6
  32. package/browser/aib.3.0.0-beta.2208-03.min.js.map +0 -1
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "metadata": {
3
3
  "toolPackage": "@microsoft/api-extractor",
4
- "toolVersion": "7.28.7",
4
+ "toolVersion": "7.29.2",
5
5
  "schemaVersion": 1009,
6
6
  "oldestForwardsCompatibleVersion": 1001,
7
7
  "tsdocConfig": {
@@ -2017,11 +2017,7 @@
2017
2017
  },
2018
2018
  {
2019
2019
  "kind": "Content",
2020
- "text": " "
2021
- },
2022
- {
2023
- "kind": "Content",
2024
- "text": "implements "
2020
+ "text": " implements "
2025
2021
  },
2026
2022
  {
2027
2023
  "kind": "Reference",
@@ -2210,8 +2206,8 @@
2210
2206
  },
2211
2207
  "implementsTokenRanges": [
2212
2208
  {
2213
- "startIndex": 4,
2214
- "endIndex": 5
2209
+ "startIndex": 3,
2210
+ "endIndex": 4
2215
2211
  }
2216
2212
  ]
2217
2213
  },
@@ -2287,11 +2283,7 @@
2287
2283
  },
2288
2284
  {
2289
2285
  "kind": "Content",
2290
- "text": " "
2291
- },
2292
- {
2293
- "kind": "Content",
2294
- "text": "= "
2286
+ "text": " = "
2295
2287
  },
2296
2288
  {
2297
2289
  "kind": "Reference",
@@ -2351,15 +2343,15 @@
2351
2343
  "endIndex": 2
2352
2344
  },
2353
2345
  "defaultTypeTokenRange": {
2354
- "startIndex": 4,
2355
- "endIndex": 5
2346
+ "startIndex": 3,
2347
+ "endIndex": 4
2356
2348
  }
2357
2349
  }
2358
2350
  ],
2359
2351
  "isStatic": false,
2360
2352
  "returnTypeTokenRange": {
2361
- "startIndex": 14,
2362
- "endIndex": 15
2353
+ "startIndex": 13,
2354
+ "endIndex": 14
2363
2355
  },
2364
2356
  "releaseTag": "Public",
2365
2357
  "isProtected": false,
@@ -2368,32 +2360,32 @@
2368
2360
  {
2369
2361
  "parameterName": "plugin",
2370
2362
  "parameterTypeTokenRange": {
2371
- "startIndex": 6,
2372
- "endIndex": 7
2363
+ "startIndex": 5,
2364
+ "endIndex": 6
2373
2365
  },
2374
2366
  "isOptional": false
2375
2367
  },
2376
2368
  {
2377
2369
  "parameterName": "replaceExisting",
2378
2370
  "parameterTypeTokenRange": {
2379
- "startIndex": 8,
2380
- "endIndex": 9
2371
+ "startIndex": 7,
2372
+ "endIndex": 8
2381
2373
  },
2382
2374
  "isOptional": false
2383
2375
  },
2384
2376
  {
2385
2377
  "parameterName": "doAsync",
2386
2378
  "parameterTypeTokenRange": {
2387
- "startIndex": 10,
2388
- "endIndex": 11
2379
+ "startIndex": 9,
2380
+ "endIndex": 10
2389
2381
  },
2390
2382
  "isOptional": false
2391
2383
  },
2392
2384
  {
2393
2385
  "parameterName": "addCb",
2394
2386
  "parameterTypeTokenRange": {
2395
- "startIndex": 12,
2396
- "endIndex": 13
2387
+ "startIndex": 11,
2388
+ "endIndex": 12
2397
2389
  },
2398
2390
  "isOptional": true
2399
2391
  }
@@ -2581,11 +2573,7 @@
2581
2573
  },
2582
2574
  {
2583
2575
  "kind": "Content",
2584
- "text": " "
2585
- },
2586
- {
2587
- "kind": "Content",
2588
- "text": "= "
2576
+ "text": " = "
2589
2577
  },
2590
2578
  {
2591
2579
  "kind": "Reference",
@@ -2626,15 +2614,15 @@
2626
2614
  "endIndex": 2
2627
2615
  },
2628
2616
  "defaultTypeTokenRange": {
2629
- "startIndex": 4,
2630
- "endIndex": 5
2617
+ "startIndex": 3,
2618
+ "endIndex": 4
2631
2619
  }
2632
2620
  }
2633
2621
  ],
2634
2622
  "isStatic": false,
2635
2623
  "returnTypeTokenRange": {
2636
- "startIndex": 8,
2637
- "endIndex": 10
2624
+ "startIndex": 7,
2625
+ "endIndex": 9
2638
2626
  },
2639
2627
  "releaseTag": "Public",
2640
2628
  "isProtected": false,
@@ -2643,8 +2631,8 @@
2643
2631
  {
2644
2632
  "parameterName": "pluginIdentifier",
2645
2633
  "parameterTypeTokenRange": {
2646
- "startIndex": 6,
2647
- "endIndex": 7
2634
+ "startIndex": 5,
2635
+ "endIndex": 6
2648
2636
  },
2649
2637
  "isOptional": false
2650
2638
  }
@@ -2886,126 +2874,6 @@
2886
2874
  ],
2887
2875
  "implementsTokenRanges": []
2888
2876
  },
2889
- {
2890
- "kind": "Function",
2891
- "canonicalReference": "@microsoft/applicationinsights-web-basic!arrForEach:function(1)",
2892
- "docComment": "/**\n * Performs the specified action for each element in an array. This helper exists to avoid adding a polyfil for older browsers that do not define Array.prototype.xxxx (eg. ES3 only, IE8) just in case any page checks for presence/absence of the prototype implementation. Note: For consistency this will not use the Array.prototype.xxxx implementation if it exists as this would cause a testing requirement to test with and without the implementations\n *\n * @param callbackfn - A function that accepts up to three arguments. forEach calls the callbackfn function one time for each element in the array. It can return -1 to break out of the loop\n *\n * @param thisArg - [Optional] An object to which the this keyword can refer in the callbackfn function. If thisArg is omitted, undefined is used as the this value.\n */\n",
2893
- "excerptTokens": [
2894
- {
2895
- "kind": "Content",
2896
- "text": "export declare function arrForEach<T = "
2897
- },
2898
- {
2899
- "kind": "Content",
2900
- "text": "any"
2901
- },
2902
- {
2903
- "kind": "Content",
2904
- "text": ">(arr: "
2905
- },
2906
- {
2907
- "kind": "Content",
2908
- "text": "T[]"
2909
- },
2910
- {
2911
- "kind": "Content",
2912
- "text": ", callbackfn: "
2913
- },
2914
- {
2915
- "kind": "Content",
2916
- "text": "(value: T, index?: number, array?: T[]) => undefined | void | number"
2917
- },
2918
- {
2919
- "kind": "Content",
2920
- "text": ", thisArg?: "
2921
- },
2922
- {
2923
- "kind": "Content",
2924
- "text": "any"
2925
- },
2926
- {
2927
- "kind": "Content",
2928
- "text": "): "
2929
- },
2930
- {
2931
- "kind": "Content",
2932
- "text": "void"
2933
- },
2934
- {
2935
- "kind": "Content",
2936
- "text": ";"
2937
- }
2938
- ],
2939
- "returnTypeTokenRange": {
2940
- "startIndex": 9,
2941
- "endIndex": 10
2942
- },
2943
- "releaseTag": "Public",
2944
- "overloadIndex": 1,
2945
- "parameters": [
2946
- {
2947
- "parameterName": "arr",
2948
- "parameterTypeTokenRange": {
2949
- "startIndex": 3,
2950
- "endIndex": 4
2951
- },
2952
- "isOptional": false
2953
- },
2954
- {
2955
- "parameterName": "callbackfn",
2956
- "parameterTypeTokenRange": {
2957
- "startIndex": 5,
2958
- "endIndex": 6
2959
- },
2960
- "isOptional": false
2961
- },
2962
- {
2963
- "parameterName": "thisArg",
2964
- "parameterTypeTokenRange": {
2965
- "startIndex": 7,
2966
- "endIndex": 8
2967
- },
2968
- "isOptional": true
2969
- }
2970
- ],
2971
- "typeParameters": [
2972
- {
2973
- "typeParameterName": "T",
2974
- "constraintTokenRange": {
2975
- "startIndex": 0,
2976
- "endIndex": 0
2977
- },
2978
- "defaultTypeTokenRange": {
2979
- "startIndex": 1,
2980
- "endIndex": 2
2981
- }
2982
- }
2983
- ],
2984
- "name": "arrForEach"
2985
- },
2986
- {
2987
- "kind": "Variable",
2988
- "canonicalReference": "@microsoft/applicationinsights-web-basic!CoreUtils:var",
2989
- "docComment": "/**\n * Provides a collection of utility functions, included for backward compatibility with previous releases.\n *\n * @deprecated\n *\n * Marking this instance as deprecated in favor of direct usage of the helper functions as direct usage provides better tree-shaking and minification by avoiding the inclusion of the unused items in your resulting code.\n */\n",
2990
- "excerptTokens": [
2991
- {
2992
- "kind": "Content",
2993
- "text": "CoreUtils: "
2994
- },
2995
- {
2996
- "kind": "Reference",
2997
- "text": "ICoreUtils",
2998
- "canonicalReference": "@microsoft/applicationinsights-web-basic!ICoreUtils:interface"
2999
- }
3000
- ],
3001
- "isReadonly": true,
3002
- "releaseTag": "Public",
3003
- "name": "CoreUtils",
3004
- "variableTypeTokenRange": {
3005
- "startIndex": 1,
3006
- "endIndex": 2
3007
- }
3008
- },
3009
2877
  {
3010
2878
  "kind": "Enum",
3011
2879
  "canonicalReference": "@microsoft/applicationinsights-web-basic!eSeverityLevel:enum",
@@ -3212,11 +3080,7 @@
3212
3080
  },
3213
3081
  {
3214
3082
  "kind": "Content",
3215
- "text": " "
3216
- },
3217
- {
3218
- "kind": "Content",
3219
- "text": "= "
3083
+ "text": " = "
3220
3084
  },
3221
3085
  {
3222
3086
  "kind": "Reference",
@@ -3270,8 +3134,8 @@
3270
3134
  ],
3271
3135
  "isOptional": false,
3272
3136
  "returnTypeTokenRange": {
3273
- "startIndex": 14,
3274
- "endIndex": 15
3137
+ "startIndex": 13,
3138
+ "endIndex": 14
3275
3139
  },
3276
3140
  "releaseTag": "Public",
3277
3141
  "overloadIndex": 1,
@@ -3279,32 +3143,32 @@
3279
3143
  {
3280
3144
  "parameterName": "plugin",
3281
3145
  "parameterTypeTokenRange": {
3282
- "startIndex": 6,
3283
- "endIndex": 7
3146
+ "startIndex": 5,
3147
+ "endIndex": 6
3284
3148
  },
3285
3149
  "isOptional": false
3286
3150
  },
3287
3151
  {
3288
3152
  "parameterName": "replaceExisting",
3289
3153
  "parameterTypeTokenRange": {
3290
- "startIndex": 8,
3291
- "endIndex": 9
3154
+ "startIndex": 7,
3155
+ "endIndex": 8
3292
3156
  },
3293
3157
  "isOptional": true
3294
3158
  },
3295
3159
  {
3296
3160
  "parameterName": "doAsync",
3297
3161
  "parameterTypeTokenRange": {
3298
- "startIndex": 10,
3299
- "endIndex": 11
3162
+ "startIndex": 9,
3163
+ "endIndex": 10
3300
3164
  },
3301
3165
  "isOptional": true
3302
3166
  },
3303
3167
  {
3304
3168
  "parameterName": "addCb",
3305
3169
  "parameterTypeTokenRange": {
3306
- "startIndex": 12,
3307
- "endIndex": 13
3170
+ "startIndex": 11,
3171
+ "endIndex": 12
3308
3172
  },
3309
3173
  "isOptional": true
3310
3174
  }
@@ -3317,8 +3181,8 @@
3317
3181
  "endIndex": 2
3318
3182
  },
3319
3183
  "defaultTypeTokenRange": {
3320
- "startIndex": 4,
3321
- "endIndex": 5
3184
+ "startIndex": 3,
3185
+ "endIndex": 4
3322
3186
  }
3323
3187
  }
3324
3188
  ],
@@ -3645,11 +3509,7 @@
3645
3509
  },
3646
3510
  {
3647
3511
  "kind": "Content",
3648
- "text": " "
3649
- },
3650
- {
3651
- "kind": "Content",
3652
- "text": "= "
3512
+ "text": " = "
3653
3513
  },
3654
3514
  {
3655
3515
  "kind": "Reference",
@@ -3684,8 +3544,8 @@
3684
3544
  ],
3685
3545
  "isOptional": false,
3686
3546
  "returnTypeTokenRange": {
3687
- "startIndex": 8,
3688
- "endIndex": 10
3547
+ "startIndex": 7,
3548
+ "endIndex": 9
3689
3549
  },
3690
3550
  "releaseTag": "Public",
3691
3551
  "overloadIndex": 1,
@@ -3693,8 +3553,8 @@
3693
3553
  {
3694
3554
  "parameterName": "pluginIdentifier",
3695
3555
  "parameterTypeTokenRange": {
3696
- "startIndex": 6,
3697
- "endIndex": 7
3556
+ "startIndex": 5,
3557
+ "endIndex": 6
3698
3558
  },
3699
3559
  "isOptional": false
3700
3560
  }
@@ -3707,8 +3567,8 @@
3707
3567
  "endIndex": 2
3708
3568
  },
3709
3569
  "defaultTypeTokenRange": {
3710
- "startIndex": 4,
3711
- "endIndex": 5
3570
+ "startIndex": 3,
3571
+ "endIndex": 4
3712
3572
  }
3713
3573
  }
3714
3574
  ],
@@ -6537,6 +6397,34 @@
6537
6397
  "name": "IPlugin",
6538
6398
  "preserveMemberOrder": false,
6539
6399
  "members": [
6400
+ {
6401
+ "kind": "PropertySignature",
6402
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!IPlugin#core:member",
6403
+ "docComment": "/**\n * The App Insights core to use for backward compatibility. Therefore the interface will be able to access the core without needing to cast to \"any\". [optional] any 3rd party plugins which are already implementing this interface don't fail to compile.\n */\n",
6404
+ "excerptTokens": [
6405
+ {
6406
+ "kind": "Content",
6407
+ "text": "core?: "
6408
+ },
6409
+ {
6410
+ "kind": "Reference",
6411
+ "text": "IAppInsightsCore",
6412
+ "canonicalReference": "@microsoft/applicationinsights-web-basic!IAppInsightsCore:interface"
6413
+ },
6414
+ {
6415
+ "kind": "Content",
6416
+ "text": ";"
6417
+ }
6418
+ ],
6419
+ "isReadonly": false,
6420
+ "isOptional": true,
6421
+ "releaseTag": "Public",
6422
+ "name": "core",
6423
+ "propertyTypeTokenRange": {
6424
+ "startIndex": 1,
6425
+ "endIndex": 2
6426
+ }
6427
+ },
6540
6428
  {
6541
6429
  "kind": "PropertySignature",
6542
6430
  "canonicalReference": "@microsoft/applicationinsights-web-basic!IPlugin#identifier:member",
@@ -6729,55 +6617,6 @@
6729
6617
  ],
6730
6618
  "extendsTokenRanges": []
6731
6619
  },
6732
- {
6733
- "kind": "Function",
6734
- "canonicalReference": "@microsoft/applicationinsights-web-basic!isNullOrUndefined:function(1)",
6735
- "docComment": "",
6736
- "excerptTokens": [
6737
- {
6738
- "kind": "Content",
6739
- "text": "export declare function isNullOrUndefined(value: "
6740
- },
6741
- {
6742
- "kind": "Content",
6743
- "text": "any"
6744
- },
6745
- {
6746
- "kind": "Content",
6747
- "text": "): "
6748
- },
6749
- {
6750
- "kind": "Reference",
6751
- "text": "value",
6752
- "canonicalReference": "@microsoft/applicationinsights-web-basic!~value"
6753
- },
6754
- {
6755
- "kind": "Content",
6756
- "text": " is null | undefined"
6757
- },
6758
- {
6759
- "kind": "Content",
6760
- "text": ";"
6761
- }
6762
- ],
6763
- "returnTypeTokenRange": {
6764
- "startIndex": 3,
6765
- "endIndex": 5
6766
- },
6767
- "releaseTag": "Public",
6768
- "overloadIndex": 1,
6769
- "parameters": [
6770
- {
6771
- "parameterName": "value",
6772
- "parameterTypeTokenRange": {
6773
- "startIndex": 1,
6774
- "endIndex": 2
6775
- },
6776
- "isOptional": false
6777
- }
6778
- ],
6779
- "name": "isNullOrUndefined"
6780
- },
6781
6620
  {
6782
6621
  "kind": "Interface",
6783
6622
  "canonicalReference": "@microsoft/applicationinsights-web-basic!ITelemetryItem:interface",
@@ -7414,11 +7253,7 @@
7414
7253
  },
7415
7254
  {
7416
7255
  "kind": "Content",
7417
- "text": " "
7418
- },
7419
- {
7420
- "kind": "Content",
7421
- "text": "implements "
7256
+ "text": " implements "
7422
7257
  },
7423
7258
  {
7424
7259
  "kind": "Reference",
@@ -8553,8 +8388,8 @@
8553
8388
  },
8554
8389
  "implementsTokenRanges": [
8555
8390
  {
8556
- "startIndex": 4,
8557
- "endIndex": 5
8391
+ "startIndex": 3,
8392
+ "endIndex": 4
8558
8393
  }
8559
8394
  ]
8560
8395
  },
@@ -8853,50 +8688,6 @@
8853
8688
  "startIndex": 1,
8854
8689
  "endIndex": 6
8855
8690
  }
8856
- },
8857
- {
8858
- "kind": "Function",
8859
- "canonicalReference": "@microsoft/applicationinsights-web-basic!throwError:function(1)",
8860
- "docComment": "",
8861
- "excerptTokens": [
8862
- {
8863
- "kind": "Content",
8864
- "text": "export declare function throwError(message: "
8865
- },
8866
- {
8867
- "kind": "Content",
8868
- "text": "string"
8869
- },
8870
- {
8871
- "kind": "Content",
8872
- "text": "): "
8873
- },
8874
- {
8875
- "kind": "Content",
8876
- "text": "never"
8877
- },
8878
- {
8879
- "kind": "Content",
8880
- "text": ";"
8881
- }
8882
- ],
8883
- "returnTypeTokenRange": {
8884
- "startIndex": 3,
8885
- "endIndex": 4
8886
- },
8887
- "releaseTag": "Public",
8888
- "overloadIndex": 1,
8889
- "parameters": [
8890
- {
8891
- "parameterName": "message",
8892
- "parameterTypeTokenRange": {
8893
- "startIndex": 1,
8894
- "endIndex": 2
8895
- },
8896
- "isOptional": false
8897
- }
8898
- ],
8899
- "name": "throwError"
8900
8691
  }
8901
8692
  ]
8902
8693
  }
@@ -4,6 +4,11 @@
4
4
 
5
5
  ```ts
6
6
 
7
+ import { arrForEach } from '@nevware21/ts-utils';
8
+ import { EnumCls } from '@nevware21/ts-utils';
9
+ import { isNullOrUndefined } from '@nevware21/ts-utils';
10
+ import { throwError } from '@nevware21/ts-utils';
11
+
7
12
  // Warning: (ae-forgotten-export) The symbol "BaseCore" needs to be exported by the entry point index.d.ts
8
13
  //
9
14
  // @public (undocumented)
@@ -42,13 +47,7 @@ export class ApplicationInsights {
42
47
  unload(isAsync?: boolean, unloadComplete?: () => void): void;
43
48
  }
44
49
 
45
- // @public
46
- export function arrForEach<T = any>(arr: T[], callbackfn: (value: T, index?: number, array?: T[]) => undefined | void | number, thisArg?: any): void;
47
-
48
- // Warning: (ae-forgotten-export) The symbol "ICoreUtils" needs to be exported by the entry point index.d.ts
49
- //
50
- // @public @deprecated
51
- export const CoreUtils: ICoreUtils;
50
+ export { arrForEach }
52
51
 
53
52
  // @public (undocumented)
54
53
  export const enum _eInternalMessageId {
@@ -415,6 +414,7 @@ export interface IPageViewTelemetry extends IPartC {
415
414
 
416
415
  // @public (undocumented)
417
416
  export interface IPlugin {
417
+ core?: IAppInsightsCore;
418
418
  readonly identifier: string;
419
419
  // Warning: (ae-forgotten-export) The symbol "ITelemetryPluginChain" needs to be exported by the entry point index.d.ts
420
420
  initialize: (config: IConfiguration, core: IAppInsightsCore, extensions: IPlugin[], pluginChain?: ITelemetryPluginChain) => void;
@@ -424,8 +424,7 @@ export interface IPlugin {
424
424
  readonly version?: string;
425
425
  }
426
426
 
427
- // @public (undocumented)
428
- export function isNullOrUndefined(value: any): value is null | undefined;
427
+ export { isNullOrUndefined }
429
428
 
430
429
  // @public
431
430
  export interface ITelemetryItem {
@@ -528,8 +527,7 @@ export const SeverityLevel: EnumValue<typeof eSeverityLevel>;
528
527
  // @public (undocumented)
529
528
  export type SeverityLevel = number | eSeverityLevel;
530
529
 
531
- // @public (undocumented)
532
- export function throwError(message: string): never;
530
+ export { throwError }
533
531
 
534
532
  // (No @packageDocumentation comment for this package)
535
533