serializable-bptree 3.4.0-alpha.0 → 3.4.0-alpha.1
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.cjs +2 -2
- package/dist/esm/index.mjs +2 -2
- package/package.json +1 -1
package/dist/cjs/index.cjs
CHANGED
|
@@ -1656,7 +1656,7 @@ var SerializeStrategy = class {
|
|
|
1656
1656
|
var SerializeStrategySync = class extends SerializeStrategy {
|
|
1657
1657
|
getHeadData(key, defaultValue) {
|
|
1658
1658
|
if (!Object.hasOwn(this.head.data, key)) {
|
|
1659
|
-
|
|
1659
|
+
this.setHeadData(key, defaultValue);
|
|
1660
1660
|
}
|
|
1661
1661
|
return this.head.data[key];
|
|
1662
1662
|
}
|
|
@@ -1707,7 +1707,7 @@ var InMemoryStoreStrategySync = class extends SerializeStrategySync {
|
|
|
1707
1707
|
var SerializeStrategyAsync = class extends SerializeStrategy {
|
|
1708
1708
|
async getHeadData(key, defaultValue) {
|
|
1709
1709
|
if (!Object.hasOwn(this.head.data, key)) {
|
|
1710
|
-
|
|
1710
|
+
await this.setHeadData(key, defaultValue);
|
|
1711
1711
|
}
|
|
1712
1712
|
return this.head.data[key];
|
|
1713
1713
|
}
|
package/dist/esm/index.mjs
CHANGED
|
@@ -1622,7 +1622,7 @@ var SerializeStrategy = class {
|
|
|
1622
1622
|
var SerializeStrategySync = class extends SerializeStrategy {
|
|
1623
1623
|
getHeadData(key, defaultValue) {
|
|
1624
1624
|
if (!Object.hasOwn(this.head.data, key)) {
|
|
1625
|
-
|
|
1625
|
+
this.setHeadData(key, defaultValue);
|
|
1626
1626
|
}
|
|
1627
1627
|
return this.head.data[key];
|
|
1628
1628
|
}
|
|
@@ -1673,7 +1673,7 @@ var InMemoryStoreStrategySync = class extends SerializeStrategySync {
|
|
|
1673
1673
|
var SerializeStrategyAsync = class extends SerializeStrategy {
|
|
1674
1674
|
async getHeadData(key, defaultValue) {
|
|
1675
1675
|
if (!Object.hasOwn(this.head.data, key)) {
|
|
1676
|
-
|
|
1676
|
+
await this.setHeadData(key, defaultValue);
|
|
1677
1677
|
}
|
|
1678
1678
|
return this.head.data[key];
|
|
1679
1679
|
}
|