@schafevormfenster/rest-commons 0.1.5 → 0.1.6
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/.turbo/turbo-check.log +174 -0
- package/package.json +16 -16
|
@@ -0,0 +1,174 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
> @schafevormfenster/rest-commons@0.1.6 check /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
|
|
4
|
+
> pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
> @schafevormfenster/rest-commons@0.1.6 typecheck /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
|
|
8
|
+
> tsc --noEmit
|
|
9
|
+
|
|
10
|
+
|
|
11
|
+
> @schafevormfenster/rest-commons@0.1.6 lint /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
|
|
12
|
+
> eslint
|
|
13
|
+
|
|
14
|
+
|
|
15
|
+
> @schafevormfenster/rest-commons@0.1.6 test /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
|
|
16
|
+
> TZ=UTC vitest run
|
|
17
|
+
|
|
18
|
+
[?25l
|
|
19
|
+
[1m[46m RUN [49m[22m [36mv4.0.16 [39m[90m/Users/jan-henrik.hempel/Projects/commons/packages/rest-commons[39m
|
|
20
|
+
|
|
21
|
+
[?2026h
|
|
22
|
+
[1m[33m ❯ [39m[22msrc/helpers/correlation/get-header.test.ts[2m [queued][22m
|
|
23
|
+
|
|
24
|
+
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (45)[39m
|
|
25
|
+
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
26
|
+
[2m Start at [22m12:47:15
|
|
27
|
+
[2m Duration [22m102ms
|
|
28
|
+
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/helpers/correlation/get-header.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
29
|
+
[32m✓[39m src/time/since-parameter.schema.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
30
|
+
[32m✓[39m src/helpers/correlation/get-correlation-id.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
31
|
+
|
|
32
|
+
[1m[33m ❯ [39m[22msrc/helpers/correlation/get-correlation-id.test.ts[2m 11/11[22m
|
|
33
|
+
[1m[33m ❯ [39m[22msrc/helpers/correlation/get-header.test.ts[2m 15/15[22m
|
|
34
|
+
[1m[33m ❯ [39m[22msrc/normalization/normalize-list.test.ts[2m [queued][22m
|
|
35
|
+
[1m[33m ❯ [39m[22msrc/time/bounded-time.schema.test.ts[2m [queued][22m
|
|
36
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time-parser.test.ts[2m [queued][22m
|
|
37
|
+
[1m[33m ❯ [39m[22msrc/time/since-parameter.schema.test.ts[2m 6/6[22m
|
|
38
|
+
[1m[33m ❯ [39m[22msrc/time/time-helpers.test.ts[2m 0/42[22m
|
|
39
|
+
[1m[33m ❯ [39m[22msrc/time/time.schema.test.ts[2m [queued][22m
|
|
40
|
+
[1m[33m ❯ [39m[22msrc/time/timezone-independence.test.ts[2m [queued][22m
|
|
41
|
+
|
|
42
|
+
[2m Test Files [22m[1m[32m3 passed[39m[22m[90m (45)[39m
|
|
43
|
+
[2m Tests [22m[1m[32m32 passed[39m[22m[90m (74)[39m
|
|
44
|
+
[2m Start at [22m12:47:15
|
|
45
|
+
[2m Duration [22m202ms
|
|
46
|
+
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/time/time-helpers.test.ts [2m([22m[2m42 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
47
|
+
[32m✓[39m src/time/bounded-time.schema.test.ts [2m([22m[2m33 tests[22m[2m)[22m[32m 11[2mms[22m[39m
|
|
48
|
+
[32m✓[39m src/time/flexible-time-parser.test.ts [2m([22m[2m63 tests[22m[2m)[22m[32m 19[2mms[22m[39m
|
|
49
|
+
[32m✓[39m src/time/time.schema.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m 18[2mms[22m[39m
|
|
50
|
+
[32m✓[39m src/time/timezone-independence.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
51
|
+
|
|
52
|
+
[1m[33m ❯ [39m[22msrc/normalization/normalize-list.test.ts[2m [queued][22m
|
|
53
|
+
[1m[33m ❯ [39m[22msrc/time/boundary-enforcement.test.ts[2m [queued][22m
|
|
54
|
+
[1m[33m ❯ [39m[22msrc/time/bounded-time.schema.test.ts[2m 33/33[22m
|
|
55
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time-parser.test.ts[2m 63/63[22m
|
|
56
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time.schema.test.ts[2m [queued][22m
|
|
57
|
+
[1m[33m ❯ [39m[22msrc/time/parse-relative-time.test.ts[2m [queued][22m
|
|
58
|
+
[1m[33m ❯ [39m[22msrc/time/time-schemas.test.ts[2m [queued][22m
|
|
59
|
+
[1m[33m ❯ [39m[22msrc/time/time.schema.test.ts[2m 26/26[22m
|
|
60
|
+
[1m[33m ❯ [39m[22msrc/time/timezone-independence.test.ts[2m 13/13[22m
|
|
61
|
+
|
|
62
|
+
[2m Test Files [22m[1m[32m8 passed[39m[22m[90m (45)[39m
|
|
63
|
+
[2m Tests [22m[1m[32m209 passed[39m[22m[90m (209)[39m
|
|
64
|
+
[2m Start at [22m12:47:15
|
|
65
|
+
[2m Duration [22m302ms
|
|
66
|
+
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/time/iso8601.types.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
67
|
+
[32m✓[39m src/time/time-schemas.test.ts [2m([22m[2m24 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
68
|
+
[32m✓[39m src/time/flexible-time.schema.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
69
|
+
{"level":40,"time":1769518036107,"pid":42817,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"testField","originalValue":"2024-01-01T12:00:00.000Z","clampedValue":"2024-01-08T12:00:00.000Z","boundary":"minimum (-1w)","msg":"Calendar update query testField clamped to minimum boundary"}
|
|
70
|
+
{"level":40,"time":1769518036108,"pid":42817,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"testField","originalValue":"2020-01-01T12:00:00.000Z","clampedValue":"2024-01-08T12:00:00.000Z","boundary":"minimum (-1w)","msg":"Calendar update query testField clamped to minimum boundary"}
|
|
71
|
+
{"level":40,"time":1769518036108,"pid":42817,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"testField","originalValue":"2025-02-15T12:00:00.000Z","clampedValue":"2025-01-15T12:00:00.000Z","boundary":"maximum (+12m)","msg":"Calendar update query testField clamped to maximum boundary"}
|
|
72
|
+
{"level":40,"time":1769518036108,"pid":42817,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"testField","originalValue":"2030-01-01T12:00:00.000Z","clampedValue":"2025-01-15T12:00:00.000Z","boundary":"maximum (+12m)","msg":"Calendar update query testField clamped to maximum boundary"}
|
|
73
|
+
{"level":40,"time":1769518036109,"pid":42817,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"testField","originalValue":"2024-01-10T12:00:00.000Z","clampedValue":"2026-01-20T12:47:16.108Z","boundary":"minimum (-1w)","msg":"Calendar update query testField clamped to minimum boundary"}
|
|
74
|
+
{"level":40,"time":1769518036109,"pid":42817,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"customFieldName","originalValue":"2024-01-01T12:00:00.000Z","clampedValue":"2024-01-08T12:00:00.000Z","boundary":"minimum (-1w)","msg":"Calendar update query customFieldName clamped to minimum boundary"}
|
|
75
|
+
[32m✓[39m src/time/boundary-enforcement.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
76
|
+
{"level":50,"time":1722007200000,"pid":42819,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.relative-time-parser","error":{"message":"{\"relativeTime\":\"invalid\",\"error\":\"Invalid relative time format: invalid\"}","name":"ObjectError"},"msg":"Invalid relative time format: invalid"}
|
|
77
|
+
{"level":50,"time":1722007200000,"pid":42819,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.relative-time-parser","error":{"message":"{\"relativeTime\":\"1x\",\"error\":\"Invalid relative time format: 1x\"}","name":"ObjectError"},"msg":"Invalid relative time format: 1x"}
|
|
78
|
+
{"level":50,"time":1722007200000,"pid":42819,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.relative-time-parser","error":{"message":"{\"relativeTime\":\"\",\"error\":\"Invalid relative time format: \"}","name":"ObjectError"},"msg":"Invalid relative time format: "}
|
|
79
|
+
[32m✓[39m src/time/parse-relative-time.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
80
|
+
[32m✓[39m src/primitives/longitude.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
81
|
+
[32m✓[39m src/primitives/latitude.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
82
|
+
{"level":40,"time":1769518036133,"pid":42780,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"security.sanitizeTag","original":" banana ","sanitized":"banana","reason":"tag-sanitized","msg":"Tag input sanitized"}
|
|
83
|
+
{"level":40,"time":1769518036144,"pid":42780,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"security.sanitizeTag","original":" apple ","sanitized":"apple","reason":"tag-sanitized","msg":"Tag input sanitized"}
|
|
84
|
+
[32m✓[39m src/normalization/normalize-list.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 13[2mms[22m[39m
|
|
85
|
+
[32m✓[39m src/primitives/uuid.schema.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
86
|
+
|
|
87
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/health.schema.test.ts[2m [queued][22m
|
|
88
|
+
[1m[33m ❯ [39m[22msrc/normalization/normalize-list.test.ts[2m 4/4[22m
|
|
89
|
+
[1m[33m ❯ [39m[22msrc/primitives/latitude.schema.test.ts[2m 8/8[22m
|
|
90
|
+
[1m[33m ❯ [39m[22msrc/primitives/longitude.schema.test.ts[2m 8/8[22m
|
|
91
|
+
[1m[33m ❯ [39m[22msrc/primitives/uuid.schema.test.ts[2m 5/5[22m
|
|
92
|
+
[1m[33m ❯ [39m[22msrc/time/boundary-enforcement.test.ts[2m 12/12[22m
|
|
93
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time.schema.test.ts[2m 36/36[22m
|
|
94
|
+
[1m[33m ❯ [39m[22msrc/time/parse-relative-time.test.ts[2m 6/6[22m
|
|
95
|
+
[1m[33m ❯ [39m[22msrc/time/time-schemas.test.ts[2m 24/24[22m
|
|
96
|
+
|
|
97
|
+
[2m Test Files [22m[1m[32m17 passed[39m[22m[90m (45)[39m
|
|
98
|
+
[2m Tests [22m[1m[32m329 passed[39m[22m[90m (329)[39m
|
|
99
|
+
[2m Start at [22m12:47:15
|
|
100
|
+
[2m Duration [22m402ms
|
|
101
|
+
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/primitives/geoname-id.schema.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
102
|
+
[32m✓[39m src/api-schemas/result.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
103
|
+
[32m✓[39m src/api-schemas/health.schema.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
104
|
+
[32m✓[39m src/helpers/eventify-constants.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
105
|
+
[32m✓[39m src/primitives/international-zip.schema.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
106
|
+
{"level":50,"time":1769518036260,"pid":42825,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.parameter-validation","error":{"message":"{\"parameterName\":\"location\",\"suspiciousPatterns\":[\"html.script_tag\"],\"error\":\"Parameter 'location' contains suspicious patterns\"}","name":"ObjectError"},"msg":"Parameter 'location' contains suspicious patterns: html.script_tag"}
|
|
107
|
+
[32m✓[39m src/primitives/location.schema.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
108
|
+
{"level":50,"time":1769518036270,"pid":42823,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.parameter-validation","error":{"message":"{\"parameterName\":\"slug\",\"suspiciousPatterns\":[\"html.script_tag\"],\"error\":\"Parameter 'slug' contains suspicious patterns\"}","name":"ObjectError"},"msg":"Parameter 'slug' contains suspicious patterns: html.script_tag"}
|
|
109
|
+
[32m✓[39m src/primitives/slug.schema.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
110
|
+
{"level":50,"time":1769518036275,"pid":42830,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.parameter-validation","error":{"message":"{\"parameterName\":\"location\",\"suspiciousPatterns\":[\"html.script_tag\"],\"error\":\"Parameter 'location' contains suspicious patterns\"}","name":"ObjectError"},"msg":"Parameter 'location' contains suspicious patterns: html.script_tag"}
|
|
111
|
+
{"level":50,"time":1769518036275,"pid":42830,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.parameter-validation","error":{"message":"{\"parameterName\":\"location\",\"suspiciousPatterns\":[\"sql.drop_table\"],\"error\":\"Parameter 'location' contains suspicious patterns\"}","name":"ObjectError"},"msg":"Parameter 'location' contains suspicious patterns: sql.drop_table"}
|
|
112
|
+
{"level":50,"time":1769518036275,"pid":42830,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.parameter-validation","error":{"message":"{\"parameterName\":\"slug\",\"suspiciousPatterns\":[\"url.embedded\"],\"error\":\"Parameter 'slug' contains suspicious patterns\"}","name":"ObjectError"},"msg":"Parameter 'slug' contains suspicious patterns: url.embedded"}
|
|
113
|
+
{"level":50,"time":1769518036275,"pid":42830,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"rest.helpers.parameter-validation","error":{"message":"{\"parameterName\":\"id\",\"suspiciousPatterns\":[\"prompt.injection.language\"],\"error\":\"Parameter 'id' contains suspicious patterns\"}","name":"ObjectError"},"msg":"Parameter 'id' contains suspicious patterns: prompt.injection.language"}
|
|
114
|
+
[32m✓[39m src/helpers/parameter-validation.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
115
|
+
[32m✓[39m src/api-schemas/results.schema.test.ts [2m([22m[2m1 test[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
116
|
+
|
|
117
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/health.schema.test.ts[2m 7/7[22m
|
|
118
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/result.schema.test.ts[2m 2/2[22m
|
|
119
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/results.schema.test.ts[2m 1/1[22m
|
|
120
|
+
[1m[33m ❯ [39m[22msrc/helpers/eventify-constants.test.ts[2m 5/5[22m
|
|
121
|
+
[1m[33m ❯ [39m[22msrc/helpers/mime-types/detect-image-mime-type.test.ts[2m [queued][22m
|
|
122
|
+
[1m[33m ❯ [39m[22msrc/helpers/parameter-validation.test.ts[2m 5/5[22m
|
|
123
|
+
[1m[33m ❯ [39m[22msrc/primitives/international-zip.schema.test.ts[2m 29/29[22m
|
|
124
|
+
[1m[33m ❯ [39m[22msrc/primitives/location.schema.test.ts[2m 3/3[22m
|
|
125
|
+
[1m[33m ❯ [39m[22msrc/primitives/slug.schema.test.ts[2m 15/15[22m
|
|
126
|
+
|
|
127
|
+
[2m Test Files [22m[1m[32m26 passed[39m[22m[90m (45)[39m
|
|
128
|
+
[2m Tests [22m[1m[32m403 passed[39m[22m[90m (403)[39m
|
|
129
|
+
[2m Start at [22m12:47:15
|
|
130
|
+
[2m Duration [22m602ms
|
|
131
|
+
[?2026l[?2026h[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/primitives/coordinate-precision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
132
|
+
[32m✓[39m src/helpers/mime-types/detect-image-mime-type.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
133
|
+
[32m✓[39m src/api-schemas/error.schema.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
134
|
+
[32m✓[39m src/time/timezone.types.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
135
|
+
[32m✓[39m src/primitives/geo-point.schema.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
136
|
+
[32m✓[39m src/normalization/normalize-location.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
137
|
+
[32m✓[39m src/api-schemas/okay.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
138
|
+
[32m✓[39m src/helpers/eventify-constants.types.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
139
|
+
[32m✓[39m src/helpers/hash-binary.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
140
|
+
|
|
141
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/error.schema.test.ts[2m 3/3[22m
|
|
142
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/okay.schema.test.ts[2m 2/2[22m
|
|
143
|
+
[1m[33m ❯ [39m[22msrc/helpers/eventify-constants.types.test.ts[2m 5/5[22m
|
|
144
|
+
[1m[33m ❯ [39m[22msrc/helpers/hash-binary.test.ts[2m 7/7[22m
|
|
145
|
+
[1m[33m ❯ [39m[22msrc/helpers/mime-types/detect-image-mime-type.test.ts[2m 11/11[22m
|
|
146
|
+
[1m[33m ❯ [39m[22msrc/normalization/normalize-location.test.ts[2m 13/13[22m
|
|
147
|
+
[1m[33m ❯ [39m[22msrc/primitives/geo-point.schema.test.ts[2m 7/7[22m
|
|
148
|
+
[1m[33m ❯ [39m[22msrc/primitives/wikidata-id.schema.test.ts[2m [queued][22m
|
|
149
|
+
[1m[33m ❯ [39m[22msrc/time/timezone.types.test.ts[2m 4/4[22m
|
|
150
|
+
|
|
151
|
+
[2m Test Files [22m[1m[32m35 passed[39m[22m[90m (45)[39m
|
|
152
|
+
[2m Tests [22m[1m[32m461 passed[39m[22m[90m (461)[39m
|
|
153
|
+
[2m Start at [22m12:47:15
|
|
154
|
+
[2m Duration [22m703ms
|
|
155
|
+
[?2026l[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K[1A[K [32m✓[39m src/helpers/detect-suspicious-patterns.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
156
|
+
[32m✓[39m src/helpers/slugify.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
157
|
+
[32m✓[39m src/primitives/wikidata-id.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
158
|
+
[32m✓[39m src/helpers/mime-types/detect-zip-mime-type.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
159
|
+
[32m✓[39m src/helpers/mime-types/detect-pdf-mime-type.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
160
|
+
[32m✓[39m src/primitives/numeric-id.schema.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
161
|
+
[32m✓[39m src/helpers/mime-types/detect-ole-mime-type.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
162
|
+
[32m✓[39m src/helpers/detect-mime-type.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
163
|
+
[32m✓[39m src/time/relative-time.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
164
|
+
[32m✓[39m src/time/is-relative-time.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
165
|
+
|
|
166
|
+
[2m Test Files [22m [1m[32m45 passed[39m[22m[90m (45)[39m
|
|
167
|
+
[2m Tests [22m [1m[32m534 passed[39m[22m[90m (534)[39m
|
|
168
|
+
[2m Start at [22m 12:47:15
|
|
169
|
+
[2m Duration [22m 821ms[2m (transform 1.13s, setup 0ms, import 1.92s, tests 240ms, environment 3ms)[22m
|
|
170
|
+
|
|
171
|
+
[?25h
|
|
172
|
+
> @schafevormfenster/rest-commons@0.1.6 build /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
|
|
173
|
+
> tsc
|
|
174
|
+
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@schafevormfenster/rest-commons",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"description": "Centralized authority for REST standards and schemas - XSD schemas, parsing functions, and coding instructions",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -16,32 +16,32 @@
|
|
|
16
16
|
"bin": {
|
|
17
17
|
"setup-rest-commons": "./bin/setup.js"
|
|
18
18
|
},
|
|
19
|
-
"scripts": {
|
|
20
|
-
"typecheck": "tsc --noEmit",
|
|
21
|
-
"lint": "eslint",
|
|
22
|
-
"test": "TZ=UTC vitest run",
|
|
23
|
-
"test:watch": "TZ=UTC vitest",
|
|
24
|
-
"build": "tsc",
|
|
25
|
-
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
|
|
26
|
-
"release": "pnpm run build && bash -c 'cp ../../.npmrc .npmrc && npm publish --access public && rm .npmrc'"
|
|
27
|
-
},
|
|
28
19
|
"engines": {
|
|
29
20
|
"node": ">=24"
|
|
30
21
|
},
|
|
31
22
|
"devDependencies": {
|
|
32
|
-
"@schafevormfenster/eslint-config": "workspace:*",
|
|
33
23
|
"@types/node": "^22.19.3",
|
|
34
24
|
"@typescript-eslint/eslint-plugin": "^8.51.0",
|
|
35
25
|
"@typescript-eslint/parser": "^8.51.0",
|
|
36
26
|
"eslint": "^9.39.2",
|
|
37
27
|
"typescript": "^5.9.3",
|
|
38
|
-
"vitest": "^4.0.16"
|
|
28
|
+
"vitest": "^4.0.16",
|
|
29
|
+
"@schafevormfenster/eslint-config": "0.0.8"
|
|
39
30
|
},
|
|
40
31
|
"dependencies": {
|
|
41
|
-
"@schafevormfenster/logging": "workspace:*",
|
|
42
|
-
"@schafevormfenster/security": "workspace:*",
|
|
43
32
|
"dayjs": "^1.11.19",
|
|
44
33
|
"slugify": "^1.6.6",
|
|
45
|
-
"zod": "^3.25.76"
|
|
34
|
+
"zod": "^3.25.76",
|
|
35
|
+
"@schafevormfenster/logging": "0.1.7",
|
|
36
|
+
"@schafevormfenster/security": "0.1.4"
|
|
37
|
+
},
|
|
38
|
+
"scripts": {
|
|
39
|
+
"typecheck": "tsc --noEmit",
|
|
40
|
+
"lint": "eslint",
|
|
41
|
+
"test": "TZ=UTC vitest run",
|
|
42
|
+
"test:watch": "TZ=UTC vitest",
|
|
43
|
+
"build": "tsc",
|
|
44
|
+
"check": "pnpm run typecheck && pnpm run lint && pnpm run test && pnpm run build",
|
|
45
|
+
"release": "pnpm run build && ../../scripts/smart-publish.sh"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
}
|