Socket
Socket
Sign inDemoInstall

@vscode/extension-telemetry

Package Overview
Dependencies
Maintainers
7
Versions
32
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@vscode/extension-telemetry - npm Package Compare versions

Comparing version 0.9.2 to 0.9.3

4

dist/browser/browser/telemetryReporter.js

@@ -16,3 +16,5 @@ /*---------------------------------------------------------

else {
return navigator.appVersion;
// clean the user agent using the logic from here:
// https://github.com/microsoft/vscode/blob/main/src/vs/workbench/services/telemetry/browser/workbenchCommonProperties.ts#L14C1-L21C2
return navigator.userAgent.replace(/(\d+\.\d+)(\.\d+)+/g, "$1");
}

@@ -19,0 +21,0 @@ }

@@ -11,2 +11,11 @@ /*---------------------------------------------------------------------------------------------

const basicAISDK = await import /* webpackMode: "eager" */("@microsoft/applicationinsights-web-basic");
const extensionConfig = {};
if (xhrOverride) {
// Configure the channel to use a XHR Request override since it's not available in node
const channelConfig = {
alwaysUseXhrOverride: true,
httpXHROverride: xhrOverride
};
extensionConfig[BreezeChannelIdentifier] = channelConfig;
}
appInsightsClient = new basicAISDK.ApplicationInsights({

@@ -21,13 +30,5 @@ instrumentationKey: key,

emitLineDelimitedJson: false,
disableInstrumentationKeyValidation: true
disableInstrumentationKeyValidation: true,
extensionConfig,
});
if (xhrOverride) {
appInsightsClient.config.extensionConfig = {};
// Configure the channel to use a XHR Request override since it's not available in node
const channelConfig = {
alwaysUseXhrOverride: true,
httpXHROverride: xhrOverride
};
appInsightsClient.config.extensionConfig[BreezeChannelIdentifier] = channelConfig;
}
}

@@ -34,0 +35,0 @@ catch (e) {

@@ -53,3 +53,3 @@ /*---------------------------------------------------------

// Do not change this string as it gets found and replaced upon packaging
"common.telemetryclientversion": "0.9.2"
"common.telemetryclientversion": "0.9.3"
};

@@ -56,0 +56,0 @@ }

@@ -37,2 +37,11 @@ "use strict";

const basicAISDK = await Promise.resolve().then(() => __importStar(require("@microsoft/applicationinsights-web-basic")));
const extensionConfig = {};
if (xhrOverride) {
// Configure the channel to use a XHR Request override since it's not available in node
const channelConfig = {
alwaysUseXhrOverride: true,
httpXHROverride: xhrOverride
};
extensionConfig[applicationinsights_common_1.BreezeChannelIdentifier] = channelConfig;
}
appInsightsClient = new basicAISDK.ApplicationInsights({

@@ -47,13 +56,5 @@ instrumentationKey: key,

emitLineDelimitedJson: false,
disableInstrumentationKeyValidation: true
disableInstrumentationKeyValidation: true,
extensionConfig,
});
if (xhrOverride) {
appInsightsClient.config.extensionConfig = {};
// Configure the channel to use a XHR Request override since it's not available in node
const channelConfig = {
alwaysUseXhrOverride: true,
httpXHROverride: xhrOverride
};
appInsightsClient.config.extensionConfig[applicationinsights_common_1.BreezeChannelIdentifier] = channelConfig;
}
}

@@ -60,0 +61,0 @@ catch (e) {

@@ -56,3 +56,3 @@ "use strict";

// Do not change this string as it gets found and replaced upon packaging
"common.telemetryclientversion": "0.9.2"
"common.telemetryclientversion": "0.9.3"
};

@@ -59,0 +59,0 @@ }

{
"name": "@vscode/extension-telemetry",
"description": "A module for Visual Studio Code extensions to report consistent telemetry.",
"version": "0.9.2",
"version": "0.9.3",
"author": {

@@ -19,9 +19,9 @@ "name": "Microsoft Corporation"

"build": "npm run compile",
"test": "tsc -p 'test/tsconfig.json' && mocha dist/test/*",
"compile": "tsc -p 'src/browser/tsconfig.json' && tsc -p 'src/node/tsconfig.json'"
"test": "tsc -p test/tsconfig.json && mocha dist/test/*",
"compile": "tsc -p src/browser/tsconfig.json && tsc -p src/node/tsconfig.json"
},
"dependencies": {
"@microsoft/1ds-core-js": "^4.0.3",
"@microsoft/1ds-post-js": "^4.0.3",
"@microsoft/applicationinsights-web-basic": "^3.0.6"
"@microsoft/1ds-core-js": "^4.1.0",
"@microsoft/1ds-post-js": "^4.1.0",
"@microsoft/applicationinsights-web-basic": "^3.1.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc