@ai-ecoverse/slicc-kernel 1.32.1 → 1.32.3
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/README.md +3 -3
- package/dist/node-process-worker.js +10 -1
- package/dist/node-process-worker.js.map +2 -2
- package/dist/node.js +3 -3
- package/dist/node.js.map +2 -2
- package/dist/process-worker.js +10 -1
- package/dist/process-worker.js.map +2 -2
- package/package.json +2 -1
package/dist/node.js
CHANGED
|
@@ -11535,10 +11535,10 @@ async function createNodeKernel(options = {}) {
|
|
|
11535
11535
|
},
|
|
11536
11536
|
async writeFile(path, data) {
|
|
11537
11537
|
const parent = path.slice(0, path.lastIndexOf("/")) || "/";
|
|
11538
|
-
await fs.mkdir(parent, { recursive: true });
|
|
11539
|
-
await fs.writeFile(path, data);
|
|
11538
|
+
await launcher.fs.mkdir(parent, { recursive: true });
|
|
11539
|
+
await launcher.fs.writeFile(path, data);
|
|
11540
11540
|
},
|
|
11541
|
-
readFile: async (path) => fs.readFileBuffer(path),
|
|
11541
|
+
readFile: async (path) => launcher.fs.readFileBuffer(path),
|
|
11542
11542
|
mount: (spec) => guard(() => launcher.mount(spec)),
|
|
11543
11543
|
umount: (target) => guard(async () => launcher.umount(target)),
|
|
11544
11544
|
mounts: async () => launcher.mounts.list(),
|