@zwa73/utils 1.0.37 → 1.0.38

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.
@@ -53,7 +53,8 @@ var UtilFT;
53
53
  return true;
54
54
  }
55
55
  await fs.promises.mkdir(path.dirname(filePath), { recursive: true });
56
- await fs.promises.open(filePath, 'w');
56
+ const filehandle = await fs.promises.open(filePath, 'w');
57
+ await filehandle.close();
57
58
  return true;
58
59
  }
59
60
  catch (e) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zwa73/utils",
3
- "version": "1.0.37",
3
+ "version": "1.0.38",
4
4
  "description": "my utils",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -50,7 +50,8 @@ export async function createPath(filePath: string, isDir?:boolean):Promise<boole
50
50
  return true;
51
51
  }
52
52
  await fs.promises.mkdir(path.dirname(filePath), {recursive: true});
53
- await fs.promises.open(filePath, 'w');
53
+ const filehandle = await fs.promises.open(filePath, 'w');
54
+ await filehandle.close();
54
55
  return true;
55
56
  }
56
57
  catch(e){