crash-js 0.1.78 → 0.1.80

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/crash-js CHANGED
@@ -126,7 +126,6 @@ function
126
126
  console.error(
127
127
  _out);
128
128
  if ( _exit === "1" ) {
129
- console.log(_process_exit);
130
129
  _process_exit(
131
130
  1);
132
131
  }
@@ -301,6 +300,8 @@ module.exports = {
301
300
  _msg_error,
302
301
  _msg_info_obj:
303
302
  _msg_info_obj,
303
+ _mv:
304
+ _fs_utils._mv,
304
305
  _path_join:
305
306
  _fs_utils._path_join,
306
307
  _printf:
@@ -313,8 +314,6 @@ module.exports = {
313
314
  _pwd,
314
315
  _sleep:
315
316
  _sleep,
316
- _split:
317
- _fs_utils._split,
318
317
  _stat:
319
318
  _stat,
320
319
  _yargv_get:
package/crash-js/fs-utils CHANGED
@@ -165,6 +165,58 @@ function
165
165
  return _json;
166
166
  }
167
167
 
168
+ function
169
+ _ls(
170
+ _args) {
171
+ let
172
+ _read_dir,
173
+ _return;
174
+ if ( typeof(
175
+ _fs.readdirSync) === 'undefined' ) {
176
+ _read_dir =
177
+ _fs.readDirSync;
178
+ _return =
179
+ _read_dir.apply(
180
+ null,
181
+ [_args]).unwrap()
182
+ }
183
+ else {
184
+ _read_dir =
185
+ _fs.readdirSync;
186
+ _return =
187
+ _read_dir.apply(
188
+ null,
189
+ [_args]);
190
+ }
191
+ return _return;
192
+ }
193
+
194
+ function
195
+ _mv(
196
+ _args) {
197
+ let
198
+ _rename,
199
+ _return;
200
+ if ( typeof(
201
+ _fs.renameSync) === 'undefined' ) {
202
+ _rename =
203
+ _fs.moveSync;
204
+ _return =
205
+ _rename.apply(
206
+ null,
207
+ [_args]).unwrap()
208
+ }
209
+ else {
210
+ _rename =
211
+ _fs.renameSync;
212
+ _return =
213
+ _rename.apply(
214
+ null,
215
+ [_args]);
216
+ }
217
+ return _return;
218
+ }
219
+
168
220
  function
169
221
  _path_join(
170
222
  _paths) {
@@ -177,15 +229,6 @@ function
177
229
  return _path;
178
230
  }
179
231
 
180
- function
181
- _split(
182
- _in,
183
- _parts,
184
- _out) {
185
- console.log(
186
- "hi");
187
- }
188
-
189
232
  module.exports = {
190
233
  _basename:
191
234
  _basename,
@@ -208,13 +251,13 @@ module.exports = {
208
251
  _json_read:
209
252
  _json_read,
210
253
  _ls:
211
- _fs.readDirSync,
254
+ _ls,
212
255
  _mkdir:
213
256
  _fs.mkdirSync,
257
+ _mv:
258
+ _mv,
214
259
  _path_join:
215
260
  _path_join,
216
- _split:
217
- _split,
218
261
  _stat:
219
262
  _stat
220
263
  };
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name":
3
3
  "crash-js",
4
4
  "version":
5
- "0.1.78",
5
+ "0.1.80",
6
6
  "description":
7
7
  "Crash Javascript library.",
8
8
  "funding":