@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.
Files changed (2) hide show
  1. package/dist/index.mjs +5 -5
  2. 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 (savedFile && isSavedFilePath(normalizedNewPath)) savedFiles.set(normalizedNewPath, {
1766
- ...savedFile,
1767
- filePath: normalizedNewPath,
1765
+ if (targetSavedFile) savedFiles.set(normalizedNewPath, {
1766
+ ...targetSavedFile,
1768
1767
  size: fileContent.length
1769
1768
  });
1770
- else if (targetSavedFile) savedFiles.set(normalizedNewPath, {
1771
- ...targetSavedFile,
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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@mpcore/simulator",
3
3
  "type": "module",
4
- "version": "0.1.0",
4
+ "version": "0.1.1",
5
5
  "description": "Headless mini-program runtime and testing kernel for the weapp-vite ecosystem",
6
6
  "author": "ice breaker <1324318532@qq.com>",
7
7
  "license": "MIT",