@themartiancompany/fs 0.0.19 → 0.0.20
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.
- package/eslint.config.mjs +3 -2
- package/fs +8 -7
- package/package.json +1 -1
package/eslint.config.mjs
CHANGED
|
@@ -34,7 +34,8 @@ const
|
|
|
34
34
|
_ignores = [
|
|
35
35
|
"build/**",
|
|
36
36
|
"dist/**",
|
|
37
|
-
|
|
37
|
+
`**/${_project}-worker.js`,
|
|
38
|
+
`**/*.${_project}-worker.js`,
|
|
38
39
|
`**/${_project}.js`,
|
|
39
40
|
`**/*.${_project}.js`,
|
|
40
41
|
"eslint.config.js"
|
|
@@ -49,7 +50,7 @@ export default defineConfig([
|
|
|
49
50
|
"error" },
|
|
50
51
|
files:
|
|
51
52
|
[ "**/*.{js,mjs,cjs}",
|
|
52
|
-
|
|
53
|
+
`**/${_project}` ],
|
|
53
54
|
plugins:
|
|
54
55
|
{ js },
|
|
55
56
|
extends:
|
package/fs
CHANGED
|
@@ -93,7 +93,7 @@ async function
|
|
|
93
93
|
}
|
|
94
94
|
else if ( _module_name == 'opfs' ) {
|
|
95
95
|
_fs =
|
|
96
|
-
await
|
|
96
|
+
await _opfs_module_get();
|
|
97
97
|
}
|
|
98
98
|
else if ( _module_name == 'fs' ) {
|
|
99
99
|
_fs =
|
|
@@ -108,14 +108,15 @@ async function
|
|
|
108
108
|
const
|
|
109
109
|
_msg =
|
|
110
110
|
"Unknown file system module " +
|
|
111
|
-
`'${_module_name}'
|
|
111
|
+
`'${_module_name}'.`;
|
|
112
112
|
const
|
|
113
|
-
_error =
|
|
114
|
-
|
|
115
|
-
_msg
|
|
113
|
+
_error = {
|
|
114
|
+
"msg":
|
|
115
|
+
_msg
|
|
116
|
+
};
|
|
116
117
|
console.error(
|
|
117
118
|
_msg);
|
|
118
|
-
throw _error
|
|
119
|
+
throw _error;
|
|
119
120
|
}
|
|
120
121
|
return _fs;
|
|
121
122
|
}
|
|
@@ -160,7 +161,7 @@ async function
|
|
|
160
161
|
_is_dir =
|
|
161
162
|
! _file_info.isFile();
|
|
162
163
|
return _is_dir;
|
|
163
|
-
}
|
|
164
|
+
};
|
|
164
165
|
return _is_dir_sync;
|
|
165
166
|
}
|
|
166
167
|
|