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.
hap-toolkit
Advanced tools
快应用开发者工具
npm install -g hap-toolkit
hap init `<project-name>`
cd `<project-name>`
npm install
npm run build
npm run server
chrome[google-chrome]
浏览器和chromium[chromium-browser]
浏览器--disable-stream-pack
参数用于禁用流式包(build
,release
,watch
命令有效)node 6
,要求node 8
以上版本web
预览功能,打开服务/preview
页面可使用浏览器预览快应用hap preview
子命令,可直接预览rpk
文件或解压的rpk
文件目录(包括build
目录)hap view
子命令,可用于直接查看rpk
文件。详情可执行hap view --help
查看manifest.json
文件chrome devtools
升级到 66toolkit
误报使用node
原生模块问题若 hap-toolkit 从 0.0.37 升级上来,有比较大的改动,其中需要注意的是:
module.exports = function(api) {
api.cache(true)
return {
presets: ['@babel/preset-env'],
plugins: ['@babel/plugin-transform-modules-commonjs'],
babelrcRoots: ['.', 'node_modules']
}
}
.babelrc 文件需要删除。
{
"devDependencies": {
"babel-eslint": "^10.0.1",
"eslint": "^5.12.1",
"eslint-plugin-hybrid": "0.0.5",
"hap-toolkit": "^0.4.3"
}
}
修改后请将 node_modules 和 package-lock.json 删除,再重新安装依赖。
FAQs
A command line toolkit for developing Quick Apps.
The npm package hap-toolkit receives a total of 120 weekly downloads. As such, hap-toolkit popularity was classified as not popular.
We found that hap-toolkit demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 8 open source maintainers 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.