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

peek-readable

Package Overview
Dependencies
Maintainers
1
Versions
24
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

peek-readable - npm Package Compare versions

Comparing version 3.1.1 to 3.1.2

2

lib/index.d.ts

@@ -38,3 +38,3 @@ /// <reference types="node" />

* @param length Number of bytes to read
* @returns {any}
* @returns Number of bytes read
*/

@@ -41,0 +41,0 @@ private _read;

"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.StreamReader = exports.EndOfStreamError = void 0;
const assert = require("assert");
const EndOfFileStream_1 = require("./EndOfFileStream");

@@ -89,6 +88,7 @@ var EndOfFileStream_2 = require("./EndOfFileStream");

* @param length Number of bytes to read
* @returns {any}
* @returns Number of bytes read
*/
async _read(buffer, offset, length) {
assert.ok(!this.request, 'Concurrent read operation?');
if (this.request)
throw new Error('Concurrent read operation?');
const readBuffer = this.s.read(length);

@@ -95,0 +95,0 @@ if (readBuffer) {

{
"name": "peek-readable",
"version": "3.1.1",
"version": "3.1.2",
"description": "Read and peek from a readable stream",

@@ -46,3 +46,3 @@ "author": {

"@types/mocha": "^8.2.0",
"@types/node": "^14.14.19",
"@types/node": "^14.14.20",
"@typescript-eslint/eslint-plugin": "^2.34.0",

@@ -49,0 +49,0 @@ "@typescript-eslint/parser": "^2.34.0",

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