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

httplease

Package Overview
Dependencies
Maintainers
1
Versions
43
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

httplease - npm Package Compare versions

Comparing version 0.5.2 to 0.5.3-beta1

10

lib/builder.js

@@ -228,2 +228,12 @@ 'use strict';

/**
* Sets the name for this HTTP client.
*
* If set this property will be copied onto any errors returned by send().
* Filters may also choose to use this value for any other purpose.
*/
withClientName(clientName) {
return this.withConfig({clientName});
}
/**
* Set a custom filter which has access to the request/responses.

@@ -230,0 +240,0 @@ *

11

lib/pipeline.js

@@ -14,5 +14,14 @@ 'use strict';

function handleError(error) {
if (requestConfig.clientName) {
error.clientName = requestConfig.clientName;
}
throw error;
}
const startFilter = filters.reduceRight(wrapFilter, makeRequest);
return p.Promise.resolve(requestConfig).then(startFilter);
return p.Promise.resolve(requestConfig)
.then(startFilter)
.catch(handleError);
}

@@ -19,0 +28,0 @@

2

package.json
{
"name": "httplease",
"version": "0.5.2",
"version": "0.5.3-beta1",
"description": "HTTP client library with support for pluggable filters, including Zipkin, ASAP, etc",

@@ -5,0 +5,0 @@ "main": "index.js",

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