@xeno-js/core 1.2.3 → 1.2.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/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);