@ljharb/resumer
Advanced tools
Comparing version 0.0.1 to 0.1.0
@@ -8,2 +8,13 @@ # Changelog | ||
## [v0.1.0](https://github.com/ljharb/resumer/compare/v0.0.1...v0.1.0) - 2024-01-25 | ||
### Commits | ||
- [patch] add types [`8aa2f54`](https://github.com/ljharb/resumer/commit/8aa2f54a37a848b11e91f089891c46ae7d06aafd) | ||
- [meta] update license text so GitHub can identify it [`d3b4604`](https://github.com/ljharb/resumer/commit/d3b4604a473623e8594d1a192d8110e6369e2cbd) | ||
- [Dev Deps] update `concat-stream`, `tape` [`8f5f559`](https://github.com/ljharb/resumer/commit/8f5f5591058e099b6b0de29898712af526a5a3a2) | ||
- [Dev Deps] update `aud`, `npmignore`, `tape` [`aab7103`](https://github.com/ljharb/resumer/commit/aab71039776d36379a466cd8adda24b999b4879d) | ||
- [Deps] update `@ljharb/through` [`05c8993`](https://github.com/ljharb/resumer/commit/05c8993096d999f89e93e9a5277e48fbc4b64062) | ||
- [meta] add `sideEffects` flag [`106b1f0`](https://github.com/ljharb/resumer/commit/106b1f0cb7e72778ff4fee4e0e3695c4e814b2ad) | ||
## [v0.0.1](https://github.com/ljharb/resumer/compare/v0.0.0...v0.0.1) - 2023-07-17 | ||
@@ -10,0 +21,0 @@ |
@@ -9,3 +9,4 @@ 'use strict'; | ||
module.exports = function (write, end) { | ||
/** @type {(write: Parameters<through>[0], end: Parameters<through>[1]) => ReturnType<through>} */ | ||
module.exports = function resumer(write, end) { | ||
var tr = through(write, end); | ||
@@ -19,2 +20,3 @@ tr.pause(); | ||
paused = true; | ||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/57164 | ||
return pause.apply(this, arguments); | ||
@@ -25,2 +27,3 @@ }; | ||
paused = false; | ||
// @ts-expect-error https://github.com/microsoft/TypeScript/issues/57164 | ||
return resume.apply(this, arguments); | ||
@@ -27,0 +30,0 @@ }; |
{ | ||
"name": "@ljharb/resumer", | ||
"version": "0.0.1", | ||
"version": "0.1.0", | ||
"description": "a through stream that starts paused and resumes on the next tick", | ||
"main": "index.js", | ||
"sideEffects": false, | ||
"scripts": { | ||
@@ -11,2 +12,3 @@ "prepack": "npmignore --auto --commentLines=autogenerated", | ||
"lint": "eslint --ext=js,mjs .", | ||
"postlint": "tsc -p .", | ||
"pretest": "npm run lint", | ||
@@ -20,15 +22,17 @@ "tests-only": "nyc tape 'test/**/*.js'", | ||
"dependencies": { | ||
"@ljharb/through": "^2.3.9" | ||
"@ljharb/through": "^2.3.12" | ||
}, | ||
"devDependencies": { | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"aud": "^2.0.3", | ||
"@types/node": "^20.11.7", | ||
"aud": "^2.0.4", | ||
"auto-changelog": "^2.4.0", | ||
"concat-stream": "^0.1.1", | ||
"concat-stream": "^1.6.2", | ||
"eslint": "=8.8.0", | ||
"in-publish": "^2.0.1", | ||
"npmignore": "^0.3.0", | ||
"npmignore": "^0.3.1", | ||
"nyc": "^10.3.2", | ||
"safe-publish-latest": "^2.0.0", | ||
"tape": "^5.6.5" | ||
"tape": "^5.7.4", | ||
"typescript": "^5.4.0-dev.20240126" | ||
}, | ||
@@ -35,0 +39,0 @@ "testling": { |
@@ -18,3 +18,3 @@ 'use strict'; | ||
var s = createStream(); | ||
s.pipe(concat(function (err, body) { | ||
s.pipe(concat(function (body) { | ||
t.equal(body, 'beep boop\n'); | ||
@@ -36,3 +36,3 @@ })); | ||
s.pipe(concat(function (err, body) { | ||
s.pipe(concat(function (body) { | ||
t.equal(paused, false); | ||
@@ -39,0 +39,0 @@ t.equal(body, 'beep boop\n'); |
@@ -32,3 +32,3 @@ 'use strict'; | ||
s.pipe(concat(function (err, body) { | ||
s.pipe(concat(function (body) { | ||
t.equal(body, 'BEGIN\nRAWR\nEND\n'); | ||
@@ -35,0 +35,0 @@ })); |
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
22679
12
194
12
Updated@ljharb/through@^2.3.12