docs(changelog test): i test how to automate ChangeLog
This commit is contained in:
86
node_modules/commitizen/dist/cli/commitizen.js
generated
vendored
Normal file
86
node_modules/commitizen/dist/cli/commitizen.js
generated
vendored
Normal 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
26
node_modules/commitizen/dist/cli/git-cz.js
generated
vendored
Normal 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
12
node_modules/commitizen/dist/cli/parsers.js
generated
vendored
Normal 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
19
node_modules/commitizen/dist/cli/parsers/commitizen.js
generated
vendored
Normal 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
42
node_modules/commitizen/dist/cli/parsers/git-cz.js
generated
vendored
Normal 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
20
node_modules/commitizen/dist/cli/strategies.js
generated
vendored
Normal 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
81
node_modules/commitizen/dist/cli/strategies/git-cz.js
generated
vendored
Normal 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
25
node_modules/commitizen/dist/cli/strategies/git.js
generated
vendored
Normal 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
33
node_modules/commitizen/dist/commitizen.js
generated
vendored
Normal 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
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
274
node_modules/commitizen/dist/commitizen/cache.js
generated
vendored
Normal 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
628
node_modules/commitizen/dist/commitizen/commit.js
generated
vendored
Normal 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);
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
95
node_modules/commitizen/dist/commitizen/configLoader.js
generated
vendored
Normal file
95
node_modules/commitizen/dist/commitizen/configLoader.js
generated
vendored
Normal 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
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
274
node_modules/commitizen/dist/commitizen/staging.js
generated
vendored
Normal 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
483
node_modules/commitizen/dist/common/util.js
generated
vendored
Normal 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
34
node_modules/commitizen/dist/configLoader.js
generated
vendored
Normal 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
339
node_modules/commitizen/dist/configLoader/findup.js
generated
vendored
Normal 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
700
node_modules/commitizen/dist/configLoader/getContent.js
generated
vendored
Normal 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"));
|
||||
}
|
404
node_modules/commitizen/dist/configLoader/getNormalizedConfig.js
generated
vendored
Normal file
404
node_modules/commitizen/dist/configLoader/getNormalizedConfig.js
generated
vendored
Normal 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
427
node_modules/commitizen/dist/configLoader/loader.js
generated
vendored
Normal 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
46
node_modules/commitizen/dist/git.js
generated
vendored
Normal 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
136
node_modules/commitizen/dist/git/add.js
generated
vendored
Normal 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
868
node_modules/commitizen/dist/git/commit.js
generated
vendored
Normal 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
88
node_modules/commitizen/dist/git/init.js
generated
vendored
Normal 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
194
node_modules/commitizen/dist/git/log.js
generated
vendored
Normal 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
194
node_modules/commitizen/dist/git/whatChanged.js
generated
vendored
Normal 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
59
node_modules/commitizen/dist/index.js
generated
vendored
Normal 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
33
node_modules/commitizen/dist/npm.js
generated
vendored
Normal 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();
|
Reference in New Issue
Block a user