asset-pipe-js-reader
Advanced tools
Comparing version 1.0.0-beta.2 to 1.0.0-beta.3
@@ -47,8 +47,8 @@ 'use strict'; | ||
}); | ||
strm.on('file found', () => { | ||
this.emit('file found'); | ||
strm.on('file found', (file) => { | ||
this.emit('file found', file); | ||
merged.add(strm.pipe(JSONStream.parse('*'))); | ||
}); | ||
strm.on('file not found', () => { | ||
this.emit('file not found'); | ||
strm.on('file not found', (file) => { | ||
this.emit('file not found', file); | ||
}); | ||
@@ -55,0 +55,0 @@ }); |
{ | ||
"name": "asset-pipe-js-reader", | ||
"version": "1.0.0-beta.2", | ||
"version": "1.0.0-beta.3", | ||
"author": { | ||
@@ -5,0 +5,0 @@ "name": "Trygve Lie", |
@@ -79,4 +79,4 @@ # asset-pipe-js-reader | ||
- `error` - When an error occured in the pipeline. Emits with: `error`. | ||
- `file found` - When a file we want to read is found. | ||
- `file not saved` - When a file we want to read is not found. Emits with: `error`. | ||
- `file found` - When a file we want to read is found. Emits with: `file`. | ||
- `file not saved` - When a file we want to read is not found. Emits with: `file`. | ||
- `pipeline ready` - When the pipeline is ready to start bundling asset feeds. | ||
@@ -83,0 +83,0 @@ - `pipeline empty` - When the pipeline is empty. Iow; it could not load any of the files its supposed to read so there it nothing to produce. |
6750