peek-readable
Advanced tools
Comparing version 3.1.1 to 3.1.2
@@ -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", |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
14315