Skip to content
This repository was archived by the owner on May 26, 2025. It is now read-only.

Commit 4a875df

Browse files
authored
Merge pull request #1 from balena-io-modules/emit-errors-fork
Release the fork as a @balena module until the PR gets merged
2 parents 5af50c2 + 61d321e commit 4a875df

File tree

4 files changed

+22
-6
lines changed

4 files changed

+22
-6
lines changed

CHANGELOG.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# Change Log
2+
3+
All notable changes to this project will be documented in this file
4+
automatically by Versionist. DO NOT EDIT THIS FILE MANUALLY!
5+
This project adheres to [Semantic Versioning](http://semver.org/).
6+
7+
## 0.2.2 - 2016-09-27
8+
9+
* Tolerate version mis-matches for ReadableStream library; v0.2.2 [Gabriel Wicke]

README.md

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
1-
# node-web-streams
1+
# @balena/node-web-streams
22
WhatWG web streams and conversion utilities for node.js
33

4+
This is a fork of [gwicke's node-web-streams module](https://github.com/gwicke/node-web-streams),
5+
which exposes webstream read errors as node error events.
6+
This is meant to provide a proper npm release until
7+
[the respective upstream PR](https://github.com/gwicke/node-web-streams/pull/4)
8+
gets merged.
9+
410
This provides the [WhatWG streams](https://streams.spec.whatwg.org) API for
511
node. It leverages the [WhatWG reference
612
implementation](https://github.com/whatwg/streams), but also addresses

lib/conversions.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,8 @@ class NodeReadable extends Readable {
7070
} else {
7171
this._reading = false;
7272
}
73-
});
73+
})
74+
.catch(e => this.emit('error', e));
7475
};
7576
doRead();
7677
}

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"name": "node-web-streams",
2+
"name": "@balena/node-web-streams",
33
"version": "0.2.2",
44
"description": "WhatWG web streams and conversion utilities for node.js",
55
"main": "index.js",
@@ -8,7 +8,7 @@
88
},
99
"repository": {
1010
"type": "git",
11-
"url": "https://github.com/gwicke/node-web-streams.git"
11+
"url": "https://github.com/balena-io-modules/node-web-streams.git"
1212
},
1313
"keywords": [
1414
"streamspec",
@@ -21,10 +21,10 @@
2121
"author": "Gabriel Wicke <[email protected]>",
2222
"license": "Apache-2.0",
2323
"bugs": {
24-
"url": "https://github.com/gwicke/node-web-streams/issues"
24+
"url": "https://github.com/balena-io-modules/node-web-streams/issues"
2525
},
2626
"dependencies": {
2727
"is-stream": "^1.1.0",
28-
"web-streams-polyfill": "git://github.com/gwicke/web-streams-polyfill#spec_performance_improvements"
28+
"web-streams-polyfill": "^1.3.2"
2929
}
3030
}

0 commit comments

Comments
 (0)