@xeno-js/core 1.2.4 → 1.2.5

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.cjs CHANGED
@@ -1592,7 +1592,7 @@ var init_cookies_service = __esm({
1592
1592
  contextAccessor;
1593
1593
  _config;
1594
1594
  _cookieOpts;
1595
- getAll = () => {
1595
+ getAll() {
1596
1596
  const network = this.contextAccessor.getNetworkContext();
1597
1597
  const req = network?.transport?.req;
1598
1598
  if (!import_shared38.Guards.isDefined(req) || import_shared38.Guards.isNullOrEmpty(req.headers.get("cookie"))) return [];
@@ -1600,8 +1600,8 @@ var init_cookies_service = __esm({
1600
1600
  const [name, ...rest] = cookie.split("=");
1601
1601
  return { name: name.trim(), value: rest.join("=") };
1602
1602
  }) ?? [];
1603
- };
1604
- setAll = (cookies) => {
1603
+ }
1604
+ setAll(cookies) {
1605
1605
  const network = this.contextAccessor.getNetworkContext();
1606
1606
  const res = network?.transport?.res;
1607
1607
  if (!import_shared38.Guards.isDefined(res)) return;
@@ -1611,7 +1611,7 @@ var init_cookies_service = __esm({
1611
1611
  for (const cookie of [...existingSetCookie, ...serializedCookies]) {
1612
1612
  res.headers.append("Set-Cookie", cookie);
1613
1613
  }
1614
- };
1614
+ }
1615
1615
  serialize(cookie) {
1616
1616
  const safeName = encodeURIComponent(cookie.name);
1617
1617
  const safeValue = encodeURIComponent(cookie.value);
@@ -2583,7 +2583,14 @@ var init_supabase_factory = __esm({
2583
2583
  const cookieService = this._getCookieSsr(config.ssrOpts, container, config.cookieOpts);
2584
2584
  const client = (0, import_ssr.createServerClient)(config.url, config.key, {
2585
2585
  ...config.opts,
2586
- cookies: cookieService
2586
+ cookies: {
2587
+ getAll() {
2588
+ return cookieService.getAll();
2589
+ },
2590
+ setAll(cookiesToSet) {
2591
+ cookieService.setAll(cookiesToSet);
2592
+ }
2593
+ }
2587
2594
  });
2588
2595
  const mapper = new import_shared55.SupabaseClaimsMapper();
2589
2596
  const sessionMapper = new import_shared55.SupabaseSessionMapper(mapper);