request-light
Advanced tools
Comparing version 0.2.5 to 0.3.0
@@ -0,1 +1,5 @@ | ||
0.3.0 / 2019-11-30 | ||
================== | ||
* Add XHRResponse.headers | ||
0.2.5 / 2019-11-30 | ||
@@ -2,0 +6,0 @@ ================== |
@@ -17,2 +17,3 @@ export interface XHROptions { | ||
status: number; | ||
headers: any; | ||
} | ||
@@ -19,0 +20,0 @@ export interface XHRRequest { |
@@ -14,3 +14,6 @@ /*--------------------------------------------------------------------------------------------- | ||
var nls = require("vscode-nls"); | ||
nls.config(process.env['VSCODE_NLS_CONFIG']); | ||
if (process.env.VSCODE_NLS_CONFIG) { | ||
var VSCODE_NLS_CONFIG = process.env.VSCODE_NLS_CONFIG; | ||
nls.config(JSON.parse(VSCODE_NLS_CONFIG)); | ||
} | ||
var localize = nls.loadMessageBundle(); | ||
@@ -66,3 +69,4 @@ var proxyUrl = null; | ||
responseText: data.join(''), | ||
status: res.statusCode | ||
status: res.statusCode, | ||
headers: res.headers || {} | ||
}; | ||
@@ -79,3 +83,4 @@ if ((res.statusCode >= 200 && res.statusCode < 300) || res.statusCode === 1223) { | ||
responseText: localize('error', 'Unable to access {0}. Error: {1}', options.url, err.message), | ||
status: 500 | ||
status: 500, | ||
headers: undefined, | ||
}; | ||
@@ -82,0 +87,0 @@ isCompleted = true; |
{ | ||
"name": "request-light", | ||
"version": "0.2.5", | ||
"version": "0.3.0", | ||
"description": "Lightweight request library. Promise based, with proxy support.", | ||
@@ -17,9 +17,9 @@ "main": "./lib/main.js", | ||
"devDependencies": { | ||
"typescript": "^2.8.3", | ||
"@types/node": "7.0.43", | ||
"rimraf": "^3.0.0" | ||
"typescript": "^3.8.2", | ||
"@types/node": "13.7.6", | ||
"rimraf": "^3.0.2" | ||
}, | ||
"dependencies": { | ||
"http-proxy-agent": "^2.1.0", | ||
"https-proxy-agent": "^2.2.3", | ||
"https-proxy-agent": "^2.2.4", | ||
"vscode-nls": "^4.1.1" | ||
@@ -26,0 +26,0 @@ }, |
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
Environment variable access
Supply chain riskPackage accesses environment variables, which may be a sign of credential stuffing or data theft.
Found 1 instance in 1 package
17128
290
10
Updatedhttps-proxy-agent@^2.2.4