Repository navigation
Packaging only; no runtime change. lib/ is identical to 0.7.6.
package.json's files list did not include docs/, so the README's relative image paths (docs/ui-badge-and-banner.png, docs/badge-and-banner.png) had no file to resolve to on the npm page — the two screenshots shown there were broken links.
filesnow lists those two images explicitly, so they are published with the package and the README renders them on npm.- They are listed one by one rather than as
docs/:docs/preview-1.pnganddocs/preview-2.pngare byte-identical duplicates used by the marketplace listing, and shipping them would add ~400 KB to every install for nothing. - The tarball grows from 192 KB to 568 KB (nearly 3×) and unpacks to 965 KB; 27 files instead of 25. That is the price of two 180–220 KB PNGs; a WebP pass or dropping one image would bring it back down if size ever matters.
Install: npm i @2jumpsina/dsh-context-guard@0.7.7 — or skip it if you are on 0.7.6 and do not care about the npm page.
Assets: 2jumpsina-dsh-context-guard-0.7.7.tgz is the exact tarball published to npm (sha512 verified against the registry dist.integrity), plus a .sha256 sidecar. SHA-256 895bcd95709d8e4fcacf28b39aabd0b6f9e8dc1405d26c14d69ffcb03f69b91e.
中文
只动打包清单,运行时零变化:lib/ 与 0.7.6 完全相同。
package.json 的 files 里没有 docs/,所以 README 的相对图片路径(docs/ui-badge-and-banner.png、docs/badge-and-banner.png)在 npm 页面上没有文件可解析——那里显示的两张截图是坏链。
- 现在
files显式列出这两张图,随包发布,README 在 npm 上能正常渲染。 - 逐张列出而不是写
docs/:docs/preview-1.png与docs/preview-2.png是和它们逐字节相同的副本,只服务于市场列表页;随包发出等于每次安装都多背约 400 KB。 - 包体从 192 KB 涨到 568 KB(接近 3 倍),解包 965 KB;文件数 25 → 27。这是随包带两张 180–220 KB PNG 的代价;真在意体积的话,转 WebP 或只留一张都能压回去。
安装:npm i @2jumpsina/dsh-context-guard@0.7.7;如果你在 0.7.6 且不在意 npm 页面那两张图,可以不升。
附件:2jumpsina-dsh-context-guard-0.7.7.tgz 就是发布到 npm 的那个 tarball(sha512 已对 registry 的 dist.integrity 核过),外加 .sha256 边车。SHA-256 895bcd95709d8e4fcacf28b39aabd0b6f9e8dc1405d26c14d69ffcb03f69b91e。