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

as-buffer

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

as-buffer - npm Package Compare versions

Comparing version 1.4.2 to 1.4.3

3

index.js

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

const readAsBuffer = (s, maxsize = 1e7) =>
const readAsBuffer = (s, _maxsize) =>
new Promise((resolve, reject) => {

@@ -8,2 +8,3 @@ if (Buffer.isBuffer(s) || Array.isArray(s) || typeof s === 'string') {

const bufs = [];
const maxsize = _maxsize || 1e7;
let size = 0;

@@ -10,0 +11,0 @@ s.on('data', d => {

{
"name": "as-buffer",
"version": "1.4.2",
"version": "1.4.3",
"description": "stream or anything to buffer as a Promise",
"main": "index.js",
"files": ["index.js"],
"files": [
"index.js"
],
"scripts": {

@@ -21,6 +23,10 @@ "test": "nyc node test",

"homepage": "https://github.com/caub/as-buffer#readme",
"engines": {
"node": ">=4.8.6"
},
"devDependencies": {
"codecov": "^3.0.0",
"nyc": "^11.3.0"
}
},
"dependencies": {}
}
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