
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
@tuia/log-hub
Advanced tools
如果已经打包过就直接运行如下命令,开启监听,文件改动会同步打包到 lib 下
yarn watch
# Or
npm run watch
src/index.ts 是入口文件,方法挂载
更改文件之后,在本地调试的时候运行如下命令,把包链接到本地
yarn link
# Or
npm link
出现如下提示
You can now run
yarn link "@tuia/log-sdk"in the projects where you want to use this package and it will be used instead.
然后在需要调试的项目中(其他使用这个包的项目)yarn link "@tuia/log-sdk" 把本地的包链接到改项目进行调试
打包生产环境sdk (压缩后)
yarn build
# Or
npm run build
打包开发环境 (压缩前)方便调试
yarn dev
# Or
npm run dev
yarn release -- --release-as <版本号>
# Or
npm run release -- --release-as <版本号>
yarn release
# Or
npm run release
成功之后把 tag 推到远程
git push --follow-tags origin master
master 发布!!!master 分支的最新内容!!!发布三步:分布命令
npm run release 会自动累加版本号 + 打 tag + 生成更改日志,不想累加想自定义版本号则 npm run release -- --release-as <版本号>npm run build && npm publish --access public 发布 npm 和 npm run pub 发布cdngit push --follow-tagsnpm run deploy 发布,结合了上述所有命令🚨 注意:请勿用 yarn deploy 代替 npm run deploy,必须要用npm,因为包含npm的登陆发布操作
如果直接使用 npm publish --access public 命令发布的话,发布之前要保证根目录下的 lib 包是最新的,版本号是最新的(之前没有已经发布的版本),所有代码都提交到远程 master
在发布npm版本之后,要执行 npm run pub同步最新的版本到 cdn 以便用来script标签引入来使用
FAQs
推啊埋点sdk
The npm package @tuia/log-hub receives a total of 7 weekly downloads. As such, @tuia/log-hub popularity was classified as not popular.
We found that @tuia/log-hub demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 15 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.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.