Security News
pnpm 10.0.0 Blocks Lifecycle Scripts by Default
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
fis-postpackager-extras_uri
Advanced tools
fis 资源定位增强
fis 可以很好的将 html 中 img, link, script 等的路径在发布的时候做转换,比如:
<!-- 发布前 -->
<script src="js/main.js"></script>
<!-- 发布后 -->
<script src="http://9.cdn/baba/main.33333.js"></script>
局限性是仅限有资源的元素适用,下面这种情况是无能为力的:
<meta name="touch_icon" content="img/toucn.png" />
本插件就是解决上述问题。
配置文件 fis-conf.js:
fis.config.set('modules.postpackager', 'extras_uri');
HTML 中:
<!-- 发布前 -->
<meta name="touch_icon" content="fis__extras__uri(img/toucn.png)" />
<!-- 发布后 -->
<meta name="touch_icon" content="http://9.cdn/baba/img/toucn.png" />
安装完插件后,切换至 demo/src
目录下执行:
fis release -d dev [-mD]
FAQs
fis 资源定位增强
We found that fis-postpackager-extras_uri 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.
Security News
pnpm 10 blocks lifecycle scripts by default to improve security, addressing supply chain attack risks but sparking debate over compatibility and workflow changes.
Product
Socket now supports uv.lock files to ensure consistent, secure dependency resolution for Python projects and enhance supply chain security.
Research
Security News
Socket researchers have discovered multiple malicious npm packages targeting Solana private keys, abusing Gmail to exfiltrate the data and drain Solana wallets.