@microsoft/applicationinsights-web-basic 3.0.0-beta.2302-03 → 3.0.0-beta.2302-05
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/aib.2.js +236 -153
- package/browser/aib.2.js.map +1 -1
- package/browser/aib.2.min.js +2 -2
- package/browser/aib.2.min.js.map +1 -1
- package/browser/aib.3.0.0-beta.2302-05.integrity.json +26 -0
- package/browser/{aib.3.0.0-beta.2302-03.js → aib.3.0.0-beta.2302-05.js} +237 -154
- package/browser/aib.3.0.0-beta.2302-05.js.map +1 -0
- package/browser/aib.3.0.0-beta.2302-05.min.js +6 -0
- package/browser/aib.3.0.0-beta.2302-05.min.js.map +1 -0
- package/dist/applicationinsights-web-basic.api.json +1 -1
- package/dist/applicationinsights-web-basic.d.ts +25 -4
- package/dist/applicationinsights-web-basic.js +236 -153
- package/dist/applicationinsights-web-basic.js.map +1 -1
- package/dist/applicationinsights-web-basic.min.js +2 -2
- package/dist/applicationinsights-web-basic.min.js.map +1 -1
- package/dist/applicationinsights-web-basic.rollup.d.ts +25 -4
- package/dist-esm/__DynamicConstants.js +1 -1
- package/dist-esm/index.js +3 -3
- package/dist-esm/index.js.map +1 -1
- package/package.json +5 -5
- package/src/index.ts +2 -2
- package/types/tsdoc-metadata.json +1 -1
- package/browser/aib.3.0.0-beta.2302-03.integrity.json +0 -26
- package/browser/aib.3.0.0-beta.2302-03.js.map +0 -1
- package/browser/aib.3.0.0-beta.2302-03.min.js +0 -6
- package/browser/aib.3.0.0-beta.2302-03.min.js.map +0 -1
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft.ApplicationInsights, 3.0.0-beta.2302-
|
|
2
|
+
* Microsoft.ApplicationInsights, 3.0.0-beta.2302-05
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -1117,7 +1117,7 @@ declare namespace ApplicationInsights {
|
|
|
1117
1117
|
/**
|
|
1118
1118
|
* The default values with a check function
|
|
1119
1119
|
*/
|
|
1120
|
-
interface IConfigDefaultCheck<T, V, C
|
|
1120
|
+
interface IConfigDefaultCheck<T, V, C = IConfiguration> {
|
|
1121
1121
|
/**
|
|
1122
1122
|
* Callback function to check if the user-supplied value is valid, if not the default will be applied
|
|
1123
1123
|
*/
|
|
@@ -1129,7 +1129,7 @@ declare namespace ApplicationInsights {
|
|
|
1129
1129
|
/**
|
|
1130
1130
|
* The default value to apply if the user-supplied value is not valid
|
|
1131
1131
|
*/
|
|
1132
|
-
v?: V
|
|
1132
|
+
v?: V | IConfigDefaults<V, T>;
|
|
1133
1133
|
/**
|
|
1134
1134
|
* The default fallback key if the main key is not present, this is the key value from the config
|
|
1135
1135
|
*/
|
|
@@ -1139,13 +1139,34 @@ declare namespace ApplicationInsights {
|
|
|
1139
1139
|
* therefore `null`; `""` are considered to be valid values.
|
|
1140
1140
|
*/
|
|
1141
1141
|
dfVal?: (value: any) => boolean;
|
|
1142
|
+
/**
|
|
1143
|
+
* Specify that any provided value should have the default value(s) merged into the value rather than
|
|
1144
|
+
* just using either the default of user provided values. Mergeed objects will automatically be marked
|
|
1145
|
+
* as referenced.
|
|
1146
|
+
*/
|
|
1147
|
+
mrg?: boolean;
|
|
1148
|
+
/**
|
|
1149
|
+
* Set this field of the target as referenced, which will cause any object or array instance
|
|
1150
|
+
* to be updated in-place rather than being entirely replaced. All other values will continue to be replaced.
|
|
1151
|
+
* This is required for nested default objects to avoid multiple repetitive updates to listeners
|
|
1152
|
+
* @returns The referenced properties current value
|
|
1153
|
+
*/
|
|
1154
|
+
ref?: boolean;
|
|
1155
|
+
/**
|
|
1156
|
+
* Set this field of the target as read-only, which will block this single named property from
|
|
1157
|
+
* ever being changed for the target instance.
|
|
1158
|
+
* This does NOT freeze or seal the instance, it just stops the direct re-assignment of the named property,
|
|
1159
|
+
* if the value is a non-primitive (ie. an object or array) it's properties will still be mutable.
|
|
1160
|
+
* @returns The referenced properties current value
|
|
1161
|
+
*/
|
|
1162
|
+
rdOnly?: boolean;
|
|
1142
1163
|
}
|
|
1143
1164
|
|
|
1144
1165
|
/**
|
|
1145
1166
|
* The Type definition to define default values to be applied to the config
|
|
1146
1167
|
* The value may be either the direct value or a ConfigDefaultCheck definition
|
|
1147
1168
|
*/
|
|
1148
|
-
type IConfigDefaults<T, C
|
|
1169
|
+
type IConfigDefaults<T, C = IConfiguration> = {
|
|
1149
1170
|
[key in keyof T]: T[key] | IConfigDefaultCheck<T, T[key], C>;
|
|
1150
1171
|
};
|
|
1151
1172
|
|