@themartiancompany/opfs 2.0.1 → 2.0.3

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 +19 -21
  2. package/package.json +1 -1
package/opfs CHANGED
@@ -26,10 +26,9 @@
26
26
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
27
27
  */
28
28
 
29
- const
30
- _opfs =
31
- require(
32
- "happy-opfs");
29
+ _happy_opfs =
30
+ require(
31
+ "happy-opfs");
33
32
  const
34
33
  _opfs_tools =
35
34
  require(
@@ -37,22 +36,22 @@ const
37
36
  _file =
38
37
  _opfs_tools.file;
39
38
 
40
- function
41
- _read_stream_create(
42
- _input_file,
43
- _options) {
44
- const
45
- _file_obj =
46
- _file(
47
- _input_file);
39
+ _read_stream_create =
40
+ function
41
+ (_input_file,
42
+ _options) {
48
43
  const
49
- _writer =
50
- _file_obj.createReader();
51
- return _writer;
52
- }
44
+ _file_obj =
45
+ _file(
46
+ _input_file);
47
+ const
48
+ _writer =
49
+ _file_obj.createReader();
50
+ return _writer;
51
+ };
53
52
 
54
53
  function
55
- _read_stream_create(
54
+ _write_stream_create(
56
55
  _input_file,
57
56
  _options) {
58
57
  const
@@ -65,10 +64,9 @@ function
65
64
  return _writer;
66
65
  }
67
66
 
68
-
69
67
  module.exports =
70
- _opfs;
68
+ _happy_opfs;
71
69
  module.exports.createReadStream =
72
70
  _read_stream_create;
73
- module.exports.createWriteStream =
74
- _write_stream_create;
71
+ module.exports.createWriteStream =
72
+ _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.1",
7
+ "2.0.3",
8
8
  "homepage":
9
9
  "https://github.com/themartiancompany/opfs",
10
10
  "license":