bare-fs 1.9.0 → 1.10.0
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/binding.c +4 -4
- package/index.js +0 -4
- package/package.json +1 -1
package/binding.c
CHANGED
|
@@ -1005,7 +1005,7 @@ bare_fs_rename_sync (js_env_t *env, js_callback_info_t *info) {
|
|
|
1005
1005
|
js_get_env_loop(env, &loop);
|
|
1006
1006
|
|
|
1007
1007
|
uv_fs_t req;
|
|
1008
|
-
uv_fs_rename(loop, &req, (char *) src, (char *) dest,
|
|
1008
|
+
uv_fs_rename(loop, &req, (char *) src, (char *) dest, NULL);
|
|
1009
1009
|
|
|
1010
1010
|
if (req.result < 0) {
|
|
1011
1011
|
js_throw_error(env, uv_err_name(req.result), uv_strerror(req.result));
|
|
@@ -1072,7 +1072,7 @@ bare_fs_mkdir_sync (js_env_t *env, js_callback_info_t *info) {
|
|
|
1072
1072
|
js_get_env_loop(env, &loop);
|
|
1073
1073
|
|
|
1074
1074
|
uv_fs_t req;
|
|
1075
|
-
uv_fs_mkdir(loop, &req, (char *) path, mode,
|
|
1075
|
+
uv_fs_mkdir(loop, &req, (char *) path, mode, NULL);
|
|
1076
1076
|
|
|
1077
1077
|
if (req.result < 0) {
|
|
1078
1078
|
js_throw_error(env, uv_err_name(req.result), uv_strerror(req.result));
|
|
@@ -1131,7 +1131,7 @@ bare_fs_rmdir_sync (js_env_t *env, js_callback_info_t *info) {
|
|
|
1131
1131
|
js_get_env_loop(env, &loop);
|
|
1132
1132
|
|
|
1133
1133
|
uv_fs_t req;
|
|
1134
|
-
uv_fs_rmdir(loop, &req, (char *) path,
|
|
1134
|
+
uv_fs_rmdir(loop, &req, (char *) path, NULL);
|
|
1135
1135
|
|
|
1136
1136
|
if (req.result < 0) {
|
|
1137
1137
|
js_throw_error(env, uv_err_name(req.result), uv_strerror(req.result));
|
|
@@ -1511,7 +1511,7 @@ bare_fs_unlink_sync (js_env_t *env, js_callback_info_t *info) {
|
|
|
1511
1511
|
js_get_env_loop(env, &loop);
|
|
1512
1512
|
|
|
1513
1513
|
uv_fs_t req;
|
|
1514
|
-
uv_fs_unlink(loop, &req, (char *) path,
|
|
1514
|
+
uv_fs_unlink(loop, &req, (char *) path, NULL);
|
|
1515
1515
|
|
|
1516
1516
|
if (req.result < 0) {
|
|
1517
1517
|
js_throw_error(env, uv_err_name(req.result), uv_strerror(req.result));
|
package/index.js
CHANGED
|
@@ -55,10 +55,6 @@ binding.init(fs.handle, fs, onresponse)
|
|
|
55
55
|
|
|
56
56
|
process.on('exit', () => binding.destroy(fs.handle))
|
|
57
57
|
|
|
58
|
-
if (process.thread) {
|
|
59
|
-
process.thread.on('exit', () => binding.destroy(fs.handle))
|
|
60
|
-
}
|
|
61
|
-
|
|
62
58
|
// Lightly-modified from the Node FS internal utils.
|
|
63
59
|
function flagsToNumber (flags) {
|
|
64
60
|
switch (flags) {
|