@defjs/core 0.0.0-test-0010 → 0.0.0-test-0011
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.js +12 -12
- package/package.json +3 -3
package/dist/index.js
CHANGED
|
@@ -518,18 +518,18 @@ async function fetchHandler(httpRequest) {
|
|
|
518
518
|
loaded: receivedLength,
|
|
519
519
|
total: contentLength
|
|
520
520
|
});
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
}
|
|
521
|
+
}
|
|
522
|
+
const chunksAll = concatChunks(chunks, receivedLength);
|
|
523
|
+
try {
|
|
524
|
+
body = parseBody(httpRequest, response2, chunksAll);
|
|
525
|
+
} catch (error) {
|
|
526
|
+
throw makeResponse({
|
|
527
|
+
error: error instanceof Error ? error : new Error("Parse response body error"),
|
|
528
|
+
url,
|
|
529
|
+
status,
|
|
530
|
+
statusText,
|
|
531
|
+
headers
|
|
532
|
+
});
|
|
533
533
|
}
|
|
534
534
|
}
|
|
535
535
|
return makeResponse({
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@defjs/core",
|
|
3
|
-
"version": "0.0.0-test-
|
|
3
|
+
"version": "0.0.0-test-0011",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"build": "bun run ./scripts/build.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"exports": {
|
|
19
19
|
"./package.json": "./package.json",
|
|
20
20
|
".": {
|
|
21
|
-
"types": "./index.d.ts",
|
|
22
|
-
"default": "./index.js"
|
|
21
|
+
"types": "./dist/index.d.ts",
|
|
22
|
+
"default": "./dist/index.js"
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
}
|