Skip to content

Commit 2d68dc5

Browse files
author
LaunchDarklyReleaseBot
committed
Version 18.0.0 automatically generated from ld-openapi.
1 parent 498f584 commit 2d68dc5

File tree

8 files changed

+15
-6
lines changed

8 files changed

+15
-6
lines changed

.openapi-generator/VERSION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
7.5.0
1+
7.16.0

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-g
449449

450450
- API version: 2.0
451451
- Package version: 18.0.0
452-
- Generator version: 7.5.0
452+
- Generator version: 7.16.0
453453
- Build package: org.openapitools.codegen.languages.JavascriptClientCodegen
454454
For more information, please visit [https://support.launchdarkly.com](https://support.launchdarkly.com)
455455

src/ApiClient.js

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313

1414

1515
import superagent from "superagent";
16-
import querystring from "querystring";
1716

1817
/**
1918
* @module ApiClient
@@ -49,7 +48,7 @@ class ApiClient {
4948
'ApiKey': {type: 'apiKey', 'in': 'header', name: 'Authorization'}
5049
}
5150

52-
/**
51+
/**
5352
* The default HTTP headers to be included for all API calls.
5453
* @type {Array.<String>}
5554
* @default {}
@@ -73,7 +72,7 @@ class ApiClient {
7372
*/
7473
this.cache = true;
7574

76-
/**
75+
/**
7776
* If set to true, the client will save the cookies from each server
7877
* response, and return them in the next request.
7978
* @default false
@@ -439,7 +438,10 @@ class ApiClient {
439438
}
440439

441440
if (contentType === 'application/x-www-form-urlencoded') {
442-
request.send(querystring.stringify(this.normalizeParams(formParams)));
441+
let normalizedParams = this.normalizeParams(formParams)
442+
let urlSearchParams = new URLSearchParams(normalizedParams);
443+
let queryString = urlSearchParams.toString();
444+
request.send(queryString);
443445
} else if (contentType == 'multipart/form-data') {
444446
var _formParams = this.normalizeParams(formParams);
445447
for (var key in _formParams) {

src/model/AIConfig.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/AIConfigPost.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/ViewLinkRequestKeys.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/ViewLinkRequestSegmentIdentifiers.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/model/ViewPost.js

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)