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.2.0 to 1.3.0

2

index.js

@@ -29,3 +29,3 @@

if (err) reject(err);
else resolve(Buffer.concat(bufs));
else resolve(s._readableState && s._readableState.objectMode ? bufs : Buffer.concat(bufs));
}

@@ -32,0 +32,0 @@

{
"name": "as-buffer",
"version": "1.2.0",
"version": "1.3.0",
"description": "stream or anything to buffer as a Promise",

@@ -10,3 +10,4 @@ "main": "index.js",

"scripts": {
"test": "node test/"
"test": "nyc node test",
"coverage": "nyc report --reporter=lcov > coverage.lcov && codecov"
},

@@ -22,3 +23,7 @@ "repository": "git+https://github.com/caub/as-buffer.git",

"bugs": "https://github.com/caub/as-buffer/issues",
"homepage": "https://github.com/caub/as-buffer#readme"
"homepage": "https://github.com/caub/as-buffer#readme",
"devDependencies": {
"codecov": "^3.0.0",
"nyc": "^11.3.0"
}
}

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

## Read stream as buffer
## Read stream as buffer\*
[![npm version][npm-image]][npm-url]

@@ -16,2 +16,3 @@ [![build status][travis-image]][travis-url]

```
\*: exception of object-mode streams that are returned as array

@@ -18,0 +19,0 @@ like https://github.com/stream-utils/stream-to-array but simpler

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