chargebee 3.15.0 → 3.15.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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ### v3.15.1 (2025-10-29)
2
+ * * *
3
+
4
+ ### Bug Fixes:
5
+ * Resolves(#88): an issue where requests made with the GET methods incorrectly included a request body, causing the Request interface to throw an error.
6
+
1
7
  ### v3.15.0 (2025-10-28)
2
8
  * * *
3
9
 
@@ -89,7 +89,7 @@ class RequestWrapper {
89
89
  const url = new URL(path, `${env.protocol}://${(0, util_js_1.getHost)(env, this.apiCall.subDomain)}${env.port ? `:${env.port}` : ''}`);
90
90
  const request = new Request(url, {
91
91
  method: this.apiCall.httpMethod,
92
- body: data !== null && data !== void 0 ? data : undefined,
92
+ body: data ? data : undefined,
93
93
  headers: this._createHeaders(requestHeaders),
94
94
  });
95
95
  const resp = await this.envArg.httpClient.makeApiRequest(request, env.timeout);
@@ -11,7 +11,7 @@ exports.Environment = {
11
11
  hostSuffix: '.chargebee.com',
12
12
  apiPath: '/api/v2',
13
13
  timeout: DEFAULT_TIME_OUT,
14
- clientVersion: 'v3.15.0',
14
+ clientVersion: 'v3.15.1',
15
15
  port: DEFAULT_PORT,
16
16
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
17
17
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
@@ -86,7 +86,7 @@ export class RequestWrapper {
86
86
  const url = new URL(path, `${env.protocol}://${getHost(env, this.apiCall.subDomain)}${env.port ? `:${env.port}` : ''}`);
87
87
  const request = new Request(url, {
88
88
  method: this.apiCall.httpMethod,
89
- body: data !== null && data !== void 0 ? data : undefined,
89
+ body: data ? data : undefined,
90
90
  headers: this._createHeaders(requestHeaders),
91
91
  });
92
92
  const resp = await this.envArg.httpClient.makeApiRequest(request, env.timeout);
@@ -8,7 +8,7 @@ export const Environment = {
8
8
  hostSuffix: '.chargebee.com',
9
9
  apiPath: '/api/v2',
10
10
  timeout: DEFAULT_TIME_OUT,
11
- clientVersion: 'v3.15.0',
11
+ clientVersion: 'v3.15.1',
12
12
  port: DEFAULT_PORT,
13
13
  timemachineWaitInMillis: DEFAULT_TIME_MACHINE_WAIT,
14
14
  exportWaitInMillis: DEFAULT_EXPORT_WAIT,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "chargebee",
3
- "version": "3.15.0",
3
+ "version": "3.15.1",
4
4
  "description": "A library for integrating with Chargebee.",
5
5
  "scripts": {
6
6
  "prepack": "npm install && npm run build",