Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

better-bytes

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

better-bytes - npm Package Versions

1.2.4

Diff

Changelog

Source

1.2.4 (2024-04-28)

🐛 Bug 修复

  • 移除 一处不必要的 Number 类型转换 (2394d89)
cao-mei-you-ren
published 1.2.3 •

Changelog

Source

1.2.3 (2024-04-28)

🐛 Bug 修复

  • 修复 format 未校验传入的参数是否为整数的问题 (4ca96a6)
cao-mei-you-ren
published 1.2.2 •

Changelog

Source

1.2.2 (2024-04-28)

🐛 Bug 修复

  • 优化 无单位时的数字解析逻辑 (2117623)
cao-mei-you-ren
published 1.2.1 •

Changelog

Source

1.2.1 (2024-04-27)

🐛 Bug 修复

  • 修复 没有正确解析没有单位的字符串的 bug;修复 Number 类型向 BigInt 类型转换时的 bug (a173ee3)
  • 修复 解析逻辑的 bug (07d846e)
cao-mei-you-ren
published 1.2.0 •

Changelog

Source

1.2.0 (2024-04-27)

✨ 新功能

  • 更改 BigInt 数值在 format 时小数点的保留行为 (57426d5)

🐛 Bug 修复

  • 修复 format 和 parse 可能会出现非法值的 bug;修复 parse 出的值不是整数的问题 (34f7421)
cao-mei-you-ren
published 1.1.0 •

Changelog

Source

1.1.0 (2024-04-27)

✨ 新功能

  • 更新文档;新增 forceKilobinary 解析选项;修复部分错误的单词 (c1fcaf3)
cao-mei-you-ren
published 1.0.0 •

Changelog

Source

1.0.0 (2024-04-27)

✨ 新功能

  • 完成 format 函数实现 (ea17330)
  • 完成 parse 逻辑;优化 小数 和 大数字的精度处理 (9c912d7)
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc