@themartiancompany/fs 0.0.10 → 0.0.12

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/fs +13 -8
  2. package/package.json +7 -1
package/fs CHANGED
@@ -67,9 +67,11 @@ function
67
67
  typeof __webpack_require__ !== 'function' ) {
68
68
  _fs =
69
69
  require(
70
- "fs");
71
- _fs.fsWorkerStart =
72
- _fs_worker_start_get();
70
+ "node:fs");
71
+ _fs[
72
+ "fsWorkerStart"] =
73
+ _fs_worker_start_get(
74
+ _fs);
73
75
  }
74
76
  else {
75
77
  _fs =
@@ -95,9 +97,11 @@ function
95
97
  else if ( _module_name == 'fs' ) {
96
98
  _fs =
97
99
  require(
98
- "fs");
99
- _fs.fsWorkerStart =
100
- _fs_worker_start_get();
100
+ "node:fs");
101
+ _fs[
102
+ "fsWorkerStart"] =
103
+ _fs_worker_start_get(
104
+ _fs);
101
105
  }
102
106
  else {
103
107
  const
@@ -120,11 +124,12 @@ const
120
124
  _fs_module_auto_detect();
121
125
 
122
126
  function
123
- _fs_worker_start_get() {
127
+ _fs_worker_start_get(
128
+ _fs_module) {
124
129
  let
125
130
  _fs_worker_start_fun;
126
131
  _fs_worker_start_fun =
127
- _fs._fs_worker_start;
132
+ _fs_module.fsWorkerStart;
128
133
  const
129
134
  _fs_worker_start_fun_type =
130
135
  typeof(
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "description":
5
5
  "Platform-independent File System ('fs') module.",
6
6
  "version":
7
- "0.0.10",
7
+ "0.0.12",
8
8
  "homepage":
9
9
  "https://github.com/themartiancompany/tmcfs",
10
10
  "license":
@@ -23,6 +23,8 @@
23
23
  },
24
24
  "keywords": [
25
25
  "fs",
26
+ "tmcfs",
27
+ "node:fs",
26
28
  "system",
27
29
  "file",
28
30
  "directory",
@@ -78,5 +80,9 @@
78
80
  "optionalDependencies": {
79
81
  "opfs":
80
82
  "npm:@themartiancompany/opfs@^2.0.10"
83
+ },
84
+ "overrides": {
85
+ "fs":
86
+ "node:fs"
81
87
  }
82
88
  }