vvvfs 0.0.9 → 0.1.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.
Files changed (3) hide show
  1. package/README.md +4 -0
  2. package/index.ts +1 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -82,6 +82,10 @@ const vvvfs = new VVVFS("vvvfs", {
82
82
 
83
83
  ## 更新日志
84
84
 
85
+ ### 0.1.0
86
+
87
+ - 修复 `init` 重复初始化时重复写入已存在文件和目录
88
+
85
89
  ### 0.0.9
86
90
 
87
91
  - 更新 `watch` 方法,监听时,返回 `true` 表示取消该操作
package/index.ts CHANGED
@@ -389,6 +389,7 @@ class VVVFS {
389
389
  ];
390
390
  try {
391
391
  for (const file of linuxInitFiles) {
392
+ if (await this.exists(file.path)) continue;
392
393
  await this.db.files.put(file);
393
394
  }
394
395
  } catch (error) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "vvvfs",
3
- "version": "0.0.9",
3
+ "version": "0.1.0",
4
4
  "description": "一个使用IndexDB实现的虚拟文件系统",
5
5
  "keywords": [
6
6
  "Virtual",