@bgord/tools 1.2.1 → 1.2.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.
- package/dist/age-years.vo.d.ts +2 -2
- package/dist/age.vo.d.ts +1 -1
- package/dist/api-key.vo.d.ts +3 -3
- package/dist/api-key.vo.js +1 -5
- package/dist/basename.vo.d.ts +7 -7
- package/dist/date-range.vo.d.ts +1 -1
- package/dist/day-iso-id.vo.d.ts +3 -3
- package/dist/directory-path-absolute.vo.d.ts +6 -6
- package/dist/directory-path-relative.vo.d.ts +6 -6
- package/dist/distance.vo.d.ts +1 -1
- package/dist/distance.vo.js +1 -3
- package/dist/division-factor.vo.d.ts +2 -2
- package/dist/division-factor.vo.js +1 -4
- package/dist/duration-ms.vo.d.ts +1 -1
- package/dist/email.vo.d.ts +1 -1
- package/dist/etags.vo.d.ts +1 -1
- package/dist/extension.vo.d.ts +4 -4
- package/dist/feature-flag-value.vo.d.ts +1 -1
- package/dist/file-path-absolute-schema.vo.d.ts +5 -5
- package/dist/file-path-relative-schema.vo.d.ts +5 -5
- package/dist/filename-affix.vo.d.ts +4 -4
- package/dist/filename-from-string.vo.d.ts +2 -2
- package/dist/height-milimiters.vo.d.ts +2 -2
- package/dist/iban-schema.vo.d.ts +2 -2
- package/dist/image.vo.d.ts +4 -4
- package/dist/language.vo.d.ts +2 -2
- package/dist/linear-regression.service.d.ts +6 -6
- package/dist/mean.service.d.ts +1 -1
- package/dist/mime.vo.d.ts +1 -1
- package/dist/min-max-scaler.service.d.ts +5 -5
- package/dist/money.vo.d.ts +1 -1
- package/dist/month-iso-id.vo.d.ts +3 -3
- package/dist/multiplication-factor.vo.d.ts +2 -2
- package/dist/object-key.vo.d.ts +6 -6
- package/dist/outlier-detector.service.d.ts +1 -1
- package/dist/package-version-schema.vo.d.ts +2 -2
- package/dist/pagination-page.vo.d.ts +1 -1
- package/dist/pagination-skip.vo.d.ts +2 -2
- package/dist/pagination-skip.vo.js +1 -4
- package/dist/pagination-take.vo.d.ts +2 -2
- package/dist/pagination-take.vo.js +1 -4
- package/dist/percentage.service.d.ts +1 -1
- package/dist/population-standard-deviation.service.d.ts +1 -1
- package/dist/quarter-iso-id.vo.d.ts +2 -2
- package/dist/random.service.d.ts +1 -1
- package/dist/reordering-item-position-value.vo.d.ts +1 -1
- package/dist/revision-value.vo.d.ts +2 -2
- package/dist/revision.vo.d.ts +2 -2
- package/dist/rounding.adapter.d.ts +2 -2
- package/dist/rounding.adapter.js +1 -4
- package/dist/size-bytes.vo.d.ts +1 -1
- package/dist/stopwatch.service.d.ts +1 -1
- package/dist/timestamp-value.vo.d.ts +1 -1
- package/dist/timezone.vo.d.ts +4 -4
- package/dist/url-with-slash.vo.d.ts +1 -1
- package/dist/url-without-slash.vo.d.ts +1 -1
- package/dist/week-iso-id.vo.d.ts +3 -3
- package/dist/weight-grams.vo.d.ts +2 -2
- package/dist/year-iso-id.vo.d.ts +2 -2
- package/dist/z-score.service.d.ts +1 -1
- package/package.json +6 -5
- package/src/age-years.vo.ts +1 -1
- package/src/age.vo.ts +1 -1
- package/src/api-key.vo.ts +1 -5
- package/src/basename.vo.ts +1 -1
- package/src/clock-format.service.ts +1 -1
- package/src/date-range.vo.ts +1 -1
- package/src/day-iso-id.vo.ts +1 -1
- package/src/directory-path-absolute.vo.ts +1 -1
- package/src/directory-path-relative.vo.ts +1 -1
- package/src/distance.vo.ts +1 -3
- package/src/division-factor.vo.ts +1 -4
- package/src/duration-ms.vo.ts +1 -1
- package/src/email.vo.ts +1 -1
- package/src/etags.vo.ts +1 -1
- package/src/extension.vo.ts +1 -1
- package/src/feature-flag-value.vo.ts +1 -1
- package/src/file-path-absolute-schema.vo.ts +1 -1
- package/src/file-path-relative-schema.vo.ts +1 -1
- package/src/filename-affix.vo.ts +1 -1
- package/src/filename-from-string.vo.ts +1 -1
- package/src/height-milimiters.vo.ts +1 -1
- package/src/iban-schema.vo.ts +1 -1
- package/src/image.vo.ts +2 -2
- package/src/language.vo.ts +1 -1
- package/src/linear-regression.service.ts +1 -1
- package/src/mean.service.ts +1 -1
- package/src/mime.vo.ts +1 -1
- package/src/min-max-scaler.service.ts +1 -1
- package/src/money.vo.ts +1 -1
- package/src/month-iso-id.vo.ts +1 -1
- package/src/multiplication-factor.vo.ts +1 -1
- package/src/object-key.vo.ts +1 -1
- package/src/outlier-detector.service.ts +1 -1
- package/src/package-version-schema.vo.ts +1 -1
- package/src/pagination-page.vo.ts +1 -1
- package/src/pagination-skip.vo.ts +1 -4
- package/src/pagination-take.vo.ts +1 -4
- package/src/percentage.service.ts +1 -1
- package/src/population-standard-deviation.service.ts +1 -1
- package/src/quarter-iso-id.vo.ts +1 -1
- package/src/random.service.ts +1 -1
- package/src/reordering-item-position-value.vo.ts +1 -1
- package/src/reordering.service.ts +1 -1
- package/src/revision-value.vo.ts +1 -1
- package/src/revision.vo.ts +1 -1
- package/src/rounding.adapter.ts +1 -4
- package/src/size-bytes.vo.ts +1 -1
- package/src/stopwatch.service.ts +1 -1
- package/src/timestamp-value.vo.ts +1 -1
- package/src/timezone.vo.ts +1 -1
- package/src/url-with-slash.vo.ts +1 -1
- package/src/url-without-slash.vo.ts +1 -1
- package/src/week-iso-id.vo.ts +1 -1
- package/src/weight-grams.vo.ts +1 -1
- package/src/year-iso-id.vo.ts +1 -1
- package/src/z-score.service.ts +1 -1
package/src/timezone.vo.ts
CHANGED
package/src/url-with-slash.vo.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
|
|
3
|
-
export const UrlWithoutSlashError = { Invalid: "url.without.slash.invalid" }
|
|
3
|
+
export const UrlWithoutSlashError = { Invalid: "url.without.slash.invalid" };
|
|
4
4
|
|
|
5
5
|
export const UrlWithoutSlash = z
|
|
6
6
|
.url({ error: UrlWithoutSlashError.Invalid })
|
package/src/week-iso-id.vo.ts
CHANGED
|
@@ -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
|
-
}
|
|
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}$/;
|
package/src/weight-grams.vo.ts
CHANGED
|
@@ -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" }
|
|
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)
|
package/src/year-iso-id.vo.ts
CHANGED
|
@@ -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" }
|
|
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}$/;
|
package/src/z-score.service.ts
CHANGED
|
@@ -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" }
|
|
6
|
+
export const ZScoreError = { NotEnoughValues: "z.score.not.enough.values" };
|
|
7
7
|
|
|
8
8
|
export class ZScore {
|
|
9
9
|
private readonly mean: number;
|