diff --git a/.eslintrc b/.eslintrc new file mode 100644 index 0000000..a91f024 --- /dev/null +++ b/.eslintrc @@ -0,0 +1,30 @@ +{ + "extends": "airbnb-base", + "env": { + "browser": false, + "node": true, + "es6": true, + "jest": true + }, + "rules": { + "arrow-parens": [0], + "indent": [2, 4, { "SwitchCase": 1, "VariableDeclarator": 1 }], + "max-len": [0], + "no-console": [0], + "no-multi-spaces": [0], + "no-plusplus": [0], + "no-underscore-dangle": [0], + "global-require": [0], + "comma-dangle": [2, { + "arrays": "ignore", + "objects": "always", + "imports": "always", + "exports": "always", + "functions": "ignore" + }], + "key-spacing": [0], + "radix": [0], + "strict": [0, "never"], + "import/extensions": [0] + } +} diff --git a/.gitignore b/.gitignore index f98bced..de79ab3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,4 @@ /node_modules/ *.bcup +*.DS_Store +/coverage/ diff --git a/.jshintrc b/.jshintrc deleted file mode 100644 index 2119fa8..0000000 --- a/.jshintrc +++ /dev/null @@ -1,3 +0,0 @@ -{ - "esnext": true -} diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..673efe3 --- /dev/null +++ b/.travis.yml @@ -0,0 +1,7 @@ +language: node_js +node_js: + - "4" + - "5" + - "6" + - "7" +cache: yarn diff --git a/README.md b/README.md index a123935..15310bd 100644 --- a/README.md +++ b/README.md @@ -62,5 +62,5 @@ Feel free to contribute to the project by opening a [Pull Request](https://githu --- -*Created by [Dave Lunny](https://twitter.com/dave_lunny) in the wonderful year of 2016.* +*Created by [Dave Lunny](https://twitter.com/dave_lunny) in the glorious year of 2017.* *Licensed under MIT :hand:* diff --git a/bin/constants.js b/bin/constants.js new file mode 100644 index 0000000..ea66db7 --- /dev/null +++ b/bin/constants.js @@ -0,0 +1,24 @@ +const constants = { + menuChoices: [ + 'Add Custom Labels', + 'Add Labels From Package', + 'Create a Package From Labels', + 'Remove Labels', + 'Remove All Labels', + 'Reset Token', + 'Quit' + ], + banners: [ + 'Welcome to git-labelmaker', + 'Adding Custom Labels', + 'Adding Labels From Package', + 'Creating Package From Labels', + 'Removing Labels', + 'Resetting Token', + 'See Ya!', + 'Wrong Password!', + 'Removing All Labels' + ], +}; + +module.exports = constants; diff --git a/bin/index.js b/bin/index.js index a36c9b5..5fc37cf 100755 --- a/bin/index.js +++ b/bin/index.js @@ -1,230 +1,233 @@ #!/usr/bin/env node -"use strict"; + +'use strict'; // EXTERNAL DEPENDENCIES -const fs = require("fs"), - iq = require("inquirer"), - gitLabel = require("git-label"); +const fs = require('fs'); +const iq = require('inquirer'); +const gitLabel = require('git-label'); // UTILS ARE STANDALONE METHODS WITH NO DEPENDENCIES -const alertDeletes = require("./utils/alertDeletes"), - banner = require("./utils/banners"), - configGitLabel = require("./utils/configGitLabel"), - filterRemovalLabels = require("./utils/filterRemovalLabels"), - removeAllFromStr = require("./utils/removeAllFromStr"), - validateRemovals = require("./utils/validateRemovals"); +const alertDeletes = require('./utils/alert-deletes.js'); +const banner = require('./utils/banners.js'); +const configGitLabel = require('./utils/config-git-label.js'); +const filterRemovalLabels = require('./utils/filter-removal-labels.js'); +const removeAllFromStr = require('./utils/remove-all-from-str.js'); +const validateRemovals = require('./utils/validate-removals.js'); // PROMPTS ARE THE PROMPTS ARRAYS FOR VARIOUS QUESTIONS const prompts = { - addCustom: require("./prompts/addCustom"), - deleteConfirm: require("./prompts/deleteConfirm"), - mainMenu: require("./prompts/mainMenu") - }; + addCustom: require('./prompts/add-custom.js'), + deleteConfirm: require('./prompts/delete-confirm.js'), + mainMenu: require('./prompts/main-menu.js'), +}; // MODULES ARE UTILS WITH DEPENDENCIES -const convertRGBToHex = require("./modules/convertRGBToHex"), - doCustomLabelPrompts = require("./modules/doCustomLabelPrompts")(prompts.addCustom), - readRepo = require("./modules/readRepo"), - setToken = require("./modules/setToken"), - fetchToken = require("./modules/fetchToken"), - isGitRepo = require("./modules/isGitRepo"), - readGitConfig = require("./modules/readGitConfig"), - requestLabels = require("./modules/requestLabels"), - prompt = require("./modules/prompt"), - validateAddPackages = require("./modules/validateAddPackages"); +const convertRGBToHex = require('./modules/convert-rgb-to-hex.js'); +const doCustomLabelPrompts = require('./modules/do-custom-label-prompts.js')(prompts.addCustom); +const readRepo = require('./modules/read-repo.js'); +const setToken = require('./modules/set-token.js'); +const fetchToken = require('./modules/fetch-token.js'); +const isGitRepo = require('./modules/is-git-repo.js'); +const readGitConfig = require('./modules/read-git-config.js'); +const requestLabels = require('./modules/request-labels.js'); +const prompt = require('./modules/prompt.js'); +const validateAddPackages = require('./modules/validate-add-packages.js'); // Kicks things off, named so that it can be called at any time // The params will sometimes come thru if we've just set the token, so if we got them we alter the call a lil... const gitLabelmaker = (token) => { - Promise.all([ isGitRepo(), readGitConfig(), fetchToken(token) ]) - .then(( values )=>{ - let _repo = readRepo(values[1]); - let _token = values[2]; - banner.welcome(); - iq.prompt( prompts.mainMenu, handleMainPrompts.bind(null, _repo, _token)); - }) - .catch((e)=>{ - switch (e.id) { - case "TOKEN": - return setToken(gitLabelmaker); - break; - case "QUIT": - banner.seeYa(); - return process.exit(0); - break; - case "PASSWORD": - banner.wrongPassword(); - return gitLabelmaker(); - break; + Promise.all([isGitRepo(), readGitConfig(), fetchToken(token)]) + .then(values => { + // TODO: this is a bit callback-hellish + readRepo(values[1]) + .then(_repo => { + const _token = values[2]; + banner.welcome(); + iq.prompt(prompts.mainMenu, handleMainPrompts.bind(null, _repo, _token)); // eslint-disable-line no-use-before-define + }) + .catch(e => { + console.error(e); + process.exit(1); + }); + }) + .catch(e => { + switch (e.id) { + case 'TOKEN': + return setToken(gitLabelmaker); + case 'QUIT': + banner.seeYa(); + return process.exit(0); + case 'PASSWORD': + banner.wrongPassword(); + return gitLabelmaker(); + default: + console.warn(e); + return process.exit(1); + } + }); +}; +exports.gitLabelmaker = gitLabelmaker; - default: - console.warn(e); - process.exit(1); - } - }); - }; // resetToken function const resetToken = () => { - banner.resetToken(); - return setToken(gitLabelmaker); + banner.resetToken(); + return setToken(gitLabelmaker); }; +exports.resetToken = resetToken; // addCustom labels function const addCustom = (repo, token) => { - banner.addCustom(); - return doCustomLabelPrompts( [], (newLabels) => { - let hexedLabels = newLabels.map((newLabel) => { - if (newLabel.color.indexOf(",") > -1){ - try { - newLabel.color = convertRGBToHex(newLabel.color); - } - catch(e){ - // graceful quit if one of the values isn't actually rgb; - console.log(e); - gitLabelmaker(token); - } - } - return newLabel; - }).map((newLabel)=>{ - newLabel.color = "#"+newLabel.color; - return newLabel; + banner.addCustom(); + return doCustomLabelPrompts([], newLabels => { + newLabels.map(newLabel => { + if (newLabel.color.indexOf(',') > -1) { + try { + newLabel.color = convertRGBToHex(newLabel.color); // eslint-disable-line + } catch (e) { + // graceful quit if one of the values isn't actually rgb; + console.log(e); + gitLabelmaker(token); + } + } + return newLabel; + }).map(newLabel => { + const _newLabel = newLabel; + _newLabel.color = `#${newLabel.color}`; + return _newLabel; + }); + gitLabel.add(configGitLabel(repo, token), newLabels) + .then(console.log) + .catch(console.warn); }); - gitLabel.add( configGitLabel(repo, token), newLabels ) - .then(console.log) - .catch(console.warn); - }); }; +exports.addCustom = addCustom; // addFromPackage function const addFromPackage = (repo, token, path) => { - gitLabel.find( removeAllFromStr( path, [ "`", '"', "'" ] ) ) - .then((newLabels)=>{ - return gitLabel.add( configGitLabel(repo, token), newLabels ); - }) - .then(console.log) - .catch(console.warn); + gitLabel.find(removeAllFromStr(path, ['`', '"', '\''])) + .then(newLabels => gitLabel.add( + configGitLabel(repo, token), newLabels) + ) + .then(console.log) + .catch(console.warn); }; +exports.addFromPackage = addFromPackage; // removeLabels function const removeLabels = (repo, token, answers) => { - // Tell the user what they're about to lose - console.log("About to delete the following labels:"); - alertDeletes(answers.removals);// alerts the list of labels to be removed - // Ya sure ya wanna do this bud? - prompt(prompts.deleteConfirm) - .then((confirmRemove)=>{ - if ( confirmRemove.youSure ) { - return gitLabel.remove( configGitLabel(repo, token), answers.removals ); - } - gitLabelmaker(); - }) - .then(console.log) - .catch(console.warn); + // Tell the user what they're about to lose + console.log('About to delete the following labels:'); + alertDeletes(answers.removals);// alerts the list of labels to be removed + // Ya sure ya wanna do this bud? + prompt(prompts.deleteConfirm) + .then(confirmRemove => { + if (confirmRemove.youSure) { + return gitLabel.remove(configGitLabel(repo, token), answers.removals); + } + return gitLabelmaker(); + }) + .then(console.log) + .catch(console.warn); }; +exports.removeLabels = removeLabels; // Callback for the main prompts, handles program flow const handleMainPrompts = (repo, token, ans) => { - switch ( ans.main.toLowerCase() ) { - case "quit": - banner.seeYa(); - process.exit(1); - break; - - case "reset token": - resetToken(); - break; - - case "add custom labels": - addCustom(repo, token); - break; - - case "add labels from package": - banner.addFromPackage(); - prompt([{ - name: "path", - type: "input", - message: "What is the path & name of the package you want to use? (eg: `packages/my-label-pkg.json`)", - validate: validateAddPackages - }]) - .then((ans)=>{ - return addFromPackage( repo, token, ans.path ); - }) - .catch(console.warn); - break; - - case "create a package from labels": - banner.createPkgFromLabels(); - let labelPkg = []; - requestLabels(repo, token) - .then((labels)=>{ - if ( labels.length <= 0 ) return new Error("This repo has no labels to generate a package with!"); - // tell the user what labels we are going to remove - console.log("Creating a labels package from these labels:"); - labelPkg = labels.map((label)=>{ - console.log(" - "+label.name); - return { name: label.name, color: "#"+label.color }; - }); - return prompt([{ - name: "name", - type: "input", - message: "What would you like to name this .json file?", - default: "labels.json" - }]); - }) - .then((ans)=>{ - if (ans.name.indexOf(".json") < 0){ - ans.name = ans.name + ".json"; - } - fs.writeFile( ans.name, JSON.stringify(labelPkg, null, 2), (e) => { - if (e) throw e; - console.log("Saved labels as "+ans.name); - gitLabelmaker(token); - }) - }) - .catch(console.warn); - break; - - case "remove labels": - banner.removeLabels(); - // If there are no labels to be removed then we can skip this part - requestLabels(repo, token) - .then((labels)=>{ - if ( labels.length <= 0 ) return new Error("This repo has no labels to remove!"); - return prompt([{ - name: "removals", - type: "checkbox", - message: "Which labels would you like to remove?", - choices: labels.map((label) => label.name), - validate: validateRemovals, - filter: filterRemovalLabels.bind(null, labels) - }]); - }) - .then((answers)=>{ - if (answers.removals){ - return removeLabels(repo, token, answers); - } - console.log(answers); - }) - .catch(console.warn); - break; - - case "remove all labels": - banner.removeAllLabels(); - requestLabels(repo, token) - .then((labels)=>{ - if (labels.length !== 0) { - removeLabels(repo, token, { - removals: labels - }); - } else { - console.log("No labels to remove."); - } - }) - .catch(console.warn); - break; + let labelPkg = []; + switch (ans.main.toLowerCase()) { + case 'quit': + banner.seeYa(); + return process.exit(1); + + case 'reset token': + return resetToken(); + + case 'add custom labels': + return addCustom(repo, token); + + case 'add labels from package': + banner.addFromPackage(); + return prompt([{ + name: 'path', + type: 'input', + message: 'What is the path & name of the package you want to use? (eg: `packages/my-label-pkg.json`)', + validate: validateAddPackages, + }]) + .then(answer => addFromPackage(repo, token, answer.path)) + .catch(console.warn); + + case 'create a package from labels': + banner.createPkgFromLabels(); + return requestLabels(repo, token) + .then(labels => { + if (labels.length <= 0) return new Error('This repo has no labels to generate a package with!'); + // tell the user what labels we are going to remove + console.log('Creating a labels package from these labels:'); + labelPkg = labels.map(label => { + console.log(` - ${label.name}`); + return { name: label.name, color: `#${label.color}`, }; + }); + return prompt([{ + name: 'name', + type: 'input', + message: 'What would you like to name this .json file?', + default: 'labels.json', + }]); + }) + .then(answer => { + const _answer = answer; + if (answer.name.indexOf('.json') < 0) { + _answer.name = `${answer.name}.json`; + } + fs.writeFile(answer.name, JSON.stringify(labelPkg, null, 2), e => { + if (e) throw e; + console.log(`Saved labels as ${answer.name}`); + gitLabelmaker(token); + }); + }) + .catch(console.warn); + + case 'remove labels': + banner.removeLabels(); + // If there are no labels to be removed then we can skip this part + return requestLabels(repo, token) + .then(labels => { + if (labels.length <= 0) return new Error('This repo has no labels to remove!'); + return prompt([{ + name: 'removals', + type: 'checkbox', + message: 'Which labels would you like to remove?', + choices: labels.map((label) => label.name), + validate: validateRemovals, + filter: filterRemovalLabels.bind(null, labels), + }]); + }) + .then(answers => { + if (answers.removals) { + return removeLabels(repo, token, answers); + } + return console.log(answers); + }) + .catch(console.warn); + + case 'remove all labels': + banner.removeAllLabels(); + return requestLabels(repo, token) + .then(labels => { + if (labels.length !== 0) { + removeLabels(repo, token, { + removals: labels, + }); + } else { + console.log('No labels to remove.'); + } + }) + .catch(console.warn); - default: - gitLabelmaker(); - } + default: + return gitLabelmaker(); + } }; +exports.handleMainPrompts = handleMainPrompts; // Begin our application gitLabelmaker(); diff --git a/bin/modules/__tests__/convert-rgb-to-hex.spec.js b/bin/modules/__tests__/convert-rgb-to-hex.spec.js new file mode 100644 index 0000000..bed8d1a --- /dev/null +++ b/bin/modules/__tests__/convert-rgb-to-hex.spec.js @@ -0,0 +1,11 @@ +const convertRGBToHex = require('../convert-rgb-to-hex.js'); + +test('it throws an error if more than 3 RGB values are detected', () => { + expect(convertRGBToHex('rgb(2, 3, 4, 5)')).toThrow(); +}); + +test('it returns the expected hex value', () => { + const testStr = 'rgb(0, 170, 204)'; + const expected = '00aacc'; + expect(convertRGBToHex(testStr)).toBe(expected); +}); diff --git a/bin/modules/convert-rgb-to-hex.js b/bin/modules/convert-rgb-to-hex.js new file mode 100644 index 0000000..aaef96a --- /dev/null +++ b/bin/modules/convert-rgb-to-hex.js @@ -0,0 +1,25 @@ +/** + * Accepts a string and finds three RGB values in it. Returns the hex of it. + * @param {String} color - a string that has three values in it. could be "1, 2, 3", could be "rgb(1, 2, 3)"; + * @return {String} hex - the hex of the above color + */ + +'use strict'; + +const rgbHex = require('rgb-hex'); +const removeAllFromStr = require('../utils/remove-all-from-str.js'); + +module.exports = (color) => { + // strip other strings off + const stripNonValRgbText = str => removeAllFromStr(str, ['rgb', '(', ')', ' ']); + // rgbHex only accepts numbers, this checks for NaN + const includesNonNumbers = arr => !!(arr.filter(val => isNaN(val)).length); + // actually generates our RGB values + const values = color.split(',') + .map(val => val.toLowerCase()) + .map(stripNonValRgbText) + .map(val => parseInt(val)); + // console.log(values); + if (values.length > 3 || includesNonNumbers(values)) return new Error('You must pass a valid RGB value to convertRGBToHex!'); + return rgbHex(values[0], values[1], values[2]); +}; diff --git a/bin/modules/convertRGBToHex.js b/bin/modules/convertRGBToHex.js deleted file mode 100644 index e17a3b3..0000000 --- a/bin/modules/convertRGBToHex.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Accepts a string and finds three RGB values in it. Returns the hex of it. - * @param {String} color - a string that has three values in it. could be "1, 2, 3", could be "rgb(1, 2, 3)"; - * @return {String} hex - the hex of the above color - */ -"use strict"; -const rgbHex = require("rgb-hex"); -const removeAllFromStr = require("../utils/removeAllFromStr"); - -module.exports = ( color ) => { - // strip other shit off, return an array - let values = color.split(",").map((val) => { - return removeAllFromStr(val.toLowerCase(), ["rgb", "(", ")", " "]); - }) - if (values.length < 3) return new Error("You must pass a valid RGB value to convertRGBToHex!"); - return rgbHex( values[0], values[1], values[2] ); -}; diff --git a/bin/modules/do-custom-label-prompts.js b/bin/modules/do-custom-label-prompts.js new file mode 100644 index 0000000..2839335 --- /dev/null +++ b/bin/modules/do-custom-label-prompts.js @@ -0,0 +1,24 @@ +/** + * Curry for a fn that recursivly asks if you want to add another new label, then calls a callback when youre all done + * @param {Array} prompts - array of addCustom prompts + * @return {Function} function that will recursivly generate a list of new custom labels + */ + + +const prompt = require('./prompt.js'); + +module.exports = (prompts) => { + const doCustomLabelPrompts = (newLabels, done) => { + prompt(prompts) + .then((answers) => { + newLabels.push({ name: answers.labelName, color: answers.labelColor, }); + if (answers.addAnother) { + doCustomLabelPrompts(newLabels, done); + } else { + done(newLabels); + } + }) + .catch(console.warn); + }; + return doCustomLabelPrompts; +}; diff --git a/bin/modules/doCustomLabelPrompts.js b/bin/modules/doCustomLabelPrompts.js deleted file mode 100644 index 291897a..0000000 --- a/bin/modules/doCustomLabelPrompts.js +++ /dev/null @@ -1,23 +0,0 @@ -/** - * Curry for a fn that recursivly asks if you want to add another new label, then calls a callback when youre all done - * @param {Array} prompts - array of addCustom prompts - * @return {Function} function that will recursivly generate a list of new custom labels - */ -"use strict"; -const prompt = require("./prompt"); - -module.exports = (prompts) => { - const doCustomLabelPrompts = ( newLabels, done ) => { - prompt( prompts ) - .then((answers) => { - newLabels.push({ name: answers.labelName, color: answers.labelColor }); - if ( answers.addAnother ){ - doCustomLabelPrompts( newLabels, done ); - }else{ - done( newLabels ); - } - }) - .catch(console.warn); - }; - return doCustomLabelPrompts; -}; diff --git a/bin/modules/fetch-token.js b/bin/modules/fetch-token.js new file mode 100644 index 0000000..9cb3024 --- /dev/null +++ b/bin/modules/fetch-token.js @@ -0,0 +1,71 @@ +/** + * Returns a promise that fetches the token and resolves with it if it's found + * @dep {node} fs + * @return {Promise} + */ +const fs = require('fs'); +const Path = require('path'); +const Buttercup = require('buttercup'); +const prompt = require('./prompt.js'); +const err = require('../utils/error-generator.js')('TOKEN'); + +const tokenActions = { + unlock: 'Use Saved Token', + create: 'Create New Token', +}; +const bcupPath = Path.resolve(__dirname, '../..', '.git-labelmaker.bcup'); + +module.exports = (rememberedToken) => new Promise((res, rej) => { + if (rememberedToken) return res(rememberedToken); + return fs.exists(bcupPath, (exists) => { + if (!exists) return rej(err('No token found!')); + return prompt([{ + type: 'list', + name: 'token_action', + message: 'You have a saved token.\nWould you like to unlock & use this token, or create a new one?', + choices: [tokenActions.unlock, tokenActions.create, 'Quit'], + }]) + .then((answer) => { + switch (answer.token_action) { + case tokenActions.unlock: + prompt([{ + type: 'password', + name: 'master_password', + message: 'What is your master password?', + }]) + .then(ans => { + const datasource = new Buttercup.FileDatasource(bcupPath); + datasource.load(ans.master_password).then((archive) => { + // This is only guaranteed to work on buttercup 0.14.0, awaiting PR in buttercup + const groups = archive.getGroups(); + const group = groups.filter((g) => g._remoteObject.title === 'git-labelmaker')[0]; + const token = group.getAttribute('token'); + res(token); + }) + .catch(e => { + if (e.message === 'Failed opening archive: Error: Encrypted content has been tampered with') { + return rej({ + id: 'PASSWORD', + }); + } + return rej(err(e.message)); + }); + }) + .catch((e) => { + rej(err(e.message)); + }); + break; + case tokenActions.create: + fs.unlink(bcupPath, () => { + rej(err(tokenActions.create)); + }); + break; + default: + rej({ + id: 'QUIT', + message: 'User quit the application', + }); + }// end switch + }); + }); +}); diff --git a/bin/modules/fetchToken.js b/bin/modules/fetchToken.js deleted file mode 100644 index 91068ed..0000000 --- a/bin/modules/fetchToken.js +++ /dev/null @@ -1,76 +0,0 @@ -/** - * Returns a promise that fetches the token and resolves with it if it's found - * @dep {node} fs - * @return {Promise} - */ -"use strict"; -const fs = require("fs"); -const Path = require("path"); -const Buttercup = require("buttercup"); -const prompt = require("./prompt"); -const pswrdPrompt = require("../prompts/password"); -const err = require("../utils/errorGenerator")("TOKEN"); -const bcupPath = Path.resolve(__dirname, "../..", ".git-labelmaker.bcup"); -const tokenActions = { - unlock: "Use Saved Token", - create: "Create New Token" -} - -module.exports = (rememberedToken) => { - return new Promise((res, rej) => { - if (rememberedToken) return res(rememberedToken); - fs.exists(bcupPath, (exists) => { - if (!exists) return rej(err("No token found!")); - prompt([{ - type: "list", - name: "token_action", - message: "You have a saved token.\nWould you like to unlock & use this token, or create a new one?", - choices: [ tokenActions.unlock, tokenActions.create, "Quit" ] - }]) - .then((answer) => { - switch(answer.token_action) { - case tokenActions.unlock: - prompt([{ - type: "password", - name: "master_password", - message: "What is your master password?" - }]) - .then((answer) => { - let datasource = new Buttercup.FileDatasource(bcupPath); - datasource.load(answer.master_password).then((archive) => { - // This is only guaranteed to work on buttercup 0.14.0, awaiting PR in buttercup - let groups = archive.getGroups(); - let group = groups.filter((g) => g._remoteObject.title === 'git-labelmaker')[0]; - let token = group.getAttribute('token'); - res(token); - }) - .catch((e)=>{ - if (e.message === 'Failed opening archive: Error: Encrypted content has been tampered with') { - rej({ - id: "PASSWORD" - }); - - return; - } - rej(err(e.message)); - }) - }) - .catch((e)=>{ - rej(err(e.message)); - }) - break; - case tokenActions.create: - fs.unlink(bcupPath, () => { - rej(err(tokenActions.create)); - }); - break; - default: - rej({ - id: "QUIT", - message: "User quit the application" - }); - }// end switch - }); - }); - }); -}; diff --git a/bin/modules/get-parsed-git-url.js b/bin/modules/get-parsed-git-url.js new file mode 100644 index 0000000..66ed332 --- /dev/null +++ b/bin/modules/get-parsed-git-url.js @@ -0,0 +1,12 @@ +const gitUrl = require('github-url-from-git'); + +module.exports = (config, remote, error) => { + const url = config[remote].url; + const parsedGitUrl = gitUrl(url); + const rootGithubUrl = 'https://github.com/'; + // Note: this is github specific + if (!parsedGitUrl || parsedGitUrl.indexOf(rootGithubUrl) === -1) return error(); + return parsedGitUrl + .split(rootGithubUrl) // -> ['', 'user/repo'] + .reduce((a, b) => b.length ? b : a); // eslint-disable-line no-confusing-arrow +}; diff --git a/bin/modules/is-git-repo.js b/bin/modules/is-git-repo.js new file mode 100644 index 0000000..2659590 --- /dev/null +++ b/bin/modules/is-git-repo.js @@ -0,0 +1,16 @@ +/** + * Returns a promise that attempts to read the ./.git/ directory in the folder + * @dep {node} fs + * @return {Promise} Promise that resolves with true if you are in a git repo + */ + + +const fs = require('fs'); +const err = require('../utils/error-generator.js')('GIT_REPO')('Please run git-labelmaker inside a git repository!'); + +module.exports = () => new Promise((res, rej) => { + fs.readdir(`${process.cwd()}/.git/`, (e, files) => { + if (e) rej(err); + res(true, files); + }); +}); diff --git a/bin/modules/isGitRepo.js b/bin/modules/isGitRepo.js deleted file mode 100644 index ac957dc..0000000 --- a/bin/modules/isGitRepo.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Returns a promise that attempts to read the ./.git/ directory in the folder - * @dep {node} fs - * @return {Promise} Promise that resolves with true if you are in a git repo - */ -"use strict"; -const fs = require("fs"); -const err = require("../utils/errorGenerator")("GIT_REPO")("Please run git-labelmaker inside a git repository!") - -module.exports = () => { - return new Promise((res, rej) => { - fs.readdir(process.cwd()+'/.git/', (e, files) => { - if (e) rej(err) - res(true); - }) - }); -}; diff --git a/bin/modules/prompt.js b/bin/modules/prompt.js index a0a1e6a..d02cdac 100644 --- a/bin/modules/prompt.js +++ b/bin/modules/prompt.js @@ -4,14 +4,13 @@ * @param {Array} prompts - array of prompts for Inquirer * @return {Promise} - Promise that resolves answers to the prompts */ -"use strict"; -const iq = require("inquirer"); -module.exports = (prompts) => { - return new Promise((res, rej)=>{ + +const iq = require('inquirer'); + +module.exports = (prompts) => new Promise((res, rej) => { iq.prompt(prompts, (answers) => { - if ( !answers ) rej(answers); - res(answers); + if (!answers) rej(answers); + res(answers); }); - }); -}; +}); diff --git a/bin/modules/readGitConfig.js b/bin/modules/read-git-config.js similarity index 51% rename from bin/modules/readGitConfig.js rename to bin/modules/read-git-config.js index 4ae8c77..01bff03 100644 --- a/bin/modules/readGitConfig.js +++ b/bin/modules/read-git-config.js @@ -3,15 +3,14 @@ * @dep {node} fs * @return {Promise} Promise that resolves with the contents of the git config file */ -"use strict"; + + const parse = require('parse-git-config'); -const err = require("../utils/errorGenerator")("GIT_CONFIG")("Unable to read git config file!") +const err = require('../utils/error-generator.js')('GIT_CONFIG')('Unable to read git config file!'); -module.exports = () => { - return new Promise((res, rej)=>{ - parse(function (e, config) { - if (e) rej(err); - res( config ); +module.exports = () => new Promise((res, rej) => { + parse((e, config) => { + if (e) rej(err); + res(config); }); - }); -}; +}); diff --git a/bin/modules/read-repo.js b/bin/modules/read-repo.js new file mode 100644 index 0000000..c3c8ad1 --- /dev/null +++ b/bin/modules/read-repo.js @@ -0,0 +1,42 @@ +/** + * Returns the repo ("user/repo") based on the input git config file contents + * @dep {npm} github-url-from-git + * @param {String} rawConfig + * @return {String} repo + */ + + +const getParsedGitUrl = require('./get-parsed-git-url.js'); +const prompt = require('./prompt.js'); +const askWhichRemotePrompt = require('../prompts/ask-which-remote.js'); +const err = require('../utils/error-generator.js')('READ_REPO')('Could not read git repo from your .git/ directory!'); + + +// TODO: this could be broken off into an error-throwing module +const throwReadRepoError = () => { + console.error(`Error:\n Code: ${err.id}\n Message: ${err.message}`); + process.exit(1); +}; +// TODO: Break these off too +const hasMultipleRemotes = (config) => Object.keys(config).filter(key => key.indexOf('remote') > -1); + +const hasRemoteUrl = (config, remote) => remote && config[remote] && config[remote].url; + + +module.exports = (config) => new Promise((res, rej) => { + const remotes = hasMultipleRemotes(config); + if (!config || !remotes.length) return throwReadRepoError(); + + if (remotes.length > 1) { + return prompt(askWhichRemotePrompt(remotes)) + .then(({ remote, }) => { + res(getParsedGitUrl(config, remote, throwReadRepoError)); + }) + .catch(e => { + throwReadRepoError(e); + rej(e); // TODO: redundant because throwReadRepoError exits + }); + } + if (!hasRemoteUrl(config, remotes[0])) return throwReadRepoError(); + return res(getParsedGitUrl(config, remotes[0], throwReadRepoError)); +}); diff --git a/bin/modules/readRepo.js b/bin/modules/readRepo.js deleted file mode 100644 index e90fe39..0000000 --- a/bin/modules/readRepo.js +++ /dev/null @@ -1,16 +0,0 @@ -/** - * Returns the repo ("user/repo") based on the input git config file contents - * @dep {npm} github-url-from-git - * @param {String} rawConfig - * @return {String} repo - */ -"use strict"; -const gitUrl = require("github-url-from-git"); - -module.exports = ( config ) => { - // Retrieve the url of the origin remote - // Some repo can have multiple origin - const url = config['remote "origin"']['url']; - const repoParts = gitUrl(url).split("/");// gives us an array of each part of - return repoParts[repoParts.length-2] + "/" + repoParts[repoParts.length-1]; -}; diff --git a/bin/modules/requestLabels.js b/bin/modules/request-labels.js similarity index 56% rename from bin/modules/requestLabels.js rename to bin/modules/request-labels.js index e521b61..d6f05e7 100644 --- a/bin/modules/requestLabels.js +++ b/bin/modules/request-labels.js @@ -5,14 +5,13 @@ * @param {String} token - the user's GH API token * @return {Promise} - Promise that resolves with the repo's labels, rejects with octonode error */ -"use strict"; -const octonode = require("octonode"); -module.exports = ( repo, token ) => { - return new Promise((res, rej)=>{ - octonode.client(token).get('/repos/'+repo+'/labels', (e, status, body) => { - if (e) rej(e); - res(body); + +const octonode = require('octonode'); + +module.exports = (repo, token) => new Promise((res, rej) => { + octonode.client(token).get(`/repos/${repo}/labels`, { per_page: 100, }, (e, status, body) => { + if (e) return rej(e); + return res(body); }); - }); -}; +}); diff --git a/bin/modules/set-token.js b/bin/modules/set-token.js new file mode 100644 index 0000000..4af5fd8 --- /dev/null +++ b/bin/modules/set-token.js @@ -0,0 +1,39 @@ +/** + * Returns a promise that fetches the token and resolves with it if it's found + * @dep {npm} inquirer + * @param {Function} callback function + */ + +const Buttercup = require('buttercup'); +const prompt = require('./prompt.js'); + +const bcupPath = `${__dirname}/../../.git-labelmaker.bcup`; + +const writeToken = (password, token) => new Promise((res, rej) => { + const datasource = new Buttercup.FileDatasource(bcupPath); + if (!datasource) return rej('No datasource'); + const archive = Buttercup.Archive.createWithDefaults(); + const group = archive.createGroup('git-labelmaker'); + group.setAttribute('token', token); + datasource.save(archive, password); + return res(token); +}); + +module.exports = (done) => { + prompt([{ + type: 'input', + name: 'token', + message: 'What is your GitHub Access Token?', + validate: (answer) => (answer !== undefined && answer.length !== 0), + }, { + type: 'password', + name: 'master_password', + message: 'What is your master password, to keep your access token secure?', + when: (answer) => (answer.token !== undefined && answer.token.length !== 0), + }]) + .then((answer) => writeToken(answer.master_password, answer.token)) + .then((token) => { + done(token); + }) + .catch(console.warn); +}; diff --git a/bin/modules/setToken.js b/bin/modules/setToken.js deleted file mode 100644 index 71bb96d..0000000 --- a/bin/modules/setToken.js +++ /dev/null @@ -1,47 +0,0 @@ -/** - * Returns a promise that fetches the token and resolves with it if it's found - * @dep {node} fs - * @dep {npm} inquirer - * @param {Function} callback function - */ -"use strict"; -const fs = require("fs"); -const prompt = require("./prompt"); -const bcupPath = __dirname+"/../../.git-labelmaker.bcup"; -const Buttercup = require("buttercup"); - -const writeToken = (password, token) => { - return new Promise((res, rej) => { - let datasource = new Buttercup.FileDatasource(bcupPath); - let archive = Buttercup.Archive.createWithDefaults(); - let group = archive.createGroup("git-labelmaker"); - group.setAttribute('token', token); - datasource.save(archive, password); - res(token); - }); -}; - -module.exports = (done) => { - prompt([{ - type: "input", - name: "token", - message: "What is your GitHub Access Token?", - validate: (answer) => { - return (answer !== undefined && answer.length !== 0); - } - }, { - type: "password", - name: "master_password", - message: "What is your master password, to keep your access token secure?", - when: (answer) => { - return (answer.token !== undefined && answer.token.length !== 0); - } - }]) - .then((answer) => { - return writeToken(answer.master_password, answer.token); - }) - .then((token)=>{ - done(token); - }) - .catch(console.warn); -}; diff --git a/bin/modules/validate-add-packages.js b/bin/modules/validate-add-packages.js new file mode 100644 index 0000000..4b9b243 --- /dev/null +++ b/bin/modules/validate-add-packages.js @@ -0,0 +1,34 @@ +/** + * Ensures that the label package file actually exists + * @param {String} path - path to the json file label package + * @return {Bool || Error} this is a try-catch where the error + */ + + +const fs = require('fs'); +const path = require('path'); +const isJsonString = require('../utils/is-json-string.js'); + +// Not using arrows bc it will mess up "this" context +module.exports = function (jsonPath) { // eslint-disable-line func-names + // Declare function as asynchronous, and save the done callback + const done = this.async(); + try { + if (jsonPath.indexOf('.json') < 0) { + done('Not a JSON file'); + return; + } + // Calculate the full path of the JSON file based upon the current working directory. Using + // path.resolve allows for absolute paths to be used also. + const fullPath = path.resolve(process.cwd(), jsonPath); + fs.readFile(fullPath, (err, data) => { + if (err) { done(err); return; } + if (isJsonString(data)) { + done(true); + } + done('Not a valid JSON file'); + }); + } catch (e) { + done(e); + } +}; diff --git a/bin/modules/validateAddPackages.js b/bin/modules/validateAddPackages.js deleted file mode 100644 index ea131cf..0000000 --- a/bin/modules/validateAddPackages.js +++ /dev/null @@ -1,35 +0,0 @@ -/** - * Ensures that the label package file actually exists - * @param {String} path - path to the json file label package - * @return {Bool || Error} this is a try-catch where the error - */ -"use strict"; -const fs = require("fs"); -const path = require("path"); -const removeAllFromStr = require("../utils/removeAllFromStr"); -const isJsonString = require("../utils/isJsonString"); - -// Not using arrows bc it will mess up "this" context -module.exports = function (jsonPath) { - // Declare function as asynchronous, and save the done callback - let done = this.async(); - try { - if (jsonPath.indexOf(".json") < 0) { - done("Not a JSON file"); - return; - } - // Calculate the full path of the JSON file based upon the current working directory. Using - // path.resolve allows for absolute paths to be used also. - let fullPath = path.resolve(process.cwd(), jsonPath); - fs.readFile(fullPath, (err, data) => { - if (err){ done(err); return; } - if (isJsonString(data)) { - done(true); - } - done("Not a valid JSON file"); - }); - } catch (e){ - done(e); - return; - } -}; diff --git a/bin/prompts/__tests__/add-custom.spec.js b/bin/prompts/__tests__/add-custom.spec.js new file mode 100644 index 0000000..152b8d7 --- /dev/null +++ b/bin/prompts/__tests__/add-custom.spec.js @@ -0,0 +1,17 @@ +const addCustom = require('../add-custom.js'); + +test('it should be an array with three prompts', () => { + expect(addCustom).toBeDefined(); + expect(addCustom).toHaveLength(3); +}); + +test('the `labelName` prompt\'s validate method should return error message if val is empty', () => { + const actual = addCustom[0].validate(''); + const expected = 'Please enter something for the label name!'; + expect(actual).toEqual(expected); +}); + +test('the `labelName` prompt\'s validate method should return true if val has a value', () => { + const actual = addCustom[0].validate('Im a label!'); + expect(actual).toBeTruthy(); +}); diff --git a/bin/prompts/__tests__/ask-which-remote.spec.js b/bin/prompts/__tests__/ask-which-remote.spec.js new file mode 100644 index 0000000..34942fc --- /dev/null +++ b/bin/prompts/__tests__/ask-which-remote.spec.js @@ -0,0 +1,11 @@ +const askWhichRemote = require('../ask-which-remote.js'); + +test('it is a function', () => { + expect(typeof askWhichRemote).toEqual('function'); +}); + +test('it sets the choices to the passed in remote', () => { + const expectedRemotes = ['one', 'two', 'three']; + const actual = askWhichRemote(expectedRemotes); + expect(actual[0].choices).toEqual(expect.arrayContaining(expectedRemotes)); +}); diff --git a/bin/prompts/__tests__/delete-confirm.spec.js b/bin/prompts/__tests__/delete-confirm.spec.js new file mode 100644 index 0000000..65a3a24 --- /dev/null +++ b/bin/prompts/__tests__/delete-confirm.spec.js @@ -0,0 +1,5 @@ +const deleteConfirm = require('../delete-confirm.js'); + +test('it is an array with one prompt', () => { + expect(deleteConfirm).toHaveLength(1); +}); diff --git a/bin/prompts/__tests__/main-menu.spec.js b/bin/prompts/__tests__/main-menu.spec.js new file mode 100644 index 0000000..09b4419 --- /dev/null +++ b/bin/prompts/__tests__/main-menu.spec.js @@ -0,0 +1,10 @@ +const mainMenu = require('../main-menu.js'); +const menuChoices = require('../../constants.js').menuChoices; + +test('it is an array with one prompt', () => { + expect(mainMenu).toHaveLength(1); +}); + +test('it\'s choices are the `menuChoices` from the constants', () => { + expect(mainMenu[0].choices).toEqual(expect.arrayContaining(menuChoices)); +}); diff --git a/bin/prompts/__tests__/password.spec.js b/bin/prompts/__tests__/password.spec.js new file mode 100644 index 0000000..0b0a65f --- /dev/null +++ b/bin/prompts/__tests__/password.spec.js @@ -0,0 +1,5 @@ +const password = require('../password.js'); + +test('it is an array with 1 prompt', () => { + expect(password).toHaveLength(1); +}); diff --git a/bin/prompts/add-custom.js b/bin/prompts/add-custom.js new file mode 100644 index 0000000..42fa9ef --- /dev/null +++ b/bin/prompts/add-custom.js @@ -0,0 +1,25 @@ +/** + * The "Add Custom Labels" prompts + */ + + +module.exports = [ + { + type: 'input', + name: 'labelName', + message: 'What would you like to call this label?', + validate: (val) => { + if (val === '') return 'Please enter something for the label name!'; + return true; + }, + }, { + type: 'input', + name: 'labelColor', + message: 'What color would you like this label to be?', + }, { + type: 'confirm', + name: 'addAnother', + message: 'Would you like to add another label?', + default: true, + } +]; diff --git a/bin/prompts/addCustom.js b/bin/prompts/addCustom.js deleted file mode 100644 index 26854ec..0000000 --- a/bin/prompts/addCustom.js +++ /dev/null @@ -1,24 +0,0 @@ -/** - * The "Add Custom Labels" prompts - */ -"use strict"; -module.exports = [ - { - type: "input", - name: "labelName", - message: "What would you like to call this label?", - validate: (val) => { - if (val === "") return "Please enter something for the label name!"; - return true; - } - },{ - type: "input", - name: "labelColor", - message: "What color would you like this label to be?" - },{ - type: "confirm", - name: "addAnother", - message: "Would you like to add another label?", - default: true - } -]; diff --git a/bin/prompts/ask-which-remote.js b/bin/prompts/ask-which-remote.js new file mode 100644 index 0000000..bca8874 --- /dev/null +++ b/bin/prompts/ask-which-remote.js @@ -0,0 +1,9 @@ +/** + * The "are you sure you wanna delete these labels" prompt + */ +module.exports = (remotes) => [{ + name: 'remote', + type: 'list', + message: 'Looks like this repository has multiple remotes.\nWhich one would you like to use?', + choices: remotes, +}]; diff --git a/bin/prompts/delete-confirm.js b/bin/prompts/delete-confirm.js new file mode 100644 index 0000000..eaf6f48 --- /dev/null +++ b/bin/prompts/delete-confirm.js @@ -0,0 +1,11 @@ +/** + * The "are you sure you wanna delete these labels" prompt + */ + + +module.exports = [{ + name: 'youSure', + type: 'confirm', + message: 'Are you sure you want to delete these labels?', + default: true, +}]; diff --git a/bin/prompts/deleteConfirm.js b/bin/prompts/deleteConfirm.js deleted file mode 100644 index cc31429..0000000 --- a/bin/prompts/deleteConfirm.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * The "are you sure you wanna delete these labels" prompt - */ -"use strict"; -module.exports = [{ - name: "youSure", - type: "confirm", - message: "Are you sure you want to delete these labels?", - default: true -}]; diff --git a/bin/prompts/main-menu.js b/bin/prompts/main-menu.js new file mode 100644 index 0000000..88d1d73 --- /dev/null +++ b/bin/prompts/main-menu.js @@ -0,0 +1,13 @@ +/** + * The "Initial"/"Main" prompts + */ +const menuChoices = require('../constants.js').menuChoices; + +module.exports = [ + { + type: 'list', + name: 'main', + message: 'Welcome to git-labelmaker!\nWhat would you like to do?', + choices: menuChoices, + } +]; diff --git a/bin/prompts/mainMenu.js b/bin/prompts/mainMenu.js deleted file mode 100644 index 9cbaa43..0000000 --- a/bin/prompts/mainMenu.js +++ /dev/null @@ -1,12 +0,0 @@ -/** - * The "Initial"/"Main" prompts - */ -"use strict"; -module.exports = [ - { - type: "list", - name: "main", - message: "Welcome to git-labelmaker!\nWhat would you like to do?", - choices: [ "Add Custom Labels", "Add Labels From Package", "Create a Package From Labels", "Remove Labels", "Remove All Labels", "Reset Token", "Quit" ] - } -]; diff --git a/bin/prompts/password.js b/bin/prompts/password.js index d40d25a..e7a6c39 100644 --- a/bin/prompts/password.js +++ b/bin/prompts/password.js @@ -1,9 +1,10 @@ /** * The prompt for the user's password */ -"use strict"; + + module.exports = [{ - type: "password", - name: "master_password", - message: "What is your master password?" + type: 'password', + name: 'master_password', + message: 'What is your master password?', }]; diff --git a/bin/utils/__tests__/alert-deletes.spec.js b/bin/utils/__tests__/alert-deletes.spec.js new file mode 100644 index 0000000..e0d640d --- /dev/null +++ b/bin/utils/__tests__/alert-deletes.spec.js @@ -0,0 +1,28 @@ +'use strict'; + +const alertDeletes = require('../alert-deletes.js'); + +const _console = console; + +beforeEach(() => { + console.log = jest.fn(); +}); + +afterAll(() => { + console = _console; // eslint-disable-line no-global-assign +}); + +const getRemovals = () => { + const rand = () => Math.floor(Math.random() * 15) + 1; + const arr = []; + for (let i = 0; i < rand(); i++) { + arr.push({ name: `Testamundo #${rand()}`, }); + } + return arr; +}; + +test('calls console.log the expected number of times', () => { + const expected = getRemovals(); + alertDeletes(expected); + expect(console.log.mock.calls.length).toBe(expected.length); +}); diff --git a/bin/utils/__tests__/banners.spec.js b/bin/utils/__tests__/banners.spec.js new file mode 100644 index 0000000..fbda1e4 --- /dev/null +++ b/bin/utils/__tests__/banners.spec.js @@ -0,0 +1,85 @@ +const banners = require('../banners.js'); +const pad33 = require('../pad-33.js'); +const constants = require('../../constants.js'); + +const bar = '=======================================\n'; +const block = ']|['; +const emptyRow = `${block} ${block}\n`; +const makeExpected = (banner) => `${bar + emptyRow + block + banner + block}\n${emptyRow}${bar}`; +const _console = console; + +beforeEach(() => { + console.log = jest.fn(); +}); + +afterAll(() => { + console = _console; // eslint-disable-line no-global-assign +}); + + +test('it contains the correct number of banners', () => { + expect(Object.keys(banners).length).toBe(constants.banners.length); +}); + +test('it prints the welcome banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[0])); + banners.welcome(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the addCustom banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[1])); + banners.addCustom(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the addFromPackage banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[2])); + banners.addFromPackage(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the createPkgFromLabels banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[3])); + banners.createPkgFromLabels(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the removeLabels banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[4])); + banners.removeLabels(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the resetToken banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[5])); + banners.resetToken(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the seeYa banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[6])); + banners.seeYa(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the wrongPassword banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[7])); + banners.wrongPassword(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); + +test('it prints the removeAllLabels banner to the console', () => { + const expected = makeExpected(pad33(constants.banners[8])); + banners.removeAllLabels(); + expect(console.log.mock.calls.length).toBe(1); + expect(console.log.mock.calls[0][0]).toBe(expected); +}); diff --git a/bin/utils/__tests__/config-git-label.spec.js b/bin/utils/__tests__/config-git-label.spec.js new file mode 100644 index 0000000..deb2b78 --- /dev/null +++ b/bin/utils/__tests__/config-git-label.spec.js @@ -0,0 +1,10 @@ +const configGitLabel = require('../config-git-label.js'); + +test('it returns an object with the correct props', () => { + const repo = 'dave'; + const token = '12345'; + const actual = configGitLabel(repo, token); + expect(actual).toHaveProperty('api', 'https://api.github.com'); + expect(actual).toHaveProperty('repo', repo); + expect(actual).toHaveProperty('token', token); +}); diff --git a/bin/utils/__tests__/error-generator.spec.js b/bin/utils/__tests__/error-generator.spec.js new file mode 100644 index 0000000..0f8d45d --- /dev/null +++ b/bin/utils/__tests__/error-generator.spec.js @@ -0,0 +1,15 @@ +const errorGenerator = require('../error-generator.js'); + + +test('returns a function', () => { + const actual = errorGenerator(''); + expect(typeof actual).toBe('function'); +}); + +test('the returned function returns an object with the correct props', () => { + const expectedId = '1234'; + const expectedErr = 'Whoops!'; + const actual = errorGenerator(expectedId)(expectedErr); + expect(actual).toHaveProperty('id', expectedId); + expect(actual).toHaveProperty('err', expectedErr); +}); diff --git a/bin/utils/__tests__/filter-removal-labels.spec.js b/bin/utils/__tests__/filter-removal-labels.spec.js new file mode 100644 index 0000000..2319d11 --- /dev/null +++ b/bin/utils/__tests__/filter-removal-labels.spec.js @@ -0,0 +1,26 @@ +const filterRemovalLabels = require('../filter-removal-labels.js'); + +test('returns a filtered list based on the given names', () => { + const mockLabels = [ + { + name: 'one', + color: '#123456', + }, { + name: 'two', + color: '#123456', + }, { + name: 'three', + color: '#123456', + }, { + name: 'four', + color: '#123456', + }, { + name: 'five', + color: '#123456', + }, + ]; + const expected = ['one', 'three', 'five']; + const actual = filterRemovalLabels(mockLabels, expected); + expect(actual.length).toBe(3); + expect(actual.map(r => r.name)).toEqual(expect.arrayContaining(expected)); +}); diff --git a/bin/utils/__tests__/is-json-string.spec.js b/bin/utils/__tests__/is-json-string.spec.js new file mode 100644 index 0000000..aa76753 --- /dev/null +++ b/bin/utils/__tests__/is-json-string.spec.js @@ -0,0 +1,12 @@ +const isJsonString = require('../is-json-string.js'); + + +test('returns false when a non-json string is provided', () => { + const actual = isJsonString('DAVE }}}}}{ "is" : "cool" }'); + expect(actual).toBeFalsy(); +}); + +test('returns true when a JSON string is provided', () => { + const actual = isJsonString('{"dave":"dave","lastName":"123"}'); + expect(actual).toBeTruthy(); +}); diff --git a/bin/utils/__tests__/pad-33.spec.js b/bin/utils/__tests__/pad-33.spec.js new file mode 100644 index 0000000..14ea36e --- /dev/null +++ b/bin/utils/__tests__/pad-33.spec.js @@ -0,0 +1,13 @@ +const pad33 = require('../pad-33.js'); + + +test('it returns a string that is 33 characters long', () => { + const actual = pad33('dave'); + expect(actual).toHaveLength(33); +}); + +test('the string is padded by empty spaces', () => { + const actual = pad33('dave'); + expect(actual.slice(0, 1)).toBe(' '); + expect(actual.slice(actual.length - 1, actual.length)).toBe(' '); +}); diff --git a/bin/utils/__tests__/remove-all-from-string.spec.js b/bin/utils/__tests__/remove-all-from-string.spec.js new file mode 100644 index 0000000..d2cd081 --- /dev/null +++ b/bin/utils/__tests__/remove-all-from-string.spec.js @@ -0,0 +1,10 @@ +const removeAllFromStr = require('../remove-all-from-str.js'); + +test('it removes the given items from the string', () => { + const testStr = '1 ONE 2 TWO 3 THREE'; + const removals = ['1', '2', '3']; + const actual = removeAllFromStr(testStr, removals); + expect(actual.indexOf(removals[0])).toBe(-1); + expect(actual.indexOf(removals[1])).toBe(-1); + expect(actual.indexOf(removals[2])).toBe(-1); +}); diff --git a/bin/utils/__tests__/validate-removals.spec.js b/bin/utils/__tests__/validate-removals.spec.js new file mode 100644 index 0000000..bc0ff64 --- /dev/null +++ b/bin/utils/__tests__/validate-removals.spec.js @@ -0,0 +1,12 @@ +const validateRemovals = require('../validate-removals.js'); + +test('when there are removals, it returns true', () => { + const actual = validateRemovals(['hello', 'tests']); + expect(actual).toBeTruthy(); +}); + +test('when there are not removals, it returns the error string', () => { + const expected = 'Please select at least one label to remove.'; + const actual = validateRemovals([]); + expect(actual).toBe(expected); +}); diff --git a/bin/utils/alertDeletes.js b/bin/utils/alert-deletes.js similarity index 53% rename from bin/utils/alertDeletes.js rename to bin/utils/alert-deletes.js index 0dceb45..df1dda4 100644 --- a/bin/utils/alertDeletes.js +++ b/bin/utils/alert-deletes.js @@ -2,12 +2,9 @@ * Loops through labels passed in and logs them to the console * @param {Array} removals - array of labels to be removed */ -"use strict"; -module.exports = (removals) => { - return removals.map((label)=>{ - return " - "+label.name; - }).forEach((prettyLabel)=>{ +'use strict'; + +module.exports = (removals) => removals.map(label => ` - ${label.name}`).forEach(prettyLabel => { console.log(prettyLabel); - }); -}; +}); diff --git a/bin/utils/banners.js b/bin/utils/banners.js index e7584fe..4063064 100644 --- a/bin/utils/banners.js +++ b/bin/utils/banners.js @@ -1,23 +1,28 @@ /** * Responsible for the banners, and for printing them */ -"use strict"; -const bar = "=======================================\n"; -const block = "]|["; -const emptyRow = block+" "+block+"\n"; -const printBanner = ( banner ) => { - return () => console.log( bar + emptyRow + block + banner + block + "\n" + emptyRow + bar ); -}; +const pad33 = require('./pad-33.js'); +const banners = require('../constants.js').banners; -module.exports = { - welcome: printBanner(" Welcome to git-labelmaker "), - addCustom: printBanner(" Adding Custom Labels "), - addFromPackage: printBanner(" Adding Labels From Package "), - createPkgFromLabels: printBanner(" Creating Package From Labels "), - removeLabels: printBanner(" Removing Labels "), - resetToken: printBanner(" Resetting Token "), - seeYa: printBanner(" See Ya! "), - wrongPassword: printBanner(" Wrong Password! "), - removeAllLabels: printBanner(" Removing All Labels ") -}; +const bar = '=======================================\n'; +const block = ']|['; +const emptyRow = `${block} ${block}\n`; +const printBanner = (banner) => () => console.log(`${bar + emptyRow + block + banner + block}\n${emptyRow}${bar}`); + + +const props = [ + 'welcome', + 'addCustom', + 'addFromPackage', + 'createPkgFromLabels', + 'removeLabels', + 'resetToken', + 'seeYa', + 'wrongPassword', + 'removeAllLabels', +]; + +module.exports = banners.map(pad33) + .map(printBanner) + .reduce((a, b, i) => Object.assign(a, { [props[i]]: b, }), {}); diff --git a/bin/utils/configGitLabel.js b/bin/utils/config-git-label.js similarity index 70% rename from bin/utils/configGitLabel.js rename to bin/utils/config-git-label.js index a0ce900..707094e 100644 --- a/bin/utils/configGitLabel.js +++ b/bin/utils/config-git-label.js @@ -4,12 +4,10 @@ * @param {String} token - string of the token * @return {Object} a config object for git-label */ -"use strict"; -module.exports = (repo, token) => { - return { + +module.exports = (repo, token) => ({ api: 'https://api.github.com', - repo: repo, - token: token - } -}; + repo, + token, +}); diff --git a/bin/utils/errorGenerator.js b/bin/utils/error-generator.js similarity index 66% rename from bin/utils/errorGenerator.js rename to bin/utils/error-generator.js index 4105546..44999fd 100644 --- a/bin/utils/errorGenerator.js +++ b/bin/utils/error-generator.js @@ -2,7 +2,6 @@ * Curry for a function that returns an error object based on the id passed to this fn * @return {Function} Function that accpets a message and returns an error message` */ -"use strict"; -module.exports = (id) => { - return (message) => ({ id: id, err: message }); -}; + + +module.exports = (id) => (err) => ({ id, err, }); diff --git a/bin/utils/filterRemovalLabels.js b/bin/utils/filter-removal-labels.js similarity index 53% rename from bin/utils/filterRemovalLabels.js rename to bin/utils/filter-removal-labels.js index a53c5d4..ed529dd 100644 --- a/bin/utils/filterRemovalLabels.js +++ b/bin/utils/filter-removal-labels.js @@ -4,13 +4,10 @@ * @param {Array} labels - full list of labels from GH API call * @return {Array} removals - array of proper label objects to be removed */ -"use strict"; -module.exports = (labels, removals) => { - return labels.map((label)=>{ - return { name: label.name, color: "#"+label.color } - }) - .filter((label)=>{ - return removals.indexOf(label.name) > -1; - }); -}; +'use strict'; + +module.exports = (labels, removals) => labels.reduce((a, label) => { + if (removals.indexOf(label.name) > -1) a.push(Object.assign({}, label, { color: `#${label.color}`, })); + return a; +}, []); diff --git a/bin/utils/isJsonString.js b/bin/utils/is-json-string.js similarity index 70% rename from bin/utils/isJsonString.js rename to bin/utils/is-json-string.js index b19befc..cde0306 100644 --- a/bin/utils/isJsonString.js +++ b/bin/utils/is-json-string.js @@ -3,13 +3,13 @@ * @param {String} str - string to be tested * @return {Boolean} - returns true if it's a JSON object and false if it isn't */ -"use strict"; + module.exports = (str) => { - try { - JSON.parse(str); - } catch (e) { - return false; - } - return true; + try { + JSON.parse(str); + } catch (e) { + return false; + } + return true; }; diff --git a/bin/utils/pad-33.js b/bin/utils/pad-33.js new file mode 100644 index 0000000..364af2b --- /dev/null +++ b/bin/utils/pad-33.js @@ -0,0 +1,6 @@ +/** + * Pads a banner string to be 33 characters + */ +const S = require('string'); + +module.exports = (str) => S(str).pad(33).s; diff --git a/bin/utils/remove-all-from-str.js b/bin/utils/remove-all-from-str.js new file mode 100644 index 0000000..70f94fa --- /dev/null +++ b/bin/utils/remove-all-from-str.js @@ -0,0 +1,20 @@ +/** + * Accepts a string an array of substrings to be removed + * @param {String} str - string to be cleaned + * @param {Array} finds - array of substrings to be removed + * @return {String} a "cleaned" string + */ + +'use strict'; + +const S = require('string'); + +const removeAllFromStr = (str, removals) => { + let cleanStr = str; + removals.map(remove => { // eslint-disable-line array-callback-return + cleanStr = S(cleanStr).strip(remove).s; + }); + return cleanStr; +}; + +module.exports = removeAllFromStr; diff --git a/bin/utils/removeAllFromStr.js b/bin/utils/removeAllFromStr.js deleted file mode 100644 index 1f587c1..0000000 --- a/bin/utils/removeAllFromStr.js +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Accepts a string an array of substrings to be removed - * @param {String} str - string to be cleaned - * @param {Array} finds - array of substrings to be removed - * @return {String} a "cleaned" string - */ -"use strict"; - -const removeAllFromStr = (str, finds) => { - let cleanStr = str; - finds.map((find)=>{ - cleanStr = cleanStr.split(find).join(""); - }); - return cleanStr; -}; - -module.exports = removeAllFromStr; diff --git a/bin/utils/validateRemovals.js b/bin/utils/validate-removals.js similarity index 56% rename from bin/utils/validateRemovals.js rename to bin/utils/validate-removals.js index 34ce3e4..fafe969 100644 --- a/bin/utils/validateRemovals.js +++ b/bin/utils/validate-removals.js @@ -3,8 +3,6 @@ * @param {Array} removals - array of labels to be removed * @return {String || Boolean} Returns true if there is one or more items in the array */ -"use strict"; -module.exports = (removals) => { - return removals.length === 0 ? "Please select at least one label to remove." : true; -}; + +module.exports = (removals) => removals.length === 0 ? 'Please select at least one label to remove.' : true; // eslint-disable-line no-confusing-arrow diff --git a/package.json b/package.json index d6ab5ff..d2cfee1 100644 --- a/package.json +++ b/package.json @@ -1,11 +1,13 @@ { "name": "git-labelmaker", - "version": "0.8.1", + "version": "0.9.0", "description": "Manage your GitHub labels from the command line!", "main": "bin/index.js", "scripts": { "start": "./bin/index.js", - "test": "echo No tests" + "test": "jest --verbose --coverage --no-cache", + "lint": "eslint ./bin/ --no-cache", + "precommit": "npm run lint && npm run test" }, "repository": { "type": "git", @@ -15,7 +17,8 @@ "git-labelmaker": "bin/index.js" }, "engines": { - "node": ">= 4.0.0" + "node": ">= 4.0.0", + "npm": ">= 3.9.0" }, "preferGlobal": true, "keywords": [ @@ -34,10 +37,18 @@ "dependencies": { "buttercup": "~0.24.0", "git-label": "^4.1.1", - "github-url-from-git": "^1.4.0", + "github-url-from-git": "^1.5.0", "inquirer": "^0.11.1", "octonode": "^0.7.4", - "rgb-hex": "^1.0.0", - "parse-git-config": "^0.4.0" + "parse-git-config": "^1.1.1", + "rgb-hex": "^2.1.0", + "string": "^3.3.3" + }, + "devDependencies": { + "eslint": "^3.19.0", + "eslint-config-airbnb-base": "^11.1.2", + "eslint-plugin-import": "^2.2.0", + "husky": "^0.13.3", + "jest": "^19.0.2" } } diff --git a/yarn.lock b/yarn.lock new file mode 100644 index 0000000..6a851dc --- /dev/null +++ b/yarn.lock @@ -0,0 +1,2828 @@ +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +abab@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/abab/-/abab-1.0.3.tgz#b81de5f7274ec4e756d797cd834f303642724e5d" + +acorn-globals@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/acorn-globals/-/acorn-globals-3.1.0.tgz#fd8270f71fbb4996b004fa880ee5d46573a731bf" + dependencies: + acorn "^4.0.4" + +acorn-jsx@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-3.0.1.tgz#afdf9488fb1ecefc8348f6fb22f464e32a58b36b" + dependencies: + acorn "^3.0.4" + +acorn@^3.0.4: + version "3.3.0" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-3.3.0.tgz#45e37fb39e8da3f25baee3ff5369e2bb5f22017a" + +acorn@^4.0.4: + version "4.0.11" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-4.0.11.tgz#edcda3bd937e7556410d42ed5860f67399c794c0" + +acorn@^5.0.1: + version "5.0.3" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-5.0.3.tgz#c460df08491463f028ccb82eab3730bf01087b3d" + +ajv-keywords@^1.0.0: + version "1.5.1" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-1.5.1.tgz#314dd0a4b3368fad3dfcdc54ede6171b886daf3c" + +ajv@^4.7.0, ajv@^4.9.1: + version "4.11.5" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-4.11.5.tgz#b6ee74657b993a01dce44b7944d56f485828d5bd" + dependencies: + co "^4.6.0" + json-stable-stringify "^1.0.1" + +align-text@^0.1.1, align-text@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/align-text/-/align-text-0.1.4.tgz#0cd90a561093f35d0a99256c22b7069433fad117" + dependencies: + kind-of "^3.0.2" + longest "^1.0.1" + repeat-string "^1.5.2" + +amdefine@>=0.0.4: + version "1.0.1" + resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" + +ansi-escapes@^1.1.0, ansi-escapes@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-1.4.0.tgz#d3a8a83b319aa67793662b13e761c7911422306e" + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + +ansi-styles@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.0.0.tgz#5404e93a544c4fec7f048262977bebfe3155e0c1" + dependencies: + color-convert "^1.0.0" + +anymatch@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-1.3.0.tgz#a3e52fa39168c825ff57b0248126ce5a8ff95507" + dependencies: + arrify "^1.0.0" + micromatch "^2.1.5" + +append-transform@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/append-transform/-/append-transform-0.4.0.tgz#d76ebf8ca94d276e247a36bad44a4b74ab611991" + dependencies: + default-require-extensions "^1.0.0" + +argparse@^1.0.7: + version "1.0.9" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.9.tgz#73d83bc263f86e97f8cc4f6bae1b0e90a7d22c86" + dependencies: + sprintf-js "~1.0.2" + +arr-diff@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-2.0.0.tgz#8f3b827f955a8bd669697e4a4256ac3ceae356cf" + dependencies: + arr-flatten "^1.0.1" + +arr-flatten@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.0.1.tgz#e5ffe54d45e19f32f216e91eb99c8ce892bb604b" + +array-equal@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/array-equal/-/array-equal-1.0.0.tgz#8c2a5ef2472fd9ea742b04c77a75093ba2757c93" + +array-union@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + dependencies: + array-uniq "^1.0.1" + +array-uniq@1.0.2, array-uniq@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.2.tgz#5fcc373920775723cfd64d65c64bef53bf9eba6d" + +array-unique@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.2.1.tgz#a1d97ccafcbc2625cc70fadceb36a50c58b01a53" + +arrify@^1.0.0, arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + +asn1@~0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.3.tgz#dac8787713c9966849fc8180777ebe9c1ddf3b86" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + +assert-plus@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-0.2.0.tgz#d74e1b87e7affc0db8aadb7021f3fe48101ab234" + +async@^1.4.0: + version "1.5.2" + resolved "https://registry.yarnpkg.com/async/-/async-1.5.2.tgz#ec6a61ae56480c0c3cb241c95618e20892f9672a" + +async@^2.1.4: + version "2.2.0" + resolved "https://registry.yarnpkg.com/async/-/async-2.2.0.tgz#c324eba010a237e4fbd55a12dee86367d5c0ef32" + dependencies: + lodash "^4.14.0" + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + +aws-sign2@~0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.6.0.tgz#14342dd38dbcc94d0e5b87d763cd63612c0e794f" + +aws4@^1.2.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.6.0.tgz#83ef5ca860b2b32e4a0deedee8c771b9db57471e" + +babel-code-frame@^6.16.0, babel-code-frame@^6.22.0: + version "6.22.0" + resolved "https://registry.yarnpkg.com/babel-code-frame/-/babel-code-frame-6.22.0.tgz#027620bee567a88c32561574e7fd0801d33118e4" + dependencies: + chalk "^1.1.0" + esutils "^2.0.2" + js-tokens "^3.0.0" + +babel-core@^6.0.0, babel-core@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-core/-/babel-core-6.24.0.tgz#8f36a0a77f5c155aed6f920b844d23ba56742a02" + dependencies: + babel-code-frame "^6.22.0" + babel-generator "^6.24.0" + babel-helpers "^6.23.0" + babel-messages "^6.23.0" + babel-register "^6.24.0" + babel-runtime "^6.22.0" + babel-template "^6.23.0" + babel-traverse "^6.23.1" + babel-types "^6.23.0" + babylon "^6.11.0" + convert-source-map "^1.1.0" + debug "^2.1.1" + json5 "^0.5.0" + lodash "^4.2.0" + minimatch "^3.0.2" + path-is-absolute "^1.0.0" + private "^0.1.6" + slash "^1.0.0" + source-map "^0.5.0" + +babel-generator@^6.18.0, babel-generator@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-generator/-/babel-generator-6.24.0.tgz#eba270a8cc4ce6e09a61be43465d7c62c1f87c56" + dependencies: + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" + detect-indent "^4.0.0" + jsesc "^1.3.0" + lodash "^4.2.0" + source-map "^0.5.0" + trim-right "^1.0.1" + +babel-helpers@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-helpers/-/babel-helpers-6.23.0.tgz#4f8f2e092d0b6a8808a4bde79c27f1e2ecf0d992" + dependencies: + babel-runtime "^6.22.0" + babel-template "^6.23.0" + +babel-jest@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/babel-jest/-/babel-jest-19.0.0.tgz#59323ced99a3a84d359da219ca881074ffc6ce3f" + dependencies: + babel-core "^6.0.0" + babel-plugin-istanbul "^4.0.0" + babel-preset-jest "^19.0.0" + +babel-messages@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-messages/-/babel-messages-6.23.0.tgz#f3cdf4703858035b2a2951c6ec5edf6c62f2630e" + dependencies: + babel-runtime "^6.22.0" + +babel-plugin-istanbul@^4.0.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-4.1.1.tgz#c12de0fc6fe42adfb16be56f1ad11e4a9782eca9" + dependencies: + find-up "^2.1.0" + istanbul-lib-instrument "^1.6.2" + test-exclude "^4.0.3" + +babel-plugin-jest-hoist@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/babel-plugin-jest-hoist/-/babel-plugin-jest-hoist-19.0.0.tgz#4ae2a04ea612a6e73651f3fde52c178991304bea" + +babel-preset-jest@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/babel-preset-jest/-/babel-preset-jest-19.0.0.tgz#22d67201d02324a195811288eb38294bb3cac396" + dependencies: + babel-plugin-jest-hoist "^19.0.0" + +babel-register@^6.24.0: + version "6.24.0" + resolved "https://registry.yarnpkg.com/babel-register/-/babel-register-6.24.0.tgz#5e89f8463ba9970356d02eb07dabe3308b080cfd" + dependencies: + babel-core "^6.24.0" + babel-runtime "^6.22.0" + core-js "^2.4.0" + home-or-tmp "^2.0.0" + lodash "^4.2.0" + mkdirp "^0.5.1" + source-map-support "^0.4.2" + +babel-runtime@^6.22.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-runtime/-/babel-runtime-6.23.0.tgz#0a9489f144de70efb3ce4300accdb329e2fc543b" + dependencies: + core-js "^2.4.0" + regenerator-runtime "^0.10.0" + +babel-template@^6.16.0, babel-template@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-template/-/babel-template-6.23.0.tgz#04d4f270adbb3aa704a8143ae26faa529238e638" + dependencies: + babel-runtime "^6.22.0" + babel-traverse "^6.23.0" + babel-types "^6.23.0" + babylon "^6.11.0" + lodash "^4.2.0" + +babel-traverse@^6.18.0, babel-traverse@^6.23.0, babel-traverse@^6.23.1: + version "6.23.1" + resolved "https://registry.yarnpkg.com/babel-traverse/-/babel-traverse-6.23.1.tgz#d3cb59010ecd06a97d81310065f966b699e14f48" + dependencies: + babel-code-frame "^6.22.0" + babel-messages "^6.23.0" + babel-runtime "^6.22.0" + babel-types "^6.23.0" + babylon "^6.15.0" + debug "^2.2.0" + globals "^9.0.0" + invariant "^2.2.0" + lodash "^4.2.0" + +babel-types@^6.18.0, babel-types@^6.23.0: + version "6.23.0" + resolved "https://registry.yarnpkg.com/babel-types/-/babel-types-6.23.0.tgz#bb17179d7538bad38cd0c9e115d340f77e7e9acf" + dependencies: + babel-runtime "^6.22.0" + esutils "^2.0.2" + lodash "^4.2.0" + to-fast-properties "^1.0.1" + +babylon@^6.11.0, babylon@^6.13.0, babylon@^6.15.0: + version "6.16.1" + resolved "https://registry.yarnpkg.com/babylon/-/babylon-6.16.1.tgz#30c5a22f481978a9e7f8cdfdf496b11d94b404d3" + +balanced-match@^0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-0.4.2.tgz#cb3f3e3c732dc0f01ee70b403f302e61d7709838" + +bcrypt-pbkdf@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.1.tgz#63bc5dcb61331b92bc05fd528953c33462a06f8d" + dependencies: + tweetnacl "^0.14.3" + +boom@2.x.x: + version "2.10.1" + resolved "https://registry.yarnpkg.com/boom/-/boom-2.10.1.tgz#39c8918ceff5799f83f9492a848f625add0c766f" + dependencies: + hoek "2.x.x" + +brace-expansion@^1.0.0: + version "1.1.6" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.6.tgz#7197d7eaa9b87e648390ea61fc66c84427420df9" + dependencies: + balanced-match "^0.4.1" + concat-map "0.0.1" + +braces@^1.8.2: + version "1.8.5" + resolved "https://registry.yarnpkg.com/braces/-/braces-1.8.5.tgz#ba77962e12dff969d6b76711e914b737857bf6a7" + dependencies: + expand-range "^1.8.1" + preserve "^0.2.0" + repeat-element "^1.1.2" + +brototype@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/brototype/-/brototype-0.0.5.tgz#477598d2de1ffb116a11d5818b71509665e78646" + +browser-resolve@^1.11.2: + version "1.11.2" + resolved "https://registry.yarnpkg.com/browser-resolve/-/browser-resolve-1.11.2.tgz#8ff09b0a2c421718a1051c260b32e48f442938ce" + dependencies: + resolve "1.1.7" + +bser@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bser/-/bser-1.0.2.tgz#381116970b2a6deea5646dd15dd7278444b56169" + dependencies: + node-int64 "^0.4.0" + +bser@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/bser/-/bser-2.0.0.tgz#9ac78d3ed5d915804fd87acb158bc797147a1719" + dependencies: + node-int64 "^0.4.0" + +buffer-shims@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/buffer-shims/-/buffer-shims-1.0.0.tgz#9978ce317388c649ad8793028c3477ef044a8b51" + +builtin-modules@^1.0.0, builtin-modules@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-1.1.1.tgz#270f076c5a72c02f5b65a47df94c5fe3a278892f" + +buttercup@~0.24.0: + version "0.24.0" + resolved "https://registry.yarnpkg.com/buttercup/-/buttercup-0.24.0.tgz#6a3f810d8afe4e00158914f3c10287841a27f1ac" + dependencies: + clone "~1.0.2" + gzip-js "~0.3.2" + iocane "~0.4.0" + node-fetch "~1.6.3" + uuid "~2.0.1" + webdav-fs "~0.4.0" + +caller-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-0.1.0.tgz#94085ef63581ecd3daa92444a8fe94e82577751f" + dependencies: + callsites "^0.2.0" + +callsites@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-0.2.0.tgz#afab96262910a7f33c19a5775825c69f34e350ca" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + +camelcase@^1.0.2: + version "1.2.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-1.2.1.tgz#9bb5304d2e0b56698b2c758b08a3eaa9daa58a39" + +camelcase@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-3.0.0.tgz#32fc4b9fcdaf845fcdf7e73bb97cac2261f0ab0a" + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + +center-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/center-align/-/center-align-0.1.3.tgz#aa0d32629b6ee972200411cbd4461c907bc2b7ad" + dependencies: + align-text "^0.1.3" + lazy-cache "^1.0.3" + +chalk@^1.0.0, chalk@^1.1.0, chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +ci-info@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/ci-info/-/ci-info-1.0.0.tgz#dc5285f2b4e251821683681c381c3388f46ec534" + +cipher-base@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/cipher-base/-/cipher-base-1.0.3.tgz#eeabf194419ce900da3018c207d212f2a6df0a07" + dependencies: + inherits "^2.0.1" + +circular-json@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/circular-json/-/circular-json-0.3.1.tgz#be8b36aefccde8b3ca7aa2d6afc07a37242c0d2d" + +cli-cursor@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-1.0.2.tgz#64da3f7d56a54412e59794bd62dc35295e8f2987" + dependencies: + restore-cursor "^1.0.1" + +cli-width@^1.0.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-1.1.1.tgz#a4d293ef67ebb7b88d4a4d42c0ccf00c4d1e366d" + +cli-width@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-2.1.0.tgz#b234ca209b29ef66fc518d9b98d5847b00edf00a" + +cliui@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-2.1.0.tgz#4b475760ff80264c762c3a1719032e91c7fea0d1" + dependencies: + center-align "^0.1.1" + right-align "^0.1.1" + wordwrap "0.0.2" + +cliui@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-3.2.0.tgz#120601537a916d29940f934da3b48d585a39213d" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + wrap-ansi "^2.0.0" + +clone@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.2.tgz#260b7a99ebb1edfe247538175f783243cb19d149" + +co@^4.6.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/co/-/co-4.6.0.tgz#6ea6bdf3d853ae54ccb8e47bfa0bf3f9031fb184" + +code-point-at@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/code-point-at/-/code-point-at-1.1.0.tgz#0d070b4d043a5bea33a2f1a40e2edb3d9a4ccf77" + +color-convert@^1.0.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.0.tgz#1accf97dd739b983bf994d56fec8f95853641b7a" + dependencies: + color-name "^1.1.1" + +color-name@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.2.tgz#5c8ab72b64bd2215d617ae9559ebb148475cf98d" + +combined-stream@^1.0.5, combined-stream@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.5.tgz#938370a57b4a51dea2c77c15d5c5fdf895164009" + dependencies: + delayed-stream "~1.0.0" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + +concat-stream@^1.5.2: + version "1.6.0" + resolved "https://registry.yarnpkg.com/concat-stream/-/concat-stream-1.6.0.tgz#0aac662fd52be78964d5532f694784e70110acf7" + dependencies: + inherits "^2.0.3" + readable-stream "^2.2.2" + typedarray "^0.0.6" + +contains-path@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/contains-path/-/contains-path-0.1.0.tgz#fe8cf184ff6670b6baef01a9d4861a5cbec4120a" + +content-type-parser@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/content-type-parser/-/content-type-parser-1.0.1.tgz#c3e56988c53c65127fb46d4032a3a900246fdc94" + +convert-source-map@^1.1.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.5.0.tgz#9acd70851c6d5dfdd93d9282e5edf94a03ff46b5" + +core-js@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-2.4.1.tgz#4de911e667b0eae9124e34254b53aea6fc618d3e" + +core-util-is@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + +"crc32@>= 0.2.2": + version "0.2.2" + resolved "https://registry.yarnpkg.com/crc32/-/crc32-0.2.2.tgz#7ad220d6ffdcd119f9fc127a7772cacea390a4ba" + +create-hash@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/create-hash/-/create-hash-1.1.2.tgz#51210062d7bb7479f6c65bb41a92208b1d61abad" + dependencies: + cipher-base "^1.0.1" + inherits "^2.0.1" + ripemd160 "^1.0.0" + sha.js "^2.3.6" + +create-hmac@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/create-hmac/-/create-hmac-1.1.4.tgz#d3fb4ba253eb8b3f56e39ea2fbcb8af747bd3170" + dependencies: + create-hash "^1.1.0" + inherits "^2.0.1" + +cryptiles@2.x.x: + version "2.0.5" + resolved "https://registry.yarnpkg.com/cryptiles/-/cryptiles-2.0.5.tgz#3bdfecdc608147c1c67202fa291e7dca59eaa3b8" + dependencies: + boom "2.x.x" + +cssom@0.3.x, "cssom@>= 0.3.2 < 0.4.0": + version "0.3.2" + resolved "https://registry.yarnpkg.com/cssom/-/cssom-0.3.2.tgz#b8036170c79f07a90ff2f16e22284027a243848b" + +"cssstyle@>= 0.2.37 < 0.3.0": + version "0.2.37" + resolved "https://registry.yarnpkg.com/cssstyle/-/cssstyle-0.2.37.tgz#541097234cb2513c83ceed3acddc27ff27987d54" + dependencies: + cssom "0.3.x" + +d@1: + version "1.0.0" + resolved "https://registry.yarnpkg.com/d/-/d-1.0.0.tgz#754bb5bfe55451da69a58b94d45f4c5b0462d58f" + dependencies: + es5-ext "^0.10.9" + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + dependencies: + assert-plus "^1.0.0" + +debug@2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.2.0.tgz#f87057e995b1a1f6ae6a4960664137bc56f039da" + dependencies: + ms "0.7.1" + +debug@^2.1.1, debug@^2.2.0: + version "2.6.3" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.3.tgz#0f7eb8c30965ec08c72accfa0130c8b79984141d" + dependencies: + ms "0.7.2" + +decamelize@^1.0.0, decamelize@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + +deep-extend@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/deep-extend/-/deep-extend-0.4.1.tgz#efe4113d08085f4e6f9687759810f807469e2253" + +deep-is@~0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.3.tgz#b369d6fb5dbc13eecf524f91b070feedc357cf34" + +default-require-extensions@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/default-require-extensions/-/default-require-extensions-1.0.0.tgz#f37ea15d3e13ffd9b437d33e1a75b5fb97874cb8" + dependencies: + strip-bom "^2.0.0" + +"deflate-js@>= 0.2.2": + version "0.2.3" + resolved "https://registry.yarnpkg.com/deflate-js/-/deflate-js-0.2.3.tgz#f85abb58ebc5151a306147473d57c3e4f7e4426b" + +del@^2.0.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" + dependencies: + globby "^5.0.0" + is-path-cwd "^1.0.0" + is-path-in-cwd "^1.0.0" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + rimraf "^2.2.8" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + +detect-indent@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/detect-indent/-/detect-indent-4.0.0.tgz#f76d064352cdf43a1cb6ce619c4ee3a9475de208" + dependencies: + repeating "^2.0.0" + +diff@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/diff/-/diff-3.2.0.tgz#c9ce393a4b7cbd0b058a725c93df299027868ff9" + +doctrine@1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-1.5.0.tgz#379dce730f6166f76cefa4e6707a159b02c5a6fa" + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +doctrine@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.0.0.tgz#c73d8d2909d22291e1a007a395804da8b665fe63" + dependencies: + esutils "^2.0.2" + isarray "^1.0.0" + +ecc-jsbn@~0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.1.tgz#0fc73a9ed5f0d53c38193398523ef7e543777505" + dependencies: + jsbn "~0.1.0" + +encoding@^0.1.11: + version "0.1.12" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.12.tgz#538b66f3ee62cd1ab51ec323829d1f9480c74beb" + dependencies: + iconv-lite "~0.4.13" + +"errno@>=0.1.1 <0.2.0-0": + version "0.1.4" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.4.tgz#b896e23a9e5e8ba33871fc996abd3635fc9a1c7d" + dependencies: + prr "~0.0.0" + +error-ex@^1.2.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.1.tgz#f855a86ce61adc4e8621c3cda21e7a7612c3a8dc" + dependencies: + is-arrayish "^0.2.1" + +es5-ext@^0.10.14, es5-ext@^0.10.9, es5-ext@~0.10.14: + version "0.10.15" + resolved "https://registry.yarnpkg.com/es5-ext/-/es5-ext-0.10.15.tgz#c330a5934c1ee21284a7c081a86e5fd937c91ea6" + dependencies: + es6-iterator "2" + es6-symbol "~3.1" + +es6-iterator@2, es6-iterator@^2.0.1, es6-iterator@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/es6-iterator/-/es6-iterator-2.0.1.tgz#8e319c9f0453bf575d374940a655920e59ca5512" + dependencies: + d "1" + es5-ext "^0.10.14" + es6-symbol "^3.1" + +es6-map@^0.1.3: + version "0.1.5" + resolved "https://registry.yarnpkg.com/es6-map/-/es6-map-0.1.5.tgz#9136e0503dcc06a301690f0bb14ff4e364e949f0" + dependencies: + d "1" + es5-ext "~0.10.14" + es6-iterator "~2.0.1" + es6-set "~0.1.5" + es6-symbol "~3.1.1" + event-emitter "~0.3.5" + +es6-set@~0.1.5: + version "0.1.5" + resolved "https://registry.yarnpkg.com/es6-set/-/es6-set-0.1.5.tgz#d2b3ec5d4d800ced818db538d28974db0a73ccb1" + dependencies: + d "1" + es5-ext "~0.10.14" + es6-iterator "~2.0.1" + es6-symbol "3.1.1" + event-emitter "~0.3.5" + +es6-symbol@3.1.1, es6-symbol@^3.1, es6-symbol@^3.1.1, es6-symbol@~3.1, es6-symbol@~3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/es6-symbol/-/es6-symbol-3.1.1.tgz#bf00ef4fdab6ba1b46ecb7b629b4c7ed5715cc77" + dependencies: + d "1" + es5-ext "~0.10.14" + +es6-weak-map@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/es6-weak-map/-/es6-weak-map-2.0.2.tgz#5e3ab32251ffd1538a1f8e5ffa1357772f92d96f" + dependencies: + d "1" + es5-ext "^0.10.14" + es6-iterator "^2.0.1" + es6-symbol "^3.1.1" + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + +escodegen@^1.6.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/escodegen/-/escodegen-1.8.1.tgz#5a5b53af4693110bebb0867aa3430dd3b70a1018" + dependencies: + esprima "^2.7.1" + estraverse "^1.9.1" + esutils "^2.0.2" + optionator "^0.8.1" + optionalDependencies: + source-map "~0.2.0" + +escope@^3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/escope/-/escope-3.6.0.tgz#e01975e812781a163a6dadfdd80398dc64c889c3" + dependencies: + es6-map "^0.1.3" + es6-weak-map "^2.0.1" + esrecurse "^4.1.0" + estraverse "^4.1.1" + +eslint-config-airbnb-base@^11.1.2: + version "11.1.2" + resolved "https://registry.yarnpkg.com/eslint-config-airbnb-base/-/eslint-config-airbnb-base-11.1.2.tgz#259209a7678bf693e31cbe8f953f206b6aa7ccc3" + +eslint-import-resolver-node@^0.2.0: + version "0.2.3" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.2.3.tgz#5add8106e8c928db2cba232bcd9efa846e3da16c" + dependencies: + debug "^2.2.0" + object-assign "^4.0.1" + resolve "^1.1.6" + +eslint-module-utils@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.0.0.tgz#a6f8c21d901358759cdc35dbac1982ae1ee58bce" + dependencies: + debug "2.2.0" + pkg-dir "^1.0.0" + +eslint-plugin-import@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.2.0.tgz#72ba306fad305d67c4816348a4699a4229ac8b4e" + dependencies: + builtin-modules "^1.1.1" + contains-path "^0.1.0" + debug "^2.2.0" + doctrine "1.5.0" + eslint-import-resolver-node "^0.2.0" + eslint-module-utils "^2.0.0" + has "^1.0.1" + lodash.cond "^4.3.0" + minimatch "^3.0.3" + pkg-up "^1.0.0" + +eslint@^3.19.0: + version "3.19.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-3.19.0.tgz#c8fc6201c7f40dd08941b87c085767386a679acc" + dependencies: + babel-code-frame "^6.16.0" + chalk "^1.1.3" + concat-stream "^1.5.2" + debug "^2.1.1" + doctrine "^2.0.0" + escope "^3.6.0" + espree "^3.4.0" + esquery "^1.0.0" + estraverse "^4.2.0" + esutils "^2.0.2" + file-entry-cache "^2.0.0" + glob "^7.0.3" + globals "^9.14.0" + ignore "^3.2.0" + imurmurhash "^0.1.4" + inquirer "^0.12.0" + is-my-json-valid "^2.10.0" + is-resolvable "^1.0.0" + js-yaml "^3.5.1" + json-stable-stringify "^1.0.0" + levn "^0.3.0" + lodash "^4.0.0" + mkdirp "^0.5.0" + natural-compare "^1.4.0" + optionator "^0.8.2" + path-is-inside "^1.0.1" + pluralize "^1.2.1" + progress "^1.1.8" + require-uncached "^1.0.2" + shelljs "^0.7.5" + strip-bom "^3.0.0" + strip-json-comments "~2.0.1" + table "^3.7.8" + text-table "~0.2.0" + user-home "^2.0.0" + +espree@^3.4.0: + version "3.4.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-3.4.1.tgz#28a83ab4aaed71ed8fe0f5efe61b76a05c13c4d2" + dependencies: + acorn "^5.0.1" + acorn-jsx "^3.0.0" + +esprima@^2.7.1: + version "2.7.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-2.7.3.tgz#96e3b70d5779f6ad49cd032673d1c312767ba581" + +esprima@^3.1.1: + version "3.1.3" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-3.1.3.tgz#fdca51cee6133895e3c88d535ce49dbff62a4633" + +esquery@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.0.0.tgz#cfba8b57d7fba93f17298a8a006a04cda13d80fa" + dependencies: + estraverse "^4.0.0" + +esrecurse@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.1.0.tgz#4713b6536adf7f2ac4f327d559e7756bff648220" + dependencies: + estraverse "~4.1.0" + object-assign "^4.0.1" + +estraverse@^1.9.1: + version "1.9.3" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-1.9.3.tgz#af67f2dc922582415950926091a4005d29c9bb44" + +estraverse@^4.0.0, estraverse@^4.1.1, estraverse@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.2.0.tgz#0dee3fed31fcd469618ce7342099fc1afa0bdb13" + +estraverse@~4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.1.1.tgz#f6caca728933a850ef90661d0e17982ba47111a2" + +esutils@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.2.tgz#0abf4f1caa5bcb1f7a9d8acc6dea4faaa04bac9b" + +event-emitter@~0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/event-emitter/-/event-emitter-0.3.5.tgz#df8c69eef1647923c7157b9ce83840610b02cc39" + dependencies: + d "1" + es5-ext "~0.10.14" + +exec-sh@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/exec-sh/-/exec-sh-0.2.0.tgz#14f75de3f20d286ef933099b2ce50a90359cef10" + dependencies: + merge "^1.1.3" + +exit-hook@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/exit-hook/-/exit-hook-1.1.1.tgz#f05ca233b48c05d54fff07765df8507e95c02ff8" + +expand-brackets@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-0.1.5.tgz#df07284e342a807cd733ac5af72411e581d1177b" + dependencies: + is-posix-bracket "^0.1.0" + +expand-range@^1.8.1: + version "1.8.2" + resolved "https://registry.yarnpkg.com/expand-range/-/expand-range-1.8.2.tgz#a299effd335fe2721ebae8e257ec79644fc85337" + dependencies: + fill-range "^2.1.0" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + dependencies: + is-extendable "^0.1.0" + +extend@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.0.tgz#5a474353b9f3353ddd8176dfd37b91c83a46f1d4" + +extglob@^0.3.1: + version "0.3.2" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-0.3.2.tgz#2e18ff3d2f49ab2765cec9023f011daa8d8349a1" + dependencies: + is-extglob "^1.0.0" + +extsprintf@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.0.2.tgz#e1080e0658e300b06294990cc70e1502235fd550" + +fast-levenshtein@~2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + +fb-watchman@^1.8.0: + version "1.9.2" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-1.9.2.tgz#a24cf47827f82d38fb59a69ad70b76e3b6ae7383" + dependencies: + bser "1.0.2" + +fb-watchman@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/fb-watchman/-/fb-watchman-2.0.0.tgz#54e9abf7dfa2f26cd9b1636c588c1afc05de5d58" + dependencies: + bser "^2.0.0" + +figures@^1.3.5: + version "1.7.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-1.7.0.tgz#cbe1e3affcf1cd44b80cadfed28dc793a9701d2e" + dependencies: + escape-string-regexp "^1.0.5" + object-assign "^4.1.0" + +file-entry-cache@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-2.0.0.tgz#c392990c3e684783d838b8c84a45d8a048458361" + dependencies: + flat-cache "^1.2.1" + object-assign "^4.0.1" + +filename-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/filename-regex/-/filename-regex-2.0.0.tgz#996e3e80479b98b9897f15a8a58b3d084e926775" + +fileset@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/fileset/-/fileset-2.0.3.tgz#8e7548a96d3cc2327ee5e674168723a333bba2a0" + dependencies: + glob "^7.0.3" + minimatch "^3.0.3" + +fill-range@^2.1.0: + version "2.2.3" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-2.2.3.tgz#50b77dfd7e469bc7492470963699fe7a8485a723" + dependencies: + is-number "^2.1.0" + isobject "^2.0.0" + randomatic "^1.1.3" + repeat-element "^1.1.2" + repeat-string "^1.5.2" + +find-parent-dir@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/find-parent-dir/-/find-parent-dir-0.3.0.tgz#33c44b429ab2b2f0646299c5f9f718f376ff8d54" + +find-up@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-1.1.2.tgz#6b2e9822b1a2ce0a60ab64d610eccad53cb24d0f" + dependencies: + path-exists "^2.0.0" + pinkie-promise "^2.0.0" + +find-up@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + dependencies: + locate-path "^2.0.0" + +flat-cache@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-1.2.2.tgz#fa86714e72c21db88601761ecf2f555d1abc6b96" + dependencies: + circular-json "^0.3.1" + del "^2.0.2" + graceful-fs "^4.1.2" + write "^0.2.1" + +for-in@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + +for-own@^0.1.4: + version "0.1.5" + resolved "https://registry.yarnpkg.com/for-own/-/for-own-0.1.5.tgz#5265c681a4f294dabbf17c9509b6763aa84510ce" + dependencies: + for-in "^1.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + +form-data@~2.1.1: + version "2.1.2" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.1.2.tgz#89c3534008b97eada4cbb157d58f6f5df025eae4" + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.5" + mime-types "^2.1.12" + +fs-exists-sync@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/fs-exists-sync/-/fs-exists-sync-0.1.0.tgz#982d6893af918e72d08dec9e8673ff2b5a8d6add" + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + +function-bind@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.0.tgz#16176714c801798e4e8f2cf7f7529467bb4a5771" + +generate-function@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/generate-function/-/generate-function-2.0.0.tgz#6858fe7c0969b7d4e9093337647ac79f60dfbe74" + +generate-object-property@^1.1.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/generate-object-property/-/generate-object-property-1.2.0.tgz#9c0e1c40308ce804f4783618b937fa88f99d50d0" + dependencies: + is-property "^1.0.0" + +get-caller-file@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-1.0.2.tgz#f702e63127e7e231c160a80c1554acb70d5047e5" + +getpass@^0.1.1: + version "0.1.6" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.6.tgz#283ffd9fc1256840875311c1b60e8c40187110e6" + dependencies: + assert-plus "^1.0.0" + +git-config-path@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/git-config-path/-/git-config-path-1.0.1.tgz#6d33f7ed63db0d0e118131503bab3aca47d54664" + dependencies: + extend-shallow "^2.0.1" + fs-exists-sync "^0.1.0" + homedir-polyfill "^1.0.0" + +git-label@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/git-label/-/git-label-4.1.1.tgz#07815d6f563d872ae01f5434e03dc03fe4fe7d92" + dependencies: + glob "^6.0.3" + lineder "^0.1.1" + request "^2.67.0" + +github-url-from-git@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/github-url-from-git/-/github-url-from-git-1.5.0.tgz#f985fedcc0a9aa579dc88d7aff068d55cc6251a0" + +glob-base@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-base/-/glob-base-0.3.0.tgz#dbb164f6221b1c0b1ccf82aea328b497df0ea3c4" + dependencies: + glob-parent "^2.0.0" + is-glob "^2.0.0" + +glob-parent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-2.0.0.tgz#81383d72db054fcccf5336daa902f182f6edbb28" + dependencies: + is-glob "^2.0.0" + +glob@^6.0.3: + version "6.0.4" + resolved "https://registry.yarnpkg.com/glob/-/glob-6.0.4.tgz#0f08860f6a155127b2fadd4f9ce24b1aab6e4d22" + dependencies: + inflight "^1.0.4" + inherits "2" + minimatch "2 || 3" + once "^1.3.0" + path-is-absolute "^1.0.0" + +glob@^7.0.0, glob@^7.0.3, glob@^7.0.5: + version "7.1.1" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.1.1.tgz#805211df04faaf1c63a3600306cdf5ade50b2ec8" + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.0.2" + once "^1.3.0" + path-is-absolute "^1.0.0" + +globals@^9.0.0, globals@^9.14.0: + version "9.17.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-9.17.0.tgz#0c0ca696d9b9bb694d2e5470bd37777caad50286" + +globby@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" + dependencies: + array-union "^1.0.1" + arrify "^1.0.0" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +graceful-fs@^4.1.2, graceful-fs@^4.1.6: + version "4.1.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.1.11.tgz#0e8bdfe4d1ddb8854d64e04ea7c00e2a026e5658" + +growly@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/growly/-/growly-1.3.0.tgz#f10748cbe76af964b7c96c93c6bcc28af120c081" + +gzip-js@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/gzip-js/-/gzip-js-0.3.2.tgz#23117efeeb28cf385248deff0dffad894836d96b" + dependencies: + crc32 ">= 0.2.2" + deflate-js ">= 0.2.2" + +handlebars@^4.0.3: + version "4.0.6" + resolved "https://registry.yarnpkg.com/handlebars/-/handlebars-4.0.6.tgz#2ce4484850537f9c97a8026d5399b935c4ed4ed7" + dependencies: + async "^1.4.0" + optimist "^0.6.1" + source-map "^0.4.4" + optionalDependencies: + uglify-js "^2.6" + +har-schema@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-1.0.5.tgz#d263135f43307c02c602afc8fe95970c0151369e" + +har-validator@~4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-4.2.1.tgz#33481d0f1bbff600dd203d75812a6a5fba002e2a" + dependencies: + ajv "^4.9.1" + har-schema "^1.0.5" + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + dependencies: + ansi-regex "^2.0.0" + +has-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-1.0.0.tgz#9d9e793165ce017a00f00418c43f942a7b1d11fa" + +has@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.1.tgz#8461733f538b0837c9361e39a9ab9e9704dc2f28" + dependencies: + function-bind "^1.0.2" + +hash_file@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/hash_file/-/hash_file-0.1.1.tgz#3210e85dfb4ed6eb640351e02a48b0d0db327878" + +hawk@~3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/hawk/-/hawk-3.1.3.tgz#078444bd7c1640b0fe540d2c9b73d59678e8e1c4" + dependencies: + boom "2.x.x" + cryptiles "2.x.x" + hoek "2.x.x" + sntp "1.x.x" + +hoek@2.x.x: + version "2.16.3" + resolved "https://registry.yarnpkg.com/hoek/-/hoek-2.16.3.tgz#20bb7403d3cea398e91dc4710a8ff1b8274a25ed" + +home-or-tmp@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/home-or-tmp/-/home-or-tmp-2.0.0.tgz#e36c3f2d2cae7d746a857e38d18d5f32a7882db8" + dependencies: + os-homedir "^1.0.0" + os-tmpdir "^1.0.1" + +homedir-polyfill@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/homedir-polyfill/-/homedir-polyfill-1.0.1.tgz#4c2bbc8a758998feebf5ed68580f76d46768b4bc" + dependencies: + parse-passwd "^1.0.0" + +hosted-git-info@^2.1.4: + version "2.4.1" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.4.1.tgz#4b0445e41c004a8bd1337773a4ff790ca40318c8" + +html-encoding-sniffer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/html-encoding-sniffer/-/html-encoding-sniffer-1.0.1.tgz#79bf7a785ea495fe66165e734153f363ff5437da" + dependencies: + whatwg-encoding "^1.0.1" + +http-signature@~1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.1.1.tgz#df72e267066cd0ac67fb76adf8e134a8fbcf91bf" + dependencies: + assert-plus "^0.2.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +husky@^0.13.3: + version "0.13.3" + resolved "https://registry.yarnpkg.com/husky/-/husky-0.13.3.tgz#bc2066080badc8b8fe3516e881f5bc68a57052ff" + dependencies: + chalk "^1.1.3" + find-parent-dir "^0.3.0" + is-ci "^1.0.9" + normalize-path "^1.0.0" + +iconv-lite@0.4.13: + version "0.4.13" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.13.tgz#1f88aba4ab0b1508e8312acc39345f36e992e2f2" + +iconv-lite@~0.4.13: + version "0.4.15" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.15.tgz#fe265a218ac6a57cfe854927e9d04c19825eddeb" + +ignore@^3.2.0: + version "3.2.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-3.2.6.tgz#26e8da0644be0bb4cb39516f6c79f0e0f4ffe48c" + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@^2.0.1, inherits@^2.0.3, inherits@~2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + +ini@^1.3.4: + version "1.3.4" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.4.tgz#0537cb79daf59b59a1a517dff706c86ec039162e" + +inquirer@^0.11.1: + version "0.11.4" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.11.4.tgz#81e3374e8361beaff2d97016206d359d0b32fa4d" + dependencies: + ansi-escapes "^1.1.0" + ansi-regex "^2.0.0" + chalk "^1.0.0" + cli-cursor "^1.0.1" + cli-width "^1.0.1" + figures "^1.3.5" + lodash "^3.3.1" + readline2 "^1.0.1" + run-async "^0.1.0" + rx-lite "^3.1.2" + string-width "^1.0.1" + strip-ansi "^3.0.0" + through "^2.3.6" + +inquirer@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-0.12.0.tgz#1ef2bfd63504df0bc75785fff8c2c41df12f077e" + dependencies: + ansi-escapes "^1.1.0" + ansi-regex "^2.0.0" + chalk "^1.0.0" + cli-cursor "^1.0.1" + cli-width "^2.0.0" + figures "^1.3.5" + lodash "^4.3.0" + readline2 "^1.0.1" + run-async "^0.1.0" + rx-lite "^3.1.2" + string-width "^1.0.1" + strip-ansi "^3.0.0" + through "^2.3.6" + +interpret@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/interpret/-/interpret-1.0.2.tgz#f4f623f0bb7122f15f5717c8e254b8161b5c5b2d" + +invariant@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/invariant/-/invariant-2.2.2.tgz#9e1f56ac0acdb6bf303306f338be3b204ae60360" + dependencies: + loose-envify "^1.0.0" + +invert-kv@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/invert-kv/-/invert-kv-1.0.0.tgz#104a8e4aaca6d3d8cd157a8ef8bfab2d7a3ffdb6" + +iocane@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/iocane/-/iocane-0.4.0.tgz#04120e02ea8d4774f4035848dbce729a38b61a67" + dependencies: + hash_file "^0.1.1" + pbkdf2 "~3.0.4" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + +is-buffer@^1.0.2: + version "1.1.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.5.tgz#1f3b26ef613b214b88cbca23cc6c01d87961eecc" + +is-builtin-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-1.0.0.tgz#540572d34f7ac3119f8f76c30cbc1b1e037affbe" + dependencies: + builtin-modules "^1.0.0" + +is-ci@^1.0.9: + version "1.0.10" + resolved "https://registry.yarnpkg.com/is-ci/-/is-ci-1.0.10.tgz#f739336b2632365061a9d48270cd56ae3369318e" + dependencies: + ci-info "^1.0.0" + +is-dotfile@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-dotfile/-/is-dotfile-1.0.2.tgz#2c132383f39199f8edc268ca01b9b007d205cc4d" + +is-equal-shallow@^0.1.3: + version "0.1.3" + resolved "https://registry.yarnpkg.com/is-equal-shallow/-/is-equal-shallow-0.1.3.tgz#2238098fc221de0bcfa5d9eac4c45d638aa1c534" + dependencies: + is-primitive "^2.0.0" + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + +is-extglob@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-1.0.0.tgz#ac468177c4943405a092fc8f29760c6ffc6206c0" + +is-finite@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-finite/-/is-finite-1.0.2.tgz#cc6677695602be550ef11e8b4aa6305342b6d0aa" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-1.0.0.tgz#ef9e31386f031a7f0d643af82fde50c457ef00cb" + dependencies: + number-is-nan "^1.0.0" + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + +is-glob@^2.0.0, is-glob@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-2.0.1.tgz#d096f926a3ded5600f3fdfd91198cb0888c2d863" + dependencies: + is-extglob "^1.0.0" + +is-my-json-valid@^2.10.0: + version "2.16.0" + resolved "https://registry.yarnpkg.com/is-my-json-valid/-/is-my-json-valid-2.16.0.tgz#f079dd9bfdae65ee2038aae8acbc86ab109e3693" + dependencies: + generate-function "^2.0.0" + generate-object-property "^1.1.0" + jsonpointer "^4.0.0" + xtend "^4.0.0" + +is-number@^2.0.2, is-number@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-2.1.0.tgz#01fcbbb393463a548f2f466cce16dece49db908f" + dependencies: + kind-of "^3.0.2" + +is-path-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" + +is-path-in-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.0.tgz#6477582b8214d602346094567003be8a9eac04dc" + dependencies: + is-path-inside "^1.0.0" + +is-path-inside@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.0.tgz#fc06e5a1683fbda13de667aff717bbc10a48f37f" + dependencies: + path-is-inside "^1.0.1" + +is-posix-bracket@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-posix-bracket/-/is-posix-bracket-0.1.1.tgz#3334dc79774368e92f016e6fbc0a88f5cd6e6bc4" + +is-primitive@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-primitive/-/is-primitive-2.0.0.tgz#207bab91638499c07b2adf240a41a87210034575" + +is-property@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-property/-/is-property-1.0.2.tgz#57fe1c4e48474edd65b09911f26b1cd4095dda84" + +is-resolvable@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-resolvable/-/is-resolvable-1.0.0.tgz#8df57c61ea2e3c501408d100fb013cf8d6e0cc62" + dependencies: + tryit "^1.0.1" + +is-stream@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-1.1.0.tgz#12d4a3dd4e68e0b79ceb8dbc84173ae80d91ca44" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + +is-utf8@^0.2.0: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-utf8/-/is-utf8-0.2.1.tgz#4b0da1442104d1b336340e80797e865cf39f7d72" + +isarray@1.0.0, isarray@^1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + dependencies: + isarray "1.0.0" + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + +istanbul-api@^1.1.0-alpha.1: + version "1.1.7" + resolved "https://registry.yarnpkg.com/istanbul-api/-/istanbul-api-1.1.7.tgz#f6f37f09f8002b130f891c646b70ee4a8e7345ae" + dependencies: + async "^2.1.4" + fileset "^2.0.2" + istanbul-lib-coverage "^1.0.2" + istanbul-lib-hook "^1.0.5" + istanbul-lib-instrument "^1.7.0" + istanbul-lib-report "^1.0.0" + istanbul-lib-source-maps "^1.1.1" + istanbul-reports "^1.0.2" + js-yaml "^3.7.0" + mkdirp "^0.5.1" + once "^1.4.0" + +istanbul-lib-coverage@^1.0.0, istanbul-lib-coverage@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-1.0.2.tgz#87a0c015b6910651cb3b184814dfb339337e25e1" + +istanbul-lib-hook@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/istanbul-lib-hook/-/istanbul-lib-hook-1.0.5.tgz#6ca3d16d60c5f4082da39f7c5cd38ea8a772b88e" + dependencies: + append-transform "^0.4.0" + +istanbul-lib-instrument@^1.1.1, istanbul-lib-instrument@^1.6.2, istanbul-lib-instrument@^1.7.0: + version "1.7.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-1.7.0.tgz#b8e0dc25709bb44e17336ab47b7bb5c97c23f659" + dependencies: + babel-generator "^6.18.0" + babel-template "^6.16.0" + babel-traverse "^6.18.0" + babel-types "^6.18.0" + babylon "^6.13.0" + istanbul-lib-coverage "^1.0.2" + semver "^5.3.0" + +istanbul-lib-report@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-1.0.0.tgz#d83dac7f26566b521585569367fe84ccfc7aaecb" + dependencies: + istanbul-lib-coverage "^1.0.2" + mkdirp "^0.5.1" + path-parse "^1.0.5" + supports-color "^3.1.2" + +istanbul-lib-source-maps@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-1.1.1.tgz#f8c8c2e8f2160d1d91526d97e5bd63b2079af71c" + dependencies: + istanbul-lib-coverage "^1.0.2" + mkdirp "^0.5.1" + rimraf "^2.4.4" + source-map "^0.5.3" + +istanbul-reports@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-1.0.2.tgz#4e8366abe6fa746cc1cd6633f108de12cc6ac6fa" + dependencies: + handlebars "^4.0.3" + +jest-changed-files@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-changed-files/-/jest-changed-files-19.0.2.tgz#16c54c84c3270be408e06d2e8af3f3e37a885824" + +jest-cli@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-cli/-/jest-cli-19.0.2.tgz#cc3620b62acac5f2d93a548cb6ef697d4ec85443" + dependencies: + ansi-escapes "^1.4.0" + callsites "^2.0.0" + chalk "^1.1.1" + graceful-fs "^4.1.6" + is-ci "^1.0.9" + istanbul-api "^1.1.0-alpha.1" + istanbul-lib-coverage "^1.0.0" + istanbul-lib-instrument "^1.1.1" + jest-changed-files "^19.0.2" + jest-config "^19.0.2" + jest-environment-jsdom "^19.0.2" + jest-haste-map "^19.0.0" + jest-jasmine2 "^19.0.2" + jest-message-util "^19.0.0" + jest-regex-util "^19.0.0" + jest-resolve-dependencies "^19.0.0" + jest-runtime "^19.0.2" + jest-snapshot "^19.0.2" + jest-util "^19.0.2" + micromatch "^2.3.11" + node-notifier "^5.0.1" + slash "^1.0.0" + string-length "^1.0.1" + throat "^3.0.0" + which "^1.1.1" + worker-farm "^1.3.1" + yargs "^6.3.0" + +jest-config@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-config/-/jest-config-19.0.2.tgz#1b9bd2db0ddd16df61c2b10a54009e1768da6411" + dependencies: + chalk "^1.1.1" + jest-environment-jsdom "^19.0.2" + jest-environment-node "^19.0.2" + jest-jasmine2 "^19.0.2" + jest-regex-util "^19.0.0" + jest-resolve "^19.0.2" + jest-validate "^19.0.2" + pretty-format "^19.0.0" + +jest-diff@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-19.0.0.tgz#d1563cfc56c8b60232988fbc05d4d16ed90f063c" + dependencies: + chalk "^1.1.3" + diff "^3.0.0" + jest-matcher-utils "^19.0.0" + pretty-format "^19.0.0" + +jest-environment-jsdom@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-environment-jsdom/-/jest-environment-jsdom-19.0.2.tgz#ceda859c4a4b94ab35e4de7dab54b926f293e4a3" + dependencies: + jest-mock "^19.0.0" + jest-util "^19.0.2" + jsdom "^9.11.0" + +jest-environment-node@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-environment-node/-/jest-environment-node-19.0.2.tgz#6e84079db87ed21d0c05e1f9669f207b116fe99b" + dependencies: + jest-mock "^19.0.0" + jest-util "^19.0.2" + +jest-file-exists@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-file-exists/-/jest-file-exists-19.0.0.tgz#cca2e587a11ec92e24cfeab3f8a94d657f3fceb8" + +jest-haste-map@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-haste-map/-/jest-haste-map-19.0.0.tgz#adde00b62b1fe04432a104b3254fc5004514b55e" + dependencies: + fb-watchman "^2.0.0" + graceful-fs "^4.1.6" + micromatch "^2.3.11" + sane "~1.5.0" + worker-farm "^1.3.1" + +jest-jasmine2@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-jasmine2/-/jest-jasmine2-19.0.2.tgz#167991ac825981fb1a800af126e83afcca832c73" + dependencies: + graceful-fs "^4.1.6" + jest-matcher-utils "^19.0.0" + jest-matchers "^19.0.0" + jest-message-util "^19.0.0" + jest-snapshot "^19.0.2" + +jest-matcher-utils@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-matcher-utils/-/jest-matcher-utils-19.0.0.tgz#5ecd9b63565d2b001f61fbf7ec4c7f537964564d" + dependencies: + chalk "^1.1.3" + pretty-format "^19.0.0" + +jest-matchers@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-matchers/-/jest-matchers-19.0.0.tgz#c74ecc6ebfec06f384767ba4d6fa4a42d6755754" + dependencies: + jest-diff "^19.0.0" + jest-matcher-utils "^19.0.0" + jest-message-util "^19.0.0" + jest-regex-util "^19.0.0" + +jest-message-util@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-message-util/-/jest-message-util-19.0.0.tgz#721796b89c0e4d761606f9ba8cb828a3b6246416" + dependencies: + chalk "^1.1.1" + micromatch "^2.3.11" + +jest-mock@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-mock/-/jest-mock-19.0.0.tgz#67038641e9607ab2ce08ec4a8cb83aabbc899d01" + +jest-regex-util@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-regex-util/-/jest-regex-util-19.0.0.tgz#b7754587112aede1456510bb1f6afe74ef598691" + +jest-resolve-dependencies@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/jest-resolve-dependencies/-/jest-resolve-dependencies-19.0.0.tgz#a741ad1fa094140e64ecf2642a504f834ece22ee" + dependencies: + jest-file-exists "^19.0.0" + +jest-resolve@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-resolve/-/jest-resolve-19.0.2.tgz#5793575de4f07aec32f7d7ff0c6c181963eefb3c" + dependencies: + browser-resolve "^1.11.2" + jest-haste-map "^19.0.0" + resolve "^1.2.0" + +jest-runtime@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-runtime/-/jest-runtime-19.0.2.tgz#d9a43e72de416d27d196fd9c7940d98fe6685407" + dependencies: + babel-core "^6.0.0" + babel-jest "^19.0.0" + babel-plugin-istanbul "^4.0.0" + chalk "^1.1.3" + graceful-fs "^4.1.6" + jest-config "^19.0.2" + jest-file-exists "^19.0.0" + jest-haste-map "^19.0.0" + jest-regex-util "^19.0.0" + jest-resolve "^19.0.2" + jest-util "^19.0.2" + json-stable-stringify "^1.0.1" + micromatch "^2.3.11" + strip-bom "3.0.0" + yargs "^6.3.0" + +jest-snapshot@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-snapshot/-/jest-snapshot-19.0.2.tgz#9c1b216214f7187c38bfd5c70b1efab16b0ff50b" + dependencies: + chalk "^1.1.3" + jest-diff "^19.0.0" + jest-file-exists "^19.0.0" + jest-matcher-utils "^19.0.0" + jest-util "^19.0.2" + natural-compare "^1.4.0" + pretty-format "^19.0.0" + +jest-util@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-util/-/jest-util-19.0.2.tgz#e0a0232a2ab9e6b2b53668bdb3534c2b5977ed41" + dependencies: + chalk "^1.1.1" + graceful-fs "^4.1.6" + jest-file-exists "^19.0.0" + jest-message-util "^19.0.0" + jest-mock "^19.0.0" + jest-validate "^19.0.2" + leven "^2.0.0" + mkdirp "^0.5.1" + +jest-validate@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest-validate/-/jest-validate-19.0.2.tgz#dc534df5f1278d5b63df32b14241d4dbf7244c0c" + dependencies: + chalk "^1.1.1" + jest-matcher-utils "^19.0.0" + leven "^2.0.0" + pretty-format "^19.0.0" + +jest@^19.0.2: + version "19.0.2" + resolved "https://registry.yarnpkg.com/jest/-/jest-19.0.2.tgz#b794faaf8ff461e7388f28beef559a54f20b2c10" + dependencies: + jest-cli "^19.0.2" + +jodid25519@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/jodid25519/-/jodid25519-1.0.2.tgz#06d4912255093419477d425633606e0e90782967" + dependencies: + jsbn "~0.1.0" + +js-tokens@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-3.0.1.tgz#08e9f132484a2c45a30907e9dc4d5567b7f114d7" + +js-yaml@^3.5.1, js-yaml@^3.7.0: + version "3.8.2" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.8.2.tgz#02d3e2c0f6beab20248d412c352203827d786721" + dependencies: + argparse "^1.0.7" + esprima "^3.1.1" + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + +jsdom@^9.11.0: + version "9.12.0" + resolved "https://registry.yarnpkg.com/jsdom/-/jsdom-9.12.0.tgz#e8c546fffcb06c00d4833ca84410fed7f8a097d4" + dependencies: + abab "^1.0.3" + acorn "^4.0.4" + acorn-globals "^3.1.0" + array-equal "^1.0.0" + content-type-parser "^1.0.1" + cssom ">= 0.3.2 < 0.4.0" + cssstyle ">= 0.2.37 < 0.3.0" + escodegen "^1.6.1" + html-encoding-sniffer "^1.0.1" + nwmatcher ">= 1.3.9 < 2.0.0" + parse5 "^1.5.1" + request "^2.79.0" + sax "^1.2.1" + symbol-tree "^3.2.1" + tough-cookie "^2.3.2" + webidl-conversions "^4.0.0" + whatwg-encoding "^1.0.1" + whatwg-url "^4.3.0" + xml-name-validator "^2.0.1" + +jsesc@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-1.3.0.tgz#46c3fec8c1892b12b0833db9bc7622176dbab34b" + +json-schema@0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.2.3.tgz#b480c892e59a2f05954ce727bd3f2a4e882f9e13" + +json-stable-stringify@^1.0.0, json-stable-stringify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify/-/json-stable-stringify-1.0.1.tgz#9a759d39c5f2ff503fd5300646ed445f88c4f9af" + dependencies: + jsonify "~0.0.0" + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + +json5@^0.5.0: + version "0.5.1" + resolved "https://registry.yarnpkg.com/json5/-/json5-0.5.1.tgz#1eade7acc012034ad84e2396767ead9fa5495821" + +jsonify@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/jsonify/-/jsonify-0.0.0.tgz#2c74b6ee41d93ca51b7b5aaee8f503631d252a73" + +jsonpointer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/jsonpointer/-/jsonpointer-4.0.1.tgz#4fd92cb34e0e9db3c89c8622ecf51f9b978c6cb9" + +jsprim@^1.2.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.0.tgz#a3b87e40298d8c380552d8cc7628a0bb95a22918" + dependencies: + assert-plus "1.0.0" + extsprintf "1.0.2" + json-schema "0.2.3" + verror "1.3.6" + +kind-of@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.1.0.tgz#475d698a5e49ff5e53d14e3e732429dc8bf4cf47" + dependencies: + is-buffer "^1.0.2" + +lazy-cache@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/lazy-cache/-/lazy-cache-1.0.4.tgz#a1d78fc3a50474cb80845d3b3b6e1da49a446e8e" + +lcid@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/lcid/-/lcid-1.0.0.tgz#308accafa0bc483a3867b4b6f2b9506251d1b835" + dependencies: + invert-kv "^1.0.0" + +leven@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + +levn@^0.3.0, levn@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.3.0.tgz#3b09924edf9f083c0490fdd4c0bc4421e04764ee" + dependencies: + prelude-ls "~1.1.2" + type-check "~0.3.2" + +lineder@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/lineder/-/lineder-0.1.1.tgz#c7d66fa5dd2e764db659e82697e4dc8d597e8fb7" + +load-json-file@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-1.1.0.tgz#956905708d58b4bab4c2261b04f59f31c99374c0" + dependencies: + graceful-fs "^4.1.2" + parse-json "^2.2.0" + pify "^2.0.0" + pinkie-promise "^2.0.0" + strip-bom "^2.0.0" + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +lodash.cond@^4.3.0: + version "4.5.2" + resolved "https://registry.yarnpkg.com/lodash.cond/-/lodash.cond-4.5.2.tgz#f471a1da486be60f6ab955d17115523dd1d255d5" + +lodash@^3.3.1: + version "3.10.1" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-3.10.1.tgz#5bf45e8e49ba4189e17d482789dfd15bd140b7b6" + +lodash@^4.0.0, lodash@^4.14.0, lodash@^4.2.0, lodash@^4.3.0: + version "4.17.4" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.4.tgz#78203a4d1c328ae1d86dca6460e369b57f4055ae" + +longest@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/longest/-/longest-1.0.1.tgz#30a0b2da38f73770e8294a0d22e6625ed77d0097" + +loose-envify@^1.0.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/loose-envify/-/loose-envify-1.3.1.tgz#d1a8ad33fa9ce0e713d65fdd0ac8b748d478c848" + dependencies: + js-tokens "^3.0.0" + +makeerror@1.0.x: + version "1.0.11" + resolved "https://registry.yarnpkg.com/makeerror/-/makeerror-1.0.11.tgz#e01a5c9109f2af79660e4e8b9587790184f5a96c" + dependencies: + tmpl "1.0.x" + +merge@^1.1.3: + version "1.2.0" + resolved "https://registry.yarnpkg.com/merge/-/merge-1.2.0.tgz#7531e39d4949c281a66b8c5a6e0265e8b05894da" + +micromatch@^2.1.5, micromatch@^2.3.11: + version "2.3.11" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-2.3.11.tgz#86677c97d1720b363431d04d0d15293bd38c1565" + dependencies: + arr-diff "^2.0.0" + array-unique "^0.2.1" + braces "^1.8.2" + expand-brackets "^0.1.4" + extglob "^0.3.1" + filename-regex "^2.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.1" + kind-of "^3.0.2" + normalize-path "^2.0.1" + object.omit "^2.0.0" + parse-glob "^3.0.4" + regex-cache "^0.4.2" + +mime-db@~1.27.0: + version "1.27.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.27.0.tgz#820f572296bbd20ec25ed55e5b5de869e5436eb1" + +mime-types@^2.1.12, mime-types@~2.1.7: + version "2.1.15" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.15.tgz#a4ebf5064094569237b8cf70046776d09fc92aed" + dependencies: + mime-db "~1.27.0" + +"minimatch@2 || 3", minimatch@^3.0.2, minimatch@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.0.3.tgz#2a4e4090b96b2db06a9d7df01055a62a77c9b774" + dependencies: + brace-expansion "^1.0.0" + +minimist@0.0.8, minimist@~0.0.1: + version "0.0.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-0.0.8.tgz#857fcabfc3397d2625b8228262e86aa7a011b05d" + +minimist@^1.1.1: + version "1.2.0" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.0.tgz#a35008b20f41383eec1fb914f4cd5df79a264284" + +mkdirp@^0.5.0, mkdirp@^0.5.1: + version "0.5.1" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.1.tgz#30057438eac6cf7f8c4767f38648d6697d75c903" + dependencies: + minimist "0.0.8" + +ms@0.7.1: + version "0.7.1" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.1.tgz#9cd13c03adbff25b65effde7ce864ee952017098" + +ms@0.7.2: + version "0.7.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-0.7.2.tgz#ae25cf2512b3885a1d95d7f037868d8431124765" + +mute-stream@0.0.5: + version "0.0.5" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-0.0.5.tgz#8fbfabb0a98a253d3184331f9e8deb7372fac6c0" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + +node-fetch@^1.3.3, node-fetch@~1.6.3: + version "1.6.3" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-1.6.3.tgz#dc234edd6489982d58e8f0db4f695029abcd8c04" + dependencies: + encoding "^0.1.11" + is-stream "^1.0.1" + +node-int64@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/node-int64/-/node-int64-0.4.0.tgz#87a9065cdb355d3182d8f94ce11188b825c68a3b" + +node-notifier@^5.0.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/node-notifier/-/node-notifier-5.1.2.tgz#2fa9e12605fa10009d44549d6fcd8a63dde0e4ff" + dependencies: + growly "^1.3.0" + semver "^5.3.0" + shellwords "^0.1.0" + which "^1.2.12" + +normalize-package-data@^2.3.2: + version "2.3.6" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.3.6.tgz#498fa420c96401f787402ba21e600def9f981fff" + dependencies: + hosted-git-info "^2.1.4" + is-builtin-module "^1.0.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-path@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-1.0.0.tgz#32d0e472f91ff345701c15a8311018d3b0a90379" + +normalize-path@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-2.1.1.tgz#1ab28b556e198363a8c1a6f7e6fa20137fe6aed9" + dependencies: + remove-trailing-separator "^1.0.1" + +number-is-nan@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/number-is-nan/-/number-is-nan-1.0.1.tgz#097b602b53422a522c1afb8790318336941a011d" + +"nwmatcher@>= 1.3.9 < 2.0.0": + version "1.3.9" + resolved "https://registry.yarnpkg.com/nwmatcher/-/nwmatcher-1.3.9.tgz#8bab486ff7fa3dfd086656bbe8b17116d3692d2a" + +oauth-sign@~0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.8.2.tgz#46a6ab7f0aead8deae9ec0565780b7d4efeb9d43" + +object-assign@^4.0.1, object-assign@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + +object.omit@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/object.omit/-/object.omit-2.0.1.tgz#1a9c744829f39dbb858c76ca3579ae2a54ebd1fa" + dependencies: + for-own "^0.1.4" + is-extendable "^0.1.1" + +octonode@^0.7.4: + version "0.7.10" + resolved "https://registry.yarnpkg.com/octonode/-/octonode-0.7.10.tgz#d7c90d0b4727043ab2e6a5ffe05d0543b44f60a9" + dependencies: + deep-extend "^0.4.1" + randomstring "^1.1.5" + request "^2.72.0" + +once@^1.3.0, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + dependencies: + wrappy "1" + +onetime@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-1.1.0.tgz#a1f7838f8314c516f05ecefcbc4ccfe04b4ed789" + +optimist@^0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/optimist/-/optimist-0.6.1.tgz#da3ea74686fa21a19a111c326e90eb15a0196686" + dependencies: + minimist "~0.0.1" + wordwrap "~0.0.2" + +optionator@^0.8.1, optionator@^0.8.2: + version "0.8.2" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.8.2.tgz#364c5e409d3f4d6301d6c0b4c05bba50180aeb64" + dependencies: + deep-is "~0.1.3" + fast-levenshtein "~2.0.4" + levn "~0.3.0" + prelude-ls "~1.1.2" + type-check "~0.3.2" + wordwrap "~1.0.0" + +os-homedir@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-homedir/-/os-homedir-1.0.2.tgz#ffbc4988336e0e833de0c168c7ef152121aa7fb3" + +os-locale@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/os-locale/-/os-locale-1.4.0.tgz#20f9f17ae29ed345e8bde583b13d2009803c14d9" + dependencies: + lcid "^1.0.0" + +os-tmpdir@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + +p-limit@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.1.0.tgz#b07ff2d9a5d88bec806035895a2bab66a27988bc" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + dependencies: + p-limit "^1.1.0" + +parse-git-config@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/parse-git-config/-/parse-git-config-1.1.1.tgz#d3a9984317132f57398712bba438e129590ddf8c" + dependencies: + extend-shallow "^2.0.1" + fs-exists-sync "^0.1.0" + git-config-path "^1.0.1" + ini "^1.3.4" + +parse-glob@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/parse-glob/-/parse-glob-3.0.4.tgz#b2c376cfb11f35513badd173ef0bb6e3a388391c" + dependencies: + glob-base "^0.3.0" + is-dotfile "^1.0.0" + is-extglob "^1.0.0" + is-glob "^2.0.0" + +parse-json@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-2.2.0.tgz#f480f40434ef80741f8469099f8dea18f55a4dc9" + dependencies: + error-ex "^1.2.0" + +parse-passwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/parse-passwd/-/parse-passwd-1.0.0.tgz#6d5b934a456993b23d37f40a382d6f1666a8e5c6" + +parse5@^1.5.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-1.5.1.tgz#9b7f3b0de32be78dc2401b17573ccaf0f6f59d94" + +path-exists@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-2.1.0.tgz#0feb6c64f0fc518d9a754dd5efb62c7022761f4b" + dependencies: + pinkie-promise "^2.0.0" + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + +path-is-inside@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + +path-parse@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.5.tgz#3c1adf871ea9cd6c9431b6ea2bd74a0ff055c4c1" + +path-type@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-1.1.0.tgz#59c44f7ee491da704da415da5a4070ba4f8fe441" + dependencies: + graceful-fs "^4.1.2" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +pbkdf2@~3.0.4: + version "3.0.9" + resolved "https://registry.yarnpkg.com/pbkdf2/-/pbkdf2-3.0.9.tgz#f2c4b25a600058b3c3773c086c37dbbee1ffe693" + dependencies: + create-hmac "^1.1.2" + +performance-now@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-0.2.0.tgz#33ef30c5c77d4ea21c5a53869d91b56d8f2555e5" + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + +pkg-dir@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-1.0.0.tgz#7a4b508a8d5bb2d629d447056ff4e9c9314cf3d4" + dependencies: + find-up "^1.0.0" + +pkg-up@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/pkg-up/-/pkg-up-1.0.0.tgz#3e08fb461525c4421624a33b9f7e6d0af5b05a26" + dependencies: + find-up "^1.0.0" + +pluralize@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/pluralize/-/pluralize-1.2.1.tgz#d1a21483fd22bb41e58a12fa3421823140897c45" + +prelude-ls@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.1.2.tgz#21932a549f5e52ffd9a827f570e04be62a97da54" + +preserve@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" + +pretty-format@^19.0.0: + version "19.0.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-19.0.0.tgz#56530d32acb98a3fa4851c4e2b9d37b420684c84" + dependencies: + ansi-styles "^3.0.0" + +private@^0.1.6: + version "0.1.7" + resolved "https://registry.yarnpkg.com/private/-/private-0.1.7.tgz#68ce5e8a1ef0a23bb570cc28537b5332aba63ef1" + +process-nextick-args@~1.0.6: + version "1.0.7" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-1.0.7.tgz#150e20b756590ad3f91093f25a4f2ad8bff30ba3" + +progress@^1.1.8: + version "1.1.8" + resolved "https://registry.yarnpkg.com/progress/-/progress-1.1.8.tgz#e260c78f6161cdd9b0e56cc3e0a85de17c7a57be" + +prr@~0.0.0: + version "0.0.0" + resolved "https://registry.yarnpkg.com/prr/-/prr-0.0.0.tgz#1a84b85908325501411853d0081ee3fa86e2926a" + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + +qs@~6.4.0: + version "6.4.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.4.0.tgz#13e26d28ad6b0ffaa91312cd3bf708ed351e7233" + +randomatic@^1.1.3: + version "1.1.6" + resolved "https://registry.yarnpkg.com/randomatic/-/randomatic-1.1.6.tgz#110dcabff397e9dcff7c0789ccc0a49adf1ec5bb" + dependencies: + is-number "^2.0.2" + kind-of "^3.0.2" + +randomstring@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/randomstring/-/randomstring-1.1.5.tgz#6df0628f75cbd5932930d9fe3ab4e956a18518c3" + dependencies: + array-uniq "1.0.2" + +read-pkg-up@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-1.0.1.tgz#9d63c13276c065918d57f002a57f40a1b643fb02" + dependencies: + find-up "^1.0.0" + read-pkg "^1.0.0" + +read-pkg@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-1.1.0.tgz#f5ffaa5ecd29cb31c0474bca7d756b6bb29e3f28" + dependencies: + load-json-file "^1.0.0" + normalize-package-data "^2.3.2" + path-type "^1.0.0" + +readable-stream@^2.2.2: + version "2.2.6" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.2.6.tgz#8b43aed76e71483938d12a8d46c6cf1a00b1f816" + dependencies: + buffer-shims "^1.0.0" + core-util-is "~1.0.0" + inherits "~2.0.1" + isarray "~1.0.0" + process-nextick-args "~1.0.6" + string_decoder "~0.10.x" + util-deprecate "~1.0.1" + +readline2@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/readline2/-/readline2-1.0.1.tgz#41059608ffc154757b715d9989d199ffbf372e35" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + mute-stream "0.0.5" + +rechoir@^0.6.2: + version "0.6.2" + resolved "https://registry.yarnpkg.com/rechoir/-/rechoir-0.6.2.tgz#85204b54dba82d5742e28c96756ef43af50e3384" + dependencies: + resolve "^1.1.6" + +regenerator-runtime@^0.10.0: + version "0.10.3" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.10.3.tgz#8c4367a904b51ea62a908ac310bf99ff90a82a3e" + +regex-cache@^0.4.2: + version "0.4.3" + resolved "https://registry.yarnpkg.com/regex-cache/-/regex-cache-0.4.3.tgz#9b1a6c35d4d0dfcef5711ae651e8e9d3d7114145" + dependencies: + is-equal-shallow "^0.1.3" + is-primitive "^2.0.0" + +remove-trailing-separator@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/remove-trailing-separator/-/remove-trailing-separator-1.0.1.tgz#615ebb96af559552d4bf4057c8436d486ab63cc4" + +repeat-element@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.2.tgz#ef089a178d1483baae4d93eb98b4f9e4e11d990a" + +repeat-string@^1.5.2: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + +repeating@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/repeating/-/repeating-2.0.1.tgz#5214c53a926d3552707527fbab415dbc08d06dda" + dependencies: + is-finite "^1.0.0" + +request@^2.67.0, request@^2.72.0, request@^2.79.0: + version "2.81.0" + resolved "https://registry.yarnpkg.com/request/-/request-2.81.0.tgz#c6928946a0e06c5f8d6f8a9333469ffda46298a0" + dependencies: + aws-sign2 "~0.6.0" + aws4 "^1.2.1" + caseless "~0.12.0" + combined-stream "~1.0.5" + extend "~3.0.0" + forever-agent "~0.6.1" + form-data "~2.1.1" + har-validator "~4.2.1" + hawk "~3.1.3" + http-signature "~1.1.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.7" + oauth-sign "~0.8.1" + performance-now "^0.2.0" + qs "~6.4.0" + safe-buffer "^5.0.1" + stringstream "~0.0.4" + tough-cookie "~2.3.0" + tunnel-agent "^0.6.0" + uuid "^3.0.0" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + +require-main-filename@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-1.0.1.tgz#97f717b69d48784f5f526a6c5aa8ffdda055a4d1" + +require-uncached@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/require-uncached/-/require-uncached-1.0.3.tgz#4e0d56d6c9662fd31e43011c4b95aa49955421d3" + dependencies: + caller-path "^0.1.0" + resolve-from "^1.0.0" + +resolve-from@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-1.0.1.tgz#26cbfe935d1aeeeabb29bc3fe5aeb01e93d44226" + +resolve@1.1.7: + version "1.1.7" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.1.7.tgz#203114d82ad2c5ed9e8e0411b3932875e889e97b" + +resolve@^1.1.6, resolve@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.3.2.tgz#1f0442c9e0cbb8136e87b9305f932f46c7f28235" + dependencies: + path-parse "^1.0.5" + +restore-cursor@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-1.0.1.tgz#34661f46886327fed2991479152252df92daa541" + dependencies: + exit-hook "^1.0.0" + onetime "^1.0.0" + +rgb-hex@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/rgb-hex/-/rgb-hex-2.1.0.tgz#c773c5fe2268a25578d92539a82a7a5ce53beda6" + +right-align@^0.1.1: + version "0.1.3" + resolved "https://registry.yarnpkg.com/right-align/-/right-align-0.1.3.tgz#61339b722fe6a3515689210d24e14c96148613ef" + dependencies: + align-text "^0.1.1" + +rimraf@^2.2.8, rimraf@^2.4.4: + version "2.6.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.1.tgz#c2338ec643df7a1b7fe5c54fa86f57428a55f33d" + dependencies: + glob "^7.0.5" + +ripemd160@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/ripemd160/-/ripemd160-1.0.1.tgz#93a4bbd4942bc574b69a8fa57c71de10ecca7d6e" + +run-async@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-0.1.0.tgz#c8ad4a5e110661e402a7d21b530e009f25f8e389" + dependencies: + once "^1.3.0" + +rx-lite@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/rx-lite/-/rx-lite-3.1.2.tgz#19ce502ca572665f3b647b10939f97fd1615f102" + +safe-buffer@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.0.1.tgz#d263ca54696cd8a306b5ca6551e92de57918fbe7" + +sane@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/sane/-/sane-1.5.0.tgz#a4adeae764d048621ecb27d5f9ecf513101939f3" + dependencies: + anymatch "^1.3.0" + exec-sh "^0.2.0" + fb-watchman "^1.8.0" + minimatch "^3.0.2" + minimist "^1.1.1" + walker "~1.0.5" + watch "~0.10.0" + +sax@>=0.6.0, sax@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.2.2.tgz#fd8631a23bc7826bef5d871bdb87378c95647828" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.3.0.tgz#9b2ce5d3de02d17c6012ad326aa6b4d0cf54f94f" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + +sha.js@^2.3.6: + version "2.4.8" + resolved "https://registry.yarnpkg.com/sha.js/-/sha.js-2.4.8.tgz#37068c2c476b6baf402d14a49c67f597921f634f" + dependencies: + inherits "^2.0.1" + +shelljs@^0.7.5: + version "0.7.7" + resolved "https://registry.yarnpkg.com/shelljs/-/shelljs-0.7.7.tgz#b2f5c77ef97148f4b4f6e22682e10bba8667cff1" + dependencies: + glob "^7.0.0" + interpret "^1.0.0" + rechoir "^0.6.2" + +shellwords@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/shellwords/-/shellwords-0.1.0.tgz#66afd47b6a12932d9071cbfd98a52e785cd0ba14" + +slash@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-1.0.0.tgz#c41f2f6c39fc16d1cd17ad4b5d896114ae470d55" + +slice-ansi@0.0.4: + version "0.0.4" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-0.0.4.tgz#edbf8903f66f7ce2f8eafd6ceed65e264c831b35" + +sntp@1.x.x: + version "1.0.9" + resolved "https://registry.yarnpkg.com/sntp/-/sntp-1.0.9.tgz#6541184cc90aeea6c6e7b35e2659082443c66198" + dependencies: + hoek "2.x.x" + +source-map-support@^0.4.2: + version "0.4.14" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.14.tgz#9d4463772598b86271b4f523f6c1f4e02a7d6aef" + dependencies: + source-map "^0.5.6" + +source-map@^0.4.4: + version "0.4.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" + dependencies: + amdefine ">=0.0.4" + +source-map@^0.5.0, source-map@^0.5.3, source-map@^0.5.6, source-map@~0.5.1: + version "0.5.6" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.6.tgz#75ce38f52bf0733c5a7f0c118d81334a2bb5f412" + +source-map@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.2.0.tgz#dab73fbcfc2ba819b4de03bd6f6eaa48164b3f9d" + dependencies: + amdefine ">=0.0.4" + +spdx-correct@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-1.0.2.tgz#4b3073d933ff51f3912f03ac5519498a4150db40" + dependencies: + spdx-license-ids "^1.0.2" + +spdx-expression-parse@~1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-1.0.4.tgz#9bdf2f20e1f40ed447fbe273266191fced51626c" + +spdx-license-ids@^1.0.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-1.2.2.tgz#c9df7a3424594ade6bd11900d596696dc06bac57" + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + +sshpk@^1.7.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.11.0.tgz#2d8d5ebb4a6fab28ffba37fa62a90f4a3ea59d77" + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + dashdash "^1.12.0" + getpass "^0.1.1" + optionalDependencies: + bcrypt-pbkdf "^1.0.0" + ecc-jsbn "~0.1.1" + jodid25519 "^1.0.0" + jsbn "~0.1.0" + tweetnacl "~0.14.0" + +streamifier@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/streamifier/-/streamifier-0.1.1.tgz#97e98d8fa4d105d62a2691d1dc07e820db8dfc4f" + +string-length@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/string-length/-/string-length-1.0.1.tgz#56970fb1c38558e9e70b728bf3de269ac45adfac" + dependencies: + strip-ansi "^3.0.0" + +string-width@^1.0.1, string-width@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-1.0.2.tgz#118bdf5b8cdc51a2a7e70d211e07e2b0b9b107d3" + dependencies: + code-point-at "^1.0.0" + is-fullwidth-code-point "^1.0.0" + strip-ansi "^3.0.0" + +string-width@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-2.0.0.tgz#635c5436cc72a6e0c387ceca278d4e2eec52687e" + dependencies: + is-fullwidth-code-point "^2.0.0" + strip-ansi "^3.0.0" + +string@^3.3.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/string/-/string-3.3.3.tgz#5ea211cd92d228e184294990a6cc97b366a77cb0" + +string_decoder@~0.10.x: + version "0.10.31" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-0.10.31.tgz#62e203bc41766c6c28c9fc84301dab1c5310fa94" + +stringstream@~0.0.4: + version "0.0.5" + resolved "https://registry.yarnpkg.com/stringstream/-/stringstream-0.0.5.tgz#4e484cd4de5a0bbbee18e46307710a8a81621878" + +strip-ansi@^3.0.0, strip-ansi@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + dependencies: + ansi-regex "^2.0.0" + +strip-bom@3.0.0, strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + +strip-bom@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-2.0.0.tgz#6219a85616520491f35788bdbf1447a99c7e6b0e" + dependencies: + is-utf8 "^0.2.0" + +strip-json-comments@~2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + +supports-color@^3.1.2: + version "3.2.3" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-3.2.3.tgz#65ac0504b3954171d8a64946b2ae3cbb8a5f54f6" + dependencies: + has-flag "^1.0.0" + +symbol-tree@^3.2.1: + version "3.2.2" + resolved "https://registry.yarnpkg.com/symbol-tree/-/symbol-tree-3.2.2.tgz#ae27db38f660a7ae2e1c3b7d1bc290819b8519e6" + +table@^3.7.8: + version "3.8.3" + resolved "https://registry.yarnpkg.com/table/-/table-3.8.3.tgz#2bbc542f0fda9861a755d3947fefd8b3f513855f" + dependencies: + ajv "^4.7.0" + ajv-keywords "^1.0.0" + chalk "^1.1.1" + lodash "^4.0.0" + slice-ansi "0.0.4" + string-width "^2.0.0" + +test-exclude@^4.0.3: + version "4.0.3" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-4.0.3.tgz#86a13ce3effcc60e6c90403cf31a27a60ac6c4e7" + dependencies: + arrify "^1.0.1" + micromatch "^2.3.11" + object-assign "^4.1.0" + read-pkg-up "^1.0.1" + require-main-filename "^1.0.1" + +text-table@~0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + +throat@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/throat/-/throat-3.0.0.tgz#e7c64c867cbb3845f10877642f7b60055b8ec0d6" + +through@^2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + +tmpl@1.0.x: + version "1.0.4" + resolved "https://registry.yarnpkg.com/tmpl/-/tmpl-1.0.4.tgz#23640dd7b42d00433911140820e5cf440e521dd1" + +to-fast-properties@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-1.0.2.tgz#f3f5c0c3ba7299a7ef99427e44633257ade43320" + +tough-cookie@^2.3.2, tough-cookie@~2.3.0: + version "2.3.2" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.3.2.tgz#f081f76e4c85720e6c37a5faced737150d84072a" + dependencies: + punycode "^1.4.1" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + +trim-right@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/trim-right/-/trim-right-1.0.1.tgz#cb2e1203067e0c8de1f614094b9fe45704ea6003" + +tryit@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/tryit/-/tryit-1.0.3.tgz#393be730a9446fd1ead6da59a014308f36c289cb" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + +type-check@~0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.3.2.tgz#5884cab512cf1d355e3fb784f30804b2b520db72" + dependencies: + prelude-ls "~1.1.2" + +typedarray@^0.0.6: + version "0.0.6" + resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777" + +uglify-js@^2.6: + version "2.8.20" + resolved "https://registry.yarnpkg.com/uglify-js/-/uglify-js-2.8.20.tgz#be87100fbc18de3876ed606e9d24b4568311cecf" + dependencies: + source-map "~0.5.1" + yargs "~3.10.0" + optionalDependencies: + uglify-to-browserify "~1.0.0" + +uglify-to-browserify@~1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/uglify-to-browserify/-/uglify-to-browserify-1.0.2.tgz#6e0924d6bda6b5afe349e39a6d632850a0f882b7" + +user-home@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/user-home/-/user-home-2.0.0.tgz#9c70bfd8169bc1dcbf48604e0f04b8b49cde9e9f" + dependencies: + os-homedir "^1.0.0" + +util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + +uuid@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.0.1.tgz#6544bba2dfda8c1cf17e629a3a305e2bb1fee6c1" + +uuid@~2.0.1: + version "2.0.3" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-2.0.3.tgz#67e2e863797215530dff318e5bf9dcebfd47b21a" + +validate-npm-package-license@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.1.tgz#2804babe712ad3379459acfbe24746ab2c303fbc" + dependencies: + spdx-correct "~1.0.0" + spdx-expression-parse "~1.0.0" + +verror@1.3.6: + version "1.3.6" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.3.6.tgz#cff5df12946d297d2baaefaa2689e25be01c005c" + dependencies: + extsprintf "1.0.2" + +walker@~1.0.5: + version "1.0.7" + resolved "https://registry.yarnpkg.com/walker/-/walker-1.0.7.tgz#2f7f9b8fd10d677262b18a884e28d19618e028fb" + dependencies: + makeerror "1.0.x" + +watch@~0.10.0: + version "0.10.0" + resolved "https://registry.yarnpkg.com/watch/-/watch-0.10.0.tgz#77798b2da0f9910d595f1ace5b0c2258521f21dc" + +webdav-fs@~0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/webdav-fs/-/webdav-fs-0.4.1.tgz#218cda3978fb8ad6d1ed8474f5b4036bf1019e6c" + dependencies: + brototype "0.0.5" + node-fetch "^1.3.3" + streamifier "^0.1.1" + xml2js "^0.4.13" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + +webidl-conversions@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-4.0.1.tgz#8015a17ab83e7e1b311638486ace81da6ce206a0" + +whatwg-encoding@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/whatwg-encoding/-/whatwg-encoding-1.0.1.tgz#3c6c451a198ee7aec55b1ec61d0920c67801a5f4" + dependencies: + iconv-lite "0.4.13" + +whatwg-url@^4.3.0: + version "4.6.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-4.6.0.tgz#ef98da442273be04cf9632e176f257d2395a1ae4" + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which-module@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-1.0.0.tgz#bba63ca861948994ff307736089e3b96026c2a4f" + +which@^1.1.1, which@^1.2.12: + version "1.2.14" + resolved "https://registry.yarnpkg.com/which/-/which-1.2.14.tgz#9a87c4378f03e827cecaf1acdf56c736c01c14e5" + dependencies: + isexe "^2.0.0" + +window-size@0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/window-size/-/window-size-0.1.0.tgz#5438cd2ea93b202efa3a19fe8887aee7c94f9c9d" + +wordwrap@0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.2.tgz#b79669bb42ecb409f83d583cad52ca17eaa1643f" + +wordwrap@~0.0.2: + version "0.0.3" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-0.0.3.tgz#a3d5da6cd5c0bc0008d37234bbaf1bed63059107" + +wordwrap@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/wordwrap/-/wordwrap-1.0.0.tgz#27584810891456a4171c8d0226441ade90cbcaeb" + +worker-farm@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/worker-farm/-/worker-farm-1.3.1.tgz#4333112bb49b17aa050b87895ca6b2cacf40e5ff" + dependencies: + errno ">=0.1.1 <0.2.0-0" + xtend ">=4.0.0 <4.1.0-0" + +wrap-ansi@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-2.1.0.tgz#d8fc3d284dd05794fe84973caecdd1cf824fdd85" + dependencies: + string-width "^1.0.1" + strip-ansi "^3.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + +write@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/write/-/write-0.2.1.tgz#5fc03828e264cea3fe91455476f7a3c566cb0757" + dependencies: + mkdirp "^0.5.1" + +xml-name-validator@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/xml-name-validator/-/xml-name-validator-2.0.1.tgz#4d8b8f1eccd3419aa362061becef515e1e559635" + +xml2js@^0.4.13: + version "0.4.17" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.17.tgz#17be93eaae3f3b779359c795b419705a8817e868" + dependencies: + sax ">=0.6.0" + xmlbuilder "^4.1.0" + +xmlbuilder@^4.1.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-4.2.1.tgz#aa58a3041a066f90eaa16c2f5389ff19f3f461a5" + dependencies: + lodash "^4.0.0" + +"xtend@>=4.0.0 <4.1.0-0", xtend@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.1.tgz#a5c6d532be656e23db820efb943a1f04998d63af" + +y18n@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-3.2.1.tgz#6d15fba884c08679c0d77e88e7759e811e07fa41" + +yargs-parser@^4.2.0: + version "4.2.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-4.2.1.tgz#29cceac0dc4f03c6c87b4a9f217dd18c9f74871c" + dependencies: + camelcase "^3.0.0" + +yargs@^6.3.0: + version "6.6.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-6.6.0.tgz#782ec21ef403345f830a808ca3d513af56065208" + dependencies: + camelcase "^3.0.0" + cliui "^3.2.0" + decamelize "^1.1.1" + get-caller-file "^1.0.1" + os-locale "^1.4.0" + read-pkg-up "^1.0.1" + require-directory "^2.1.1" + require-main-filename "^1.0.1" + set-blocking "^2.0.0" + string-width "^1.0.2" + which-module "^1.0.0" + y18n "^3.2.1" + yargs-parser "^4.2.0" + +yargs@~3.10.0: + version "3.10.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-3.10.0.tgz#f7ee7bd857dd7c1d2d38c0e74efbd681d1431fd1" + dependencies: + camelcase "^1.0.2" + cliui "^2.1.0" + decamelize "^1.0.0" + window-size "0.1.0"