Socket
Socket
Sign inDemoInstall

bufio

Package Overview
Dependencies
Maintainers
3
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bufio - npm Package Compare versions

Comparing version 1.1.1 to 1.1.2

19

lib/staticwriter.js

@@ -127,2 +127,21 @@ /*!

/**
* Finish rendering the buffer. Fill
* remaining bytes with zeroes.
* @returns {Buffer} Rendered buffer.
*/
finish() {
const {data, offset} = this;
if (offset > data.length)
throw new EncodingError(offset, 'Out of bounds write');
data.fill(0, offset, data.length);
this.destroy();
return data;
}
/**
* Get size of data written so far.

@@ -129,0 +148,0 @@ * @returns {Number}

2

package.json
{
"name": "bufio",
"version": "1.1.1",
"version": "1.1.2",
"description": "Buffer and serialization utilities for javascript",

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

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