document-dataply 0.0.9-alpha.7 → 0.0.9-alpha.8
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/cjs/index.js +5 -5
- package/package.json +2 -2
package/dist/cjs/index.js
CHANGED
|
@@ -8515,6 +8515,11 @@ var require_cjs = __commonJS({
|
|
|
8515
8515
|
const emptyManager = this.pageFactory.getManagerFromType(PageManager.CONSTANT.PAGE_TYPE_EMPTY);
|
|
8516
8516
|
const firstFreeIndex = newPageIndex + 1;
|
|
8517
8517
|
const lastFreeIndex = newPageIndex + preallocationCount - 1;
|
|
8518
|
+
metadataManager.setPageCount(metadata, newTotalCount);
|
|
8519
|
+
if (preallocationCount > 1) {
|
|
8520
|
+
metadataManager.setFreePageId(metadata, firstFreeIndex);
|
|
8521
|
+
}
|
|
8522
|
+
await this.setPage(0, metadata, tx);
|
|
8518
8523
|
for (let i = firstFreeIndex; i <= lastFreeIndex; i++) {
|
|
8519
8524
|
const emptyPage = emptyManager.create(this.pageSize, i);
|
|
8520
8525
|
const nextId = i < lastFreeIndex ? i + 1 : -1;
|
|
@@ -8522,11 +8527,6 @@ var require_cjs = __commonJS({
|
|
|
8522
8527
|
await this.setPage(i, emptyPage, tx);
|
|
8523
8528
|
await this.updateBitmap(i, true, tx);
|
|
8524
8529
|
}
|
|
8525
|
-
if (preallocationCount > 1) {
|
|
8526
|
-
metadataManager.setFreePageId(metadata, firstFreeIndex);
|
|
8527
|
-
}
|
|
8528
|
-
metadataManager.setPageCount(metadata, newTotalCount);
|
|
8529
|
-
await this.setPage(0, metadata, tx);
|
|
8530
8530
|
return newPageIndex;
|
|
8531
8531
|
}
|
|
8532
8532
|
/**
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "document-dataply",
|
|
3
|
-
"version": "0.0.9-alpha.
|
|
3
|
+
"version": "0.0.9-alpha.8",
|
|
4
4
|
"description": "Simple and powerful JSON document database supporting complex queries and flexible indexing policies.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "izure <admin@izure.org>",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"dataply"
|
|
43
43
|
],
|
|
44
44
|
"dependencies": {
|
|
45
|
-
"dataply": "^0.0.24-alpha.
|
|
45
|
+
"dataply": "^0.0.24-alpha.4"
|
|
46
46
|
},
|
|
47
47
|
"devDependencies": {
|
|
48
48
|
"@types/jest": "^30.0.0",
|