docs(changelog test): i test how to automate ChangeLog

This commit is contained in:
Mert Gör
2024-01-31 23:37:33 +03:00
parent 6dfce49cac
commit 57619fa0c1
4206 changed files with 206871 additions and 0 deletions

11
node_modules/commitizen/.editorconfig generated vendored Normal file
View File

@@ -0,0 +1,11 @@
root = true
[*]
insert_final_newline = true
charset = utf-8
trim_trailing_whitespace = true
end_of_line = lf
[*.{js,json}]
indent_style = space
indent_size = 2

12
node_modules/commitizen/.eslintrc generated vendored Normal file
View File

@@ -0,0 +1,12 @@
{
"extends": "standard",
"rules": {
"brace-style": 0,
"comma-dangle": 0,
"indent": 0,
"operator-linebreak": 0,
"padded-blocks": 0,
"quotes": 0,
"semi": 0
}
}

20
node_modules/commitizen/.github/workflows/release.yml generated vendored Normal file
View File

@@ -0,0 +1,20 @@
name: Release
"on":
push:
branches:
- master
jobs:
release:
name: release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
cache: npm
node-version: lts/*
- run: npm clean-install
- run: npx semantic-release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}

37
node_modules/commitizen/CONTRIBUTING.md generated vendored Normal file
View File

@@ -0,0 +1,37 @@
# Contribution guide
## Developing commitizen
You consider contributing changes to commitizen thank you!
Please consider these guidelines when filing a pull request:
* Commits follow the [Angular commit convention](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines)
* JavaScript is written using ES2015 features
* 2 spaces indentation
* Features and bug fixes should be covered by test cases
## Creating releases
commitizen uses [semantic-release](https://github.com/semantic-release/semantic-release)
to release new versions automatically.
* Commits of type `fix` will trigger bugfix releases, think `0.0.1`
* Commits of type `feat` will trigger feature releases, think `0.1.0`
* Commits with `BREAKING CHANGE` in body or footer will trigger breaking releases, think `1.0.0`
All other commit types will trigger no new release.
## Gotchas
### Atom removes lines with just spaces, breaking tests
When using Atom, if you edit some of our tests, atom will remove the whitespace on some lines. Unfortunately we wanted this whitespace to
able to test multiline commits and their difference across operating
systems. Atom has decided to keep the stripping of whitespace as a
default. Although we understand this decision, it has the unfortunate
side effect of editing parts of the file that you might not have
intended. We think this should be left up to more configurable tools
like eslint.
For now, in order to work around this, you can take the steps outlined
[here](https://github.com/atom/whitespace/issues/10#issuecomment-85183781) to temporarily disable automatic whitespace removal in Atom.

19
node_modules/commitizen/LICENSE generated vendored Normal file
View File

@@ -0,0 +1,19 @@
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.

359
node_modules/commitizen/README.md generated vendored Normal file
View File

@@ -0,0 +1,359 @@
## Commitizen for contributors
When you commit with Commitizen, you'll be prompted to fill out any required commit fields at commit time. No more waiting until later for a git commit hook to run and reject your commit (though [that](https://github.com/kentcdodds/validate-commit-msg) can still be helpful). No more digging through [CONTRIBUTING.md](CONTRIBUTING.md) to find what the preferred format is. Get instant feedback on your commit message formatting and be prompted for required fields.
[![Backers on Open Collective](https://opencollective.com/commitizen/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/commitizen/sponsors/badge.svg)](#sponsors) [![travis.ci](https://img.shields.io/travis/commitizen/cz-cli.svg?branch=master)](https://travis-ci.org/commitizen/cz-cli) [![Azure Build Status](https://dev.azure.com/commitizen/cz-cli/_apis/build/status/commitizen.cz-cli?branchName=master)](https://dev.azure.com/commitizen/cz-cli/_build/latest?definitionId=2)
[![codecov.io](https://img.shields.io/codecov/c/github/commitizen/cz-cli.svg)](https://codecov.io/github/commitizen/cz-cli?branch=master) [![npm monthly downloads](https://img.shields.io/npm/dm/commitizen.svg)](https://www.npmjs.com/package/commitizen) [![current version](https://img.shields.io/npm/v/commitizen.svg)](https://www.npmjs.com/package/commitizen) [![semantic-release](https://img.shields.io/badge/%20%20%F0%9F%93%A6%F0%9F%9A%80-semantic--release-e10079.svg)](https://github.com/semantic-release/semantic-release) [![commitizen on stackoverflow](https://img.shields.io/badge/stackoverflow-community-orange.svg?longCache=true&logo=stackoverflow)](https://stackoverflow.com/tags/commitizen)
## Installing the command line tool
Commitizen is currently tested against Node.js 12, 14, & 16, although it may work in
older versions of Node.js. You should also have npm 6 or greater.
Installation is as simple as running the following command (if you see `EACCES` error, reading [fixing npm permissions](https://docs.npmjs.com/getting-started/fixing-npm-permissions) may help):
```sh
npm install -g commitizen
```
## Using the command line tool
### If your repo is [Commitizen friendly](#making-your-repo-commitizen-friendly):
Simply use `git cz` or just `cz` instead of `git commit` when committing. You can also use `git-cz`, which is an alias for `cz`.
_Alternatively_, if you are using **npm 5.2+** you can [use `npx`](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) instead of installing globally:
```sh
npx cz
```
or as an npm script:
```json
...
"scripts": {
"commit": "cz"
}
```
When you're working in a Commitizen-friendly repository, you'll be prompted to fill in any required fields, and your commit messages will be formatted according to the standards defined by project maintainers.
[![Add and commit with Commitizen](https://github.com/commitizen/cz-cli/raw/master/meta/screenshots/add-commit.png)](https://github.com/commitizen/cz-cli/raw/master/meta/screenshots/add-commit.png)
### If your repo is NOT Commitizen friendly:
If you're **not** working in a Commitizen-friendly repository, then `git cz` will work just the same as `git commit`, but `npx cz` will use the [streamich/git-cz](https://github.com/streamich/git-cz) adapter. To fix this, you need to first [make your repo Commitizen friendly](#making-your-repo-commitizen-friendly)
## Making your repo Commitizen friendly
For this example, we'll be setting up our repo to use [AngularJS's commit message convention](https://github.com/angular/angular.js/blob/master/DEVELOPERS.md#-git-commit-guidelines), also known as [conventional-changelog](https://github.com/ajoslin/conventional-changelog).
First, install the Commitizen CLI tools:
```sh
npm install commitizen -g
```
Next, initialize your project to use the cz-conventional-changelog adapter by typing:
```sh
# npm
commitizen init cz-conventional-changelog --save-dev --save-exact
# yarn
commitizen init cz-conventional-changelog --yarn --dev --exact
# pnpm
commitizen init cz-conventional-changelog --pnpm --save-dev --save-exact
```
Note that if you want to force install over the top of an old adapter, you can apply the `--force` argument. For more information on this, just run `commitizen help`.
The above command does three things for you:
1. Installs the cz-conventional-changelog adapter npm module
2. Saves it to `package.json`'s `dependencies` or `devDependencies`
3. Adds the `config.commitizen` key to the root of your `package.json` file as shown here:
```json
...
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
}
```
Alternatively, Commitizen configs may be added to a `.czrc` file:
```json
{
"path": "cz-conventional-changelog"
}
```
This just tells Commitizen which adapter we actually want our contributors to use when they try to commit to this repo.
`commitizen.path` is resolved via [require.resolve](https://nodejs.org/api/globals.html#globals_require_resolve) and supports:
- npm modules
- directories relative to `process.cwd()` containing an `index.js` file
- file base names relative to `process.cwd()` with `.js` extension
- full relative file names
- absolute paths
Please note that in the previous version of Commitizen we used czConfig. **czConfig has been deprecated**, and you should migrate to the new format before Commitizen 3.0.0.
### Optional: Install and run Commitizen locally
Installing and running Commitizen locally allows you to make sure that developers are running the exact same version of Commitizen on every machine.
Install Commitizen with `npm install --save-dev commitizen`.
On **npm 5.2+** you can [use `npx`](https://medium.com/@maybekatz/introducing-npx-an-npm-package-runner-55f7d4bd282b) to initialize the conventional changelog adapter:
```
npx commitizen init cz-conventional-changelog --save-dev --save-exact
```
For **previous versions of npm (< 5.2)** you can execute `./node_modules/.bin/commitizen` or `./node_modules/.bin/cz` in order to actually use the commands.
You can then initialize the conventional changelog adapter using: `./node_modules/.bin/commitizen init cz-conventional-changelog --save-dev --save-exact`
And you can then add some nice npm scripts in your `package.json` file pointing to the local version of Commitizen:
```json
...
"scripts": {
"commit": "cz"
}
```
This will be more convenient for your users because then if they want to do a commit, all they need to do is run `npm run commit` and they will get the prompts needed to start a commit!
> **NOTE:** If you are using `precommit` hooks thanks to something like [`husky`](https://www.npmjs.com/package/husky), you will need to name your script something other than `"commit"`
> (e.g. `"cm": "cz"`). The reason is because npm scripts has a "feature" where it automatically runs scripts with the name _prexxx_ where _xxx_ is the name of another script. In essence,
> npm and husky will run `"precommit"` scripts twice if you name the script `"commit"`, and the workaround is to prevent the npm-triggered _precommit_ script.
#### Optional: Running Commitizen on `git commit`
This example shows how to incorporate Commitizen into the existing `git commit` workflow by using git hooks and the `--hook` command-line option. This is useful for project maintainers
who wish to ensure the proper commit format is enforced on contributions from those unfamiliar with Commitizen.
Once either of these methods is implemented, users running `git commit` will be presented with an interactive Commitizen session that helps them write useful commit messages.
> **NOTE:** This example assumes that the project has been set up to [use Commitizen locally](https://github.com/commitizen/cz-cli#optional-install-and-run-commitizen-locally).
##### Traditional git hooks
Update `.git/hooks/prepare-commit-msg` with the following code:
```sh
#!/bin/bash
exec < /dev/tty && node_modules/.bin/cz --hook || true
```
##### Husky
For `husky` users, add the following configuration to the project's `package.json` file:
```json
"husky": {
"hooks": {
"prepare-commit-msg": "exec < /dev/tty && npx cz --hook || true"
}
}
```
> **Why `exec < /dev/tty`?** By default, git hooks are not interactive. This command allows the user to use their terminal to interact with Commitizen during the hook.
#### Congratulations! Your repo is Commitizen friendly. Time to flaunt it!
Add the "Commitizen friendly" badge to your README using the following markdown:
```
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
```
Your badge will look like this:
[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
It may also make sense to change your `README.md` or `CONTRIBUTING.md` files to include or link to the Commitizen project so that your new contributors may learn more about installing and using Commitizen.
## Conventional commit messages as a global utility
Install `commitizen` globally, if you have not already.
```sh
npm install -g commitizen
```
Install your preferred `commitizen` adapter globally (for example [`cz-conventional-changelog`](https://www.npmjs.com/package/cz-conventional-changelog)).
```sh
npm install -g cz-conventional-changelog
```
Create a `.czrc` file in your `home` directory, with `path` referring to the preferred, globally-installed, `commitizen` adapter
```sh
echo '{ "path": "cz-conventional-changelog" }' > ~/.czrc
```
You are all set! Now `cd` into any `git` repository and use `git cz` instead of `git commit`, and you will find the `commitizen` prompt.
Pro tip: You can use all the `git commit` `options` with `git cz`. For example: `git cz -a`.
> If your repository is a [Node.js](https://nodejs.org/en/) project, making it [Commitizen friendly](#making-your-repo-commitizen-friendly) is super easy.
If your repository is already [Commitizen friendly](#making-your-repo-commitizen-friendly), the local `commitizen` adapter will be used, instead of globally installed one.
## Commitizen for multi-repo projects
As a project maintainer of many projects, you may want to standardize on a single commit message format for all of them. You can create your own node module which acts as a front-end for Commitizen.
### 1. Create your own entry point script
```js
// my-cli.js
#!/usr/bin/env node
"use strict";
const path = require('path');
const bootstrap = require('commitizen/dist/cli/git-cz').bootstrap;
bootstrap({
cliPath: path.join(__dirname, '../../node_modules/commitizen'),
// this is new
config: {
"path": "cz-conventional-changelog"
}
});
```
### 2. Add the script to your `package.json` file
```json
// package.json
{
"name": "company-commit",
"bin": "./my-cli.js",
"dependencies": {
"commitizen": "^2.7.6",
"cz-conventional-changelog": "^1.1.5"
}
}
```
### 3. Publish it to npm and use it!
```sh
npm install --save-dev company-commit
./node_modules/.bin/company-commit
```
## Adapters
We know that every project and build process has different requirements, so we've tried to keep Commitizen open for extension. You can do this by choosing from any of the pre-built adapters or even by building your own. Here are some of the great adapters available to you:
- [cz-conventional-changelog](https://www.npmjs.com/package/cz-conventional-changelog)
- [cz-conventional-changelog-for-jira](https://www.npmjs.com/package/@digitalroute/cz-conventional-changelog-for-jira)
- [cz-conventional-changelog-with-jiraid-detection](https://www.npmjs.com/package/cz-conventional-changelog-with-jiraid-detection)
- [cz-jira-smart-commit](https://www.npmjs.com/package/cz-jira-smart-commit)
- [@endemolshinegroup/cz-jira-smart-commit](https://github.com/EndemolShineGroup/cz-jira-smart-commit)
- [@endemolshinegroup/cz-github](https://github.com/EndemolShineGroup/cz-github)
- [rb-conventional-changelog](https://www.npmjs.com/package/rb-conventional-changelog)
- [@mapbox/cz-mapbox-changelog](https://www.npmjs.com/package/@mapbox/cz-mapbox-changelog)
- [cz-customizable](https://github.com/leonardoanalista/cz-customizable)
- [cz-commitlint](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/cz-commitlint)
- [commitlint](https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/prompt)
- [vscode-commitizen](https://github.com/KnisterPeter/vscode-commitizen)
- [cz-emoji](https://github.com/ngryman/cz-emoji)
- [cz-adapter-eslint](https://www.npmjs.com/package/cz-adapter-eslint)
- [commitiquette](https://github.com/martinmcwhorter/commitiquette)
- [cz-format-extension](https://github.com/tyankatsu0105/cz-format-extension)
- [cz-emoji-conventional](https://www.npmjs.com/package/cz-emoji-conventional)
- [cz-git](https://github.com/Zhengqbbb/cz-git)
To create an adapter, just fork one of these great adapters and modify it to suit your needs. We pass you an instance of [Inquirer.js](https://github.com/SBoudrias/Inquirer.js/), but you can capture input using whatever means necessary. Just call the `commit` callback with a string and we'll be happy. Publish it to npm, and you'll be all set!
## Retrying failed commits
As of version 2.7.1, you may attempt to retry the last commit using the `git cz --retry` command. This can be helpful when you have tests set up to run via a git precommit hook. In this scenario, you may have attempted a Commitizen commit, painstakingly filled out all of the commitizen fields, but your tests fail. In previous Commitizen versions, after fixing your tests, you would be forced to fill out all of the fields again. Enter the retry command. Commitizen will retry the last commit that you attempted in this repo without you needing to fill out the fields again.
Please note that the retry cache may be cleared when upgrading Commitizen versions, upgrading adapters, or if you delete the `commitizen.json` file in your home or temp directory. Additionally, the commit cache uses the filesystem path of the repo, so if you move a repo or change its path, you will not be able to retry a commit. This is an edge case but might be confusing if you have scenarios where you are moving folders that contain repos.
It is important to note that if you are running `cz` from an npm script (let's say it is called `commit`) you will need to do one of the following:
- Pass `-- --retry` as an argument for your script. i.e: `npm run commit -- --retry`
- Use [npx](https://www.npmjs.com/package/npx) to find and call the `cz` executable directly. i.e: `npx cz --retry`
Note that the last two options **do not** require you to pass `--` before the args but the first **does**.
## Commitizen for project maintainers
As a project maintainer, making your repo Commitizen friendly allows you to select pre-existing commit message conventions or to create your own custom commit message convention. When a contributor to your repo uses Commitizen, they will be prompted for the correct fields at commit time.
## Go further
Commitizen is great on its own, but it shines when you use it with some other amazing open source tools. Kent C. Dodds shows you how to accomplish this in his Egghead.io series, [How to Write an Open Source JavaScript Library](https://app.egghead.io/playlists/how-to-write-an-open-source-javascript-library). Many of the concepts can be applied to non-JavaScript projects as well.
## Philosophy
### About Commitizen
Commitizen is an open source project that helps contributors be good open source citizens. It accomplishes this by prompting them to follow commit message conventions at commit time. It also empowers project maintainers to create or use predefined commit message conventions in their repos to better communicate their expectations to potential contributors.
### Commitizen or Commit Hooks
Both! Commitizen is not meant to be a replacement for git commit hooks. Rather, it is meant to work side-by-side with them to ensure a consistent and positive experience for your contributors. Commitizen treats the commit command as a declarative action. The contributor is declaring that they wish to contribute to your project. It is up to you as the maintainer to define what rules they should be following.
We accomplish this by letting you define which adapter you'd like to use in your project. Adapters just allow multiple projects to share the same commit message conventions. A good example of an adapter is the cz-conventional-changelog adapter.
## Related projects
- [conventional-changelog](https://github.com/conventional-changelog/conventional-changelog) Generate a changelog from conventional commit history
- [commitlint](https://github.com/conventional-changelog/commitlint) - Lint commit messages
## Authors and Contributors
@JimTheDev (Jim Cummins, author)
@kentcdodds
@accraze
@kytwb
@Den-dp
Special thanks to @stevelacy, whose [gulp-git](https://www.npmjs.com/package/gulp-git) project makes commitizen possible.
## Contributors
This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)].
<a href="graphs/contributors"><img src="https://opencollective.com/commitizen/contributors.svg?width=890&button=false" /></a>
## Backers
Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/commitizen#backer)]
<a href="https://opencollective.com/commitizen#backers" target="_blank"><img src="https://opencollective.com/commitizen/backers.svg?width=890"></a>
## Sponsors
Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [[Become a sponsor](https://opencollective.com/commitizen#sponsor)]
<a href="https://opencollective.com/commitizen/sponsor/0/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/0/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/1/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/1/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/2/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/2/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/3/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/3/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/4/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/4/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/5/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/5/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/6/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/6/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/7/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/7/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/8/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/8/avatar.svg"></a>
<a href="https://opencollective.com/commitizen/sponsor/9/website" target="_blank"><img src="https://opencollective.com/commitizen/sponsor/9/avatar.svg"></a>
[commitizen-friendly]: #making-your-repo-commitizen-friendly

24
node_modules/commitizen/azure-pipelines.yml generated vendored Normal file
View File

@@ -0,0 +1,24 @@
# Node.js
# Build a general Node.js project with npm.
# Add steps that analyze code, save build artifacts, deploy, and more:
# https://docs.microsoft.com/azure/devops/pipelines/languages/javascript
jobs:
- template: jobs/build.yml # Template reference
parameters:
name: macOS
pool:
vmImage: 'macOS-latest'
- template: jobs/build.yml # Template reference
parameters:
name: Linux
pool:
vmImage: 'ubuntu-latest'
- template: jobs/build.yml # Template reference
parameters:
name: Windows
pool:
vmImage: 'windows-latest'
sign: true # Extra step on Windows only

13
node_modules/commitizen/babel.config.js generated vendored Normal file
View File

@@ -0,0 +1,13 @@
module.exports = {
presets: [
[
"@babel/preset-env",
{
targets: {
node: "10",
},
},
],
],
plugins: ["@babel/plugin-proposal-object-rest-spread", "istanbul"],
};

3
node_modules/commitizen/bin/commitizen generated vendored Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env node
require('./commitizen.js');

1
node_modules/commitizen/bin/commitizen.cmd generated vendored Normal file
View File

@@ -0,0 +1 @@
@node "%~dpn0" %*

2
node_modules/commitizen/bin/commitizen.js generated vendored Normal file
View File

@@ -0,0 +1,2 @@
require('../dist/cli/commitizen.js').bootstrap();

3
node_modules/commitizen/bin/git-cz generated vendored Executable file
View File

@@ -0,0 +1,3 @@
#!/usr/bin/env node
require('./git-cz.js');

1
node_modules/commitizen/bin/git-cz.cmd generated vendored Normal file
View File

@@ -0,0 +1 @@
@node "%~dpn0" %*

17
node_modules/commitizen/bin/git-cz.js generated vendored Normal file
View File

@@ -0,0 +1,17 @@
var path = require('path');
process.on('uncaughtException', function (err) {
console.error(err.message || err);
process.exit(1);
});
// catch SIGINT signal
process.stdin.on('data', function (key) {
if (key == '\u0003') {
process.exit(130); // 128 + SIGINT
}
});
require('../dist/cli/git-cz.js').bootstrap({
cliPath: path.join(__dirname, '../')
});

86
node_modules/commitizen/dist/cli/commitizen.js generated vendored Normal file
View File

@@ -0,0 +1,86 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bootstrap = bootstrap;
var _commitizen = require("../commitizen");
var _parsers = require("./parsers");
let {
parse
} = _parsers.commitizen;
/**
* This is the main cli entry point.
* environment may be used for debugging.
*/
function bootstrap(environment = {}, argv = process.argv) {
// Get cli args
let rawGitArgs = argv.slice(2, argv.length);
// Parse the args
let parsedArgs = parse(rawGitArgs);
let command = parsedArgs._[0];
// Do actions based on commands
if (command === "init") {
let adapterNpmName = parsedArgs._[1];
if (adapterNpmName) {
console.log(`Attempting to initialize using the npm package ${adapterNpmName}`);
try {
(0, _commitizen.init)(process.cwd(), adapterNpmName, parsedArgs);
} catch (e) {
console.error(`Error: ${e}`);
}
} else {
console.error('Error: You must provide an adapter name as the second argument.');
}
} else {
console.log(`
Commitizen has two command line tools:
1) cz -- used for making commits according to convention
note: you can run 'git cz' if installed with -g
2) git-cz -- alias for 'cz'
3) commitizen -- used for installing adapters into your project
Generally if you're using someone else's repo and they've already set up an
adapter, you're going to just be running:
cz
However, if you create a new repo and you want to make it easier for future
contributors to follow your commit message conventions using commitizen then
you'll need to run a command like this one to add this adapter to your config:
commitizen init cz-conventional-changelog --save
You should swap out cz-conventional-changelog for the NPM package name of the
adapter you wish you install in your project's package.json.
Detailed usage:
1) commitizen <sub-command>
init <adapter-npm-name> [args]
description: Install a commitizen adapter from npm and adds it to your
config.commitizen in your package.json file.
args:
--save Install the adapter to package.json dependencies
--save-dev Install the adapter to devDependencies
--save-exact Install an exact version instead of a range
--force Force install the adapter, even if a previous one exists.
2) cz <any regular git commit arguments>
description: Runs the commitizen prompter, asking you questions so that you
follow the commit conventions of the repository of the current
directory.
note: cz may even be run as 'git cz' if installed with -g.
`);
}
}

26
node_modules/commitizen/dist/cli/git-cz.js generated vendored Normal file
View File

@@ -0,0 +1,26 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.bootstrap = bootstrap;
var _commitizen = require("../commitizen");
var _strategies = require("./strategies");
/**
* This is the main cli entry point.
* environment may be used for debugging.
*/
function bootstrap(environment = {}, argv = process.argv) {
// Get cli args
let rawGitArgs = argv.slice(2, argv.length);
let adapterConfig = environment.config || _commitizen.configLoader.load();
// Choose a strategy based on the existance the adapter config
if (typeof adapterConfig !== 'undefined') {
// This tells commitizen we're in business
(0, _strategies.gitCz)(rawGitArgs, environment, adapterConfig);
} else {
// This tells commitizen that it is not needed, just use git
(0, _strategies.git)(rawGitArgs, environment);
}
}

12
node_modules/commitizen/dist/cli/parsers.js generated vendored Normal file
View File

@@ -0,0 +1,12 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.gitCz = exports.commitizen = void 0;
var commitizen = _interopRequireWildcard(require("./parsers/commitizen"));
exports.commitizen = commitizen;
var gitCz = _interopRequireWildcard(require("./parsers/git-cz"));
exports.gitCz = gitCz;
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

19
node_modules/commitizen/dist/cli/parsers/commitizen.js generated vendored Normal file
View File

@@ -0,0 +1,19 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.parse = parse;
var _minimist = _interopRequireDefault(require("minimist"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
/**
* Takes args, parses with minimist and some ugly vudoo, returns output
*
* TODO: Aww shit this is ugly. Rewrite with mega leet tests plz, kthnx.
*/
function parse(rawGitArgs) {
var args = (0, _minimist.default)(rawGitArgs, {
boolean: true
});
return args;
}

42
node_modules/commitizen/dist/cli/parsers/git-cz.js generated vendored Normal file
View File

@@ -0,0 +1,42 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.parse = parse;
const reShortMessage = /^-([a-zA-Z]*)m(.*)$/;
const reLongMessage = /^--message(=.*)?$/;
/**
* Strip message declaration from git arguments
*/
function parse(rawGitArgs) {
let result = [];
let skipNext = false;
for (const arg of rawGitArgs) {
let match;
if (skipNext) {
skipNext = false;
continue;
}
match = reShortMessage.exec(arg);
if (match) {
if (match[1]) {
result.push(`-${match[1]}`);
}
if (!match[2]) {
skipNext = true;
}
continue;
}
match = reLongMessage.exec(arg);
if (match) {
if (!match[1]) {
skipNext = true;
}
continue;
}
result.push(arg);
}
return result;
}

20
node_modules/commitizen/dist/cli/strategies.js generated vendored Normal file
View File

@@ -0,0 +1,20 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "git", {
enumerable: true,
get: function () {
return _git.default;
}
});
Object.defineProperty(exports, "gitCz", {
enumerable: true,
get: function () {
return _gitCz.default;
}
});
var _git = _interopRequireDefault(require("./strategies/git"));
var _gitCz = _interopRequireDefault(require("./strategies/git-cz"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

81
node_modules/commitizen/dist/cli/strategies/git-cz.js generated vendored Normal file
View File

@@ -0,0 +1,81 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _inquirer = _interopRequireDefault(require("inquirer"));
var _findRoot = _interopRequireDefault(require("find-root"));
var _util = require("../../common/util");
var _parsers = require("../parsers");
var _commitizen = require("../../commitizen");
var gitStrategy = _interopRequireWildcard(require("./git"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
// destructure for shorter apis
let {
parse
} = _parsers.gitCz;
let {
getPrompter,
resolveAdapterPath,
getGitRootPath
} = _commitizen.adapter;
let {
isClean
} = _commitizen.staging;
var _default = gitCz;
exports.default = _default;
function gitCz(rawGitArgs, environment, adapterConfig) {
// See if any override conditions exist.
// In these very specific scenarios we may want to use a different
// commit strategy than git-cz. For example, in the case of --amend
let parsedCommitizenArgs = _parsers.commitizen.parse(rawGitArgs);
if (parsedCommitizenArgs.amend) {
// console.log('override --amend in place');
gitStrategy.default(rawGitArgs, environment);
return;
}
// Now, if we've made it past overrides, proceed with the git-cz strategy
let parsedGitCzArgs = parse(rawGitArgs);
// Determine if we need to process this commit as a retry instead of a
// normal commit.
let retryLastCommit = rawGitArgs && rawGitArgs[0] === '--retry';
// Determine if we need to process this commit using interactive hook mode
// for husky prepare-commit-message
let hookMode = !(typeof parsedCommitizenArgs.hook === 'undefined');
let resolvedAdapterConfigPath = resolveAdapterPath(adapterConfig.path);
let resolvedAdapterRootPath = (0, _findRoot.default)(resolvedAdapterConfigPath);
let prompter = getPrompter(adapterConfig.path);
let shouldStageAllFiles = rawGitArgs.includes('-a') || rawGitArgs.includes('--all');
isClean(process.cwd(), function (error, stagingIsClean) {
if (error) {
throw error;
}
if (stagingIsClean && !parsedGitCzArgs.includes('--allow-empty')) {
throw new Error('No files added to staging! Did you forget to run git add?');
}
// OH GOD IM SORRY FOR THIS SECTION
let adapterPackageJson = (0, _util.getParsedPackageJsonFromPath)(resolvedAdapterRootPath);
let cliPackageJson = (0, _util.getParsedPackageJsonFromPath)(environment.cliPath);
console.log(`cz-cli@${cliPackageJson.version}, ${adapterPackageJson.name}@${adapterPackageJson.version}\n`);
(0, _commitizen.commit)(_inquirer.default, getGitRootPath(), prompter, {
args: parsedGitCzArgs,
disableAppendPaths: true,
emitData: true,
quiet: false,
retryLastCommit,
hookMode
}, function (error) {
if (error) {
throw error;
}
});
}, shouldStageAllFiles);
}

25
node_modules/commitizen/dist/cli/strategies/git.js generated vendored Normal file
View File

@@ -0,0 +1,25 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _child_process = _interopRequireDefault(require("child_process"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
var _default = git; // We don't have a config, so either we use raw args to try to commit
// or if debug is enabled then we do a strict check for a config file.
exports.default = _default;
function git(rawGitArgs, environment) {
if (environment.debug === true) {
console.error('COMMITIZEN DEBUG: No cz friendly config was detected. I looked for .czrc, .cz.json, or czConfig in package.json.');
} else {
var vanillaGitArgs = ["commit"].concat(rawGitArgs);
var child = _child_process.default.spawn('git', vanillaGitArgs, {
stdio: 'inherit'
});
child.on('error', function (e, code) {
console.error(e);
throw e;
});
}
}

33
node_modules/commitizen/dist/commitizen.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.cache = exports.adapter = void 0;
Object.defineProperty(exports, "commit", {
enumerable: true,
get: function () {
return _commit.default;
}
});
exports.configLoader = void 0;
Object.defineProperty(exports, "init", {
enumerable: true,
get: function () {
return _init.default;
}
});
exports.staging = void 0;
var adapter = _interopRequireWildcard(require("./commitizen/adapter"));
exports.adapter = adapter;
var cache = _interopRequireWildcard(require("./commitizen/cache"));
exports.cache = cache;
var _commit = _interopRequireDefault(require("./commitizen/commit"));
var configLoader = _interopRequireWildcard(require("./commitizen/configLoader"));
exports.configLoader = configLoader;
var _init = _interopRequireDefault(require("./commitizen/init"));
var staging = _interopRequireWildcard(require("./commitizen/staging"));
exports.staging = staging;
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }

1545
node_modules/commitizen/dist/commitizen/adapter.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

274
node_modules/commitizen/dist/commitizen/cache.js generated vendored Normal file
View File

@@ -0,0 +1,274 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getCacheValueSync = getCacheValueSync;
exports.readCacheSync = readCacheSync;
exports.setCacheValueSync = setCacheValueSync;
var _fs = _interopRequireDefault(require("fs"));
var _lodash = _interopRequireDefault(require("lodash"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_1557knvvim() {
var path = "/home/runner/work/cz-cli/cz-cli/src/commitizen/cache.js";
var hash = "23833091a58ef2217ec49ef06116296b4f6e0a60";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/commitizen/cache.js",
statementMap: {
"0": {
start: {
line: 14,
column: 2
},
end: {
line: 14,
column: 56
}
},
"1": {
start: {
line: 22,
column: 2
},
end: {
line: 26,
column: 3
}
},
"2": {
start: {
line: 23,
column: 4
},
end: {
line: 23,
column: 45
}
},
"3": {
start: {
line: 25,
column: 4
},
end: {
line: 25,
column: 23
}
},
"4": {
start: {
line: 27,
column: 17
},
end: {
line: 29,
column: 4
}
},
"5": {
start: {
line: 30,
column: 2
},
end: {
line: 30,
column: 68
}
},
"6": {
start: {
line: 31,
column: 2
},
end: {
line: 31,
column: 18
}
},
"7": {
start: {
line: 38,
column: 2
},
end: {
line: 43,
column: 3
}
},
"8": {
start: {
line: 39,
column: 16
},
end: {
line: 39,
column: 40
}
},
"9": {
start: {
line: 40,
column: 4
},
end: {
line: 40,
column: 27
}
}
},
fnMap: {
"0": {
name: "readCacheSync",
decl: {
start: {
line: 13,
column: 9
},
end: {
line: 13,
column: 22
}
},
loc: {
start: {
line: 13,
column: 35
},
end: {
line: 15,
column: 1
}
},
line: 13
},
"1": {
name: "setCacheValueSync",
decl: {
start: {
line: 20,
column: 9
},
end: {
line: 20,
column: 26
}
},
loc: {
start: {
line: 20,
column: 51
},
end: {
line: 32,
column: 1
}
},
line: 20
},
"2": {
name: "getCacheValueSync",
decl: {
start: {
line: 37,
column: 9
},
end: {
line: 37,
column: 26
}
},
loc: {
start: {
line: 37,
column: 49
},
end: {
line: 44,
column: 1
}
},
line: 37
}
},
branchMap: {},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0
},
f: {
"0": 0,
"1": 0,
"2": 0
},
b: {},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "23833091a58ef2217ec49ef06116296b4f6e0a60"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_1557knvvim = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_1557knvvim();
/**
* Reads the entire cache
*/
function readCacheSync(cachePath) {
cov_1557knvvim().f[0]++;
cov_1557knvvim().s[0]++;
return JSON.parse(_fs.default.readFileSync(cachePath, 'utf8'));
}
/**
* Sets a cache value and writes the file to disk
*/
function setCacheValueSync(cachePath, key, value) {
cov_1557knvvim().f[1]++;
var originalCache;
cov_1557knvvim().s[1]++;
try {
cov_1557knvvim().s[2]++;
originalCache = readCacheSync(cachePath);
} catch (e) {
cov_1557knvvim().s[3]++;
originalCache = {};
}
var newCache = (cov_1557knvvim().s[4]++, _lodash.default.assign(originalCache, {
[key]: value
}));
cov_1557knvvim().s[5]++;
_fs.default.writeFileSync(cachePath, JSON.stringify(newCache, null, ' '));
cov_1557knvvim().s[6]++;
return newCache;
}
/**
* Gets a single value from the cache given a key
*/
function getCacheValueSync(cachePath, repoPath) {
cov_1557knvvim().f[2]++;
cov_1557knvvim().s[7]++;
try {
let cache = (cov_1557knvvim().s[8]++, readCacheSync(cachePath));
cov_1557knvvim().s[9]++;
return cache[repoPath];
} catch (e) {}
}

628
node_modules/commitizen/dist/commitizen/commit.js generated vendored Normal file
View File

@@ -0,0 +1,628 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _path = _interopRequireDefault(require("path"));
var _cachedir = _interopRequireDefault(require("cachedir"));
var _fsExtra = require("fs-extra");
var _git = require("../git");
var cache = _interopRequireWildcard(require("./cache"));
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_g0ukcvuof() {
var path = "/home/runner/work/cz-cli/cz-cli/src/commitizen/commit.js";
var hash = "4a518579188a2aabf17606ae1fd56644666d7e1b";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/commitizen/commit.js",
statementMap: {
"0": {
start: {
line: 15,
column: 4
},
end: {
line: 17,
column: 7
}
},
"1": {
start: {
line: 16,
column: 6
},
end: {
line: 16,
column: 28
}
},
"2": {
start: {
line: 24,
column: 23
},
end: {
line: 24,
column: 45
}
},
"3": {
start: {
line: 25,
column: 18
},
end: {
line: 25,
column: 62
}
},
"4": {
start: {
line: 27,
column: 2
},
end: {
line: 66,
column: 5
}
},
"5": {
start: {
line: 28,
column: 4
},
end: {
line: 65,
column: 5
}
},
"6": {
start: {
line: 29,
column: 6
},
end: {
line: 29,
column: 75
}
},
"7": {
start: {
line: 32,
column: 6
},
end: {
line: 64,
column: 7
}
},
"8": {
start: {
line: 34,
column: 8
},
end: {
line: 34,
column: 53
}
},
"9": {
start: {
line: 42,
column: 12
},
end: {
line: 42,
column: 56
}
},
"10": {
start: {
line: 43,
column: 8
},
end: {
line: 43,
column: 93
}
},
"11": {
start: {
line: 47,
column: 8
},
end: {
line: 63,
column: 11
}
},
"12": {
start: {
line: 50,
column: 10
},
end: {
line: 54,
column: 11
}
},
"13": {
start: {
line: 51,
column: 12
},
end: {
line: 51,
column: 39
}
},
"14": {
start: {
line: 52,
column: 12
},
end: {
line: 52,
column: 29
}
},
"15": {
start: {
line: 53,
column: 12
},
end: {
line: 53,
column: 25
}
},
"16": {
start: {
line: 56,
column: 10
},
end: {
line: 58,
column: 11
}
},
"17": {
start: {
line: 57,
column: 12
},
end: {
line: 57,
column: 31
}
},
"18": {
start: {
line: 61,
column: 10
},
end: {
line: 61,
column: 95
}
},
"19": {
start: {
line: 62,
column: 10
},
end: {
line: 62,
column: 80
}
}
},
fnMap: {
"0": {
name: "dispatchGitCommit",
decl: {
start: {
line: 13,
column: 9
},
end: {
line: 13,
column: 26
}
},
loc: {
start: {
line: 13,
column: 80
},
end: {
line: 18,
column: 1
}
},
line: 13
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 15,
column: 70
},
end: {
line: 15,
column: 71
}
},
loc: {
start: {
line: 15,
column: 87
},
end: {
line: 17,
column: 5
}
},
line: 15
},
"2": {
name: "commit",
decl: {
start: {
line: 23,
column: 9
},
end: {
line: 23,
column: 15
}
},
loc: {
start: {
line: 23,
column: 62
},
end: {
line: 68,
column: 1
}
},
line: 23
},
"3": {
name: "(anonymous_3)",
decl: {
start: {
line: 27,
column: 28
},
end: {
line: 27,
column: 29
}
},
loc: {
start: {
line: 27,
column: 45
},
end: {
line: 66,
column: 3
}
},
line: 27
},
"4": {
name: "(anonymous_4)",
decl: {
start: {
line: 47,
column: 27
},
end: {
line: 47,
column: 28
}
},
loc: {
start: {
line: 47,
column: 71
},
end: {
line: 63,
column: 9
}
},
line: 47
}
},
branchMap: {
"0": {
loc: {
start: {
line: 28,
column: 4
},
end: {
line: 65,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 28,
column: 4
},
end: {
line: 65,
column: 5
}
}, {
start: {
line: 31,
column: 11
},
end: {
line: 65,
column: 5
}
}],
line: 28
},
"1": {
loc: {
start: {
line: 32,
column: 6
},
end: {
line: 64,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 32,
column: 6
},
end: {
line: 64,
column: 7
}
}, {
start: {
line: 45,
column: 13
},
end: {
line: 64,
column: 7
}
}],
line: 32
},
"2": {
loc: {
start: {
line: 50,
column: 10
},
end: {
line: 54,
column: 11
}
},
type: "if",
locations: [{
start: {
line: 50,
column: 10
},
end: {
line: 54,
column: 11
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 50
},
"3": {
loc: {
start: {
line: 56,
column: 10
},
end: {
line: 58,
column: 11
}
},
type: "if",
locations: [{
start: {
line: 56,
column: 10
},
end: {
line: 58,
column: 11
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 56
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 0
},
f: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "4a518579188a2aabf17606ae1fd56644666d7e1b"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_g0ukcvuof = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_g0ukcvuof();
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return typeof key === "symbol" ? key : String(key); }
function _toPrimitive(input, hint) { if (typeof input !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (typeof res !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
var _default = commit;
/**
* Takes all of the final inputs needed in order to make dispatch a git commit
*/
exports.default = _default;
function dispatchGitCommit(repoPath, template, options, overrideOptions, done) {
cov_g0ukcvuof().f[0]++;
cov_g0ukcvuof().s[0]++;
// Commit the user input -- side effect that we'll test
(0, _git.commit)(repoPath, template, _objectSpread(_objectSpread({}, options), overrideOptions), function (error) {
cov_g0ukcvuof().f[1]++;
cov_g0ukcvuof().s[1]++;
done(error, template);
});
}
/**
* Asynchronously commits files using commitizen
*/
function commit(inquirer, repoPath, prompter, options, done) {
cov_g0ukcvuof().f[2]++;
var cacheDirectory = (cov_g0ukcvuof().s[2]++, (0, _cachedir.default)('commitizen'));
var cachePath = (cov_g0ukcvuof().s[3]++, _path.default.join(cacheDirectory, 'commitizen.json'));
cov_g0ukcvuof().s[4]++;
(0, _fsExtra.ensureDir)(cacheDirectory, function (error) {
cov_g0ukcvuof().f[3]++;
cov_g0ukcvuof().s[5]++;
if (error) {
cov_g0ukcvuof().b[0][0]++;
cov_g0ukcvuof().s[6]++;
console.error("Couldn't create commitizen cache directory: ", error);
// TODO: properly handle error?
} else {
cov_g0ukcvuof().b[0][1]++;
cov_g0ukcvuof().s[7]++;
if (options.retryLastCommit) {
cov_g0ukcvuof().b[1][0]++;
cov_g0ukcvuof().s[8]++;
console.log('Retrying last commit attempt.');
// We want to use the last commit instead of the current commit,
// so lets override some options using the values from cache.
let {
options: retryOptions,
overrideOptions: retryOverrideOptions,
template: retryTemplate
} = (cov_g0ukcvuof().s[9]++, cache.getCacheValueSync(cachePath, repoPath));
cov_g0ukcvuof().s[10]++;
dispatchGitCommit(repoPath, retryTemplate, retryOptions, retryOverrideOptions, done);
} else {
cov_g0ukcvuof().b[1][1]++;
cov_g0ukcvuof().s[11]++;
// Get user input -- side effect that is hard to test
prompter(inquirer, function (error, template, overrideOptions) {
cov_g0ukcvuof().f[4]++;
cov_g0ukcvuof().s[12]++;
// Allow adapters to error out
// (error: Error?, template: String, overrideOptions: Object)
if (!(error instanceof Error)) {
cov_g0ukcvuof().b[2][0]++;
cov_g0ukcvuof().s[13]++;
overrideOptions = template;
cov_g0ukcvuof().s[14]++;
template = error;
cov_g0ukcvuof().s[15]++;
error = null;
} else {
cov_g0ukcvuof().b[2][1]++;
}
cov_g0ukcvuof().s[16]++;
if (error) {
cov_g0ukcvuof().b[3][0]++;
cov_g0ukcvuof().s[17]++;
return done(error);
} else {
cov_g0ukcvuof().b[3][1]++;
}
// We don't want to add retries to the cache, only actual commands
cov_g0ukcvuof().s[18]++;
cache.setCacheValueSync(cachePath, repoPath, {
template,
options,
overrideOptions
});
cov_g0ukcvuof().s[19]++;
dispatchGitCommit(repoPath, template, options, overrideOptions, done);
});
}
}
});
}

View File

@@ -0,0 +1,95 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.load = load;
var _configLoader = require("../configLoader");
function cov_1itu0bpi0j() {
var path = "/home/runner/work/cz-cli/cz-cli/src/commitizen/configLoader.js";
var hash = "c627c83b933ee54517e9c98550128758f664f3aa";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/commitizen/configLoader.js",
statementMap: {
"0": {
start: {
line: 6,
column: 14
},
end: {
line: 6,
column: 51
}
},
"1": {
start: {
line: 9,
column: 2
},
end: {
line: 9,
column: 38
}
}
},
fnMap: {
"0": {
name: "load",
decl: {
start: {
line: 8,
column: 9
},
end: {
line: 8,
column: 13
}
},
loc: {
start: {
line: 8,
column: 28
},
end: {
line: 10,
column: 1
}
},
line: 8
}
},
branchMap: {},
s: {
"0": 0,
"1": 0
},
f: {
"0": 0
},
b: {},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "c627c83b933ee54517e9c98550128758f664f3aa"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_1itu0bpi0j = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_1itu0bpi0j();
// Configuration sources in priority order.
var configs = (cov_1itu0bpi0j().s[0]++, ['.czrc', '.cz.json', 'package.json']);
function load(config, cwd) {
cov_1itu0bpi0j().f[0]++;
cov_1itu0bpi0j().s[1]++;
return (0, _configLoader.loader)(configs, config, cwd);
}

1084
node_modules/commitizen/dist/commitizen/init.js generated vendored Normal file

File diff suppressed because it is too large Load Diff

274
node_modules/commitizen/dist/commitizen/staging.js generated vendored Normal file
View File

@@ -0,0 +1,274 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.isClean = isClean;
var _child_process = require("child_process");
function cov_jkd4cxdc9() {
var path = "/home/runner/work/cz-cli/cz-cli/src/commitizen/staging.js";
var hash = "30be7fb393c788ad4e85c71340438cb0aaa50d35";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/commitizen/staging.js",
statementMap: {
"0": {
start: {
line: 9,
column: 2
},
end: {
line: 18,
column: 5
}
},
"1": {
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
},
"2": {
start: {
line: 14,
column: 6
},
end: {
line: 14,
column: 25
}
},
"3": {
start: {
line: 16,
column: 17
},
end: {
line: 16,
column: 29
}
},
"4": {
start: {
line: 17,
column: 4
},
end: {
line: 17,
column: 43
}
}
},
fnMap: {
"0": {
name: "isClean",
decl: {
start: {
line: 8,
column: 9
},
end: {
line: 8,
column: 16
}
},
loc: {
start: {
line: 8,
column: 49
},
end: {
line: 19,
column: 1
}
},
line: 8
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 12,
column: 5
},
end: {
line: 12,
column: 6
}
},
loc: {
start: {
line: 12,
column: 30
},
end: {
line: 18,
column: 3
}
},
line: 12
}
},
branchMap: {
"0": {
loc: {
start: {
line: 9,
column: 54
},
end: {
line: 9,
column: 116
}
},
type: "cond-expr",
locations: [{
start: {
line: 9,
column: 72
},
end: {
line: 9,
column: 111
}
}, {
start: {
line: 9,
column: 114
},
end: {
line: 9,
column: 116
}
}],
line: 9
},
"1": {
loc: {
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 13
},
"2": {
loc: {
start: {
line: 16,
column: 17
},
end: {
line: 16,
column: 29
}
},
type: "binary-expr",
locations: [{
start: {
line: 16,
column: 17
},
end: {
line: 16,
column: 23
}
}, {
start: {
line: 16,
column: 27
},
end: {
line: 16,
column: 29
}
}],
line: 16
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0
},
f: {
"0": 0,
"1": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "30be7fb393c788ad4e85c71340438cb0aaa50d35"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_jkd4cxdc9 = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_jkd4cxdc9();
/**
* Asynchrounously determines if the staging area is clean
*/
function isClean(repoPath, done, stageAllFiles) {
cov_jkd4cxdc9().f[0]++;
cov_jkd4cxdc9().s[0]++;
(0, _child_process.exec)(`git diff --cached --no-ext-diff --name-only ${!!stageAllFiles ? (cov_jkd4cxdc9().b[0][0]++, '&& git diff --no-ext-diff --name-only') : (cov_jkd4cxdc9().b[0][1]++, '')}`, {
maxBuffer: Infinity,
cwd: repoPath
}, function (error, stdout) {
cov_jkd4cxdc9().f[1]++;
cov_jkd4cxdc9().s[1]++;
if (error) {
cov_jkd4cxdc9().b[1][0]++;
cov_jkd4cxdc9().s[2]++;
return done(error);
} else {
cov_jkd4cxdc9().b[1][1]++;
}
let output = (cov_jkd4cxdc9().s[3]++, (cov_jkd4cxdc9().b[2][0]++, stdout) || (cov_jkd4cxdc9().b[2][1]++, ''));
cov_jkd4cxdc9().s[4]++;
done(null, output.trim().length === 0);
});
}

483
node_modules/commitizen/dist/common/util.js generated vendored Normal file
View File

@@ -0,0 +1,483 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.getParsedJsonFromFile = getParsedJsonFromFile;
exports.getParsedPackageJsonFromPath = getParsedPackageJsonFromPath;
exports.isFunction = isFunction;
exports.isInTest = isInTest;
var _fs = _interopRequireDefault(require("fs"));
var _path = _interopRequireDefault(require("path"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_pg9gkzupg() {
var path = "/home/runner/work/cz-cli/cz-cli/src/common/util.js";
var hash = "443667b7bd63169d3e6fa6f728fc86237eaa590b";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/common/util.js",
statementMap: {
"0": {
start: {
line: 15,
column: 2
},
end: {
line: 20,
column: 3
}
},
"1": {
start: {
line: 16,
column: 30
},
end: {
line: 16,
column: 86
}
},
"2": {
start: {
line: 17,
column: 4
},
end: {
line: 17,
column: 43
}
},
"3": {
start: {
line: 19,
column: 4
},
end: {
line: 19,
column: 21
}
},
"4": {
start: {
line: 27,
column: 2
},
end: {
line: 27,
column: 53
}
},
"5": {
start: {
line: 34,
column: 2
},
end: {
line: 43,
column: 3
}
},
"6": {
start: {
line: 36,
column: 4
},
end: {
line: 36,
column: 17
}
},
"7": {
start: {
line: 37,
column: 9
},
end: {
line: 43,
column: 3
}
},
"8": {
start: {
line: 38,
column: 4
},
end: {
line: 38,
column: 17
}
},
"9": {
start: {
line: 40,
column: 18
},
end: {
line: 40,
column: 20
}
},
"10": {
start: {
line: 41,
column: 23
},
end: {
line: 41,
column: 61
}
},
"11": {
start: {
line: 42,
column: 4
},
end: {
line: 42,
column: 114
}
},
"12": {
start: {
line: 47,
column: 2
},
end: {
line: 47,
column: 41
}
}
},
fnMap: {
"0": {
name: "getParsedJsonFromFile",
decl: {
start: {
line: 14,
column: 9
},
end: {
line: 14,
column: 30
}
},
loc: {
start: {
line: 14,
column: 71
},
end: {
line: 21,
column: 1
}
},
line: 14
},
"1": {
name: "getParsedPackageJsonFromPath",
decl: {
start: {
line: 26,
column: 9
},
end: {
line: 26,
column: 37
}
},
loc: {
start: {
line: 26,
column: 45
},
end: {
line: 28,
column: 1
}
},
line: 26
},
"2": {
name: "isFunction",
decl: {
start: {
line: 33,
column: 9
},
end: {
line: 33,
column: 19
}
},
loc: {
start: {
line: 33,
column: 38
},
end: {
line: 44,
column: 1
}
},
line: 33
},
"3": {
name: "isInTest",
decl: {
start: {
line: 46,
column: 9
},
end: {
line: 46,
column: 17
}
},
loc: {
start: {
line: 46,
column: 21
},
end: {
line: 48,
column: 1
}
},
line: 46
}
},
branchMap: {
"0": {
loc: {
start: {
line: 14,
column: 52
},
end: {
line: 14,
column: 69
}
},
type: "default-arg",
locations: [{
start: {
line: 14,
column: 63
},
end: {
line: 14,
column: 69
}
}],
line: 14
},
"1": {
loc: {
start: {
line: 34,
column: 2
},
end: {
line: 43,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 34,
column: 2
},
end: {
line: 43,
column: 3
}
}, {
start: {
line: 37,
column: 9
},
end: {
line: 43,
column: 3
}
}],
line: 34
},
"2": {
loc: {
start: {
line: 37,
column: 9
},
end: {
line: 43,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 37,
column: 9
},
end: {
line: 43,
column: 3
}
}, {
start: {
line: 39,
column: 9
},
end: {
line: 43,
column: 3
}
}],
line: 37
},
"3": {
loc: {
start: {
line: 42,
column: 11
},
end: {
line: 42,
column: 113
}
},
type: "binary-expr",
locations: [{
start: {
line: 42,
column: 11
},
end: {
line: 42,
column: 26
}
}, {
start: {
line: 42,
column: 31
},
end: {
line: 42,
column: 67
}
}, {
start: {
line: 42,
column: 71
},
end: {
line: 42,
column: 112
}
}],
line: 42
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0
},
f: {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
b: {
"0": [0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "443667b7bd63169d3e6fa6f728fc86237eaa590b"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_pg9gkzupg = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_pg9gkzupg();
/**
* Gets the parsed contents of a json file
*/
function getParsedJsonFromFile(filePath, fileName, encoding = (cov_pg9gkzupg().b[0][0]++, 'utf8')) {
cov_pg9gkzupg().f[0]++;
cov_pg9gkzupg().s[0]++;
try {
var packageJsonContents = (cov_pg9gkzupg().s[1]++, _fs.default.readFileSync(_path.default.join(filePath, fileName), encoding));
cov_pg9gkzupg().s[2]++;
return JSON.parse(packageJsonContents);
} catch (e) {
cov_pg9gkzupg().s[3]++;
console.error(e);
}
}
/**
* A helper method for getting the contents of package.json at a given path
*/
function getParsedPackageJsonFromPath(path) {
cov_pg9gkzupg().f[1]++;
cov_pg9gkzupg().s[4]++;
return getParsedJsonFromFile(path, 'package.json');
}
/**
* Test if the passed argument is a function
*/
function isFunction(functionToCheck) {
cov_pg9gkzupg().f[2]++;
cov_pg9gkzupg().s[5]++;
if (typeof functionToCheck === "undefined") {
cov_pg9gkzupg().b[1][0]++;
cov_pg9gkzupg().s[6]++;
return false;
} else {
cov_pg9gkzupg().b[1][1]++;
cov_pg9gkzupg().s[7]++;
if (functionToCheck === null) {
cov_pg9gkzupg().b[2][0]++;
cov_pg9gkzupg().s[8]++;
return false;
} else {
cov_pg9gkzupg().b[2][1]++;
var getType = (cov_pg9gkzupg().s[9]++, {});
var functionType = (cov_pg9gkzupg().s[10]++, getType.toString.call(functionToCheck));
cov_pg9gkzupg().s[11]++;
return (cov_pg9gkzupg().b[3][0]++, functionToCheck) && ((cov_pg9gkzupg().b[3][1]++, functionType === '[object Function]') || (cov_pg9gkzupg().b[3][2]++, functionType === '[object AsyncFunction]'));
}
}
}
function isInTest() {
cov_pg9gkzupg().f[3]++;
cov_pg9gkzupg().s[12]++;
return typeof global.it === 'function';
}

34
node_modules/commitizen/dist/configLoader.js generated vendored Normal file
View File

@@ -0,0 +1,34 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "findup", {
enumerable: true,
get: function () {
return _findup.default;
}
});
Object.defineProperty(exports, "getContent", {
enumerable: true,
get: function () {
return _getContent.default;
}
});
Object.defineProperty(exports, "getNormalizedConfig", {
enumerable: true,
get: function () {
return _getNormalizedConfig.default;
}
});
Object.defineProperty(exports, "loader", {
enumerable: true,
get: function () {
return _loader.default;
}
});
var _findup = _interopRequireDefault(require("./configLoader/findup"));
var _getContent = _interopRequireDefault(require("./configLoader/getContent"));
var _getNormalizedConfig = _interopRequireDefault(require("./configLoader/getNormalizedConfig"));
var _loader = _interopRequireDefault(require("./configLoader/loader"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }

339
node_modules/commitizen/dist/configLoader/findup.js generated vendored Normal file
View File

@@ -0,0 +1,339 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _path = _interopRequireDefault(require("path"));
var _glob = _interopRequireDefault(require("glob"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_wjwib8bhg() {
var path = "/home/runner/work/cz-cli/cz-cli/src/configLoader/findup.js";
var hash = "6f6cc99ed279f909c532154d9f66555fb82a2d2a";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/configLoader/findup.js",
statementMap: {
"0": {
start: {
line: 14,
column: 4
},
end: {
line: 14,
column: 37
}
},
"1": {
start: {
line: 15,
column: 4
},
end: {
line: 15,
column: 25
}
},
"2": {
start: {
line: 16,
column: 4
},
end: {
line: 16,
column: 44
}
},
"3": {
start: {
line: 18,
column: 4
},
end: {
line: 33,
column: 39
}
},
"4": {
start: {
line: 19,
column: 8
},
end: {
line: 25,
column: 14
}
},
"5": {
start: {
line: 20,
column: 29
},
end: {
line: 20,
column: 59
}
},
"6": {
start: {
line: 22,
column: 12
},
end: {
line: 24,
column: 13
}
},
"7": {
start: {
line: 23,
column: 16
},
end: {
line: 23,
column: 62
}
},
"8": {
start: {
line: 27,
column: 8
},
end: {
line: 29,
column: 9
}
},
"9": {
start: {
line: 28,
column: 12
},
end: {
line: 28,
column: 48
}
},
"10": {
start: {
line: 31,
column: 8
},
end: {
line: 31,
column: 31
}
},
"11": {
start: {
line: 32,
column: 8
},
end: {
line: 32,
column: 54
}
}
},
fnMap: {
"0": {
name: "findup",
decl: {
start: {
line: 8,
column: 9
},
end: {
line: 8,
column: 15
}
},
loc: {
start: {
line: 8,
column: 40
},
end: {
line: 34,
column: 1
}
},
line: 8
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 19,
column: 31
},
end: {
line: 19,
column: 32
}
},
loc: {
start: {
line: 19,
column: 50
},
end: {
line: 25,
column: 9
}
},
line: 19
}
},
branchMap: {
"0": {
loc: {
start: {
line: 22,
column: 12
},
end: {
line: 24,
column: 13
}
},
type: "if",
locations: [{
start: {
line: 22,
column: 12
},
end: {
line: 24,
column: 13
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 22
},
"1": {
loc: {
start: {
line: 27,
column: 8
},
end: {
line: 29,
column: 9
}
},
type: "if",
locations: [{
start: {
line: 27,
column: 8
},
end: {
line: 29,
column: 9
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 27
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0
},
f: {
"0": 0,
"1": 0
},
b: {
"0": [0, 0],
"1": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "6f6cc99ed279f909c532154d9f66555fb82a2d2a"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_wjwib8bhg = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_wjwib8bhg();
var _default = findup; // Before, "findup-sync" package was used,
// but it does not provide filter callback
exports.default = _default;
function findup(patterns, options, fn) {
cov_wjwib8bhg().f[0]++;
/* jshint -W083 */
var lastpath;
var file;
cov_wjwib8bhg().s[0]++;
options = Object.create(options);
cov_wjwib8bhg().s[1]++;
options.maxDepth = 1;
cov_wjwib8bhg().s[2]++;
options.cwd = _path.default.resolve(options.cwd);
cov_wjwib8bhg().s[3]++;
do {
cov_wjwib8bhg().s[4]++;
file = patterns.filter(function (pattern) {
cov_wjwib8bhg().f[1]++;
var configPath = (cov_wjwib8bhg().s[5]++, _glob.default.sync(pattern, options)[0]);
cov_wjwib8bhg().s[6]++;
if (configPath) {
cov_wjwib8bhg().b[0][0]++;
cov_wjwib8bhg().s[7]++;
return fn(_path.default.join(options.cwd, configPath));
} else {
cov_wjwib8bhg().b[0][1]++;
}
})[0];
cov_wjwib8bhg().s[8]++;
if (file) {
cov_wjwib8bhg().b[1][0]++;
cov_wjwib8bhg().s[9]++;
return _path.default.join(options.cwd, file);
} else {
cov_wjwib8bhg().b[1][1]++;
}
cov_wjwib8bhg().s[10]++;
lastpath = options.cwd;
cov_wjwib8bhg().s[11]++;
options.cwd = _path.default.resolve(options.cwd, '..');
} while (options.cwd !== lastpath);
}

700
node_modules/commitizen/dist/configLoader/getContent.js generated vendored Normal file
View File

@@ -0,0 +1,700 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _fs = _interopRequireDefault(require("fs"));
var _path = _interopRequireDefault(require("path"));
var _stripJsonComments = _interopRequireDefault(require("strip-json-comments"));
var _isUtf = _interopRequireDefault(require("is-utf8"));
var _stripBom = _interopRequireDefault(require("strip-bom"));
var _configLoader = require("../configLoader");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_1jep83s2x2() {
var path = "/home/runner/work/cz-cli/cz-cli/src/configLoader/getContent.js";
var hash = "403573c0a0b7b4db0113fca9d9beb1098d95eac2";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/configLoader/getContent.js",
statementMap: {
"0": {
start: {
line: 20,
column: 23
},
end: {
line: 20,
column: 45
}
},
"1": {
start: {
line: 21,
column: 21
},
end: {
line: 21,
column: 75
}
},
"2": {
start: {
line: 22,
column: 23
},
end: {
line: 22,
column: 56
}
},
"3": {
start: {
line: 23,
column: 18
},
end: {
line: 25,
column: 40
}
},
"4": {
start: {
line: 24,
column: 20
},
end: {
line: 24,
column: 59
}
},
"5": {
start: {
line: 25,
column: 20
},
end: {
line: 25,
column: 40
}
},
"6": {
start: {
line: 27,
column: 4
},
end: {
line: 42,
column: 5
}
},
"7": {
start: {
line: 28,
column: 23
},
end: {
line: 28,
column: 40
}
},
"8": {
start: {
line: 30,
column: 8
},
end: {
line: 32,
column: 11
}
},
"9": {
start: {
line: 34,
column: 8
},
end: {
line: 34,
column: 22
}
},
"10": {
start: {
line: 36,
column: 8
},
end: {
line: 39,
column: 21
}
},
"11": {
start: {
line: 41,
column: 8
},
end: {
line: 41,
column: 20
}
},
"12": {
start: {
line: 52,
column: 4
},
end: {
line: 54,
column: 5
}
},
"13": {
start: {
line: 53,
column: 6
},
end: {
line: 53,
column: 13
}
},
"14": {
start: {
line: 56,
column: 25
},
end: {
line: 56,
column: 64
}
},
"15": {
start: {
line: 57,
column: 27
},
end: {
line: 57,
column: 54
}
},
"16": {
start: {
line: 59,
column: 4
},
end: {
line: 61,
column: 5
}
},
"17": {
start: {
line: 60,
column: 6
},
end: {
line: 60,
column: 47
}
},
"18": {
start: {
line: 63,
column: 20
},
end: {
line: 63,
column: 51
}
},
"19": {
start: {
line: 64,
column: 4
},
end: {
line: 64,
column: 56
}
},
"20": {
start: {
line: 75,
column: 22
},
end: {
line: 75,
column: 49
}
},
"21": {
start: {
line: 77,
column: 2
},
end: {
line: 79,
column: 3
}
},
"22": {
start: {
line: 78,
column: 4
},
end: {
line: 78,
column: 96
}
},
"23": {
start: {
line: 81,
column: 2
},
end: {
line: 81,
column: 50
}
}
},
fnMap: {
"0": {
name: "readConfigContent",
decl: {
start: {
line: 19,
column: 9
},
end: {
line: 19,
column: 26
}
},
loc: {
start: {
line: 19,
column: 40
},
end: {
line: 43,
column: 1
}
},
line: 19
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 24,
column: 6
},
end: {
line: 24,
column: 7
}
},
loc: {
start: {
line: 24,
column: 20
},
end: {
line: 24,
column: 59
}
},
line: 24
},
"2": {
name: "(anonymous_2)",
decl: {
start: {
line: 25,
column: 6
},
end: {
line: 25,
column: 7
}
},
loc: {
start: {
line: 25,
column: 20
},
end: {
line: 25,
column: 40
}
},
line: 25
},
"3": {
name: "getConfigContent",
decl: {
start: {
line: 51,
column: 9
},
end: {
line: 51,
column: 25
}
},
loc: {
start: {
line: 51,
column: 54
},
end: {
line: 65,
column: 1
}
},
line: 51
},
"4": {
name: "readConfigFileContent",
decl: {
start: {
line: 73,
column: 9
},
end: {
line: 73,
column: 30
}
},
loc: {
start: {
line: 73,
column: 44
},
end: {
line: 82,
column: 1
}
},
line: 73
}
},
branchMap: {
"0": {
loc: {
start: {
line: 21,
column: 21
},
end: {
line: 21,
column: 75
}
},
type: "binary-expr",
locations: [{
start: {
line: 21,
column: 21
},
end: {
line: 21,
column: 45
}
}, {
start: {
line: 21,
column: 49
},
end: {
line: 21,
column: 75
}
}],
line: 21
},
"1": {
loc: {
start: {
line: 23,
column: 18
},
end: {
line: 25,
column: 40
}
},
type: "cond-expr",
locations: [{
start: {
line: 24,
column: 6
},
end: {
line: 24,
column: 59
}
}, {
start: {
line: 25,
column: 6
},
end: {
line: 25,
column: 40
}
}],
line: 23
},
"2": {
loc: {
start: {
line: 52,
column: 4
},
end: {
line: 54,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 52,
column: 4
},
end: {
line: 54,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 52
},
"3": {
loc: {
start: {
line: 59,
column: 4
},
end: {
line: 61,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 59,
column: 4
},
end: {
line: 61,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 59
},
"4": {
loc: {
start: {
line: 77,
column: 2
},
end: {
line: 79,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 77,
column: 2
},
end: {
line: 79,
column: 3
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 77
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 0,
"20": 0,
"21": 0,
"22": 0,
"23": 0
},
f: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0],
"4": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "403573c0a0b7b4db0113fca9d9beb1098d95eac2"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_1jep83s2x2 = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_1jep83s2x2();
var _default = getConfigContent;
/**
* Read the content of a configuration file
* - if not js or json: strip any comments
* - if js or json: require it
* @param {String} configPath - full path to configuration file
* @return {Object}
*/
exports.default = _default;
function readConfigContent(configPath) {
cov_1jep83s2x2().f[0]++;
const parsedPath = (cov_1jep83s2x2().s[0]++, _path.default.parse(configPath));
const isRcFile = (cov_1jep83s2x2().s[1]++, (cov_1jep83s2x2().b[0][0]++, parsedPath.ext !== '.js') && (cov_1jep83s2x2().b[0][1]++, parsedPath.ext !== '.json'));
const jsonString = (cov_1jep83s2x2().s[2]++, readConfigFileContent(configPath));
const parse = (cov_1jep83s2x2().s[3]++, isRcFile ? (cov_1jep83s2x2().b[1][0]++, contents => {
cov_1jep83s2x2().f[1]++;
cov_1jep83s2x2().s[4]++;
return JSON.parse((0, _stripJsonComments.default)(contents));
}) : (cov_1jep83s2x2().b[1][1]++, contents => {
cov_1jep83s2x2().f[2]++;
cov_1jep83s2x2().s[5]++;
return JSON.parse(contents);
}));
cov_1jep83s2x2().s[6]++;
try {
const parsed = (cov_1jep83s2x2().s[7]++, parse(jsonString));
cov_1jep83s2x2().s[8]++;
Object.defineProperty(parsed, 'configPath', {
value: configPath
});
cov_1jep83s2x2().s[9]++;
return parsed;
} catch (error) {
cov_1jep83s2x2().s[10]++;
error.message = [`Parsing JSON at ${configPath} for commitizen config failed:`, error.mesasge].join('\n');
cov_1jep83s2x2().s[11]++;
throw error;
}
}
/**
* Get content of the configuration file
* @param {String} configPath - partial path to configuration file
* @param {String} directory - directory path which will be joined with config argument
* @return {Object}
*/
function getConfigContent(configPath, baseDirectory) {
cov_1jep83s2x2().f[3]++;
cov_1jep83s2x2().s[12]++;
if (!configPath) {
cov_1jep83s2x2().b[2][0]++;
cov_1jep83s2x2().s[13]++;
return;
} else {
cov_1jep83s2x2().b[2][1]++;
}
const resolvedPath = (cov_1jep83s2x2().s[14]++, _path.default.resolve(baseDirectory, configPath));
const configBasename = (cov_1jep83s2x2().s[15]++, _path.default.basename(resolvedPath));
cov_1jep83s2x2().s[16]++;
if (!_fs.default.existsSync(resolvedPath)) {
cov_1jep83s2x2().b[3][0]++;
cov_1jep83s2x2().s[17]++;
return (0, _configLoader.getNormalizedConfig)(resolvedPath);
} else {
cov_1jep83s2x2().b[3][1]++;
}
const content = (cov_1jep83s2x2().s[18]++, readConfigContent(resolvedPath));
cov_1jep83s2x2().s[19]++;
return (0, _configLoader.getNormalizedConfig)(configBasename, content);
}
;
/**
* Read proper content from config file.
* If the chartset of the config file is not utf-8, one error will be thrown.
* @param {String} configPath
* @return {String}
*/
function readConfigFileContent(configPath) {
cov_1jep83s2x2().f[4]++;
let rawBufContent = (cov_1jep83s2x2().s[20]++, _fs.default.readFileSync(configPath));
cov_1jep83s2x2().s[21]++;
if (!(0, _isUtf.default)(rawBufContent)) {
cov_1jep83s2x2().b[4][0]++;
cov_1jep83s2x2().s[22]++;
throw new Error(`The config file at "${configPath}" contains invalid charset, expect utf8`);
} else {
cov_1jep83s2x2().b[4][1]++;
}
cov_1jep83s2x2().s[23]++;
return (0, _stripBom.default)(rawBufContent.toString("utf8"));
}

View File

@@ -0,0 +1,404 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
function cov_27tktivjps() {
var path = "/home/runner/work/cz-cli/cz-cli/src/configLoader/getNormalizedConfig.js";
var hash = "4f6f52b87cc201f346900b4ddb8d92d48fe58a78";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/configLoader/getNormalizedConfig.js",
statementMap: {
"0": {
start: {
line: 7,
column: 2
},
end: {
line: 26,
column: 3
}
},
"1": {
start: {
line: 12,
column: 4
},
end: {
line: 22,
column: 5
}
},
"2": {
start: {
line: 13,
column: 6
},
end: {
line: 13,
column: 39
}
},
"3": {
start: {
line: 14,
column: 11
},
end: {
line: 22,
column: 5
}
},
"4": {
start: {
line: 17,
column: 6
},
end: {
line: 20,
column: 7
}
},
"5": {
start: {
line: 19,
column: 8
},
end: {
line: 19,
column: 341
}
},
"6": {
start: {
line: 21,
column: 6
},
end: {
line: 21,
column: 30
}
},
"7": {
start: {
line: 25,
column: 4
},
end: {
line: 25,
column: 19
}
}
},
fnMap: {
"0": {
name: "getNormalizedConfig",
decl: {
start: {
line: 5,
column: 9
},
end: {
line: 5,
column: 28
}
},
loc: {
start: {
line: 5,
column: 47
},
end: {
line: 28,
column: 1
}
},
line: 5
}
},
branchMap: {
"0": {
loc: {
start: {
line: 7,
column: 2
},
end: {
line: 26,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 7,
column: 2
},
end: {
line: 26,
column: 3
}
}, {
start: {
line: 23,
column: 9
},
end: {
line: 26,
column: 3
}
}],
line: 7
},
"1": {
loc: {
start: {
line: 7,
column: 6
},
end: {
line: 7,
column: 44
}
},
type: "binary-expr",
locations: [{
start: {
line: 7,
column: 6
},
end: {
line: 7,
column: 13
}
}, {
start: {
line: 7,
column: 18
},
end: {
line: 7,
column: 43
}
}],
line: 7
},
"2": {
loc: {
start: {
line: 12,
column: 4
},
end: {
line: 22,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 12,
column: 4
},
end: {
line: 22,
column: 5
}
}, {
start: {
line: 14,
column: 11
},
end: {
line: 22,
column: 5
}
}],
line: 12
},
"3": {
loc: {
start: {
line: 12,
column: 8
},
end: {
line: 12,
column: 51
}
},
type: "binary-expr",
locations: [{
start: {
line: 12,
column: 8
},
end: {
line: 12,
column: 22
}
}, {
start: {
line: 12,
column: 26
},
end: {
line: 12,
column: 51
}
}],
line: 12
},
"4": {
loc: {
start: {
line: 14,
column: 11
},
end: {
line: 22,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 14,
column: 11
},
end: {
line: 22,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 14
},
"5": {
loc: {
start: {
line: 17,
column: 6
},
end: {
line: 20,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 17,
column: 6
},
end: {
line: 20,
column: 7
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 17
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0
},
f: {
"0": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0],
"4": [0, 0],
"5": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "4f6f52b87cc201f346900b4ddb8d92d48fe58a78"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_27tktivjps = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_27tktivjps();
var _default = getNormalizedConfig; // Given a config and content, plucks the actual
// settings that we're interested in
exports.default = _default;
function getNormalizedConfig(config, content) {
cov_27tktivjps().f[0]++;
cov_27tktivjps().s[0]++;
if ((cov_27tktivjps().b[1][0]++, content) && (cov_27tktivjps().b[1][1]++, config === 'package.json')) {
cov_27tktivjps().b[0][0]++;
cov_27tktivjps().s[1]++;
// PACKAGE.JSON
// Use the npm config key, be good citizens
if ((cov_27tktivjps().b[3][0]++, content.config) && (cov_27tktivjps().b[3][1]++, content.config.commitizen)) {
cov_27tktivjps().b[2][0]++;
cov_27tktivjps().s[2]++;
return content.config.commitizen;
} else {
cov_27tktivjps().b[2][1]++;
cov_27tktivjps().s[3]++;
if (content.czConfig) {
cov_27tktivjps().b[4][0]++;
cov_27tktivjps().s[4]++;
// Old method, will be deprecated in 3.0.0
// Suppress during test
if (typeof global.it !== 'function') {
cov_27tktivjps().b[5][0]++;
cov_27tktivjps().s[5]++;
console.error("\n********\nWARNING: This repository's package.json is using czConfig. czConfig will be deprecated in Commitizen 3. \nPlease use this instead:\n{\n \"config\": {\n \"commitizen\": {\n \"path\": \"./path/to/adapter\"\n }\n }\n}\nFor more information, see: http://commitizen.github.io/cz-cli/\n********\n");
} else {
cov_27tktivjps().b[5][1]++;
}
cov_27tktivjps().s[6]++;
return content.czConfig;
} else {
cov_27tktivjps().b[4][1]++;
}
}
} else {
cov_27tktivjps().b[0][1]++;
cov_27tktivjps().s[7]++;
// .cz.json or .czrc
return content;
}
}

427
node_modules/commitizen/dist/configLoader/loader.js generated vendored Normal file
View File

@@ -0,0 +1,427 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _path = _interopRequireDefault(require("path"));
var _configLoader = require("../configLoader");
var _util = require("../common/util.js");
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_aqt8wzdi9() {
var path = "/home/runner/work/cz-cli/cz-cli/src/configLoader/loader.js";
var hash = "4c4dccab67b6ecaa244de00bc5a7718df1c2c5ea";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/configLoader/loader.js",
statementMap: {
"0": {
start: {
line: 22,
column: 20
},
end: {
line: 22,
column: 40
}
},
"1": {
start: {
line: 25,
column: 4
},
end: {
line: 27,
column: 5
}
},
"2": {
start: {
line: 26,
column: 8
},
end: {
line: 26,
column: 45
}
},
"3": {
start: {
line: 29,
column: 4
},
end: {
line: 37,
column: 6
}
},
"4": {
start: {
line: 31,
column: 12
},
end: {
line: 33,
column: 13
}
},
"5": {
start: {
line: 35,
column: 12
},
end: {
line: 35,
column: 24
}
},
"6": {
start: {
line: 39,
column: 4
},
end: {
line: 41,
column: 5
}
},
"7": {
start: {
line: 40,
column: 8
},
end: {
line: 40,
column: 23
}
},
"8": {
start: {
line: 43,
column: 4
},
end: {
line: 59,
column: 5
}
}
},
fnMap: {
"0": {
name: "loader",
decl: {
start: {
line: 20,
column: 9
},
end: {
line: 20,
column: 15
}
},
loc: {
start: {
line: 20,
column: 39
},
end: {
line: 60,
column: 1
}
},
line: 20
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 30,
column: 58
},
end: {
line: 30,
column: 59
}
},
loc: {
start: {
line: 30,
column: 80
},
end: {
line: 36,
column: 9
}
},
line: 30
}
},
branchMap: {
"0": {
loc: {
start: {
line: 22,
column: 20
},
end: {
line: 22,
column: 40
}
},
type: "binary-expr",
locations: [{
start: {
line: 22,
column: 20
},
end: {
line: 22,
column: 23
}
}, {
start: {
line: 22,
column: 27
},
end: {
line: 22,
column: 40
}
}],
line: 22
},
"1": {
loc: {
start: {
line: 25,
column: 4
},
end: {
line: 27,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 25,
column: 4
},
end: {
line: 27,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 25
},
"2": {
loc: {
start: {
line: 31,
column: 12
},
end: {
line: 33,
column: 13
}
},
type: "if",
locations: [{
start: {
line: 31,
column: 12
},
end: {
line: 33,
column: 13
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 31
},
"3": {
loc: {
start: {
line: 39,
column: 4
},
end: {
line: 41,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 39,
column: 4
},
end: {
line: 41,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 39
},
"4": {
loc: {
start: {
line: 43,
column: 4
},
end: {
line: 59,
column: 5
}
},
type: "if",
locations: [{
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 43
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0
},
f: {
"0": 0,
"1": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0],
"4": [0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "4c4dccab67b6ecaa244de00bc5a7718df1c2c5ea"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_aqt8wzdi9 = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_aqt8wzdi9();
var _default = loader;
/**
* Command line config helpers
* Shamelessly ripped from with slight modifications:
* https://github.com/jscs-dev/node-jscs/blob/master/lib/cli-config.js
*/
/**
* Get content of the configuration file
* @param {String} config - partial path to configuration file
* @param {String} [cwd = process.cwd()] - directory path which will be joined with config argument
* @return {Object|undefined}
*/
exports.default = _default;
function loader(configs, config, cwd) {
cov_aqt8wzdi9().f[0]++;
var content;
var directory = (cov_aqt8wzdi9().s[0]++, (cov_aqt8wzdi9().b[0][0]++, cwd) || (cov_aqt8wzdi9().b[0][1]++, process.cwd()));
// If config option is given, attempt to load it
cov_aqt8wzdi9().s[1]++;
if (config) {
cov_aqt8wzdi9().b[1][0]++;
cov_aqt8wzdi9().s[2]++;
return (0, _configLoader.getContent)(config, directory);
} else {
cov_aqt8wzdi9().b[1][1]++;
}
cov_aqt8wzdi9().s[3]++;
content = (0, _configLoader.getContent)((0, _configLoader.findup)(configs, {
nocase: true,
cwd: directory
}, function (configPath) {
cov_aqt8wzdi9().f[1]++;
cov_aqt8wzdi9().s[4]++;
if (_path.default.basename(configPath) === 'package.json') {
cov_aqt8wzdi9().b[2][0]++;
} // return !!this.getContent(configPath);
else {
cov_aqt8wzdi9().b[2][1]++;
}
cov_aqt8wzdi9().s[5]++;
return true;
}));
cov_aqt8wzdi9().s[6]++;
if (content) {
cov_aqt8wzdi9().b[3][0]++;
cov_aqt8wzdi9().s[7]++;
return content;
} else {
cov_aqt8wzdi9().b[3][1]++;
}
/* istanbul ignore if */
cov_aqt8wzdi9().s[8]++;
if (!(0, _util.isInTest)()) {
// Try to load standard configs from home dir
var directoryArr = [process.env.USERPROFILE, process.env.HOMEPATH, process.env.HOME];
for (var i = 0, dirLen = directoryArr.length; i < dirLen; i++) {
if (!directoryArr[i]) {
continue;
}
for (var j = 0, len = configs.length; j < len; j++) {
content = (0, _configLoader.getContent)(configs[j], directoryArr[i]);
if (content) {
return content;
}
}
}
} else {
cov_aqt8wzdi9().b[4][0]++;
}
}

46
node_modules/commitizen/dist/git.js generated vendored Normal file
View File

@@ -0,0 +1,46 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
Object.defineProperty(exports, "addFile", {
enumerable: true,
get: function () {
return _add.addFile;
}
});
Object.defineProperty(exports, "addPath", {
enumerable: true,
get: function () {
return _add.addPath;
}
});
Object.defineProperty(exports, "commit", {
enumerable: true,
get: function () {
return _commit.commit;
}
});
Object.defineProperty(exports, "init", {
enumerable: true,
get: function () {
return _init.init;
}
});
Object.defineProperty(exports, "log", {
enumerable: true,
get: function () {
return _log.log;
}
});
Object.defineProperty(exports, "whatChanged", {
enumerable: true,
get: function () {
return _whatChanged.whatChanged;
}
});
var _add = require("./git/add");
var _commit = require("./git/commit");
var _init = require("./git/init");
var _log = require("./git/log");
var _whatChanged = require("./git/whatChanged");

136
node_modules/commitizen/dist/git/add.js generated vendored Normal file
View File

@@ -0,0 +1,136 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.addFile = addFile;
exports.addPath = addPath;
var _child_process = _interopRequireDefault(require("child_process"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_226e3t1eat() {
var path = "/home/runner/work/cz-cli/cz-cli/src/git/add.js";
var hash = "6b2e029493ef375337d44a1ebfb8489948920288";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/git/add.js",
statementMap: {
"0": {
start: {
line: 12,
column: 2
},
end: {
line: 12,
column: 65
}
},
"1": {
start: {
line: 19,
column: 2
},
end: {
line: 19,
column: 70
}
}
},
fnMap: {
"0": {
name: "addPath",
decl: {
start: {
line: 11,
column: 9
},
end: {
line: 11,
column: 16
}
},
loc: {
start: {
line: 11,
column: 28
},
end: {
line: 13,
column: 1
}
},
line: 11
},
"1": {
name: "addFile",
decl: {
start: {
line: 18,
column: 9
},
end: {
line: 18,
column: 16
}
},
loc: {
start: {
line: 18,
column: 38
},
end: {
line: 20,
column: 1
}
},
line: 18
}
},
branchMap: {},
s: {
"0": 0,
"1": 0
},
f: {
"0": 0,
"1": 0
},
b: {},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "6b2e029493ef375337d44a1ebfb8489948920288"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_226e3t1eat = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_226e3t1eat();
/**
* Synchronously adds a path to git staging
*/
function addPath(repoPath) {
cov_226e3t1eat().f[0]++;
cov_226e3t1eat().s[0]++;
_child_process.default.spawnSync('git', ['add', '.'], {
cwd: repoPath
});
}
/**
* Synchronously adds a file to git staging
*/
function addFile(repoPath, filename) {
cov_226e3t1eat().f[1]++;
cov_226e3t1eat().s[1]++;
_child_process.default.spawnSync('git', ['add', filename], {
cwd: repoPath
});
}

868
node_modules/commitizen/dist/git/commit.js generated vendored Normal file
View File

@@ -0,0 +1,868 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.commit = commit;
var _child_process = require("child_process");
var _path = _interopRequireDefault(require("path"));
var _fs = require("fs");
var _dedent = _interopRequireDefault(require("dedent"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_lpc78prp4() {
var path = "/home/runner/work/cz-cli/cz-cli/src/git/commit.js";
var hash = "dffb8a6807d61696bc8019d6e9da18a39917eafb";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/git/commit.js",
statementMap: {
"0": {
start: {
line: 15,
column: 15
},
end: {
line: 15,
column: 20
}
},
"1": {
start: {
line: 20,
column: 2
},
end: {
line: 85,
column: 3
}
},
"2": {
start: {
line: 21,
column: 15
},
end: {
line: 21,
column: 73
}
},
"3": {
start: {
line: 22,
column: 16
},
end: {
line: 25,
column: 6
}
},
"4": {
start: {
line: 27,
column: 4
},
end: {
line: 32,
column: 7
}
},
"5": {
start: {
line: 28,
column: 6
},
end: {
line: 28,
column: 25
}
},
"6": {
start: {
line: 28,
column: 18
},
end: {
line: 28,
column: 25
}
},
"7": {
start: {
line: 29,
column: 6
},
end: {
line: 29,
column: 20
}
},
"8": {
start: {
line: 31,
column: 6
},
end: {
line: 31,
column: 16
}
},
"9": {
start: {
line: 34,
column: 4
},
end: {
line: 51,
column: 7
}
},
"10": {
start: {
line: 35,
column: 6
},
end: {
line: 35,
column: 25
}
},
"11": {
start: {
line: 35,
column: 18
},
end: {
line: 35,
column: 25
}
},
"12": {
start: {
line: 36,
column: 6
},
end: {
line: 36,
column: 20
}
},
"13": {
start: {
line: 38,
column: 6
},
end: {
line: 50,
column: 7
}
},
"14": {
start: {
line: 39,
column: 8
},
end: {
line: 46,
column: 9
}
},
"15": {
start: {
line: 40,
column: 10
},
end: {
line: 45,
column: 14
}
},
"16": {
start: {
line: 47,
column: 8
},
end: {
line: 47,
column: 95
}
},
"17": {
start: {
line: 49,
column: 8
},
end: {
line: 49,
column: 19
}
},
"18": {
start: {
line: 53,
column: 23
},
end: {
line: 56,
column: 12
}
},
"19": {
start: {
line: 57,
column: 27
},
end: {
line: 57,
column: 66
}
},
"20": {
start: {
line: 58,
column: 4
},
end: {
line: 84,
column: 5
}
},
"21": {
start: {
line: 59,
column: 17
},
end: {
line: 59,
column: 46
}
},
"22": {
start: {
line: 60,
column: 6
},
end: {
line: 67,
column: 7
}
},
"23": {
start: {
line: 61,
column: 8
},
end: {
line: 61,
column: 43
}
},
"24": {
start: {
line: 62,
column: 8
},
end: {
line: 62,
column: 19
}
},
"25": {
start: {
line: 64,
column: 8
},
end: {
line: 64,
column: 16
}
},
"26": {
start: {
line: 66,
column: 8
},
end: {
line: 66,
column: 22
}
},
"27": {
start: {
line: 71,
column: 6
},
end: {
line: 83,
column: 7
}
},
"28": {
start: {
line: 72,
column: 19
},
end: {
line: 72,
column: 49
}
},
"29": {
start: {
line: 73,
column: 8
},
end: {
line: 80,
column: 9
}
},
"30": {
start: {
line: 74,
column: 10
},
end: {
line: 74,
column: 45
}
},
"31": {
start: {
line: 75,
column: 10
},
end: {
line: 75,
column: 21
}
},
"32": {
start: {
line: 77,
column: 10
},
end: {
line: 77,
column: 18
}
},
"33": {
start: {
line: 79,
column: 10
},
end: {
line: 79,
column: 24
}
},
"34": {
start: {
line: 82,
column: 8
},
end: {
line: 82,
column: 16
}
}
},
fnMap: {
"0": {
name: "commit",
decl: {
start: {
line: 14,
column: 9
},
end: {
line: 14,
column: 15
}
},
loc: {
start: {
line: 14,
column: 51
},
end: {
line: 86,
column: 1
}
},
line: 14
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 27,
column: 22
},
end: {
line: 27,
column: 23
}
},
loc: {
start: {
line: 27,
column: 37
},
end: {
line: 32,
column: 5
}
},
line: 27
},
"2": {
name: "(anonymous_2)",
decl: {
start: {
line: 34,
column: 21
},
end: {
line: 34,
column: 22
}
},
loc: {
start: {
line: 34,
column: 45
},
end: {
line: 51,
column: 5
}
},
line: 34
}
},
branchMap: {
"0": {
loc: {
start: {
line: 20,
column: 2
},
end: {
line: 85,
column: 3
}
},
type: "if",
locations: [{
start: {
line: 20,
column: 2
},
end: {
line: 85,
column: 3
}
}, {
start: {
line: 52,
column: 9
},
end: {
line: 85,
column: 3
}
}],
line: 20
},
"1": {
loc: {
start: {
line: 21,
column: 53
},
end: {
line: 21,
column: 71
}
},
type: "binary-expr",
locations: [{
start: {
line: 21,
column: 53
},
end: {
line: 21,
column: 65
}
}, {
start: {
line: 21,
column: 69
},
end: {
line: 21,
column: 71
}
}],
line: 21
},
"2": {
loc: {
start: {
line: 24,
column: 13
},
end: {
line: 24,
column: 49
}
},
type: "cond-expr",
locations: [{
start: {
line: 24,
column: 29
},
end: {
line: 24,
column: 37
}
}, {
start: {
line: 24,
column: 40
},
end: {
line: 24,
column: 49
}
}],
line: 24
},
"3": {
loc: {
start: {
line: 28,
column: 6
},
end: {
line: 28,
column: 25
}
},
type: "if",
locations: [{
start: {
line: 28,
column: 6
},
end: {
line: 28,
column: 25
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 28
},
"4": {
loc: {
start: {
line: 35,
column: 6
},
end: {
line: 35,
column: 25
}
},
type: "if",
locations: [{
start: {
line: 35,
column: 6
},
end: {
line: 35,
column: 25
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 35
},
"5": {
loc: {
start: {
line: 38,
column: 6
},
end: {
line: 50,
column: 7
}
},
type: "if",
locations: [{
start: {
line: 38,
column: 6
},
end: {
line: 50,
column: 7
}
}, {
start: {
line: 48,
column: 13
},
end: {
line: 50,
column: 7
}
}],
line: 38
},
"6": {
loc: {
start: {
line: 39,
column: 8
},
end: {
line: 46,
column: 9
}
},
type: "if",
locations: [{
start: {
line: 39,
column: 8
},
end: {
line: 46,
column: 9
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 39
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0,
"4": 0,
"5": 0,
"6": 0,
"7": 0,
"8": 0,
"9": 0,
"10": 0,
"11": 0,
"12": 0,
"13": 0,
"14": 0,
"15": 0,
"16": 0,
"17": 0,
"18": 0,
"19": 0,
"20": 0,
"21": 0,
"22": 0,
"23": 0,
"24": 0,
"25": 0,
"26": 0,
"27": 0,
"28": 0,
"29": 0,
"30": 0,
"31": 0,
"32": 0,
"33": 0,
"34": 0
},
f: {
"0": 0,
"1": 0,
"2": 0
},
b: {
"0": [0, 0],
"1": [0, 0],
"2": [0, 0],
"3": [0, 0],
"4": [0, 0],
"5": [0, 0],
"6": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "dffb8a6807d61696bc8019d6e9da18a39917eafb"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_lpc78prp4 = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_lpc78prp4();
/**
* Asynchronously git commit at a given path with a message
*/
function commit(repoPath, message, options, done) {
cov_lpc78prp4().f[0]++;
let called = (cov_lpc78prp4().s[0]++, false);
// commit the file by spawning a git process, unless the --hook
// option was provided. in that case, write the commit message into
// the .git/COMMIT_EDITMSG file
cov_lpc78prp4().s[1]++;
if (!options.hookMode) {
cov_lpc78prp4().b[0][0]++;
let args = (cov_lpc78prp4().s[2]++, ['commit', '-m', (0, _dedent.default)(message), ...((cov_lpc78prp4().b[1][0]++, options.args) || (cov_lpc78prp4().b[1][1]++, []))]);
let child = (cov_lpc78prp4().s[3]++, (0, _child_process.spawn)('git', args, {
cwd: repoPath,
stdio: options.quiet ? (cov_lpc78prp4().b[2][0]++, 'ignore') : (cov_lpc78prp4().b[2][1]++, 'inherit')
}));
cov_lpc78prp4().s[4]++;
child.on('error', function (err) {
cov_lpc78prp4().f[1]++;
cov_lpc78prp4().s[5]++;
if (called) {
cov_lpc78prp4().b[3][0]++;
cov_lpc78prp4().s[6]++;
return;
} else {
cov_lpc78prp4().b[3][1]++;
}
cov_lpc78prp4().s[7]++;
called = true;
cov_lpc78prp4().s[8]++;
done(err);
});
cov_lpc78prp4().s[9]++;
child.on('exit', function (code, signal) {
cov_lpc78prp4().f[2]++;
cov_lpc78prp4().s[10]++;
if (called) {
cov_lpc78prp4().b[4][0]++;
cov_lpc78prp4().s[11]++;
return;
} else {
cov_lpc78prp4().b[4][1]++;
}
cov_lpc78prp4().s[12]++;
called = true;
cov_lpc78prp4().s[13]++;
if (code) {
cov_lpc78prp4().b[5][0]++;
cov_lpc78prp4().s[14]++;
if (code === 128) {
cov_lpc78prp4().b[6][0]++;
cov_lpc78prp4().s[15]++;
console.warn(`
Git exited with code 128. Did you forget to run:
git config --global user.email "you@example.com"
git config --global user.name "Your Name"
`);
} else {
cov_lpc78prp4().b[6][1]++;
}
cov_lpc78prp4().s[16]++;
done(Object.assign(new Error(`git exited with error code ${code}`), {
code,
signal
}));
} else {
cov_lpc78prp4().b[5][1]++;
cov_lpc78prp4().s[17]++;
done(null);
}
});
} else {
cov_lpc78prp4().b[0][1]++;
const gitDirPath = (cov_lpc78prp4().s[18]++, (0, _child_process.execSync)('git rev-parse --absolute-git-dir', {
cwd: repoPath,
encoding: 'utf8'
}).trim());
const commitFilePath = (cov_lpc78prp4().s[19]++, _path.default.join(gitDirPath, 'COMMIT_EDITMSG'));
cov_lpc78prp4().s[20]++;
try {
const fd = (cov_lpc78prp4().s[21]++, (0, _fs.openSync)(commitFilePath, 'w'));
cov_lpc78prp4().s[22]++;
try {
cov_lpc78prp4().s[23]++;
(0, _fs.writeFileSync)(fd, (0, _dedent.default)(message));
cov_lpc78prp4().s[24]++;
done(null);
} catch (e) {
cov_lpc78prp4().s[25]++;
done(e);
} finally {
cov_lpc78prp4().s[26]++;
(0, _fs.closeSync)(fd);
}
} catch (e) {
cov_lpc78prp4().s[27]++;
// windows doesn't allow opening existing hidden files
// in 'w' mode... but it does let you do 'r+'!
try {
const fd = (cov_lpc78prp4().s[28]++, (0, _fs.openSync)(commitFilePath, 'r+'));
cov_lpc78prp4().s[29]++;
try {
cov_lpc78prp4().s[30]++;
(0, _fs.writeFileSync)(fd, (0, _dedent.default)(message));
cov_lpc78prp4().s[31]++;
done(null);
} catch (e) {
cov_lpc78prp4().s[32]++;
done(e);
} finally {
cov_lpc78prp4().s[33]++;
(0, _fs.closeSync)(fd);
}
} catch (e) {
cov_lpc78prp4().s[34]++;
done(e);
}
}
}
}

88
node_modules/commitizen/dist/git/init.js generated vendored Normal file
View File

@@ -0,0 +1,88 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.init = init;
var _child_process = _interopRequireDefault(require("child_process"));
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
function cov_2lfeo71xnk() {
var path = "/home/runner/work/cz-cli/cz-cli/src/git/init.js";
var hash = "2e1de1e82ca18c86df306fd611871f92429b8fa5";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/git/init.js",
statementMap: {
"0": {
start: {
line: 9,
column: 2
},
end: {
line: 9,
column: 61
}
}
},
fnMap: {
"0": {
name: "init",
decl: {
start: {
line: 8,
column: 9
},
end: {
line: 8,
column: 13
}
},
loc: {
start: {
line: 8,
column: 25
},
end: {
line: 10,
column: 1
}
},
line: 8
}
},
branchMap: {},
s: {
"0": 0
},
f: {
"0": 0
},
b: {},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "2e1de1e82ca18c86df306fd611871f92429b8fa5"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_2lfeo71xnk = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_2lfeo71xnk();
/**
* Synchronously creates a new git repo at a path
*/
function init(repoPath) {
cov_2lfeo71xnk().f[0]++;
cov_2lfeo71xnk().s[0]++;
_child_process.default.spawnSync('git', ['init'], {
cwd: repoPath
});
}

194
node_modules/commitizen/dist/git/log.js generated vendored Normal file
View File

@@ -0,0 +1,194 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.log = log;
var _child_process = require("child_process");
function cov_uo383o3rs() {
var path = "/home/runner/work/cz-cli/cz-cli/src/git/log.js";
var hash = "af9ef92940eb1c905d0a9cd466704f086cbe48fa";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/git/log.js",
statementMap: {
"0": {
start: {
line: 9,
column: 2
},
end: {
line: 17,
column: 5
}
},
"1": {
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
},
"2": {
start: {
line: 14,
column: 6
},
end: {
line: 14,
column: 18
}
},
"3": {
start: {
line: 16,
column: 4
},
end: {
line: 16,
column: 17
}
}
},
fnMap: {
"0": {
name: "log",
decl: {
start: {
line: 8,
column: 9
},
end: {
line: 8,
column: 12
}
},
loc: {
start: {
line: 8,
column: 30
},
end: {
line: 18,
column: 1
}
},
line: 8
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 12,
column: 5
},
end: {
line: 12,
column: 6
}
},
loc: {
start: {
line: 12,
column: 38
},
end: {
line: 17,
column: 3
}
},
line: 12
}
},
branchMap: {
"0": {
loc: {
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 13
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
f: {
"0": 0,
"1": 0
},
b: {
"0": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "af9ef92940eb1c905d0a9cd466704f086cbe48fa"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_uo383o3rs = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_uo383o3rs();
/**
* Asynchronously gets the git log output
*/
function log(repoPath, done) {
cov_uo383o3rs().f[0]++;
cov_uo383o3rs().s[0]++;
(0, _child_process.exec)('git log', {
maxBuffer: Infinity,
cwd: repoPath
}, function (error, stdout, stderr) {
cov_uo383o3rs().f[1]++;
cov_uo383o3rs().s[1]++;
if (error) {
cov_uo383o3rs().b[0][0]++;
cov_uo383o3rs().s[2]++;
throw error;
} else {
cov_uo383o3rs().b[0][1]++;
}
cov_uo383o3rs().s[3]++;
done(stdout);
});
}

194
node_modules/commitizen/dist/git/whatChanged.js generated vendored Normal file
View File

@@ -0,0 +1,194 @@
"use strict";
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.whatChanged = whatChanged;
var _child_process = require("child_process");
function cov_2ixm6leycz() {
var path = "/home/runner/work/cz-cli/cz-cli/src/git/whatChanged.js";
var hash = "1b3ffa6b1e244146ab047f40630d5a3cda14c5b3";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/git/whatChanged.js",
statementMap: {
"0": {
start: {
line: 9,
column: 2
},
end: {
line: 17,
column: 5
}
},
"1": {
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
},
"2": {
start: {
line: 14,
column: 6
},
end: {
line: 14,
column: 18
}
},
"3": {
start: {
line: 16,
column: 4
},
end: {
line: 16,
column: 17
}
}
},
fnMap: {
"0": {
name: "whatChanged",
decl: {
start: {
line: 8,
column: 9
},
end: {
line: 8,
column: 20
}
},
loc: {
start: {
line: 8,
column: 38
},
end: {
line: 18,
column: 1
}
},
line: 8
},
"1": {
name: "(anonymous_1)",
decl: {
start: {
line: 12,
column: 5
},
end: {
line: 12,
column: 6
}
},
loc: {
start: {
line: 12,
column: 38
},
end: {
line: 17,
column: 3
}
},
line: 12
}
},
branchMap: {
"0": {
loc: {
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
},
type: "if",
locations: [{
start: {
line: 13,
column: 4
},
end: {
line: 15,
column: 5
}
}, {
start: {
line: undefined,
column: undefined
},
end: {
line: undefined,
column: undefined
}
}],
line: 13
}
},
s: {
"0": 0,
"1": 0,
"2": 0,
"3": 0
},
f: {
"0": 0,
"1": 0
},
b: {
"0": [0, 0]
},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "1b3ffa6b1e244146ab047f40630d5a3cda14c5b3"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_2ixm6leycz = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_2ixm6leycz();
/**
* Asynchronously gets the git whatchanged output
*/
function whatChanged(repoPath, done) {
cov_2ixm6leycz().f[0]++;
cov_2ixm6leycz().s[0]++;
(0, _child_process.exec)('git whatchanged', {
maxBuffer: Infinity,
cwd: repoPath
}, function (error, stdout, stderr) {
cov_2ixm6leycz().f[1]++;
cov_2ixm6leycz().s[1]++;
if (error) {
cov_2ixm6leycz().b[0][0]++;
cov_2ixm6leycz().s[2]++;
throw error;
} else {
cov_2ixm6leycz().b[0][1]++;
}
cov_2ixm6leycz().s[3]++;
done(stdout);
});
}

59
node_modules/commitizen/dist/index.js generated vendored Normal file
View File

@@ -0,0 +1,59 @@
"use strict";
function cov_toszyysar() {
var path = "/home/runner/work/cz-cli/cz-cli/src/index.js";
var hash = "2dc4d0be9f441adce3ca215aa053ea537077b4a1";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/index.js",
statementMap: {
"0": {
start: {
line: 1,
column: 17
},
end: {
line: 1,
column: 40
}
},
"1": {
start: {
line: 2,
column: 0
},
end: {
line: 2,
column: 28
}
}
},
fnMap: {},
branchMap: {},
s: {
"0": 0,
"1": 0
},
f: {},
b: {},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "2dc4d0be9f441adce3ca215aa053ea537077b4a1"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_toszyysar = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_toszyysar();
var commitizen = (cov_toszyysar().s[0]++, require('./commitizen'));
cov_toszyysar().s[1]++;
module.exports = commitizen;

33
node_modules/commitizen/dist/npm.js generated vendored Normal file
View File

@@ -0,0 +1,33 @@
// this file left blank until npm init is implemented
"use strict";
function cov_1gc3c8mxtr() {
var path = "/home/runner/work/cz-cli/cz-cli/src/npm.js";
var hash = "05b9d3440fe2b0b7f84bf1dcc5d4f9bf2770e33e";
var global = new Function("return this")();
var gcv = "__coverage__";
var coverageData = {
path: "/home/runner/work/cz-cli/cz-cli/src/npm.js",
statementMap: {},
fnMap: {},
branchMap: {},
s: {},
f: {},
b: {},
_coverageSchema: "1a1c01bbd47fc00a2c39e90264f33305004495a9",
hash: "05b9d3440fe2b0b7f84bf1dcc5d4f9bf2770e33e"
};
var coverage = global[gcv] || (global[gcv] = {});
if (!coverage[path] || coverage[path].hash !== hash) {
coverage[path] = coverageData;
}
var actualCoverage = coverage[path];
{
// @ts-ignore
cov_1gc3c8mxtr = function () {
return actualCoverage;
};
}
return actualCoverage;
}
cov_1gc3c8mxtr();

45
node_modules/commitizen/jobs/build.yml generated vendored Normal file
View File

@@ -0,0 +1,45 @@
# File: jobs/build.yml
parameters:
name: ''
pool: ''
sign: false
jobs:
- job: ${{ parameters.name }}
pool: ${{ parameters.pool }}
strategy:
maxParallel: 3
matrix:
node-16:
node_version: ^16.13.0
node-14:
node_version: ^14.18.0
node-12:
node_version: ^12.6.0
steps:
- task: NodeTool@0
displayName: " Install Node.js"
inputs:
versionSpec: $(node_version)
- script: git config --global user.email "example@example.com"
- script: git config --global user.name "Example Git User"
- script: npm install
- script: npm run build
- script: npm test && npm run write-coverage
- script: bash logo/generate.sh
- task: PublishTestResults@2
displayName: 'Publish Test Results'
inputs:
testResultsFiles: '**/junit-*.xml'
testRunTitle: TestRun ${{ parameters.name }} $(node_version)
- task: PublishCodeCoverageResults@1
displayName: 'Publish code coverage results'
inputs:
codeCoverageTool: 'cobertura'
summaryFileLocation: '**/coverage/cobertura-coverage.xml'
- task: PublishBuildArtifacts@1
displayName: Publish packages
condition: and(succeeded(), eq(variables['system.pullrequest.isfork'], false))
inputs:
pathtoPublish: '$(Build.ArtifactStagingDirectory)'

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 14 KiB

100
node_modules/commitizen/logo/commitizen-logo-mono.svg generated vendored Normal file
View File

@@ -0,0 +1,100 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M318 452C318 455.314 320.686 458 324 458C327.314 458 330 455.314 330 452C330 448.686 327.314 446 324 446C320.686 446 318 448.686 318 452Z" fill="white"/>
<path d="M308 424C308 427.314 310.686 430 314 430C317.314 430 320 427.314 320 424C320 420.686 317.314 418 314 418C310.686 418 308 420.686 308 424Z" fill="white"/>
<path d="M338 396C338 399.866 341.134 403 345 403C348.866 403 352 399.866 352 396C352 392.134 348.866 389 345 389C341.134 389 338 392.134 338 396Z" fill="white"/>
<path d="M385.5 340C385.5 352.15 395.35 362 407.5 362C419.65 362 429.5 352.15 429.5 340C429.5 327.85 419.65 318 407.5 318C395.35 318 385.5 327.85 385.5 340Z" fill="white"/>
<path d="M357 383C357 392.389 364.611 400 374 400C383.389 400 391 392.389 391 383C391 373.611 383.389 366 374 366C364.611 366 357 373.611 357 383Z" fill="white"/>
<path d="M332 428C332 433.523 336.477 438 342 438C347.523 438 352 433.523 352 428C352 422.477 347.523 418 342 418C336.477 418 332 422.477 332 428Z" fill="white"/>
<path d="M312 407C312 411.971 316.029 416 321 416C325.971 416 330 411.971 330 407C330 402.029 325.971 398 321 398C316.029 398 312 402.029 312 407Z" fill="white"/>
<path d="M290 415C290 418.866 293.134 422 297 422C300.866 422 304 418.866 304 415C304 411.134 300.866 408 297 408C293.134 408 290 411.134 290 415Z" fill="white"/>
<path d="M262 418C262 423.523 266.477 428 272 428C277.523 428 282 423.523 282 418C282 412.477 277.523 408 272 408C266.477 408 262 412.477 262 418Z" fill="white"/>
<path d="M194 421.5C194 430.613 201.387 438 210.5 438C219.613 438 227 430.613 227 421.5C227 412.387 219.613 405 210.5 405C201.387 405 194 412.387 194 421.5Z" fill="white"/>
<path d="M158.5 402.5C158.5 409.956 164.544 416 172 416C179.456 416 185.5 409.956 185.5 402.5C185.5 395.044 179.456 389 172 389C164.544 389 158.5 395.044 158.5 402.5Z" fill="white"/>
<path d="M91.5 361C91.5 372.046 100.454 381 111.5 381C122.546 381 131.5 372.046 131.5 361C131.5 349.954 122.546 341 111.5 341C100.454 341 91.5 349.954 91.5 361Z" fill="white"/>
<path d="M78 317.5C78 326.06 84.9396 333 93.5 333C102.06 333 109 326.06 109 317.5C109 308.94 102.06 302 93.5 302C84.9396 302 78 308.94 78 317.5Z" fill="white"/>
<path d="M61.5 345C61.5 351.075 66.4249 356 72.5 356C78.5751 356 83.5 351.075 83.5 345C83.5 338.925 78.5751 334 72.5 334C66.4249 334 61.5 338.925 61.5 345Z" fill="white"/>
<path d="M59 322.5C59 326.642 62.3579 330 66.5 330C70.6421 330 74 326.642 74 322.5C74 318.358 70.6421 315 66.5 315C62.3579 315 59 318.358 59 322.5Z" fill="white"/>
<path d="M29.5 348C29.5 352.418 33.0817 356 37.5 356C41.9183 356 45.5 352.418 45.5 348C45.5 343.582 41.9183 340 37.5 340C33.0817 340 29.5 343.582 29.5 348Z" fill="white"/>
<path d="M27 360.5C27 362.985 29.0147 365 31.5 365C33.9853 365 36 362.985 36 360.5C36 358.015 33.9853 356 31.5 356C29.0147 356 27 358.015 27 360.5Z" fill="white"/>
<path d="M8.5 359C8.5 360.657 9.84315 362 11.5 362C13.1569 362 14.5 360.657 14.5 359C14.5 357.343 13.1569 356 11.5 356C9.84315 356 8.5 357.343 8.5 359Z" fill="white"/>
<path d="M65.5 285.5C65.5 286.881 66.6193 288 68 288C69.3807 288 70.5 286.881 70.5 285.5C70.5 284.119 69.3807 283 68 283C66.6193 283 65.5 284.119 65.5 285.5Z" fill="white"/>
<path d="M37 239C37 241.209 38.7909 243 41 243C43.2091 243 45 241.209 45 239C45 236.791 43.2091 235 41 235C38.7909 235 37 236.791 37 239Z" fill="white"/>
<path d="M21 231C21 234.314 23.6863 237 27 237C30.3137 237 33 234.314 33 231C33 227.686 30.3137 225 27 225C23.6863 225 21 227.686 21 231Z" fill="white"/>
<path d="M78.5 278C78.5 283.523 82.9771 288 88.5 288C94.0229 288 98.5 283.523 98.5 278C98.5 272.477 94.0229 268 88.5 268C82.9771 268 78.5 272.477 78.5 278Z" fill="white"/>
<path d="M56.5 263C56.5 267.971 60.5294 272 65.5 272C70.4706 272 74.5 267.971 74.5 263C74.5 258.029 70.4706 254 65.5 254C60.5294 254 56.5 258.029 56.5 263Z" fill="white"/>
<path d="M78.5 247C78.5 251.971 82.5294 256 87.5 256C92.4706 256 96.5 251.971 96.5 247C96.5 242.029 92.4706 238 87.5 238C82.5294 238 78.5 242.029 78.5 247Z" fill="white"/>
<path d="M55.5 236C55.5 240.418 59.0817 244 63.5 244C67.9183 244 71.5 240.418 71.5 236C71.5 231.582 67.9183 228 63.5 228C59.0817 228 55.5 231.582 55.5 236Z" fill="white"/>
<path d="M66 207C66 218.046 74.9543 227 86 227C97.0457 227 106 218.046 106 207C106 195.954 97.0457 187 86 187C74.9543 187 66 195.954 66 207Z" fill="white"/>
<path d="M30 214C30 221.732 36.268 228 44 228C51.732 228 58 221.732 58 214C58 206.268 51.732 200 44 200C36.268 200 30 206.268 30 214Z" fill="white"/>
<path d="M40 184C40 190.627 45.3726 196 52 196C58.6274 196 64 190.627 64 184C64 177.373 58.6274 172 52 172C45.3726 172 40 177.373 40 184Z" fill="white"/>
<path d="M98 164C98 170.627 103.373 176 110 176C116.627 176 122 170.627 122 164C122 157.373 116.627 152 110 152C103.373 152 98 157.373 98 164Z" fill="white"/>
<path d="M124 129C124 137.284 130.716 144 139 144C147.284 144 154 137.284 154 129C154 120.716 147.284 114 139 114C130.716 114 124 120.716 124 129Z" fill="white"/>
<path d="M158 111C158 117.075 162.925 122 169 122C175.075 122 180 117.075 180 111C180 104.925 175.075 100 169 100C162.925 100 158 104.925 158 111Z" fill="white"/>
<path d="M172 83C172 86.866 175.134 90 179 90C182.866 90 186 86.866 186 83C186 79.134 182.866 76 179 76C175.134 76 172 79.134 172 83Z" fill="white"/>
<path d="M210 67C210 70.866 213.134 74 217 74C220.866 74 224 70.866 224 67C224 63.134 220.866 60 217 60C213.134 60 210 63.134 210 67Z" fill="white"/>
<path d="M222 89C222 95.0751 226.925 100 233 100C239.075 100 244 95.0751 244 89C244 82.9249 239.075 78 233 78C226.925 78 222 82.9249 222 89Z" fill="white"/>
<path d="M232 60C232 67.732 238.268 74 246 74C253.732 74 260 67.732 260 60C260 52.268 253.732 46 246 46C238.268 46 232 52.268 232 60Z" fill="white"/>
<path d="M251 85C251 89.9706 255.029 94 260 94C264.971 94 269 89.9706 269 85C269 80.0294 264.971 76 260 76C255.029 76 251 80.0294 251 85Z" fill="white"/>
<path d="M280 82C280 93.0457 288.954 102 300 102C311.046 102 320 93.0457 320 82C320 70.9543 311.046 62 300 62C288.954 62 280 70.9543 280 82Z" fill="white"/>
<path d="M327.5 72.5C327.5 79.4036 333.096 85 340 85C346.904 85 352.5 79.4036 352.5 72.5C352.5 65.5964 346.904 60 340 60C333.096 60 327.5 65.5964 327.5 72.5Z" fill="white"/>
<path d="M331.5 105.5C331.5 112.956 337.544 119 345 119C352.456 119 358.5 112.956 358.5 105.5C358.5 98.0442 352.456 92 345 92C337.544 92 331.5 98.0442 331.5 105.5Z" fill="white"/>
<path d="M392.5 162.5C392.5 169.956 398.544 176 406 176C413.456 176 419.5 169.956 419.5 162.5C419.5 155.044 413.456 149 406 149C398.544 149 392.5 155.044 392.5 162.5Z" fill="white"/>
<path d="M376 142C376 146.971 380.029 151 385 151C389.971 151 394 146.971 394 142C394 137.029 389.971 133 385 133C380.029 133 376 137.029 376 142Z" fill="white"/>
<path d="M405 129C405 133.971 409.029 138 414 138C418.971 138 423 133.971 423 129C423 124.029 418.971 120 414 120C409.029 120 405 124.029 405 129Z" fill="white"/>
<path d="M362 124C362 128.418 365.582 132 370 132C374.418 132 378 128.418 378 124C378 119.582 374.418 116 370 116C365.582 116 362 119.582 362 124Z" fill="white"/>
<path d="M433 126C433 129.314 435.686 132 439 132C442.314 132 445 129.314 445 126C445 122.686 442.314 120 439 120C435.686 120 433 122.686 433 126Z" fill="white"/>
<path d="M356 81C356 84.3137 358.686 87 362 87C365.314 87 368 84.3137 368 81C368 77.6863 365.314 75 362 75C358.686 75 356 77.6863 356 81Z" fill="white"/>
<path d="M338 51C338 54.866 341.134 58 345 58C348.866 58 352 54.866 352 51C352 47.134 348.866 44 345 44C341.134 44 338 47.134 338 51Z" fill="white"/>
<path d="M414 43C414 47.9706 418.029 52 423 52C427.971 52 432 47.9706 432 43C432 38.0294 427.971 34 423 34C418.029 34 414 38.0294 414 43Z" fill="white"/>
<path d="M353.5 6.5C353.5 10.0899 356.41 13 360 13C363.59 13 366.5 10.0899 366.5 6.5C366.5 2.91015 363.59 0 360 0C356.41 0 353.5 2.91015 353.5 6.5Z" fill="white"/>
<path d="M389 114C389 116.209 390.791 118 393 118C395.209 118 397 116.209 397 114C397 111.791 395.209 110 393 110C390.791 110 389 111.791 389 114Z" fill="white"/>
<path d="M424 150C424 155.523 428.477 160 434 160C439.523 160 444 155.523 444 150C444 144.477 439.523 140 434 140C428.477 140 424 144.477 424 150Z" fill="white"/>
<path d="M452 157C452 161.971 456.029 166 461 166C465.971 166 470 161.971 470 157C470 152.029 465.971 148 461 148C456.029 148 452 152.029 452 157Z" fill="white"/>
<path d="M469 201C469 204.866 472.134 208 476 208C479.866 208 483 204.866 483 201C483 197.134 479.866 194 476 194C472.134 194 469 197.134 469 201Z" fill="white"/>
<path d="M411 231C411 235.971 415.029 240 420 240C424.971 240 429 235.971 429 231C429 226.029 424.971 222 420 222C415.029 222 411 226.029 411 231Z" fill="white"/>
<path d="M443 247C443 251.971 447.029 256 452 256C456.971 256 461 251.971 461 247C461 242.029 456.971 238 452 238C447.029 238 443 242.029 443 247Z" fill="white"/>
<path d="M411.5 261.5C411.5 267.299 416.201 272 422 272C427.799 272 432.5 267.299 432.5 261.5C432.5 255.701 427.799 251 422 251C416.201 251 411.5 255.701 411.5 261.5Z" fill="white"/>
<path d="M439.5 268.5C439.5 272.642 442.858 276 447 276C451.142 276 454.5 272.642 454.5 268.5C454.5 264.358 451.142 261 447 261C442.858 261 439.5 264.358 439.5 268.5Z" fill="white"/>
<path d="M402 295C402 303.284 408.716 310 417 310C425.284 310 432 303.284 432 295C432 286.716 425.284 280 417 280C408.716 280 402 286.716 402 295Z" fill="white"/>
<path d="M462 327C462 331.971 466.029 336 471 336C475.971 336 480 331.971 480 327C480 322.029 475.971 318 471 318C466.029 318 462 322.029 462 327Z" fill="white"/>
<path d="M440 286C440 289.314 442.686 292 446 292C449.314 292 452 289.314 452 286C452 282.686 449.314 280 446 280C442.686 280 440 282.686 440 286Z" fill="white"/>
<path d="M472 294C472 296.209 473.791 298 476 298C478.209 298 480 296.209 480 294C480 291.791 478.209 290 476 290C473.791 290 472 291.791 472 294Z" fill="white"/>
<path d="M462 265C462 267.209 463.791 269 466 269C468.209 269 470 267.209 470 265C470 262.791 468.209 261 466 261C463.791 261 462 262.791 462 265Z" fill="white"/>
<path d="M219 27C219 31.9706 223.029 36 228 36C232.971 36 237 31.9706 237 27C237 22.0294 232.971 18 228 18C223.029 18 219 22.0294 219 27Z" fill="white"/>
<path d="M216 48C216 50.2091 217.791 52 220 52C222.209 52 224 50.2091 224 48C224 45.7909 222.209 44 220 44C217.791 44 216 45.7909 216 48Z" fill="white"/>
<path d="M267 64C267 66.2091 268.791 68 271 68C273.209 68 275 66.2091 275 64C275 61.7909 273.209 60 271 60C268.791 60 267 61.7909 267 64Z" fill="white"/>
<path d="M283 45C283 49.9706 287.029 54 292 54C296.971 54 301 49.9706 301 45C301 40.0294 296.971 36 292 36C287.029 36 283 40.0294 283 45Z" fill="white"/>
<path d="M68 161C68 165.971 72.0294 170 77 170C81.9706 170 86 165.971 86 161C86 156.029 81.9706 152 77 152C72.0294 152 68 156.029 68 161Z" fill="white"/>
<path d="M91 110C91 113.314 93.6863 116 97 116C100.314 116 103 113.314 103 110C103 106.686 100.314 104 97 104C93.6863 104 91 106.686 91 110Z" fill="white"/>
<path d="M123 102C123 104.209 124.791 106 127 106C129.209 106 131 104.209 131 102C131 99.7909 129.209 98 127 98C124.791 98 123 99.7909 123 102Z" fill="white"/>
<path d="M139 100C139 103.314 141.686 106 145 106C148.314 106 151 103.314 151 100C151 96.6863 148.314 94 145 94C141.686 94 139 96.6863 139 100Z" fill="white"/>
<path d="M110 139C110 140.657 111.343 142 113 142C114.657 142 116 140.657 116 139C116 137.343 114.657 136 113 136C111.343 136 110 137.343 110 139Z" fill="white"/>
<path d="M88 144C88 146.209 89.7909 148 92 148C94.2091 148 96 146.209 96 144C96 141.791 94.2091 140 92 140C89.7909 140 88 141.791 88 144Z" fill="white"/>
<path d="M104 52C104 55.3137 106.686 58 110 58C113.314 58 116 55.3137 116 52C116 48.6863 113.314 46 110 46C106.686 46 104 48.6863 104 52Z" fill="white"/>
<path d="M14 71C14 72.6569 15.3431 74 17 74C18.6569 74 20 72.6569 20 71C20 69.3431 18.6569 68 17 68C15.3431 68 14 69.3431 14 71Z" fill="white"/>
<path d="M46 157C46 161.971 50.0294 166 55 166C59.9706 166 64 161.971 64 157C64 152.029 59.9706 148 55 148C50.0294 148 46 152.029 46 157Z" fill="white"/>
<path d="M2 183C2 187.971 6.02944 192 11 192C15.9706 192 20 187.971 20 183C20 178.029 15.9706 174 11 174C6.02944 174 2 178.029 2 183Z" fill="white"/>
<path d="M168 429C168 433.971 172.029 438 177 438C181.971 438 186 433.971 186 429C186 424.029 181.971 420 177 420C172.029 420 168 424.029 168 429Z" fill="white"/>
<path d="M142 423C142 427.971 146.029 432 151 432C155.971 432 160 427.971 160 423C160 418.029 155.971 414 151 414C146.029 414 142 418.029 142 423Z" fill="white"/>
<path d="M168 453C168 456.866 171.134 460 175 460C178.866 460 182 456.866 182 453C182 449.134 178.866 446 175 446C171.134 446 168 449.134 168 453Z" fill="white"/>
<path d="M148 446C148 449.314 150.686 452 154 452C157.314 452 160 449.314 160 446C160 442.686 157.314 440 154 440C150.686 440 148 442.686 148 446Z" fill="white"/>
<path d="M133 444C133 446.209 134.791 448 137 448C139.209 448 141 446.209 141 444C141 441.791 139.209 440 137 440C134.791 440 133 441.791 133 444Z" fill="white"/>
<path d="M190 448C190 450.209 191.791 452 194 452C196.209 452 198 450.209 198 448C198 445.791 196.209 444 194 444C191.791 444 190 445.791 190 448Z" fill="white"/>
<path d="M107 428C107 432.418 110.582 436 115 436C119.418 436 123 432.418 123 428C123 423.582 119.418 420 115 420C110.582 420 107 423.582 107 428Z" fill="white"/>
<path d="M242 416C242 418.209 243.791 420 246 420C248.209 420 250 418.209 250 416C250 413.791 248.209 412 246 412C243.791 412 242 413.791 242 416Z" fill="white"/>
<path d="M232 442C232 444.209 233.791 446 236 446C238.209 446 240 444.209 240 442C240 439.791 238.209 438 236 438C233.791 438 232 439.791 232 442Z" fill="white"/>
<path d="M357 457C357 460.866 360.134 464 364 464C367.866 464 371 460.866 371 457C371 453.134 367.866 450 364 450C360.134 450 357 453.134 357 457Z" fill="white"/>
<path d="M405 378.5C405 383.194 408.806 387 413.5 387C418.194 387 422 383.194 422 378.5C422 373.806 418.194 370 413.5 370C408.806 370 405 373.806 405 378.5Z" fill="white"/>
<path d="M395.5 400C395.5 402.209 397.291 404 399.5 404C401.709 404 403.5 402.209 403.5 400C403.5 397.791 401.709 396 399.5 396C397.291 396 395.5 397.791 395.5 400Z" fill="white"/>
<path d="M482 402C482 404.209 483.791 406 486 406C488.209 406 490 404.209 490 402C490 399.791 488.209 398 486 398C483.791 398 482 399.791 482 402Z" fill="white"/>
<path d="M430 363C430 367.971 434.029 372 439 372C443.971 372 448 367.971 448 363C448 358.029 443.971 354 439 354C434.029 354 430 358.029 430 363Z" fill="white"/>
<path d="M434 390C434 395.523 438.477 400 444 400C449.523 400 454 395.523 454 390C454 384.477 449.523 380 444 380C438.477 380 434 384.477 434 390Z" fill="white"/>
<path d="M433.5 341.5C433.5 345.642 436.858 349 441 349C445.142 349 448.5 345.642 448.5 341.5C448.5 337.358 445.142 334 441 334C436.858 334 433.5 337.358 433.5 341.5Z" fill="white"/>
<path d="M462 423C462 427.971 466.029 432 471 432C475.971 432 480 427.971 480 423C480 418.029 475.971 414 471 414C466.029 414 462 418.029 462 423Z" fill="white"/>
<path d="M254 480C254 482.209 255.791 484 258 484C260.209 484 262 482.209 262 480C262 477.791 260.209 476 258 476C255.791 476 254 477.791 254 480Z" fill="white"/>
<path d="M213 508C213 510.209 214.791 512 217 512C219.209 512 221 510.209 221 508C221 505.791 219.209 504 217 504C214.791 504 213 505.791 213 508Z" fill="white"/>
<path d="M136 482C136 484.209 137.791 486 140 486C142.209 486 144 484.209 144 482C144 479.791 142.209 478 140 478C137.791 478 136 479.791 136 482Z" fill="white"/>
<path d="M498 230C498 232.209 499.791 234 502 234C504.209 234 506 232.209 506 230C506 227.791 504.209 226 502 226C499.791 226 498 227.791 498 230Z" fill="white"/>
<path d="M508 74C508 75.1046 508.895 76 510 76C511.105 76 512 75.1046 512 74C512 72.8954 511.105 72 510 72C508.895 72 508 72.8954 508 74Z" fill="white"/>
<path fill-rule="evenodd" clip-rule="evenodd" d="M256.5 387C184.427 387 126 328.573 126 256.5C126 184.427 184.427 126 256.5 126C328.573 126 387 184.427 387 256.5C387 328.573 328.573 387 256.5 387ZM342.032 313.001C342.032 313.001 314.766 288.708 313.44 286.836C318.37 277.61 321 267.268 321 256.5C321 245.961 318.481 235.829 313.752 226.754C315.935 224.293 325.314 215.302 341.888 199.782C352.983 216.458 359 236.055 359 256.5C359 276.855 353.036 296.371 342.032 313.001ZM314.215 171.783C314.215 171.783 291.24 197.208 287.996 200.195C278.485 194.858 267.724 192 256.5 192C220.878 192 192 220.878 192 256.5C192 292.122 220.878 321 256.5 321C267.407 321 277.877 318.301 287.189 313.25C289.814 315.682 298.7 325.087 313.847 341.466C297.041 352.827 277.206 359 256.5 359C199.891 359 154 313.109 154 256.5C154 199.891 199.891 154 256.5 154C277.36 154 297.334 160.265 314.215 171.783Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 16 KiB

58
node_modules/commitizen/logo/generate.sh generated vendored Normal file
View File

@@ -0,0 +1,58 @@
#!/bin/bash
set -o nounset
set -o errexit
#####################################################
# Script to create PNG files from SVG source files. #
# Dependencies: cairosvg (https://cairosvg.org/) #
# #
# Rationale: Generating from SVG instead of storing #
# image files decreases size of repo and avoids #
# security vulnerabilites associated with binary #
# image files. #
#####################################################
convert () {
COLOR=$1
# echo "converting file $COLOR..."
FILE=logo/commitizen-logo-${COLOR}.svg
if [ ! -f ${FILE} ]; then
# echo "file $FILE missing!"
exit 1
fi
# echo "conversion in progress..."
for SIZE in 16 48 96 256 512 1024; do
cairosvg ${FILE} -f png -W ${SIZE} -H ${SIZE} -d 300 -o logo/commitizen_logo_${COLOR}_${SIZE}x${SIZE}.png
done
# echo "done"
return 0
}
if [[ $(which cairosvg) == "" ]]; then
# We're not going to mess with installation on OSX or Windows in our build pipelines.
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "cairosvg not found in PATH. Please see https://cairosvg.org/documentation/#installation"
exit 0
elif [[ "$OSTYPE" == "msys"* ]]; then
echo "cairosvg not found in PATH. Please see https://cairosvg.org/documentation/#installation"
exit 0
fi
pip3 install cairosvg
fi
for COLOR in black blue white color; do
FILE=logo/commitizen-logo-${COLOR}.svg
if [ ! -f ${FILE} ]; then
# echo "generating file $FILE..."
sed 's|fill=\".*\"|fill=\"'${COLOR}'\"|g' <logo/commitizen-logo-mono.svg >${FILE}
convert ${COLOR}
# echo "removing generated file $FILE..."
rm $FILE
# echo "success!"
else
# echo "file found: $FILE"
convert ${COLOR}
fi
done
exit 0

109
node_modules/commitizen/package.json generated vendored Normal file
View File

@@ -0,0 +1,109 @@
{
"name": "commitizen",
"version": "4.3.0",
"description": "Git commit, but play nice with conventions.",
"main": "dist/index.js",
"scripts": {
"check-coverage": "nyc check-coverage --statements 80 --branches 80 --functions 80 --lines 80 ",
"commit": "node bin/git-cz",
"build": "babel src --out-dir dist",
"build:watch": "babel --watch src --out-dir dist",
"prepare": "not-in-install && npm run build || true",
"report-coverage": "nyc report --reporter=lcov | codecov",
"write-coverage": "nyc report --reporter=lcov --reporter=cobertura --reporter=html",
"semantic-release": "npx semantic-release",
"start": "npm run test:watch",
"test-actual": "mocha --reporter=mocha-multi-reporters --reporter-options configFile=./test/mochareporters.json test/tests/index.js",
"test": "nyc --require @babel/register npm run test-actual",
"test:watch": "nodemon -q --ignore test/.tmp/ --ignore test/artifacts/ --ignore coverage/ --exec \"npm run test\" --"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
},
"ghooks": {
"pre-commit": "npm run test && npm run check-coverage"
}
},
"homepage": "https://github.com/commitizen/cz-cli",
"repository": {
"type": "git",
"url": "https://github.com/commitizen/cz-cli.git"
},
"keywords": [
"commit",
"pretty",
"format",
"conventional changelog",
"commitizen"
],
"bugs": {
"url": "https://github.com/commitizen/cz-cli/issues"
},
"bin": {
"cz": "./bin/git-cz",
"git-cz": "./bin/git-cz",
"commitizen": "./bin/commitizen"
},
"author": "Jim Cummins <jimthedev@gmail.com> (https://github.com/jimthedev)",
"license": "MIT",
"devDependencies": {
"@babel/cli": "7.19.3",
"@babel/core": "7.20.5",
"@babel/plugin-proposal-object-rest-spread": "7.20.2",
"@babel/preset-env": "7.20.2",
"@babel/register": "7.18.9",
"@istanbuljs/nyc-config-babel": "3.0.0",
"babel-plugin-istanbul": "6.1.1",
"chai": "4.3.7",
"codecov": "3.8.3",
"conventional-changelog-conventionalcommits": "4.6.3",
"cz-conventional-changelog-default-export": "0.0.0-semantically-released.1",
"ghooks": "2.0.4",
"in-publish": "2.0.1",
"mocha": "9.2.2",
"mocha-junit-reporter": "1.23.3",
"mocha-multi-reporters": "1.5.1",
"nodemon": "2.0.20",
"nyc": "15.1.0",
"proxyquire": "2.1.3",
"semantic-release": "19.0.5",
"semver": "7.3.8",
"sinon": "12.0.1",
"uuid": "8.3.2"
},
"dependencies": {
"cachedir": "2.3.0",
"cz-conventional-changelog": "3.3.0",
"dedent": "0.7.0",
"detect-indent": "6.1.0",
"find-node-modules": "^2.1.2",
"find-root": "1.1.0",
"fs-extra": "9.1.0",
"glob": "7.2.3",
"inquirer": "8.2.5",
"is-utf8": "^0.2.1",
"lodash": "4.17.21",
"minimist": "1.2.7",
"strip-bom": "4.0.0",
"strip-json-comments": "3.1.1"
},
"nyc": {
"extends": "@istanbuljs/nyc-config-babel",
"exclude": [
"src/cli",
"test"
]
},
"engineStrict": true,
"engines": {
"node": ">= 12"
},
"collective": {
"type": "opencollective",
"url": "https://opencollective.com/commitizen"
},
"release": {
"preset": "conventionalcommits"
}
}

5
node_modules/commitizen/renovate.json generated vendored Normal file
View File

@@ -0,0 +1,5 @@
{
"extends": [
"github>commitizen/commitizen-renovate-config"
]
}