@lvce-editor/file-system-worker 5.5.0 → 5.6.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.
|
@@ -156,7 +156,7 @@ function binaryStringToArrayBuffer(binary) {
|
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
const normalizeBlobError = error => {
|
|
159
|
-
const ProgressEventConstructor =
|
|
159
|
+
const ProgressEventConstructor = ProgressEvent;
|
|
160
160
|
if (error && ProgressEventConstructor && error instanceof ProgressEventConstructor && error.target &&
|
|
161
161
|
// @ts-expect-error - target.error may not be in the type definition
|
|
162
162
|
error.target.error) {
|
|
@@ -1589,7 +1589,7 @@ const getPathSeparator$3 = async root => {
|
|
|
1589
1589
|
const readJson$3 = async uri => {
|
|
1590
1590
|
const response = await fetch(uri);
|
|
1591
1591
|
if (!response.ok) {
|
|
1592
|
-
throw new Error(
|
|
1592
|
+
throw new Error(response.statusText);
|
|
1593
1593
|
}
|
|
1594
1594
|
const json = await response.json();
|
|
1595
1595
|
return json;
|