@bgord/tools 1.4.0 → 1.4.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/{src/day.vo.d.ts → day.vo.d.ts} +1 -1
- package/dist/{src/day.vo.js → day.vo.js} +3 -3
- package/dist/{src/index.d.ts → index.d.ts} +1 -0
- package/dist/{src/index.js → index.js} +1 -0
- package/dist/int.vo.d.ts +8 -0
- package/dist/int.vo.js +15 -0
- package/dist/{src/month.vo.d.ts → month.vo.d.ts} +1 -1
- package/dist/{src/month.vo.js → month.vo.js} +3 -3
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/{src/week.vo.d.ts → week.vo.d.ts} +1 -1
- package/dist/{src/week.vo.js → week.vo.js} +3 -3
- package/dist/{src/year.vo.d.ts → year.vo.d.ts} +1 -1
- package/dist/{src/year.vo.js → year.vo.js} +3 -3
- package/package.json +2 -2
- package/readme.md +1 -0
- package/dist/tests/age-years.vo.test.d.ts +0 -1
- package/dist/tests/age-years.vo.test.js +0 -24
- package/dist/tests/age.vo.test.d.ts +0 -1
- package/dist/tests/age.vo.test.js +0 -106
- package/dist/tests/api-key.vo.test.d.ts +0 -1
- package/dist/tests/api-key.vo.test.js +0 -24
- package/dist/tests/basename.vo.test.d.ts +0 -1
- package/dist/tests/basename.vo.test.js +0 -53
- package/dist/tests/batch.test.d.ts +0 -1
- package/dist/tests/batch.test.js +0 -24
- package/dist/tests/date-calculator.service.test.d.ts +0 -1
- package/dist/tests/date-calculator.service.test.js +0 -32
- package/dist/tests/date-formatter.service.test.d.ts +0 -1
- package/dist/tests/date-formatter.service.test.js +0 -22
- package/dist/tests/date-range.vo.test.d.ts +0 -1
- package/dist/tests/date-range.vo.test.js +0 -49
- package/dist/tests/day-iso-id.vo.test.d.ts +0 -1
- package/dist/tests/day-iso-id.vo.test.js +0 -36
- package/dist/tests/day.vo.test.d.ts +0 -1
- package/dist/tests/day.vo.test.js +0 -68
- package/dist/tests/directory-path-absolute.vo.test.d.ts +0 -1
- package/dist/tests/directory-path-absolute.vo.test.js +0 -47
- package/dist/tests/directory-path-relative.vo.test.d.ts +0 -1
- package/dist/tests/directory-path-relative.vo.test.js +0 -44
- package/dist/tests/distance-value.vo.test.d.ts +0 -1
- package/dist/tests/distance-value.vo.test.js +0 -21
- package/dist/tests/distance.vo.test.d.ts +0 -1
- package/dist/tests/distance.vo.test.js +0 -74
- package/dist/tests/division-factor.vo.test.d.ts +0 -1
- package/dist/tests/division-factor.vo.test.js +0 -21
- package/dist/tests/dll.service.test.d.ts +0 -1
- package/dist/tests/dll.service.test.js +0 -381
- package/dist/tests/duration-ms.vo.test.d.ts +0 -1
- package/dist/tests/duration-ms.vo.test.js +0 -18
- package/dist/tests/duration.service.test.d.ts +0 -1
- package/dist/tests/duration.service.test.js +0 -126
- package/dist/tests/email-mask.service.test.d.ts +0 -1
- package/dist/tests/email-mask.service.test.js +0 -15
- package/dist/tests/email.vo.test.d.ts +0 -1
- package/dist/tests/email.vo.test.js +0 -17
- package/dist/tests/etags.vo.test.d.ts +0 -1
- package/dist/tests/etags.vo.test.js +0 -54
- package/dist/tests/extension.vo.test.d.ts +0 -1
- package/dist/tests/extension.vo.test.js +0 -51
- package/dist/tests/feature-flag-value.vo.test.d.ts +0 -1
- package/dist/tests/feature-flag-value.vo.test.js +0 -12
- package/dist/tests/feature-flag.vo.test.d.ts +0 -1
- package/dist/tests/feature-flag.vo.test.js +0 -13
- package/dist/tests/file-path-absolute-schema.vo.test.d.ts +0 -1
- package/dist/tests/file-path-absolute-schema.vo.test.js +0 -53
- package/dist/tests/file-path-relative-schema.vo.test.d.ts +0 -1
- package/dist/tests/file-path-relative-schema.vo.test.js +0 -52
- package/dist/tests/file-path.vo.test.d.ts +0 -1
- package/dist/tests/file-path.vo.test.js +0 -74
- package/dist/tests/filename-affix.vo.test.d.ts +0 -1
- package/dist/tests/filename-affix.vo.test.js +0 -30
- package/dist/tests/filename-from-string.vo.test.d.ts +0 -1
- package/dist/tests/filename-from-string.vo.test.js +0 -37
- package/dist/tests/filename.vo.test.d.ts +0 -1
- package/dist/tests/filename.vo.test.js +0 -93
- package/dist/tests/height-milimiters.vo.test.d.ts +0 -1
- package/dist/tests/height-milimiters.vo.test.js +0 -21
- package/dist/tests/height.vo.test.d.ts +0 -1
- package/dist/tests/height.vo.test.js +0 -64
- package/dist/tests/hour-value.vo.test.d.ts +0 -1
- package/dist/tests/hour-value.vo.test.js +0 -24
- package/dist/tests/hour.vo.test.d.ts +0 -1
- package/dist/tests/hour.vo.test.js +0 -64
- package/dist/tests/iban-mask.service.test.d.ts +0 -1
- package/dist/tests/iban-mask.service.test.js +0 -13
- package/dist/tests/iban-schema.vo.test.d.ts +0 -1
- package/dist/tests/iban-schema.vo.test.js +0 -43
- package/dist/tests/iban.vo.test.d.ts +0 -1
- package/dist/tests/iban.vo.test.js +0 -46
- package/dist/tests/image.vo.test.d.ts +0 -1
- package/dist/tests/image.vo.test.js +0 -41
- package/dist/tests/integer-non-negative.vo.test.d.ts +0 -1
- package/dist/tests/integer-non-negative.vo.test.js +0 -22
- package/dist/tests/integer-positive.vo.test.d.ts +0 -1
- package/dist/tests/integer-positive.vo.test.js +0 -21
- package/dist/tests/integer.vo.test.d.ts +0 -1
- package/dist/tests/integer.vo.test.js +0 -21
- package/dist/tests/language.vo.test.d.ts +0 -1
- package/dist/tests/language.vo.test.js +0 -28
- package/dist/tests/linear-regression.service.test.d.ts +0 -1
- package/dist/tests/linear-regression.service.test.js +0 -111
- package/dist/tests/mean.service.test.d.ts +0 -1
- package/dist/tests/mean.service.test.js +0 -23
- package/dist/tests/mime-registry-entry.vo.test.d.ts +0 -1
- package/dist/tests/mime-registry-entry.vo.test.js +0 -15
- package/dist/tests/mime-registry.service.test.d.ts +0 -1
- package/dist/tests/mime-registry.service.test.js +0 -45
- package/dist/tests/mime-value.vo.test.d.ts +0 -1
- package/dist/tests/mime-value.vo.test.js +0 -49
- package/dist/tests/mime.vo.test.d.ts +0 -1
- package/dist/tests/mime.vo.test.js +0 -53
- package/dist/tests/mimes.test.d.ts +0 -1
- package/dist/tests/mimes.test.js +0 -28
- package/dist/tests/min-max-scaler.service.test.d.ts +0 -1
- package/dist/tests/min-max-scaler.service.test.js +0 -116
- package/dist/tests/minute-value.vo.test.d.ts +0 -1
- package/dist/tests/minute-value.vo.test.js +0 -24
- package/dist/tests/minute.vo.test.d.ts +0 -1
- package/dist/tests/minute.vo.test.js +0 -64
- package/dist/tests/mocks.d.ts +0 -6
- package/dist/tests/mocks.js +0 -7
- package/dist/tests/money-amount.vo.test.d.ts +0 -1
- package/dist/tests/money-amount.vo.test.js +0 -21
- package/dist/tests/money.vo.test.d.ts +0 -1
- package/dist/tests/money.vo.test.js +0 -90
- package/dist/tests/month-iso-id.vo.test.d.ts +0 -1
- package/dist/tests/month-iso-id.vo.test.js +0 -36
- package/dist/tests/month.vo.test.d.ts +0 -1
- package/dist/tests/month.vo.test.js +0 -65
- package/dist/tests/multiplication-factor.vo.test.d.ts +0 -1
- package/dist/tests/multiplication-factor.vo.test.js +0 -19
- package/dist/tests/noop.test.d.ts +0 -1
- package/dist/tests/noop.test.js +0 -12
- package/dist/tests/object-key.vo.test.d.ts +0 -1
- package/dist/tests/object-key.vo.test.js +0 -56
- package/dist/tests/outlier-detector.service.test.d.ts +0 -1
- package/dist/tests/outlier-detector.service.test.js +0 -35
- package/dist/tests/package-version-schema.vo.test.d.ts +0 -1
- package/dist/tests/package-version-schema.vo.test.js +0 -32
- package/dist/tests/package-version.vo.test.d.ts +0 -1
- package/dist/tests/package-version.vo.test.js +0 -138
- package/dist/tests/pagination-page.vo.test.d.ts +0 -1
- package/dist/tests/pagination-page.vo.test.js +0 -26
- package/dist/tests/pagination-skip.vo.test.d.ts +0 -1
- package/dist/tests/pagination-skip.vo.test.js +0 -23
- package/dist/tests/pagination-take.vo.test.d.ts +0 -1
- package/dist/tests/pagination-take.vo.test.js +0 -25
- package/dist/tests/pagination.service.test.d.ts +0 -1
- package/dist/tests/pagination.service.test.js +0 -92
- package/dist/tests/percentage.service.test.d.ts +0 -1
- package/dist/tests/percentage.service.test.js +0 -16
- package/dist/tests/population-standard-deviation.service.test.d.ts +0 -1
- package/dist/tests/population-standard-deviation.service.test.js +0 -20
- package/dist/tests/quarter-iso-id.vo.test.d.ts +0 -1
- package/dist/tests/quarter-iso-id.vo.test.js +0 -30
- package/dist/tests/quarter.vo.test.d.ts +0 -1
- package/dist/tests/quarter.vo.test.js +0 -54
- package/dist/tests/random.service.test.d.ts +0 -1
- package/dist/tests/random.service.test.js +0 -93
- package/dist/tests/rate-limiter.service.test.d.ts +0 -1
- package/dist/tests/rate-limiter.service.test.js +0 -39
- package/dist/tests/relative-date.vo.test.d.ts +0 -1
- package/dist/tests/relative-date.vo.test.js +0 -22
- package/dist/tests/reordering-item-position-value.vo.test.d.ts +0 -1
- package/dist/tests/reordering-item-position-value.vo.test.js +0 -21
- package/dist/tests/reordering.service.test.d.ts +0 -1
- package/dist/tests/reordering.service.test.js +0 -76
- package/dist/tests/repeat.test.d.ts +0 -1
- package/dist/tests/repeat.test.js +0 -8
- package/dist/tests/revision-value.vo.test.d.ts +0 -1
- package/dist/tests/revision-value.vo.test.js +0 -21
- package/dist/tests/revision.vo.test.d.ts +0 -1
- package/dist/tests/revision.vo.test.js +0 -52
- package/dist/tests/rounding-decimal.strategy.test.d.ts +0 -1
- package/dist/tests/rounding-decimal.strategy.test.js +0 -17
- package/dist/tests/rounding-down.strategy.test.d.ts +0 -1
- package/dist/tests/rounding-down.strategy.test.js +0 -9
- package/dist/tests/rounding-to-nearest.strategy.test.d.ts +0 -1
- package/dist/tests/rounding-to-nearest.strategy.test.js +0 -9
- package/dist/tests/rounding-up.strategy.test.d.ts +0 -1
- package/dist/tests/rounding-up.strategy.test.js +0 -9
- package/dist/tests/size-bytes.vo.test.d.ts +0 -1
- package/dist/tests/size-bytes.vo.test.js +0 -21
- package/dist/tests/size.vo.test.d.ts +0 -1
- package/dist/tests/size.vo.test.js +0 -93
- package/dist/tests/slug.service.test.d.ts +0 -1
- package/dist/tests/slug.service.test.js +0 -45
- package/dist/tests/sum.service.test.d.ts +0 -1
- package/dist/tests/sum.service.test.js +0 -22
- package/dist/tests/thousands-separator.service.test.d.ts +0 -1
- package/dist/tests/thousands-separator.service.test.js +0 -27
- package/dist/tests/time-zone-offset-value.test.d.ts +0 -1
- package/dist/tests/time-zone-offset-value.test.js +0 -27
- package/dist/tests/timestamp-value.vo.test.d.ts +0 -1
- package/dist/tests/timestamp-value.vo.test.js +0 -21
- package/dist/tests/timestamp.vo.test.d.ts +0 -1
- package/dist/tests/timestamp.vo.test.js +0 -73
- package/dist/tests/timezone.vo.test.d.ts +0 -1
- package/dist/tests/timezone.vo.test.js +0 -29
- package/dist/tests/url-with-slash.vo.test.d.ts +0 -1
- package/dist/tests/url-with-slash.vo.test.js +0 -24
- package/dist/tests/url-without-slash.vo.test.d.ts +0 -1
- package/dist/tests/url-without-slash.vo.test.js +0 -25
- package/dist/tests/visually-unambiguous-characters-generator.service.test.d.ts +0 -1
- package/dist/tests/visually-unambiguous-characters-generator.service.test.js +0 -89
- package/dist/tests/week-iso-id.vo.test.d.ts +0 -1
- package/dist/tests/week-iso-id.vo.test.js +0 -37
- package/dist/tests/week.vo.test.d.ts +0 -1
- package/dist/tests/week.vo.test.js +0 -64
- package/dist/tests/weekday-iso-id.vo.test.d.ts +0 -1
- package/dist/tests/weekday-iso-id.vo.test.js +0 -24
- package/dist/tests/weekday.vo.test.d.ts +0 -1
- package/dist/tests/weekday.vo.test.js +0 -51
- package/dist/tests/weight-grams.vo.test.d.ts +0 -1
- package/dist/tests/weight-grams.vo.test.js +0 -21
- package/dist/tests/weight.vo.test.d.ts +0 -1
- package/dist/tests/weight.vo.test.js +0 -66
- package/dist/tests/year-iso-id.vo.test.d.ts +0 -1
- package/dist/tests/year-iso-id.vo.test.js +0 -23
- package/dist/tests/year.vo.test.d.ts +0 -1
- package/dist/tests/year.vo.test.js +0 -79
- package/dist/tests/z-score.service.test.d.ts +0 -1
- package/dist/tests/z-score.service.test.js +0 -26
- /package/dist/{src/age-years.vo.d.ts → age-years.vo.d.ts} +0 -0
- /package/dist/{src/age-years.vo.js → age-years.vo.js} +0 -0
- /package/dist/{src/age.vo.d.ts → age.vo.d.ts} +0 -0
- /package/dist/{src/age.vo.js → age.vo.js} +0 -0
- /package/dist/{src/api-key.vo.d.ts → api-key.vo.d.ts} +0 -0
- /package/dist/{src/api-key.vo.js → api-key.vo.js} +0 -0
- /package/dist/{src/basename.vo.d.ts → basename.vo.d.ts} +0 -0
- /package/dist/{src/basename.vo.js → basename.vo.js} +0 -0
- /package/dist/{src/batch.d.ts → batch.d.ts} +0 -0
- /package/dist/{src/batch.js → batch.js} +0 -0
- /package/dist/{src/date-calculator.service.d.ts → date-calculator.service.d.ts} +0 -0
- /package/dist/{src/date-calculator.service.js → date-calculator.service.js} +0 -0
- /package/dist/{src/date-formatter.service.d.ts → date-formatter.service.d.ts} +0 -0
- /package/dist/{src/date-formatter.service.js → date-formatter.service.js} +0 -0
- /package/dist/{src/date-range.vo.d.ts → date-range.vo.d.ts} +0 -0
- /package/dist/{src/date-range.vo.js → date-range.vo.js} +0 -0
- /package/dist/{src/day-iso-id.vo.d.ts → day-iso-id.vo.d.ts} +0 -0
- /package/dist/{src/day-iso-id.vo.js → day-iso-id.vo.js} +0 -0
- /package/dist/{src/directory-path-absolute.vo.d.ts → directory-path-absolute.vo.d.ts} +0 -0
- /package/dist/{src/directory-path-absolute.vo.js → directory-path-absolute.vo.js} +0 -0
- /package/dist/{src/directory-path-relative.vo.d.ts → directory-path-relative.vo.d.ts} +0 -0
- /package/dist/{src/directory-path-relative.vo.js → directory-path-relative.vo.js} +0 -0
- /package/dist/{src/distance-value.vo.d.ts → distance-value.vo.d.ts} +0 -0
- /package/dist/{src/distance-value.vo.js → distance-value.vo.js} +0 -0
- /package/dist/{src/distance.vo.d.ts → distance.vo.d.ts} +0 -0
- /package/dist/{src/distance.vo.js → distance.vo.js} +0 -0
- /package/dist/{src/division-factor.vo.d.ts → division-factor.vo.d.ts} +0 -0
- /package/dist/{src/division-factor.vo.js → division-factor.vo.js} +0 -0
- /package/dist/{src/dll.service.d.ts → dll.service.d.ts} +0 -0
- /package/dist/{src/dll.service.js → dll.service.js} +0 -0
- /package/dist/{src/duration-ms.vo.d.ts → duration-ms.vo.d.ts} +0 -0
- /package/dist/{src/duration-ms.vo.js → duration-ms.vo.js} +0 -0
- /package/dist/{src/duration.service.d.ts → duration.service.d.ts} +0 -0
- /package/dist/{src/duration.service.js → duration.service.js} +0 -0
- /package/dist/{src/email-mask.service.d.ts → email-mask.service.d.ts} +0 -0
- /package/dist/{src/email-mask.service.js → email-mask.service.js} +0 -0
- /package/dist/{src/email.vo.d.ts → email.vo.d.ts} +0 -0
- /package/dist/{src/email.vo.js → email.vo.js} +0 -0
- /package/dist/{src/etags.vo.d.ts → etags.vo.d.ts} +0 -0
- /package/dist/{src/etags.vo.js → etags.vo.js} +0 -0
- /package/dist/{src/extension.vo.d.ts → extension.vo.d.ts} +0 -0
- /package/dist/{src/extension.vo.js → extension.vo.js} +0 -0
- /package/dist/{src/feature-flag-value.vo.d.ts → feature-flag-value.vo.d.ts} +0 -0
- /package/dist/{src/feature-flag-value.vo.js → feature-flag-value.vo.js} +0 -0
- /package/dist/{src/feature-flag.vo.d.ts → feature-flag.vo.d.ts} +0 -0
- /package/dist/{src/feature-flag.vo.js → feature-flag.vo.js} +0 -0
- /package/dist/{src/file-path-absolute-schema.vo.d.ts → file-path-absolute-schema.vo.d.ts} +0 -0
- /package/dist/{src/file-path-absolute-schema.vo.js → file-path-absolute-schema.vo.js} +0 -0
- /package/dist/{src/file-path-relative-schema.vo.d.ts → file-path-relative-schema.vo.d.ts} +0 -0
- /package/dist/{src/file-path-relative-schema.vo.js → file-path-relative-schema.vo.js} +0 -0
- /package/dist/{src/file-path.vo.d.ts → file-path.vo.d.ts} +0 -0
- /package/dist/{src/file-path.vo.js → file-path.vo.js} +0 -0
- /package/dist/{src/filename-affix.vo.d.ts → filename-affix.vo.d.ts} +0 -0
- /package/dist/{src/filename-affix.vo.js → filename-affix.vo.js} +0 -0
- /package/dist/{src/filename-from-string.vo.d.ts → filename-from-string.vo.d.ts} +0 -0
- /package/dist/{src/filename-from-string.vo.js → filename-from-string.vo.js} +0 -0
- /package/dist/{src/filename.vo.d.ts → filename.vo.d.ts} +0 -0
- /package/dist/{src/filename.vo.js → filename.vo.js} +0 -0
- /package/dist/{src/height-milimiters.vo.d.ts → height-milimiters.vo.d.ts} +0 -0
- /package/dist/{src/height-milimiters.vo.js → height-milimiters.vo.js} +0 -0
- /package/dist/{src/height.vo.d.ts → height.vo.d.ts} +0 -0
- /package/dist/{src/height.vo.js → height.vo.js} +0 -0
- /package/dist/{src/hour-value.vo.d.ts → hour-value.vo.d.ts} +0 -0
- /package/dist/{src/hour-value.vo.js → hour-value.vo.js} +0 -0
- /package/dist/{src/hour.vo.d.ts → hour.vo.d.ts} +0 -0
- /package/dist/{src/hour.vo.js → hour.vo.js} +0 -0
- /package/dist/{src/iban-mask.service.d.ts → iban-mask.service.d.ts} +0 -0
- /package/dist/{src/iban-mask.service.js → iban-mask.service.js} +0 -0
- /package/dist/{src/iban-schema.vo.d.ts → iban-schema.vo.d.ts} +0 -0
- /package/dist/{src/iban-schema.vo.js → iban-schema.vo.js} +0 -0
- /package/dist/{src/iban.vo.d.ts → iban.vo.d.ts} +0 -0
- /package/dist/{src/iban.vo.js → iban.vo.js} +0 -0
- /package/dist/{src/image.vo.d.ts → image.vo.d.ts} +0 -0
- /package/dist/{src/image.vo.js → image.vo.js} +0 -0
- /package/dist/{src/integer-non-negative.vo.d.ts → integer-non-negative.vo.d.ts} +0 -0
- /package/dist/{src/integer-non-negative.vo.js → integer-non-negative.vo.js} +0 -0
- /package/dist/{src/integer-positive.vo.d.ts → integer-positive.vo.d.ts} +0 -0
- /package/dist/{src/integer-positive.vo.js → integer-positive.vo.js} +0 -0
- /package/dist/{src/integer.vo.d.ts → integer.vo.d.ts} +0 -0
- /package/dist/{src/integer.vo.js → integer.vo.js} +0 -0
- /package/dist/{src/language.vo.d.ts → language.vo.d.ts} +0 -0
- /package/dist/{src/language.vo.js → language.vo.js} +0 -0
- /package/dist/{src/linear-regression.service.d.ts → linear-regression.service.d.ts} +0 -0
- /package/dist/{src/linear-regression.service.js → linear-regression.service.js} +0 -0
- /package/dist/{src/mean.service.d.ts → mean.service.d.ts} +0 -0
- /package/dist/{src/mean.service.js → mean.service.js} +0 -0
- /package/dist/{src/mime-registry-entry.vo.d.ts → mime-registry-entry.vo.d.ts} +0 -0
- /package/dist/{src/mime-registry-entry.vo.js → mime-registry-entry.vo.js} +0 -0
- /package/dist/{src/mime-registry.service.d.ts → mime-registry.service.d.ts} +0 -0
- /package/dist/{src/mime-registry.service.js → mime-registry.service.js} +0 -0
- /package/dist/{src/mime-value.vo.d.ts → mime-value.vo.d.ts} +0 -0
- /package/dist/{src/mime-value.vo.js → mime-value.vo.js} +0 -0
- /package/dist/{src/mime.vo.d.ts → mime.vo.d.ts} +0 -0
- /package/dist/{src/mime.vo.js → mime.vo.js} +0 -0
- /package/dist/{src/mimes.d.ts → mimes.d.ts} +0 -0
- /package/dist/{src/mimes.js → mimes.js} +0 -0
- /package/dist/{src/min-max-scaler.service.d.ts → min-max-scaler.service.d.ts} +0 -0
- /package/dist/{src/min-max-scaler.service.js → min-max-scaler.service.js} +0 -0
- /package/dist/{src/minute-value.vo.d.ts → minute-value.vo.d.ts} +0 -0
- /package/dist/{src/minute-value.vo.js → minute-value.vo.js} +0 -0
- /package/dist/{src/minute.vo.d.ts → minute.vo.d.ts} +0 -0
- /package/dist/{src/minute.vo.js → minute.vo.js} +0 -0
- /package/dist/{src/money-amount.vo.d.ts → money-amount.vo.d.ts} +0 -0
- /package/dist/{src/money-amount.vo.js → money-amount.vo.js} +0 -0
- /package/dist/{src/money.vo.d.ts → money.vo.d.ts} +0 -0
- /package/dist/{src/money.vo.js → money.vo.js} +0 -0
- /package/dist/{src/month-iso-id.vo.d.ts → month-iso-id.vo.d.ts} +0 -0
- /package/dist/{src/month-iso-id.vo.js → month-iso-id.vo.js} +0 -0
- /package/dist/{src/multiplication-factor.vo.d.ts → multiplication-factor.vo.d.ts} +0 -0
- /package/dist/{src/multiplication-factor.vo.js → multiplication-factor.vo.js} +0 -0
- /package/dist/{src/noop.service.d.ts → noop.service.d.ts} +0 -0
- /package/dist/{src/noop.service.js → noop.service.js} +0 -0
- /package/dist/{src/object-key.vo.d.ts → object-key.vo.d.ts} +0 -0
- /package/dist/{src/object-key.vo.js → object-key.vo.js} +0 -0
- /package/dist/{src/outlier-detector.service.d.ts → outlier-detector.service.d.ts} +0 -0
- /package/dist/{src/outlier-detector.service.js → outlier-detector.service.js} +0 -0
- /package/dist/{src/package-version-schema.vo.d.ts → package-version-schema.vo.d.ts} +0 -0
- /package/dist/{src/package-version-schema.vo.js → package-version-schema.vo.js} +0 -0
- /package/dist/{src/package-version.vo.d.ts → package-version.vo.d.ts} +0 -0
- /package/dist/{src/package-version.vo.js → package-version.vo.js} +0 -0
- /package/dist/{src/pagination-page.vo.d.ts → pagination-page.vo.d.ts} +0 -0
- /package/dist/{src/pagination-page.vo.js → pagination-page.vo.js} +0 -0
- /package/dist/{src/pagination-skip.vo.d.ts → pagination-skip.vo.d.ts} +0 -0
- /package/dist/{src/pagination-skip.vo.js → pagination-skip.vo.js} +0 -0
- /package/dist/{src/pagination-take.vo.d.ts → pagination-take.vo.d.ts} +0 -0
- /package/dist/{src/pagination-take.vo.js → pagination-take.vo.js} +0 -0
- /package/dist/{src/pagination.service.d.ts → pagination.service.d.ts} +0 -0
- /package/dist/{src/pagination.service.js → pagination.service.js} +0 -0
- /package/dist/{src/percentage.service.d.ts → percentage.service.d.ts} +0 -0
- /package/dist/{src/percentage.service.js → percentage.service.js} +0 -0
- /package/dist/{src/population-standard-deviation.service.d.ts → population-standard-deviation.service.d.ts} +0 -0
- /package/dist/{src/population-standard-deviation.service.js → population-standard-deviation.service.js} +0 -0
- /package/dist/{src/quarter-iso-id.vo.d.ts → quarter-iso-id.vo.d.ts} +0 -0
- /package/dist/{src/quarter-iso-id.vo.js → quarter-iso-id.vo.js} +0 -0
- /package/dist/{src/quarter.vo.d.ts → quarter.vo.d.ts} +0 -0
- /package/dist/{src/quarter.vo.js → quarter.vo.js} +0 -0
- /package/dist/{src/random.service.d.ts → random.service.d.ts} +0 -0
- /package/dist/{src/random.service.js → random.service.js} +0 -0
- /package/dist/{src/rate-limiter.service.d.ts → rate-limiter.service.d.ts} +0 -0
- /package/dist/{src/rate-limiter.service.js → rate-limiter.service.js} +0 -0
- /package/dist/{src/relative-date.vo.d.ts → relative-date.vo.d.ts} +0 -0
- /package/dist/{src/relative-date.vo.js → relative-date.vo.js} +0 -0
- /package/dist/{src/reordering-item-position-value.vo.d.ts → reordering-item-position-value.vo.d.ts} +0 -0
- /package/dist/{src/reordering-item-position-value.vo.js → reordering-item-position-value.vo.js} +0 -0
- /package/dist/{src/reordering.service.d.ts → reordering.service.d.ts} +0 -0
- /package/dist/{src/reordering.service.js → reordering.service.js} +0 -0
- /package/dist/{src/repeat.d.ts → repeat.d.ts} +0 -0
- /package/dist/{src/repeat.js → repeat.js} +0 -0
- /package/dist/{src/revision-value.vo.d.ts → revision-value.vo.d.ts} +0 -0
- /package/dist/{src/revision-value.vo.js → revision-value.vo.js} +0 -0
- /package/dist/{src/revision.vo.d.ts → revision.vo.d.ts} +0 -0
- /package/dist/{src/revision.vo.js → revision.vo.js} +0 -0
- /package/dist/{src/rounding-decimal.strategy.d.ts → rounding-decimal.strategy.d.ts} +0 -0
- /package/dist/{src/rounding-decimal.strategy.js → rounding-decimal.strategy.js} +0 -0
- /package/dist/{src/rounding-down.strategy.d.ts → rounding-down.strategy.d.ts} +0 -0
- /package/dist/{src/rounding-down.strategy.js → rounding-down.strategy.js} +0 -0
- /package/dist/{src/rounding-to-nearest.strategy.d.ts → rounding-to-nearest.strategy.d.ts} +0 -0
- /package/dist/{src/rounding-to-nearest.strategy.js → rounding-to-nearest.strategy.js} +0 -0
- /package/dist/{src/rounding-up.strategy.d.ts → rounding-up.strategy.d.ts} +0 -0
- /package/dist/{src/rounding-up.strategy.js → rounding-up.strategy.js} +0 -0
- /package/dist/{src/rounding.strategy.d.ts → rounding.strategy.d.ts} +0 -0
- /package/dist/{src/rounding.strategy.js → rounding.strategy.js} +0 -0
- /package/dist/{src/size-bytes.vo.d.ts → size-bytes.vo.d.ts} +0 -0
- /package/dist/{src/size-bytes.vo.js → size-bytes.vo.js} +0 -0
- /package/dist/{src/size.vo.d.ts → size.vo.d.ts} +0 -0
- /package/dist/{src/size.vo.js → size.vo.js} +0 -0
- /package/dist/{src/slug.service.d.ts → slug.service.d.ts} +0 -0
- /package/dist/{src/slug.service.js → slug.service.js} +0 -0
- /package/dist/{src/sum.service.d.ts → sum.service.d.ts} +0 -0
- /package/dist/{src/sum.service.js → sum.service.js} +0 -0
- /package/dist/{src/thousands-separator.service.d.ts → thousands-separator.service.d.ts} +0 -0
- /package/dist/{src/thousands-separator.service.js → thousands-separator.service.js} +0 -0
- /package/dist/{src/time-zone-offset-value.vo.d.ts → time-zone-offset-value.vo.d.ts} +0 -0
- /package/dist/{src/time-zone-offset-value.vo.js → time-zone-offset-value.vo.js} +0 -0
- /package/dist/{src/timestamp-value.vo.d.ts → timestamp-value.vo.d.ts} +0 -0
- /package/dist/{src/timestamp-value.vo.js → timestamp-value.vo.js} +0 -0
- /package/dist/{src/timestamp.vo.d.ts → timestamp.vo.d.ts} +0 -0
- /package/dist/{src/timestamp.vo.js → timestamp.vo.js} +0 -0
- /package/dist/{src/timezone.vo.d.ts → timezone.vo.d.ts} +0 -0
- /package/dist/{src/timezone.vo.js → timezone.vo.js} +0 -0
- /package/dist/{src/ts-utils.d.ts → ts-utils.d.ts} +0 -0
- /package/dist/{src/ts-utils.js → ts-utils.js} +0 -0
- /package/dist/{src/url-with-slash.vo.d.ts → url-with-slash.vo.d.ts} +0 -0
- /package/dist/{src/url-with-slash.vo.js → url-with-slash.vo.js} +0 -0
- /package/dist/{src/url-without-slash.vo.d.ts → url-without-slash.vo.d.ts} +0 -0
- /package/dist/{src/url-without-slash.vo.js → url-without-slash.vo.js} +0 -0
- /package/dist/{src/visually-unambiguous-characters-generator.service.d.ts → visually-unambiguous-characters-generator.service.d.ts} +0 -0
- /package/dist/{src/visually-unambiguous-characters-generator.service.js → visually-unambiguous-characters-generator.service.js} +0 -0
- /package/dist/{src/week-iso-id.vo.d.ts → week-iso-id.vo.d.ts} +0 -0
- /package/dist/{src/week-iso-id.vo.js → week-iso-id.vo.js} +0 -0
- /package/dist/{src/weekday-iso-id.vo.d.ts → weekday-iso-id.vo.d.ts} +0 -0
- /package/dist/{src/weekday-iso-id.vo.js → weekday-iso-id.vo.js} +0 -0
- /package/dist/{src/weekday.vo.d.ts → weekday.vo.d.ts} +0 -0
- /package/dist/{src/weekday.vo.js → weekday.vo.js} +0 -0
- /package/dist/{src/weight-grams.vo.d.ts → weight-grams.vo.d.ts} +0 -0
- /package/dist/{src/weight-grams.vo.js → weight-grams.vo.js} +0 -0
- /package/dist/{src/weight.vo.d.ts → weight.vo.d.ts} +0 -0
- /package/dist/{src/weight.vo.js → weight.vo.js} +0 -0
- /package/dist/{src/year-iso-id.vo.d.ts → year-iso-id.vo.d.ts} +0 -0
- /package/dist/{src/year-iso-id.vo.js → year-iso-id.vo.js} +0 -0
- /package/dist/{src/z-score.service.d.ts → z-score.service.d.ts} +0 -0
- /package/dist/{src/z-score.service.js → z-score.service.js} +0 -0
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { FeatureFlagValue } from "../src/feature-flag-value.vo";
|
|
4
|
-
describe("FeatureFlagValue", () => {
|
|
5
|
-
test("happy path", () => {
|
|
6
|
-
expect(v.safeParse(FeatureFlagValue, "yes").success).toEqual(true);
|
|
7
|
-
expect(v.safeParse(FeatureFlagValue, "no").success).toEqual(true);
|
|
8
|
-
});
|
|
9
|
-
test("rejects other values", () => {
|
|
10
|
-
expect(() => v.parse(FeatureFlagValue, "maybe")).toThrow("feature.flag.value.invalid");
|
|
11
|
-
});
|
|
12
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { FeatureFlag } from "../src/feature-flag.vo";
|
|
3
|
-
import { FeatureFlagEnum } from "../src/feature-flag-value.vo";
|
|
4
|
-
describe("FeatureFlag", () => {
|
|
5
|
-
test("isEnabled", () => {
|
|
6
|
-
expect(FeatureFlag.isEnabled(FeatureFlagEnum.yes)).toEqual(true);
|
|
7
|
-
expect(FeatureFlag.isEnabled(FeatureFlagEnum.no)).toEqual(false);
|
|
8
|
-
});
|
|
9
|
-
test("isDisabled", () => {
|
|
10
|
-
expect(FeatureFlag.isDisabled(FeatureFlagEnum.yes)).toEqual(false);
|
|
11
|
-
expect(FeatureFlag.isDisabled(FeatureFlagEnum.no)).toEqual(true);
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { DirectoryPathAbsoluteSchema } from "../src/directory-path-absolute.vo";
|
|
4
|
-
import { FilePathAbsoluteSchema } from "../src/file-path-absolute-schema.vo";
|
|
5
|
-
describe("FilePathAbsoluteSchema", () => {
|
|
6
|
-
test("happy path", () => {
|
|
7
|
-
expect({
|
|
8
|
-
directory: v.parse(FilePathAbsoluteSchema, "/avatar.webp").directory,
|
|
9
|
-
filename: v.parse(FilePathAbsoluteSchema, "/avatar.webp").filename.get(),
|
|
10
|
-
}).toEqual({ directory: v.parse(DirectoryPathAbsoluteSchema, "/"), filename: "avatar.webp" });
|
|
11
|
-
expect({
|
|
12
|
-
directory: v.parse(FilePathAbsoluteSchema, "/var/uploads/avatar.webp").directory,
|
|
13
|
-
filename: v.parse(FilePathAbsoluteSchema, "/var/uploads/avatar.webp").filename.get(),
|
|
14
|
-
}).toEqual({ directory: v.parse(DirectoryPathAbsoluteSchema, "/var/uploads"), filename: "avatar.webp" });
|
|
15
|
-
});
|
|
16
|
-
test("rejects non-string - number", () => {
|
|
17
|
-
expect(() => v.parse(FilePathAbsoluteSchema, 123)).toThrow("file.path.absolute.type");
|
|
18
|
-
});
|
|
19
|
-
test("rejects non-string - null", () => {
|
|
20
|
-
expect(() => v.parse(FilePathAbsoluteSchema, null)).toThrow("file.path.absolute.type");
|
|
21
|
-
});
|
|
22
|
-
test("rejects empty", () => {
|
|
23
|
-
expect(() => v.parse(FilePathAbsoluteSchema, "")).toThrow("file.path.absolute.empty");
|
|
24
|
-
});
|
|
25
|
-
test("rejects lacking leading slash", () => {
|
|
26
|
-
expect(() => v.parse(FilePathAbsoluteSchema, "var/uploads/avatar.webp")).toThrow("file.path.absolute.leading.slash");
|
|
27
|
-
});
|
|
28
|
-
test("rejects backslashes", () => {
|
|
29
|
-
expect(() => v.parse(FilePathAbsoluteSchema, "/var\\uploads/avatar.webp")).toThrow("file.path.absolute.backslash.forbidden");
|
|
30
|
-
});
|
|
31
|
-
test("rejects trailing slash", () => {
|
|
32
|
-
expect(() => v.parse(FilePathAbsoluteSchema, "/var/uploads/avatar.webp/")).toThrow("file.path.absolute.trailing.slash");
|
|
33
|
-
});
|
|
34
|
-
test("single-segment path keeps root directory", () => {
|
|
35
|
-
expect({
|
|
36
|
-
directory: v.parse(FilePathAbsoluteSchema, "/avatar.webp").directory,
|
|
37
|
-
filename: v.parse(FilePathAbsoluteSchema, "/avatar.webp").filename.get(),
|
|
38
|
-
}).toEqual({ directory: v.parse(DirectoryPathAbsoluteSchema, "/"), filename: "avatar.webp" });
|
|
39
|
-
});
|
|
40
|
-
test("delegated failures", () => {
|
|
41
|
-
const invalid = [
|
|
42
|
-
"/var/./avatar.webp",
|
|
43
|
-
"/var/../avatar.webp",
|
|
44
|
-
"/var/\u0000/uploads/avatar.webp",
|
|
45
|
-
"/var/uploads/",
|
|
46
|
-
"/var/uploads/avatar",
|
|
47
|
-
"/var/upload s/avatar.webp",
|
|
48
|
-
];
|
|
49
|
-
for (const value of invalid) {
|
|
50
|
-
expect(() => v.parse(FilePathAbsoluteSchema, value)).toThrow();
|
|
51
|
-
}
|
|
52
|
-
});
|
|
53
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { DirectoryPathRelativeSchema } from "../src/directory-path-relative.vo";
|
|
4
|
-
import { FilePathRelativeSchema } from "../src/file-path-relative-schema.vo";
|
|
5
|
-
describe("FilePathRelativeSchema", () => {
|
|
6
|
-
test("happy path", () => {
|
|
7
|
-
expect({
|
|
8
|
-
directory: v.parse(FilePathRelativeSchema, "tmp/file.txt").directory,
|
|
9
|
-
filename: v.parse(FilePathRelativeSchema, "tmp/file.txt").filename.get(),
|
|
10
|
-
}).toEqual({ directory: v.parse(DirectoryPathRelativeSchema, "tmp"), filename: "file.txt" });
|
|
11
|
-
expect({
|
|
12
|
-
directory: v.parse(FilePathRelativeSchema, "a/b/c/avatar.webp").directory,
|
|
13
|
-
filename: v.parse(FilePathRelativeSchema, "a/b/c/avatar.webp").filename.get(),
|
|
14
|
-
}).toEqual({ directory: v.parse(DirectoryPathRelativeSchema, "a/b/c"), filename: "avatar.webp" });
|
|
15
|
-
expect({
|
|
16
|
-
directory: v.parse(FilePathRelativeSchema, "dir/sub/archive.tar.gz").directory,
|
|
17
|
-
filename: v.parse(FilePathRelativeSchema, "dir/sub/archive.tar.gz").filename.get(),
|
|
18
|
-
}).toEqual({ directory: v.parse(DirectoryPathRelativeSchema, "dir/sub"), filename: "archive.tar.gz" });
|
|
19
|
-
});
|
|
20
|
-
test("rejects non-string - null", () => {
|
|
21
|
-
expect(() => v.parse(FilePathRelativeSchema, null)).toThrow("file.path.relative.type");
|
|
22
|
-
});
|
|
23
|
-
test("rejects non-string - number", () => {
|
|
24
|
-
expect(() => v.parse(FilePathRelativeSchema, 123)).toThrow("file.path.relative.type");
|
|
25
|
-
});
|
|
26
|
-
test("rejects empty", () => {
|
|
27
|
-
expect(() => v.parse(FilePathRelativeSchema, "")).toThrow("file.path.relative.empty");
|
|
28
|
-
});
|
|
29
|
-
test("rejects leading slash", () => {
|
|
30
|
-
expect(() => v.parse(FilePathRelativeSchema, "/tmp/file.txt")).toThrow("file.path.relative.leading.slash");
|
|
31
|
-
});
|
|
32
|
-
test("rejects backslash", () => {
|
|
33
|
-
expect(() => v.parse(FilePathRelativeSchema, "tmp\\file.txt")).toThrow("file.path.relative.backslash.forbidden");
|
|
34
|
-
});
|
|
35
|
-
test("rejects no directory", () => {
|
|
36
|
-
expect(() => v.parse(FilePathRelativeSchema, "file.txt")).toThrow("file.path.relative.requires.directory");
|
|
37
|
-
});
|
|
38
|
-
test("delegated failures", () => {
|
|
39
|
-
const invalid = [
|
|
40
|
-
"tmp/./file.txt",
|
|
41
|
-
"tmp/../file.txt",
|
|
42
|
-
"tmp/\u0000/sub/file.txt",
|
|
43
|
-
"my dir/file.txt",
|
|
44
|
-
"tmp/file",
|
|
45
|
-
"tmp/file name.txt",
|
|
46
|
-
"tmp/",
|
|
47
|
-
];
|
|
48
|
-
for (const value of invalid) {
|
|
49
|
-
expect(() => v.parse(FilePathRelativeSchema, value)).toThrow();
|
|
50
|
-
}
|
|
51
|
-
});
|
|
52
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { DirectoryPathAbsoluteSchema } from "../src/directory-path-absolute.vo";
|
|
4
|
-
import { DirectoryPathRelativeSchema } from "../src/directory-path-relative.vo";
|
|
5
|
-
import { FilePathAbsolute, FilePathRelative } from "../src/file-path.vo";
|
|
6
|
-
import { Filename } from "../src/filename.vo";
|
|
7
|
-
describe("FilePathRelative", () => {
|
|
8
|
-
test("fromParts", () => {
|
|
9
|
-
expect(FilePathRelative.fromParts("users/avatars", Filename.fromString("avatar.webp")).get()).toEqual("users/avatars/avatar.webp");
|
|
10
|
-
});
|
|
11
|
-
test("fromString", () => {
|
|
12
|
-
expect({
|
|
13
|
-
path: FilePathRelative.fromString("tmp/file.txt").get(),
|
|
14
|
-
directory: FilePathRelative.fromString("tmp/file.txt").getDirectory(),
|
|
15
|
-
filename: FilePathRelative.fromString("tmp/file.txt").getFilename().get(),
|
|
16
|
-
}).toEqual({
|
|
17
|
-
path: "tmp/file.txt",
|
|
18
|
-
directory: v.parse(DirectoryPathRelativeSchema, "tmp"),
|
|
19
|
-
filename: "file.txt",
|
|
20
|
-
});
|
|
21
|
-
});
|
|
22
|
-
test("rejects absolute paths", () => {
|
|
23
|
-
expect(() => FilePathRelative.fromString("/tmp/file.txt")).toThrow();
|
|
24
|
-
});
|
|
25
|
-
test("withFilename", () => {
|
|
26
|
-
expect(FilePathRelative.fromParts("users/avatars", Filename.fromString("avatar.webp"))
|
|
27
|
-
.withFilename(Filename.fromString("avatar.png"))
|
|
28
|
-
.get()).toEqual("users/avatars/avatar.png");
|
|
29
|
-
});
|
|
30
|
-
test("withDirectory", () => {
|
|
31
|
-
expect(FilePathRelative.fromParts("users/avatars", Filename.fromString("avatar.webp"))
|
|
32
|
-
.withDirectory(v.parse(DirectoryPathRelativeSchema, "users/pictures"))
|
|
33
|
-
.get()).toEqual("users/pictures/avatar.webp");
|
|
34
|
-
});
|
|
35
|
-
test("toAbsolute", () => {
|
|
36
|
-
expect(FilePathRelative.fromParts("users/avatars", Filename.fromString("avatar.webp"))
|
|
37
|
-
.toAbsolute(v.parse(DirectoryPathAbsoluteSchema, "/tmp/app"))
|
|
38
|
-
.get()).toEqual("/tmp/app/avatar.webp");
|
|
39
|
-
});
|
|
40
|
-
});
|
|
41
|
-
describe("FilePathAbsolute", () => {
|
|
42
|
-
test("fromParts", () => {
|
|
43
|
-
expect(FilePathAbsolute.fromParts("/tmp/app/users", Filename.fromString("avatar.webp")).get()).toEqual("/tmp/app/users/avatar.webp");
|
|
44
|
-
});
|
|
45
|
-
test("fromString", () => {
|
|
46
|
-
expect({
|
|
47
|
-
path: FilePathAbsolute.fromString("/avatar.webp").get(),
|
|
48
|
-
directory: FilePathAbsolute.fromString("/avatar.webp").getDirectory(),
|
|
49
|
-
filename: FilePathAbsolute.fromString("/avatar.webp").getFilename().get(),
|
|
50
|
-
}).toEqual({
|
|
51
|
-
path: "/avatar.webp",
|
|
52
|
-
directory: v.parse(DirectoryPathAbsoluteSchema, "/"),
|
|
53
|
-
filename: "avatar.webp",
|
|
54
|
-
});
|
|
55
|
-
});
|
|
56
|
-
test("rejects relative paths", () => {
|
|
57
|
-
expect(() => FilePathAbsolute.fromString("var/uploads/avatar.webp")).toThrow();
|
|
58
|
-
});
|
|
59
|
-
test("withFilename", () => {
|
|
60
|
-
expect(FilePathAbsolute.fromParts("/tmp/app/users", Filename.fromString("avatar.webp"))
|
|
61
|
-
.withFilename(Filename.fromString("avatar.png"))
|
|
62
|
-
.get()).toEqual("/tmp/app/users/avatar.png");
|
|
63
|
-
});
|
|
64
|
-
test("withDirectory", () => {
|
|
65
|
-
expect(FilePathAbsolute.fromParts("/tmp/app/users", Filename.fromString("avatar.webp"))
|
|
66
|
-
.withDirectory(v.parse(DirectoryPathAbsoluteSchema, "/var/lib/app/users"))
|
|
67
|
-
.get()).toEqual("/var/lib/app/users/avatar.webp");
|
|
68
|
-
});
|
|
69
|
-
test("toRelative", () => {
|
|
70
|
-
expect(FilePathAbsolute.fromParts("/tmp/app/users", Filename.fromString("avatar.webp"))
|
|
71
|
-
.toRelative(v.parse(DirectoryPathRelativeSchema, "users/avatars"))
|
|
72
|
-
.get()).toEqual("users/avatars/avatar.webp");
|
|
73
|
-
});
|
|
74
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { FilenameAffix } from "../src/filename-affix.vo";
|
|
4
|
-
describe("FilenameAffixSchema", () => {
|
|
5
|
-
test("happy path", () => {
|
|
6
|
-
expect(v.safeParse(FilenameAffix, "-sm").success).toEqual(true);
|
|
7
|
-
expect(v.safeParse(FilenameAffix, "_v2").success).toEqual(true);
|
|
8
|
-
});
|
|
9
|
-
test("rejects prefix", () => {
|
|
10
|
-
expect(() => v.parse(FilenameAffix, "*-sm")).toThrow("affix.bad.chars");
|
|
11
|
-
});
|
|
12
|
-
test("rejects suffix", () => {
|
|
13
|
-
expect(() => v.parse(FilenameAffix, "sm-*")).toThrow("affix.bad.chars");
|
|
14
|
-
});
|
|
15
|
-
test("rejects non-string - number", () => {
|
|
16
|
-
expect(() => v.parse(FilenameAffix, 123)).toThrow("affix.type");
|
|
17
|
-
});
|
|
18
|
-
test("rejects non-string - null", () => {
|
|
19
|
-
expect(() => v.parse(FilenameAffix, null)).toThrow("affix.type");
|
|
20
|
-
});
|
|
21
|
-
test("rejects empty", () => {
|
|
22
|
-
expect(() => v.parse(FilenameAffix, "")).toThrow("affix.empty");
|
|
23
|
-
});
|
|
24
|
-
test("rejects too long", () => {
|
|
25
|
-
expect(() => v.parse(FilenameAffix, "x".repeat(33))).toThrow("affix.too.long");
|
|
26
|
-
});
|
|
27
|
-
test("rejects disallowed characters", () => {
|
|
28
|
-
expect(() => v.parse(FilenameAffix, "/@!")).toThrow("affix.bad.chars");
|
|
29
|
-
});
|
|
30
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { Basename } from "../src/basename.vo";
|
|
4
|
-
import { Extension } from "../src/extension.vo";
|
|
5
|
-
import { FilenameFromString } from "../src/filename-from-string.vo";
|
|
6
|
-
describe("FilenameFromString", () => {
|
|
7
|
-
test("happy path", () => {
|
|
8
|
-
expect(v.parse(FilenameFromString, "avatar.WEBP")).toEqual({
|
|
9
|
-
basename: v.parse(Basename, "avatar"),
|
|
10
|
-
extension: v.parse(Extension, "webp"),
|
|
11
|
-
});
|
|
12
|
-
});
|
|
13
|
-
test("rejects prefix", () => {
|
|
14
|
-
expect(() => v.parse(FilenameFromString, "\navatar.png")).toThrow("filename.from.string.invalid");
|
|
15
|
-
});
|
|
16
|
-
test("rejects suffix", () => {
|
|
17
|
-
expect(() => v.parse(FilenameFromString, "avatar.png\n")).toThrow("filename.from.string.invalid");
|
|
18
|
-
});
|
|
19
|
-
test("rejects non-string - null", () => {
|
|
20
|
-
expect(() => v.parse(FilenameFromString, null)).toThrow("filename.from.string.type");
|
|
21
|
-
});
|
|
22
|
-
test("rejects non-string - number", () => {
|
|
23
|
-
expect(() => v.parse(FilenameFromString, 123)).toThrow("filename.from.string.type");
|
|
24
|
-
});
|
|
25
|
-
test("rejects empty", () => {
|
|
26
|
-
expect(() => v.parse(FilenameFromString, "")).toThrow("filename.from.string.invalid");
|
|
27
|
-
});
|
|
28
|
-
test("rejects missing extension", () => {
|
|
29
|
-
expect(() => v.parse(FilenameFromString, "avatar")).toThrow("filename.from.string.invalid");
|
|
30
|
-
});
|
|
31
|
-
test("rejects missing extension with dot", () => {
|
|
32
|
-
expect(() => v.parse(FilenameFromString, "name.")).toThrow("filename.from.string.invalid");
|
|
33
|
-
});
|
|
34
|
-
test("rejects only an extension", () => {
|
|
35
|
-
expect(() => v.parse(FilenameFromString, ".png")).toThrow("filename.from.string.invalid");
|
|
36
|
-
});
|
|
37
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,93 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { Basename } from "../src/basename.vo";
|
|
4
|
-
import { Extension } from "../src/extension.vo";
|
|
5
|
-
import { Filename } from "../src/filename.vo";
|
|
6
|
-
import { FilenameAffix, FilenameAffixStrategy } from "../src/filename-affix.vo";
|
|
7
|
-
import { FilenameFromStringError } from "../src/filename-from-string.vo";
|
|
8
|
-
describe("Filename", () => {
|
|
9
|
-
test("fromParts", () => {
|
|
10
|
-
expect(Filename.fromParts("report", ".PNG").get()).toEqual("report.png");
|
|
11
|
-
});
|
|
12
|
-
test("fromPartsSafe", () => {
|
|
13
|
-
const basename = v.parse(Basename, "avatar");
|
|
14
|
-
const extension = v.parse(Extension, "webp");
|
|
15
|
-
expect(Filename.fromPartsSafe(basename, extension).get()).toEqual("avatar.webp");
|
|
16
|
-
});
|
|
17
|
-
test("fromString rejects invalid input", () => {
|
|
18
|
-
expect(() => Filename.fromString("avatar")).toThrow(FilenameFromStringError.Invalid);
|
|
19
|
-
expect(() => Filename.fromString(".env")).toThrow(FilenameFromStringError.Invalid);
|
|
20
|
-
expect(() => Filename.fromString("name.")).toThrow(FilenameFromStringError.Invalid);
|
|
21
|
-
});
|
|
22
|
-
test("get", () => {
|
|
23
|
-
expect(Filename.fromParts("user-photo", "jpg").get()).toEqual("user-photo.jpg");
|
|
24
|
-
});
|
|
25
|
-
test("getBasename", () => {
|
|
26
|
-
expect(Filename.fromString("user-photo.jpg").getBasename()).toEqual(v.parse(Basename, "user-photo"));
|
|
27
|
-
});
|
|
28
|
-
test("getExtension", () => {
|
|
29
|
-
expect(Filename.fromString("user-photo.jpg").getExtension()).toEqual(v.parse(Extension, "jpg"));
|
|
30
|
-
});
|
|
31
|
-
test("withExtension", () => {
|
|
32
|
-
const filename = Filename.fromString("avatar.webp");
|
|
33
|
-
const extension = v.parse(Extension, "png");
|
|
34
|
-
const updated = filename.withExtension(extension);
|
|
35
|
-
expect(filename.get()).toEqual("avatar.webp");
|
|
36
|
-
expect(updated.get()).toEqual("avatar.png");
|
|
37
|
-
});
|
|
38
|
-
test("withBasename", () => {
|
|
39
|
-
const filename = Filename.fromString("avatar.webp");
|
|
40
|
-
const basename = v.parse(Basename, "profile_v2");
|
|
41
|
-
const updated = filename.withBasename(basename);
|
|
42
|
-
expect(filename.get()).toEqual("avatar.webp");
|
|
43
|
-
expect(updated.get()).toEqual("profile_v2.webp");
|
|
44
|
-
});
|
|
45
|
-
test("withAffix - suffix", () => {
|
|
46
|
-
expect(Filename.fromString("avatar.webp").withAffix("-sm", FilenameAffixStrategy.suffix).get()).toEqual("avatar-sm.webp");
|
|
47
|
-
});
|
|
48
|
-
test("withSuffix", () => {
|
|
49
|
-
expect(Filename.fromString("avatar.webp").withSuffix("-sm").get()).toEqual("avatar-sm.webp");
|
|
50
|
-
});
|
|
51
|
-
test("withAffix rejects invalid input - suffix", () => {
|
|
52
|
-
expect(() => Filename.fromString("avatar.webp").withAffix("", FilenameAffixStrategy.suffix)).toThrow("affix.empty");
|
|
53
|
-
});
|
|
54
|
-
test("withAffixSafe - suffix", () => {
|
|
55
|
-
const filename = Filename.fromString("avatar.webp");
|
|
56
|
-
const affix = v.parse(FilenameAffix, "-sm");
|
|
57
|
-
expect(filename.withAffixSafe(affix, FilenameAffixStrategy.suffix).get()).toEqual("avatar-sm.webp");
|
|
58
|
-
});
|
|
59
|
-
test("withSuffixSafe", () => {
|
|
60
|
-
const filename = Filename.fromString("avatar.webp");
|
|
61
|
-
const affix = v.parse(FilenameAffix, "-sm");
|
|
62
|
-
expect(filename.withSuffixSafe(affix).get()).toEqual("avatar-sm.webp");
|
|
63
|
-
});
|
|
64
|
-
test("withAffix - prefix", () => {
|
|
65
|
-
expect(Filename.fromString("avatar.webp").withAffix("sm-", FilenameAffixStrategy.prefix).get()).toEqual("sm-avatar.webp");
|
|
66
|
-
});
|
|
67
|
-
test("withPrefix", () => {
|
|
68
|
-
expect(Filename.fromString("avatar.webp").withPrefix("sm-").get()).toEqual("sm-avatar.webp");
|
|
69
|
-
});
|
|
70
|
-
test("withAffix rejects invalid input - prefix", () => {
|
|
71
|
-
expect(() => Filename.fromString("avatar.webp").withAffix("", FilenameAffixStrategy.prefix)).toThrow("affix.empty");
|
|
72
|
-
});
|
|
73
|
-
test("withAffixSafe - prefix", () => {
|
|
74
|
-
const filename = Filename.fromString("avatar.webp");
|
|
75
|
-
const affix = v.parse(FilenameAffix, "sm-");
|
|
76
|
-
expect(filename.withAffixSafe(affix, FilenameAffixStrategy.prefix).get()).toEqual("sm-avatar.webp");
|
|
77
|
-
});
|
|
78
|
-
test("withPrefixSafe", () => {
|
|
79
|
-
const filename = Filename.fromString("avatar.webp");
|
|
80
|
-
const affix = v.parse(FilenameAffix, "sm-");
|
|
81
|
-
expect(filename.withPrefixSafe(affix).get()).toEqual("sm-avatar.webp");
|
|
82
|
-
});
|
|
83
|
-
test("toString", () => {
|
|
84
|
-
const basename = v.parse(Basename, "avatar");
|
|
85
|
-
const extension = v.parse(Extension, "webp");
|
|
86
|
-
expect(Filename.fromPartsSafe(basename, extension).toString()).toEqual("avatar.webp");
|
|
87
|
-
});
|
|
88
|
-
test("toJSON", () => {
|
|
89
|
-
const basename = v.parse(Basename, "avatar");
|
|
90
|
-
const extension = v.parse(Extension, "webp");
|
|
91
|
-
expect(Filename.fromPartsSafe(basename, extension).toJSON()).toEqual("avatar.webp");
|
|
92
|
-
});
|
|
93
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { HeightMillimeters } from "../src/height-milimiters.vo";
|
|
4
|
-
describe("HeightMillimeters", () => {
|
|
5
|
-
test("happy path", () => {
|
|
6
|
-
expect(v.safeParse(HeightMillimeters, 1).success).toEqual(true);
|
|
7
|
-
expect(v.safeParse(HeightMillimeters, 50).success).toEqual(true);
|
|
8
|
-
});
|
|
9
|
-
test("rejects non-number - null", () => {
|
|
10
|
-
expect(() => v.parse(HeightMillimeters, null)).toThrow("height.millimeters.type");
|
|
11
|
-
});
|
|
12
|
-
test("rejects non-number - string", () => {
|
|
13
|
-
expect(() => v.parse(HeightMillimeters, "123")).toThrow("height.millimeters.type");
|
|
14
|
-
});
|
|
15
|
-
test("rejects fractions", () => {
|
|
16
|
-
expect(() => v.parse(HeightMillimeters, 1.5)).toThrow("height.millimeters.type");
|
|
17
|
-
});
|
|
18
|
-
test("rejects negative numbers", () => {
|
|
19
|
-
expect(() => v.parse(HeightMillimeters, -1)).toThrow("height.millimeters.invalid");
|
|
20
|
-
});
|
|
21
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { Height } from "../src/height.vo";
|
|
4
|
-
import { HeightMillimeters } from "../src/height-milimiters.vo";
|
|
5
|
-
import { RoundingDownStrategy } from "../src/rounding-down.strategy";
|
|
6
|
-
import { RoundingUpStrategy } from "../src/rounding-up.strategy";
|
|
7
|
-
describe("Height", () => {
|
|
8
|
-
test("fromCentimeters", () => {
|
|
9
|
-
expect(Height.fromCentimeters(180).toMillimeters()).toEqual(1800);
|
|
10
|
-
expect(Height.fromCentimeters(180.04, new RoundingDownStrategy()).toMillimeters()).toEqual(1800);
|
|
11
|
-
expect(Height.fromCentimeters(180.06, new RoundingUpStrategy()).toMillimeters()).toEqual(1801);
|
|
12
|
-
});
|
|
13
|
-
test("fromMillimeters", () => {
|
|
14
|
-
expect(Height.fromMillimeters(180).toMillimeters()).toEqual(180);
|
|
15
|
-
});
|
|
16
|
-
test("fromMillimetersSafe", () => {
|
|
17
|
-
expect(Height.fromMillimetersSafe(v.parse(HeightMillimeters, 100)).toMillimeters()).toEqual(100);
|
|
18
|
-
});
|
|
19
|
-
test("zero factory", () => {
|
|
20
|
-
expect(Height.zero().toMillimeters()).toEqual(0);
|
|
21
|
-
});
|
|
22
|
-
test("guards invalid inputs", () => {
|
|
23
|
-
expect(() => Height.fromCentimeters(-1)).toThrow("height.millimeters.invalid");
|
|
24
|
-
expect(() => Height.fromMillimeters(Number.NaN)).toThrow("height.millimeters.type");
|
|
25
|
-
expect(() => Height.fromMillimeters(Number.POSITIVE_INFINITY)).toThrow("height.millimeters.type");
|
|
26
|
-
});
|
|
27
|
-
test("toCentimeters", () => {
|
|
28
|
-
const height = Height.fromCentimeters(180);
|
|
29
|
-
expect(height.toCentimeters()).toEqual(180);
|
|
30
|
-
expect(height.toCentimeters()).toEqual(180);
|
|
31
|
-
expect(Height.fromMillimeters(1804).toCentimeters()).toEqual(180.4);
|
|
32
|
-
});
|
|
33
|
-
test("equals", () => {
|
|
34
|
-
const a = Height.fromCentimeters(1800);
|
|
35
|
-
const b = Height.fromCentimeters(180);
|
|
36
|
-
expect(a.equals(a)).toEqual(true);
|
|
37
|
-
expect(a.equals(b)).toEqual(false);
|
|
38
|
-
});
|
|
39
|
-
test("greaterThan", () => {
|
|
40
|
-
const a = Height.fromCentimeters(1800);
|
|
41
|
-
const b = Height.fromCentimeters(180);
|
|
42
|
-
expect(a.greaterThan(a)).toEqual(false);
|
|
43
|
-
expect(a.greaterThan(b)).toEqual(true);
|
|
44
|
-
});
|
|
45
|
-
test("lessThan", () => {
|
|
46
|
-
const a = Height.fromCentimeters(180);
|
|
47
|
-
const b = Height.fromCentimeters(1800);
|
|
48
|
-
expect(a.lessThan(a)).toEqual(false);
|
|
49
|
-
expect(a.lessThan(b)).toEqual(true);
|
|
50
|
-
});
|
|
51
|
-
test("isZero", () => {
|
|
52
|
-
expect(Height.zero().isZero()).toEqual(true);
|
|
53
|
-
expect(Height.fromCentimeters(180).isZero()).toEqual(false);
|
|
54
|
-
});
|
|
55
|
-
test("get", () => {
|
|
56
|
-
expect(Height.fromMillimeters(1804).get()).toEqual(1804);
|
|
57
|
-
});
|
|
58
|
-
test("toString", () => {
|
|
59
|
-
expect(Height.fromMillimeters(1804).toString()).toEqual("1804");
|
|
60
|
-
});
|
|
61
|
-
test("toJSON", () => {
|
|
62
|
-
expect(Height.fromMillimeters(1804).toJSON()).toEqual(1804);
|
|
63
|
-
});
|
|
64
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { HourValue } from "../src/hour-value.vo";
|
|
4
|
-
describe("HourValue", () => {
|
|
5
|
-
test("happy path", () => {
|
|
6
|
-
expect(v.safeParse(HourValue, 0).success).toEqual(true);
|
|
7
|
-
expect(v.safeParse(HourValue, 23).success).toEqual(true);
|
|
8
|
-
});
|
|
9
|
-
test("rejects non-number - null", () => {
|
|
10
|
-
expect(() => v.parse(HourValue, null)).toThrow("hour.value.type");
|
|
11
|
-
});
|
|
12
|
-
test("rejects non-number - string", () => {
|
|
13
|
-
expect(() => v.parse(HourValue, "123")).toThrow("hour.value.type");
|
|
14
|
-
});
|
|
15
|
-
test("rejects fractions", () => {
|
|
16
|
-
expect(() => v.parse(HourValue, 1.5)).toThrow("hour.value.type");
|
|
17
|
-
});
|
|
18
|
-
test("rejects negative numbers", () => {
|
|
19
|
-
expect(() => v.parse(HourValue, -1)).toThrow("hour.value.invalid");
|
|
20
|
-
});
|
|
21
|
-
test("rejects too big", () => {
|
|
22
|
-
expect(() => v.parse(HourValue, 24)).toThrow("hour.value.invalid");
|
|
23
|
-
});
|
|
24
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import * as v from "valibot";
|
|
3
|
-
import { Hour } from "../src/hour.vo";
|
|
4
|
-
import { HourValue } from "../src/hour-value.vo";
|
|
5
|
-
import * as mocks from "./mocks";
|
|
6
|
-
const FIVE = Hour.fromValue(5);
|
|
7
|
-
const THIRTEEN = Hour.fromValue(13);
|
|
8
|
-
describe("Hour", () => {
|
|
9
|
-
test("happy path", () => {
|
|
10
|
-
expect(FIVE.get()).toEqual(v.parse(HourValue, 5));
|
|
11
|
-
});
|
|
12
|
-
test("throws for invalid hour values", () => {
|
|
13
|
-
expect(() => Hour.fromValue(12.5)).toThrow("hour.value.type");
|
|
14
|
-
expect(() => Hour.fromValue(-1)).toThrow("hour.value.invalid");
|
|
15
|
-
expect(() => Hour.fromValue(24)).toThrow("hour.value.invalid");
|
|
16
|
-
});
|
|
17
|
-
test("fromValueSafe", () => {
|
|
18
|
-
expect(Hour.fromValueSafe(v.parse(HourValue, 1)).get()).toEqual(v.parse(HourValue, 1));
|
|
19
|
-
});
|
|
20
|
-
test("fromTimestampValue", () => {
|
|
21
|
-
expect(Hour.fromTimestampValue(mocks.TIME_ZERO.ms).get()).toEqual(v.parse(HourValue, 22));
|
|
22
|
-
});
|
|
23
|
-
test("fromTimestamp", () => {
|
|
24
|
-
expect(Hour.fromTimestamp(mocks.TIME_ZERO).get()).toEqual(v.parse(HourValue, 22));
|
|
25
|
-
});
|
|
26
|
-
test("zero", () => {
|
|
27
|
-
expect(Hour.zero().get()).toEqual(v.parse(HourValue, 0));
|
|
28
|
-
});
|
|
29
|
-
test("max", () => {
|
|
30
|
-
expect(Hour.max().get()).toEqual(v.parse(HourValue, 23));
|
|
31
|
-
});
|
|
32
|
-
test("get", () => {
|
|
33
|
-
expect(FIVE.get()).toEqual(v.parse(HourValue, 5));
|
|
34
|
-
});
|
|
35
|
-
test("equals", () => {
|
|
36
|
-
expect(FIVE.equals(FIVE)).toEqual(true);
|
|
37
|
-
expect(FIVE.equals(THIRTEEN)).toEqual(false);
|
|
38
|
-
});
|
|
39
|
-
test("isAfter", () => {
|
|
40
|
-
expect(THIRTEEN.isAfter(FIVE)).toEqual(true);
|
|
41
|
-
expect(FIVE.isAfter(THIRTEEN)).toEqual(false);
|
|
42
|
-
expect(THIRTEEN.isAfter(THIRTEEN)).toEqual(false);
|
|
43
|
-
});
|
|
44
|
-
test("isBefore", () => {
|
|
45
|
-
expect(FIVE.isBefore(THIRTEEN)).toEqual(true);
|
|
46
|
-
expect(THIRTEEN.isBefore(FIVE)).toEqual(false);
|
|
47
|
-
expect(THIRTEEN.isBefore(THIRTEEN)).toEqual(false);
|
|
48
|
-
});
|
|
49
|
-
test("list", () => {
|
|
50
|
-
const hours = Hour.list();
|
|
51
|
-
expect(hours.length).toEqual(24);
|
|
52
|
-
expect(hours[0].get()).toEqual(v.parse(HourValue, 0));
|
|
53
|
-
expect(hours[23].get()).toEqual(v.parse(HourValue, 23));
|
|
54
|
-
expect(Hour.list()).toEqual(hours);
|
|
55
|
-
});
|
|
56
|
-
test("toString", () => {
|
|
57
|
-
expect(FIVE.toString()).toEqual("5");
|
|
58
|
-
expect(THIRTEEN.toString()).toEqual("13");
|
|
59
|
-
});
|
|
60
|
-
test("toJSON", () => {
|
|
61
|
-
expect(FIVE.toJSON()).toEqual(v.parse(HourValue, 5));
|
|
62
|
-
expect(THIRTEEN.toJSON()).toEqual(13);
|
|
63
|
-
});
|
|
64
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { describe, expect, test } from "bun:test";
|
|
2
|
-
import { IBAN } from "../src/iban.vo";
|
|
3
|
-
import { IbanMask } from "../src/iban-mask.service";
|
|
4
|
-
describe("IbanMask", () => {
|
|
5
|
-
test("works for a correct value with spaces", () => {
|
|
6
|
-
const iban = new IBAN("PL61 1090 1014 0000 0712 1981 2874");
|
|
7
|
-
expect(IbanMask.censor(iban)).toEqual("PL61 **** **** **** **** **** 2874");
|
|
8
|
-
});
|
|
9
|
-
test("works for a correct value without spaces", () => {
|
|
10
|
-
const iban = new IBAN("PL61109010140000071219812874");
|
|
11
|
-
expect(IbanMask.censor(iban)).toEqual("PL61 **** **** **** **** **** 2874");
|
|
12
|
-
});
|
|
13
|
-
});
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|