crash-js 0.1.125 → 0.1.126
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/crash-js/fs-utils +20 -13
- package/package.json +1 -1
package/crash-js/fs-utils
CHANGED
|
@@ -150,19 +150,26 @@ function
|
|
|
150
150
|
|
|
151
151
|
function
|
|
152
152
|
_file_read(
|
|
153
|
-
_path
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
153
|
+
_path,
|
|
154
|
+
_read_opts) {
|
|
155
|
+
const
|
|
156
|
+
_read_opts_type =
|
|
157
|
+
typeof(
|
|
158
|
+
_read_opts);
|
|
159
|
+
if ( _read_opts_type === "undefined" ||
|
|
160
|
+
_read_opts == {} ||
|
|
161
|
+
_read_opts == "" ) {
|
|
162
|
+
_read_opts =
|
|
163
|
+
{"encoding":
|
|
164
|
+
"utf8",
|
|
165
|
+
"flag":
|
|
166
|
+
'r'};
|
|
167
|
+
}
|
|
168
|
+
const
|
|
169
|
+
_return =
|
|
170
|
+
_fs_read_file_sync(
|
|
171
|
+
_path,
|
|
172
|
+
_read_opts);
|
|
166
173
|
return _return;
|
|
167
174
|
}
|
|
168
175
|
|