Socket
Socket
Sign inDemoInstall

protoblast

Package Overview
Dependencies
1
Maintainers
1
Versions
101
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.8.18 to 0.8.19

lib/devtools.js

6

CHANGELOG.md

@@ -0,1 +1,7 @@

## 0.8.19 (2024-04-13)
* Make `Develry.HttpAgent` classes return sockets from `createConnection` (backport)
* Don't throw errors when an *unused/free* socket has an error in `Develry.HttpAgent` (backport)
* Add some devtools functions for custom inspect formatting (backport)
## 0.8.18 (2024-01-19)

@@ -2,0 +8,0 @@

0

lib/function_flow.js

@@ -0,0 +0,0 @@ const defStat = Blast.createStaticDefiner('Function');

@@ -1605,2 +1605,3 @@ module.exports = function BlastInitLoader(modifyPrototype) {

Blast.require('form_data', {client: false});
Blast.require('devtools', {client: false});
}

@@ -1607,0 +1608,0 @@

@@ -460,3 +460,3 @@ const OriginalAgent = require('http').Agent;

* @since 0.8.2
* @version 0.8.2
* @version 0.9.3
*/

@@ -548,2 +548,11 @@ HttpAgent.setMethod(function initializeSocket(socket, options) {

const name = this.getName(options);
// If the socket had an error while it was free, ignore the error
if (this.freeSockets[name] && this.freeSockets[name].indexOf(socket) !== -1) {
socket.destroy();
this.removeSocket(socket, options);
return;
}
const listenerCount = socket.listeners('error').length;

@@ -580,3 +589,8 @@

* @since 0.8.2
* @version 0.8.2
* @version 0.9.3
*
* @param {Object} options
* @param {Function} on_create
*
* @return {Socket}
*/

@@ -610,2 +624,4 @@ HttpAgent.setMethod(function createConnection(options, on_create) {

}
return new_socket;
});

@@ -671,7 +687,12 @@

* @since 0.8.2
* @version 0.8.2
* @version 0.9.3
*
* @param {Object} options
* @param {Function} on_create
*
* @return {Socket}
*/
HttpsAgent.setMethod(function createConnection(options) {
HttpsAgent.setMethod(function createConnection(options, on_create) {
const socket = CREATE_HTTPS_CONNECTION.call(this, options);
const socket = CREATE_HTTPS_CONNECTION.call(this, options, on_create);

@@ -678,0 +699,0 @@ this.initializeSocket(socket, options);

@@ -0,0 +0,0 @@ module.exports = function BlastImmediate(Blast, Collection) {

2

package.json
{
"name": "protoblast",
"description": "Native object expansion library",
"version": "0.8.18",
"version": "0.8.19",
"author": "Jelle De Loecker <jelle@elevenways.be>",

@@ -6,0 +6,0 @@ "keywords": [

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc