@themartiancompany/opfs 2.0.0 → 2.0.1

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/opfs +18 -2
  2. package/package.json +1 -1
package/opfs CHANGED
@@ -37,6 +37,20 @@ const
37
37
  _file =
38
38
  _opfs_tools.file;
39
39
 
40
+ function
41
+ _read_stream_create(
42
+ _input_file,
43
+ _options) {
44
+ const
45
+ _file_obj =
46
+ _file(
47
+ _input_file);
48
+ const
49
+ _writer =
50
+ _file_obj.createReader();
51
+ return _writer;
52
+ }
53
+
40
54
  function
41
55
  _read_stream_create(
42
56
  _input_file,
@@ -51,8 +65,10 @@ function
51
65
  return _writer;
52
66
  }
53
67
 
54
- _opfs.createReadStream =
55
- _read_stream_create;
56
68
 
57
69
  module.exports =
58
70
  _opfs;
71
+ module.exports.createReadStream =
72
+ _read_stream_create;
73
+ module.exports.createWriteStream =
74
+ _write_stream_create;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description":
5
5
  "Browser-compatible (OPFS) Node/Deno 'fs' module.",
6
6
  "version":
7
- "2.0.0",
7
+ "2.0.1",
8
8
  "homepage":
9
9
  "https://github.com/themartiancompany/opfs",
10
10
  "license":