@themartiancompany/opfs 2.0.1 → 2.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/opfs +21 -21
  2. package/package.json +1 -1
package/opfs CHANGED
@@ -26,10 +26,11 @@
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
+ _util =
30
+ require('util');
31
+ _happy_opfs =
32
+ require(
33
+ "happy-opfs");
33
34
  const
34
35
  _opfs_tools =
35
36
  require(
@@ -37,22 +38,22 @@ const
37
38
  _file =
38
39
  _opfs_tools.file;
39
40
 
40
- function
41
- _read_stream_create(
42
- _input_file,
43
- _options) {
44
- const
45
- _file_obj =
46
- _file(
47
- _input_file);
41
+ _read_stream_create =
42
+ function
43
+ (_input_file,
44
+ _options) {
48
45
  const
49
- _writer =
50
- _file_obj.createReader();
51
- return _writer;
52
- }
46
+ _file_obj =
47
+ _file(
48
+ _input_file);
49
+ const
50
+ _writer =
51
+ _file_obj.createReader();
52
+ return _writer;
53
+ };
53
54
 
54
55
  function
55
- _read_stream_create(
56
+ _write_stream_create(
56
57
  _input_file,
57
58
  _options) {
58
59
  const
@@ -65,10 +66,9 @@ function
65
66
  return _writer;
66
67
  }
67
68
 
68
-
69
69
  module.exports =
70
- _opfs;
70
+ _happy_opfs;
71
71
  module.exports.createReadStream =
72
72
  _read_stream_create;
73
- module.exports.createWriteStream =
74
- _write_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.1",
7
+ "2.0.2",
8
8
  "homepage":
9
9
  "https://github.com/themartiancompany/opfs",
10
10
  "license":