Socket
Socket
Sign inDemoInstall

vscode

Package Overview
Dependencies
Maintainers
9
Versions
128
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vscode - npm Package Compare versions

Comparing version 1.1.26 to 1.1.27

20

lib/shared.js

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

function getContents(url, token, headers, callback) {
request.get(toRequestOptions(url, token, headers), function (error, response, body) {
if (!error && response && response.statusCode >= 400) {
error = new Error('Request returned status code: ' + response.statusCode + '\nDetails: ' + response.body);
}
callback(error, body);
});
}
exports.getContents = getContents;
function toRequestOptions(url, token, headers) {
headers = headers || {

@@ -29,12 +38,7 @@ 'user-agent': 'nodejs'

}
if (process.env.npm_config_https_proxy && parsedUrl.protocol === 'https:') {
else if (process.env.npm_config_https_proxy && parsedUrl.protocol === 'https:') {
options.proxy = process.env.npm_config_https_proxy;
}
request.get(options, function (error, response, body) {
if (!error && response && response.statusCode >= 400) {
error = new Error('Request returned status code: ' + response.statusCode + '\nDetails: ' + response.body);
}
callback(error, body);
});
return options;
}
exports.getContents = getContents;
exports.toRequestOptions = toRequestOptions;

2

package.json
{
"name": "vscode",
"version": "1.1.26",
"version": "1.1.27",
"typings": "vscode.d.ts",

@@ -5,0 +5,0 @@ "scripts": {

Sorry, the diff of this file is not supported yet

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