@botpress/webchat-client 0.6.0 → 0.6.1

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.
@@ -1,5 +1,5 @@
1
1
 
2
- > @botpress/webchat-client@0.6.0 build /home/runner/work/genisys/genisys/packages/webchat-client
2
+ > @botpress/webchat-client@0.6.1 build /home/runner/work/genisys/genisys/packages/webchat-client
3
3
  > openapi-ts && vite build
4
4
 
5
5
  ⏳ Generating from raw OpenAPI specification
@@ -11,10 +11,10 @@ rendering chunks...
11
11
 
12
12
  [vite:dts] Start generate declaration files...
13
13
  computing gzip size...
14
- dist/webchat-client8.js  0.19 kB │ gzip: 0.16 kB
15
14
  dist/webchat-client.js  0.25 kB │ gzip: 0.16 kB
16
15
  dist/webchat-client4.js  0.29 kB │ gzip: 0.18 kB
17
16
  dist/webchat-client6.js  0.30 kB │ gzip: 0.22 kB
17
+ dist/webchat-client8.js  0.30 kB │ gzip: 0.23 kB
18
18
  dist/webchat-client7.js  0.45 kB │ gzip: 0.26 kB
19
19
  dist/webchat-client9.js  2.66 kB │ gzip: 1.17 kB
20
20
  dist/webchat-client3.js  3.50 kB │ gzip: 0.60 kB
@@ -24,6 +24,6 @@ computing gzip size...
24
24
  [vite:dts] Start rollup declaration files...
25
25
  Analysis will use the bundled TypeScript version 5.8.2
26
26
  *** The target project appears to use TypeScript 5.9.3 which is newer than the bundled compiler engine; consider upgrading API Extractor.
27
- [vite:dts] Declaration files built in 5892ms.
27
+ [vite:dts] Declaration files built in 6133ms.
28
28
 
29
- ✓ built in 6.19s
29
+ ✓ built in 6.44s
@@ -4,7 +4,9 @@ const e = (t) => ({
4
4
  timeout: 6e4,
5
5
  maxBodyLength: 104857600,
6
6
  maxContentLength: 104857600,
7
- throwOnError: !0
7
+ throwOnError: !0,
8
+ parseAs: "json"
9
+ // We do not always have the content type header in each request so we parse as json by default
8
10
  });
9
11
  export {
10
12
  e as createClientConfig
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@botpress/webchat-client",
3
- "version": "0.6.0",
3
+ "version": "0.6.1",
4
4
  "description": "",
5
5
  "main": "src/index.ts",
6
6
  "type": "module",
@@ -12,4 +12,5 @@ export const createClientConfig: CreateClientConfig = (config) => ({
12
12
  maxBodyLength,
13
13
  maxContentLength,
14
14
  throwOnError: true,
15
+ parseAs: 'json', // We do not always have the content type header in each request so we parse as json by default
15
16
  })