@blocklet/js-sdk 1.16.32-beta-93e1a798 → 1.16.32-beta-820e4cfa

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.d.mts CHANGED
@@ -196,6 +196,8 @@ declare class ComponentService {
196
196
  getUrl(name: string, ...parts: string[]): string;
197
197
  }
198
198
 
199
+ declare function getCSRFToken(): string;
200
+
199
201
  declare class BlockletSDK {
200
202
  api: Axios;
201
203
  user: AuthService;
@@ -207,4 +209,4 @@ declare class BlockletSDK {
207
209
  declare function createAxios(config?: AxiosRequestConfig, requestParams?: RequestParams): axios.AxiosInstance;
208
210
  declare function createFetch(options?: RequestInit, requestParams?: RequestParams): (input: string | Request | URL, options?: RequestInit) => Promise<Response>;
209
211
 
210
- export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch };
212
+ export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch, getCSRFToken };
package/dist/index.d.ts CHANGED
@@ -196,6 +196,8 @@ declare class ComponentService {
196
196
  getUrl(name: string, ...parts: string[]): string;
197
197
  }
198
198
 
199
+ declare function getCSRFToken(): string;
200
+
199
201
  declare class BlockletSDK {
200
202
  api: Axios;
201
203
  user: AuthService;
@@ -207,4 +209,4 @@ declare class BlockletSDK {
207
209
  declare function createAxios(config?: AxiosRequestConfig, requestParams?: RequestParams): axios.AxiosInstance;
208
210
  declare function createFetch(options?: RequestInit, requestParams?: RequestParams): (input: string | Request | URL, options?: RequestInit) => Promise<Response>;
209
211
 
210
- export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch };
212
+ export { AuthService, BlockletSDK, BlockletService, ComponentService, type NotificationConfig, type PrivacyConfig, TokenService, type UserPublicInfo, type UserSession, UserSessionService, type UserSessionUser, type Webhook, createAxios, createFetch, getCSRFToken };
package/dist/index.mjs CHANGED
@@ -561,4 +561,4 @@ function createFetch(options, requestParams) {
561
561
  );
562
562
  }
563
563
 
564
- export { BlockletSDK, createAxios, createFetch };
564
+ export { BlockletSDK, createAxios, createFetch, getCSRFToken };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blocklet/js-sdk",
3
- "version": "1.16.32-beta-93e1a798",
3
+ "version": "1.16.32-beta-820e4cfa",
4
4
  "main": "dist/index.mjs",
5
5
  "module": "dist/index.mjs",
6
6
  "types": "./dist/index.d.ts",
@@ -32,8 +32,8 @@
32
32
  "watch": "nodemon -w src -e ts -x 'npm run build'"
33
33
  },
34
34
  "dependencies": {
35
- "@abtnode/constant": "1.16.32-beta-93e1a798",
36
- "@blocklet/meta": "1.16.32-beta-93e1a798",
35
+ "@abtnode/constant": "1.16.32-beta-820e4cfa",
36
+ "@blocklet/meta": "1.16.32-beta-820e4cfa",
37
37
  "axios": "^1.7.5",
38
38
  "is-url": "^1.2.4",
39
39
  "js-cookie": "^3.0.5",
@@ -45,5 +45,5 @@
45
45
  "unbuild": "^2.0.0",
46
46
  "vitest": "^2.0.5"
47
47
  },
48
- "gitHead": "608fab914e6ee5cb5659c11ab3d0713945ab99a0"
48
+ "gitHead": "5d9721ea660974e75815a6b74de4dd233459ec58"
49
49
  }