@lvce-editor/file-system-worker 1.24.0 → 1.25.0

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.
@@ -1100,8 +1100,8 @@ const exists$2 = async uri => {
1100
1100
  };
1101
1101
  const readJson$4 = async uri => {
1102
1102
  const response = await fetch(uri);
1103
- if (response.ok) {
1104
- return true;
1103
+ if (!response.ok) {
1104
+ throw new Error(`${response.statusText}`);
1105
1105
  }
1106
1106
  const json = await response.json();
1107
1107
  return json;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lvce-editor/file-system-worker",
3
- "version": "1.24.0",
3
+ "version": "1.25.0",
4
4
  "description": "File System Worker",
5
5
  "keywords": [
6
6
  "Lvce Editor"