diff --git a/packages/util-git-info/.gitignore b/packages/util-git-info/.gitignore index ed8860e..a075f28 100644 --- a/packages/util-git-info/.gitignore +++ b/packages/util-git-info/.gitignore @@ -8,6 +8,11 @@ yarn-error.log* misc old +tests/result.json + +# TypeScript generated types +types/ + # Runtime data pids *.pid diff --git a/packages/util-git-info/README.md b/packages/util-git-info/README.md index f3b7acc..c43590a 100644 --- a/packages/util-git-info/README.md +++ b/packages/util-git-info/README.md @@ -12,6 +12,7 @@ npm install git-er-done ## Usage +### Basic Usage ```js const { gitDetails } = require('git-er-done') @@ -19,7 +20,7 @@ const { gitDetails } = require('git-er-done') // Git commit ref / branch to check against. Default is 'master' const GIT_COMMIT_REF = '9f63b23ec99e36a176d73909fc67a39dc3bd56b7' -gitData({ +gitDetails({ base: GIT_COMMIT_REF, }).then((git) => { /* git data returns @@ -29,55 +30,175 @@ gitData({ createdFiles: [ Array of created files ], deletedFiles: [ Array of deleted files ], commits: [ Array of commits ], - linesOfCode: [AsyncFunction: linesOfCode] + lastCommit: { Object with last commit info }, + linesOfCode: [AsyncFunction: linesOfCode], + dir: String path to git repo } */ - if (modifiedFiles.length) { + if (git.modifiedFiles.length) { // Some files have changed } - if (createdFiles.length) { + if (git.createdFiles.length) { // Some files have been created } - if (deletedFiles.length) { + if (git.deletedFiles.length) { // Some files have been deleted } +}) +``` - /* Using fileMatch function */ - const srcCode = git.fileMatch('src/**/*.js') - /* srcCode is object - { - modified: true, - created: true, - deleted: true, - edited: true, - getKeyedPaths: [Function: getKeyedPaths] - } - */ - if (srcCode.edited) { - console.log('srcCode has been edited') - // Do stuff because src edited - } +### Using without options - const mdFiles = git.fileMatch('**/*.md') - if (mdFiles.edited) { - // Do stuff because markdown files are changed - } +You can call `gitDetails()` without any options to get info from the current HEAD: - const mdFilesData = mdFiles.getKeyedPaths() - /* mdFilesData is full information on the files in the sub path that changed - { - modified: [ Array of modified files ], - created: [ Array of created files ], - deleted:[ Array of deleted files ], - edited: [ Array of edited files ] - } - */ +```js +const { gitDetails } = require('git-er-done') + +const git = await gitDetails() +console.log('Modified files:', git.modifiedFiles) +console.log('Created files:', git.createdFiles) +console.log('Deleted files:', git.deletedFiles) +``` + +### Getting Lines of Code Changed + +```js +const { gitDetails } = require('git-er-done') + +const git = await gitDetails({ + base: 'main', + head: 'feature-branch' +}) + +const totalLines = await git.linesOfCode() +console.log(`Total lines changed: ${totalLines}`) +``` + +### Working with Commit Information + +Access detailed commit information including author, committer, and subject: + +```js +const { gitDetails } = require('git-er-done') + +const git = await gitDetails({ base: 'main' }) - //... Etc. GIT ER DONE +// Access commits array +git.commits.forEach((commit) => { + console.log('SHA:', commit.sha) + console.log('Author:', commit.author.name, commit.author.email) + console.log('Committer:', commit.committer.name) + console.log('Subject:', commit.subject) + console.log('Sanitized Subject:', commit.sanitizedSubject) + console.log('---') }) + +// Access the last commit +console.log('Last commit:', git.lastCommit) +``` + +### Using fileMatch with Patterns + +Use glob patterns to match specific files. You can also use negation patterns: + +```js +const { gitDetails } = require('git-er-done') + +const git = await gitDetails({ base: 'main' }) + +// Simple pattern matching +const srcCode = git.fileMatch('src/**/*.js') +/* srcCode returns object with: +{ + modified: Boolean, + modifiedFiles: Array, + created: Boolean, + createdFiles: Array, + deleted: Boolean, + deletedFiles: Array, + edited: Boolean, + editedFiles: Array +} +*/ + +if (srcCode.edited) { + console.log('Source code has been edited') + console.log('Modified files:', srcCode.modifiedFiles) + console.log('Created files:', srcCode.createdFiles) +} + +// Match with negation - find all JSON files except package.json +const jsonFiles = git.fileMatch('**/**.json', '!**/package.json') +if (jsonFiles.modified) { + console.log('Non-package JSON files modified:', jsonFiles.modifiedFiles) +} +if (jsonFiles.created) { + console.log('Non-package JSON files created:', jsonFiles.createdFiles) +} + +// Check markdown files +const mdFiles = git.fileMatch('**/*.md') +if (mdFiles.edited) { + // Do stuff because markdown files are changed + console.log('All markdown changes:', mdFiles.editedFiles) +} +``` + +### Getting Detailed File Information + +The `fileMatch` function returns detailed information about matched files: + +```js +const { gitDetails } = require('git-er-done') + +const git = await gitDetails({ base: 'main' }) + +const testFiles = git.fileMatch('**/*.test.js') + +// Access individual arrays +console.log('Modified test files:', testFiles.modifiedFiles) +console.log('Created test files:', testFiles.createdFiles) +console.log('Deleted test files:', testFiles.deletedFiles) +console.log('All edited test files:', testFiles.editedFiles) + +// Check if any test files changed +if (testFiles.edited) { + console.log('Tests have been modified - run test suite') +} + +## Examples + +Check out the [`examples`](./examples) directory for more use cases: + +### Basic Examples +- [`get-git-data.js`](./examples/get-git-data.js) - Get basic git information between commits +- [`get-all-commits.js`](./examples/get-all-commits.js) - Retrieve and display all commits +- [`get-git-files.js`](./examples/get-git-files.js) - Get list of all git-tracked files +- [`get-specific-commit-info.js`](./examples/get-specific-commit-info.js) - Get detailed information about a specific commit + +### File Change Detection +- [`detect-file-changes.js`](./examples/detect-file-changes.js) - Detect specific file changes between commits +- [`file-match-patterns.js`](./examples/file-match-patterns.js) - Comprehensive guide to file matching patterns + +### Statistics & Analysis +- [`get-lines-of-code-changed.js`](./examples/get-lines-of-code-changed.js) - Calculate lines of code changed +- [`branch-comparison.js`](./examples/branch-comparison.js) - Compare two branches with detailed statistics + +### Automation & CI/CD +- [`check-config-changes.js`](./examples/check-config-changes.js) - Detect configuration file changes for CI/CD pipelines +- [`code-review-helper.js`](./examples/code-review-helper.js) - Automated code review checklist and suggestions +- [`monorepo-package-detection.js`](./examples/monorepo-package-detection.js) - Detect which packages changed in a monorepo +- [`generate-release-notes.js`](./examples/generate-release-notes.js) - Auto-generate release notes from commits + +Run any example: + +```bash +node examples/get-git-data.js +node examples/code-review-helper.js +node examples/monorepo-package-detection.js ``` ## Prior art diff --git a/packages/util-git-info/examples/branch-comparison.js b/packages/util-git-info/examples/branch-comparison.js new file mode 100644 index 0000000..b886c4d --- /dev/null +++ b/packages/util-git-info/examples/branch-comparison.js @@ -0,0 +1,109 @@ +const { gitDetails } = require('../src') + +async function compareBranches() { + const branch1 = 'main' + const branch2 = 'HEAD' + + console.log(`šŸ” Comparing ${branch1}...${branch2}\n`) + console.log('═══════════════════════════════════════\n') + + let gitInfo + try { + gitInfo = await gitDetails({ + base: branch1, + head: branch2 + }) + } catch (err) { + console.log('Error getting git info') + console.log(err) + return + } + + // Commits + console.log(`šŸ“ Commits: ${gitInfo.commits.length}\n`) + if (gitInfo.commits.length > 0) { + const recentCommits = gitInfo.commits.slice(0, 5) + console.log('Recent commits:') + recentCommits.forEach(commit => { + console.log(` ${commit.abbreviatedCommitHash} - ${commit.subject}`) + console.log(` ${commit.author.name} (${commit.author.date})\n`) + }) + + if (gitInfo.commits.length > 5) { + console.log(` ... and ${gitInfo.commits.length - 5} more commits\n`) + } + } + + // Contributors + const contributors = new Map() + gitInfo.commits.forEach(commit => { + const name = commit.author.name + contributors.set(name, (contributors.get(name) || 0) + 1) + }) + + console.log('šŸ‘„ Contributors:\n') + Array.from(contributors.entries()) + .sort((a, b) => b[1] - a[1]) + .forEach(([name, count]) => { + console.log(` ${name}: ${count} commit${count > 1 ? 's' : ''}`) + }) + console.log() + + // File changes + console.log('šŸ“Š File Changes:\n') + console.log(` Modified: ${gitInfo.modifiedFiles.length}`) + console.log(` Created: ${gitInfo.createdFiles.length}`) + console.log(` Deleted: ${gitInfo.deletedFiles.length}`) + + const totalLines = await gitInfo.linesOfCode() + console.log(` Lines changed: ${totalLines}`) + console.log() + + // File type breakdown + const getExtension = (file) => { + const match = file.match(/\.([^.]+)$/) + return match ? match[1] : 'no extension' + } + + const allFiles = [ + ...gitInfo.modifiedFiles, + ...gitInfo.createdFiles, + ...gitInfo.deletedFiles + ] + + const fileTypes = {} + allFiles.forEach(file => { + const ext = getExtension(file) + fileTypes[ext] = (fileTypes[ext] || 0) + 1 + }) + + console.log('šŸ“ File Types:\n') + Object.entries(fileTypes) + .sort((a, b) => b[1] - a[1]) + .forEach(([ext, count]) => { + console.log(` .${ext}: ${count} file${count > 1 ? 's' : ''}`) + }) + console.log() + + // Notable changes + console.log('šŸ” Notable Changes:\n') + + const tests = gitInfo.fileMatch(['**/*.test.js', '**/*.test.ts', '**/*.spec.js']) + if (tests.edited) { + console.log(` āœ… ${tests.editedFiles.length} test file${tests.editedFiles.length > 1 ? 's' : ''} changed`) + } + + const docs = gitInfo.fileMatch('**/*.md') + if (docs.edited) { + console.log(` šŸ“ ${docs.editedFiles.length} documentation file${docs.editedFiles.length > 1 ? 's' : ''} changed`) + } + + const configs = gitInfo.fileMatch(['**/package.json', '**/*.config.js', '**/tsconfig.json']) + if (configs.edited) { + console.log(` āš™ļø ${configs.editedFiles.length} config file${configs.editedFiles.length > 1 ? 's' : ''} changed`) + } + + console.log('\n═══════════════════════════════════════') +} + +compareBranches() diff --git a/packages/util-git-info/examples/check-config-changes.js b/packages/util-git-info/examples/check-config-changes.js new file mode 100644 index 0000000..4968edf --- /dev/null +++ b/packages/util-git-info/examples/check-config-changes.js @@ -0,0 +1,83 @@ +const { gitDetails } = require('../src') + +async function checkConfigChanges() { + let gitInfo + try { + gitInfo = await gitDetails({ + base: 'master' + }) + } catch (err) { + console.log('Error getting git info') + console.log(err) + return + } + + console.log('šŸ” Checking for configuration changes...\n') + + // Check for package.json changes + const packageJsonChanges = gitInfo.fileMatch('**/package.json') + if (packageJsonChanges.edited) { + console.log('šŸ“¦ package.json files changed:') + packageJsonChanges.editedFiles.forEach(file => { + console.log(` - ${file}`) + }) + console.log('āš ļø Action: Review dependencies and run npm install\n') + } + + // Check for environment/config files + const envFiles = gitInfo.fileMatch([ + '**/.env*', + '**/config.js', + '**/config.json', + '**/*.config.js' + ]) + if (envFiles.edited) { + console.log('āš™ļø Configuration files changed:') + envFiles.editedFiles.forEach(file => { + console.log(` - ${file}`) + }) + console.log('āš ļø Action: Update environment variables and restart services\n') + } + + // Check for Docker/CI configuration + const infraFiles = gitInfo.fileMatch([ + '**/Dockerfile*', + '**/.gitlab-ci.yml', + '**/.github/workflows/**', + '**/docker-compose.yml' + ]) + if (infraFiles.edited) { + console.log('🐳 Infrastructure files changed:') + infraFiles.editedFiles.forEach(file => { + console.log(` - ${file}`) + }) + console.log('āš ļø Action: Review deployment pipeline changes\n') + } + + // Check for build configuration + const buildFiles = gitInfo.fileMatch([ + '**/webpack.config.js', + '**/vite.config.js', + '**/tsconfig.json', + '**/babel.config.js', + '**/.babelrc*' + ]) + if (buildFiles.edited) { + console.log('šŸ”Ø Build configuration changed:') + buildFiles.editedFiles.forEach(file => { + console.log(` - ${file}`) + }) + console.log('āš ļø Action: Rebuild project and test\n') + } + + const hasConfigChanges = packageJsonChanges.edited || + envFiles.edited || + infraFiles.edited || + buildFiles.edited + + if (!hasConfigChanges) { + console.log('āœ… No configuration files changed') + } +} + +checkConfigChanges() diff --git a/packages/util-git-info/examples/code-review-helper.js b/packages/util-git-info/examples/code-review-helper.js new file mode 100644 index 0000000..0a188b0 --- /dev/null +++ b/packages/util-git-info/examples/code-review-helper.js @@ -0,0 +1,107 @@ +const { gitDetails } = require('../src') + +async function codeReviewHelper() { + let gitInfo + try { + gitInfo = await gitDetails({ + base: 'main' + }) + } catch (err) { + console.log('Error getting git info') + console.log(err) + return + } + + console.log('šŸ” Code Review Checklist\n') + console.log('═══════════════════════════════════════\n') + + const warnings = [] + const suggestions = [] + + // Check if source code changed but tests didn't + const sourceCode = gitInfo.fileMatch(['src/**/*.js', 'src/**/*.ts'], ['**/*.test.js', '**/*.test.ts', '**/*.spec.js', '**/*.spec.ts']) + const testFiles = gitInfo.fileMatch(['**/*.test.js', '**/*.test.ts', '**/*.spec.js', '**/*.spec.ts']) + + if (sourceCode.edited && !testFiles.edited) { + warnings.push('āš ļø Source code changed but no test files modified') + suggestions.push('Consider adding or updating tests for the changes') + } + + // Check if code changed but docs didn't + const codeFiles = gitInfo.fileMatch(['**/*.js', '**/*.ts'], ['**/*.md', '**/README.md']) + const docFiles = gitInfo.fileMatch(['**/*.md', '**/README.md']) + + if (codeFiles.edited && !docFiles.edited) { + warnings.push('šŸ“ Code changed but documentation not updated') + suggestions.push('Review if README or other docs need updates') + } + + // Check for package.json changes without lock file changes + const packageJson = gitInfo.fileMatch('**/package.json') + const lockFiles = gitInfo.fileMatch(['**/package-lock.json', '**/yarn.lock', '**/pnpm-lock.yaml']) + + if (packageJson.edited && !lockFiles.edited) { + warnings.push('šŸ“¦ package.json changed but lock file not updated') + suggestions.push('Run npm install to update package-lock.json') + } + + // Check for large number of files changed + const totalFilesChanged = gitInfo.modifiedFiles.length + gitInfo.createdFiles.length + gitInfo.deletedFiles.length + if (totalFilesChanged > 50) { + warnings.push(`šŸ“Š Large changeset: ${totalFilesChanged} files changed`) + suggestions.push('Consider breaking this into smaller pull requests') + } + + // Check for deleted files without corresponding test deletions + if (gitInfo.deletedFiles.length > 0) { + const deletedCode = gitInfo.deletedFiles.filter(f => /\.(js|ts)$/.test(f) && !f.includes('.test.') && !f.includes('.spec.')) + if (deletedCode.length > 0) { + console.log('šŸ—‘ļø Deleted files:') + deletedCode.forEach(file => console.log(` - ${file}`)) + suggestions.push('Verify associated tests are also removed or updated') + console.log() + } + } + + // Check for API/interface changes + const apiFiles = gitInfo.fileMatch(['**/api/**/*.js', '**/api/**/*.ts', '**/types.ts', '**/types.js', '**/*.d.ts']) + if (apiFiles.edited) { + warnings.push('šŸ”Œ API or type definition files changed') + suggestions.push('Ensure backward compatibility or version bump') + } + + // Print warnings + if (warnings.length > 0) { + console.log('āš ļø Warnings:\n') + warnings.forEach(warning => { + console.log(` ${warning}`) + }) + console.log() + } + + // Print suggestions + if (suggestions.length > 0) { + console.log('šŸ’” Suggestions:\n') + suggestions.forEach((suggestion, index) => { + console.log(` ${index + 1}. ${suggestion}`) + }) + console.log() + } + + // Summary + console.log('═══════════════════════════════════════') + console.log('\nšŸ“Š Change Summary:\n') + console.log(` Modified: ${gitInfo.modifiedFiles.length} files`) + console.log(` Created: ${gitInfo.createdFiles.length} files`) + console.log(` Deleted: ${gitInfo.deletedFiles.length} files`) + console.log(` Commits: ${gitInfo.commits.length}`) + + const totalLines = await gitInfo.linesOfCode() + console.log(` Lines changed: ${totalLines}`) + + if (warnings.length === 0) { + console.log('\nāœ… All checks passed!') + } +} + +codeReviewHelper() diff --git a/packages/util-git-info/examples/file-match-patterns.js b/packages/util-git-info/examples/file-match-patterns.js new file mode 100644 index 0000000..bb59f73 --- /dev/null +++ b/packages/util-git-info/examples/file-match-patterns.js @@ -0,0 +1,101 @@ +const { gitDetails } = require('../src') + +async function demonstrateFileMatchPatterns() { + let gitInfo + try { + gitInfo = await gitDetails({ + base: 'master' + }) + } catch (err) { + console.log('Error getting git info') + console.log(err) + return + } + + console.log('šŸŽÆ File Matching Pattern Examples\n') + console.log('═══════════════════════════════════════\n') + + // Example 1: Simple extension matching + console.log('1ļøāƒ£ Match all JavaScript files:\n') + const jsFiles = gitInfo.fileMatch('**/*.js') + console.log(` Pattern: '**/*.js'`) + console.log(` Matches: ${jsFiles.editedFiles.length} files`) + if (jsFiles.edited) { + console.log(' Files:', jsFiles.editedFiles.slice(0, 3).join(', ')) + if (jsFiles.editedFiles.length > 3) { + console.log(` ... and ${jsFiles.editedFiles.length - 3} more`) + } + } + console.log() + + // Example 2: Multiple patterns with array + console.log('2ļøāƒ£ Match multiple extensions:\n') + const codeFiles = gitInfo.fileMatch(['**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx']) + console.log(` Pattern: ['**/*.js', '**/*.ts', '**/*.jsx', '**/*.tsx']`) + console.log(` Matches: ${codeFiles.editedFiles.length} files`) + console.log() + + // Example 3: Using negation patterns + console.log('3ļøāƒ£ Match with exclusions:\n') + const srcFiles = gitInfo.fileMatch('src/**/*.js', ['!**/*.test.js', '!**/*.spec.js']) + console.log(` Pattern: 'src/**/*.js', excluding tests`) + console.log(` Matches: ${srcFiles.editedFiles.length} files`) + console.log() + + // Example 4: Specific directory matching + console.log('4ļøāƒ£ Match files in specific directory:\n') + const exampleFiles = gitInfo.fileMatch('examples/**/*') + console.log(` Pattern: 'examples/**/*'`) + console.log(` Matches: ${exampleFiles.editedFiles.length} files`) + console.log() + + // Example 5: Configuration files + console.log('5ļøāƒ£ Match configuration files:\n') + const configs = gitInfo.fileMatch([ + '**/.eslintrc*', + '**/.prettierrc*', + '**/tsconfig.json', + '**/package.json' + ]) + console.log(` Pattern: Various config file patterns`) + console.log(` Matches: ${configs.editedFiles.length} files`) + console.log() + + // Example 6: Using getKeyedPaths() + console.log('6ļøāƒ£ Get categorized paths:\n') + const categorized = jsFiles.getKeyedPaths() + console.log(` Returns object with categorized file paths:`) + console.log(` - modified: ${categorized.modified.length} files`) + console.log(` - created: ${categorized.created.length} files`) + console.log(` - deleted: ${categorized.deleted.length} files`) + console.log(` - edited: ${categorized.edited.length} files (modified + created)`) + console.log() + + // Example 7: Boolean checks + console.log('7ļøāƒ£ Boolean checks for workflow:\n') + const tests = gitInfo.fileMatch('**/*.test.js') + console.log(` Pattern: '**/*.test.js'`) + console.log(` .edited (modified or created): ${tests.edited}`) + console.log(` .modified: ${tests.modified}`) + console.log(` .created: ${tests.created}`) + console.log(` .deleted: ${tests.deleted}`) + console.log() + + // Example 8: Complex negation pattern + console.log('8ļøāƒ£ Complex exclusion pattern:\n') + const jsonNoPackage = gitInfo.fileMatch('**/*.json', '!**/package*.json') + console.log(` Pattern: All JSON except package.json files`) + console.log(` Matches: ${jsonNoPackage.editedFiles.length} files`) + console.log() + + console.log('═══════════════════════════════════════') + console.log('\nšŸ’” Tips:\n') + console.log(' • Use ** for recursive directory matching') + console.log(' • Use * for single path segment matching') + console.log(' • Use ! prefix for negation/exclusion') + console.log(' • Patterns can be string or array of strings') + console.log(' • .edited combines .modified and .created') + console.log(' • .editedFiles combines modifiedFiles and createdFiles') +} + +demonstrateFileMatchPatterns() diff --git a/packages/util-git-info/examples/generate-release-notes.js b/packages/util-git-info/examples/generate-release-notes.js new file mode 100644 index 0000000..8851095 --- /dev/null +++ b/packages/util-git-info/examples/generate-release-notes.js @@ -0,0 +1,106 @@ +const { gitDetails, getLastCommit, getFirstCommit } = require('../src') + +async function generateReleaseNotes() { + try { + // Get commits between last tag and current HEAD + // In production, you'd get the last tag dynamically + const gitInfo = await gitDetails({ + base: 'main', + head: 'HEAD' + }) + + console.log('# Release Notes\n') + console.log(`Generated from ${gitInfo.commits.length} commits\n`) + + // Group commits by type (based on conventional commits) + const features = [] + const fixes = [] + const docs = [] + const chores = [] + const breaking = [] + const other = [] + + gitInfo.commits.forEach(commit => { + const subject = commit.subject.toLowerCase() + const item = { + subject: commit.subject, + sha: commit.abbreviatedCommitHash, + author: commit.author.name + } + + if (subject.includes('breaking')) { + breaking.push(item) + } else if (subject.startsWith('feat') || subject.startsWith('feature')) { + features.push(item) + } else if (subject.startsWith('fix')) { + fixes.push(item) + } else if (subject.startsWith('docs')) { + docs.push(item) + } else if (subject.startsWith('chore')) { + chores.push(item) + } else { + other.push(item) + } + }) + + // Print sections + if (breaking.length > 0) { + console.log('## āš ļø BREAKING CHANGES\n') + breaking.forEach(item => { + console.log(`- ${item.subject} (${item.sha})`) + }) + console.log() + } + + if (features.length > 0) { + console.log('## ✨ Features\n') + features.forEach(item => { + console.log(`- ${item.subject} (${item.sha})`) + }) + console.log() + } + + if (fixes.length > 0) { + console.log('## šŸ› Bug Fixes\n') + fixes.forEach(item => { + console.log(`- ${item.subject} (${item.sha})`) + }) + console.log() + } + + if (docs.length > 0) { + console.log('## šŸ“ Documentation\n') + docs.forEach(item => { + console.log(`- ${item.subject} (${item.sha})`) + }) + console.log() + } + + if (other.length > 0) { + console.log('## šŸ”§ Other Changes\n') + other.forEach(item => { + console.log(`- ${item.subject} (${item.sha})`) + }) + console.log() + } + + // File statistics + console.log('## šŸ“Š Statistics\n') + console.log(`- ${gitInfo.modifiedFiles.length} files modified`) + console.log(`- ${gitInfo.createdFiles.length} files created`) + console.log(`- ${gitInfo.deletedFiles.length} files deleted`) + + const totalLines = await gitInfo.linesOfCode() + console.log(`- ${totalLines} total lines changed`) + + // Contributors + const contributors = new Set(gitInfo.commits.map(c => c.author.name)) + console.log(`\nšŸ‘„ Contributors: ${[...contributors].join(', ')}`) + + } catch (err) { + console.log('Error generating release notes') + console.log(err) + } +} + +generateReleaseNotes() diff --git a/packages/util-git-info/examples/get-lines-of-code-changed.js b/packages/util-git-info/examples/get-lines-of-code-changed.js new file mode 100644 index 0000000..995123c --- /dev/null +++ b/packages/util-git-info/examples/get-lines-of-code-changed.js @@ -0,0 +1,28 @@ +const { gitDetails } = require('../src') + +async function getLinesOfCodeChanged() { + let gitInfo + try { + gitInfo = await gitDetails({ + base: 'main', + head: 'HEAD' + }) + } catch (err) { + console.log('Error getting git info') + console.log(err) + return + } + + // Get total lines of code changed + const totalLines = await gitInfo.linesOfCode() + console.log(`šŸ“Š Total lines changed: ${totalLines}`) + + console.log(`\nšŸ“ File Summary:`) + console.log(` Modified: ${gitInfo.modifiedFiles.length} files`) + console.log(` Created: ${gitInfo.createdFiles.length} files`) + console.log(` Deleted: ${gitInfo.deletedFiles.length} files`) + + console.log(`\nšŸ’¬ Commits: ${gitInfo.commits.length}`) +} + +getLinesOfCodeChanged() diff --git a/packages/util-git-info/examples/get-specific-commit-info.js b/packages/util-git-info/examples/get-specific-commit-info.js new file mode 100644 index 0000000..e20bca2 --- /dev/null +++ b/packages/util-git-info/examples/get-specific-commit-info.js @@ -0,0 +1,47 @@ +const { getCommit, getLastCommit } = require('../src') + +async function getSpecificCommitInfo() { + try { + // Get the last commit first to demonstrate + const lastCommit = await getLastCommit() + console.log('šŸ” Getting info for commit:', lastCommit.sha) + console.log('───────────────────────────────────────') + + // Get detailed info about that commit + const commitInfo = await getCommit(lastCommit.sha) + + console.log('šŸ“ Commit Details:') + console.log(` SHA: ${commitInfo.sha}`) + console.log(` Short SHA: ${commitInfo.abbreviatedCommitHash}`) + console.log(` Subject: ${commitInfo.subject}`) + console.log(` Sanitized: ${commitInfo.sanitizedSubject}`) + + console.log('\nšŸ‘¤ Author:') + console.log(` Name: ${commitInfo.author.name}`) + console.log(` Email: ${commitInfo.author.email}`) + console.log(` Date: ${commitInfo.author.date}`) + + console.log('\nšŸ‘„ Committer:') + console.log(` Name: ${commitInfo.committer.name}`) + console.log(` Email: ${commitInfo.committer.email}`) + console.log(` Date: ${commitInfo.committer.date}`) + + if (commitInfo.body) { + console.log('\nšŸ“„ Body:') + console.log(commitInfo.body) + } + + if (commitInfo.branch) { + console.log('\n🌿 Branch:', commitInfo.branch) + } + + if (commitInfo.tags && commitInfo.tags.length) { + console.log('\nšŸ·ļø Tags:', commitInfo.tags.join(', ')) + } + } catch (err) { + console.log('Error getting commit info') + console.log(err) + } +} + +getSpecificCommitInfo() diff --git a/packages/util-git-info/examples/monorepo-package-detection.js b/packages/util-git-info/examples/monorepo-package-detection.js new file mode 100644 index 0000000..2e6ff3a --- /dev/null +++ b/packages/util-git-info/examples/monorepo-package-detection.js @@ -0,0 +1,110 @@ +const path = require('path') +const { gitDetails } = require('../src') + +async function detectChangedPackages() { + let gitInfo + try { + gitInfo = await gitDetails({ + base: 'main' + }) + } catch (err) { + console.log('Error getting git info') + console.log(err) + return + } + + console.log('šŸ“¦ Monorepo Package Change Detection\n') + console.log('═══════════════════════════════════════\n') + + // Get all changed files + const allChangedFiles = [ + ...gitInfo.modifiedFiles, + ...gitInfo.createdFiles, + ...gitInfo.deletedFiles + ] + + // Extract package names from paths + // Assumes structure like: packages/package-name/... or components/component-name/... + const changedPackages = new Set() + const packageFiles = {} + + allChangedFiles.forEach(file => { + // Match patterns like "packages/*/..." or "components/*/..." + const match = file.match(/^(packages|components)\/([^\/]+)/) + if (match) { + const packageName = match[2] + changedPackages.add(packageName) + + if (!packageFiles[packageName]) { + packageFiles[packageName] = { + modified: [], + created: [], + deleted: [] + } + } + + if (gitInfo.modifiedFiles.includes(file)) { + packageFiles[packageName].modified.push(file) + } else if (gitInfo.createdFiles.includes(file)) { + packageFiles[packageName].created.push(file) + } else if (gitInfo.deletedFiles.includes(file)) { + packageFiles[packageName].deleted.push(file) + } + } + }) + + if (changedPackages.size === 0) { + console.log('āœ… No packages changed') + return + } + + console.log(`šŸŽÆ ${changedPackages.size} package(s) changed:\n`) + + // Sort and display each package + Array.from(changedPackages).sort().forEach(packageName => { + const files = packageFiles[packageName] + const totalFiles = files.modified.length + files.created.length + files.deleted.length + + console.log(`šŸ“¦ ${packageName}`) + console.log(` Files: ${totalFiles} changed`) + console.log(` • ${files.modified.length} modified`) + console.log(` • ${files.created.length} created`) + console.log(` • ${files.deleted.length} deleted`) + + // Check for important file changes + const hasPackageJson = [...files.modified, ...files.created].some(f => f.includes('package.json')) + const hasTests = [...files.modified, ...files.created].some(f => f.includes('.test.') || f.includes('.spec.')) + const hasSrcChanges = [...files.modified, ...files.created].some(f => f.includes('/src/')) + + if (hasPackageJson) console.log(' āš ļø Dependencies changed') + if (hasSrcChanges) console.log(' šŸ“ Source code changed') + if (hasTests) console.log(' āœ… Tests updated') + if (hasSrcChanges && !hasTests) console.log(' āš ļø Consider updating tests') + + console.log() + }) + + console.log('═══════════════════════════════════════') + console.log('\nšŸ”§ Recommended Actions:\n') + + changedPackages.forEach(packageName => { + const files = packageFiles[packageName] + const hasPackageJson = [...files.modified, ...files.created].some(f => f.includes('package.json')) + const hasSrcChanges = [...files.modified, ...files.created].some(f => f.includes('/src/')) + + if (hasPackageJson) { + console.log(` • Reinstall dependencies in ${packageName}`) + } + if (hasSrcChanges) { + console.log(` • Test ${packageName}`) + console.log(` • Build ${packageName}`) + console.log(` • Consider version bump for ${packageName}`) + } + }) + + // Export package list for CI/CD + console.log('\nšŸ“‹ Package list (for CI/CD):') + console.log(Array.from(changedPackages).join(',')) +} + +detectChangedPackages() diff --git a/packages/util-git-info/package-lock.json b/packages/util-git-info/package-lock.json index 37d7cb0..c27138f 100644 --- a/packages/util-git-info/package-lock.json +++ b/packages/util-git-info/package-lock.json @@ -1,2454 +1,281 @@ { "name": "git-er-done", "version": "0.1.9", - "lockfileVersion": 1, + "lockfileVersion": 3, "requires": true, - "dependencies": { - "@babel/code-frame": { - "version": "7.12.13", - "resolved": "https://registry.npmjs.org/@babel/code-frame/-/code-frame-7.12.13.tgz", - "integrity": "sha512-HV1Cm0Q3ZrpCR93tkWOYiuYIgLxZXZFVG2VgK+MBWjUqZTundupbfx2aXarXuw5Ko5aMcjtJgbSs4vUGBS5v6g==", - "dev": true, - "requires": { - "@babel/highlight": "^7.12.13" - } - }, - "@babel/helper-validator-identifier": { - "version": "7.12.11", - "resolved": "https://registry.npmjs.org/@babel/helper-validator-identifier/-/helper-validator-identifier-7.12.11.tgz", - "integrity": "sha512-np/lG3uARFybkoHokJUmf1QfEvRVCPbmQeUQpKow5cQ3xWrV9i3rUHodKDJPQfTVX61qKi+UdYk8kik84n7XOw==", - "dev": true - }, - "@babel/highlight": { - "version": "7.13.10", - "resolved": "https://registry.npmjs.org/@babel/highlight/-/highlight-7.13.10.tgz", - "integrity": "sha512-5aPpe5XQPzflQrFwL1/QoeHkP2MsA4JCntcXHRhEsdsfPVkvPi2w7Qix4iV7t5S/oC9OodGrggd8aco1g3SZFg==", - "dev": true, - "requires": { - "@babel/helper-validator-identifier": "^7.12.11", - "chalk": "^2.0.0", - "js-tokens": "^4.0.0" - }, - "dependencies": { - "ansi-styles": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-3.2.1.tgz", - "integrity": "sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA==", - "dev": true, - "requires": { - "color-convert": "^1.9.0" - } - }, - "chalk": { - "version": "2.4.2", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-2.4.2.tgz", - "integrity": "sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ==", - "dev": true, - "requires": { - "ansi-styles": "^3.2.1", - "escape-string-regexp": "^1.0.5", - "supports-color": "^5.3.0" - } - }, - "color-convert": { - "version": "1.9.3", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-1.9.3.tgz", - "integrity": "sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg==", - "dev": true, - "requires": { - "color-name": "1.1.3" - } - }, - "color-name": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz", - "integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU=", - "dev": true - }, - "has-flag": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-3.0.0.tgz", - "integrity": "sha1-tdRU3CGZriJWmfNGfloH87lVuv0=", - "dev": true - }, - "supports-color": { - "version": "5.5.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-5.5.0.tgz", - "integrity": "sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow==", - "dev": true, - "requires": { - "has-flag": "^3.0.0" - } - } - } - }, - "@concordance/react": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@concordance/react/-/react-2.0.0.tgz", - "integrity": "sha512-huLSkUuM2/P+U0uy2WwlKuixMsTODD8p4JVQBI4VKeopkiN0C7M3N9XYVawb4M+4spN5RrO/eLhk7KoQX6nsfA==", - "dev": true, - "requires": { - "arrify": "^1.0.1" - }, - "dependencies": { - "arrify": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-1.0.1.tgz", - "integrity": "sha1-iYUI2iIm84DfkEcoRWhJwVAaSw0=", - "dev": true - } - } - }, - "@nodelib/fs.scandir": { - "version": "2.1.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.4.tgz", - "integrity": "sha512-33g3pMJk3bg5nXbL/+CY6I2eJDzZAni49PfJnL5fghPTggPvBd/pFNSgJsdAgWptuFu7qq/ERvOYFlhvsLTCKA==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "2.0.4", - "run-parallel": "^1.1.9" - } - }, - "@nodelib/fs.stat": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/@nodelib/fs.stat/-/fs.stat-2.0.4.tgz", - "integrity": "sha512-IYlHJA0clt2+Vg7bccq+TzRdJvv19c2INqBSsoOLp1je7xjtr7J26+WXR72MCdvU9q1qTzIWDfhMf+DRvQJK4Q==", - "dev": true - }, - "@nodelib/fs.walk": { - "version": "1.2.6", - "resolved": "https://registry.npmjs.org/@nodelib/fs.walk/-/fs.walk-1.2.6.tgz", - "integrity": "sha512-8Broas6vTtW4GIXTAHDoE32hnN2M5ykgCpWGbuXHQ15vEMqr23pB76e/GZcYsZCHALv50ktd24qhEyKr6wBtow==", - "dev": true, - "requires": { - "@nodelib/fs.scandir": "2.1.4", - "fastq": "^1.6.0" - } - }, - "@sindresorhus/is": { - "version": "0.14.0", - "resolved": "https://registry.npmjs.org/@sindresorhus/is/-/is-0.14.0.tgz", - "integrity": "sha512-9NET910DNaIPngYnLLPeg+Ogzqsi9uM4mSboU5y6p8S5DzMTVEsJZrawi+BoDNUVBa2DhJqQYUFvMDfgU062LQ==", - "dev": true - }, - "@szmarczak/http-timer": { - "version": "1.1.2", - "resolved": "https://registry.npmjs.org/@szmarczak/http-timer/-/http-timer-1.1.2.tgz", - "integrity": "sha512-XIB2XbzHTN6ieIjfIMV9hlVcfPU26s2vafYWQcZHWXHOxiaRZYEDKEwdl129Zyg50+foYV2jCgtrqSA6qNuNSA==", - "dev": true, - "requires": { - "defer-to-connect": "^1.0.1" - } - }, - "@types/normalize-package-data": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.0.tgz", - "integrity": "sha512-f5j5b/Gf71L+dbqxIpQ4Z2WlmI/mPJ0fOkGGmFgtb6sAu97EPczzbS3/tJKxmcYDj55OX6ssqwDAWOHIYDRDGA==", - "dev": true - }, - "acorn": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/acorn/-/acorn-8.1.0.tgz", - "integrity": "sha512-LWCF/Wn0nfHOmJ9rzQApGnxnvgfROzGilS8936rqN/lfcYkY9MYZzdMqN+2NJ4SlTc+m5HiSa+kNfDtI64dwUA==", - "dev": true - }, - "acorn-walk": { - "version": "8.0.2", - "resolved": "https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.0.2.tgz", - "integrity": "sha512-+bpA9MJsHdZ4bgfDcpk0ozQyhhVct7rzOmO0s1IIr0AGGgKBljss8n2zp11rRP2wid5VGeh04CgeKzgat5/25A==", - "dev": true - }, - "aggregate-error": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", - "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", - "dev": true, - "requires": { - "clean-stack": "^2.0.0", - "indent-string": "^4.0.0" - } - }, - "ansi-align": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/ansi-align/-/ansi-align-3.0.0.tgz", - "integrity": "sha512-ZpClVKqXN3RGBmKibdfWzqCY4lnjEuoNzU5T0oEFpfd/z5qJHVarukridD4juLO2FXMiwUQxr9WqQtaYa8XRYw==", - "dev": true, - "requires": { - "string-width": "^3.0.0" - }, - "dependencies": { - "ansi-regex": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-4.1.0.tgz", - "integrity": "sha512-1apePfXM1UOSqw0o9IiFAovVz9M5S1Dg+4TrDwfMewQ6p/rmMueb7tWZjQ1rx4Loy1ArBggoqGpfqqdI4rondg==", - "dev": true - }, - "emoji-regex": { - "version": "7.0.3", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-7.0.3.tgz", - "integrity": "sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA==", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz", - "integrity": "sha1-o7MKXE8ZkYMWeqq5O+764937ZU8=", - "dev": true - }, - "string-width": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-3.1.0.tgz", - "integrity": "sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w==", - "dev": true, - "requires": { - "emoji-regex": "^7.0.1", - "is-fullwidth-code-point": "^2.0.0", - "strip-ansi": "^5.1.0" - } - }, - "strip-ansi": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-5.2.0.tgz", - "integrity": "sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA==", - "dev": true, - "requires": { - "ansi-regex": "^4.1.0" - } - } - } - }, - "ansi-regex": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.0.tgz", - "integrity": "sha512-bY6fj56OUQ0hU1KjFNDQuJFezqKdrAyFdIevADiqrWHwSlbmBNMHp5ak2f40Pm8JTFyM2mqxkG6ngkHO11f/lg==", - "dev": true - }, - "ansi-styles": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.1.0.tgz", - "integrity": "sha512-osxifZo3ar56+e8tdYreU6p8FZGciBHo5O0JoDAxMUqZuyNUb+yHEwYtJZ+Z32R459jEgtwVf1u8D7qYwU0l6w==", - "dev": true - }, - "anymatch": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/anymatch/-/anymatch-3.1.1.tgz", - "integrity": "sha512-mM8522psRCqzV+6LhomX5wgp25YVibjh8Wj23I5RPkPppSVSjyKD2A2mBJmWGa+KN7f2D6LNh9jkBCeyLktzjg==", - "dev": true, - "requires": { - "normalize-path": "^3.0.0", - "picomatch": "^2.0.4" - } - }, - "argparse": { - "version": "1.0.10", - "resolved": "https://registry.npmjs.org/argparse/-/argparse-1.0.10.tgz", - "integrity": "sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg==", - "dev": true, - "requires": { - "sprintf-js": "~1.0.2" - } - }, - "array-find-index": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/array-find-index/-/array-find-index-1.0.2.tgz", - "integrity": "sha1-3wEKoSh+Fku9pvlyOwqWoexBh6E=", - "dev": true - }, - "array-union": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz", - "integrity": "sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==", - "dev": true - }, - "arrgv": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/arrgv/-/arrgv-1.0.2.tgz", - "integrity": "sha512-a4eg4yhp7mmruZDQFqVMlxNRFGi/i1r87pt8SDHy0/I8PqSXoUTlWZRdAZo0VXgvEARcujbtTk8kiZRi1uDGRw==", - "dev": true - }, - "arrify": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/arrify/-/arrify-2.0.1.tgz", - "integrity": "sha512-3duEwti880xqi4eAMN8AyR4a0ByT90zoYdLlevfrvU43vb0YZwZVfxOgxWrLXXXpyugL0hNZc9G6BiB5B3nUug==", - "dev": true - }, - "astral-regex": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz", - "integrity": "sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ==", - "dev": true - }, - "ava": { - "version": "3.15.0", - "resolved": "https://registry.npmjs.org/ava/-/ava-3.15.0.tgz", - "integrity": "sha512-HGAnk1SHPk4Sx6plFAUkzV/XC1j9+iQhOzt4vBly18/yo0AV8Oytx7mtJd/CR8igCJ5p160N/Oo/cNJi2uSeWA==", - "dev": true, - "requires": { - "@concordance/react": "^2.0.0", - "acorn": "^8.0.4", - "acorn-walk": "^8.0.0", - "ansi-styles": "^5.0.0", - "arrgv": "^1.0.2", - "arrify": "^2.0.1", - "callsites": "^3.1.0", - "chalk": "^4.1.0", - "chokidar": "^3.4.3", - "chunkd": "^2.0.1", - "ci-info": "^2.0.0", - "ci-parallel-vars": "^1.0.1", - "clean-yaml-object": "^0.1.0", - "cli-cursor": "^3.1.0", - "cli-truncate": "^2.1.0", - "code-excerpt": "^3.0.0", - "common-path-prefix": "^3.0.0", - "concordance": "^5.0.1", - "convert-source-map": "^1.7.0", - "currently-unhandled": "^0.4.1", - "debug": "^4.3.1", - "del": "^6.0.0", - "emittery": "^0.8.0", - "equal-length": "^1.0.0", - "figures": "^3.2.0", - "globby": "^11.0.1", - "ignore-by-default": "^2.0.0", - "import-local": "^3.0.2", - "indent-string": "^4.0.0", - "is-error": "^2.2.2", - "is-plain-object": "^5.0.0", - "is-promise": "^4.0.0", - "lodash": "^4.17.20", - "matcher": "^3.0.0", - "md5-hex": "^3.0.1", - "mem": "^8.0.0", - "ms": "^2.1.3", - "ora": "^5.2.0", - "p-event": "^4.2.0", - "p-map": "^4.0.0", - "picomatch": "^2.2.2", - "pkg-conf": "^3.1.0", - "plur": "^4.0.0", - "pretty-ms": "^7.0.1", - "read-pkg": "^5.2.0", - "resolve-cwd": "^3.0.0", - "slash": "^3.0.0", - "source-map-support": "^0.5.19", - "stack-utils": "^2.0.3", - "strip-ansi": "^6.0.0", - "supertap": "^2.0.0", - "temp-dir": "^2.0.0", - "trim-off-newlines": "^1.0.1", - "update-notifier": "^5.0.1", - "write-file-atomic": "^3.0.3", - "yargs": "^16.2.0" - }, - "dependencies": { - "ms": { - "version": "2.1.3", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz", - "integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==", - "dev": true - } - } - }, - "balanced-match": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.0.tgz", - "integrity": "sha1-ibTRmasr7kneFk6gK4nORi1xt2c=", - "dev": true - }, - "base64-js": { - "version": "1.5.1", - "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", - "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", - "dev": true - }, - "binary-extensions": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz", - "integrity": "sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==", - "dev": true - }, - "bl": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", - "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", - "dev": true, - "requires": { - "buffer": "^5.5.0", - "inherits": "^2.0.4", - "readable-stream": "^3.4.0" - } - }, - "blueimp-md5": { - "version": "2.18.0", - "resolved": "https://registry.npmjs.org/blueimp-md5/-/blueimp-md5-2.18.0.tgz", - "integrity": "sha512-vE52okJvzsVWhcgUHOv+69OG3Mdg151xyn41aVQN/5W5S+S43qZhxECtYLAEHMSFWX6Mv5IZrzj3T5+JqXfj5Q==", - "dev": true - }, - "boxen": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/boxen/-/boxen-5.0.0.tgz", - "integrity": "sha512-5bvsqw+hhgUi3oYGK0Vf4WpIkyemp60WBInn7+WNfoISzAqk/HX4L7WNROq38E6UR/y3YADpv6pEm4BfkeEAdA==", - "dev": true, - "requires": { - "ansi-align": "^3.0.0", - "camelcase": "^6.2.0", - "chalk": "^4.1.0", - "cli-boxes": "^2.2.1", - "string-width": "^4.2.0", - "type-fest": "^0.20.2", - "widest-line": "^3.1.0", - "wrap-ansi": "^7.0.0" - }, - "dependencies": { - "type-fest": { - "version": "0.20.2", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.20.2.tgz", - "integrity": "sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ==", - "dev": true - } - } - }, - "brace-expansion": { - "version": "1.1.11", - "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", - "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", - "dev": true, - "requires": { - "balanced-match": "^1.0.0", - "concat-map": "0.0.1" - } - }, - "braces": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", - "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", - "requires": { - "fill-range": "^7.0.1" - } - }, - "buffer": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", - "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", - "dev": true, - "requires": { - "base64-js": "^1.3.1", - "ieee754": "^1.1.13" - } - }, - "buffer-from": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.1.tgz", - "integrity": "sha512-MQcXEUbCKtEo7bhqEs6560Hyd4XaovZlO/k9V3hjVUF/zwW7KBVdSK4gIt/bzwS9MbR5qob+F5jusZsb0YQK2A==", - "dev": true - }, - "cacheable-request": { - "version": "6.1.0", - "resolved": "https://registry.npmjs.org/cacheable-request/-/cacheable-request-6.1.0.tgz", - "integrity": "sha512-Oj3cAGPCqOZX7Rz64Uny2GYAZNliQSqfbePrgAQ1wKAihYmCUnraBtJtKcGR4xz7wF+LoJC+ssFZvv5BgF9Igg==", - "dev": true, - "requires": { - "clone-response": "^1.0.2", - "get-stream": "^5.1.0", - "http-cache-semantics": "^4.0.0", - "keyv": "^3.0.0", - "lowercase-keys": "^2.0.0", - "normalize-url": "^4.1.0", - "responselike": "^1.0.2" - }, - "dependencies": { - "get-stream": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-5.2.0.tgz", - "integrity": "sha512-nBF+F1rAZVCu/p7rjzgA+Yb4lfYXrpl7a6VmJrU8wF9I1CKvP/QwPNZHnOlwbTkY6dvtFIzFMSyQXbLoTQPRpA==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "lowercase-keys": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-2.0.0.tgz", - "integrity": "sha512-tqNXrS78oMOE73NMxK4EMLQsQowWf8jKooH9g7xPavRT706R6bkQJ6DY2Te7QukaZsulxa30wQ7bk0pm4XiHmA==", - "dev": true - } - } - }, - "callsites": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/callsites/-/callsites-3.1.0.tgz", - "integrity": "sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ==", - "dev": true - }, - "camelcase": { - "version": "6.2.0", - "resolved": "https://registry.npmjs.org/camelcase/-/camelcase-6.2.0.tgz", - "integrity": "sha512-c7wVvbw3f37nuobQNtgsgG9POC9qMbNuMQmTCqZv23b6MIz0fcYpBiOlv9gEN/hdLdnZTDQhg6e9Dq5M1vKvfg==", - "dev": true - }, - "chalk": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.0.tgz", - "integrity": "sha512-qwx12AxXe2Q5xQ43Ac//I6v5aXTipYrSESdOgzrN+9XjgEpyjpKuvSGaN4qE93f7TQTlerQQ8S+EQ0EyDoVL1A==", - "dev": true, - "requires": { - "ansi-styles": "^4.1.0", - "supports-color": "^7.1.0" - }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - } - } - }, - "chokidar": { - "version": "3.5.1", - "resolved": "https://registry.npmjs.org/chokidar/-/chokidar-3.5.1.tgz", - "integrity": "sha512-9+s+Od+W0VJJzawDma/gvBNQqkTiqYTWLuZoyAsivsI4AaWTCzHG06/TMjsf1cYe9Cb97UCEhjz7HvnPk2p/tw==", - "dev": true, - "requires": { - "anymatch": "~3.1.1", - "braces": "~3.0.2", - "fsevents": "~2.3.1", - "glob-parent": "~5.1.0", - "is-binary-path": "~2.1.0", - "is-glob": "~4.0.1", - "normalize-path": "~3.0.0", - "readdirp": "~3.5.0" - } - }, - "chunkd": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/chunkd/-/chunkd-2.0.1.tgz", - "integrity": "sha512-7d58XsFmOq0j6el67Ug9mHf9ELUXsQXYJBkyxhH/k+6Ke0qXRnv0kbemx+Twc6fRJ07C49lcbdgm9FL1Ei/6SQ==", - "dev": true - }, - "ci-info": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ci-info/-/ci-info-2.0.0.tgz", - "integrity": "sha512-5tK7EtrZ0N+OLFMthtqOj4fI2Jeb88C4CAZPu25LDVUgXJ0A3Js4PMGqrn0JU1W0Mh1/Z8wZzYPxqUrXeBboCQ==", - "dev": true - }, - "ci-parallel-vars": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/ci-parallel-vars/-/ci-parallel-vars-1.0.1.tgz", - "integrity": "sha512-uvzpYrpmidaoxvIQHM+rKSrigjOe9feHYbw4uOI2gdfe1C3xIlxO+kVXq83WQWNniTf8bAxVpy+cQeFQsMERKg==", - "dev": true - }, - "clean-stack": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", - "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", - "dev": true - }, - "clean-yaml-object": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/clean-yaml-object/-/clean-yaml-object-0.1.0.tgz", - "integrity": "sha1-Y/sRDcLOGoTcIfbZM0h20BCui2g=", - "dev": true - }, - "cli-boxes": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/cli-boxes/-/cli-boxes-2.2.1.tgz", - "integrity": "sha512-y4coMcylgSCdVinjiDBuR8PCC2bLjyGTwEmPb9NHR/QaNU6EUOXcTY/s6VjGMD6ENSEaeQYHCY0GNGS5jfMwPw==", - "dev": true - }, - "cli-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/cli-cursor/-/cli-cursor-3.1.0.tgz", - "integrity": "sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw==", - "dev": true, - "requires": { - "restore-cursor": "^3.1.0" - } - }, - "cli-spinners": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.6.0.tgz", - "integrity": "sha512-t+4/y50K/+4xcCRosKkA7W4gTr1MySvLV0q+PxmG7FJ5g+66ChKurYjxBCjHggHH3HA5Hh9cy+lcUGWDqVH+4Q==", - "dev": true - }, - "cli-truncate": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz", - "integrity": "sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==", - "dev": true, - "requires": { - "slice-ansi": "^3.0.0", - "string-width": "^4.2.0" - } - }, - "cliui": { - "version": "7.0.4", - "resolved": "https://registry.npmjs.org/cliui/-/cliui-7.0.4.tgz", - "integrity": "sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ==", - "dev": true, - "requires": { - "string-width": "^4.2.0", - "strip-ansi": "^6.0.0", - "wrap-ansi": "^7.0.0" - } - }, - "clone": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/clone/-/clone-1.0.4.tgz", - "integrity": "sha1-2jCcwmPfFZlMaIypAheco8fNfH4=", - "dev": true - }, - "clone-response": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/clone-response/-/clone-response-1.0.2.tgz", - "integrity": "sha1-0dyXOSAxTfZ/vrlCI7TuNQI56Ws=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - } - }, - "code-excerpt": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/code-excerpt/-/code-excerpt-3.0.0.tgz", - "integrity": "sha512-VHNTVhd7KsLGOqfX3SyeO8RyYPMp1GJOg194VITk04WMYCv4plV68YWe6TJZxd9MhobjtpMRnVky01gqZsalaw==", - "dev": true, - "requires": { - "convert-to-spaces": "^1.0.1" - } - }, - "color-convert": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", - "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", - "dev": true, - "requires": { - "color-name": "~1.1.4" - } - }, - "color-name": { - "version": "1.1.4", - "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", - "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", - "dev": true - }, - "common-path-prefix": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/common-path-prefix/-/common-path-prefix-3.0.0.tgz", - "integrity": "sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w==", - "dev": true - }, - "concat-map": { - "version": "0.0.1", - "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", - "integrity": "sha1-2Klr13/Wjfd5OnMDajug1UBdR3s=", - "dev": true - }, - "concordance": { - "version": "5.0.4", - "resolved": "https://registry.npmjs.org/concordance/-/concordance-5.0.4.tgz", - "integrity": "sha512-OAcsnTEYu1ARJqWVGwf4zh4JDfHZEaSNlNccFmt8YjB2l/n19/PF2viLINHc57vO4FKIAFl2FWASIGZZWZ2Kxw==", - "dev": true, - "requires": { - "date-time": "^3.1.0", - "esutils": "^2.0.3", - "fast-diff": "^1.2.0", - "js-string-escape": "^1.0.1", - "lodash": "^4.17.15", - "md5-hex": "^3.0.1", - "semver": "^7.3.2", - "well-known-symbols": "^2.0.0" - } - }, - "configstore": { - "version": "5.0.1", - "resolved": "https://registry.npmjs.org/configstore/-/configstore-5.0.1.tgz", - "integrity": "sha512-aMKprgk5YhBNyH25hj8wGt2+D52Sw1DRRIzqBwLp2Ya9mFmY8KPvvtvmna8SxVR9JMZ4kzMD68N22vlaRpkeFA==", - "dev": true, - "requires": { - "dot-prop": "^5.2.0", - "graceful-fs": "^4.1.2", - "make-dir": "^3.0.0", - "unique-string": "^2.0.0", - "write-file-atomic": "^3.0.0", - "xdg-basedir": "^4.0.0" - } - }, - "convert-source-map": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/convert-source-map/-/convert-source-map-1.7.0.tgz", - "integrity": "sha512-4FJkXzKXEDB1snCFZlLP4gpC3JILicCpGbzG9f9G7tGqGCzETQ2hWPrcinA9oU4wtf2biUaEH5065UnMeR33oA==", - "dev": true, - "requires": { - "safe-buffer": "~5.1.1" - } - }, - "convert-to-spaces": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/convert-to-spaces/-/convert-to-spaces-1.0.2.tgz", - "integrity": "sha1-fj5Iu+bZl7FBfdyihoIEtNPYVxU=", - "dev": true - }, - "crypto-random-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/crypto-random-string/-/crypto-random-string-2.0.0.tgz", - "integrity": "sha512-v1plID3y9r/lPhviJ1wrXpLeyUIGAZ2SHNYTEapm7/8A9nLPoyvVp3RK/EPFqn5kEznyWgYZNsRtYYIWbuG8KA==", - "dev": true - }, - "currently-unhandled": { - "version": "0.4.1", - "resolved": "https://registry.npmjs.org/currently-unhandled/-/currently-unhandled-0.4.1.tgz", - "integrity": "sha1-mI3zP+qxke95mmE2nddsF635V+o=", - "dev": true, - "requires": { - "array-find-index": "^1.0.1" - } - }, - "date-time": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/date-time/-/date-time-3.1.0.tgz", - "integrity": "sha512-uqCUKXE5q1PNBXjPqvwhwJf9SwMoAHBgWJ6DcrnS5o+W2JOiIILl0JEdVD8SGujrNS02GGxgwAg2PN2zONgtjg==", - "dev": true, - "requires": { - "time-zone": "^1.0.0" - } - }, - "debug": { - "version": "4.3.1", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", - "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", - "requires": { - "ms": "2.1.2" - } - }, - "decompress-response": { - "version": "3.3.0", - "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-3.3.0.tgz", - "integrity": "sha1-gKTdMjdIOEv6JICDYirt7Jgq3/M=", - "dev": true, - "requires": { - "mimic-response": "^1.0.0" - } - }, - "deep-extend": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", - "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", - "dev": true - }, - "defaults": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/defaults/-/defaults-1.0.3.tgz", - "integrity": "sha1-xlYFHpgX2f8I7YgUd/P+QBnz730=", - "dev": true, - "requires": { - "clone": "^1.0.2" - } - }, - "defer-to-connect": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/defer-to-connect/-/defer-to-connect-1.1.3.tgz", - "integrity": "sha512-0ISdNousHvZT2EiFlZeZAHBUvSxmKswVCEf8hW7KWgG4a8MVEu/3Vb6uWYozkjylyCxe0JBIiRB1jV45S70WVQ==", - "dev": true - }, - "del": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/del/-/del-6.0.0.tgz", - "integrity": "sha512-1shh9DQ23L16oXSZKB2JxpL7iMy2E0S9d517ptA1P8iw0alkPtQcrKH7ru31rYtKwF499HkTu+DRzq3TCKDFRQ==", - "dev": true, - "requires": { - "globby": "^11.0.1", - "graceful-fs": "^4.2.4", - "is-glob": "^4.0.1", - "is-path-cwd": "^2.2.0", - "is-path-inside": "^3.0.2", - "p-map": "^4.0.0", - "rimraf": "^3.0.2", - "slash": "^3.0.0" - } - }, - "dir-glob": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/dir-glob/-/dir-glob-3.0.1.tgz", - "integrity": "sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA==", - "dev": true, - "requires": { - "path-type": "^4.0.0" - } - }, - "dot-prop": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/dot-prop/-/dot-prop-5.3.0.tgz", - "integrity": "sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q==", - "dev": true, - "requires": { - "is-obj": "^2.0.0" - } - }, - "duplexer3": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/duplexer3/-/duplexer3-0.1.4.tgz", - "integrity": "sha1-7gHdHKwO08vH/b6jfcCo8c4ALOI=", - "dev": true - }, - "emittery": { - "version": "0.8.1", - "resolved": "https://registry.npmjs.org/emittery/-/emittery-0.8.1.tgz", - "integrity": "sha512-uDfvUjVrfGJJhymx/kz6prltenw1u7WrCg1oa94zYY8xxVpLLUu045LAT0dhDZdXG58/EpPL/5kA180fQ/qudg==", - "dev": true - }, - "emoji-regex": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", - "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", - "dev": true - }, - "end-of-stream": { - "version": "1.4.4", - "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", - "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", - "dev": true, - "requires": { - "once": "^1.4.0" - } - }, - "equal-length": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/equal-length/-/equal-length-1.0.1.tgz", - "integrity": "sha1-IcoRLUirJLTh5//A5TOdMf38J0w=", - "dev": true - }, - "error-ex": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/error-ex/-/error-ex-1.3.2.tgz", - "integrity": "sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g==", - "dev": true, - "requires": { - "is-arrayish": "^0.2.1" - } - }, - "escalade": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz", - "integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==", - "dev": true - }, - "escape-goat": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/escape-goat/-/escape-goat-2.1.1.tgz", - "integrity": "sha512-8/uIhbG12Csjy2JEW7D9pHbreaVaS/OpN3ycnyvElTdwM5n6GY6W6e2IPemfvGZeUMqZ9A/3GqIZMgKnBhAw/Q==", - "dev": true - }, - "escape-string-regexp": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz", - "integrity": "sha1-G2HAViGQqN/2rjuyzwIAyhMLhtQ=", - "dev": true - }, - "esprima": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/esprima/-/esprima-4.0.1.tgz", - "integrity": "sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A==", - "dev": true - }, - "esutils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.3.tgz", - "integrity": "sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g==", - "dev": true - }, - "fast-diff": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/fast-diff/-/fast-diff-1.2.0.tgz", - "integrity": "sha512-xJuoT5+L99XlZ8twedaRf6Ax2TgQVxvgZOYoPKqZufmJib0tL2tegPBOZb1pVNgIhlqDlA0eO0c3wBvQcmzx4w==", - "dev": true - }, - "fast-glob": { - "version": "3.2.5", - "resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.5.tgz", - "integrity": "sha512-2DtFcgT68wiTTiwZ2hNdJfcHNke9XOfnwmBRWXhmeKM8rF0TGwmC/Qto3S7RoZKp5cilZbxzO5iTNTQsJ+EeDg==", - "dev": true, - "requires": { - "@nodelib/fs.stat": "^2.0.2", - "@nodelib/fs.walk": "^1.2.3", - "glob-parent": "^5.1.0", - "merge2": "^1.3.0", - "micromatch": "^4.0.2", - "picomatch": "^2.2.1" - } - }, - "fastq": { - "version": "1.11.0", - "resolved": "https://registry.npmjs.org/fastq/-/fastq-1.11.0.tgz", - "integrity": "sha512-7Eczs8gIPDrVzT+EksYBcupqMyxSHXXrHOLRRxU2/DicV8789MRBRR8+Hc2uWzUupOs4YS4JzBmBxjjCVBxD/g==", - "dev": true, - "requires": { - "reusify": "^1.0.4" - } - }, - "figures": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/figures/-/figures-3.2.0.tgz", - "integrity": "sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg==", - "dev": true, - "requires": { - "escape-string-regexp": "^1.0.5" - } - }, - "fill-range": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", - "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", - "requires": { - "to-regex-range": "^5.0.1" - } - }, - "find-up": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-4.1.0.tgz", - "integrity": "sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw==", - "dev": true, - "requires": { - "locate-path": "^5.0.0", - "path-exists": "^4.0.0" - } - }, - "fs.realpath": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", - "integrity": "sha1-FQStJSMVjKpA20onh8sBQRmU6k8=", - "dev": true - }, - "fsevents": { - "version": "2.3.2", - "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz", - "integrity": "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==", - "dev": true, - "optional": true - }, - "function-bind": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz", - "integrity": "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==", - "dev": true - }, - "get-caller-file": { - "version": "2.0.5", - "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", - "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", - "dev": true - }, - "get-stream": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/get-stream/-/get-stream-4.1.0.tgz", - "integrity": "sha512-GMat4EJ5161kIy2HevLlr4luNjBgvmj413KaQA7jt4V8B4RDsfpHk7WQ9GVqfYyyx8OS/L66Kox+rJRNklLK7w==", - "dev": true, - "requires": { - "pump": "^3.0.0" - } - }, - "glob": { - "version": "7.1.6", - "resolved": "https://registry.npmjs.org/glob/-/glob-7.1.6.tgz", - "integrity": "sha512-LwaxwyZ72Lk7vZINtNNrywX0ZuLyStrdDtabefZKAY5ZGJhVtgdznluResxNmPitE0SAO+O26sWTHeKSI2wMBA==", - "dev": true, - "requires": { - "fs.realpath": "^1.0.0", - "inflight": "^1.0.4", - "inherits": "2", - "minimatch": "^3.0.4", - "once": "^1.3.0", - "path-is-absolute": "^1.0.0" - } - }, - "glob-parent": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz", - "integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==", - "dev": true, - "requires": { - "is-glob": "^4.0.1" - } - }, - "global-dirs": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/global-dirs/-/global-dirs-3.0.0.tgz", - "integrity": "sha512-v8ho2DS5RiCjftj1nD9NmnfaOzTdud7RRnVd9kFNOjqZbISlx5DQ+OrTkywgd0dIt7oFCvKetZSHoHcP3sDdiA==", - "dev": true, - "requires": { - "ini": "2.0.0" - } - }, - "globby": { - "version": "11.0.3", - "resolved": "https://registry.npmjs.org/globby/-/globby-11.0.3.tgz", - "integrity": "sha512-ffdmosjA807y7+lA1NM0jELARVmYul/715xiILEjo3hBLPTcirgQNnXECn5g3mtR8TOLCVbkfua1Hpen25/Xcg==", - "dev": true, - "requires": { - "array-union": "^2.1.0", - "dir-glob": "^3.0.1", - "fast-glob": "^3.1.1", - "ignore": "^5.1.4", - "merge2": "^1.3.0", - "slash": "^3.0.0" - } - }, - "got": { - "version": "9.6.0", - "resolved": "https://registry.npmjs.org/got/-/got-9.6.0.tgz", - "integrity": "sha512-R7eWptXuGYxwijs0eV+v3o6+XH1IqVK8dJOEecQfTmkncw9AV4dcw/Dhxi8MdlqPthxxpZyizMzyg8RTmEsG+Q==", - "dev": true, - "requires": { - "@sindresorhus/is": "^0.14.0", - "@szmarczak/http-timer": "^1.1.2", - "cacheable-request": "^6.0.0", - "decompress-response": "^3.3.0", - "duplexer3": "^0.1.4", - "get-stream": "^4.1.0", - "lowercase-keys": "^1.0.1", - "mimic-response": "^1.0.1", - "p-cancelable": "^1.0.0", - "to-readable-stream": "^1.0.0", - "url-parse-lax": "^3.0.0" - } - }, - "graceful-fs": { - "version": "4.2.6", - "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.6.tgz", - "integrity": "sha512-nTnJ528pbqxYanhpDYsi4Rd8MAeaBA67+RZ10CM1m3bTAVFEDcd5AuA4a6W5YkGZ1iNXHzZz8T6TBKLeBuNriQ==", - "dev": true - }, - "has": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz", - "integrity": "sha512-f2dvO0VU6Oej7RkWJGrehjbzMAjFp5/VKPp5tTpWIV4JHHZK1/BxbFRtf/siA2SWTe09caDmVtYYzWEIbBS4zw==", - "dev": true, - "requires": { - "function-bind": "^1.1.1" - } - }, - "has-flag": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", - "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", - "dev": true - }, - "has-yarn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/has-yarn/-/has-yarn-2.1.0.tgz", - "integrity": "sha512-UqBRqi4ju7T+TqGNdqAO0PaSVGsDGJUBQvk9eUWNGRY1CFGDzYhLWoM7JQEemnlvVcv/YEmc2wNW8BC24EnUsw==", - "dev": true - }, - "hosted-git-info": { - "version": "2.8.8", - "resolved": "https://registry.npmjs.org/hosted-git-info/-/hosted-git-info-2.8.8.tgz", - "integrity": "sha512-f/wzC2QaWBs7t9IYqB4T3sR1xviIViXJRJTWBlx2Gf3g0Xi5vI7Yy4koXQ1c9OYDGHN9sBy1DQ2AB8fqZBWhUg==", - "dev": true - }, - "http-cache-semantics": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.0.tgz", - "integrity": "sha512-carPklcUh7ROWRK7Cv27RPtdhYhUsela/ue5/jKzjegVvXDqM2ILE9Q2BGn9JZJh1g87cp56su/FgQSzcWS8cQ==", - "dev": true - }, - "ieee754": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", - "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", - "dev": true - }, - "ignore": { - "version": "5.1.8", - "resolved": "https://registry.npmjs.org/ignore/-/ignore-5.1.8.tgz", - "integrity": "sha512-BMpfD7PpiETpBl/A6S498BaIJ6Y/ABT93ETbby2fP00v4EbvPBXWEoaR1UBPKs3iR53pJY7EtZk5KACI57i1Uw==", - "dev": true - }, - "ignore-by-default": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ignore-by-default/-/ignore-by-default-2.0.0.tgz", - "integrity": "sha512-+mQSgMRiFD3L3AOxLYOCxjIq4OnAmo5CIuC+lj5ehCJcPtV++QacEV7FdpzvYxH6DaOySWzQU6RR0lPLy37ckA==", - "dev": true - }, - "import-lazy": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/import-lazy/-/import-lazy-2.1.0.tgz", - "integrity": "sha1-BWmOPUXIjo1+nZLLBYTnfwlvPkM=", - "dev": true - }, - "import-local": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/import-local/-/import-local-3.0.2.tgz", - "integrity": "sha512-vjL3+w0oulAVZ0hBHnxa/Nm5TAurf9YLQJDhqRZyqb+VKGOB6LU8t9H1Nr5CIo16vh9XfJTOoHwU0B71S557gA==", - "dev": true, - "requires": { - "pkg-dir": "^4.2.0", - "resolve-cwd": "^3.0.0" - } - }, - "imurmurhash": { - "version": "0.1.4", - "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", - "integrity": "sha1-khi5srkoojixPcT7a21XbyMUU+o=", - "dev": true - }, - "indent-string": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", - "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", - "dev": true - }, - "inflight": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", - "integrity": "sha1-Sb1jMdfQLQwJvJEKEHW6gWW1bfk=", - "dev": true, - "requires": { - "once": "^1.3.0", - "wrappy": "1" - } - }, - "inherits": { - "version": "2.0.4", - "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", - "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==", - "dev": true - }, - "ini": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ini/-/ini-2.0.0.tgz", - "integrity": "sha512-7PnF4oN3CvZF23ADhA5wRaYEQpJ8qygSkbtTXWBeXWXmEVRXK+1ITciHWwHhsjv1TmW0MgacIv6hEi5pX5NQdA==", - "dev": true - }, - "irregular-plurals": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/irregular-plurals/-/irregular-plurals-3.2.0.tgz", - "integrity": "sha512-YqTdPLfwP7YFN0SsD3QUVCkm9ZG2VzOXv3DOrw5G5mkMbVwptTwVcFv7/C0vOpBmgTxAeTG19XpUs1E522LW9Q==", - "dev": true - }, - "is-arrayish": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/is-arrayish/-/is-arrayish-0.2.1.tgz", - "integrity": "sha1-d8mYQFJ6qOyxqLppe4BkWnqSap0=", - "dev": true - }, - "is-binary-path": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/is-binary-path/-/is-binary-path-2.1.0.tgz", - "integrity": "sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==", - "dev": true, - "requires": { - "binary-extensions": "^2.0.0" - } - }, - "is-ci": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-ci/-/is-ci-2.0.0.tgz", - "integrity": "sha512-YfJT7rkpQB0updsdHLGWrvhBJfcfzNNawYDNIyQXJz0IViGf75O8EBPKSdvw2rF+LGCsX4FZ8tcr3b19LcZq4w==", - "dev": true, - "requires": { - "ci-info": "^2.0.0" - } - }, - "is-core-module": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-core-module/-/is-core-module-2.2.0.tgz", - "integrity": "sha512-XRAfAdyyY5F5cOXn7hYQDqh2Xmii+DEfIcQGxK/uNwMHhIkPWO0g8msXcbzLe+MpGoR951MlqM/2iIlU4vKDdQ==", - "dev": true, - "requires": { - "has": "^1.0.3" - } - }, - "is-error": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/is-error/-/is-error-2.2.2.tgz", - "integrity": "sha512-IOQqts/aHWbiisY5DuPJQ0gcbvaLFCa7fBa9xoLfxBZvQ+ZI/Zh9xoI7Gk+G64N0FdK4AbibytHht2tWgpJWLg==", - "dev": true - }, - "is-extglob": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/is-extglob/-/is-extglob-2.1.1.tgz", - "integrity": "sha1-qIwCU1eR8C7TfHahueqXc8gz+MI=", - "dev": true - }, - "is-fullwidth-code-point": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", - "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", - "dev": true - }, - "is-glob": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/is-glob/-/is-glob-4.0.1.tgz", - "integrity": "sha512-5G0tKtBTFImOqDnLB2hG6Bp2qcKEFduo4tZu9MT/H6NQv/ghhy30o55ufafxJ/LdH79LLs2Kfrn85TLKyA7BUg==", - "dev": true, - "requires": { - "is-extglob": "^2.1.1" - } - }, - "is-installed-globally": { - "version": "0.4.0", - "resolved": "https://registry.npmjs.org/is-installed-globally/-/is-installed-globally-0.4.0.tgz", - "integrity": "sha512-iwGqO3J21aaSkC7jWnHP/difazwS7SFeIqxv6wEtLU8Y5KlzFTjyqcSIT0d8s4+dDhKytsk9PJZ2BkS5eZwQRQ==", - "dev": true, - "requires": { - "global-dirs": "^3.0.0", - "is-path-inside": "^3.0.2" - } - }, - "is-interactive": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-interactive/-/is-interactive-1.0.0.tgz", - "integrity": "sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w==", - "dev": true - }, - "is-npm": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-npm/-/is-npm-5.0.0.tgz", - "integrity": "sha512-WW/rQLOazUq+ST/bCAVBp/2oMERWLsR7OrKyt052dNDk4DHcDE0/7QSXITlmi+VBcV13DfIbysG3tZJm5RfdBA==", - "dev": true - }, - "is-number": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", - "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==" - }, - "is-obj": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/is-obj/-/is-obj-2.0.0.tgz", - "integrity": "sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w==", - "dev": true - }, - "is-path-cwd": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/is-path-cwd/-/is-path-cwd-2.2.0.tgz", - "integrity": "sha512-w942bTcih8fdJPJmQHFzkS76NEP8Kzzvmw92cXsazb8intwLqPibPPdXf4ANdKV3rYMuuQYGIWtvz9JilB3NFQ==", - "dev": true - }, - "is-path-inside": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/is-path-inside/-/is-path-inside-3.0.3.tgz", - "integrity": "sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ==", - "dev": true - }, - "is-plain-object": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/is-plain-object/-/is-plain-object-5.0.0.tgz", - "integrity": "sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q==", - "dev": true - }, - "is-promise": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/is-promise/-/is-promise-4.0.0.tgz", - "integrity": "sha512-hvpoI6korhJMnej285dSg6nu1+e6uxs7zG3BYAm5byqDsgJNWwxzM6z6iZiAgQR4TJ30JmBTOwqZUw3WlyH3AQ==", - "dev": true - }, - "is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha1-5HnICFjfDBsR3dppQPlgEfzaSpo=", - "dev": true - }, - "is-unicode-supported": { - "version": "0.1.0", - "resolved": "https://registry.npmjs.org/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz", - "integrity": "sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw==", - "dev": true - }, - "is-yarn-global": { - "version": "0.3.0", - "resolved": "https://registry.npmjs.org/is-yarn-global/-/is-yarn-global-0.3.0.tgz", - "integrity": "sha512-VjSeb/lHmkoyd8ryPVIKvOCn4D1koMqY+vqyjjUfc3xyKtP4dYOxM44sZrnqQSzSds3xyOrUTLTC9LVCVgLngw==", - "dev": true - }, - "js-string-escape": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/js-string-escape/-/js-string-escape-1.0.1.tgz", - "integrity": "sha1-4mJbrbwNZ8dTPp7cEGjFh65BN+8=", - "dev": true - }, - "js-tokens": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", - "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==", - "dev": true - }, - "js-yaml": { - "version": "3.14.1", - "resolved": "https://registry.npmjs.org/js-yaml/-/js-yaml-3.14.1.tgz", - "integrity": "sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g==", - "dev": true, - "requires": { - "argparse": "^1.0.7", - "esprima": "^4.0.0" - } - }, - "json-buffer": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.0.tgz", - "integrity": "sha1-Wx85evx11ne96Lz8Dkfh+aPZqJg=", - "dev": true - }, - "json-parse-better-errors": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz", - "integrity": "sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw==", - "dev": true - }, - "json-parse-even-better-errors": { - "version": "2.3.1", - "resolved": "https://registry.npmjs.org/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz", - "integrity": "sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w==", - "dev": true - }, - "json5": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", - "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", - "requires": { - "minimist": "^1.2.5" - } - }, - "jsonpointer": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.1.0.tgz", - "integrity": "sha512-CXcRvMyTlnR53xMcKnuMzfCA5i/nfblTnnr74CZb6C4vG39eu6w51t7nKmU5MfLfbTgGItliNyjO/ciNPDqClg==" - }, - "keyv": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/keyv/-/keyv-3.1.0.tgz", - "integrity": "sha512-9ykJ/46SN/9KPM/sichzQ7OvXyGDYKGTaDlKMGCAlg2UK8KRy4jb0d8sFc+0Tt0YYnThq8X2RZgCg74RPxgcVA==", - "dev": true, - "requires": { - "json-buffer": "3.0.0" - } - }, - "latest-version": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/latest-version/-/latest-version-5.1.0.tgz", - "integrity": "sha512-weT+r0kTkRQdCdYCNtkMwWXQTMEswKrFBkm4ckQOMVhhqhIMI1UT2hMj+1iigIhgSZm5gTmrRXBNoGUgaTY1xA==", - "dev": true, - "requires": { - "package-json": "^6.3.0" - } - }, - "lines-and-columns": { - "version": "1.1.6", - "resolved": "https://registry.npmjs.org/lines-and-columns/-/lines-and-columns-1.1.6.tgz", - "integrity": "sha1-HADHQ7QzzQpOgHWPe2SldEDZ/wA=", - "dev": true - }, - "load-json-file": { - "version": "5.3.0", - "resolved": "https://registry.npmjs.org/load-json-file/-/load-json-file-5.3.0.tgz", - "integrity": "sha512-cJGP40Jc/VXUsp8/OrnyKyTZ1y6v/dphm3bioS+RrKXjK2BB6wHUd6JptZEFDGgGahMT+InnZO5i1Ei9mpC8Bw==", - "dev": true, - "requires": { - "graceful-fs": "^4.1.15", - "parse-json": "^4.0.0", - "pify": "^4.0.1", - "strip-bom": "^3.0.0", - "type-fest": "^0.3.0" - } - }, - "locate-path": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-5.0.0.tgz", - "integrity": "sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g==", - "dev": true, - "requires": { - "p-locate": "^4.1.0" - } - }, - "lodash": { - "version": "4.17.21", - "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", - "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==", - "dev": true - }, - "lodash.includes": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", - "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" - }, - "lodash.isobject": { - "version": "3.0.2", - "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz", - "integrity": "sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0=" - }, - "lodash.keys": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-4.2.0.tgz", - "integrity": "sha1-oIYCrBLk+4P5H8H7ejYKTZujUgU=" - }, - "lodash.mapvalues": { - "version": "4.6.0", - "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", - "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=" - }, - "lodash.memoize": { - "version": "4.1.2", - "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", - "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=" - }, - "log-symbols": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/log-symbols/-/log-symbols-4.1.0.tgz", - "integrity": "sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg==", - "dev": true, - "requires": { - "chalk": "^4.1.0", - "is-unicode-supported": "^0.1.0" - } - }, - "lowercase-keys": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/lowercase-keys/-/lowercase-keys-1.0.1.tgz", - "integrity": "sha512-G2Lj61tXDnVFFOi8VZds+SoQjtQC3dgokKdDG2mTm1tx4m50NUHBOZSBwQQHyy0V12A0JTG4icfZQH+xPyh8VA==", - "dev": true - }, - "lru-cache": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", - "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", - "dev": true, - "requires": { - "yallist": "^4.0.0" - } - }, - "make-dir": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/make-dir/-/make-dir-3.1.0.tgz", - "integrity": "sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw==", - "dev": true, - "requires": { - "semver": "^6.0.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } - }, - "map-age-cleaner": { - "version": "0.1.3", - "resolved": "https://registry.npmjs.org/map-age-cleaner/-/map-age-cleaner-0.1.3.tgz", - "integrity": "sha512-bJzx6nMoP6PDLPBFmg7+xRKeFZvFboMrGlxmNj9ClvX53KrmvM5bXFXEWjbz4cz1AFn+jWJ9z/DJSz7hrs0w3w==", - "dev": true, - "requires": { - "p-defer": "^1.0.0" - } - }, - "matcher": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/matcher/-/matcher-3.0.0.tgz", - "integrity": "sha512-OkeDaAZ/bQCxeFAozM55PKcKU0yJMPGifLwV4Qgjitu+5MoAfSQN4lsLJeXZ1b8w0x+/Emda6MZgXS1jvsapng==", - "dev": true, - "requires": { - "escape-string-regexp": "^4.0.0" - }, - "dependencies": { - "escape-string-regexp": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz", - "integrity": "sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA==", - "dev": true - } - } - }, - "md5-hex": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/md5-hex/-/md5-hex-3.0.1.tgz", - "integrity": "sha512-BUiRtTtV39LIJwinWBjqVsU9xhdnz7/i889V859IBFpuqGAj6LuOvHv5XLbgZ2R7ptJoJaEcxkv88/h25T7Ciw==", - "dev": true, - "requires": { - "blueimp-md5": "^2.10.0" - } - }, - "mem": { - "version": "8.1.0", - "resolved": "https://registry.npmjs.org/mem/-/mem-8.1.0.tgz", - "integrity": "sha512-FIkgXo0kTi3XpvaznV5Muk6Y6w8SkdmRXcY7ZLonQesuYezp59UooLxAVBcGuN6PH2tXN84mR3vyzSc6oSMUfA==", - "dev": true, - "requires": { - "map-age-cleaner": "^0.1.3", - "mimic-fn": "^3.1.0" - }, - "dependencies": { - "mimic-fn": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-3.1.0.tgz", - "integrity": "sha512-Ysbi9uYW9hFyfrThdDEQuykN4Ey6BuwPD2kpI5ES/nFTDn/98yxYNLZJcgUAKPT/mcrLLKaGzJR9YVxJrIdASQ==", - "dev": true - } - } - }, - "merge2": { - "version": "1.4.1", - "resolved": "https://registry.npmjs.org/merge2/-/merge2-1.4.1.tgz", - "integrity": "sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg==", - "dev": true - }, - "micromatch": { - "version": "4.0.2", - "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", - "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", - "requires": { - "braces": "^3.0.1", - "picomatch": "^2.0.5" - } - }, - "mimic-fn": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz", - "integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==", - "dev": true - }, - "mimic-response": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-1.0.1.tgz", - "integrity": "sha512-j5EctnkH7amfV/q5Hgmoal1g2QHFJRraOtmx0JpIqkxhBhI/lJSl1nMpQ45hVarwNETOoWEimndZ4QK0RHxuxQ==", - "dev": true - }, - "minimatch": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.0.4.tgz", - "integrity": "sha512-yJHVQEhyqPLUTgt9B83PXu6W3rx4MvvHvSUvToogpwoGDOUQ+yDrR0HRot+yOCdCO7u4hX3pWft6kWBBcqh0UA==", - "dev": true, - "requires": { - "brace-expansion": "^1.1.7" - } - }, - "minimist": { - "version": "1.2.5", - "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", - "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" - }, - "ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "normalize-package-data": { - "version": "2.5.0", - "resolved": "https://registry.npmjs.org/normalize-package-data/-/normalize-package-data-2.5.0.tgz", - "integrity": "sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA==", - "dev": true, - "requires": { - "hosted-git-info": "^2.1.4", - "resolve": "^1.10.0", - "semver": "2 || 3 || 4 || 5", - "validate-npm-package-license": "^3.0.1" - }, + "packages": { + "": { + "name": "git-er-done", + "version": "0.1.9", + "license": "MIT", "dependencies": { - "semver": { - "version": "5.7.1", - "resolved": "https://registry.npmjs.org/semver/-/semver-5.7.1.tgz", - "integrity": "sha512-sauaDf/PZdVgrLTNYHRtpXa1iRiKcaebiKQ1BJdpQlWH2lCvexQdX55snPFyK7QzpudqbCI0qXFfOasHdyNDGQ==", - "dev": true - } - } - }, - "normalize-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/normalize-path/-/normalize-path-3.0.0.tgz", - "integrity": "sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==", - "dev": true - }, - "normalize-url": { - "version": "4.5.0", - "resolved": "https://registry.npmjs.org/normalize-url/-/normalize-url-4.5.0.tgz", - "integrity": "sha512-2s47yzUxdexf1OhyRi4Em83iQk0aPvwTddtFz4hnSSw9dCEsLEGf6SwIO8ss/19S9iBb5sJaOuTvTGDeZI00BQ==", - "dev": true - }, - "once": { - "version": "1.4.0", - "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", - "integrity": "sha1-WDsap3WWHUsROsF9nFC6753Xa9E=", - "dev": true, - "requires": { - "wrappy": "1" - } - }, - "onetime": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz", - "integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==", - "dev": true, - "requires": { - "mimic-fn": "^2.1.0" - } - }, - "ora": { - "version": "5.4.0", - "resolved": "https://registry.npmjs.org/ora/-/ora-5.4.0.tgz", - "integrity": "sha512-1StwyXQGoU6gdjYkyVcqOLnVlbKj+6yPNNOxJVgpt9t4eksKjiriiHuxktLYkgllwk+D6MbC4ihH84L1udRXPg==", - "dev": true, - "requires": { - "bl": "^4.1.0", - "chalk": "^4.1.0", - "cli-cursor": "^3.1.0", - "cli-spinners": "^2.5.0", - "is-interactive": "^1.0.0", - "is-unicode-supported": "^0.1.0", - "log-symbols": "^4.1.0", - "strip-ansi": "^6.0.0", - "wcwidth": "^1.0.1" - } - }, - "p-cancelable": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/p-cancelable/-/p-cancelable-1.1.0.tgz", - "integrity": "sha512-s73XxOZ4zpt1edZYZzvhqFa6uvQc1vwUa0K0BdtIZgQMAJj9IbebH+JkgKZc9h+B05PKHLOTl4ajG1BmNrVZlw==", - "dev": true - }, - "p-defer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-defer/-/p-defer-1.0.0.tgz", - "integrity": "sha1-n26xgvbJqozXQwBKfU+WsZaw+ww=", - "dev": true - }, - "p-event": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/p-event/-/p-event-4.2.0.tgz", - "integrity": "sha512-KXatOjCRXXkSePPb1Nbi0p0m+gQAwdlbhi4wQKJPI1HsMQS9g+Sqp2o+QHziPr7eYJyOZet836KoHEVM1mwOrQ==", - "dev": true, - "requires": { - "p-timeout": "^3.1.0" - } - }, - "p-finally": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz", - "integrity": "sha1-P7z7FbiZpEEjs0ttzBi3JDNqLK4=", - "dev": true - }, - "p-limit": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/p-limit/-/p-limit-2.3.0.tgz", - "integrity": "sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w==", - "dev": true, - "requires": { - "p-try": "^2.0.0" - } - }, - "p-locate": { - "version": "4.1.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-4.1.0.tgz", - "integrity": "sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A==", - "dev": true, - "requires": { - "p-limit": "^2.2.0" - } - }, - "p-map": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", - "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", - "dev": true, - "requires": { - "aggregate-error": "^3.0.0" - } - }, - "p-timeout": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz", - "integrity": "sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==", - "dev": true, - "requires": { - "p-finally": "^1.0.0" + "debug": "^4.1.1", + "json5": "^2.1.1", + "jsonpointer": "^4.0.1", + "lodash.includes": "^4.3.0", + "lodash.isobject": "^3.0.2", + "lodash.keys": "^4.2.0", + "lodash.mapvalues": "^4.6.0", + "lodash.memoize": "^4.1.2", + "micromatch": "^4.0.2", + "parse-diff": "^0.6.0", + "rfc6902": "^3.0.4" + }, + "devDependencies": { + "@types/node": "^22.10.1", + "typescript": "^5.7.2", + "uvu": "^0.5.6" } }, - "p-try": { - "version": "2.2.0", - "resolved": "https://registry.npmjs.org/p-try/-/p-try-2.2.0.tgz", - "integrity": "sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ==", - "dev": true - }, - "package-json": { - "version": "6.5.0", - "resolved": "https://registry.npmjs.org/package-json/-/package-json-6.5.0.tgz", - "integrity": "sha512-k3bdm2n25tkyxcjSKzB5x8kfVxlMdgsbPr0GkZcwHsLpba6cBjqCt1KlcChKEvxHIcTB1FVMuwoijZ26xex5MQ==", + "node_modules/@types/node": { + "version": "22.19.0", + "resolved": "https://registry.npmjs.org/@types/node/-/node-22.19.0.tgz", + "integrity": "sha512-xpr/lmLPQEj+TUnHmR+Ab91/glhJvsqcjB+yY0Ix9GO70H6Lb4FHH5GeqdOE5btAx7eIMwuHkp4H2MSkLcqWbA==", "dev": true, - "requires": { - "got": "^9.6.0", - "registry-auth-token": "^4.0.0", - "registry-url": "^5.0.0", - "semver": "^6.2.0" - }, + "license": "MIT", "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } + "undici-types": "~6.21.0" } }, - "parse-diff": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/parse-diff/-/parse-diff-0.6.0.tgz", - "integrity": "sha512-mBWyN71+ZbwTwqWpwxkOIy2qEi5mT3EGMeFGLqAtDqj6t1zlLyIkPkEwROSQ7ZdTuvaebFURAMKEZH9fOg4f1Q==" - }, - "parse-json": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-4.0.0.tgz", - "integrity": "sha1-vjX1Qlvh9/bHRxhPmKeIy5lHfuA=", - "dev": true, - "requires": { - "error-ex": "^1.3.1", - "json-parse-better-errors": "^1.0.1" + "node_modules/braces": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/braces/-/braces-3.0.2.tgz", + "integrity": "sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A==", + "dependencies": { + "fill-range": "^7.0.1" + }, + "engines": { + "node": ">=8" } }, - "parse-ms": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/parse-ms/-/parse-ms-2.1.0.tgz", - "integrity": "sha512-kHt7kzLoS9VBZfUsiKjv43mr91ea+U05EyKkEtqp7vNbHxmaVuEqN7XxeEVnGrMtYOAxGrDElSi96K7EgO1zCA==", - "dev": true - }, - "path-exists": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-4.0.0.tgz", - "integrity": "sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w==", - "dev": true - }, - "path-is-absolute": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", - "integrity": "sha1-F0uSaHNVNP+8es5r9TpanhtcX18=", - "dev": true - }, - "path-parse": { - "version": "1.0.6", - "resolved": "https://registry.npmjs.org/path-parse/-/path-parse-1.0.6.tgz", - "integrity": "sha512-GSmOT2EbHrINBf9SR7CDELwlJ8AENk3Qn7OikK4nFYAu3Ote2+JYNVvkpAEQm3/TLNEJFD/xZJjzyxg3KBWOzw==", - "dev": true - }, - "path-type": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz", - "integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw==", - "dev": true - }, - "picomatch": { - "version": "2.2.2", - "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", - "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==" - }, - "pify": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/pify/-/pify-4.0.1.tgz", - "integrity": "sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g==", - "dev": true - }, - "pkg-conf": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/pkg-conf/-/pkg-conf-3.1.0.tgz", - "integrity": "sha512-m0OTbR/5VPNPqO1ph6Fqbj7Hv6QU7gR/tQW40ZqrL1rjgCU85W6C1bJn0BItuJqnR98PWzw7Z8hHeChD1WrgdQ==", - "dev": true, - "requires": { - "find-up": "^3.0.0", - "load-json-file": "^5.2.0" - }, + "node_modules/debug": { + "version": "4.3.1", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.1.tgz", + "integrity": "sha512-doEwdvm4PCeK4K3RQN2ZC2BYUBaxwLARCqZmMjtF8a51J2Rb0xpVloFRnCODwqjpwnAoao4pelN8l3RJdv3gRQ==", "dependencies": { - "find-up": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/find-up/-/find-up-3.0.0.tgz", - "integrity": "sha512-1yD6RmLI1XBfxugvORwlck6f75tYL+iR0jqwsOrOxMZyGYqUuDhJ0l4AXdO1iX/FTs9cBAMEk1gWSEx1kSbylg==", - "dev": true, - "requires": { - "locate-path": "^3.0.0" - } - }, - "locate-path": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/locate-path/-/locate-path-3.0.0.tgz", - "integrity": "sha512-7AO748wWnIhNqAuaty2ZWHkQHRSNfPVIsPIfwEOWO22AmaoVrWavlOcMR5nzTLNYvp36X220/maaRsrec1G65A==", - "dev": true, - "requires": { - "p-locate": "^3.0.0", - "path-exists": "^3.0.0" - } - }, - "p-locate": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/p-locate/-/p-locate-3.0.0.tgz", - "integrity": "sha512-x+12w/To+4GFfgJhBEpiDcLozRJGegY+Ei7/z0tSLkMmxGZNybVMSfWj9aJn8Z5Fc7dBUNJOOVgPv2H7IwulSQ==", - "dev": true, - "requires": { - "p-limit": "^2.0.0" - } - }, - "path-exists": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz", - "integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=", - "dev": true + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true } } }, - "pkg-dir": { - "version": "4.2.0", - "resolved": "https://registry.npmjs.org/pkg-dir/-/pkg-dir-4.2.0.tgz", - "integrity": "sha512-HRDzbaKjC+AOWVXxAU/x54COGeIv9eb+6CkDSQoNTt4XyWoIJvuPsXizxu/Fr23EiekbtZwmh1IcIG/l/a10GQ==", + "node_modules/dequal": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/dequal/-/dequal-2.0.3.tgz", + "integrity": "sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA==", "dev": true, - "requires": { - "find-up": "^4.0.0" + "license": "MIT", + "engines": { + "node": ">=6" } }, - "plur": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/plur/-/plur-4.0.0.tgz", - "integrity": "sha512-4UGewrYgqDFw9vV6zNV+ADmPAUAfJPKtGvb/VdpQAx25X5f3xXdGdyOEVFwkl8Hl/tl7+xbeHqSEM+D5/TirUg==", + "node_modules/diff": { + "version": "5.2.0", + "resolved": "https://registry.npmjs.org/diff/-/diff-5.2.0.tgz", + "integrity": "sha512-uIFDxqpRZGZ6ThOk84hEfqWoHx2devRFvpTZcTHur85vImfaxUbTW9Ryh4CpCuDnToOP1CEtXKIgytHBPVff5A==", "dev": true, - "requires": { - "irregular-plurals": "^3.2.0" + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.3.1" } }, - "prepend-http": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/prepend-http/-/prepend-http-2.0.0.tgz", - "integrity": "sha1-6SQ0v6XqjBn0HN/UAddBo8gZ2Jc=", - "dev": true - }, - "pretty-ms": { + "node_modules/fill-range": { "version": "7.0.1", - "resolved": "https://registry.npmjs.org/pretty-ms/-/pretty-ms-7.0.1.tgz", - "integrity": "sha512-973driJZvxiGOQ5ONsFhOF/DtzPMOMtgC11kCpUrPGMTgqp2q/1gwzCquocrN33is0VZ5GFHXZYMM9l6h67v2Q==", - "dev": true, - "requires": { - "parse-ms": "^2.1.0" - } - }, - "pump": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", - "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", - "dev": true, - "requires": { - "end-of-stream": "^1.1.0", - "once": "^1.3.1" - } - }, - "pupa": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/pupa/-/pupa-2.1.1.tgz", - "integrity": "sha512-l1jNAspIBSFqbT+y+5FosojNpVpF94nlI+wDUpqP9enwOTfHx9f0gh5nB96vl+6yTpsJsypeNrwfzPrKuHB41A==", - "dev": true, - "requires": { - "escape-goat": "^2.0.0" - } - }, - "queue-microtask": { - "version": "1.2.3", - "resolved": "https://registry.npmjs.org/queue-microtask/-/queue-microtask-1.2.3.tgz", - "integrity": "sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A==", - "dev": true - }, - "rc": { - "version": "1.2.8", - "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", - "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", - "dev": true, - "requires": { - "deep-extend": "^0.6.0", - "ini": "~1.3.0", - "minimist": "^1.2.0", - "strip-json-comments": "~2.0.1" - }, + "resolved": "https://registry.npmjs.org/fill-range/-/fill-range-7.0.1.tgz", + "integrity": "sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ==", "dependencies": { - "ini": { - "version": "1.3.8", - "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", - "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==", - "dev": true - } - } - }, - "read-pkg": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/read-pkg/-/read-pkg-5.2.0.tgz", - "integrity": "sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg==", - "dev": true, - "requires": { - "@types/normalize-package-data": "^2.4.0", - "normalize-package-data": "^2.5.0", - "parse-json": "^5.0.0", - "type-fest": "^0.6.0" + "to-regex-range": "^5.0.1" }, - "dependencies": { - "parse-json": { - "version": "5.2.0", - "resolved": "https://registry.npmjs.org/parse-json/-/parse-json-5.2.0.tgz", - "integrity": "sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg==", - "dev": true, - "requires": { - "@babel/code-frame": "^7.0.0", - "error-ex": "^1.3.1", - "json-parse-even-better-errors": "^2.3.0", - "lines-and-columns": "^1.1.6" - } - }, - "type-fest": { - "version": "0.6.0", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.6.0.tgz", - "integrity": "sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg==", - "dev": true - } - } - }, - "readable-stream": { - "version": "3.6.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.0.tgz", - "integrity": "sha512-BViHy7LKeTz4oNnkcLJ+lVSL6vpiFeX6/d3oSH8zCW7UxP2onchk+vTGB143xuFjHS3deTgkKoXXymXqymiIdA==", - "dev": true, - "requires": { - "inherits": "^2.0.3", - "string_decoder": "^1.1.1", - "util-deprecate": "^1.0.1" - } - }, - "readdirp": { - "version": "3.5.0", - "resolved": "https://registry.npmjs.org/readdirp/-/readdirp-3.5.0.tgz", - "integrity": "sha512-cMhu7c/8rdhkHXWsY+osBhfSy0JikwpHK/5+imo+LpeasTF8ouErHrlYkwT0++njiyuDvc7OFY5T3ukvZ8qmFQ==", - "dev": true, - "requires": { - "picomatch": "^2.2.1" - } - }, - "registry-auth-token": { - "version": "4.2.1", - "resolved": "https://registry.npmjs.org/registry-auth-token/-/registry-auth-token-4.2.1.tgz", - "integrity": "sha512-6gkSb4U6aWJB4SF2ZvLb76yCBjcvufXBqvvEx1HbmKPkutswjW1xNVRY0+daljIYRbogN7O0etYSlbiaEQyMyw==", - "dev": true, - "requires": { - "rc": "^1.2.8" + "engines": { + "node": ">=8" } }, - "registry-url": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/registry-url/-/registry-url-5.1.0.tgz", - "integrity": "sha512-8acYXXTI0AkQv6RAOjE3vOaIXZkT9wo4LOFbBKYQEEnnMNBpKqdUrI6S4NT0KPIo/WVvJ5tE/X5LF/TQUf0ekw==", - "dev": true, - "requires": { - "rc": "^1.2.8" - } - }, - "require-directory": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", - "integrity": "sha1-jGStX9MNqxyXbiNE/+f3kqam30I=", - "dev": true - }, - "resolve": { - "version": "1.20.0", - "resolved": "https://registry.npmjs.org/resolve/-/resolve-1.20.0.tgz", - "integrity": "sha512-wENBPt4ySzg4ybFQW2TT1zMQucPK95HSh/nq2CFTZVOGut2+pQvSsgtda4d26YrYcr067wjbmzOG8byDPBX63A==", - "dev": true, - "requires": { - "is-core-module": "^2.2.0", - "path-parse": "^1.0.6" + "node_modules/is-number": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/is-number/-/is-number-7.0.0.tgz", + "integrity": "sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==", + "engines": { + "node": ">=0.12.0" } }, - "resolve-cwd": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/resolve-cwd/-/resolve-cwd-3.0.0.tgz", - "integrity": "sha512-OrZaX2Mb+rJCpH/6CpSqt9xFVpN++x01XnN2ie9g6P5/3xelLAkXWVADpdz1IHD/KFfEXyE6V0U01OQ3UO2rEg==", - "dev": true, - "requires": { - "resolve-from": "^5.0.0" + "node_modules/json5": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/json5/-/json5-2.2.0.tgz", + "integrity": "sha512-f+8cldu7X/y7RAJurMEJmdoKXGB/X550w2Nr3tTbezL6RwEE/iMcm+tZnXeoZtKuOq6ft8+CqzEkrIgx1fPoQA==", + "dependencies": { + "minimist": "^1.2.5" + }, + "bin": { + "json5": "lib/cli.js" + }, + "engines": { + "node": ">=6" } }, - "resolve-from": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/resolve-from/-/resolve-from-5.0.0.tgz", - "integrity": "sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw==", - "dev": true - }, - "responselike": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/responselike/-/responselike-1.0.2.tgz", - "integrity": "sha1-kYcg7ztjHFZCvgaPFa3lpG9Loec=", - "dev": true, - "requires": { - "lowercase-keys": "^1.0.0" + "node_modules/jsonpointer": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/jsonpointer/-/jsonpointer-4.1.0.tgz", + "integrity": "sha512-CXcRvMyTlnR53xMcKnuMzfCA5i/nfblTnnr74CZb6C4vG39eu6w51t7nKmU5MfLfbTgGItliNyjO/ciNPDqClg==", + "engines": { + "node": ">=0.10.0" } }, - "restore-cursor": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/restore-cursor/-/restore-cursor-3.1.0.tgz", - "integrity": "sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA==", + "node_modules/kleur": { + "version": "4.1.5", + "resolved": "https://registry.npmjs.org/kleur/-/kleur-4.1.5.tgz", + "integrity": "sha512-o+NO+8WrRiQEE4/7nwRJhN1HWpVmJm511pBHUxPLtp0BUISzlBplORYSmTclCnJvQq2tKu/sgl3xVpkc7ZWuQQ==", "dev": true, - "requires": { - "onetime": "^5.1.0", - "signal-exit": "^3.0.2" + "license": "MIT", + "engines": { + "node": ">=6" } }, - "reusify": { - "version": "1.0.4", - "resolved": "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz", - "integrity": "sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw==", - "dev": true - }, - "rfc6902": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/rfc6902/-/rfc6902-3.1.1.tgz", - "integrity": "sha512-aHiEm2S4mQSyyIaK7NVotfmVkgOOn1K9iuuSCIKJ8eIAte/8o06Vp06Z2NcLrmMahDmA+2F6oHx33P4NOQ1JnQ==" + "node_modules/lodash.includes": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/lodash.includes/-/lodash.includes-4.3.0.tgz", + "integrity": "sha1-YLuYqHy5I8aMoeUTJUgzFISfVT8=" }, - "rimraf": { + "node_modules/lodash.isobject": { "version": "3.0.2", - "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", - "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", - "dev": true, - "requires": { - "glob": "^7.1.3" - } - }, - "run-parallel": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/run-parallel/-/run-parallel-1.2.0.tgz", - "integrity": "sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA==", - "dev": true, - "requires": { - "queue-microtask": "^1.2.2" - } + "resolved": "https://registry.npmjs.org/lodash.isobject/-/lodash.isobject-3.0.2.tgz", + "integrity": "sha1-PI+41bW/S/kK4G4U8qUwpO2TXh0=" }, - "safe-buffer": { - "version": "5.1.2", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", - "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==", - "dev": true + "node_modules/lodash.keys": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/lodash.keys/-/lodash.keys-4.2.0.tgz", + "integrity": "sha1-oIYCrBLk+4P5H8H7ejYKTZujUgU=" }, - "semver": { - "version": "7.3.5", - "resolved": "https://registry.npmjs.org/semver/-/semver-7.3.5.tgz", - "integrity": "sha512-PoeGJYh8HK4BTO/a9Tf6ZG3veo/A7ZVsYrSA6J8ny9nb3B1VrpkuN+z9OE5wfE5p6H4LchYZsegiQgbJD94ZFQ==", - "dev": true, - "requires": { - "lru-cache": "^6.0.0" - } + "node_modules/lodash.mapvalues": { + "version": "4.6.0", + "resolved": "https://registry.npmjs.org/lodash.mapvalues/-/lodash.mapvalues-4.6.0.tgz", + "integrity": "sha1-G6+lAF3p3W9PJmaMMMo3IwzJaJw=" }, - "semver-diff": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/semver-diff/-/semver-diff-3.1.1.tgz", - "integrity": "sha512-GX0Ix/CJcHyB8c4ykpHGIAvLyOwOobtM/8d+TQkAd81/bEjgPHrfba41Vpesr7jX/t8Uh+R3EX9eAS5be+jQYg==", - "dev": true, - "requires": { - "semver": "^6.3.0" - }, - "dependencies": { - "semver": { - "version": "6.3.0", - "resolved": "https://registry.npmjs.org/semver/-/semver-6.3.0.tgz", - "integrity": "sha512-b39TBaTSfV6yBrapU89p5fKekE2m/NwnDocOVruQFS1/veMgdzuPcnOM34M6CwxW8jH/lxEa5rBoDeUwu5HHTw==", - "dev": true - } - } + "node_modules/lodash.memoize": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/lodash.memoize/-/lodash.memoize-4.1.2.tgz", + "integrity": "sha1-vMbEmkKihA7Zl/Mj6tpezRguC/4=" }, - "serialize-error": { - "version": "7.0.1", - "resolved": "https://registry.npmjs.org/serialize-error/-/serialize-error-7.0.1.tgz", - "integrity": "sha512-8I8TjW5KMOKsZQTvoxjuSIa7foAwPWGOts+6o7sgjz41/qMD9VQHEDxi6PBvK2l0MXUmqZyNpUK+T2tQaaElvw==", - "dev": true, - "requires": { - "type-fest": "^0.13.1" - }, + "node_modules/micromatch": { + "version": "4.0.2", + "resolved": "https://registry.npmjs.org/micromatch/-/micromatch-4.0.2.tgz", + "integrity": "sha512-y7FpHSbMUMoyPbYUSzO6PaZ6FyRnQOpHuKwbo1G+Knck95XVU4QAiKdGEnj5wwoS7PlOgthX/09u5iFJ+aYf5Q==", "dependencies": { - "type-fest": { - "version": "0.13.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.13.1.tgz", - "integrity": "sha512-34R7HTnG0XIJcBSn5XhDd7nNFPRcXYRZrBB2O2jdKqYODldSzBAqzsWoZYYvduky73toYS/ESqxPvkDf/F0XMg==", - "dev": true - } - } - }, - "signal-exit": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.3.tgz", - "integrity": "sha512-VUJ49FC8U1OxwZLxIbTTrDvLnf/6TDgxZcK8wxR8zs13xpx7xbG60ndBlhNrFi2EMuFRoeDoJO7wthSLq42EjA==", - "dev": true - }, - "slash": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz", - "integrity": "sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==", - "dev": true - }, - "slice-ansi": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz", - "integrity": "sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==", - "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "astral-regex": "^2.0.0", - "is-fullwidth-code-point": "^3.0.0" + "braces": "^3.0.1", + "picomatch": "^2.0.5" }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - } - } - }, - "source-map": { - "version": "0.6.1", - "resolved": "https://registry.npmjs.org/source-map/-/source-map-0.6.1.tgz", - "integrity": "sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g==", - "dev": true - }, - "source-map-support": { - "version": "0.5.19", - "resolved": "https://registry.npmjs.org/source-map-support/-/source-map-support-0.5.19.tgz", - "integrity": "sha512-Wonm7zOCIJzBGQdB+thsPar0kYuCIzYvxZwlBa87yi/Mdjv7Tip2cyVbLj5o0cFPN4EVkuTwb3GDDyUx2DGnGw==", - "dev": true, - "requires": { - "buffer-from": "^1.0.0", - "source-map": "^0.6.0" - } - }, - "spdx-correct": { - "version": "3.1.1", - "resolved": "https://registry.npmjs.org/spdx-correct/-/spdx-correct-3.1.1.tgz", - "integrity": "sha512-cOYcUWwhCuHCXi49RhFRCyJEK3iPj1Ziz9DpViV3tbZOwXD49QzIN3MpOLJNxh2qwq2lJJZaKMVw9qNi4jTC0w==", - "dev": true, - "requires": { - "spdx-expression-parse": "^3.0.0", - "spdx-license-ids": "^3.0.0" + "engines": { + "node": ">=8" } }, - "spdx-exceptions": { - "version": "2.3.0", - "resolved": "https://registry.npmjs.org/spdx-exceptions/-/spdx-exceptions-2.3.0.tgz", - "integrity": "sha512-/tTrYOC7PPI1nUAgx34hUpqXuyJG+DTHJTnIULG4rDygi4xu/tfgmq1e1cIRwRzwZgo4NLySi+ricLkZkw4i5A==", - "dev": true + "node_modules/minimist": { + "version": "1.2.5", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.5.tgz", + "integrity": "sha512-FM9nNUYrRBAELZQT3xeZQ7fmMOBg6nWNmJKTcgsJeaLstP/UODVpGsr5OhXhhXg6f+qtJ8uiZ+PUxkDWcgIXLw==" }, - "spdx-expression-parse": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz", - "integrity": "sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q==", + "node_modules/mri": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/mri/-/mri-1.2.0.tgz", + "integrity": "sha512-tzzskb3bG8LvYGFF/mDTpq3jpI6Q9wc3LEmBaghu+DdCssd1FakN7Bc0hVNmEyGq1bq3RgfkCb3cmQLpNPOroA==", "dev": true, - "requires": { - "spdx-exceptions": "^2.1.0", - "spdx-license-ids": "^3.0.0" + "license": "MIT", + "engines": { + "node": ">=4" } }, - "spdx-license-ids": { - "version": "3.0.7", - "resolved": "https://registry.npmjs.org/spdx-license-ids/-/spdx-license-ids-3.0.7.tgz", - "integrity": "sha512-U+MTEOO0AiDzxwFvoa4JVnMV6mZlJKk2sBLt90s7G0Gd0Mlknc7kxEn3nuDPNZRta7O2uy8oLcZLVT+4sqNZHQ==", - "dev": true + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" }, - "sprintf-js": { - "version": "1.0.3", - "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.0.3.tgz", - "integrity": "sha1-BOaSb2YolTVPPdAVIDYzuFcpfiw=", - "dev": true + "node_modules/parse-diff": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/parse-diff/-/parse-diff-0.6.0.tgz", + "integrity": "sha512-mBWyN71+ZbwTwqWpwxkOIy2qEi5mT3EGMeFGLqAtDqj6t1zlLyIkPkEwROSQ7ZdTuvaebFURAMKEZH9fOg4f1Q==" }, - "stack-utils": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/stack-utils/-/stack-utils-2.0.3.tgz", - "integrity": "sha512-gL//fkxfWUsIlFL2Tl42Cl6+HFALEaB1FU76I/Fy+oZjRreP7OPMXFlGbxM7NQsI0ZpUfw76sHnv0WNYuTb7Iw==", - "dev": true, - "requires": { - "escape-string-regexp": "^2.0.0" + "node_modules/picomatch": { + "version": "2.2.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.2.2.tgz", + "integrity": "sha512-q0M/9eZHzmr0AulXyPwNfZjtwZ/RBZlbN3K3CErVrk50T2ASYI7Bye0EvekFY3IP1Nt2DHu0re+V2ZHIpMkuWg==", + "engines": { + "node": ">=8.6" }, - "dependencies": { - "escape-string-regexp": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/escape-string-regexp/-/escape-string-regexp-2.0.0.tgz", - "integrity": "sha512-UpzcLCXolUWcNu5HtVMHYdXJjArjsF9C0aNnquZYY4uW/Vu0miy5YoWvbV345HauVvcAUnpRuhMMcqTcGOY2+w==", - "dev": true - } + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" } }, - "string-width": { - "version": "4.2.2", - "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.2.tgz", - "integrity": "sha512-XBJbT3N4JhVumXE0eoLU9DCjcaF92KLNqTmFCnG1pf8duUxFGwtP6AD6nkjw9a3IdiRtL3E2w3JDiE/xi3vOeA==", - "dev": true, - "requires": { - "emoji-regex": "^8.0.0", - "is-fullwidth-code-point": "^3.0.0", - "strip-ansi": "^6.0.0" - } + "node_modules/rfc6902": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/rfc6902/-/rfc6902-3.1.1.tgz", + "integrity": "sha512-aHiEm2S4mQSyyIaK7NVotfmVkgOOn1K9iuuSCIKJ8eIAte/8o06Vp06Z2NcLrmMahDmA+2F6oHx33P4NOQ1JnQ==" }, - "string_decoder": { - "version": "1.3.0", - "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.3.0.tgz", - "integrity": "sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA==", + "node_modules/sade": { + "version": "1.8.1", + "resolved": "https://registry.npmjs.org/sade/-/sade-1.8.1.tgz", + "integrity": "sha512-xal3CZX1Xlo/k4ApwCFrHVACi9fBqJ7V+mwhBsuf/1IOKbBy098Fex+Wa/5QMubw09pSZ/u8EY8PWgevJsXp1A==", "dev": true, - "requires": { - "safe-buffer": "~5.2.0" - }, + "license": "MIT", "dependencies": { - "safe-buffer": { - "version": "5.2.1", - "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.2.1.tgz", - "integrity": "sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ==", - "dev": true - } - } - }, - "strip-ansi": { - "version": "6.0.0", - "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.0.tgz", - "integrity": "sha512-AuvKTrTfQNYNIctbR1K/YGTR1756GycPsg7b9bdV9Duqur4gv6aKqHXah67Z8ImS7WEz5QVcOtlfW2rZEugt6w==", - "dev": true, - "requires": { - "ansi-regex": "^5.0.0" - } - }, - "strip-bom": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/strip-bom/-/strip-bom-3.0.0.tgz", - "integrity": "sha1-IzTBjpx1n3vdVv3vfprj1YjmjtM=", - "dev": true - }, - "strip-json-comments": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", - "integrity": "sha1-PFMZQukIwml8DsNEhYwobHygpgo=", - "dev": true - }, - "supertap": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/supertap/-/supertap-2.0.0.tgz", - "integrity": "sha512-jRzcXlCeDYvKoZGA5oRhYyR3jUIYu0enkSxtmAgHRlD7HwrovTpH4bDSi0py9FtuA8si9cW/fKommJHuaoDHJA==", - "dev": true, - "requires": { - "arrify": "^2.0.1", - "indent-string": "^4.0.0", - "js-yaml": "^3.14.0", - "serialize-error": "^7.0.1", - "strip-ansi": "^6.0.0" - } - }, - "supports-color": { - "version": "7.2.0", - "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", - "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", - "dev": true, - "requires": { - "has-flag": "^4.0.0" + "mri": "^1.1.0" + }, + "engines": { + "node": ">=6" } }, - "temp-dir": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/temp-dir/-/temp-dir-2.0.0.tgz", - "integrity": "sha512-aoBAniQmmwtcKp/7BzsH8Cxzv8OL736p7v1ihGb5e9DJ9kTwGWHrQrVB5+lfVDzfGrdRzXch+ig7LHaY1JTOrg==", - "dev": true - }, - "time-zone": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/time-zone/-/time-zone-1.0.0.tgz", - "integrity": "sha1-mcW/VZWJZq9tBtg73zgA3IL67F0=", - "dev": true - }, - "to-readable-stream": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/to-readable-stream/-/to-readable-stream-1.0.0.tgz", - "integrity": "sha512-Iq25XBt6zD5npPhlLVXGFN3/gyR2/qODcKNNyTMd4vbm39HUaOiAM4PMq0eMVC/Tkxz+Zjdsc55g9yyz+Yq00Q==", - "dev": true - }, - "to-regex-range": { + "node_modules/to-regex-range": { "version": "5.0.1", "resolved": "https://registry.npmjs.org/to-regex-range/-/to-regex-range-5.0.1.tgz", "integrity": "sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==", - "requires": { + "dependencies": { "is-number": "^7.0.0" + }, + "engines": { + "node": ">=8.0" } }, - "trim-off-newlines": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/trim-off-newlines/-/trim-off-newlines-1.0.1.tgz", - "integrity": "sha1-n5up2e+odkw4dpi8v+sshI8RrbM=", - "dev": true - }, - "type-fest": { - "version": "0.3.1", - "resolved": "https://registry.npmjs.org/type-fest/-/type-fest-0.3.1.tgz", - "integrity": "sha512-cUGJnCdr4STbePCgqNFbpVNCepa+kAVohJs1sLhxzdH+gnEoOd8VhbYa7pD3zZYGiURWM2xzEII3fQcRizDkYQ==", - "dev": true - }, - "typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dev": true, - "requires": { - "is-typedarray": "^1.0.0" - } - }, - "unique-string": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/unique-string/-/unique-string-2.0.0.tgz", - "integrity": "sha512-uNaeirEPvpZWSgzwsPGtU2zVSTrn/8L5q/IexZmH0eH6SA73CmAA5U4GwORTxQAZs95TAXLNqeLoPPNO5gZfWg==", - "dev": true, - "requires": { - "crypto-random-string": "^2.0.0" - } - }, - "update-notifier": { - "version": "5.1.0", - "resolved": "https://registry.npmjs.org/update-notifier/-/update-notifier-5.1.0.tgz", - "integrity": "sha512-ItnICHbeMh9GqUy31hFPrD1kcuZ3rpxDZbf4KUDavXwS0bW5m7SLbDQpGX3UYr072cbrF5hFUs3r5tUsPwjfHw==", - "dev": true, - "requires": { - "boxen": "^5.0.0", - "chalk": "^4.1.0", - "configstore": "^5.0.1", - "has-yarn": "^2.1.0", - "import-lazy": "^2.1.0", - "is-ci": "^2.0.0", - "is-installed-globally": "^0.4.0", - "is-npm": "^5.0.0", - "is-yarn-global": "^0.3.0", - "latest-version": "^5.1.0", - "pupa": "^2.1.1", - "semver": "^7.3.4", - "semver-diff": "^3.1.1", - "xdg-basedir": "^4.0.0" - } - }, - "url-parse-lax": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/url-parse-lax/-/url-parse-lax-3.0.0.tgz", - "integrity": "sha1-FrXK/Afb42dsGxmZF3gj1lA6yww=", - "dev": true, - "requires": { - "prepend-http": "^2.0.0" - } - }, - "util-deprecate": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", - "integrity": "sha1-RQ1Nyfpw3nMnYvvS1KKJgUGaDM8=", - "dev": true - }, - "validate-npm-package-license": { - "version": "3.0.4", - "resolved": "https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz", - "integrity": "sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew==", - "dev": true, - "requires": { - "spdx-correct": "^3.0.0", - "spdx-expression-parse": "^3.0.0" - } - }, - "wcwidth": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/wcwidth/-/wcwidth-1.0.1.tgz", - "integrity": "sha1-8LDc+RW8X/FSivrbLA4XtTLaL+g=", - "dev": true, - "requires": { - "defaults": "^1.0.3" - } - }, - "well-known-symbols": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/well-known-symbols/-/well-known-symbols-2.0.0.tgz", - "integrity": "sha512-ZMjC3ho+KXo0BfJb7JgtQ5IBuvnShdlACNkKkdsqBmYw3bPAaJfPeYUo6tLUaT5tG/Gkh7xkpBhKRQ9e7pyg9Q==", - "dev": true - }, - "widest-line": { - "version": "3.1.0", - "resolved": "https://registry.npmjs.org/widest-line/-/widest-line-3.1.0.tgz", - "integrity": "sha512-NsmoXalsWVDMGupxZ5R08ka9flZjjiLvHVAWYOKtiKM8ujtZWr9cRffak+uSE48+Ob8ObalXpwyeUiyDD6QFgg==", - "dev": true, - "requires": { - "string-width": "^4.0.0" - } - }, - "wrap-ansi": { - "version": "7.0.0", - "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", - "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "node_modules/typescript": { + "version": "5.9.3", + "resolved": "https://registry.npmjs.org/typescript/-/typescript-5.9.3.tgz", + "integrity": "sha512-jl1vZzPDinLr9eUt3J/t7V6FgNEw9QjvBPdysz9KfQDD41fQrC2Y4vKQdiaUpFT4bXlb1RHhLpp8wtm6M5TgSw==", "dev": true, - "requires": { - "ansi-styles": "^4.0.0", - "string-width": "^4.1.0", - "strip-ansi": "^6.0.0" + "license": "Apache-2.0", + "bin": { + "tsc": "bin/tsc", + "tsserver": "bin/tsserver" }, - "dependencies": { - "ansi-styles": { - "version": "4.3.0", - "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", - "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", - "dev": true, - "requires": { - "color-convert": "^2.0.1" - } - } + "engines": { + "node": ">=14.17" } }, - "wrappy": { - "version": "1.0.2", - "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", - "integrity": "sha1-tSQ9jz7BqjXxNkYFvA0QNuMKtp8=", - "dev": true - }, - "write-file-atomic": { - "version": "3.0.3", - "resolved": "https://registry.npmjs.org/write-file-atomic/-/write-file-atomic-3.0.3.tgz", - "integrity": "sha512-AvHcyZ5JnSfq3ioSyjrBkH9yW4m7Ayk8/9My/DD9onKeu/94fwrMocemO2QAJFAlnnDN+ZDS+ZjAR5ua1/PV/Q==", + "node_modules/undici-types": { + "version": "6.21.0", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-6.21.0.tgz", + "integrity": "sha512-iwDZqg0QAGrg9Rav5H4n0M64c3mkR59cJ6wQp+7C4nI0gsmExaedaYLNO44eT4AtBBwjbTiGPMlt2Md0T9H9JQ==", "dev": true, - "requires": { - "imurmurhash": "^0.1.4", - "is-typedarray": "^1.0.0", - "signal-exit": "^3.0.2", - "typedarray-to-buffer": "^3.1.5" - } - }, - "xdg-basedir": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/xdg-basedir/-/xdg-basedir-4.0.0.tgz", - "integrity": "sha512-PSNhEJDejZYV7h50BohL09Er9VaIefr2LMAf3OEmpCkjOi34eYyQYAXUTjEQtZJTKcF0E2UKTh+osDLsgNim9Q==", - "dev": true - }, - "y18n": { - "version": "5.0.5", - "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.5.tgz", - "integrity": "sha512-hsRUr4FFrvhhRH12wOdfs38Gy7k2FFzB9qgN9v3aLykRq0dRcdcpz5C9FxdS2NuhOrI/628b/KSTJ3rwHysYSg==", - "dev": true - }, - "yallist": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", - "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==", - "dev": true + "license": "MIT" }, - "yargs": { - "version": "16.2.0", - "resolved": "https://registry.npmjs.org/yargs/-/yargs-16.2.0.tgz", - "integrity": "sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw==", + "node_modules/uvu": { + "version": "0.5.6", + "resolved": "https://registry.npmjs.org/uvu/-/uvu-0.5.6.tgz", + "integrity": "sha512-+g8ENReyr8YsOc6fv/NVJs2vFdHBnBNdfE49rshrTzDWOlUx4Gq7KOS2GD8eqhy2j+Ejq29+SbKH8yjkAqXqoA==", "dev": true, - "requires": { - "cliui": "^7.0.2", - "escalade": "^3.1.1", - "get-caller-file": "^2.0.5", - "require-directory": "^2.1.1", - "string-width": "^4.2.0", - "y18n": "^5.0.5", - "yargs-parser": "^20.2.2" + "license": "MIT", + "dependencies": { + "dequal": "^2.0.0", + "diff": "^5.0.0", + "kleur": "^4.0.3", + "sade": "^1.7.3" + }, + "bin": { + "uvu": "bin.js" + }, + "engines": { + "node": ">=8" } - }, - "yargs-parser": { - "version": "20.2.7", - "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-20.2.7.tgz", - "integrity": "sha512-FiNkvbeHzB/syOjIUxFDCnhSfzAL8R5vs40MgLFBorXACCOAEaWu0gRZl14vG8MR9AOJIZbmkjhusqBYZ3HTHw==", - "dev": true } } } diff --git a/packages/util-git-info/package.json b/packages/util-git-info/package.json index 5d6845e..385aea4 100644 --- a/packages/util-git-info/package.json +++ b/packages/util-git-info/package.json @@ -3,8 +3,12 @@ "version": "0.1.9", "description": "Utility for dealing with modified, created, deleted files since a git commit", "main": "src/index.js", + "types": "types/index.d.ts", "scripts": { - "test": "ava ./**.test.js", + "test": "uvu . \\.test\\.js$", + "check": "tsc --noEmit", + "types": "tsc", + "prepublishOnly": "npm run types", "publish": "git push origin && git push origin --tags", "release:patch": "npm version patch && npm publish", "release:minor": "npm version minor && npm publish", @@ -15,6 +19,7 @@ "files": [ "dist", "src", + "types", "README.md" ], "dependencies": { @@ -35,6 +40,8 @@ "url": "https://github.com/DavidWells/components/tree/master/packages/util-git-info" }, "devDependencies": { - "ava": "^3.15.0" + "@types/node": "^22.10.1", + "typescript": "^5.7.2", + "uvu": "^0.5.6" } } diff --git a/packages/util-git-info/src/chainsmoker.js b/packages/util-git-info/src/chainsmoker.js index 4dd735b..d19bc16 100755 --- a/packages/util-git-info/src/chainsmoker.js +++ b/packages/util-git-info/src/chainsmoker.js @@ -4,12 +4,40 @@ const micromatch = require('micromatch') const isExclude = p => p.startsWith('!') +/** + * @typedef {import('./types').FileMatchResult} FileMatchResult + */ + +/** + * Creates a file matching function for categorized file paths + * @param {Object} keyedPaths - Object with keys (modified, created, deleted, edited) mapped to file path arrays + * @returns {function(...(string|string[])): FileMatchResult} Function that accepts glob patterns and returns matching results + */ module.exports = function chainsmoker(keyedPaths) { - return (...globPatterns) => { + /** + * Matches files against glob patterns + * @param {...(string|string[])} globPatterns - One or more glob patterns or arrays of patterns. Use '!' prefix for exclusion + * @returns {FileMatchResult} Object containing boolean flags and arrays of matching files + * @example + * // Single pattern + * fileMatch('src/**\/*.js') + * + * // Multiple patterns + * fileMatch('**\/*.js', '**\/*.ts') + * + * // Array of patterns + * fileMatch(['**\/*.js', '**\/*.ts']) + * + * // Exclusion patterns + * fileMatch('src/**\/*', '!**\/*.test.js') + */ + const matchFunction = (...globPatterns) => { + /** @type {string[]} */ const patterns = globPatterns.flatMap((glob) => glob) const excludePatterns = patterns.filter(p => isExclude(p)) const includePatterns = patterns.filter(p => !isExclude(p)) + /** @type {Record} */ const matches = {} Object.keys(keyedPaths).forEach((key) => { const paths = keyedPaths[key] @@ -35,15 +63,24 @@ module.exports = function chainsmoker(keyedPaths) { // console.log('matches', matches) return finalize(matches) } + return matchFunction } +/** + * Finalizes the match results into FileMatchResult format + * @param {Object} keyedPaths - Object with matched file paths + * @returns {FileMatchResult} Formatted result with boolean flags and file arrays + */ function finalize(keyedPaths) { + /** @type {any} */ const values = {} Object.keys(keyedPaths).forEach((key) => { values[key] = keyedPaths[key].length > 0 values[`${key}Files`] = keyedPaths[key] }) - return Object.assign(values, { + /** @type {FileMatchResult} */ + const result = Object.assign(values, { getKeyedPaths: () => keyedPaths }) + return result } diff --git a/packages/util-git-info/src/git/commits/getAllCommits.js b/packages/util-git-info/src/git/commits/getAllCommits.js index f4fad1d..a9e7128 100644 --- a/packages/util-git-info/src/git/commits/getAllCommits.js +++ b/packages/util-git-info/src/git/commits/getAllCommits.js @@ -2,6 +2,19 @@ const { getFirstCommit } = require('./getFirstCommit') const { getLastCommit } = require('./getLastCommit') const { gitDetails } = require('../getDetails') +/** + * @typedef {import('../../types').CommitInfo} CommitInfo + */ + +/** + * Gets all commits in the repository from first to last + * @returns {Promise} Promise that resolves to array of all commits in chronological order + * @example + * const commits = await getAllCommits() + * commits.forEach(commit => { + * console.log(`${commit.sha}: ${commit.subject}`) + * }) + */ async function getAllCommits() { const firstCommit = await getFirstCommit() // console.log('firstCommit', firstCommit) diff --git a/packages/util-git-info/src/git/commits/getCommit.js b/packages/util-git-info/src/git/commits/getCommit.js index 0cda4e6..dd68e04 100644 --- a/packages/util-git-info/src/git/commits/getCommit.js +++ b/packages/util-git-info/src/git/commits/getCommit.js @@ -1,9 +1,26 @@ const { executeCommand } = require('../utils/exec') const { parse, getPrettyFormat } = require('./utils/pretty-format') + const HASH_REGEX = /\b[0-9a-f]{5,40}\b/ +/** + * @typedef {import('../../types').CommitInfo} CommitInfo + */ + +/** + * Gets detailed information about a specific git commit by its hash + * @param {string} hash - The git commit hash (short or full SHA) + * @param {Object} [options] - Optional execution options + * @returns {Promise} Promise that resolves to commit details including SHA, author, committer, message, branch, and tags + * @throws {Error} Throws if hash is not provided or invalid + * @example + * const commit = await getCommit('abc123') + * console.log('Author:', commit.author.name) + * console.log('Message:', commit.subject) + * console.log('SHA:', commit.sha) + */ function getCommit(hash, options) { - if (!hash || HASH_REGEX.test(hash)) { + if (!hash || !HASH_REGEX.test(hash)) { throw new Error('Must use git hash') } /* git show diff --git a/packages/util-git-info/src/git/commits/getFirstCommit.js b/packages/util-git-info/src/git/commits/getFirstCommit.js index 5b49372..2dcc391 100644 --- a/packages/util-git-info/src/git/commits/getFirstCommit.js +++ b/packages/util-git-info/src/git/commits/getFirstCommit.js @@ -2,8 +2,17 @@ const { getCommit } = require('./getCommit') const { spawn } = require('child_process') /** - * Get first commit hash of repo - * @returns {String} hash + * @typedef {import('../../types').CommitInfo} CommitInfo + */ + +/** + * Gets the hash of the first commit in the repository + * Uses git rev-list to find the initial commit with no parents + * @returns {Promise} Promise that resolves to the SHA hash of the first commit + * @throws {Error} Throws if git command fails or if not in a git repository + * @example + * const hash = await getFirstCommitHash() + * // Returns: 'a1b2c3d4e5f6...' (40-character SHA-1 hash) */ function getFirstCommitHash() { return new Promise((resolve, reject) => { @@ -24,8 +33,14 @@ function getFirstCommitHash() { } /** - * Get first commit details of repo - * @returns {Object} commit details + * Gets detailed information about the first commit in the repository + * @returns {Promise} Promise that resolves to commit details object containing SHA, author, committer, message, branch, and tags + * @throws {Error} Throws if git command fails or if not in a git repository + * @example + * const firstCommit = await getFirstCommit() + * console.log('Subject:', firstCommit.subject) + * console.log('Author:', firstCommit.author.name) + * console.log('SHA:', firstCommit.sha) */ async function getFirstCommit() { const hash = await getFirstCommitHash() diff --git a/packages/util-git-info/src/git/commits/getLastCommit.js b/packages/util-git-info/src/git/commits/getLastCommit.js index 3d224ac..fccef13 100644 --- a/packages/util-git-info/src/git/commits/getLastCommit.js +++ b/packages/util-git-info/src/git/commits/getLastCommit.js @@ -2,6 +2,19 @@ const { executeCommand } = require('../utils/exec') const { parse, getPrettyFormat, removeSignedOffBy } = require('./utils/pretty-format') // Via https://github.com/seymen/git-last-commit/blob/master/source/index.js +/** + * @typedef {import('../../types').CommitInfo} CommitInfo + */ + +/** + * Gets detailed information about the last commit in the repository + * @returns {Promise} Promise that resolves to the last commit details including SHA, author, committer, message, branch, and tags + * @example + * const lastCommit = await getLastCommit() + * console.log('Last commit:', lastCommit.subject) + * console.log('Author:', lastCommit.author.name) + * console.log('SHA:', lastCommit.sha) + */ function getLastCommit() { const command = `git log -1 --pretty=format:"${getPrettyFormat()}" && git rev-parse --abbrev-ref HEAD && git tag --contains HEAD` return new Promise((resolve, reject) => { @@ -12,6 +25,14 @@ function getLastCommit() { }) } +/** + * Gets the current HEAD revision SHA + * @returns {Promise<{sha: string, shortSha: string}>} Promise that resolves to object with full and short SHA + * @example + * const revision = await getCurrentRevision() + * console.log('Current SHA:', revision.sha) + * console.log('Short SHA:', revision.shortSha) + */ function getCurrentRevision() { return new Promise((resolve, reject) => { executeCommand('git rev-parse HEAD', (err, res) => { @@ -25,6 +46,13 @@ function getCurrentRevision() { }) } +/** + * Gets the commit message of the current HEAD commit + * @returns {Promise} Promise that resolves to the commit message (with Signed-off-by lines removed) + * @example + * const message = await getCurrentCommitMessage() + * console.log('Current commit message:', message) + */ function getCurrentCommitMessage() { return new Promise((resolve, reject) => { executeCommand('git show -s --format=%B HEAD', (err, res) => { diff --git a/packages/util-git-info/src/git/getDetails.js b/packages/util-git-info/src/git/getDetails.js index 59ecfde..1080c96 100644 --- a/packages/util-git-info/src/git/getDetails.js +++ b/packages/util-git-info/src/git/getDetails.js @@ -1,5 +1,32 @@ const { LocalGit } = require('../localGit') +/** + * @typedef {import('../types').GitDetails} GitDetails + */ + +/** + * Gets detailed information about git changes between two refs (commits/branches) + * @param {Object} [opts={}] - Options for getting git details + * @param {string} [opts.base='master'] - The base commit/branch to compare from (e.g., 'master', commit SHA) + * @param {string} [opts.head='HEAD'] - The head commit/branch to compare to (e.g., 'HEAD', branch name, commit SHA) + * @param {string} [opts.from] - Alias for opts.base + * @param {string} [opts.to] - Alias for opts.head + * @returns {Promise} Promise that resolves to git details including modified/created/deleted files, commits, and utility functions + * @example + * const git = await gitDetails({ base: 'main', head: 'feature-branch' }) + * console.log('Modified files:', git.modifiedFiles) + * console.log('Created files:', git.createdFiles) + * console.log('Deleted files:', git.deletedFiles) + * + * // Use fileMatch to filter files by pattern(s) + * const srcFiles = git.fileMatch('src/**\/*.js', '!**\/*.test.js') + * if (srcFiles.modified) { + * console.log('Source files changed:', srcFiles.modifiedFiles) + * } + * + * // Or use array syntax + * const configFiles = git.fileMatch(['**\/package.json', '**\/*.config.js']) + */ async function gitDetails(opts = {}) { const localPlatform = new LocalGit(opts) const git = await localPlatform.getPlatformGitRepresentation() diff --git a/packages/util-git-info/src/git/getGitFiles.js b/packages/util-git-info/src/git/getGitFiles.js index b7f82fd..cb7640b 100644 --- a/packages/util-git-info/src/git/getGitFiles.js +++ b/packages/util-git-info/src/git/getGitFiles.js @@ -5,6 +5,15 @@ const { findUp } = require('./utils/find-up') const regex = /^([A-Z?])\s+(\d{6})\s+([a-z0-9]{40})\s+(\d+)\s+(.*)$/u +/** + * Gets all files tracked by Git in the repository with their hashes + * @param {string} [dir] - Optional directory path to search from. If not provided, searches from current working directory + * @returns {Promise>} Promise that resolves to an object mapping file paths to their Git hashes (or modified timestamps for changed files) + * @throws {Error} Throws if the directory is not a Git repository + * @example + * const files = await getGitFiles('/path/to/repo') + * // Returns: { 'src/index.js': 'abc123...', 'package.json': 'def456...' } + */ async function getGitFiles(dir) { const directory = (dir) ? dir : findUp('.git', process.cwd()) if (!directory) { @@ -23,7 +32,15 @@ async function getGitFiles(dir) { }) } +/** + * Parses the output from git ls-files command and creates a mapping of file paths to hashes + * @param {string} data - Raw output from git ls-files command + * @param {string} dir - The directory path being processed + * @returns {Record} Object mapping file paths to their Git hashes or modification timestamps + * @private + */ function parseFiles(data, dir) { + /** @type {Record} */ const ret = {} data.split('\n').forEach((line) => { const m = regex.exec(line) @@ -48,6 +65,16 @@ function parseFiles(data, dir) { const cache = {} +/** + * Gets Git files relative to a specific directory with optional exclusions and caching + * @param {string} directory - The directory path to get relative files from + * @param {string[]} [exclude=[]] - Optional array of file paths to exclude from results + * @returns {Promise>} Promise that resolves to an object mapping relative file paths to their Git hashes (or modified timestamps for changed files) + * @throws {Error} Throws if the directory is not in a Git repository + * @example + * const files = await getGitFilesRelative('/path/to/repo/src', ['node_modules']) + * // Returns: { 'index.js': 'abc123...', 'utils/helper.js': 'def456...' } + */ async function getGitFilesRelative(directory, exclude = []) { const root = findUp('.git', directory) if (!root) throw new Error(`Not a Git repository ${directory}`) @@ -56,6 +83,7 @@ async function getGitFilesRelative(directory, exclude = []) { cache[root] = await getGitFiles(root) } const files = cache[root] + /** @type {Record} */ const ret = {} Object.entries(files) diff --git a/packages/util-git-info/src/git/gitJSONToGitDSL.js b/packages/util-git-info/src/git/gitJSONToGitDSL.js index 2abf64c..11b8de1 100755 --- a/packages/util-git-info/src/git/gitJSONToGitDSL.js +++ b/packages/util-git-info/src/git/gitJSONToGitDSL.js @@ -108,6 +108,12 @@ module.exports.gitJSONToGitDSL = (gitJSONRep, config) => { }, Object.create(null)) } const linesOfCode = async () => { + // Use optimized numstat if available (single git command vs hundreds) + if (config.getNumstat) { + return await config.getNumstat(config.baseSHA, config.headSHA) + } + + // Fallback to original implementation const [ createdFilesDiffs, modifiedFilesDiffs, diff --git a/packages/util-git-info/src/git/localGetCommits.test.js b/packages/util-git-info/src/git/localGetCommits.test.js index 3bc371c..c273a70 100755 --- a/packages/util-git-info/src/git/localGetCommits.test.js +++ b/packages/util-git-info/src/git/localGetCommits.test.js @@ -1,10 +1,11 @@ -const test = require('ava') +const { test } = require('uvu') +const assert = require('uvu/assert') const { formatJSON, attemptToFix } = require('./localGetCommits') -test('generates a JSON-like commit message', async (t) => { - t.deepEqual(formatJSON, '{ "sha": "%H", "parents": "%p", "author": {"name": "%an", "email": "%ae" }, "committer": {"name": "%cn", "email": "%ce" }, "subject": "%s", "sanitizedSubject": "%f", "body": "%b", "authoredOn": "%aI", "committedOn": "%cI"},') +test('generates a JSON-like commit message', async () => { + assert.equal(formatJSON, '{ "sha": "%H", "parents": "%p", "author": {"name": "%an", "email": "%ae" }, "committer": {"name": "%cn", "email": "%ce" }, "subject": "%s", "sanitizedSubject": "%f", "body": "%b", "authoredOn": "%aI", "committedOn": "%cI"},') const withoutComma = formatJSON.substring(0, formatJSON.length - 1) - t.notThrows(() => JSON.parse(withoutComma)) + assert.not.throws(() => JSON.parse(withoutComma)) }) const malformedCommits = ` { @@ -71,9 +72,9 @@ const malformedCommits = ` { "committedOn": "2021-10-01T15:07:15-07:00" },` -test('Parses commits', async (t) => { +test('Parses commits', async () => { const commits = attemptToFix(malformedCommits.substring(0, malformedCommits.length - 1)) - t.deepEqual(commits, [ + assert.equal(commits, [ { sha: '5212346705e719bb46db0b0e651e2752de4078ff', parents: '077df0e', @@ -120,3 +121,5 @@ test('Parses commits', async (t) => { } ]) }) + +test.run() diff --git a/packages/util-git-info/src/git/localGetLogsAsJson.js b/packages/util-git-info/src/git/localGetLogsAsJson.js index 3df7b05..82b14eb 100755 --- a/packages/util-git-info/src/git/localGetLogsAsJson.js +++ b/packages/util-git-info/src/git/localGetLogsAsJson.js @@ -40,10 +40,12 @@ function getLogAsJson() { }) } -getLogAsJson((d) => { - console.log('d', d) -}).catch((e) => { - console.log('e', e) -}) +if (require.main === module) { + getLogAsJson().then((d) => { + console.log('d', d) + }).catch((e) => { + console.log('e', e) + }) +} module.exports.getLogAsJson = getLogAsJson diff --git a/packages/util-git-info/src/git/localGetNumstat.js b/packages/util-git-info/src/git/localGetNumstat.js new file mode 100644 index 0000000..eb69702 --- /dev/null +++ b/packages/util-git-info/src/git/localGetNumstat.js @@ -0,0 +1,53 @@ +const { debug } = require('../debug') +const { spawn } = require('child_process') + +const d = debug('localGetNumstat') + +/** + * Get line count statistics using git diff --numstat + * Returns total additions + deletions across all files + * + * @param {string} base - Base commit SHA + * @param {string} head - Head commit SHA + * @returns {Promise} Total lines of code changed (additions + deletions) + */ +const localGetNumstat = (base, head) => { + return new Promise((resolve, reject) => { + const args = ['diff', `${base}...${head}`, '--numstat'] + let stdout = '' + const child = spawn('git', args, { env: process.env }) + d('> git', args.join(' ')) + + child.stdout.on('data', chunk => { + stdout += chunk + }) + + child.stderr.on('data', data => { + console.error(`Could not get numstat from git between ${base} and ${head}`) + console.error(`Please double check "${base}" is a valid ref`) + reject(data.toString()) + }) + + child.on('close', function(code) { + if (code === 0) { + // Parse numstat output: "additions deletions filename" per line + // Sum all additions and deletions + let total = 0 + const lines = stdout.trim().split('\n') + + for (const line of lines) { + if (!line) continue + + const parts = line.split(/\s+/) + const additions = parseInt(parts[0], 10) || 0 + const deletions = parseInt(parts[1], 10) || 0 + total += additions + deletions + } + + resolve(total) + } + }) + }) +} + +module.exports.localGetNumstat = localGetNumstat diff --git a/packages/util-git-info/src/localGit.js b/packages/util-git-info/src/localGit.js index 5ad5f7d..03bf58b 100755 --- a/packages/util-git-info/src/localGit.js +++ b/packages/util-git-info/src/localGit.js @@ -4,8 +4,27 @@ const { diffToGitJSONDSL } = require('./git/diffToGitJSONDSL') const { localGetDiff } = require('./git/localGetDiff') const { localGetFileAtSHA } = require('./git/localGetFileAtSHA') const { localGetCommits } = require('./git/localGetCommits') +const { localGetNumstat } = require('./git/localGetNumstat') +const DEBUG_TIMING = false + +/** + * @typedef {import('./types').GitDetails} GitDetails + */ + +/** + * LocalGit class for working with local git repositories + * @class + */ class LocalGit { + /** + * Creates a new LocalGit instance + * @param {Object} options - Configuration options + * @param {string} [options.from] - Alias for base commit/branch + * @param {string} [options.base='master'] - The base commit/branch to compare from + * @param {string} [options.to] - Alias for head commit/branch + * @param {string} [options.head='HEAD'] - The head commit/branch to compare to + */ constructor(options) { this.options = options this.getFileContents = path => { @@ -16,6 +35,10 @@ class LocalGit { this.base = this.options.from || this.options.base || 'master' this.head = this.options.to || this.options.head || 'HEAD' } + /** + * Gets the git diff between base and head + * @returns {Promise} Promise that resolves to the git diff output + */ async getGitDiff() { if (this.gitDiff) { return this.gitDiff @@ -23,33 +46,70 @@ class LocalGit { this.gitDiff = await localGetDiff(this.base, this.head) return this.gitDiff } + /** + * Validates that there are changes between base and head + * @returns {Promise} Promise that resolves to true if there are changes, false otherwise + */ async validateThereAreChanges() { const diff = await this.getGitDiff() return diff.trim().length > 0 } + /** + * Gets platform review DSL representation (not implemented for local git) + * @returns {Promise} Always resolves to null + */ async getPlatformReviewDSLRepresentation() { return null } + /** + * Gets the git representation including modified/created/deleted files, commits, and utility functions + * @returns {Promise} Promise that resolves to git details object + */ async getPlatformGitRepresentation() { const base = this.base const head = this.head + + const t0 = DEBUG_TIMING ? Date.now() : 0 const diff = await this.getGitDiff() + const t1 = DEBUG_TIMING ? Date.now() : 0 + if (DEBUG_TIMING) console.log(` ā±ļø getGitDiff: ${t1 - t0}ms`) + // Array of commits const commits = await localGetCommits(base, head) + const t2 = DEBUG_TIMING ? Date.now() : 0 + if (DEBUG_TIMING) console.log(` ā±ļø localGetCommits: ${t2 - t1}ms`) + // console.log('commits', commits) const gitJSON = diffToGitJSONDSL(diff, commits) + const t3 = DEBUG_TIMING ? Date.now() : 0 + if (DEBUG_TIMING) console.log(` ā±ļø diffToGitJSONDSL: ${t3 - t2}ms (parsing ${diff.split('\n').length} lines of diff)`) + const config = { repo: process.cwd(), baseSHA: base, headSHA: head, getFileContents: localGetFileAtSHA, - getFullDiff: localGetDiff + getFullDiff: localGetDiff, + getNumstat: localGetNumstat } - return gitJSONToGitDSL(gitJSON, config) + const result = gitJSONToGitDSL(gitJSON, config) + const t4 = DEBUG_TIMING ? Date.now() : 0 + if (DEBUG_TIMING) console.log(` ā±ļø gitJSONToGitDSL: ${t4 - t3}ms`) + + return result } + /** + * Gets inline comments (not implemented for local git) + * @param {*} _ - Unused parameter + * @returns {Promise} Always resolves to empty array + */ async getInlineComments(_) { return [] } + /** + * Gets review info (not implemented for local git) + * @returns {Promise} Always resolves to empty object + */ async getReviewInfo() { return {} } diff --git a/packages/util-git-info/src/types.js b/packages/util-git-info/src/types.js new file mode 100644 index 0000000..c69c152 --- /dev/null +++ b/packages/util-git-info/src/types.js @@ -0,0 +1,50 @@ +/** + * @typedef {Object} AuthorInfo + * @property {string} name - Author's name + * @property {string} email - Author's email address + */ + +/** + * @typedef {Object} CommitterInfo + * @property {string} name - Committer's name + * @property {string} email - Committer's email address + */ + +/** + * @typedef {Object} CommitInfo + * @property {string} sha - Full commit SHA hash + * @property {string} subject - Commit message subject line + * @property {string} sanitizedSubject - Sanitized commit subject (suitable for file names) + * @property {string} body - Full commit message body + * @property {AuthorInfo} author - Commit author information + * @property {CommitterInfo} committer - Commit committer information + * @property {string} branch - Branch name + * @property {string[]} tags - Tags associated with the commit + */ + +/** + * @typedef {Object} FileMatchResult + * @property {boolean} modified - Whether any files matching the pattern were modified + * @property {string[]} modifiedFiles - Array of modified files matching the pattern + * @property {boolean} created - Whether any files matching the pattern were created + * @property {string[]} createdFiles - Array of created files matching the pattern + * @property {boolean} deleted - Whether any files matching the pattern were deleted + * @property {string[]} deletedFiles - Array of deleted files matching the pattern + * @property {boolean} edited - Whether any files matching the pattern were modified or created + * @property {string[]} editedFiles - Array of modified and created files matching the pattern + * @property {function(): Object} getKeyedPaths - Returns an object with keys (modified, created, deleted, edited) mapped to their matching file arrays + */ + +/** + * @typedef {Object} GitDetails + * @property {function(...(string|string[])): FileMatchResult} fileMatch - Function to match files by glob pattern(s). Accepts multiple strings, arrays of strings, or a mix using rest parameters. Supports negation patterns with '!' prefix + * @property {string[]} modifiedFiles - Array of modified file paths + * @property {string[]} createdFiles - Array of created file paths + * @property {string[]} deletedFiles - Array of deleted file paths + * @property {CommitInfo[]} commits - Array of commits between base and head + * @property {string} lastCommit - SHA of the last commit + * @property {string} dir - Path to the git repository + * @property {function(): Promise} linesOfCode - Async function that returns total lines of code changed + */ + +module.exports = {} diff --git a/packages/util-git-info/tests/api.test.js b/packages/util-git-info/tests/api.test.js index 1723a1d..7c7c0e5 100644 --- a/packages/util-git-info/tests/api.test.js +++ b/packages/util-git-info/tests/api.test.js @@ -1,6 +1,8 @@ const { env, chdir, cwd: getCwd } = require('process') - -const test = require('ava') +const fs = require('fs') +const path = require('path') +const { test } = require('uvu') +const assert = require('uvu/assert') const { gitDetails } = require('../src') @@ -11,10 +13,23 @@ const HEAD = '3a2fc89924f0ef9f0244cad29f1d7404be5fe54b' const UNKNOWN_COMMIT = 'aaaaaaaa' const DEFAULT_OPTS = { base: BASE, head: HEAD } -test('Should define all its methods and properties', async (t) => { +// Wrapper to add timing to tests +const timedTest = (name, fn) => { + test(name, async (context) => { + const start = Date.now() + try { + await fn(context) + } finally { + const duration = Date.now() - start + console.log(` ā±ļø ${name}: ${duration}ms`) + } + }) +} + +timedTest('Should define all its methods and properties', async () => { const git = await gitDetails(DEFAULT_OPTS) // console.log('git', git) - t.deepEqual(Object.keys(git).sort(), [ + assert.equal(Object.keys(git).sort(), [ 'commits', 'createdFiles', 'deletedFiles', @@ -26,25 +41,28 @@ test('Should define all its methods and properties', async (t) => { ]) }) -test('Should be callable with no options', async (t) => { +timedTest('Should be callable with no options', async () => { const { linesOfCode } = await gitDetails() const lines = await linesOfCode() - t.true(Number.isInteger(lines)) + assert.ok(Number.isInteger(lines)) }) -test('Option "head" should have a default value', async (t) => { - const { linesOfCode } = await gitDetails({ base: BASE }) +timedTest('Option "head" should have a default value', async () => { + const result = await gitDetails({ base: BASE }) + // write result to file + fs.writeFileSync(path.join(__dirname, 'result.json'), JSON.stringify(result, null, 2)) + const { linesOfCode } = result const lines = await linesOfCode() - t.true(Number.isInteger(lines)) + assert.ok(Number.isInteger(lines)) }) -test('Options "base" and "head" can be the same commit', async (t) => { +timedTest('Options "base" and "head" can be the same commit', async () => { const { linesOfCode, modifiedFiles, createdFiles, deletedFiles } = await gitDetails({ base: HEAD, head: HEAD }) const lines = await linesOfCode() - t.is(lines, 0) - t.deepEqual(modifiedFiles, []) - t.deepEqual(createdFiles, []) - t.deepEqual(deletedFiles, []) + assert.is(lines, 0) + assert.equal(modifiedFiles, []) + assert.equal(createdFiles, []) + assert.equal(deletedFiles, []) }) /* @@ -90,18 +108,18 @@ test('Should throw when the current directory is invalid', (t) => { }) */ -test('Should return the number of lines of code', async (t) => { +timedTest('Should return the number of lines of code', async () => { const api = await gitDetails(DEFAULT_OPTS) const { linesOfCode } = api const lines = await linesOfCode() - t.is(lines, LINES_OF_CODE) + assert.is(lines, LINES_OF_CODE) }) -test('Should return the commits', async (t) => { +timedTest('Should return the commits', async () => { const { commits } = await gitDetails(DEFAULT_OPTS) - t.is(commits.length, 34) + assert.is(commits.length, 34) const [{ sha, author, committer, subject, sanitizedSubject }] = commits - t.deepEqual( + assert.equal( { sha, author, committer, subject, sanitizedSubject }, { sha: '3a2fc89924f0ef9f0244cad29f1d7404be5fe54b', @@ -113,10 +131,10 @@ test('Should return the commits', async (t) => { ) }) -test('Should return the modified/created/deleted files', async (t) => { +timedTest('Should return the modified/created/deleted files', async () => { const api = await gitDetails(DEFAULT_OPTS) const { modifiedFiles, createdFiles, deletedFiles } = api - t.deepEqual(modifiedFiles, [ + assert.equal(modifiedFiles, [ 'package.json', 'packages/Form/README.md', 'packages/Icon/package.json', @@ -129,7 +147,7 @@ test('Should return the modified/created/deleted files', async (t) => { 'packages/config-postcss/package.json', 'packages/config-postcss/src/_mixins.js' ]) - t.deepEqual(createdFiles, [ + assert.equal(createdFiles, [ 'README.md', 'packages/config-eslint/.editorconfig', 'packages/config-eslint/.gitignore', @@ -175,10 +193,10 @@ test('Should return the modified/created/deleted files', async (t) => { 'packages/util-quick-persist/package.json', 'scripts/docs.js' ]) - t.deepEqual(deletedFiles, []) + assert.equal(deletedFiles, []) }) -test('Should return whether specific files are modified/created/deleted/edited', async (t) => { +timedTest('Should return whether specific files are modified/created/deleted/edited', async () => { const { fileMatch } = await gitDetails(DEFAULT_OPTS) // Match json files but not package.json const matchApi = fileMatch('**/**.json', '!**/package.json') @@ -193,23 +211,23 @@ test('Should return whether specific files are modified/created/deleted/edited', editedFiles, } = matchApi - t.deepEqual(modified, true) - t.deepEqual(created, true) - t.deepEqual(deleted, false) - t.deepEqual(edited, true) + assert.equal(modified, true) + assert.equal(created, true) + assert.equal(deleted, false) + assert.equal(edited, true) - t.deepEqual(modifiedFiles, [ + assert.equal(modifiedFiles, [ 'packages/Input/example/package-lock.json', 'packages/config-postcss/package-lock.json' ]) - t.deepEqual(createdFiles, [ + assert.equal(createdFiles, [ 'packages/config-eslint/tsconfig.json', 'packages/config-prettier/index.json', 'packages/util-git-info/package-lock.json', 'packages/util-persist-previous-build-assets/package-lock.json' ]) - t.deepEqual(deletedFiles, []) - t.deepEqual(editedFiles, [ + assert.equal(deletedFiles, []) + assert.equal(editedFiles, [ 'packages/Input/example/package-lock.json', 'packages/config-postcss/package-lock.json', 'packages/config-eslint/tsconfig.json', @@ -218,3 +236,5 @@ test('Should return whether specific files are modified/created/deleted/edited', 'packages/util-persist-previous-build-assets/package-lock.json' ]) }) + +test.run() diff --git a/packages/util-git-info/tsconfig.json b/packages/util-git-info/tsconfig.json new file mode 100644 index 0000000..15b9e25 --- /dev/null +++ b/packages/util-git-info/tsconfig.json @@ -0,0 +1,54 @@ +{ + "compilerOptions": { + // Enable type checking for JavaScript files + "allowJs": true, + "checkJs": true, + + // Generate declaration files (.d.ts) from JSDoc + "declaration": true, + "emitDeclarationOnly": true, + "declarationDir": "./types", + + // Module settings + "module": "commonjs", + "target": "ES2020", + "moduleResolution": "node", + + // Strict type checking options + "strict": false, + "noImplicitAny": false, + "strictNullChecks": false, + "strictFunctionTypes": false, + "strictBindCallApply": false, + "strictPropertyInitialization": false, + "noImplicitThis": false, + "alwaysStrict": false, + + // Additional checks + "noUnusedLocals": false, + "noUnusedParameters": false, + "noImplicitReturns": false, + "noFallthroughCasesInSwitch": false, + + // Skip strict checks for JSDoc type generation + "noEmitOnError": false, + + // Module resolution + "esModuleInterop": true, + "skipLibCheck": true, + "forceConsistentCasingInFileNames": true, + + // Output settings + "outDir": "./types", + "rootDir": "./src" + }, + "include": [ + "src/**/*.js" + ], + "exclude": [ + "node_modules", + "tests", + "**/*.test.js", + "types" + ] +}