@nekutima/biome-sdk 0.5.1 → 0.5.2

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.
@@ -28,7 +28,7 @@ export interface BiomeConfig {
28
28
  enabled?: boolean;
29
29
  /** Endpoint to fetch CSRF token from server */
30
30
  tokenUrl?: string;
31
- /** Custom header name for CSRF token (default: 'X-CSRF-TOKEN') */
31
+ /** Custom header name for CSRF token (default: 'X-XSRF-TOKEN') */
32
32
  headerName?: string;
33
33
  /** Cookie name to read CSRF token from (default: 'XSRF-TOKEN') */
34
34
  cookieName?: string;
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
5
5
  Object.defineProperty(exports, "__esModule", { value: true });
6
6
  exports.BiomeHttpClient = void 0;
7
7
  const axios_1 = __importDefault(require("axios"));
8
- const DEFAULT_CSRF_HEADER_NAME = "X-CSRF-TOKEN";
8
+ const DEFAULT_CSRF_HEADER_NAME = "X-XSRF-TOKEN";
9
9
  const DEFAULT_CSRF_COOKIE_NAME = "XSRF-TOKEN";
10
10
  const CSRF_METHODS = ["post", "put", "patch", "delete"];
11
11
  /**
@@ -374,7 +374,7 @@ export declare const SDK_CONFIG: {
374
374
  readonly retryAttempts: 3;
375
375
  readonly csrf: {
376
376
  readonly enabled: true;
377
- readonly headerName: "X-CSRF-TOKEN";
377
+ readonly headerName: "X-XSRF-TOKEN";
378
378
  readonly cookieName: "XSRF-TOKEN";
379
379
  };
380
380
  };
package/dist/sdk-info.js CHANGED
@@ -386,7 +386,7 @@ exports.SDK_CONFIG = {
386
386
  retryAttempts: 3,
387
387
  csrf: {
388
388
  enabled: true,
389
- headerName: 'X-CSRF-TOKEN',
389
+ headerName: 'X-XSRF-TOKEN',
390
390
  cookieName: 'XSRF-TOKEN',
391
391
  },
392
392
  },
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@nekutima/biome-sdk",
3
- "version": "0.5.1",
3
+ "version": "0.5.2",
4
4
  "description": "Pure TypeScript SDK for Biome platform integration - authentication, task management, and blockchain interactions",
5
5
  "readme": "README.md",
6
6
  "main": "dist/index.js",