crash-js 0.1.125 → 0.1.127

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/crash-js/fs-utils +20 -13
  2. package/package.json +2 -2
package/crash-js/fs-utils CHANGED
@@ -150,19 +150,26 @@ function
150
150
 
151
151
  function
152
152
  _file_read(
153
- _path) {
154
- let
155
- _read_opts,
156
- _return;
157
- _read_opts =
158
- {"encoding":
159
- "utf8",
160
- "flag":
161
- 'r'};
162
- _return =
163
- _fs_read_file_sync(
164
- _path,
165
- _read_opts);
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
 
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.125",
5
+ "0.1.127",
6
6
  "description":
7
7
  "Crash Javascript library.",
8
8
  "funding":
@@ -62,7 +62,7 @@
62
62
  },
63
63
  "devDependencies": {
64
64
  "crash-js-webpack":
65
- "^0.0.19",
65
+ "^0.0.20",
66
66
  "eslint":
67
67
  "^10.3.0",
68
68
  "globals":