@blueking/chat-helper 0.0.1-beta.2 → 0.0.1-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.
@@ -255,6 +255,8 @@ export class FetchClient {
255
255
  // 发送请求
256
256
  const request = new Request(url, {
257
257
  method: requestConfig.method,
258
+ credentials: requestConfig.credentials,
259
+ mode: requestConfig.mode,
258
260
  headers,
259
261
  body,
260
262
  signal: controller.signal
@@ -365,7 +367,9 @@ export class FetchClient {
365
367
  const { url, headers, body, requestConfig, controller } = _this.prepareRequest(config, true);
366
368
  // 发送请求
367
369
  const request = new Request(url, {
368
- method: requestConfig.method || 'GET',
370
+ method: requestConfig.method,
371
+ credentials: requestConfig.credentials,
372
+ mode: requestConfig.mode,
369
373
  headers,
370
374
  body,
371
375
  signal: controller.signal
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blueking/chat-helper",
3
- "version": "0.0.1-beta.2",
3
+ "version": "0.0.1-beta.4",
4
4
  "description": "",
5
5
  "main": "./dist/index.ts.js",
6
6
  "scripts": {