From 5b52af7caf7c148d734defd16c4b9b4cb8264a50 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 25 Dec 2019 13:27:31 -0600 Subject: [PATCH 01/12] bump version. --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index 5110e30..0fd93c4 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "labman", - "version": "0.4.0", + "version": "0.4.1", "description": "👨🏼‍🔬 github label manager cli", "keywords": [ "github", From 193cdd7541daea6ac7f99a108937ac836fb375af Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 25 Dec 2019 13:27:55 -0600 Subject: [PATCH 02/12] update packages. --- package-lock.json | 14 +++++++------- package.json | 2 +- 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index f8fef66..5a2d578 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "labman", - "version": "0.4.0", + "version": "0.4.1", "lockfileVersion": 1, "requires": true, "dependencies": { @@ -193,9 +193,9 @@ } }, "@octokit/rest": { - "version": "16.35.2", - "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.35.2.tgz", - "integrity": "sha512-iijaNZpn9hBpUdh8YdXqNiWazmq4R1vCUsmxpBB0kCQ0asHZpCx+HNs22eiHuwYKRhO31ZSAGBJLi0c+3XHaKQ==", + "version": "16.36.0", + "resolved": "https://registry.npmjs.org/@octokit/rest/-/rest-16.36.0.tgz", + "integrity": "sha512-zoZj7Ya4vWBK4fjTwK2Cnmu7XBB1p9ygSvTk2TthN6DVJXM4hQZQoAiknWFLJWSTix4dnA3vuHtjPZbExYoCZA==", "requires": { "@octokit/request": "^5.2.0", "@octokit/request-error": "^1.0.2", @@ -225,9 +225,9 @@ "integrity": "sha512-rr+OQyAjxze7GgWrSaJwydHStIhHq2lvY3BOC2Mj7KnzI7XK0Uw1TOOdI9lDoajEbSWLiYgoo4f1R51erQfhPQ==" }, "@types/node": { - "version": "12.12.18", - "resolved": "https://registry.npmjs.org/@types/node/-/node-12.12.18.tgz", - "integrity": "sha512-DBkZuIMFuAfjJHiunyRc+aNvmXYNwV1IPMgGKGlwCp6zh6MKrVtmvjSWK/axWcD25KJffkXgkfvFra8ndenXAw==" + "version": "13.1.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.1.0.tgz", + "integrity": "sha512-zwrxviZS08kRX40nqBrmERElF2vpw4IUTd5khkhBTfFH8AOaeoLVx48EC4+ZzS2/Iga7NevncqnsUSYjM4OWYA==" }, "acorn": { "version": "7.1.0", diff --git a/package.json b/package.json index 0fd93c4..e9bc16a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "start": "node src/cli/index.js" }, "dependencies": { - "@octokit/rest": "^16.35.2", + "@octokit/rest": "^16.36.0", "chalk": "^3.0.0", "conf": "^6.2.0", "yargs": "^15.0.2" From 06dcd8b475e9b74c6acaad0f2a3a874c4c4b9e71 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 25 Dec 2019 13:29:43 -0600 Subject: [PATCH 03/12] logout console message. closes #21. --- src/cli/logout.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/cli/logout.js b/src/cli/logout.js index 09f0154..a7a521e 100644 --- a/src/cli/logout.js +++ b/src/cli/logout.js @@ -1,11 +1,18 @@ const conf = require("conf") +const chalk = require("chalk") const config = new conf() const command = "logout" const description = "Remove GitHub credentials" const builder = {} -const handler = () => config.clear() + +const handler = () => { + config.clear() + console.log(chalk.greenBright("\nLogout successful!\n")) + + return +} module.exports = { command, From 00a4b1024768649eddd376eb931e070841ba0d06 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 25 Dec 2019 22:48:55 -0600 Subject: [PATCH 04/12] log error messages. closes #18, #19. --- src/cli/index.js | 0 1 file changed, 0 insertions(+), 0 deletions(-) mode change 100644 => 100755 src/cli/index.js diff --git a/src/cli/index.js b/src/cli/index.js old mode 100644 new mode 100755 From 017887d02e5521682091386b924c662b387220e2 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 25 Dec 2019 23:14:21 -0600 Subject: [PATCH 05/12] update eslint. --- package-lock.json | 6 +++--- package.json | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 5a2d578..c30f9c3 100644 --- a/package-lock.json +++ b/package-lock.json @@ -728,9 +728,9 @@ } }, "eslint-config-bradgarropy": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/eslint-config-bradgarropy/-/eslint-config-bradgarropy-1.2.0.tgz", - "integrity": "sha512-xKTNbfa0RsEYL0JfkDJnZtZxbxswM1wlT/IU8sPeW6WGHLSuQEqcuFLIDoEmWXcavQnOnnnk/8USapBAOZTlgQ==", + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/eslint-config-bradgarropy/-/eslint-config-bradgarropy-1.3.0.tgz", + "integrity": "sha512-JWcV+SrTfIKUCZl5SlWnNiZtpGziTVAdlIwL34CCU7Sv6RwGWZpC/RwXPYnUv72vimxk2y0BjYICrVWB4yWZpg==", "dev": true }, "eslint-plugin-eslint-plugin": { diff --git a/package.json b/package.json index e9bc16a..1e8c47b 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "devDependencies": { "babel-eslint": "^10.0.3", "eslint": "^6.8.0", - "eslint-config-bradgarropy": "^1.2.0", + "eslint-config-bradgarropy": "^1.3.0", "eslint-plugin-jsx-a11y": "^6.2.3", "eslint-plugin-react": "^7.17.0", "eslint-plugin-react-hooks": "^2.3.0", From 119559fb4f416cec46fd3121de382a037591d68f Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 25 Dec 2019 23:14:41 -0600 Subject: [PATCH 06/12] log error messages. closes #18, #19. --- src/github.js | 35 +++++++++++++++++++++++++++++++---- 1 file changed, 31 insertions(+), 4 deletions(-) diff --git a/src/github.js b/src/github.js index 4459072..9dfc5a5 100644 --- a/src/github.js +++ b/src/github.js @@ -53,9 +53,7 @@ const createLabels = async (labels, owner, repo) => { const octokit = getOctokit() - labels.forEach(label => { - console.log(` ${chalk.bold.greenBright("+")} ${label.name}`) - + labels.forEach(async label => { const parameters = { owner, repo, @@ -64,7 +62,36 @@ const createLabels = async (labels, owner, repo) => { description: label.description, } - octokit.issues.createLabel(parameters) + try { + await octokit.issues.createLabel(parameters) + console.log(` ${chalk.bold.greenBright("+")} ${label.name}`) + } catch (error) { + const {status} = error + + switch (status) { + case 404: + console.log( + `${chalk.bold.redBright( + ` x Repository ${chalk.bold.cyanBright( + `${owner}/${repo}`, + )} does not exist!\n`, + )}`, + ) + + process.exit() + break + + case 422: + console.log( + `${chalk.bold.redBright( + ` x Label ${chalk.bold.cyanBright( + label.name, + )} already exists!`, + )}`, + ) + break + } + } }) } From 34c1ec892495ce6d0ab3206d9d723f650dd79bc5 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 1 Jan 2020 22:50:51 -0600 Subject: [PATCH 07/12] cleanup. --- src/cli/default.js | 48 ++++++++++++++++++----------- src/cli/login.js | 10 +++++-- src/cli/logout.js | 4 ++- src/copy.js | 11 +++---- src/errors.js | 54 +++++++++++++++++++++++++++++++++ src/github.js | 75 +++++++++++++++++++++++----------------------- src/utils.js | 19 ++++++++++++ 7 files changed, 156 insertions(+), 65 deletions(-) create mode 100644 src/errors.js create mode 100644 src/utils.js diff --git a/src/cli/default.js b/src/cli/default.js index 0b2781f..eb4c379 100644 --- a/src/cli/default.js +++ b/src/cli/default.js @@ -1,7 +1,12 @@ const conf = require("conf") -const chalk = require("chalk") const copy = require("../copy") const {createOctokit} = require("../octokit") +const {validToken, validRepo} = require("../github") +const { + errorTokenNotFound, + errorInvalidToken, + errorRepoNotFound, +} = require("../errors") const config = new conf() @@ -21,29 +26,38 @@ const handler = async argv => { const {source, destination, labels, clobber} = argv const token = config.get("token") + // validate token if (!token) { - console.log( - `\nYou are not logged in, please run the ${chalk.cyanBright( - "login", - )} command.\n`, - ) + errorTokenNotFound() + return + } + + const isValidToken = await validToken(token) - console.log(chalk.cyanBright("labman login \n")) + // validate token + if (!isValidToken) { + errorInvalidToken() return } - createOctokit(token) + const isValidSource = await validRepo(source) - try { - await copy(source, destination, labels, clobber) - } catch (error) { - console.log( - `\n${chalk.redBright( - "Invalid token!", - )} Please run the ${chalk.cyanBright("login")} command again.\n`, - ) - console.log(chalk.cyanBright("labman login \n")) + // validate source + if (!isValidSource) { + errorRepoNotFound(source) + return } + + const isValidDestination = await validRepo(destination) + + // validate destination + if (!isValidDestination) { + errorRepoNotFound(destination) + return + } + + createOctokit(token) + await copy(source, destination, labels, clobber) } module.exports = { diff --git a/src/cli/login.js b/src/cli/login.js index 14be94b..6138cf4 100644 --- a/src/cli/login.js +++ b/src/cli/login.js @@ -1,6 +1,7 @@ const conf = require("conf") const chalk = require("chalk") const {validToken} = require("../github") +const {errorLoginFailed} = require("../errors") const config = new conf() @@ -21,19 +22,22 @@ const handler = async argv => { const storedToken = config.get("token") if (!force && storedToken) { - console.log("\nYou are already logged in!\n") + console.log() + console.log("You are already logged in!") return } const valid = await validToken(token) if (!valid) { - console.log(`\n${chalk.redBright("Login failed!")} Please try again.\n`) + errorLoginFailed() return } config.set({username, token}) - console.log(chalk.greenBright("\nLogin successful!\n")) + + console.log() + console.log(chalk.greenBright("Login successful!")) return } diff --git a/src/cli/logout.js b/src/cli/logout.js index a7a521e..a9b6ae3 100644 --- a/src/cli/logout.js +++ b/src/cli/logout.js @@ -9,7 +9,9 @@ const builder = {} const handler = () => { config.clear() - console.log(chalk.greenBright("\nLogout successful!\n")) + + console.log() + console.log(chalk.greenBright("Logout successful!")) return } diff --git a/src/copy.js b/src/copy.js index 4825ee7..367ccd6 100644 --- a/src/copy.js +++ b/src/copy.js @@ -1,23 +1,20 @@ const {getLabels, deleteLabels, createLabels} = require("./github") const copy = async (source, destination, labels = [], clobber = false) => { - const [sourceOwner, sourceRepo] = source.split("/") - const [destinationOwner, destinationRepo] = destination.split("/") - // delete existing labels if (clobber) { - const oldLabels = await getLabels(destinationOwner, destinationRepo) - await deleteLabels(oldLabels, destinationOwner, destinationRepo) + const oldLabels = await getLabels(destination) + await deleteLabels(oldLabels, destination) } // create new labels - const sourceLabels = await getLabels(sourceOwner, sourceRepo) + const sourceLabels = await getLabels(source) const newLabels = labels.length ? sourceLabels.filter(label => labels.includes(label.name)) : sourceLabels - await createLabels(newLabels, destinationOwner, destinationRepo) + await createLabels(newLabels, destination) } module.exports = copy diff --git a/src/errors.js b/src/errors.js new file mode 100644 index 0000000..d4f1693 --- /dev/null +++ b/src/errors.js @@ -0,0 +1,54 @@ +const chalk = require("chalk") + +const errorTokenNotFound = () => { + const commandText = chalk.cyanBright("login") + + console.log() + console.log(`You are not logged in, please run the ${commandText} command.`) + console.log() + console.log(chalk.cyanBright("labman login ")) +} + +const errorInvalidToken = () => { + const errorText = chalk.redBright("Invalid token!") + const commandText = chalk.cyanBright("login") + + console.log() + console.log(`${errorText} Please run the ${commandText} command again.`) + console.log() + console.log(chalk.cyanBright("labman login ")) +} + +const errorLoginFailed = () => { + const errorText = chalk.redBright("Login failed!") + + console.log() + console.log(`${errorText} Please try again.`) +} + +const errorRepoNotFound = repo => { + const repoText = chalk.bold.cyanBright(repo) + const errorText = chalk.bold.redBright( + `Repository ${repoText} does not exist!`, + ) + + console.log() + console.log(errorText) +} + +const errorLabelExists = label => { + const labelText = chalk.bold.cyanBright(label) + const errorText = chalk.bold.redBright( + ` x Label ${labelText} already exists!`, + ) + + console.log(errorText) +} + +module.exports = { + errorTokenNotFound, + errorInvalidToken, + errorLoginFailed, + errorRepoNotFound, + errorLabelExists, +} diff --git a/src/github.js b/src/github.js index 9dfc5a5..25046ec 100644 --- a/src/github.js +++ b/src/github.js @@ -1,5 +1,7 @@ const chalk = require("chalk") +const {repoPath, repoObject} = require("./utils") const {createOctokit, getOctokit} = require("./octokit") +const {errorRepoNotFound, errorLabelExists} = require("./errors") const validToken = async token => { const octokit = createOctokit(token) @@ -13,82 +15,80 @@ const validToken = async token => { return true } -const getLabels = async (owner, repo) => { - const parameters = { - owner, - repo, +const validRepo = async repo => { + const octokit = getOctokit() + const parameters = repoObject(repo) + + try { + await octokit.repos.get(parameters) + } catch (error) { + return false } + return true +} + +const getLabels = async repo => { const octokit = getOctokit() + + const parameters = repoObject(repo) const response = await octokit.issues.listLabelsForRepo(parameters) const labels = response.data return labels } -const deleteLabels = async (labels, owner, repo) => { - console.log( - `\nDeleting labels from ${chalk.cyanBright(`${owner}/${repo}`)}\n`, - ) +const deleteLabels = async (labels, repo) => { + console.log() + console.log(`Deleting labels from ${chalk.cyanBright(repo)}`) + console.log() const octokit = getOctokit() labels.forEach(label => { - console.log(` ${chalk.bold.redBright("-")} ${label.name}`) + const {name} = label + console.log(` ${chalk.bold.redBright("-")} ${name}`) const parameters = { - owner, - repo, - name: label.name, + ...repoObject(repo), + name, } octokit.issues.deleteLabel(parameters) }) } -const createLabels = async (labels, owner, repo) => { - console.log( - `\nCreating labels in ${chalk.cyanBright(`${owner}/${repo}`)}\n`, - ) +const createLabels = async (labels, repo) => { + console.log() + console.log(`Creating labels in ${chalk.cyanBright(repo)}`) + console.log() const octokit = getOctokit() labels.forEach(async label => { + const {name, color, description} = label + const parameters = { - owner, - repo, - name: label.name, - color: label.color, - description: label.description, + ...repoObject(repo), + name, + color, + description, } try { await octokit.issues.createLabel(parameters) - console.log(` ${chalk.bold.greenBright("+")} ${label.name}`) + console.log(` ${chalk.bold.greenBright("+")} ${name}`) } catch (error) { const {status} = error switch (status) { case 404: - console.log( - `${chalk.bold.redBright( - ` x Repository ${chalk.bold.cyanBright( - `${owner}/${repo}`, - )} does not exist!\n`, - )}`, - ) - + errorRepoNotFound(repo) process.exit() break case 422: - console.log( - `${chalk.bold.redBright( - ` x Label ${chalk.bold.cyanBright( - label.name, - )} already exists!`, - )}`, - ) + errorLabelExists(name) break } } @@ -97,6 +97,7 @@ const createLabels = async (labels, owner, repo) => { module.exports = { validToken, + validRepo, getLabels, deleteLabels, createLabels, diff --git a/src/utils.js b/src/utils.js new file mode 100644 index 0000000..71343ec --- /dev/null +++ b/src/utils.js @@ -0,0 +1,19 @@ +const repoPath = object => { + const {owner, repo} = object + const path = `${owner}/${repo}` + + return path +} + +const repoObject = string => { + const [owner, repo] = string.split("/") + + const object = { + owner, + repo, + } + + return object +} + +module.exports = {repoPath, repoObject} From 61644023643097f2e67a65a2198c1cf4a694b746 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 1 Jan 2020 22:51:26 -0600 Subject: [PATCH 08/12] remove unused function. --- src/github.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/github.js b/src/github.js index 25046ec..f5ff505 100644 --- a/src/github.js +++ b/src/github.js @@ -1,5 +1,5 @@ const chalk = require("chalk") -const {repoPath, repoObject} = require("./utils") +const {repoObject} = require("./utils") const {createOctokit, getOctokit} = require("./octokit") const {errorRepoNotFound, errorLabelExists} = require("./errors") From 3c636dac989934072ddd042c06bc56e46c5aa079 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 1 Jan 2020 22:59:33 -0600 Subject: [PATCH 09/12] remove copy file. --- src/cli/default.js | 26 +++++++++++++++++++++++--- src/copy.js | 20 -------------------- 2 files changed, 23 insertions(+), 23 deletions(-) delete mode 100644 src/copy.js diff --git a/src/cli/default.js b/src/cli/default.js index eb4c379..b59755f 100644 --- a/src/cli/default.js +++ b/src/cli/default.js @@ -1,12 +1,17 @@ const conf = require("conf") -const copy = require("../copy") const {createOctokit} = require("../octokit") -const {validToken, validRepo} = require("../github") const { errorTokenNotFound, errorInvalidToken, errorRepoNotFound, } = require("../errors") +const { + validToken, + validRepo, + getLabels, + deleteLabels, + createLabels, +} = require("../github") const config = new conf() @@ -57,7 +62,22 @@ const handler = async argv => { } createOctokit(token) - await copy(source, destination, labels, clobber) + + // delete existing labels + if (clobber) { + const oldLabels = await getLabels(destination) + await deleteLabels(oldLabels, destination) + } + + // get new labels + const sourceLabels = await getLabels(source) + + const newLabels = labels.length + ? sourceLabels.filter(label => labels.includes(label.name)) + : sourceLabels + + // create new labels + await createLabels(newLabels, destination) } module.exports = { diff --git a/src/copy.js b/src/copy.js deleted file mode 100644 index 367ccd6..0000000 --- a/src/copy.js +++ /dev/null @@ -1,20 +0,0 @@ -const {getLabels, deleteLabels, createLabels} = require("./github") - -const copy = async (source, destination, labels = [], clobber = false) => { - // delete existing labels - if (clobber) { - const oldLabels = await getLabels(destination) - await deleteLabels(oldLabels, destination) - } - - // create new labels - const sourceLabels = await getLabels(source) - - const newLabels = labels.length - ? sourceLabels.filter(label => labels.includes(label.name)) - : sourceLabels - - await createLabels(newLabels, destination) -} - -module.exports = copy From 8a411e653212bef00d23f4910a4462f3925f7c9b Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 1 Jan 2020 23:05:42 -0600 Subject: [PATCH 10/12] create github folder. --- src/cli/default.js | 2 +- src/github/index.js | 9 ++++++++ src/{github.js => github/labels.js} | 33 +++-------------------------- src/{ => github}/octokit.js | 0 src/github/validate.js | 32 ++++++++++++++++++++++++++++ 5 files changed, 45 insertions(+), 31 deletions(-) create mode 100644 src/github/index.js rename src/{github.js => github/labels.js} (72%) rename src/{ => github}/octokit.js (100%) create mode 100644 src/github/validate.js diff --git a/src/cli/default.js b/src/cli/default.js index b59755f..4b90d64 100644 --- a/src/cli/default.js +++ b/src/cli/default.js @@ -1,11 +1,11 @@ const conf = require("conf") -const {createOctokit} = require("../octokit") const { errorTokenNotFound, errorInvalidToken, errorRepoNotFound, } = require("../errors") const { + createOctokit, validToken, validRepo, getLabels, diff --git a/src/github/index.js b/src/github/index.js new file mode 100644 index 0000000..91ebc24 --- /dev/null +++ b/src/github/index.js @@ -0,0 +1,9 @@ +const labels = require("./labels") +const octokit = require("./octokit") +const validate = require("./validate") + +module.exports = { + ...labels, + ...octokit, + ...validate, +} diff --git a/src/github.js b/src/github/labels.js similarity index 72% rename from src/github.js rename to src/github/labels.js index f5ff505..22c4821 100644 --- a/src/github.js +++ b/src/github/labels.js @@ -1,32 +1,7 @@ const chalk = require("chalk") -const {repoObject} = require("./utils") -const {createOctokit, getOctokit} = require("./octokit") -const {errorRepoNotFound, errorLabelExists} = require("./errors") - -const validToken = async token => { - const octokit = createOctokit(token) - - try { - await octokit.users.getAuthenticated() - } catch (error) { - return false - } - - return true -} - -const validRepo = async repo => { - const octokit = getOctokit() - const parameters = repoObject(repo) - - try { - await octokit.repos.get(parameters) - } catch (error) { - return false - } - - return true -} +const {repoObject} = require("../utils") +const {getOctokit} = require("./octokit") +const {errorRepoNotFound, errorLabelExists} = require("../errors") const getLabels = async repo => { const octokit = getOctokit() @@ -96,8 +71,6 @@ const createLabels = async (labels, repo) => { } module.exports = { - validToken, - validRepo, getLabels, deleteLabels, createLabels, diff --git a/src/octokit.js b/src/github/octokit.js similarity index 100% rename from src/octokit.js rename to src/github/octokit.js diff --git a/src/github/validate.js b/src/github/validate.js new file mode 100644 index 0000000..db9058a --- /dev/null +++ b/src/github/validate.js @@ -0,0 +1,32 @@ +const {repoObject} = require("../utils") +const {createOctokit, getOctokit} = require("./octokit") + +const validToken = async token => { + const octokit = createOctokit(token) + + try { + await octokit.users.getAuthenticated() + } catch (error) { + return false + } + + return true +} + +const validRepo = async repo => { + const octokit = getOctokit() + const parameters = repoObject(repo) + + try { + await octokit.repos.get(parameters) + } catch (error) { + return false + } + + return true +} + +module.exports = { + validToken, + validRepo, +} From c28cee63bc56349a678a895f32970cd904939675 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 1 Jan 2020 23:06:01 -0600 Subject: [PATCH 11/12] update license. --- license | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/license b/license index 49817f6..f8f27e3 100644 --- a/license +++ b/license @@ -1,6 +1,6 @@ MIT License -Copyright (c) 2019 Brad Garropy +Copyright (c) 2020 Brad Garropy Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From e04a36660476bc7fb2fe959180d3627b3cb6bcc2 Mon Sep 17 00:00:00 2001 From: Brad Garropy Date: Wed, 1 Jan 2020 23:07:36 -0600 Subject: [PATCH 12/12] update packages. --- package-lock.json | 12 ++++++------ package.json | 2 +- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index c30f9c3..c241c5e 100644 --- a/package-lock.json +++ b/package-lock.json @@ -2015,9 +2015,9 @@ }, "dependencies": { "ansi-styles": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.0.tgz", - "integrity": "sha512-7kFQgnEaMdRtwf6uSfUnVr9gSGC7faurn+J/Mv90/W+iTtN0405/nLdopfMWwchyxhbGYl6TC4Sccn9TUkGAgg==", + "version": "4.2.1", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.2.1.tgz", + "integrity": "sha512-9VGjrMsG1vePxcSweQsN20KY/c4zN0h9fLjqAbwbPfahM3t+NL+M9HC8xeXG2I8pX5NoamTGNuomEUFI7fcUjA==", "requires": { "@types/color-name": "^1.1.1", "color-convert": "^2.0.1" @@ -2077,9 +2077,9 @@ "integrity": "sha512-r9S/ZyXu/Xu9q1tYlpsLIsa3EeLXXk0VwlxqTcFRfg9EhMW+17kbt9G0NrgCmhGb5vT2hyhJZLfDGx+7+5Uj/w==" }, "yargs": { - "version": "15.0.2", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.0.2.tgz", - "integrity": "sha512-GH/X/hYt+x5hOat4LMnCqMd8r5Cv78heOMIJn1hr7QPPBqfeC6p89Y78+WB9yGDvfpCvgasfmWLzNzEioOUD9Q==", + "version": "15.1.0", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-15.1.0.tgz", + "integrity": "sha512-T39FNN1b6hCW4SOIk1XyTOWxtXdcen0t+XYrysQmChzSipvhBO8Bj0nK1ozAasdk24dNWuMZvr4k24nz+8HHLg==", "requires": { "cliui": "^6.0.0", "decamelize": "^1.2.0", diff --git a/package.json b/package.json index 1e8c47b..62cf064 100644 --- a/package.json +++ b/package.json @@ -35,7 +35,7 @@ "@octokit/rest": "^16.36.0", "chalk": "^3.0.0", "conf": "^6.2.0", - "yargs": "^15.0.2" + "yargs": "^15.1.0" }, "devDependencies": { "babel-eslint": "^10.0.3",