@bgord/tools 0.11.0 → 0.11.1
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/etags.vo.d.ts +1 -1
- package/dist/etags.vo.js +1 -1
- package/dist/revision.vo.d.ts +1 -2
- package/dist/revision.vo.js +2 -2
- package/package.json +1 -1
- package/readme.md +77 -1
- package/src/etags.vo.ts +1 -1
- package/src/revision.vo.ts +2 -2
package/dist/etags.vo.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
|
|
2
|
+
declare const RevisionValue: z.ZodNumber;
|
|
3
3
|
type RevisionValueType = z.infer<typeof RevisionValue>;
|
|
4
4
|
type ETagValueType = string;
|
|
5
5
|
export declare class ETag {
|
package/dist/etags.vo.js
CHANGED
package/dist/revision.vo.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
2
|
import { ETag, WeakETag } from "./etags.vo";
|
|
3
|
-
declare const RevisionValue: z.
|
|
3
|
+
export declare const RevisionValue: z.ZodNumber;
|
|
4
4
|
export type RevisionValueType = z.infer<typeof RevisionValue>;
|
|
5
5
|
export declare class Revision {
|
|
6
6
|
readonly value: RevisionValueType;
|
|
@@ -18,4 +18,3 @@ export declare class RevisionMismatchError extends Error {
|
|
|
18
18
|
export declare class InvalidRevisionError extends Error {
|
|
19
19
|
constructor();
|
|
20
20
|
}
|
|
21
|
-
export {};
|
package/dist/revision.vo.js
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from "zod/v4";
|
|
2
|
-
const RevisionValue = z.number().int().min(0)
|
|
2
|
+
export const RevisionValue = z.number().int().min(0);
|
|
3
3
|
export class Revision {
|
|
4
4
|
value;
|
|
5
|
-
static initial =
|
|
5
|
+
static initial = 0;
|
|
6
6
|
constructor(value) {
|
|
7
7
|
const result = RevisionValue.safeParse(value);
|
|
8
8
|
if (!result.success)
|
package/package.json
CHANGED
package/readme.md
CHANGED
|
@@ -1 +1,77 @@
|
|
|
1
|
-
#
|
|
1
|
+
# bgord-tools
|
|
2
|
+
|
|
3
|
+
## Configuration:
|
|
4
|
+
|
|
5
|
+
Clone the repository
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
git clone git@github.com:bgord/journal.git --recurse-submodules
|
|
9
|
+
```
|
|
10
|
+
|
|
11
|
+
Install packages
|
|
12
|
+
|
|
13
|
+
```
|
|
14
|
+
bun i
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Run the tests
|
|
18
|
+
|
|
19
|
+
```
|
|
20
|
+
./bgord-scripts/test-run.sh
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Files:
|
|
24
|
+
|
|
25
|
+
```
|
|
26
|
+
src/
|
|
27
|
+
├── api-key.vo.ts
|
|
28
|
+
├── build-version.vo.ts
|
|
29
|
+
├── clock.vo.ts
|
|
30
|
+
├── date-calculator.service.ts
|
|
31
|
+
├── date-formatter.service.ts
|
|
32
|
+
├── dates-of-the-week.vo.ts
|
|
33
|
+
├── dll.service.ts
|
|
34
|
+
├── email-mask.service.ts
|
|
35
|
+
├── etags.vo.ts
|
|
36
|
+
├── feature-flag.vo.ts
|
|
37
|
+
├── filter.vo.ts
|
|
38
|
+
├── hour.vo.ts
|
|
39
|
+
├── iban-mask.service.ts
|
|
40
|
+
├── iban.vo.ts
|
|
41
|
+
├── image.vo.ts
|
|
42
|
+
├── language.vo.ts
|
|
43
|
+
├── leap-year-checker.service.ts
|
|
44
|
+
├── mean.service.ts
|
|
45
|
+
├── mime-types.vo.ts
|
|
46
|
+
├── mime.vo.ts
|
|
47
|
+
├── min-max-scaler.service.ts
|
|
48
|
+
├── minute.vo.ts
|
|
49
|
+
├── money.vo.ts
|
|
50
|
+
├── noop.service.ts
|
|
51
|
+
├── outlier-detector.service.ts
|
|
52
|
+
├── package-version.vo.ts
|
|
53
|
+
├── pagination.service.ts
|
|
54
|
+
├── percentage.service.ts
|
|
55
|
+
├── population-standard-deviation.service.ts
|
|
56
|
+
├── random.service.ts
|
|
57
|
+
├── rate-limiter.service.ts
|
|
58
|
+
├── relative-date.vo.ts
|
|
59
|
+
├── reordering.service.ts
|
|
60
|
+
├── revision.vo.ts
|
|
61
|
+
├── rounding.service.ts
|
|
62
|
+
├── simple-linear-regression.service.ts
|
|
63
|
+
├── size.vo.ts
|
|
64
|
+
├── stepper.service.ts
|
|
65
|
+
├── stopwatch.service.ts
|
|
66
|
+
├── streak-calculator.service.ts
|
|
67
|
+
├── sum.service.ts
|
|
68
|
+
├── thousands-separator.service.ts
|
|
69
|
+
├── time-zone-offset-value.vo.ts
|
|
70
|
+
├── time.service.ts
|
|
71
|
+
├── timestamp.vo.ts
|
|
72
|
+
├── timezone.vo.ts
|
|
73
|
+
├── ts-utils.ts
|
|
74
|
+
├── visually-unambiguous-characters-generator.service.ts
|
|
75
|
+
└── z-score.service.ts
|
|
76
|
+
```
|
|
77
|
+
|
package/src/etags.vo.ts
CHANGED
package/src/revision.vo.ts
CHANGED
|
@@ -2,14 +2,14 @@ import { z } from "zod/v4";
|
|
|
2
2
|
|
|
3
3
|
import { ETag, WeakETag } from "./etags.vo";
|
|
4
4
|
|
|
5
|
-
const RevisionValue = z.number().int().min(0)
|
|
5
|
+
export const RevisionValue = z.number().int().min(0);
|
|
6
6
|
|
|
7
7
|
export type RevisionValueType = z.infer<typeof RevisionValue>;
|
|
8
8
|
|
|
9
9
|
export class Revision {
|
|
10
10
|
readonly value: RevisionValueType;
|
|
11
11
|
|
|
12
|
-
static initial: RevisionValueType =
|
|
12
|
+
static initial: RevisionValueType = 0;
|
|
13
13
|
|
|
14
14
|
constructor(value: unknown) {
|
|
15
15
|
const result = RevisionValue.safeParse(value);
|