@microsoft/applicationinsights-channel-js 2.8.15-nightly.2307-26 → 2.8.15

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/package.json CHANGED
@@ -1,61 +1,58 @@
1
- {
2
- "name": "@microsoft/applicationinsights-channel-js",
3
- "version": "2.8.15-nightly.2307-26",
4
- "description": "Microsoft Application Insights JavaScript SDK Channel",
5
- "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
- "author": "Microsoft Application Insights Team",
7
- "main": "dist/applicationinsights-channel-js.js",
8
- "module": "dist-esm/applicationinsights-channel-js.js",
9
- "types": "types/applicationinsights-channel-js.d.ts",
10
- "sideEffects": false,
11
- "repository": "github:Microsoft/applicationinsights-js",
12
- "scripts": {
13
- "clean": "rm -rf browser dist dist-esm types",
14
- "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
15
- "build:esm": "grunt aichannel",
16
- "build:browser": "rollup -c",
17
- "rebuild": "npm run build",
18
- "test": "grunt aichanneltest",
19
- "mintest": "grunt aichannel-mintest",
20
- "lint": "tslint -p tsconfig.json",
21
- "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK Channel\"",
22
- "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
23
- "ai-min": "grunt aichannel-min",
24
- "ai-restore": "grunt aichannel-restore",
25
- "npm-pack": "npm pack"
26
- },
27
- "devDependencies": {
28
- "@microsoft/ai-test-framework": "0.0.1",
29
- "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
30
- "@microsoft/applicationinsights-rollup-es3": "1.1.3",
31
- "@microsoft/api-extractor": "^7.18.1",
32
- "@types/sinon": "4.3.3",
33
- "grunt": "^1.5.3",
34
- "grunt-cli": "^1.4.3",
35
- "@nevware21/grunt-ts-plugin": "^0.4.3",
36
- "@nevware21/grunt-eslint-ts": "^0.2.2",
37
- "globby": "^11.0.0",
38
- "magic-string": "^0.25.7",
39
- "@rollup/plugin-commonjs": "^18.0.0",
40
- "@rollup/plugin-node-resolve": "^11.2.1",
41
- "@rollup/plugin-replace": "^2.3.3",
42
- "rollup-plugin-cleanup": "^3.2.1",
43
- "rollup": "^2.32.0",
44
- "typescript": "^4.9.3",
45
- "tslib": "^2.0.0",
46
- "sinon": "^7.3.1"
47
- },
48
- "peerDependencies": {
49
- "tslib": "*"
50
- },
51
- "dependencies": {
52
- "@microsoft/dynamicproto-js": "^1.1.9",
53
- "@microsoft/applicationinsights-shims": "2.0.2",
54
- "@microsoft/applicationinsights-core-js": "2.8.15-nightly.2307-26",
55
- "@microsoft/applicationinsights-common": "2.8.15-nightly.2307-26"
56
- },
57
- "license": "MIT",
58
- "publishConfig": {
59
- "tag": "nightly"
60
- }
61
- }
1
+ {
2
+ "name": "@microsoft/applicationinsights-channel-js",
3
+ "version": "2.8.15",
4
+ "description": "Microsoft Application Insights JavaScript SDK Channel",
5
+ "homepage": "https://github.com/microsoft/ApplicationInsights-JS#readme",
6
+ "author": "Microsoft Application Insights Team",
7
+ "main": "dist/applicationinsights-channel-js.js",
8
+ "module": "dist-esm/applicationinsights-channel-js.js",
9
+ "types": "types/applicationinsights-channel-js.d.ts",
10
+ "sideEffects": false,
11
+ "repository": "github:Microsoft/applicationinsights-js",
12
+ "scripts": {
13
+ "clean": "rm -rf browser dist dist-esm types",
14
+ "build": "npm run build:esm && npm run build:browser && npm run sri && npm run dtsgen",
15
+ "build:esm": "grunt aichannel",
16
+ "build:browser": "rollup -c",
17
+ "rebuild": "npm run build",
18
+ "test": "grunt aichanneltest",
19
+ "mintest": "grunt aichannel-mintest",
20
+ "lint": "tslint -p tsconfig.json",
21
+ "dtsgen": "api-extractor run --local && node ../../scripts/dtsgen.js \"Microsoft Application Insights JavaScript SDK Channel\"",
22
+ "sri": "node ../../tools/subResourceIntegrity/generateIntegrityFile.js",
23
+ "ai-min": "grunt aichannel-min",
24
+ "ai-restore": "grunt aichannel-restore",
25
+ "npm-pack": "npm pack"
26
+ },
27
+ "devDependencies": {
28
+ "@microsoft/ai-test-framework": "0.0.1",
29
+ "@microsoft/applicationinsights-rollup-plugin-uglify3-js": "1.0.0",
30
+ "@microsoft/applicationinsights-rollup-es3": "1.1.3",
31
+ "@microsoft/api-extractor": "^7.18.1",
32
+ "@types/sinon": "4.3.3",
33
+ "grunt": "^1.5.3",
34
+ "grunt-cli": "^1.4.3",
35
+ "@nevware21/grunt-ts-plugin": "^0.4.3",
36
+ "@nevware21/grunt-eslint-ts": "^0.2.2",
37
+ "globby": "^11.0.0",
38
+ "magic-string": "^0.25.7",
39
+ "@rollup/plugin-commonjs": "^18.0.0",
40
+ "@rollup/plugin-node-resolve": "^11.2.1",
41
+ "@rollup/plugin-replace": "^2.3.3",
42
+ "rollup-plugin-cleanup": "^3.2.1",
43
+ "rollup": "^2.32.0",
44
+ "typescript": "^4.9.3",
45
+ "tslib": "^2.0.0",
46
+ "sinon": "^7.3.1"
47
+ },
48
+ "peerDependencies": {
49
+ "tslib": "*"
50
+ },
51
+ "dependencies": {
52
+ "@microsoft/dynamicproto-js": "^1.1.9",
53
+ "@microsoft/applicationinsights-shims": "2.0.2",
54
+ "@microsoft/applicationinsights-core-js": "2.8.15",
55
+ "@microsoft/applicationinsights-common": "2.8.15"
56
+ },
57
+ "license": "MIT"
58
+ }
package/src/Sender.ts CHANGED
@@ -2,7 +2,7 @@ import dynamicProto from "@microsoft/dynamicproto-js";
2
2
  import {
3
3
  BreezeChannelIdentifier, DEFAULT_BREEZE_ENDPOINT, DEFAULT_BREEZE_PATH, DisabledPropertyName, Event, Exception, IChannelControlsAI,
4
4
  IConfig, IEnvelope, ISample, Metric, PageView, PageViewPerformance, ProcessLegacy, RemoteDependencyData, RequestHeaders, SampleRate,
5
- Trace, eRequestHeaders, isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage
5
+ Trace, eRequestHeaders, isInternalApplicationInsightsEndpoint, utlCanUseSessionStorage, utlSetStoragePrefix
6
6
  } from "@microsoft/applicationinsights-common";
7
7
  import {
8
8
  BaseTelemetryPlugin, IAppInsightsCore, IConfiguration, IDiagnosticLogger, INotificationManager, IPlugin, IProcessTelemetryContext,
@@ -231,6 +231,10 @@ export class Sender extends BaseTelemetryPlugin implements IChannelControlsAI {
231
231
  return theValue;
232
232
  }
233
233
  });
234
+
235
+ if (config.storagePrefix){
236
+ utlSetStoragePrefix(config.storagePrefix);
237
+ }
234
238
 
235
239
  const useSessionStorage = _self._senderConfig.enableSessionStorageBuffer() &&
236
240
  !!(_self._senderConfig.bufferOverride() || utlCanUseSessionStorage())