@microsoft/applicationinsights-cfgsync-js 0.0.3-nightly3.2309-09 → 0.0.3-nightly3.2309-11
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 +53 -0
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.js → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.js} +3 -3
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.js.map} +1 -1
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.min.js → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.min.js} +3 -3
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.cjs.min.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.cjs.min.js.map} +1 -1
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.js → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.js} +5 -5
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.js.map} +1 -1
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.min.js → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.min.js} +3 -3
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.gbl.min.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.gbl.min.js.map} +1 -1
- package/browser/es5/ai.cfgsync.0.0.3-nightly3.2309-11.integrity.json +66 -0
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.js → ai.cfgsync.0.0.3-nightly3.2309-11.js} +5 -5
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.js.map} +1 -1
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.min.js → ai.cfgsync.0.0.3-nightly3.2309-11.min.js} +3 -3
- package/browser/es5/{ai.cfgsync.0.0.3-nightly3.2309-09.min.js.map → ai.cfgsync.0.0.3-nightly3.2309-11.min.js.map} +1 -1
- package/browser/es5/ai.cfgsync.0.cjs.js +2 -2
- package/browser/es5/ai.cfgsync.0.cjs.js.map +1 -1
- package/browser/es5/ai.cfgsync.0.cjs.min.js +2 -2
- package/browser/es5/ai.cfgsync.0.cjs.min.js.map +1 -1
- package/browser/es5/ai.cfgsync.0.gbl.js +4 -4
- package/browser/es5/ai.cfgsync.0.gbl.js.map +1 -1
- package/browser/es5/ai.cfgsync.0.gbl.min.js +2 -2
- package/browser/es5/ai.cfgsync.0.gbl.min.js.map +1 -1
- package/browser/es5/ai.cfgsync.0.integrity.json +25 -25
- package/browser/es5/ai.cfgsync.0.js +4 -4
- package/browser/es5/ai.cfgsync.0.js.map +1 -1
- package/browser/es5/ai.cfgsync.0.min.js +2 -2
- package/browser/es5/ai.cfgsync.0.min.js.map +1 -1
- package/dist/es5/applicationinsights-cfgsync-js.js +2 -2
- package/dist/es5/applicationinsights-cfgsync-js.js.map +1 -1
- package/dist/es5/applicationinsights-cfgsync-js.min.js +2 -2
- package/dist/es5/applicationinsights-cfgsync-js.min.js.map +1 -1
- package/dist-es5/CfgSyncHelperFuncs.js +1 -1
- package/dist-es5/CfgSyncPlugin.js +1 -1
- package/dist-es5/Interfaces/ICfgSyncCdnConfig.js +1 -1
- package/dist-es5/Interfaces/ICfgSyncConfig.js +1 -1
- package/dist-es5/Interfaces/ICfgSyncPlugin.js +1 -1
- package/dist-es5/__DynamicConstants.js +1 -1
- package/dist-es5/applicationinsights-cfgsync-js.js +1 -1
- package/package.json +4 -4
- package/types/applicationinsights-cfgsync-js.d.ts +19 -16
- package/types/applicationinsights-cfgsync-js.namespaced.d.ts +19 -16
- package/browser/es5/ai.cfgsync.0.0.3-nightly3.2309-09.integrity.json +0 -66
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 0.0.3-nightly3.2309-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 0.0.3-nightly3.2309-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { isNullOrUndefined, isObject, objExtend, objForEachKey, setValueByKey } from "@nevware21/ts-utils";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Application Insights JavaScript SDK - Properties Plugin, 0.0.3-nightly3.2309-
|
|
2
|
+
* Application Insights JavaScript SDK - Properties Plugin, 0.0.3-nightly3.2309-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*/
|
|
5
5
|
import { CfgSyncPlugin } from "./CfgSyncPlugin";
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@microsoft/applicationinsights-cfgsync-js",
|
|
3
|
-
"version": "0.0.3-nightly3.2309-
|
|
4
|
-
"description": "Microsoft Application Insights CfgSync
|
|
3
|
+
"version": "0.0.3-nightly3.2309-11",
|
|
4
|
+
"description": "Microsoft Application Insights CfgSync Plugin",
|
|
5
5
|
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
6
6
|
"author": "Microsoft Application Insights Team",
|
|
7
7
|
"main": "dist/es5/applicationinsights-cfgsync-js.js",
|
|
@@ -55,8 +55,8 @@
|
|
|
55
55
|
"dependencies": {
|
|
56
56
|
"@microsoft/dynamicproto-js": "^2.0.2",
|
|
57
57
|
"@microsoft/applicationinsights-shims": "3.0.1",
|
|
58
|
-
"@microsoft/applicationinsights-core-js": "3.0.4-nightly3.2309-
|
|
59
|
-
"@microsoft/applicationinsights-common": "3.0.4-nightly3.2309-
|
|
58
|
+
"@microsoft/applicationinsights-core-js": "3.0.4-nightly3.2309-11",
|
|
59
|
+
"@microsoft/applicationinsights-common": "3.0.4-nightly3.2309-11",
|
|
60
60
|
"@nevware21/ts-utils": ">= 0.10.1 < 2.x",
|
|
61
61
|
"@nevware21/ts-async": ">= 0.3.0 < 2.x"
|
|
62
62
|
},
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights idsync plugin, 0.0.3-nightly3.2309-
|
|
2
|
+
* Microsoft Application Insights idsync plugin, 0.0.3-nightly3.2309-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -62,46 +62,49 @@ export declare class CfgSyncPlugin extends BaseTelemetryPlugin implements ICfgSy
|
|
|
62
62
|
export declare interface ICfgSyncConfig {
|
|
63
63
|
/**
|
|
64
64
|
* Identifies whether instance should receive or broadcast config changes
|
|
65
|
-
*
|
|
65
|
+
* @default Broadcast
|
|
66
66
|
*/
|
|
67
67
|
syncMode?: ICfgSyncMode;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
69
|
+
* Event name for sending or listening to configuration change details
|
|
70
|
+
* @default ai_cfgsync
|
|
71
71
|
*/
|
|
72
72
|
customEvtName?: string;
|
|
73
73
|
/**
|
|
74
|
-
*
|
|
75
|
-
*
|
|
76
|
-
* If set, any core config changes will be ignored.
|
|
74
|
+
* CDN endpoint for fetching configuration. If cfgUrl is defined, instance will NOT listen to core configuration changes.
|
|
75
|
+
* @default null
|
|
77
76
|
*/
|
|
78
77
|
cfgUrl?: string;
|
|
79
78
|
/**
|
|
80
|
-
*
|
|
81
|
-
*
|
|
79
|
+
* Determines if fetching the CDN endpoint should be blocked or not.
|
|
80
|
+
* @default false
|
|
82
81
|
*/
|
|
83
82
|
blkCdnCfg?: boolean;
|
|
84
83
|
/**
|
|
85
|
-
*
|
|
84
|
+
* Overrides callback function to handle event details when changes are received via event listener.
|
|
85
|
+
* @default null
|
|
86
86
|
*/
|
|
87
87
|
onCfgChangeReceive?: (event?: ICfgSyncEvent) => void;
|
|
88
88
|
/**
|
|
89
|
-
* Overrides sync() function to broadcast changes
|
|
89
|
+
* Overrides sync() function to broadcast changes.\
|
|
90
|
+
* @default null
|
|
90
91
|
*/
|
|
91
92
|
overrideSyncFn?: (config?: IConfiguration & IConfig, customDetails?: any) => boolean;
|
|
92
93
|
/**
|
|
93
|
-
* Overrides fetch function to get config from cfgUrl.
|
|
94
|
+
* Overrides fetch function to get config from cfgUrl when cfgUrl is defined.
|
|
95
|
+
* @default null
|
|
94
96
|
*/
|
|
95
97
|
overrideFetchFn?: SendGetFunction;
|
|
96
98
|
/**
|
|
97
|
-
*
|
|
98
|
-
*
|
|
99
|
+
* When current instance is set with syncMode: `Receive`, config fields under nonOverrideConfigs will NOT be changed by any confif details sent out from other instances.
|
|
100
|
+
* @default {instrumentationKey:true,connectionString:true,endpointUrl:true}
|
|
99
101
|
*/
|
|
100
102
|
nonOverrideConfigs?: NonOverrideCfg;
|
|
101
103
|
/**
|
|
102
|
-
* Identifies time interval (in
|
|
104
|
+
* Identifies the time interval (in milliseconds) for fetching config details from cfgUrl when cfgUrl is defined.
|
|
103
105
|
* Default to 30 mins, 30*60*1000ms.
|
|
104
|
-
* If set to 0, fetch will only be called once during initialization.
|
|
106
|
+
* If set to 0, the fetch operation will only be called once during initialization.
|
|
107
|
+
* @default 30mins (30*60*1000ms)
|
|
105
108
|
*/
|
|
106
109
|
scheduleFetchTimeout?: number;
|
|
107
110
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Microsoft Application Insights idsync plugin, 0.0.3-nightly3.2309-
|
|
2
|
+
* Microsoft Application Insights idsync plugin, 0.0.3-nightly3.2309-11
|
|
3
3
|
* Copyright (c) Microsoft and contributors. All rights reserved.
|
|
4
4
|
*
|
|
5
5
|
* Microsoft Application Insights Team
|
|
@@ -57,46 +57,49 @@ declare namespace ApplicationInsights {
|
|
|
57
57
|
interface ICfgSyncConfig {
|
|
58
58
|
/**
|
|
59
59
|
* Identifies whether instance should receive or broadcast config changes
|
|
60
|
-
*
|
|
60
|
+
* @default Broadcast
|
|
61
61
|
*/
|
|
62
62
|
syncMode?: ICfgSyncMode;
|
|
63
63
|
/**
|
|
64
|
-
*
|
|
65
|
-
*
|
|
64
|
+
* Event name for sending or listening to configuration change details
|
|
65
|
+
* @default ai_cfgsync
|
|
66
66
|
*/
|
|
67
67
|
customEvtName?: string;
|
|
68
68
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* If set, any core config changes will be ignored.
|
|
69
|
+
* CDN endpoint for fetching configuration. If cfgUrl is defined, instance will NOT listen to core configuration changes.
|
|
70
|
+
* @default null
|
|
72
71
|
*/
|
|
73
72
|
cfgUrl?: string;
|
|
74
73
|
/**
|
|
75
|
-
*
|
|
76
|
-
*
|
|
74
|
+
* Determines if fetching the CDN endpoint should be blocked or not.
|
|
75
|
+
* @default false
|
|
77
76
|
*/
|
|
78
77
|
blkCdnCfg?: boolean;
|
|
79
78
|
/**
|
|
80
|
-
*
|
|
79
|
+
* Overrides callback function to handle event details when changes are received via event listener.
|
|
80
|
+
* @default null
|
|
81
81
|
*/
|
|
82
82
|
onCfgChangeReceive?: (event?: ICfgSyncEvent) => void;
|
|
83
83
|
/**
|
|
84
|
-
* Overrides sync() function to broadcast changes
|
|
84
|
+
* Overrides sync() function to broadcast changes.\
|
|
85
|
+
* @default null
|
|
85
86
|
*/
|
|
86
87
|
overrideSyncFn?: (config?: IConfiguration & IConfig, customDetails?: any) => boolean;
|
|
87
88
|
/**
|
|
88
|
-
* Overrides fetch function to get config from cfgUrl.
|
|
89
|
+
* Overrides fetch function to get config from cfgUrl when cfgUrl is defined.
|
|
90
|
+
* @default null
|
|
89
91
|
*/
|
|
90
92
|
overrideFetchFn?: SendGetFunction;
|
|
91
93
|
/**
|
|
92
|
-
*
|
|
93
|
-
*
|
|
94
|
+
* When current instance is set with syncMode: `Receive`, config fields under nonOverrideConfigs will NOT be changed by any confif details sent out from other instances.
|
|
95
|
+
* @default {instrumentationKey:true,connectionString:true,endpointUrl:true}
|
|
94
96
|
*/
|
|
95
97
|
nonOverrideConfigs?: NonOverrideCfg;
|
|
96
98
|
/**
|
|
97
|
-
* Identifies time interval (in
|
|
99
|
+
* Identifies the time interval (in milliseconds) for fetching config details from cfgUrl when cfgUrl is defined.
|
|
98
100
|
* Default to 30 mins, 30*60*1000ms.
|
|
99
|
-
* If set to 0, fetch will only be called once during initialization.
|
|
101
|
+
* If set to 0, the fetch operation will only be called once during initialization.
|
|
102
|
+
* @default 30mins (30*60*1000ms)
|
|
100
103
|
*/
|
|
101
104
|
scheduleFetchTimeout?: number;
|
|
102
105
|
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "ai.cfgsync",
|
|
3
|
-
"version": "0.0.3-nightly3.2309-09",
|
|
4
|
-
"ext": {
|
|
5
|
-
"@cjs.js": {
|
|
6
|
-
"file": "ai.cfgsync.0.0.3-nightly3.2309-09.cjs.js",
|
|
7
|
-
"type": "text/javascript; charset=utf-8",
|
|
8
|
-
"integrity": "sha256-eYbHm7JCAlkpXc6RRVY/g5qk5RrrlxzCKq0nrIeR2UI= sha384-we+DyKfyfooPfOw2m4rGuRsHEWhbNKM5XieMRI7nKqNt5GHq7PVrRjn0naZHdPqo sha512-Evpp3djj9QK0Rlfb80X89MoUY9JMcXBHqAKeJ4PfZ8CVAKaCgwRxKSp/77SiF3i7XJ9R6aEhVKXhGIjbrQyvpQ==",
|
|
9
|
-
"hashes": {
|
|
10
|
-
"sha256": "eYbHm7JCAlkpXc6RRVY/g5qk5RrrlxzCKq0nrIeR2UI=",
|
|
11
|
-
"sha384": "we+DyKfyfooPfOw2m4rGuRsHEWhbNKM5XieMRI7nKqNt5GHq7PVrRjn0naZHdPqo",
|
|
12
|
-
"sha512": "Evpp3djj9QK0Rlfb80X89MoUY9JMcXBHqAKeJ4PfZ8CVAKaCgwRxKSp/77SiF3i7XJ9R6aEhVKXhGIjbrQyvpQ=="
|
|
13
|
-
}
|
|
14
|
-
},
|
|
15
|
-
"@cjs.min.js": {
|
|
16
|
-
"file": "ai.cfgsync.0.0.3-nightly3.2309-09.cjs.min.js",
|
|
17
|
-
"type": "text/javascript; charset=utf-8",
|
|
18
|
-
"integrity": "sha256-qdS7eEDctte4QxJQLaHUM4MGWhut6e5MjNyO7nb00Yg= sha384-Z8EIUvAO/ih7aIBLw/X1bt0l0uBZsf4NGB80TJPof7QAjP756oCaISvmVuJe2JcQ sha512-urHW/p67qJQJSp+0fXYHtkIW6sfGfTml65TnIfoUhQyhRvMucN2rzn0qjTHCyFj8OIXSees5LUaUUfpeR/efpw==",
|
|
19
|
-
"hashes": {
|
|
20
|
-
"sha256": "qdS7eEDctte4QxJQLaHUM4MGWhut6e5MjNyO7nb00Yg=",
|
|
21
|
-
"sha384": "Z8EIUvAO/ih7aIBLw/X1bt0l0uBZsf4NGB80TJPof7QAjP756oCaISvmVuJe2JcQ",
|
|
22
|
-
"sha512": "urHW/p67qJQJSp+0fXYHtkIW6sfGfTml65TnIfoUhQyhRvMucN2rzn0qjTHCyFj8OIXSees5LUaUUfpeR/efpw=="
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
"@gbl.js": {
|
|
26
|
-
"file": "ai.cfgsync.0.0.3-nightly3.2309-09.gbl.js",
|
|
27
|
-
"type": "text/javascript; charset=utf-8",
|
|
28
|
-
"integrity": "sha256-zNbThE51rBnT+2qTJmIhRMv9EMdbXI/OOgwRKYEjZmc= sha384-Q269Lt1Mt2vXffPwqCkrp8Q2kUoF67tz4vr34wNeV0PCKJ0fBsDCCivW4dAhdvBq sha512-Adn3vBtAUeQO0KDwmUtSI87du3gvC3DVdnzgajk1P5vibrDYO67/RsM54vmAeyBG+SLUA45pA+GoVGH85sZ4Tw==",
|
|
29
|
-
"hashes": {
|
|
30
|
-
"sha256": "zNbThE51rBnT+2qTJmIhRMv9EMdbXI/OOgwRKYEjZmc=",
|
|
31
|
-
"sha384": "Q269Lt1Mt2vXffPwqCkrp8Q2kUoF67tz4vr34wNeV0PCKJ0fBsDCCivW4dAhdvBq",
|
|
32
|
-
"sha512": "Adn3vBtAUeQO0KDwmUtSI87du3gvC3DVdnzgajk1P5vibrDYO67/RsM54vmAeyBG+SLUA45pA+GoVGH85sZ4Tw=="
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
"@gbl.min.js": {
|
|
36
|
-
"file": "ai.cfgsync.0.0.3-nightly3.2309-09.gbl.min.js",
|
|
37
|
-
"type": "text/javascript; charset=utf-8",
|
|
38
|
-
"integrity": "sha256-zJDTVhihPVD8jmBLZWc0EO7jCIZ+qaVwSrv48e9lf5g= sha384-r01kAO6WeILSq160g70KWQWOTtTlIOI1K81kkCfiTeT79lqm3bDKWJkJHwOAriy/ sha512-2nlTjwTJ96sQfjyybaI+FaJ6RSNCSLHxycBOu1Nir+kOhpst6dI2LAKhnm+VEY5J6CqCNNFOoWw5jJbX43gTSw==",
|
|
39
|
-
"hashes": {
|
|
40
|
-
"sha256": "zJDTVhihPVD8jmBLZWc0EO7jCIZ+qaVwSrv48e9lf5g=",
|
|
41
|
-
"sha384": "r01kAO6WeILSq160g70KWQWOTtTlIOI1K81kkCfiTeT79lqm3bDKWJkJHwOAriy/",
|
|
42
|
-
"sha512": "2nlTjwTJ96sQfjyybaI+FaJ6RSNCSLHxycBOu1Nir+kOhpst6dI2LAKhnm+VEY5J6CqCNNFOoWw5jJbX43gTSw=="
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
"@js": {
|
|
46
|
-
"file": "ai.cfgsync.0.0.3-nightly3.2309-09.js",
|
|
47
|
-
"type": "text/javascript; charset=utf-8",
|
|
48
|
-
"integrity": "sha256-36uohCyI+8U2mV7bAhPbHIE+cniwLQYpjyBOtoZXbKo= sha384-FHTT81A1WdHcsTnwLJCAiTsyt/AjK2dn3jTysDnvnsiZy9rk0raCNoxGB27tE6OI sha512-rCJH+TVCjSmsCLhPlCtJmS/mjjI+weUUqZ/9MyjHmnrqlJ6Xw8Ox7UhEE+ixRKpFgvok3DsgVEX4XPLNqaPw9Q==",
|
|
49
|
-
"hashes": {
|
|
50
|
-
"sha256": "36uohCyI+8U2mV7bAhPbHIE+cniwLQYpjyBOtoZXbKo=",
|
|
51
|
-
"sha384": "FHTT81A1WdHcsTnwLJCAiTsyt/AjK2dn3jTysDnvnsiZy9rk0raCNoxGB27tE6OI",
|
|
52
|
-
"sha512": "rCJH+TVCjSmsCLhPlCtJmS/mjjI+weUUqZ/9MyjHmnrqlJ6Xw8Ox7UhEE+ixRKpFgvok3DsgVEX4XPLNqaPw9Q=="
|
|
53
|
-
}
|
|
54
|
-
},
|
|
55
|
-
"@min.js": {
|
|
56
|
-
"file": "ai.cfgsync.0.0.3-nightly3.2309-09.min.js",
|
|
57
|
-
"type": "text/javascript; charset=utf-8",
|
|
58
|
-
"integrity": "sha256-HoPhNQzaPWk59un09SsWjatWb5p7JVI1RLdFCzSSls8= sha384-esj+XWjebqRiF3u94q0LFziAeq08Bfl/3UKQ9s6Av4v6RSw+zvMfH+d+3QBOZ1B5 sha512-CnGqgbz1nISwq+R2imQOxJCyXGx+R4v593XpE3S5UGxocU+b32tl1AHrW035o7W/Xd92wgGBr42K7ZiL+1cTJw==",
|
|
59
|
-
"hashes": {
|
|
60
|
-
"sha256": "HoPhNQzaPWk59un09SsWjatWb5p7JVI1RLdFCzSSls8=",
|
|
61
|
-
"sha384": "esj+XWjebqRiF3u94q0LFziAeq08Bfl/3UKQ9s6Av4v6RSw+zvMfH+d+3QBOZ1B5",
|
|
62
|
-
"sha512": "CnGqgbz1nISwq+R2imQOxJCyXGx+R4v593XpE3S5UGxocU+b32tl1AHrW035o7W/Xd92wgGBr42K7ZiL+1cTJw=="
|
|
63
|
-
}
|
|
64
|
-
}
|
|
65
|
-
}
|
|
66
|
-
}
|