@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.cjs
CHANGED
|
@@ -32,7 +32,7 @@ let node_module = require("node:module");
|
|
|
32
32
|
let node_path = require("node:path");
|
|
33
33
|
let node_url = require("node:url");
|
|
34
34
|
let ordered_binary = require("ordered-binary");
|
|
35
|
-
ordered_binary = __toESM(ordered_binary);
|
|
35
|
+
ordered_binary = __toESM(ordered_binary, 1);
|
|
36
36
|
let _harperfast_extended_iterable = require("@harperfast/extended-iterable");
|
|
37
37
|
let msgpackr = require("msgpackr");
|
|
38
38
|
|
|
@@ -1812,14 +1812,12 @@ Object.defineProperty(TransactionLog.prototype, "query", { value({ start, end, e
|
|
|
1812
1812
|
}
|
|
1813
1813
|
}
|
|
1814
1814
|
while (position < size) {
|
|
1815
|
-
|
|
1816
|
-
|
|
1817
|
-
|
|
1818
|
-
}
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
}
|
|
1822
|
-
while (timestamp < 1 && ++position < size);
|
|
1815
|
+
try {
|
|
1816
|
+
timestamp = dataView.getFloat64(position);
|
|
1817
|
+
} catch (error) {
|
|
1818
|
+
error.message += ` at position ${position} of log ${logBuffer.logId} (size=${size}, log buffer length=${logBuffer.length})`;
|
|
1819
|
+
throw error;
|
|
1820
|
+
}
|
|
1823
1821
|
if (!timestamp) return {
|
|
1824
1822
|
done: true,
|
|
1825
1823
|
value: void 0
|
|
@@ -1910,7 +1908,7 @@ function loadLastPosition(transactionLog, readUncommitted) {
|
|
|
1910
1908
|
//#region src/index.ts
|
|
1911
1909
|
const versions = {
|
|
1912
1910
|
rocksdb: version,
|
|
1913
|
-
"rocksdb-js": "0.
|
|
1911
|
+
"rocksdb-js": "1.0.0"
|
|
1914
1912
|
};
|
|
1915
1913
|
|
|
1916
1914
|
//#endregion
|