@ljharb/through
Advanced tools
Comparing version 2.3.11 to 2.3.12
@@ -8,2 +8,13 @@ # Changelog | ||
## [v2.3.12](https://github.com/ljharb/through/compare/v2.3.11...v2.3.12) - 2024-01-24 | ||
### Commits | ||
- [patch] add TS types [`0b68b9d`](https://github.com/ljharb/through/commit/0b68b9dc1655edbf5dc81cccdb3ef23dcd8e4bbd) | ||
- [readme] correct requires; remove redundant license section [`90ff780`](https://github.com/ljharb/through/commit/90ff780f9c3f2c2fb345b33c87e0be080dbf7950) | ||
- [Dev Deps] update `aud`, `npmignore`, `tape` [`f4456ce`](https://github.com/ljharb/through/commit/f4456ceaf2b216858e7652c9eef8d96badbad678) | ||
- [Deps] update `call-bind` [`c1b7daa`](https://github.com/ljharb/through/commit/c1b7daaf9ea8138d90caf7cfe7250a09760034c2) | ||
- [Dev Deps] update `tape` [`74a75ac`](https://github.com/ljharb/through/commit/74a75acadcca26c71ec15f0f0d48e3a9265cebf3) | ||
- [meta] add `sideEffects` flag [`dcfef36`](https://github.com/ljharb/through/commit/dcfef3615e7df63219aa6184469f4b2a1e61cb0b) | ||
## [v2.3.11](https://github.com/ljharb/through/compare/v2.3.10...v2.3.11) - 2023-10-11 | ||
@@ -10,0 +21,0 @@ |
@@ -6,4 +6,7 @@ 'use strict'; | ||
/** @typedef {import('./through').ThroughStream} ThroughStream */ | ||
// create a readable writable stream. | ||
/** @type {import('./through')} */ | ||
function through(write, end, opts) { | ||
@@ -15,5 +18,6 @@ var writeBound = callBind(write || function (data) { this.queue(data); }); | ||
var destroyed = false; | ||
var buffer = []; | ||
/** @type {unknown[]} */ var buffer = []; | ||
var _ended = false; | ||
var stream = new Stream(); | ||
// @ts-expect-error | ||
/** @type {ThroughStream} */ var stream = new Stream(); | ||
stream.readable = true; | ||
@@ -20,0 +24,0 @@ stream.writable = true; |
{ | ||
"name": "@ljharb/through", | ||
"version": "2.3.11", | ||
"version": "2.3.12", | ||
"description": "simplified stream construction", | ||
"main": "index.js", | ||
"types": "./through.d.ts", | ||
"sideEffects": false, | ||
"scripts": { | ||
@@ -11,2 +13,5 @@ "prepack": "npmignore --auto --commentLines=autogenerated", | ||
"lint": "eslint --ext=js,mjs .", | ||
"postlint": "npm run tsc", | ||
"tsc": "tsc -p .", | ||
"posttsc": "attw --pack", | ||
"pretest": "npm run lint", | ||
@@ -20,7 +25,9 @@ "tests-only": "nyc tape 'test/**/*.js'", | ||
"dependencies": { | ||
"call-bind": "^1.0.2" | ||
"call-bind": "^1.0.5" | ||
}, | ||
"devDependencies": { | ||
"@arethetypeswrong/cli": "^0.13.6", | ||
"@ljharb/eslint-config": "^21.1.0", | ||
"aud": "^2.0.3", | ||
"@types/call-bind": "^1.0.5", | ||
"aud": "^2.0.4", | ||
"auto-changelog": "^2.4.0", | ||
@@ -30,7 +37,8 @@ "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", | ||
"stream-spec": "^0.3.6", | ||
"tape": "^5.7.0" | ||
"tape": "^5.7.4", | ||
"typescript": "^5.4.0-dev.20240124" | ||
}, | ||
@@ -37,0 +45,0 @@ "keywords": [ |
@@ -22,3 +22,3 @@ # @ljharb/through <sup>[![Version Badge][npm-version-svg]][package-url]</sup> | ||
``` js | ||
var through = require('through') | ||
var through = require('@ljharb/through') | ||
@@ -37,3 +37,3 @@ through(function write(data) { | ||
``` js | ||
var through = require('through') | ||
var through = require('@ljharb/through') | ||
@@ -60,3 +60,3 @@ through(function write(data) { | ||
``` js | ||
var through = require('through') | ||
var through = require('@ljharb/through') | ||
@@ -70,6 +70,2 @@ //like this | ||
## License | ||
MIT / Apache2 | ||
[package-url]: https://npmjs.org/package/@ljharb/through | ||
@@ -76,0 +72,0 @@ [npm-version-svg]: https://versionbadg.es/ljharb/through.svg |
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
39910
15
467
14
82
Updatedcall-bind@^1.0.5