New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

esc-commit-msg

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

esc-commit-msg - npm Package Compare versions

Comparing version
0.0.1
to
0.0.2
+20
bin/run.js
#!/usr/bin/env node
const chalk = require('chalk');
import * as path from 'path';
import * as fs from 'fs';
import * as shell from 'shelljs';
console.log('这是入口输出——————————————————————————————————————————————')
// shell.cp('-R', path.join(__dirname, './../commitlint.config.js'), `${process.cwd()}/`);
const commitMsgPath = `${process.cwd()}/.git/hooks`;
try {
// 拷贝当前工具中git规范提交脚本到扫描项目中的.git目录下
shell.cp('-R', path.join(__dirname, './../test123.js'), `${process.cwd()}/`);
// 修改文件权限为可执行
// shell.exec(`chmod 777 ${commitMsgPath}/commit-msg`);
} catch (e) {
}
require('./bin/run.js')
console.log('入口文件???????')
+3
-3
{
"name": "esc-commit-msg",
"version": "0.0.1",
"version": "0.0.2",
"description": "git提交规范",
"main": "./src/index.js",
"bin": "./scripts/index.js",
"main": "./esc-commit-msg.js",
"bin": "./bin/run.js",
"scripts": {

@@ -8,0 +8,0 @@ "test": "node ./scripts/index.js",