inibase 1.4.9 → 1.5.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/dist/index.js +13 -5
- package/package.json +5 -3
package/dist/index.js
CHANGED
|
@@ -555,7 +555,7 @@ export default class Inibase {
|
|
|
555
555
|
return null;
|
|
556
556
|
}
|
|
557
557
|
default:
|
|
558
|
-
return typeof value ===
|
|
558
|
+
return typeof value === "string" ? value.trim() : value;
|
|
559
559
|
}
|
|
560
560
|
return null;
|
|
561
561
|
}
|
|
@@ -1451,7 +1451,9 @@ export default class Inibase {
|
|
|
1451
1451
|
}
|
|
1452
1452
|
finally {
|
|
1453
1453
|
if (renameList.length)
|
|
1454
|
-
await Promise.allSettled(renameList
|
|
1454
|
+
await Promise.allSettled(renameList
|
|
1455
|
+
.filter(([_, filePath]) => filePath)
|
|
1456
|
+
.map(async ([tempPath, _]) => unlink(tempPath)));
|
|
1455
1457
|
await File.unlock(join(tablePath, ".tmp"), keys);
|
|
1456
1458
|
}
|
|
1457
1459
|
}
|
|
@@ -1497,7 +1499,9 @@ export default class Inibase {
|
|
|
1497
1499
|
}
|
|
1498
1500
|
finally {
|
|
1499
1501
|
if (renameList.length)
|
|
1500
|
-
await Promise.allSettled(renameList
|
|
1502
|
+
await Promise.allSettled(renameList
|
|
1503
|
+
.filter(([_, filePath]) => filePath)
|
|
1504
|
+
.map(async ([tempPath, _]) => unlink(tempPath)));
|
|
1501
1505
|
await File.unlock(join(tablePath, ".tmp"));
|
|
1502
1506
|
}
|
|
1503
1507
|
}
|
|
@@ -1536,7 +1540,9 @@ export default class Inibase {
|
|
|
1536
1540
|
}
|
|
1537
1541
|
finally {
|
|
1538
1542
|
if (renameList.length)
|
|
1539
|
-
await Promise.allSettled(renameList
|
|
1543
|
+
await Promise.allSettled(renameList
|
|
1544
|
+
.filter(([_, filePath]) => filePath)
|
|
1545
|
+
.map(async ([tempPath, _]) => unlink(tempPath)));
|
|
1540
1546
|
await File.unlock(join(tablePath, ".tmp"), keys);
|
|
1541
1547
|
}
|
|
1542
1548
|
}
|
|
@@ -1631,7 +1637,9 @@ export default class Inibase {
|
|
|
1631
1637
|
}
|
|
1632
1638
|
finally {
|
|
1633
1639
|
if (renameList.length)
|
|
1634
|
-
await Promise.allSettled(renameList
|
|
1640
|
+
await Promise.allSettled(renameList
|
|
1641
|
+
.filter(([_, filePath]) => filePath)
|
|
1642
|
+
.map(async ([tempPath, _]) => unlink(tempPath)));
|
|
1635
1643
|
await File.unlock(join(tablePath, ".tmp"));
|
|
1636
1644
|
}
|
|
1637
1645
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "inibase",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"author": {
|
|
6
6
|
"name": "Karim Amahtil",
|
|
@@ -68,7 +68,7 @@
|
|
|
68
68
|
}
|
|
69
69
|
},
|
|
70
70
|
"devDependencies": {
|
|
71
|
-
"@biomejs/biome": "
|
|
71
|
+
"@biomejs/biome": "2.3.10",
|
|
72
72
|
"@types/bun": "^1.2.10",
|
|
73
73
|
"@types/node": "^22.15.2",
|
|
74
74
|
"lefthook": "^1.11.11",
|
|
@@ -78,7 +78,9 @@
|
|
|
78
78
|
},
|
|
79
79
|
"dependencies": {
|
|
80
80
|
"dotenv": "^16.5.0",
|
|
81
|
-
"inison": "^2.0.1"
|
|
81
|
+
"inison": "^2.0.1"
|
|
82
|
+
},
|
|
83
|
+
"optionalDependencies": {
|
|
82
84
|
"re2": "^1.22.1"
|
|
83
85
|
},
|
|
84
86
|
"scripts": {
|