Skip to content

Commit c0de220

Browse files
committed
Refactor code structure for improved readability and maintainability
1 parent eca16c4 commit c0de220

3 files changed

Lines changed: 218 additions & 184 deletions

File tree

build/browser/browser.esm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { BigBuffer as e, Scalar as t } from "ffjavascript";
2-
//#region ../fastfile/build/browser/browser.esm.js
2+
//#region node_modules/fastfile/build/browser/browser.esm.js
33
function n(e) {
44
let t = e.initialSize || 1 << 20, n = new c();
55
return n.o = e, n.o.data = new Uint8Array(t), n.allocSize = t, n.totalSize = 0, n.readOnly = !1, n.pos = 0, n;

build/main.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
2323
//#endregion
2424
let ffjavascript = require("ffjavascript");
2525
let fastfile = require("fastfile");
26-
fastfile = __toESM(fastfile);
26+
fastfile = __toESM(fastfile, 1);
2727
//#region src/binfileutils.js
2828
var MAX_BUFFER_SIZE = typeof Buffer !== "undefined" && Buffer.constants && Buffer.constants.MAX_LENGTH ? Buffer.constants.MAX_LENGTH : 1 << 30;
2929
async function readBinFile(fileName, type, maxVersion, cacheSize, pageSize) {

0 commit comments

Comments
 (0)