peek-readable
Advanced tools
Comparing version 3.1.3 to 3.1.4
@@ -0,0 +0,0 @@ export declare const defaultMessages = "End-Of-Stream"; |
@@ -0,0 +0,0 @@ "use strict"; |
@@ -0,0 +0,0 @@ /// <reference types="node" /> |
@@ -109,6 +109,4 @@ "use strict"; | ||
return this.request.deferred.promise.then(n => { | ||
this.request = null; | ||
return n; | ||
}, err => { | ||
this.request = null; | ||
throw err; | ||
@@ -123,2 +121,3 @@ }); | ||
this.request.deferred.resolve(readBuffer.length); | ||
this.request = null; | ||
} | ||
@@ -125,0 +124,0 @@ else { |
{ | ||
"name": "peek-readable", | ||
"version": "3.1.3", | ||
"version": "3.1.4", | ||
"description": "Read and peek from a readable stream", | ||
@@ -45,17 +45,17 @@ "author": { | ||
"devDependencies": { | ||
"@types/mocha": "^8.2.0", | ||
"@types/node": "^14.14.20", | ||
"@typescript-eslint/eslint-plugin": "^2.34.0", | ||
"@typescript-eslint/parser": "^2.34.0", | ||
"@types/mocha": "^8.2.3", | ||
"@types/node": "^16.3.1", | ||
"@typescript-eslint/eslint-plugin": "^4.28.2", | ||
"@typescript-eslint/parser": "^4.28.2", | ||
"add": "^2.0.6", | ||
"chai": "^4.2.0", | ||
"coveralls": "^3.1.0", | ||
"del-cli": "^3.0.1", | ||
"eslint": "^6.8.0", | ||
"mocha": "^7.2.0", | ||
"chai": "^4.3.4", | ||
"coveralls": "^3.1.1", | ||
"del-cli": "^4.0.0", | ||
"eslint": "^7.30.0", | ||
"mocha": "^9.0.2", | ||
"nyc": "^15.1.0", | ||
"remark-cli": "^9.0.0", | ||
"remark-preset-lint-recommended": "^5.0.0", | ||
"ts-node": "^9.1.1", | ||
"typescript": "^4.1.3" | ||
"ts-node": "^10.1.0", | ||
"typescript": "^4.3.5" | ||
}, | ||
@@ -62,0 +62,0 @@ "keywords": [ |
@@ -96,10 +96,1 @@ ![Node.js CI](https://github.com/Borewit/peek-readable/workflows/Node.js%20CI/badge.svg) | ||
``` | ||
If you have to skip a part of the data, you can use ignore: | ||
```js | ||
(async () => { | ||
//... | ||
await streamReader.ignore(16); | ||
})(); | ||
``` | ||
Sorry, the diff of this file is not supported yet
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
14347
199
96