@semantic-release/github 7.0.0 → 7.0.4

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 CHANGED
@@ -1,5 +1,5 @@
1
1
  const {memoize, get} = require('lodash');
2
- const Octokit = require('@octokit/rest');
2
+ const {Octokit} = require('@octokit/rest');
3
3
  const pRetry = require('p-retry');
4
4
  const Bottleneck = require('bottleneck');
5
5
  const urljoin = require('url-join');
package/lib/publish.js CHANGED
@@ -67,7 +67,7 @@ module.exports = async (pluginConfig, context) => {
67
67
  const fileName = template(asset.name || basename(filePath))(context);
68
68
  const upload = {
69
69
  url: uploadUrl,
70
- file: await readFile(resolve(cwd, filePath)),
70
+ data: await readFile(resolve(cwd, filePath)),
71
71
  name: fileName,
72
72
  headers: {
73
73
  'content-type': mime.getType(extname(fileName)) || 'text/plain',
package/lib/success.js CHANGED
@@ -49,9 +49,8 @@ module.exports = async (pluginConfig, context) => {
49
49
  const prs = await pFilter(
50
50
  uniqBy(flatten(await Promise.all(searchQueries)), 'number'),
51
51
  async ({number}) =>
52
- (await github.pullRequests.listCommits({owner, repo, pull_number: number})).data.find(({sha}) =>
53
- shas.includes(sha)
54
- ) || shas.includes((await github.pullRequests.get({owner, repo, pull_number: number})).data.merge_commit_sha)
52
+ (await github.pulls.listCommits({owner, repo, pull_number: number})).data.find(({sha}) => shas.includes(sha)) ||
53
+ shas.includes((await github.pulls.get({owner, repo, pull_number: number})).data.merge_commit_sha)
55
54
  );
56
55
 
57
56
  debug(
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": "7.0.0",
4
+ "version": "7.0.4",
5
5
  "author": "Pierre Vanduynslager (https://twitter.com/@pvdlg_)",
6
6
  "ava": {
7
7
  "files": [
@@ -16,16 +16,16 @@
16
16
  "Gregor Martynus (https://twitter.com/gr2m)"
17
17
  ],
18
18
  "dependencies": {
19
- "@octokit/rest": "^16.27.0",
19
+ "@octokit/rest": "^17.0.0",
20
20
  "@semantic-release/error": "^2.2.0",
21
21
  "aggregate-error": "^3.0.0",
22
22
  "bottleneck": "^2.18.1",
23
23
  "debug": "^4.0.0",
24
24
  "dir-glob": "^3.0.0",
25
25
  "fs-extra": "^8.0.0",
26
- "globby": "^10.0.0",
26
+ "globby": "^11.0.0",
27
27
  "http-proxy-agent": "^4.0.0",
28
- "https-proxy-agent": "^4.0.0",
28
+ "https-proxy-agent": "^5.0.0",
29
29
  "issue-parser": "^6.0.0",
30
30
  "lodash": "^4.17.4",
31
31
  "mime": "^2.4.3",
@@ -37,15 +37,15 @@
37
37
  "ava": "^3.1.0",
38
38
  "clear-module": "^4.0.0",
39
39
  "codecov": "^3.5.0",
40
- "nock": "^11.1.0",
40
+ "nock": "^12.0.0",
41
41
  "nyc": "^15.0.0",
42
42
  "proxy": "^1.0.0",
43
43
  "proxyquire": "^2.0.0",
44
44
  "semantic-release": "^17.0.0",
45
45
  "server-destroy": "^1.0.1",
46
- "sinon": "^8.0.0",
47
- "tempy": "^0.3.0",
48
- "xo": "^0.25.2"
46
+ "sinon": "^9.0.0",
47
+ "tempy": "^0.4.0",
48
+ "xo": "^0.26.0"
49
49
  },
50
50
  "engines": {
51
51
  "node": ">=10.18"