Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

phin

Package Overview
Dependencies
Maintainers
1
Versions
63
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

phin - npm Package Compare versions

Comparing version 2.2.81 to 2.2.90

26

lib/phin.js

@@ -144,16 +144,20 @@ const realHttp = require("http");

const promisified = (opts, http) => {
return new Promise((resolve, reject) => {
phin(opts, (err, res) => {
if (err) {
reject(err);
} else {
resolve(res);
}
}, http);
});
};
if (util.promisify) {
phin[util.promisify.custom] = (opts, http) => {
return new Promise((resolve, reject) => {
phin(opts, (err, res) => {
if (err) {
reject(err);
} else {
resolve(res);
}
}, http);
});
};
phin[util.promisify.custom] = promisified;
}
phin.promisified = promisified;
module.exports = phin;
{
"name": "phin",
"version": "2.2.81",
"version": "2.2.90",
"description": "Ultra-simple, lightweight, dependency-free Node.JS HTTP request client",

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

@@ -1,2 +0,2 @@

<p align="center" style="text-align: center;"><img src="http://i.imgur.com/SSBM2Pw.png" width="200" alt="phin logo"/></p>
<p align="center" style="text-align: center;"><img src="http://i.imgur.com/SSBM2Pw.png" width="150" alt="phin logo"/></p>

@@ -3,0 +3,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