@semantic-release/github 8.0.8 → 8.0.9
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/lib/get-client.js +6 -4
- package/package.json +3 -3
package/lib/get-client.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const urljoin = require('url-join');
|
|
2
|
-
const HttpProxyAgent = require('http-proxy-agent');
|
|
3
|
-
const HttpsProxyAgent = require('https-proxy-agent');
|
|
2
|
+
const {HttpProxyAgent} = require('http-proxy-agent');
|
|
3
|
+
const {HttpsProxyAgent} = require('https-proxy-agent');
|
|
4
4
|
|
|
5
5
|
const SemanticReleaseOctokit = require('./semantic-release-octokit');
|
|
6
6
|
|
|
@@ -12,8 +12,10 @@ module.exports = ({githubToken, githubUrl, githubApiPathPrefix, proxy}) => {
|
|
|
12
12
|
request: {
|
|
13
13
|
agent: proxy
|
|
14
14
|
? baseUrl && new URL(baseUrl).protocol.replace(':', '') === 'http'
|
|
15
|
-
?
|
|
16
|
-
|
|
15
|
+
? // Some `proxy.headers` need to be passed as second arguments since version 6 or 7
|
|
16
|
+
// For simplicity, we just pass the same proxy object twice. It works 🤷🏻
|
|
17
|
+
new HttpProxyAgent(proxy, proxy)
|
|
18
|
+
: new HttpsProxyAgent(proxy, proxy)
|
|
17
19
|
: undefined,
|
|
18
20
|
},
|
|
19
21
|
});
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@semantic-release/github",
|
|
3
3
|
"description": "semantic-release plugin to publish a GitHub release and comment on released Pull Requests/Issues",
|
|
4
|
-
"version": "8.0.
|
|
4
|
+
"version": "8.0.9",
|
|
5
5
|
"author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
|
|
6
6
|
"ava": {
|
|
7
7
|
"files": [
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
"dir-glob": "^3.0.0",
|
|
27
27
|
"fs-extra": "^11.0.0",
|
|
28
28
|
"globby": "^11.0.0",
|
|
29
|
-
"http-proxy-agent": "^
|
|
30
|
-
"https-proxy-agent": "^
|
|
29
|
+
"http-proxy-agent": "^7.0.0",
|
|
30
|
+
"https-proxy-agent": "^7.0.0",
|
|
31
31
|
"issue-parser": "^6.0.0",
|
|
32
32
|
"lodash": "^4.17.4",
|
|
33
33
|
"mime": "^3.0.0",
|