@bgord/tools 1.2.1 → 1.2.3

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 (118) hide show
  1. package/dist/age-years.vo.d.ts +2 -2
  2. package/dist/age.vo.d.ts +1 -1
  3. package/dist/api-key.vo.d.ts +3 -3
  4. package/dist/api-key.vo.js +1 -5
  5. package/dist/basename.vo.d.ts +7 -7
  6. package/dist/date-range.vo.d.ts +1 -1
  7. package/dist/day-iso-id.vo.d.ts +3 -3
  8. package/dist/directory-path-absolute.vo.d.ts +6 -6
  9. package/dist/directory-path-relative.vo.d.ts +6 -6
  10. package/dist/distance.vo.d.ts +1 -1
  11. package/dist/distance.vo.js +1 -3
  12. package/dist/division-factor.vo.d.ts +2 -2
  13. package/dist/division-factor.vo.js +1 -4
  14. package/dist/duration-ms.vo.d.ts +1 -1
  15. package/dist/email.vo.d.ts +1 -1
  16. package/dist/etags.vo.d.ts +1 -1
  17. package/dist/extension.vo.d.ts +4 -4
  18. package/dist/feature-flag-value.vo.d.ts +1 -1
  19. package/dist/file-path-absolute-schema.vo.d.ts +5 -5
  20. package/dist/file-path-relative-schema.vo.d.ts +5 -5
  21. package/dist/filename-affix.vo.d.ts +4 -4
  22. package/dist/filename-from-string.vo.d.ts +2 -2
  23. package/dist/filename-from-string.vo.js +1 -1
  24. package/dist/height-milimiters.vo.d.ts +2 -2
  25. package/dist/iban-schema.vo.d.ts +2 -2
  26. package/dist/image.vo.d.ts +4 -4
  27. package/dist/language.vo.d.ts +2 -2
  28. package/dist/linear-regression.service.d.ts +6 -6
  29. package/dist/mean.service.d.ts +1 -1
  30. package/dist/mime.vo.d.ts +1 -1
  31. package/dist/min-max-scaler.service.d.ts +5 -5
  32. package/dist/money.vo.d.ts +1 -1
  33. package/dist/month-iso-id.vo.d.ts +3 -3
  34. package/dist/multiplication-factor.vo.d.ts +2 -2
  35. package/dist/object-key.vo.d.ts +6 -6
  36. package/dist/outlier-detector.service.d.ts +1 -1
  37. package/dist/package-version-schema.vo.d.ts +2 -2
  38. package/dist/pagination-page.vo.d.ts +1 -1
  39. package/dist/pagination-skip.vo.d.ts +2 -2
  40. package/dist/pagination-skip.vo.js +1 -4
  41. package/dist/pagination-take.vo.d.ts +2 -2
  42. package/dist/pagination-take.vo.js +1 -4
  43. package/dist/percentage.service.d.ts +1 -1
  44. package/dist/population-standard-deviation.service.d.ts +1 -1
  45. package/dist/quarter-iso-id.vo.d.ts +2 -2
  46. package/dist/random.service.d.ts +1 -1
  47. package/dist/reordering-item-position-value.vo.d.ts +1 -1
  48. package/dist/revision-value.vo.d.ts +2 -2
  49. package/dist/revision.vo.d.ts +2 -2
  50. package/dist/rounding.adapter.d.ts +2 -2
  51. package/dist/rounding.adapter.js +1 -4
  52. package/dist/size-bytes.vo.d.ts +1 -1
  53. package/dist/stopwatch.service.d.ts +1 -1
  54. package/dist/timestamp-value.vo.d.ts +1 -1
  55. package/dist/timezone.vo.d.ts +4 -4
  56. package/dist/url-with-slash.vo.d.ts +1 -1
  57. package/dist/url-without-slash.vo.d.ts +1 -1
  58. package/dist/week-iso-id.vo.d.ts +3 -3
  59. package/dist/weight-grams.vo.d.ts +2 -2
  60. package/dist/year-iso-id.vo.d.ts +2 -2
  61. package/dist/z-score.service.d.ts +1 -1
  62. package/package.json +6 -5
  63. package/src/age-years.vo.ts +1 -1
  64. package/src/age.vo.ts +1 -1
  65. package/src/api-key.vo.ts +1 -5
  66. package/src/basename.vo.ts +1 -1
  67. package/src/clock-format.service.ts +1 -1
  68. package/src/date-range.vo.ts +1 -1
  69. package/src/day-iso-id.vo.ts +1 -1
  70. package/src/directory-path-absolute.vo.ts +1 -1
  71. package/src/directory-path-relative.vo.ts +1 -1
  72. package/src/distance.vo.ts +1 -3
  73. package/src/division-factor.vo.ts +1 -4
  74. package/src/duration-ms.vo.ts +1 -1
  75. package/src/email.vo.ts +1 -1
  76. package/src/etags.vo.ts +1 -1
  77. package/src/extension.vo.ts +1 -1
  78. package/src/feature-flag-value.vo.ts +1 -1
  79. package/src/file-path-absolute-schema.vo.ts +1 -1
  80. package/src/file-path-relative-schema.vo.ts +1 -1
  81. package/src/filename-affix.vo.ts +1 -1
  82. package/src/filename-from-string.vo.ts +2 -2
  83. package/src/height-milimiters.vo.ts +1 -1
  84. package/src/iban-schema.vo.ts +1 -1
  85. package/src/image.vo.ts +2 -2
  86. package/src/language.vo.ts +1 -1
  87. package/src/linear-regression.service.ts +1 -1
  88. package/src/mean.service.ts +1 -1
  89. package/src/mime.vo.ts +1 -1
  90. package/src/min-max-scaler.service.ts +1 -1
  91. package/src/money.vo.ts +1 -1
  92. package/src/month-iso-id.vo.ts +1 -1
  93. package/src/multiplication-factor.vo.ts +1 -1
  94. package/src/object-key.vo.ts +1 -1
  95. package/src/outlier-detector.service.ts +1 -1
  96. package/src/package-version-schema.vo.ts +1 -1
  97. package/src/pagination-page.vo.ts +1 -1
  98. package/src/pagination-skip.vo.ts +1 -4
  99. package/src/pagination-take.vo.ts +1 -4
  100. package/src/percentage.service.ts +1 -1
  101. package/src/population-standard-deviation.service.ts +1 -1
  102. package/src/quarter-iso-id.vo.ts +1 -1
  103. package/src/random.service.ts +1 -1
  104. package/src/reordering-item-position-value.vo.ts +1 -1
  105. package/src/reordering.service.ts +1 -1
  106. package/src/revision-value.vo.ts +1 -1
  107. package/src/revision.vo.ts +1 -1
  108. package/src/rounding.adapter.ts +1 -4
  109. package/src/size-bytes.vo.ts +1 -1
  110. package/src/stopwatch.service.ts +1 -1
  111. package/src/timestamp-value.vo.ts +1 -1
  112. package/src/timezone.vo.ts +1 -1
  113. package/src/url-with-slash.vo.ts +1 -1
  114. package/src/url-without-slash.vo.ts +1 -1
  115. package/src/week-iso-id.vo.ts +1 -1
  116. package/src/weight-grams.vo.ts +1 -1
  117. package/src/year-iso-id.vo.ts +1 -1
  118. package/src/z-score.service.ts +1 -1
@@ -1,7 +1,7 @@
1
1
  import type { Duration } from "./duration.service";
2
2
  import { Timestamp } from "./timestamp.vo";
3
3
 
4
- export const StopwatchError = { AlreadyStopped: "stopwatch.already.stopped" } as const;
4
+ export const StopwatchError = { AlreadyStopped: "stopwatch.already.stopped" };
5
5
 
6
6
  enum StopwatchState {
7
7
  started = "started",
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
 
3
- export const TimestampValueError = { Invalid: "timestamp.invalid" } as const;
3
+ export const TimestampValueError = { Invalid: "timestamp.invalid" };
4
4
 
5
5
  export const TimestampValue = z
6
6
  .number(TimestampValueError.Invalid)
@@ -5,7 +5,7 @@ export const TimezoneError = {
5
5
  Empty: "timezone.empty",
6
6
  TooLong: "timezone.too.long",
7
7
  Invalid: "timezone.invalid",
8
- } as const;
8
+ };
9
9
 
10
10
  export const Timezone = z
11
11
  .string(TimezoneError.Type)
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
 
3
- export const UrlWithSlashError = { Invalid: "url.with.slash.invalid" } as const;
3
+ export const UrlWithSlashError = { Invalid: "url.with.slash.invalid" };
4
4
 
5
5
  export const UrlWithSlash = z
6
6
  .url({ error: UrlWithSlashError.Invalid })
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
 
3
- export const UrlWithoutSlashError = { Invalid: "url.without.slash.invalid" } as const;
3
+ export const UrlWithoutSlashError = { Invalid: "url.without.slash.invalid" };
4
4
 
5
5
  export const UrlWithoutSlash = z
6
6
  .url({ error: UrlWithoutSlashError.Invalid })
@@ -5,7 +5,7 @@ export const WeekIsoIdError = {
5
5
  Type: "week.iso.id.type",
6
6
  BadChars: "week.iso.id.bad.chars",
7
7
  Invalid: "week.iso.id.invalid",
8
- } as const;
8
+ };
9
9
 
10
10
  // Four digits, hypen, W, followed by two digits
11
11
  const WEEK_ISO_ID_CHARS_WHITELIST = /^[0-9]{4}-W[0-9]{2}$/;
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
 
3
- export const WeightGramsError = { Type: "weight.grams.type", Invalid: "weight.grams.invalid" } as const;
3
+ export const WeightGramsError = { Type: "weight.grams.type", Invalid: "weight.grams.invalid" };
4
4
 
5
5
  export const WeightGrams = z
6
6
  .number(WeightGramsError.Type)
@@ -1,6 +1,6 @@
1
1
  import { z } from "zod/v4";
2
2
 
3
- export const YearIsoIdError = { Type: "year.iso.id.type", BadChars: "year.iso.id.bad.chars" } as const;
3
+ export const YearIsoIdError = { Type: "year.iso.id.type", BadChars: "year.iso.id.bad.chars" };
4
4
 
5
5
  // Four digits
6
6
  const YEAR_ISO_ID_CHARS_WHITELIST = /^[0-9]{4}$/;
@@ -3,7 +3,7 @@ import { PopulationStandardDeviation } from "./population-standard-deviation.ser
3
3
  import { RoundToDecimal } from "./rounding.adapter";
4
4
  import type { RoundingPort } from "./rounding.port";
5
5
 
6
- export const ZScoreError = { NotEnoughValues: "z.score.not.enough.values" } as const;
6
+ export const ZScoreError = { NotEnoughValues: "z.score.not.enough.values" };
7
7
 
8
8
  export class ZScore {
9
9
  private readonly mean: number;