@undici-plus/streamer 1.0.0 → 1.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -12,4 +12,11 @@ stream.pipe((value)=>...)
12
12
  stream.log() // Hello, World!
13
13
 
14
14
  stream.throw() // ERROR: Hello, World!
15
+ ```
16
+ ## INSTALL
17
+ You can install using `npm` or `pnpm` as follows:
18
+ ```sh
19
+ npm i @undici-plus/streamer
20
+ # or...
21
+ pnpm i @undici-plus/streamer
15
22
  ```
package/index.mts CHANGED
@@ -1,8 +1,4 @@
1
- type Stream<T> = {
2
- pipe: (callback: (value: T) => void) => void;
3
- throw: () => never;
4
- log: () => void;
5
- }
1
+ import { Stream } from "@undici-plus/streamer-types"
6
2
 
7
3
  export function newStream<A>(o: A): Stream<A> {
8
4
  return {
package/package.json CHANGED
@@ -1,13 +1,15 @@
1
1
  {
2
2
  "name": "@undici-plus/streamer",
3
- "version": "1.0.0",
3
+ "version": "1.1.0",
4
4
  "description": "Transforms anything into a stream",
5
5
  "main": "index.mts",
6
6
  "keywords": [],
7
7
  "author": "",
8
8
  "license": "MIT",
9
9
  "type": "module",
10
- "readme": "WEADME.md",
10
+ "dependencies": {
11
+ "@undici-plus/streamer-types": "^1.0.0"
12
+ },
11
13
  "scripts": {
12
14
  "test": "echo \"Error: no test specified\" && exit 1"
13
15
  }