Research
Security News
Malicious npm Packages Inject SSH Backdoors via Typosquatted Libraries
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Modify package.json filed version and auto add-commit when checkout new branch. ===============================================================================
package.json
的版本号到daily/0.0.1
中的斜线后面的数字版本目前 node.js 版本必须在7.0以上, 需要原生支持asyncFunction
npm install -g cpa
上面的命令会在命令行中添加命令cbm
命令行中输入 cbm daily/0.0.1
会输出辅助信息
执行: 切换到新分支
checkout branch successful.
Switched to a new branch 'daily/0.0.2'
执行: 更新package.json version字段
update package.json field version successful.
更新结果为:
"version": "0.0.2",
执行: git add package.json
command `git add` execute successful.
执行:git commit -m '更新package.json的version字段'
[daily/0.0.2 5733653] 更新package.json的version字段
1 file changed, 26 insertions(+), 26 deletions(-)
rewrite package.json (99%)
command `git commit -m 更新package.json的version字段` executed successful.
此时说明package.json中的version字段已经被更新, 并且创建了一次提交将package.json的修改提交到本地仓库, 但是并不会push到远程仓库.
FAQs
Modify package.json filed version and auto add-commit when checkout new branch. ===============================================================================
The npm package cpa receives a total of 4 weekly downloads. As such, cpa popularity was classified as not popular.
We found that cpa demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.
Security News
MITRE's 2024 CWE Top 25 highlights critical software vulnerabilities like XSS, SQL Injection, and CSRF, reflecting shifts due to a refined ranking methodology.
Security News
In this segment of the Risky Business podcast, Feross Aboukhadijeh and Patrick Gray discuss the challenges of tracking malware discovered in open source softare.