Skip to content

Commit

Permalink
Bump shelljs to avoid security issue
Browse files Browse the repository at this point in the history
  • Loading branch information
MoOx committed Apr 13, 2022
1 parent 3d6a5d5 commit 9f69eff
Show file tree
Hide file tree
Showing 3 changed files with 3,026 additions and 17 deletions.
6 changes: 3 additions & 3 deletions npmpub.js
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ if (argv["skip-status"]) {
} else {
debug(cmds.gitStatus);
const gitStatus = exec(cmds.gitStatus, execOpts);
if (gitStatus.code !== 0 || gitStatus.output !== "") {
if (gitStatus.code !== 0 || gitStatus.stdout !== "") {
error("Unclean working tree. Commit or stash changes first.");
exit(1);
} else {
Expand Down Expand Up @@ -111,7 +111,7 @@ if (argv["skip-compare"]) {
} else {
debug(cmds.gitCheckRemote);
const gitCheckRemote = exec(cmds.gitCheckRemote, execOpts);
if (gitCheckRemote.output !== "0\n") {
if (gitCheckRemote.stdout !== "0\n") {
error("Remote history differ. Please pull changes.");
exit(1);
} else {
Expand All @@ -129,7 +129,7 @@ const gitTags = exec("git tag", { silent: true });
if (gitTags.code !== 0) {
error("Can't read tags.");
exit(1);
} else if (gitTags.output.split("\n").indexOf(version) > -1) {
} else if (gitTags.stdout.split("\n").indexOf(version) > -1) {
error("Tag already exist.");
exit(1);
}
Expand Down
Loading

0 comments on commit 9f69eff

Please sign in to comment.