New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

node-smart-buffer

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-smart-buffer - npm Package Compare versions

Comparing version
2.3.0
to
3.0.0
+12
-4
index.js

@@ -290,3 +290,14 @@ const maximum = Math.pow( 2, 17 ) - 1;

storage: {},
indexed: {},
indexes: {},
findNameByIndex: function( index, value ) {
if ( this.indexes[ index ] == null ) {
const table = this.indexes[ index ] = {};
for ( const name in this.storage ) {
if ( index in this.storage[ name ] ) {
table[ this.storage[ name ][ index ] ] = name;
}
}
}
return this.indexes[ index ][ value ];
},
};

@@ -394,5 +405,2 @@ const names = [];

decode.push( `},` );
if ( 'index' in container.storage[ name ] ) {
container.indexed[ container.storage[ name ].index ] = name;
}
} else if ( source[ name ] instanceof Object ) {

@@ -399,0 +407,0 @@ container.encode[ name ] = source[ name ].encode;

{
"name": "node-smart-buffer",
"version": "2.3.0",
"version": "3.0.0",
"description": "ring buffer & packet compile",

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