You're Invited:Meet the Socket Team at RSAC and BSidesSF 2026, March 23–26.RSVP
Socket
Book a DemoSign in
Socket

@escape.tech/mookme

Package Overview
Dependencies
Maintainers
4
Versions
87
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@escape.tech/mookme - npm Package Compare versions

Comparing version
2.4.1
to
2.5.0
+1
-0
dist/commands/init.js

@@ -18,2 +18,3 @@ "use strict";

.option('--yes', 'Skip confirmation prompter')
.option('-t, --types <types...>', 'A list of valid git hooks ("pre-commit", "prepare-commit", "commit-msg", "post-commit")')
.action(async (opts) => {

@@ -20,0 +21,0 @@ debug('Running init command with options', opts);

+4
-1

@@ -19,3 +19,3 @@ "use strict";

exports.choiceQuestion = choiceQuestion;
async function selectHookTypes(skip = false) {
async function selectHookTypes(skip = false, hookCollection) {
let typesToHook;

@@ -25,2 +25,5 @@ if (skip) {

}
else if (hookCollection) {
typesToHook = hookCollection;
}
else {

@@ -27,0 +30,0 @@ const { types } = (await inquirer_1.default.prompt([

@@ -25,3 +25,3 @@ "use strict";

if (opts.onlyHook) {
const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection);
const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection, opts.types);
this.gitToolkit.writeGitHooksFiles(hookTypes);

@@ -41,3 +41,3 @@ process.exit(0);

};
const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection);
const hookTypes = await (0, init_1.selectHookTypes)(opts.skipTypesSelection, opts.types);
clear();

@@ -47,3 +47,3 @@ logger_1.default.info(`The following configuration will be written into \`${root}/.mookme.json\`:`);

logger_1.default.info('');
logger_1.default.info('The follwowing git hooks will be created:');
logger_1.default.info('The following git hooks will be created:');
hookTypes.forEach((t) => logger_1.default.log(`${root}/.git/hooks/${t}`));

@@ -50,0 +50,0 @@ logger_1.default.info('');

@@ -106,3 +106,3 @@ "use strict";

logger_1.default.info(`- ${gitFolderPath}/hooks/${type}`);
const mookmeCmd = `npx mookme run --type ${type} --args "$1"`;
const mookmeCmd = `npx @escape.tech/mookme run --type ${type} --args "$1"`;
if (fs_1.default.existsSync(`${gitFolderPath}/hooks/${type}`)) {

@@ -109,0 +109,0 @@ const hook = fs_1.default.readFileSync(`${gitFolderPath}/hooks/${type}`).toString();

{
"name": "@escape.tech/mookme",
"version": "2.4.1",
"version": "2.5.0",
"description": "A git hook manager designed for monorepos",

@@ -5,0 +5,0 @@ "main": "dist/index.js",