New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

request-light

Package Overview
Dependencies
Maintainers
11
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

request-light - npm Package Compare versions

Comparing version 0.2.5 to 0.3.0

4

CHANGELOG.md

@@ -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 {

11

lib/main.js

@@ -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 @@ },

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