@mpcore/simulator 0.1.0 → 0.1.1
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.mjs +5 -5
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -1762,13 +1762,13 @@ function createHeadlessWxState() {
|
|
|
1762
1762
|
if (savedFile) savedFiles.delete(normalizedOldPath);
|
|
1763
1763
|
ensureDirectoryTree(normalizedNewPath);
|
|
1764
1764
|
files.set(normalizedNewPath, fileContent);
|
|
1765
|
-
if (
|
|
1766
|
-
...
|
|
1767
|
-
filePath: normalizedNewPath,
|
|
1765
|
+
if (targetSavedFile) savedFiles.set(normalizedNewPath, {
|
|
1766
|
+
...targetSavedFile,
|
|
1768
1767
|
size: fileContent.length
|
|
1769
1768
|
});
|
|
1770
|
-
else if (
|
|
1771
|
-
...
|
|
1769
|
+
else if (savedFile && isSavedFilePath(normalizedNewPath)) savedFiles.set(normalizedNewPath, {
|
|
1770
|
+
...savedFile,
|
|
1771
|
+
filePath: normalizedNewPath,
|
|
1772
1772
|
size: fileContent.length
|
|
1773
1773
|
});
|
|
1774
1774
|
return { errMsg: "rename:ok" };
|
package/package.json
CHANGED