@nsnanocat/util 1.8.8 → 1.8.9

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/package.json CHANGED
@@ -32,5 +32,5 @@
32
32
  "devDependencies": {
33
33
  "typescript": "^5.6.3"
34
34
  },
35
- "version": "1.8.8"
35
+ "version": "1.8.9"
36
36
  }
@@ -185,7 +185,7 @@ export async function fetch(resource, options = {}) {
185
185
  status: response.status,
186
186
  statusCode: response.status,
187
187
  statusText: response.statusText,
188
- body: bodyBytes.toString("utf-8"),
188
+ body: new TextDecoder("utf-8").decode(bodyBytes),
189
189
  bodyBytes: bodyBytes,
190
190
  headers: Object.fromEntries(Object.entries(headers).map(([key, value]) => [key, key.toLowerCase() !== "set-cookie" ? value.toString() : value])),
191
191
  };