@jcoder-stack/abp-react 0.3.0 → 0.3.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.
- package/dist/proxy.js +2 -1
- package/package.json +1 -1
package/dist/proxy.js
CHANGED
|
@@ -260,6 +260,7 @@ var AbpProxyError = class extends Error {
|
|
|
260
260
|
};
|
|
261
261
|
var IDEMPOTENT = /* @__PURE__ */ new Set(["GET", "HEAD", "OPTIONS"]);
|
|
262
262
|
var isRetryableStatus = (status) => status >= 500 || status === 429;
|
|
263
|
+
var utf8KeepingBom = new TextDecoder("utf-8", { ignoreBOM: true });
|
|
263
264
|
var sleep = (ms) => new Promise((resolve) => setTimeout(resolve, ms));
|
|
264
265
|
var discardBody = (res) => res.body?.cancel().catch(() => {
|
|
265
266
|
});
|
|
@@ -414,7 +415,7 @@ function createAbpProxy(opts) {
|
|
|
414
415
|
return {
|
|
415
416
|
status: res.status,
|
|
416
417
|
headers: exposeHeaders(res.headers),
|
|
417
|
-
body: isText ? await res.
|
|
418
|
+
body: isText ? utf8KeepingBom.decode(await res.arrayBuffer()) : await res.arrayBuffer(),
|
|
418
419
|
setCookies
|
|
419
420
|
};
|
|
420
421
|
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jcoder-stack/abp-react",
|
|
3
3
|
"description": "Pure-React runtime for ABP backends: logging, ABP types with zod parsing, fetch client, auth sessions, the ABP proxy gateway, permissions, i18n, React providers/hooks, and TanStack Router guards — exported per domain via subpaths",
|
|
4
|
-
"version": "0.3.
|
|
4
|
+
"version": "0.3.1",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
7
7
|
"repository": {
|