frida-fs 4.0.1 → 4.0.2

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.
Files changed (2) hide show
  1. package/index.js +2 -0
  2. package/package.json +1 -1
package/index.js CHANGED
@@ -1,3 +1,4 @@
1
+ import {Buffer} from 'buffer';
1
2
  import stream from 'stream';
2
3
 
3
4
  const {platform, pointerSize} = Process;
@@ -127,6 +128,7 @@ class ReadStream extends stream.Readable {
127
128
  .catch(error => {
128
129
  this._readRequest = null;
129
130
  this._closeInput();
131
+ this.emit('error', error);
130
132
  this.push(null);
131
133
  });
132
134
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "frida-fs",
3
- "version": "4.0.1",
3
+ "version": "4.0.2",
4
4
  "description": "Create a stream from a filesystem resource",
5
5
  "main": "index.js",
6
6
  "type": "module",