crash-js 0.1.115 → 0.1.117
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 +10 -3
- package/package.json +1 -1
package/crash-js/fs-utils
CHANGED
|
@@ -30,7 +30,7 @@
|
|
|
30
30
|
const
|
|
31
31
|
_utils_module =
|
|
32
32
|
require(
|
|
33
|
-
"utils");
|
|
33
|
+
"./utils");
|
|
34
34
|
const
|
|
35
35
|
_os_tmpdir_get =
|
|
36
36
|
_utils._os_tmpdir_get;
|
|
@@ -305,8 +305,15 @@ _mktemp(
|
|
|
305
305
|
}
|
|
306
306
|
if ( _directory ) {
|
|
307
307
|
try {
|
|
308
|
-
|
|
309
|
-
|
|
308
|
+
const
|
|
309
|
+
_dir =
|
|
310
|
+
await _mkdtemp(
|
|
311
|
+
_prefix);
|
|
312
|
+
_msg =
|
|
313
|
+
`Created directory '${_dir}'.`;
|
|
314
|
+
_msg_info(
|
|
315
|
+
_msg);
|
|
316
|
+
return _dir;
|
|
310
317
|
}
|
|
311
318
|
catch(
|
|
312
319
|
_error) {
|