@visulima/humanizer 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (79) hide show
  1. package/README.md +2 -1
  2. package/dist/index.cjs +2 -2
  3. package/dist/index.d.cts +1 -1
  4. package/dist/index.d.mts +1 -1
  5. package/dist/index.d.ts +2 -2
  6. package/dist/index.mjs +2 -2
  7. package/dist/language/af.d.ts +1 -1
  8. package/dist/language/am.d.ts +1 -1
  9. package/dist/language/ar.d.ts +1 -1
  10. package/dist/language/bg.d.ts +1 -1
  11. package/dist/language/bn.d.ts +1 -1
  12. package/dist/language/ca.d.ts +1 -1
  13. package/dist/language/ckb.d.ts +1 -1
  14. package/dist/language/cs.d.ts +1 -1
  15. package/dist/language/cy.d.ts +1 -1
  16. package/dist/language/da.d.ts +1 -1
  17. package/dist/language/de.d.ts +1 -1
  18. package/dist/language/el.d.ts +1 -1
  19. package/dist/language/en.d.ts +1 -1
  20. package/dist/language/eo.d.ts +1 -1
  21. package/dist/language/es.d.ts +1 -1
  22. package/dist/language/et.d.ts +1 -1
  23. package/dist/language/eu.d.ts +1 -1
  24. package/dist/language/fa.d.ts +1 -1
  25. package/dist/language/fi.d.ts +1 -1
  26. package/dist/language/fo.d.ts +1 -1
  27. package/dist/language/fr.d.ts +1 -1
  28. package/dist/language/he.d.ts +1 -1
  29. package/dist/language/hi.d.ts +1 -1
  30. package/dist/language/hr.d.ts +1 -1
  31. package/dist/language/hu.d.ts +1 -1
  32. package/dist/language/id.d.ts +1 -1
  33. package/dist/language/is.d.ts +1 -1
  34. package/dist/language/it.d.ts +1 -1
  35. package/dist/language/ja.d.ts +1 -1
  36. package/dist/language/km.d.ts +1 -1
  37. package/dist/language/kn.d.ts +1 -1
  38. package/dist/language/ko.d.ts +1 -1
  39. package/dist/language/ku.d.ts +1 -1
  40. package/dist/language/lo.d.ts +1 -1
  41. package/dist/language/lt.d.ts +1 -1
  42. package/dist/language/lv.d.ts +1 -1
  43. package/dist/language/mk.d.ts +1 -1
  44. package/dist/language/mn.d.ts +1 -1
  45. package/dist/language/mr.d.ts +1 -1
  46. package/dist/language/ms.d.ts +1 -1
  47. package/dist/language/nl.d.ts +1 -1
  48. package/dist/language/no.d.ts +1 -1
  49. package/dist/language/pl.d.ts +1 -1
  50. package/dist/language/pt.d.ts +1 -1
  51. package/dist/language/ro.d.ts +1 -1
  52. package/dist/language/ru.d.ts +1 -1
  53. package/dist/language/sk.d.ts +1 -1
  54. package/dist/language/sl.d.ts +1 -1
  55. package/dist/language/sq.d.ts +1 -1
  56. package/dist/language/sr.d.ts +1 -1
  57. package/dist/language/sv.d.ts +1 -1
  58. package/dist/language/sw.d.ts +1 -1
  59. package/dist/language/ta.d.ts +1 -1
  60. package/dist/language/te.d.ts +1 -1
  61. package/dist/language/th.d.ts +1 -1
  62. package/dist/language/tr.d.ts +1 -1
  63. package/dist/language/uk.d.ts +1 -1
  64. package/dist/language/ur.d.ts +1 -1
  65. package/dist/language/util/create-duration-language.cjs +3 -3
  66. package/dist/language/util/create-duration-language.d.ts +1 -1
  67. package/dist/language/util/create-duration-language.mjs +3 -3
  68. package/dist/language/util/validate-duration-language.d.ts +1 -1
  69. package/dist/language/uz.d.ts +1 -1
  70. package/dist/language/uz_CYR.d.ts +1 -1
  71. package/dist/language/vi.d.ts +1 -1
  72. package/dist/language/zh_CN.d.ts +1 -1
  73. package/dist/language/zh_TW.d.ts +1 -1
  74. package/dist/packem_shared/{duration-CfhZBuZE.mjs → duration-CEv0RfYk.mjs} +6 -6
  75. package/dist/packem_shared/{duration-1XAT3kv0.cjs → duration-f-II6vKb.cjs} +6 -6
  76. package/dist/packem_shared/{parseBytes-DEYk0hnt.cjs → parseBytes-0lZhif0J.cjs} +1 -1
  77. package/dist/packem_shared/{parseBytes-C9YuToSz.mjs → parseBytes-CAElABGr.mjs} +1 -1
  78. package/package.json +2 -65
  79. /package/dist/packem_shared/{types-4Kt5giRg.d.mjs → types-4Kt5giRg.d.ts} +0 -0
package/README.md CHANGED
@@ -979,7 +979,8 @@ If you would like to help take a look at the [list of issues](https://github.com
979
979
  The visulima humanizer is open-sourced software licensed under the [MIT][license-url]
980
980
 
981
981
  [typescript-image]: https://img.shields.io/badge/Typescript-294E80.svg?style=for-the-badge&logo=typescript
982
- [typescript-url]: "typescript"
982
+
983
+ [typescript-url]: https://www.typescriptlang.org/ "TypeScript" "typescript"
983
984
  [license-image]: https://img.shields.io/npm/l/@visulima/humanizer?color=blueviolet&style=for-the-badge
984
985
  [license-url]: LICENSE.md "license"
985
986
  [npm-image]: https://img.shields.io/npm/v/@visulima/humanizer/latest.svg?style=for-the-badge&logo=npm
package/dist/index.cjs CHANGED
@@ -2,8 +2,8 @@
2
2
 
3
3
  Object.defineProperties(exports, { __esModule: { value: true }, [Symbol.toStringTag]: { value: 'Module' } });
4
4
 
5
- const parseBytes = require('./packem_shared/parseBytes-DEYk0hnt.cjs');
6
- const duration = require('./packem_shared/duration-1XAT3kv0.cjs');
5
+ const parseBytes = require('./packem_shared/parseBytes-0lZhif0J.cjs');
6
+ const duration = require('./packem_shared/duration-f-II6vKb.cjs');
7
7
 
8
8
 
9
9
 
package/dist/index.d.cts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as ParseByteOptions, F as FormateByteOptions, D as DurationOptions } from './packem_shared/types-4Kt5giRg.cjs';
1
+ import { F as FormateByteOptions, P as ParseByteOptions, D as DurationOptions } from './packem_shared/types-4Kt5giRg.cjs';
2
2
  export { a as DurationDigitReplacements, b as DurationLanguage, c as DurationPiece, d as DurationUnit, e as DurationUnitMeasures, f as DurationUnitName, I as IntlLocale } from './packem_shared/types-4Kt5giRg.cjs';
3
3
 
4
4
  declare const BYTE_SIZES: {
package/dist/index.d.mts CHANGED
@@ -1,4 +1,4 @@
1
- import { P as ParseByteOptions, F as FormateByteOptions, D as DurationOptions } from './packem_shared/types-4Kt5giRg.mjs';
1
+ import { F as FormateByteOptions, P as ParseByteOptions, D as DurationOptions } from './packem_shared/types-4Kt5giRg.mjs';
2
2
  export { a as DurationDigitReplacements, b as DurationLanguage, c as DurationPiece, d as DurationUnit, e as DurationUnitMeasures, f as DurationUnitName, I as IntlLocale } from './packem_shared/types-4Kt5giRg.mjs';
3
3
 
4
4
  declare const BYTE_SIZES: {
package/dist/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
- import { P as ParseByteOptions, F as FormateByteOptions, D as DurationOptions } from './packem_shared/types-4Kt5giRg.d.mjs';
2
- export { a as DurationDigitReplacements, b as DurationLanguage, c as DurationPiece, d as DurationUnit, e as DurationUnitMeasures, f as DurationUnitName, I as IntlLocale } from './packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { F as FormateByteOptions, P as ParseByteOptions, D as DurationOptions } from './packem_shared/types-4Kt5giRg.js';
2
+ export { a as DurationDigitReplacements, b as DurationLanguage, c as DurationPiece, d as DurationUnit, e as DurationUnitMeasures, f as DurationUnitName, I as IntlLocale } from './packem_shared/types-4Kt5giRg.js';
3
3
 
4
4
  declare const BYTE_SIZES: {
5
5
  readonly iec: readonly [{
package/dist/index.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export { formatBytes, parseBytes } from './packem_shared/parseBytes-C9YuToSz.mjs';
2
- export { default as duration } from './packem_shared/duration-CfhZBuZE.mjs';
1
+ export { formatBytes, parseBytes } from './packem_shared/parseBytes-CAElABGr.mjs';
2
+ export { default as duration } from './packem_shared/duration-CEv0RfYk.mjs';
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { d as DurationUnit } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { d as DurationUnit } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: {
4
4
  _digitReplacements: string[];
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { a as DurationDigitReplacements, d as DurationUnit } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { a as DurationDigitReplacements, d as DurationUnit } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: {
4
4
  _digitReplacements?: DurationDigitReplacements;
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -13,13 +13,13 @@ const createDurationLanguage = /* @__PURE__ */ __name((y, mo, w, d, h, m, s, ms,
13
13
  w,
14
14
  y
15
15
  };
16
- if (future !== undefined) {
16
+ if (future !== void 0) {
17
17
  result.future = future;
18
18
  }
19
- if (past !== undefined) {
19
+ if (past !== void 0) {
20
20
  result.past = past;
21
21
  }
22
- if (decimal !== undefined) {
22
+ if (decimal !== void 0) {
23
23
  result.decimal = decimal;
24
24
  }
25
25
  return result;
@@ -1,4 +1,4 @@
1
- import { d as DurationUnit, b as DurationLanguage } from '../../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { d as DurationUnit, b as DurationLanguage } from '../../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const createDurationLanguage: (y: DurationUnit, mo: DurationUnit, w: DurationUnit, d: DurationUnit, h: DurationUnit, m: DurationUnit, s: DurationUnit, ms: DurationUnit, future?: string, past?: string, decimal?: string) => DurationLanguage;
4
4
 
@@ -11,13 +11,13 @@ const createDurationLanguage = /* @__PURE__ */ __name((y, mo, w, d, h, m, s, ms,
11
11
  w,
12
12
  y
13
13
  };
14
- if (future !== undefined) {
14
+ if (future !== void 0) {
15
15
  result.future = future;
16
16
  }
17
- if (past !== undefined) {
17
+ if (past !== void 0) {
18
18
  result.past = past;
19
19
  }
20
- if (decimal !== undefined) {
20
+ if (decimal !== void 0) {
21
21
  result.decimal = decimal;
22
22
  }
23
23
  return result;
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const validateDurationLanguage: (language: DurationLanguage) => void;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -1,4 +1,4 @@
1
- import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.d.mjs';
1
+ import { b as DurationLanguage } from '../packem_shared/types-4Kt5giRg.js';
2
2
 
3
3
  declare const durationLanguage: DurationLanguage;
4
4
 
@@ -15,9 +15,9 @@ const renderPiece = /* @__PURE__ */ __name(({ unitCount, unitName }, language, o
15
15
  let { spacer } = options;
16
16
  const { maxDecimalPoints } = options;
17
17
  let decimal = ".";
18
- if (options.decimal !== undefined) {
18
+ if (options.decimal !== void 0) {
19
19
  decimal = options.decimal;
20
- } else if (language.decimal !== undefined) {
20
+ } else if (language.decimal !== void 0) {
21
21
  decimal = language.decimal;
22
22
  }
23
23
  let digitReplacements;
@@ -28,7 +28,7 @@ const renderPiece = /* @__PURE__ */ __name(({ unitCount, unitName }, language, o
28
28
  }
29
29
  let formattedCount;
30
30
  let normalizedUnitCount = unitCount;
31
- if (maxDecimalPoints !== undefined) {
31
+ if (maxDecimalPoints !== void 0) {
32
32
  normalizedUnitCount = toFixed(unitCount, maxDecimalPoints);
33
33
  }
34
34
  const countString = normalizedUnitCount.toString();
@@ -130,7 +130,7 @@ const getPieces = /* @__PURE__ */ __name((ms, options) => {
130
130
  remainder += unitCounts[remainderUnitName] * (options.unitMeasures[remainderUnitName] / options.unitMeasures[unitName]);
131
131
  }
132
132
  unitCount += remainder;
133
- if (options.maxDecimalPoints !== undefined) {
133
+ if (options.maxDecimalPoints !== void 0) {
134
134
  unitCount = toFixed(unitCount, options.maxDecimalPoints);
135
135
  }
136
136
  }
@@ -148,9 +148,9 @@ const formatPieces = /* @__PURE__ */ __name((pieces, options, ms) => {
148
148
  }
149
149
  const { conjunction, serialComma } = options;
150
150
  let delimiter = ", ";
151
- if (options.delimiter !== undefined) {
151
+ if (options.delimiter !== void 0) {
152
152
  delimiter = options.delimiter;
153
- } else if (language.delimiter !== undefined) {
153
+ } else if (language.delimiter !== void 0) {
154
154
  delimiter = language.delimiter;
155
155
  }
156
156
  let adverb = "";
@@ -17,9 +17,9 @@ const renderPiece = /* @__PURE__ */ __name(({ unitCount, unitName }, language, o
17
17
  let { spacer } = options;
18
18
  const { maxDecimalPoints } = options;
19
19
  let decimal = ".";
20
- if (options.decimal !== undefined) {
20
+ if (options.decimal !== void 0) {
21
21
  decimal = options.decimal;
22
- } else if (language.decimal !== undefined) {
22
+ } else if (language.decimal !== void 0) {
23
23
  decimal = language.decimal;
24
24
  }
25
25
  let digitReplacements;
@@ -30,7 +30,7 @@ const renderPiece = /* @__PURE__ */ __name(({ unitCount, unitName }, language, o
30
30
  }
31
31
  let formattedCount;
32
32
  let normalizedUnitCount = unitCount;
33
- if (maxDecimalPoints !== undefined) {
33
+ if (maxDecimalPoints !== void 0) {
34
34
  normalizedUnitCount = toFixed(unitCount, maxDecimalPoints);
35
35
  }
36
36
  const countString = normalizedUnitCount.toString();
@@ -132,7 +132,7 @@ const getPieces = /* @__PURE__ */ __name((ms, options) => {
132
132
  remainder += unitCounts[remainderUnitName] * (options.unitMeasures[remainderUnitName] / options.unitMeasures[unitName]);
133
133
  }
134
134
  unitCount += remainder;
135
- if (options.maxDecimalPoints !== undefined) {
135
+ if (options.maxDecimalPoints !== void 0) {
136
136
  unitCount = toFixed(unitCount, options.maxDecimalPoints);
137
137
  }
138
138
  }
@@ -150,9 +150,9 @@ const formatPieces = /* @__PURE__ */ __name((pieces, options, ms) => {
150
150
  }
151
151
  const { conjunction, serialComma } = options;
152
152
  let delimiter = ", ";
153
- if (options.delimiter !== undefined) {
153
+ if (options.delimiter !== void 0) {
154
154
  delimiter = options.delimiter;
155
- } else if (language.delimiter !== undefined) {
155
+ } else if (language.delimiter !== void 0) {
156
156
  delimiter = language.delimiter;
157
157
  }
158
158
  let adverb = "";
@@ -233,7 +233,7 @@ const formatBytes = /* @__PURE__ */ __name((bytes, options) => {
233
233
  const level = requestedUnitIndex >= 0 ? requestedUnitIndex : Math.min(Math.floor(Math.log(absoluteBytes) / Math.log(base)), referenceTable.length - 1);
234
234
  const unit = referenceTable[level][long ? "long" : "short"];
235
235
  const value = bytes / base ** level;
236
- const fractionDigits = decimals < 0 ? undefined : decimals;
236
+ const fractionDigits = decimals < 0 ? void 0 : decimals;
237
237
  const formattedValue = new Intl.NumberFormat(locale, {
238
238
  // @ts-expect-error - should be overridden by the options
239
239
  maximumFractionDigits: fractionDigits,
@@ -229,7 +229,7 @@ const formatBytes = /* @__PURE__ */ __name((bytes, options) => {
229
229
  const level = requestedUnitIndex >= 0 ? requestedUnitIndex : Math.min(Math.floor(Math.log(absoluteBytes) / Math.log(base)), referenceTable.length - 1);
230
230
  const unit = referenceTable[level][long ? "long" : "short"];
231
231
  const value = bytes / base ** level;
232
- const fractionDigits = decimals < 0 ? undefined : decimals;
232
+ const fractionDigits = decimals < 0 ? void 0 : decimals;
233
233
  const formattedValue = new Intl.NumberFormat(locale, {
234
234
  // @ts-expect-error - should be overridden by the options
235
235
  maximumFractionDigits: fractionDigits,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@visulima/humanizer",
3
- "version": "1.1.0",
3
+ "version": "1.1.2",
4
4
  "description": "Humanizer is a library for humanizing data in a human-readable form.",
5
5
  "keywords": [
6
6
  "visulima",
@@ -95,74 +95,11 @@
95
95
  "files": [
96
96
  "dist"
97
97
  ],
98
- "devDependencies": {
99
- "@anolilab/eslint-config": "^15.0.3",
100
- "@anolilab/prettier-config": "^5.0.14",
101
- "@anolilab/semantic-release-pnpm": "^1.1.6",
102
- "@anolilab/semantic-release-preset": "^9.0.3",
103
- "@arethetypeswrong/cli": "^0.17.2",
104
- "@babel/core": "^7.26.0",
105
- "@rushstack/eslint-plugin-security": "^0.8.3",
106
- "@secretlint/secretlint-rule-preset-recommend": "^9.0.0",
107
- "@types/ms": "^0.7.34",
108
- "@types/node": "18.19.15",
109
- "@visulima/packem": "1.10.7",
110
- "@visulima/path": "1.3.3",
111
- "@vitest/coverage-v8": "^2.1.8",
112
- "@vitest/ui": "^2.1.8",
113
- "conventional-changelog-conventionalcommits": "8.0.0",
114
- "cross-env": "^7.0.3",
115
- "csv-parse": "^5.6.0",
116
- "esbuild": "0.24.2",
117
- "eslint": "8.57.0",
118
- "eslint-plugin-deprecation": "^3.0.0",
119
- "eslint-plugin-etc": "^2.0.3",
120
- "eslint-plugin-import": "npm:eslint-plugin-i@^2.29.1",
121
- "eslint-plugin-mdx": "^3.1.5",
122
- "eslint-plugin-vitest": "^0.4.1",
123
- "eslint-plugin-vitest-globals": "^1.5.0",
124
- "ms": "^2.1.3",
125
- "prettier": "^3.4.2",
126
- "rimraf": "6.0.1",
127
- "secretlint": "9.0.0",
128
- "semantic-release": "24.2.1",
129
- "typescript": "5.7.3",
130
- "vitest": "^2.1.8"
131
- },
132
98
  "engines": {
133
- "node": ">=18.* <=23.*"
99
+ "node": ">=18.0.0 <=23.x"
134
100
  },
135
101
  "publishConfig": {
136
102
  "access": "public",
137
103
  "provenance": true
138
- },
139
- "anolilab": {
140
- "eslint-config": {
141
- "plugin": {
142
- "tsdoc": false
143
- },
144
- "warn_on_unsupported_typescript_version": false,
145
- "info_on_disabling_jsx_react_rule": false,
146
- "info_on_disabling_prettier_conflict_rule": false,
147
- "info_on_disabling_jsonc_sort_keys_rule": false,
148
- "info_on_disabling_etc_no_deprecated": false
149
- }
150
- },
151
- "scripts": {
152
- "build": "cross-env NODE_ENV=development packem build",
153
- "build:prod": "cross-env NODE_ENV=production packem build",
154
- "clean": "rimraf node_modules dist .eslintcache",
155
- "dev": "pnpm run build --watch",
156
- "lint:attw": "attw --pack",
157
- "lint:eslint": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs",
158
- "lint:eslint:fix": "eslint . --ext js,cjs,mjs,jsx,ts,tsx,json,yaml,yml,md,mdx --max-warnings=0 --config .eslintrc.cjs --fix",
159
- "lint:package-json": "publint --strict",
160
- "lint:prettier": "prettier --config=.prettierrc.cjs --check .",
161
- "lint:prettier:fix": "prettier --config=.prettierrc.cjs --write .",
162
- "lint:types": "tsc --noEmit",
163
- "test": "vitest run",
164
- "test:coverage": "vitest run --coverage",
165
- "test:ui": "vitest --ui --coverage.enabled=true",
166
- "test:watch": "vitest"
167
104
  }
168
105
  }