Skip to content

Commit

Permalink
fix: update dependencies to address vulnerability warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
pmowrer committed Jan 28, 2020
1 parent de59b12 commit 3aa60c5
Show file tree
Hide file tree
Showing 7 changed files with 58 additions and 68 deletions.
2 changes: 1 addition & 1 deletion bin/semantic-release-github-pr.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,5 +36,5 @@ const { getCurrentBranchName } = require('../src/git-utils');
`--extends=${plugins}`,
]);

execa('semantic-release', args, { stdio: 'inherit' });
execa('semantic-release', args, { stdio: 'inherit', preferLocal: true });
})();
29 changes: 16 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
"scripts": {
"format": "prettier --write --single-quote --trailing-comma es5",
"format:all": "yarn format \"./**/*.js\"",
"precommit": "lint-staged",
"test": "jest"
},
"bin": "./bin/semantic-release-github-pr.js",
Expand All @@ -22,24 +21,28 @@
"dependencies": {
"debug": "^4.1.1",
"env-ci": "^5.0.1",
"execa": "^0.8.0",
"github": "^12.1.0",
"parse-github-url": "^1.0.1",
"ramda": "^0.25.0",
"read-pkg": "^3.0.0",
"execa": "^4.0.0",
"github": "^13.0.0",
"parse-github-url": "^1.0.2",
"ramda": "^0.26.1",
"read-pkg": "^5.2.0",
"semantic-release-plugin-decorators": "^2.0.0"
},
"devDependencies": {
"husky": "^0.14.3",
"jest": "^22.0.4",
"lint-staged": "^6.0.0",
"prettier": "^1.8.2",
"husky": "^4.2.1",
"jest": "^25.1.0",
"lint-staged": "^10.0.3",
"prettier": "^1.19.1",
"semantic-release": "15.9.x"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"yarn format",
"git add"
"yarn format"
]
}
}
}
4 changes: 1 addition & 3 deletions src/comment-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,7 @@ const create = (gitHead, packageName, gitTag = null) => {
// There isn't a built-in concept of a markdown comment.
// We interpret this format as a markdown comment: [//]: # (message)
// https://stackoverflow.com/questions/4823468/comments-in-markdown/20885980#20885980
return `[//]: # (semantic-release-github-pr ${gitHead} ${packageName} ${
gitTag
})`;
return `[//]: # (semantic-release-github-pr ${gitHead} ${packageName} ${gitTag})`;
};

const PARSE_REGEXP = /\[\/\/\]: # \(semantic-release-github-pr( [^\)]+)+\)/;
Expand Down
3 changes: 2 additions & 1 deletion src/github-init.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,8 @@ const { parse } = require('url');
*/
module.exports = (pluginConfig, context) => {
const { githubToken, githubUrl, githubApiPathPrefix } = resolveConfig(
pluginConfig, context
pluginConfig,
context
);

let { port, protocol, hostname: host } = githubUrl ? parse(githubUrl) : {};
Expand Down
4 changes: 3 additions & 1 deletion src/with-github.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@ const parseGithubUrl = require('parse-github-url');

const withGithub = plugin => (pluginConfig, context) => {
const github = githubInit(pluginConfig, context);
const { options: { repositoryUrl } } = context;
const {
options: { repositoryUrl },
} = context;
const { name: repo, owner } = parseGithubUrl(repositoryUrl);

return plugin(
Expand Down
5 changes: 4 additions & 1 deletion src/with-matching-pull-requests.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,10 @@ const { getCurrentBranchName } = require('./git-utils');

const withMatchingPullRequests = plugin => async (pluginConfig, context) => {
const { githubRepo } = pluginConfig;
const { nextRelease: { gitHead }, options: { branch } } = context;
const {
nextRelease: { gitHead },
options: { branch },
} = context;
const matchingPrFilter = isMatchingPullRequestFor(gitHead);
const { data: openPullRequests = [] } = await githubRepo.getAllPullRequests({
// Determine whether the user provided a custom `branch` value.
Expand Down
79 changes: 31 additions & 48 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -688,7 +688,7 @@ acorn@^7.1.0:
resolved "https://registry.yarnpkg.com/acorn/-/acorn-7.1.0.tgz#949d36f2c292535da602283586c2477c57eb2d6c"
integrity sha512-kL5CuoXA/dgxlBbVrflsflzQ3PAas7RYZB52NOm/6839iVYJgKMJ3cQJD+t2i5+qFa8h3MDpEOJiS64E8JLnSQ==

agent-base@4, agent-base@^4.1.0, agent-base@~4.2.1:
agent-base@4, agent-base@~4.2.1:
version "4.2.1"
resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.2.1.tgz#d89e5999f797875674c07d87f260fc41e83e8ca9"
dependencies:
Expand Down Expand Up @@ -1857,6 +1857,7 @@ dot-prop@^4.1.0:
dotenv@^4.0.0:
version "4.0.0"
resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-4.0.0.tgz#864ef1379aced55ce6f95debecdce179f7a0cd1d"
integrity sha1-hk7xN5rO1Vzm+V3r7NzhefegzR0=

dotenv@^5.0.1:
version "5.0.1"
Expand Down Expand Up @@ -2036,18 +2037,6 @@ execa@^0.7.0:
signal-exit "^3.0.0"
strip-eof "^1.0.0"

execa@^0.8.0:
version "0.8.0"
resolved "https://registry.yarnpkg.com/execa/-/execa-0.8.0.tgz#d8d76bbc1b55217ed190fd6dd49d3c774ecfc8da"
dependencies:
cross-spawn "^5.0.1"
get-stream "^3.0.0"
is-stream "^1.1.0"
npm-run-path "^2.0.0"
p-finally "^1.0.0"
signal-exit "^3.0.0"
strip-eof "^1.0.0"

execa@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/execa/-/execa-1.0.0.tgz#c6236a5bb4df6d6f15e88e7f017798216749ddd8"
Expand Down Expand Up @@ -2278,12 +2267,6 @@ flush-write-stream@^1.0.0:
inherits "^2.0.3"
readable-stream "^2.3.6"

[email protected]:
version "1.2.6"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.2.6.tgz#4dcdc7e4ab3dd6765a97ff89c3b4c258117c79bf"
dependencies:
debug "^3.1.0"

for-in@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80"
Expand Down Expand Up @@ -2488,16 +2471,18 @@ git-url-parse@^10.0.1:
dependencies:
git-up "^2.0.0"

github@^12.1.0:
version "12.1.0"
resolved "https://registry.yarnpkg.com/github/-/github-12.1.0.tgz#f2a2dcbd441178155942257491a4bc08bf661dd7"
github@^13.0.0:
version "13.1.1"
resolved "https://registry.yarnpkg.com/github/-/github-13.1.1.tgz#e4775be32c3a72e44d5cbec965dbeb8c0aac7c1f"
integrity sha512-BpItPaOCuvotnNUGXSSEDkB86eqQ7+k7j8/+lu5gbRmNnFPW/uQyFezH1fjy7XojieVNzD/+MgPhBngaw+Ocfw==
dependencies:
debug "^3.1.0"
dotenv "^4.0.0"
follow-redirects "1.2.6"
https-proxy-agent "^2.1.0"
is-stream "^1.1.0"
lodash "^4.17.4"
mime "^2.0.3"
netrc "^0.1.4"
proxy-from-env "^1.0.0"
url-template "^2.0.8"

glob-parent@^5.1.0:
version "5.1.0"
Expand Down Expand Up @@ -2717,14 +2702,7 @@ http-signature@~1.2.0:
jsprim "^1.2.2"
sshpk "^1.7.0"

https-proxy-agent@^2.1.0:
version "2.2.1"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.1.tgz#51552970fa04d723e04c56d04178c3f92592bbc0"
dependencies:
agent-base "^4.1.0"
debug "^3.1.0"

https-proxy-agent@^2.2.3:
https-proxy-agent@^2.1.0, https-proxy-agent@^2.2.3:
version "2.2.4"
resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b"
integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg==
Expand Down Expand Up @@ -4336,10 +4314,6 @@ mime-types@~2.1.19:
dependencies:
mime-db "1.43.0"

mime@^2.0.3:
version "2.3.1"
resolved "https://registry.yarnpkg.com/mime/-/mime-2.3.1.tgz#b1621c54d63b97c47d3cfe7f7215f7d64517c369"

mime@^2.4.3:
version "2.4.4"
resolved "https://registry.yarnpkg.com/mime/-/mime-2.4.4.tgz#bd7b91135fc6b01cde3e9bae33d659b63d8857e5"
Expand Down Expand Up @@ -4484,10 +4458,6 @@ nerf-dart@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/nerf-dart/-/nerf-dart-1.0.0.tgz#e6dab7febf5ad816ea81cf5c629c5a0ebde72c1a"

netrc@^0.1.4:
version "0.1.4"
resolved "https://registry.yarnpkg.com/netrc/-/netrc-0.1.4.tgz#6be94fcaca8d77ade0a9670dc460914c94472444"

nice-try@^1.0.4:
version "1.0.5"
resolved "https://registry.yarnpkg.com/nice-try/-/nice-try-1.0.5.tgz#a3378a7696ce7d223e88fc9b764bd7ef1089e366"
Expand Down Expand Up @@ -5143,9 +5113,10 @@ parent-module@^1.0.0:
dependencies:
callsites "^3.0.0"

parse-github-url@^1.0.1:
parse-github-url@^1.0.2:
version "1.0.2"
resolved "https://registry.yarnpkg.com/parse-github-url/-/parse-github-url-1.0.2.tgz#242d3b65cbcdda14bb50439e3242acf6971db395"
integrity sha512-kgBf6avCbO3Cn6+RnzRGLkUsv4ZVqv/VfAYkRsyBcgkshNvVBkRn1FEZcW0Jb+npXQWm2vHPnnOqFteZxRRGNw==

parse-json@^4.0.0:
version "4.0.0"
Expand Down Expand Up @@ -5356,6 +5327,11 @@ protoduck@^5.0.1:
dependencies:
genfun "^5.0.0"

proxy-from-env@^1.0.0:
version "1.0.0"
resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.0.0.tgz#33c50398f70ea7eb96d21f7b817630a55791c7ee"
integrity sha1-M8UDmPcOp+uW0h97gXYwpVeRx+4=

prr@~1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476"
Expand Down Expand Up @@ -5446,9 +5422,10 @@ qw@~1.0.1:
resolved "https://registry.yarnpkg.com/qw/-/qw-1.0.1.tgz#efbfdc740f9ad054304426acb183412cc8b996d4"
integrity sha1-77/cdA+a0FQwRCassYNBLMi5ltQ=

ramda@^0.25.0:
version "0.25.0"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.25.0.tgz#8fdf68231cffa90bc2f9460390a0cb74a29b29a9"
ramda@^0.26.1:
version "0.26.1"
resolved "https://registry.yarnpkg.com/ramda/-/ramda-0.26.1.tgz#8d41351eb8111c55353617fc3bbffad8e4d35d06"
integrity sha512-hLWjpy7EnsDBb0p+Z3B7rPi3GDeRG5ZtiI33kJhTt+ORCd38AbAIjB/9zRIUoeTbE/AVX5ZkU7m6bznsvrf8eQ==

rc@^1.0.1, rc@^1.1.6, rc@^1.2.8:
version "1.2.8"
Expand Down Expand Up @@ -5806,9 +5783,9 @@ rimraf@^2.5.4:
glob "^7.0.5"

rimraf@^3.0.0:
version "3.0.1"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.1.tgz#48d3d4cb46c80d388ab26cd61b1b466ae9ae225a"
integrity sha512-IQ4ikL8SjBiEDZfk+DFVwqRK8md24RWMEJkdSlgNLkyyAImcjf8SWvU1qFMDOb4igBClbTQ/ugPqXcRwdFTxZw==
version "3.0.0"
resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.0.tgz#614176d4b3010b75e5c390eb0ee96f6dc0cebb9b"
integrity sha512-NDGVxTsjqfunkds7CqsOiEnxln4Bo7Nddl3XhS4pXg5OzwkLqJ971ZVAAnB+DDLnF76N+VnDEiBHaVV8I06SUg==
dependencies:
glob "^7.1.3"

Expand Down Expand Up @@ -6784,6 +6761,11 @@ url-parse-lax@^1.0.0:
dependencies:
prepend-http "^1.0.1"

url-template@^2.0.8:
version "2.0.8"
resolved "https://registry.yarnpkg.com/url-template/-/url-template-2.0.8.tgz#fc565a3cccbff7730c775f5641f9555791439f21"
integrity sha1-/FZaPMy/93MMd19WQflVV5FDnyE=

use@^3.1.0:
version "3.1.1"
resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f"
Expand Down Expand Up @@ -7036,6 +7018,7 @@ xtend@~4.0.1:
y18n@^3.2.1:
version "3.2.1"
resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41"
integrity sha1-bRX7qITAhnnA136I53WegR4H+kE=

"y18n@^3.2.1 || ^4.0.0", y18n@^4.0.0:
version "4.0.0"
Expand Down

0 comments on commit 3aa60c5

Please sign in to comment.