@atproto/common
Advanced tools
Comparing version 0.4.1 to 0.4.2
# @atproto/common | ||
## 0.4.2 | ||
### Patch Changes | ||
- [#2464](https://github.com/bluesky-social/atproto/pull/2464) [`98711a147`](https://github.com/bluesky-social/atproto/commit/98711a147a8674337f605c6368f39fc10c2fae93) Thanks [@matthieusieben](https://github.com/matthieusieben)! - Minor optimization | ||
## 0.4.1 | ||
@@ -4,0 +10,0 @@ |
@@ -6,8 +6,6 @@ "use strict"; | ||
const forwardStreamErrors = (...streams) => { | ||
for (let i = 0; i < streams.length; ++i) { | ||
const stream = streams[i]; | ||
const next = streams[i + 1]; | ||
if (next) { | ||
stream.once('error', (err) => next.emit('error', err)); | ||
} | ||
for (let i = 1; i < streams.length; ++i) { | ||
const prev = streams[i - 1]; | ||
const next = streams[i]; | ||
prev.once('error', (err) => next.emit('error', err)); | ||
} | ||
@@ -14,0 +12,0 @@ }; |
{ | ||
"name": "@atproto/common", | ||
"version": "0.4.1", | ||
"version": "0.4.2", | ||
"license": "MIT", | ||
@@ -5,0 +5,0 @@ "description": "Shared web-platform-friendly code for atproto libraries", |
@@ -10,8 +10,7 @@ import { | ||
export const forwardStreamErrors = (...streams: Stream[]) => { | ||
for (let i = 0; i < streams.length; ++i) { | ||
const stream = streams[i] | ||
const next = streams[i + 1] | ||
if (next) { | ||
stream.once('error', (err) => next.emit('error', err)) | ||
} | ||
for (let i = 1; i < streams.length; ++i) { | ||
const prev = streams[i - 1] | ||
const next = streams[i] | ||
prev.once('error', (err) => next.emit('error', err)) | ||
} | ||
@@ -18,0 +17,0 @@ } |
Sorry, the diff of this file is not supported yet
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
74528
1444