diff --git a/.github/workflows/build-and-release.yaml b/.github/workflows/build-and-release.yaml index 4bc83063..4118f2b7 100644 --- a/.github/workflows/build-and-release.yaml +++ b/.github/workflows/build-and-release.yaml @@ -89,6 +89,7 @@ jobs: run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: 'Publish Binary' run: | + pip install setuptools GIT_COMMIT=${{ github.sha }} GIT_TAG=$GIT_TAG ./scripts/ci/build.sh - name: Upload artifacts if: always() @@ -177,6 +178,7 @@ jobs: run: echo "GIT_TAG=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV - name: 'Publish Binary' run: | + pip install setuptools GIT_COMMIT=${{ github.sha }} GIT_TAG=$GIT_TAG ./scripts/ci/build.sh - name: Upload artifacts if: always() @@ -225,6 +227,7 @@ jobs: - name: Publish binary if: startsWith(github.ref, 'refs/tags/') run: | + pip install setuptools yarn node-pre-gyp package testpackage --verbose node scripts\module-packaging.js --publish $(yarn -s node-pre-gyp reveal staged_tarball --silent) @@ -273,5 +276,6 @@ jobs: - name: Publish binary if: startsWith(github.ref, 'refs/tags/') run: | + pip install setuptools yarn node-pre-gyp package testpackage --verbose node scripts\module-packaging.js --publish $(yarn -s node-pre-gyp reveal staged_tarball --silent) diff --git a/lib/generated/CurlInfo.ts b/lib/generated/CurlInfo.ts index a3852d8c..246b785f 100644 --- a/lib/generated/CurlInfo.ts +++ b/lib/generated/CurlInfo.ts @@ -32,6 +32,20 @@ export interface CurlInfo { */ readonly APPCONNECT_TIME_T: 'APPCONNECT_TIME_T' + /** + * Get the default value for . + * + * Official libcurl documentation: : [https://curl.haxx.se/libcurl/c/CURLINFO_CAINFO.html](https://curl.haxx.se/libcurl/c/CURLINFO_CAINFO.html) + */ + readonly CAINFO: 'CAINFO' + + /** + * Get the default value for . + * + * Official libcurl documentation: : [https://curl.haxx.se/libcurl/c/CURLINFO_CAPATH.html](https://curl.haxx.se/libcurl/c/CURLINFO_CAPATH.html) + */ + readonly CAPATH: 'CAPATH' + /** * Certificate chain. * @@ -488,6 +502,8 @@ export type CurlInfoName = | 'ACTIVESOCKET' | 'APPCONNECT_TIME' | 'APPCONNECT_TIME_T' + | 'CAINFO' + | 'CAPATH' | 'CERTINFO' | 'CONDITION_UNMET' | 'CONNECT_TIME' diff --git a/package.json b/package.json index e8c713cd..4e189a2f 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@getinsomnia/node-libcurl", - "version": "2.3.6-21", + "version": "2.3.6-22-alpha", "description": "The fastest http(s) client (and much more) for Node.js - Node.js bindings for libcurl", "keywords": [ "node-curl", diff --git a/src/Curl.cc b/src/Curl.cc index ef42798c..ae825e47 100644 --- a/src/Curl.cc +++ b/src/Curl.cc @@ -573,6 +573,11 @@ const std::vector curlInfoNotImplemented = { }; const std::vector curlInfoString = { +#if NODE_LIBCURL_VER_GE(7, 84, 0) + {"CAINFO", CURLINFO_CAINFO}, + {"CAPATH", CURLINFO_CAPATH}, +#endif + {"CONTENT_TYPE", CURLINFO_CONTENT_TYPE}, {"EFFECTIVE_URL", CURLINFO_EFFECTIVE_URL}, diff --git a/test/curl/http2.spec.ts b/test/curl/http2.spec.ts index 43c80cc4..3f465f0b 100644 --- a/test/curl/http2.spec.ts +++ b/test/curl/http2.spec.ts @@ -60,7 +60,7 @@ describe('HTTP2', () => { }) // skipped until https://github.com/nodejs/node/issues/42713 is fixed - it('should work with https2 site', (done) => { + xit('should work with https2 site', (done) => { const curl = new Curl() curl.setOpt('URL', `https://${host}:${portHttp2}/`)