Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mokr/plugins

Package Overview
Dependencies
Maintainers
0
Versions
97
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mokr/plugins - npm Package Compare versions

Comparing version 4.2.0 to 4.3.0

15

dist/husky/husky.js

@@ -74,4 +74,5 @@ import { PluginType, enqueueRemoveDependency, exec, installDependency, isMonorepo, isReadableAndWritableFile, readFile, removeDirectory, removeFile, updatePackage, warning, writeFile, writePackage, } from "@mokr/core";

}
await exec("yarn", ["husky", "add", PRE_COMMIT_FILENAME, `"${command}"`], {
cwd: directory,
await setPreCommitHookCommands({
directory,
commands: [...(await getPreCommitHookCommands({ directory })), command],
});

@@ -85,11 +86,3 @@ }

const newCommands = (await getPreCommitHookCommands({ directory })).filter((line) => line !== command);
if (newCommands.length === 2) {
/**
* We're left with only these lines:
*
* ```
* #!/usr/bin/env sh
* . "$(dirname -- "$0")/_/husky.sh"
* ```
*/
if (newCommands.length === 0) {
await removeFile({ path: getPreCommitHookPath({ directory }) });

@@ -96,0 +89,0 @@ return;

{
"name": "@mokr/plugins",
"version": "4.2.0",
"version": "4.3.0",
"description": "Moker plugins",

@@ -25,3 +25,3 @@ "repository": "https://github.com/hongaar/moker",

"dependencies": {
"@mokr/core": "4.2.0"
"@mokr/core": "4.3.0"
},

@@ -28,0 +28,0 @@ "devDependencies": {

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc