@microsoft/applicationinsights-core-js 2.8.6 → 3.0.0-beta.2208-04
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-core-js.integrity.json +9 -9
- package/browser/applicationinsights-core-js.js +11 -5
- 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.d.ts +1 -1
- package/dist/applicationinsights-core-js.js +11 -5
- 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 +1 -1
- package/dist-esm/JavaScriptSDK/AppInsightsCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseCore.js +1 -1
- package/dist-esm/JavaScriptSDK/BaseTelemetryPlugin.js +1 -1
- package/dist-esm/JavaScriptSDK/ChannelController.js +1 -1
- package/dist-esm/JavaScriptSDK/CookieMgr.js +1 -1
- package/dist-esm/JavaScriptSDK/CoreUtils.js +9 -4
- package/dist-esm/JavaScriptSDK/CoreUtils.js.map +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 +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/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/IUnloadableComponent.js +1 -1
- package/dist-esm/__DynamicConstants.js +3 -3
- package/dist-esm/__DynamicConstants.js.map +1 -1
- package/dist-esm/applicationinsights-core-js.js +1 -1
- package/package.json +73 -70
- package/src/JavaScriptSDK/CoreUtils.ts +7 -3
- package/types/__DynamicConstants.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,70 +1,73 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "@microsoft/applicationinsights-core-js",
|
|
3
|
-
"author": "Microsoft Application Insights Team",
|
|
4
|
-
"version": "
|
|
5
|
-
"description": "Microsoft Application Insights Core Javascript SDK",
|
|
6
|
-
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
7
|
-
"keywords": [
|
|
8
|
-
"azure",
|
|
9
|
-
"cloud",
|
|
10
|
-
"script errors",
|
|
11
|
-
"microsoft",
|
|
12
|
-
"application insights",
|
|
13
|
-
"browser performance monitoring",
|
|
14
|
-
"web analytics"
|
|
15
|
-
],
|
|
16
|
-
"main": "dist/applicationinsights-core-js.js",
|
|
17
|
-
"module": "dist-esm/applicationinsights-core-js.js",
|
|
18
|
-
"types": "types/applicationinsights-core-js.d.ts",
|
|
19
|
-
"scripts": {
|
|
20
|
-
"clean": "grunt clean",
|
|
21
|
-
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
22
|
-
"build:esm": "grunt core",
|
|
23
|
-
"build:browser": "rollup -c rollup.config.js",
|
|
24
|
-
"rebuild": "npm run build",
|
|
25
|
-
"test": "grunt coreunittest",
|
|
26
|
-
"mintest": "grunt core-mintest",
|
|
27
|
-
"perftest": "grunt coreperftest",
|
|
28
|
-
"lint": "tslint -p tsconfig.json",
|
|
29
|
-
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Core Javascript SDK\"",
|
|
30
|
-
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
31
|
-
"ai-min": "grunt core-min",
|
|
32
|
-
"ai-restore": "grunt core-restore"
|
|
33
|
-
},
|
|
34
|
-
"repository": {
|
|
35
|
-
"type": "git",
|
|
36
|
-
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/shared/AppInsightsCore"
|
|
37
|
-
},
|
|
38
|
-
"license": "MIT",
|
|
39
|
-
"sideEffects": false,
|
|
40
|
-
"devDependencies": {
|
|
41
|
-
"@microsoft/ai-test-framework": "0.0.1",
|
|
42
|
-
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
43
|
-
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
44
|
-
"@microsoft/api-extractor": "^7.18.1",
|
|
45
|
-
"grunt": "^1.5.3",
|
|
46
|
-
"grunt-cli": "^1.4.3",
|
|
47
|
-
"grunt-contrib-qunit": "^5.0.1",
|
|
48
|
-
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
49
|
-
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
50
|
-
"globby": "^11.0.0",
|
|
51
|
-
"magic-string": "^0.25.7",
|
|
52
|
-
"pako": "^2.0.3",
|
|
53
|
-
"@rollup/plugin-commonjs": "^18.0.0",
|
|
54
|
-
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
55
|
-
"@rollup/plugin-replace": "^2.3.3",
|
|
56
|
-
"rollup-plugin-cleanup": "^3.2.1",
|
|
57
|
-
"rollup": "^2.32.0",
|
|
58
|
-
"typescript": "^4.3.4",
|
|
59
|
-
"tslib": "^2.0.0",
|
|
60
|
-
"qunit": "^2.11.2",
|
|
61
|
-
"sinon": "^7.3.1"
|
|
62
|
-
},
|
|
63
|
-
"peerDependencies": {
|
|
64
|
-
"tslib": "*"
|
|
65
|
-
},
|
|
66
|
-
"dependencies": {
|
|
67
|
-
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
68
|
-
"@microsoft/dynamicproto-js": "^1.1.6"
|
|
69
|
-
}
|
|
70
|
-
|
|
1
|
+
{
|
|
2
|
+
"name": "@microsoft/applicationinsights-core-js",
|
|
3
|
+
"author": "Microsoft Application Insights Team",
|
|
4
|
+
"version": "3.0.0-beta.2208-04",
|
|
5
|
+
"description": "Microsoft Application Insights Core Javascript SDK",
|
|
6
|
+
"homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
|
|
7
|
+
"keywords": [
|
|
8
|
+
"azure",
|
|
9
|
+
"cloud",
|
|
10
|
+
"script errors",
|
|
11
|
+
"microsoft",
|
|
12
|
+
"application insights",
|
|
13
|
+
"browser performance monitoring",
|
|
14
|
+
"web analytics"
|
|
15
|
+
],
|
|
16
|
+
"main": "dist/applicationinsights-core-js.js",
|
|
17
|
+
"module": "dist-esm/applicationinsights-core-js.js",
|
|
18
|
+
"types": "types/applicationinsights-core-js.d.ts",
|
|
19
|
+
"scripts": {
|
|
20
|
+
"clean": "grunt clean",
|
|
21
|
+
"build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
|
|
22
|
+
"build:esm": "grunt core",
|
|
23
|
+
"build:browser": "rollup -c rollup.config.js",
|
|
24
|
+
"rebuild": "npm run build",
|
|
25
|
+
"test": "grunt coreunittest",
|
|
26
|
+
"mintest": "grunt core-mintest",
|
|
27
|
+
"perftest": "grunt coreperftest",
|
|
28
|
+
"lint": "tslint -p tsconfig.json",
|
|
29
|
+
"dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights Core Javascript SDK\"",
|
|
30
|
+
"sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
|
|
31
|
+
"ai-min": "grunt core-min",
|
|
32
|
+
"ai-restore": "grunt core-restore"
|
|
33
|
+
},
|
|
34
|
+
"repository": {
|
|
35
|
+
"type": "git",
|
|
36
|
+
"url": "https://github.com/microsoft/ApplicationInsights-JS/tree/master/shared/AppInsightsCore"
|
|
37
|
+
},
|
|
38
|
+
"license": "MIT",
|
|
39
|
+
"sideEffects": false,
|
|
40
|
+
"devDependencies": {
|
|
41
|
+
"@microsoft/ai-test-framework": "0.0.1",
|
|
42
|
+
"@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
|
|
43
|
+
"@microsoft/applicationinsights-rollup-es3": "1.1.3",
|
|
44
|
+
"@microsoft/api-extractor": "^7.18.1",
|
|
45
|
+
"grunt": "^1.5.3",
|
|
46
|
+
"grunt-cli": "^1.4.3",
|
|
47
|
+
"grunt-contrib-qunit": "^5.0.1",
|
|
48
|
+
"@nevware21/grunt-ts-plugin": "^0.4.3",
|
|
49
|
+
"@nevware21/grunt-eslint-ts": "^0.2.2",
|
|
50
|
+
"globby": "^11.0.0",
|
|
51
|
+
"magic-string": "^0.25.7",
|
|
52
|
+
"pako": "^2.0.3",
|
|
53
|
+
"@rollup/plugin-commonjs": "^18.0.0",
|
|
54
|
+
"@rollup/plugin-node-resolve": "^11.2.1",
|
|
55
|
+
"@rollup/plugin-replace": "^2.3.3",
|
|
56
|
+
"rollup-plugin-cleanup": "^3.2.1",
|
|
57
|
+
"rollup": "^2.32.0",
|
|
58
|
+
"typescript": "^4.3.4",
|
|
59
|
+
"tslib": "^2.0.0",
|
|
60
|
+
"qunit": "^2.11.2",
|
|
61
|
+
"sinon": "^7.3.1"
|
|
62
|
+
},
|
|
63
|
+
"peerDependencies": {
|
|
64
|
+
"tslib": "*"
|
|
65
|
+
},
|
|
66
|
+
"dependencies": {
|
|
67
|
+
"@microsoft/applicationinsights-shims": "2.0.1",
|
|
68
|
+
"@microsoft/dynamicproto-js": "^1.1.6"
|
|
69
|
+
},
|
|
70
|
+
"publishConfig": {
|
|
71
|
+
"tag": "beta"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -20,11 +20,15 @@ let _canUseCookies: boolean; // legacy supported config
|
|
|
20
20
|
|
|
21
21
|
// Added to help with minfication
|
|
22
22
|
export const Undefined = strShimUndefined;
|
|
23
|
-
|
|
24
23
|
export function newGuid(): string {
|
|
25
|
-
|
|
24
|
+
function randomHexDigit() {
|
|
25
|
+
return randomValue(15); // Get a random value from 0..15
|
|
26
|
+
}
|
|
26
27
|
|
|
27
|
-
return
|
|
28
|
+
return "xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(GuidRegex, (c) => {
|
|
29
|
+
const r = (randomHexDigit() | 0), v = (c === "x" ? r : r & 0x3 | 0x8);
|
|
30
|
+
return v.toString(16);
|
|
31
|
+
});
|
|
28
32
|
}
|
|
29
33
|
|
|
30
34
|
/**
|
|
@@ -35,10 +35,10 @@ export declare const _DYN_SUBSTRING = "substring";
|
|
|
35
35
|
export declare const _DYN_USER_AGENT = "userAgent";
|
|
36
36
|
export declare const _DYN_SPLIT = "split";
|
|
37
37
|
export declare const _DYN_SET_ENABLED = "setEnabled";
|
|
38
|
+
export declare const _DYN_REPLACE = "replace";
|
|
38
39
|
export declare const _DYN_SUBSTR = "substr";
|
|
39
40
|
export declare const _DYN_NODE_TYPE = "nodeType";
|
|
40
41
|
export declare const _DYN_APPLY = "apply";
|
|
41
|
-
export declare const _DYN_REPLACE = "replace";
|
|
42
42
|
export declare const _DYN_ENABLE_DEBUG_EXCEPTI4 = "enableDebugExceptions";
|
|
43
43
|
export declare const _DYN_LOG_INTERNAL_MESSAGE = "logInternalMessage";
|
|
44
44
|
export declare const _DYN_TO_LOWER_CASE = "toLowerCase";
|