@authyon/auth 0.2.0-beta.2 → 0.2.0-beta.4

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/README.md CHANGED
@@ -9,7 +9,7 @@ Para gestão de organização/membros (secret key) e verificação de token no b
9
9
  ## Instalação
10
10
 
11
11
  ```bash
12
- npm install --save-exact @authyon/auth@0.2.0-beta.1
12
+ npm install --save-exact @authyon/auth@0.2.0-beta.4
13
13
  ```
14
14
 
15
15
  Durante a beta, `npm install @authyon/auth@beta` acompanha o prerelease mais recente. Fixar a versão exata é recomendado para builds reproduzíveis.
package/dist/index.cjs CHANGED
@@ -223,7 +223,8 @@ var FetchHttpAdapter = class {
223
223
  method: request.method,
224
224
  headers: request.headers,
225
225
  body: request.body,
226
- signal: request.signal
226
+ signal: request.signal,
227
+ redirect: "error"
227
228
  });
228
229
  }
229
230
  };
@@ -275,6 +276,10 @@ function defaultHttpLogger(event) {
275
276
  }
276
277
  function sanitizeUrl(value) {
277
278
  const url = new URL(value);
279
+ url.username = "";
280
+ url.password = "";
281
+ url.hash = "";
282
+ url.pathname = url.pathname.replace(/(\/platform\/workspace-invites\/)[^/]+/u, "$1REDACTED");
278
283
  const queryKeys = /* @__PURE__ */ new Set();
279
284
  url.searchParams.forEach((_value, key) => queryKeys.add(key));
280
285
  url.search = queryKeys.size > 0 ? [...queryKeys].map((key) => `${encodeURIComponent(key)}=REDACTED`).join("&") : "";
package/dist/index.js CHANGED
@@ -191,7 +191,8 @@ var FetchHttpAdapter = class {
191
191
  method: request.method,
192
192
  headers: request.headers,
193
193
  body: request.body,
194
- signal: request.signal
194
+ signal: request.signal,
195
+ redirect: "error"
195
196
  });
196
197
  }
197
198
  };
@@ -243,6 +244,10 @@ function defaultHttpLogger(event) {
243
244
  }
244
245
  function sanitizeUrl(value) {
245
246
  const url = new URL(value);
247
+ url.username = "";
248
+ url.password = "";
249
+ url.hash = "";
250
+ url.pathname = url.pathname.replace(/(\/platform\/workspace-invites\/)[^/]+/u, "$1REDACTED");
246
251
  const queryKeys = /* @__PURE__ */ new Set();
247
252
  url.searchParams.forEach((_value, key) => queryKeys.add(key));
248
253
  url.search = queryKeys.size > 0 ? [...queryKeys].map((key) => `${encodeURIComponent(key)}=REDACTED`).join("&") : "";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@authyon/auth",
3
- "version": "0.2.0-beta.2",
3
+ "version": "0.2.0-beta.4",
4
4
  "description": "Authyon SDK for browsers — auth, sessions, multi-tenant and 2FA for vanilla JS/TS.",
5
5
  "license": "MIT",
6
6
  "type": "module",