Skip to content

Commit 0d444a6

Browse files
committed
build: blacklist some time info constants that were wrongly being assigned as possible CURLINFO candidates
1 parent a87f575 commit 0d444a6

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

scripts/build-constants.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,16 @@ const run = async () => {
5151
const allowedCurlInfos = await retrieveConstantList({
5252
url: 'https://curl.haxx.se/libcurl/c/curl_easy_getinfo.html',
5353
constantPrefix: 'CURLINFO_',
54-
blacklist: [],
54+
blacklist: [
55+
// time constants at the bottom
56+
'NAMELOOKUP',
57+
'CONNECT',
58+
'APPCONNECT',
59+
'PRETRANSFER',
60+
'STARTTRANSFER',
61+
'TOTAL',
62+
'REDIRECT',
63+
],
5564
})
5665
await createConstantsFile({
5766
constants: allowedCurlInfos,

scripts/utils/createSetOptOverloads.js

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,10 @@ const getSetOptDefinition = (
99
setOptReturnType,
1010
) =>
1111
`/**
12-
* Use \`Curl.option\` for predefined constants.
13-
*
14-
* Official libcurl documentation: [curl_easy_setopt()](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)
12+
* Use {@link "Curl".Curl.option|\`Curl.option\`} for predefined constants.
13+
*
14+
*
15+
* Official libcurl documentation: [\`curl_easy_setopt()\`](http://curl.haxx.se/libcurl/c/curl_easy_setopt.html)
1516
*/
1617
setOpt(option: ${optionNameType}, value: ${optionValueType} | null): ${setOptReturnType}`
1718

0 commit comments

Comments
 (0)