@axiom-lattice/core 2.1.88 → 2.1.89
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.d.mts +22 -0
- package/dist/index.d.ts +22 -0
- package/dist/index.js +8 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +8 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -5741,7 +5741,8 @@ var VolumeFilesystem = class {
|
|
|
5741
5741
|
}).join("\n");
|
|
5742
5742
|
}
|
|
5743
5743
|
async readRaw(filePath) {
|
|
5744
|
-
const
|
|
5744
|
+
const buf = await this.client.readRaw(filePath);
|
|
5745
|
+
const content = buf.toString("utf-8");
|
|
5745
5746
|
const lines = content.split("\n");
|
|
5746
5747
|
const now = (/* @__PURE__ */ new Date()).toISOString();
|
|
5747
5748
|
return {
|
|
@@ -5750,6 +5751,12 @@ var VolumeFilesystem = class {
|
|
|
5750
5751
|
modified_at: now
|
|
5751
5752
|
};
|
|
5752
5753
|
}
|
|
5754
|
+
async readBinary(filePath) {
|
|
5755
|
+
return this.client.readRaw(filePath);
|
|
5756
|
+
}
|
|
5757
|
+
async writeBinary(filePath, data) {
|
|
5758
|
+
await this.client.writeRaw(filePath, data);
|
|
5759
|
+
}
|
|
5753
5760
|
grepRaw(_pattern, _path, _glob) {
|
|
5754
5761
|
throw new Error("Not supported on volume backend");
|
|
5755
5762
|
}
|