@harperfast/rocksdb-js 0.1.14 → 1.0.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.cjs +8 -10
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +7 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +20 -20
package/dist/index.mjs
CHANGED
|
@@ -1787,14 +1787,12 @@ Object.defineProperty(TransactionLog.prototype, "query", { value({ start, end, e
|
|
|
1787
1787
|
}
|
|
1788
1788
|
}
|
|
1789
1789
|
while (position < size) {
|
|
1790
|
-
|
|
1791
|
-
|
|
1792
|
-
|
|
1793
|
-
}
|
|
1794
|
-
|
|
1795
|
-
|
|
1796
|
-
}
|
|
1797
|
-
while (timestamp < 1 && ++position < size);
|
|
1790
|
+
try {
|
|
1791
|
+
timestamp = dataView.getFloat64(position);
|
|
1792
|
+
} catch (error) {
|
|
1793
|
+
error.message += ` at position ${position} of log ${logBuffer.logId} (size=${size}, log buffer length=${logBuffer.length})`;
|
|
1794
|
+
throw error;
|
|
1795
|
+
}
|
|
1798
1796
|
if (!timestamp) return {
|
|
1799
1797
|
done: true,
|
|
1800
1798
|
value: void 0
|
|
@@ -1885,7 +1883,7 @@ function loadLastPosition(transactionLog, readUncommitted) {
|
|
|
1885
1883
|
//#region src/index.ts
|
|
1886
1884
|
const versions = {
|
|
1887
1885
|
rocksdb: version,
|
|
1888
|
-
"rocksdb-js": "0.
|
|
1886
|
+
"rocksdb-js": "1.0.0"
|
|
1889
1887
|
};
|
|
1890
1888
|
|
|
1891
1889
|
//#endregion
|