@schafevormfenster/rest-commons 0.1.10 → 0.1.11
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-build.log +1 -1
- package/.turbo/turbo-check.log +127 -125
- package/.turbo/turbo-lint.log +4 -0
- package/dist/api-schemas/health.schema.js +2 -2
- package/dist/api-schemas/paginated-results.schema.js +1 -1
- package/dist/api-schemas/partial-results.schema.js +1 -1
- package/dist/api-schemas/result.schema.js +1 -1
- package/dist/api-schemas/results.schema.js +1 -1
- package/dist/helpers/correlation/get-correlation-id.js +1 -1
- package/dist/helpers/detect-mime-type.js +4 -4
- package/dist/helpers/parameter-validation.js +1 -1
- package/dist/helpers/response-headers/build-api-unauthorized-headers.js +1 -1
- package/dist/helpers/response-headers/resolve-environment.d.ts +1 -1
- package/dist/helpers/response-headers/resolve-environment.d.ts.map +1 -1
- package/dist/index.d.ts +33 -33
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +33 -33
- package/dist/primitives/geo-point.schema.js +2 -2
- package/dist/primitives/latitude.schema.js +1 -1
- package/dist/primitives/location.schema.js +1 -1
- package/dist/primitives/longitude.schema.js +1 -1
- package/dist/primitives/slug.schema.js +2 -2
- package/dist/time/bounded-time.schema.d.ts.map +1 -1
- package/dist/time/bounded-time.schema.js +19 -15
- package/dist/time/flexible-time-parser.d.ts +1 -1
- package/dist/time/flexible-time-parser.d.ts.map +1 -1
- package/dist/time/flexible-time-parser.js +2 -2
- package/dist/time/flexible-time.schema.js +3 -3
- package/dist/time/relative-time.schema.js +1 -1
- package/dist/time/time-helpers.js +2 -2
- package/dist/time/time-schemas.js +1 -1
- package/package.json +4 -4
- package/src/api-schemas/health.schema.ts +2 -2
- package/src/api-schemas/paginated-results.schema.ts +1 -1
- package/src/api-schemas/partial-results.schema.ts +1 -1
- package/src/api-schemas/result.schema.ts +1 -1
- package/src/api-schemas/results.schema.ts +1 -1
- package/src/helpers/correlation/get-correlation-id.ts +1 -1
- package/src/helpers/detect-mime-type.ts +4 -4
- package/src/helpers/parameter-validation.ts +1 -1
- package/src/helpers/process-eventify-request.ts +2 -2
- package/src/helpers/response-headers/build-api-unauthorized-headers.ts +1 -1
- package/src/helpers/response-headers/resolve-environment.ts +1 -1
- package/src/index.ts +33 -33
- package/src/primitives/geo-point.schema.ts +2 -2
- package/src/primitives/latitude.schema.ts +1 -1
- package/src/primitives/location.schema.ts +1 -1
- package/src/primitives/longitude.schema.ts +1 -1
- package/src/primitives/slug.schema.ts +2 -2
- package/src/time/bounded-time.schema.ts +19 -15
- package/src/time/flexible-time-parser.ts +2 -2
- package/src/time/flexible-time.schema.ts +3 -3
- package/src/time/relative-time.schema.ts +1 -1
- package/src/time/time-helpers.ts +2 -2
- package/src/time/time-schemas.ts +1 -1
package/.turbo/turbo-build.log
CHANGED
package/.turbo/turbo-check.log
CHANGED
|
@@ -19,166 +19,168 @@
|
|
|
19
19
|
[1m[46m RUN [49m[22m [36mv4.0.18 [39m[90m/Users/jan-henrik.hempel/Projects/commons/packages/rest-commons[39m
|
|
20
20
|
|
|
21
21
|
[?2026h
|
|
22
|
-
[1m[33m ❯ [39m[22msrc/helpers/
|
|
22
|
+
[1m[33m ❯ [39m[22msrc/helpers/parameter-validation.test.ts[2m [queued][22m
|
|
23
23
|
|
|
24
24
|
[2m Test Files [22m[1m[32m0 passed[39m[22m[90m (45)[39m
|
|
25
25
|
[2m Tests [22m[1m[32m0 passed[39m[22m[90m (0)[39m
|
|
26
|
-
[2m Start at [
|
|
27
|
-
[2m Duration [
|
|
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
|
|
29
|
-
[32m✓[39m src/
|
|
30
|
-
[32m✓[39m src/
|
|
31
|
-
|
|
32
|
-
[32m✓[39m src/
|
|
26
|
+
[2m Start at [22m05:41:42
|
|
27
|
+
[2m Duration [22m101ms
|
|
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 11[2mms[22m[39m
|
|
29
|
+
[32m✓[39m src/helpers/correlation/get-correlation-id.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
30
|
+
[32m✓[39m src/primitives/international-zip.schema.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
31
|
+
{"level":50,"time":1777268502565,"pid":20367,"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"}
|
|
32
|
+
[32m✓[39m src/helpers/parameter-validation.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
33
|
+
{"level":50,"time":1777268502566,"pid":20367,"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"}
|
|
34
|
+
{"level":50,"time":1777268502566,"pid":20367,"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"}
|
|
35
|
+
{"level":50,"time":1777268502566,"pid":20367,"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"}
|
|
33
36
|
|
|
34
37
|
[1m[33m ❯ [39m[22msrc/helpers/correlation/get-correlation-id.test.ts[2m 11/11[22m
|
|
35
38
|
[1m[33m ❯ [39m[22msrc/helpers/correlation/get-header.test.ts[2m 15/15[22m
|
|
39
|
+
[1m[33m ❯ [39m[22msrc/helpers/parameter-validation.test.ts[2m 5/5[22m
|
|
36
40
|
[1m[33m ❯ [39m[22msrc/normalization/normalize-list.test.ts[2m [queued][22m
|
|
37
|
-
[1m[33m ❯ [39m[22msrc/
|
|
38
|
-
[1m[33m ❯ [39m[22msrc/time/
|
|
39
|
-
[1m[33m ❯ [39m[22msrc/time/
|
|
40
|
-
[1m[33m ❯ [39m[22msrc/time/time-schemas.test.ts[2m 24/24[22m
|
|
41
|
+
[1m[33m ❯ [39m[22msrc/primitives/international-zip.schema.test.ts[2m 29/29[22m
|
|
42
|
+
[1m[33m ❯ [39m[22msrc/time/bounded-time.schema.test.ts[2m 0/33[22m
|
|
43
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time-parser.test.ts[2m 1/63[22m
|
|
41
44
|
[1m[33m ❯ [39m[22msrc/time/time.schema.test.ts[2m 0/26[22m
|
|
42
45
|
[1m[33m ❯ [39m[22msrc/time/timezone-independence.test.ts[2m [queued][22m
|
|
43
46
|
|
|
44
|
-
[2m Test Files [22m[1m[
|
|
45
|
-
[2m Tests [22m[1m[
|
|
46
|
-
[2m Start at [
|
|
47
|
-
[2m Duration [
|
|
48
|
-
[?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/
|
|
49
|
-
[32m✓[39m src/time/time.schema.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m
|
|
50
|
-
[32m✓[39m src/time/
|
|
51
|
-
[32m✓[39m src/time/
|
|
52
|
-
|
|
53
|
-
{"level":50,"time":1722007200000,"pid":48199,"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"}
|
|
54
|
-
{"level":50,"time":1722007200000,"pid":48199,"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: "}
|
|
55
|
-
[32m✓[39m src/time/parse-relative-time.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
56
|
-
[32m✓[39m src/primitives/latitude.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
47
|
+
[2m Test Files [22m[1m[32m4 passed[39m[22m[90m (45)[39m
|
|
48
|
+
[2m Tests [22m[1m[32m61 passed[39m[22m[90m (182)[39m
|
|
49
|
+
[2m Start at [22m05:41:42
|
|
50
|
+
[2m Duration [22m200ms
|
|
51
|
+
[?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/flexible-time-parser.test.ts [2m([22m[2m63 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
52
|
+
[32m✓[39m src/time/time.schema.test.ts [2m([22m[2m26 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
53
|
+
[32m✓[39m src/time/bounded-time.schema.test.ts [2m([22m[2m33 tests[22m[2m)[22m[32m 16[2mms[22m[39m
|
|
54
|
+
[32m✓[39m src/time/timezone-independence.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 9[2mms[22m[39m
|
|
55
|
+
[32m✓[39m src/time/time-schemas.test.ts [2m([22m[2m24 tests[22m[2m)[22m[32m 15[2mms[22m[39m
|
|
57
56
|
|
|
58
|
-
[1m[33m ❯ [39m[22msrc/api-schemas/health.schema.test.ts[2m 0/9[22m
|
|
59
57
|
[1m[33m ❯ [39m[22msrc/normalization/normalize-list.test.ts[2m [queued][22m
|
|
60
|
-
[1m[33m ❯ [39m[22msrc/
|
|
61
|
-
[1m[33m ❯ [39m[22msrc/
|
|
62
|
-
[1m[33m ❯ [39m[22msrc/
|
|
63
|
-
[1m[33m ❯ [39m[22msrc/time/
|
|
64
|
-
[1m[33m ❯ [39m[22msrc/time/parse-relative-time.test.ts[2m 6/6[22m
|
|
58
|
+
[1m[33m ❯ [39m[22msrc/time/bounded-time.schema.test.ts[2m 33/33[22m
|
|
59
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time-parser.test.ts[2m 63/63[22m
|
|
60
|
+
[1m[33m ❯ [39m[22msrc/time/parse-relative-time.test.ts[2m [queued][22m
|
|
61
|
+
[1m[33m ❯ [39m[22msrc/time/since-parameter.schema.test.ts[2m 1/6[22m
|
|
65
62
|
[1m[33m ❯ [39m[22msrc/time/time-helpers.test.ts[2m [queued][22m
|
|
63
|
+
[1m[33m ❯ [39m[22msrc/time/time-schemas.test.ts[2m 24/24[22m
|
|
64
|
+
[1m[33m ❯ [39m[22msrc/time/time.schema.test.ts[2m 26/26[22m
|
|
66
65
|
[1m[33m ❯ [39m[22msrc/time/timezone-independence.test.ts[2m 13/13[22m
|
|
67
66
|
|
|
68
|
-
[2m Test Files [22m[1m[
|
|
69
|
-
[2m Tests [22m[1m[
|
|
70
|
-
[2m Start at [
|
|
71
|
-
[2m Duration [
|
|
72
|
-
[?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/
|
|
67
|
+
[2m Test Files [22m[1m[32m9 passed[39m[22m[90m (45)[39m
|
|
68
|
+
[2m Tests [22m[1m[32m220 passed[39m[22m[90m (225)[39m
|
|
69
|
+
[2m Start at [22m05:41:42
|
|
70
|
+
[2m Duration [22m300ms
|
|
71
|
+
[?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/since-parameter.schema.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
73
72
|
[32m✓[39m src/time/time-helpers.test.ts [2m([22m[2m42 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
74
|
-
|
|
75
|
-
{"level":
|
|
76
|
-
[32m✓[39m src/
|
|
77
|
-
|
|
78
|
-
{"level":
|
|
79
|
-
{"level":
|
|
80
|
-
[32m✓[39m src/
|
|
73
|
+
{"level":40,"time":1777268502696,"pid":20369,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"security.sanitizeTag","original":" banana ","sanitized":"banana","reason":"tag-sanitized","msg":"Tag input sanitized"}
|
|
74
|
+
{"level":40,"time":1777268502708,"pid":20369,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"security.sanitizeTag","original":" apple ","sanitized":"apple","reason":"tag-sanitized","msg":"Tag input sanitized"}
|
|
75
|
+
[32m✓[39m src/normalization/normalize-list.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 14[2mms[22m[39m
|
|
76
|
+
{"level":50,"time":1722007200000,"pid":20374,"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":20374,"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":20374,"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/api-schemas/results.schema.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
81
|
+
[32m✓[39m src/primitives/latitude.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
82
|
+
[32m✓[39m src/primitives/longitude.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
83
|
+
[32m✓[39m src/time/flexible-time.schema.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m 12[2mms[22m[39m
|
|
81
84
|
|
|
82
85
|
[1m[33m ❯ [39m[22msrc/api-schemas/results.schema.test.ts[2m 3/3[22m
|
|
83
86
|
[1m[33m ❯ [39m[22msrc/normalization/normalize-list.test.ts[2m 4/4[22m
|
|
84
|
-
[1m[33m ❯ [39m[22msrc/primitives/
|
|
85
|
-
[1m[33m ❯ [39m[22msrc/primitives/
|
|
86
|
-
[1m[33m ❯ [39m[22msrc/primitives/
|
|
87
|
-
[1m[33m ❯ [39m[22msrc/
|
|
88
|
-
[1m[33m ❯ [39m[22msrc/time/
|
|
89
|
-
[1m[33m ❯ [39m[22msrc/time/
|
|
87
|
+
[1m[33m ❯ [39m[22msrc/primitives/geoname-id.schema.test.ts[2m 0/7[22m
|
|
88
|
+
[1m[33m ❯ [39m[22msrc/primitives/latitude.schema.test.ts[2m 8/8[22m
|
|
89
|
+
[1m[33m ❯ [39m[22msrc/primitives/longitude.schema.test.ts[2m 8/8[22m
|
|
90
|
+
[1m[33m ❯ [39m[22msrc/time/boundary-enforcement.test.ts[2m [queued][22m
|
|
91
|
+
[1m[33m ❯ [39m[22msrc/time/flexible-time.schema.test.ts[2m 36/36[22m
|
|
92
|
+
[1m[33m ❯ [39m[22msrc/time/parse-relative-time.test.ts[2m 6/6[22m
|
|
90
93
|
[1m[33m ❯ [39m[22msrc/time/time-helpers.test.ts[2m 42/42[22m
|
|
91
94
|
|
|
92
95
|
[2m Test Files [22m[1m[32m17 passed[39m[22m[90m (45)[39m
|
|
93
|
-
[2m Tests [22m[1m[
|
|
94
|
-
[2m Start at [
|
|
95
|
-
[2m Duration [
|
|
96
|
-
[?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
|
|
97
|
-
{"level":40,"time":
|
|
98
|
-
{"level":40,"time":
|
|
99
|
-
{"level":40,"time":
|
|
100
|
-
{"level":40,"time":
|
|
101
|
-
{"level":40,"time":
|
|
96
|
+
[2m Tests [22m[1m[32m332 passed[39m[22m[90m (339)[39m
|
|
97
|
+
[2m Start at [22m05:41:42
|
|
98
|
+
[2m Duration [22m400ms
|
|
99
|
+
[?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 4[2mms[22m[39m
|
|
100
|
+
{"level":40,"time":1777268502824,"pid":20383,"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"}
|
|
101
|
+
{"level":40,"time":1777268502825,"pid":20383,"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"}
|
|
102
|
+
{"level":40,"time":1777268502825,"pid":20383,"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"}
|
|
103
|
+
{"level":40,"time":1777268502826,"pid":20383,"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"}
|
|
104
|
+
{"level":40,"time":1777268502826,"pid":20383,"hostname":"Jan--Schafe-vorm-Fenster.local","name":"helpers.time.boundary-enforcement","field":"testField","originalValue":"2024-01-10T12:00:00.000Z","clampedValue":"2026-04-20T05:41:42.826Z","boundary":"minimum (-1w)","msg":"Calendar update query testField clamped to minimum boundary"}
|
|
105
|
+
{"level":40,"time":1777268502827,"pid":20383,"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"}
|
|
102
106
|
[32m✓[39m src/time/boundary-enforcement.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
103
|
-
[32m✓[39m src/primitives/
|
|
104
|
-
[32m✓[39m src/primitives/wikidata-id.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
105
|
-
[32m✓[39m src/time/flexible-time.schema.test.ts [2m([22m[2m36 tests[22m[2m)[22m[32m 10[2mms[22m[39m
|
|
106
|
-
[32m✓[39m src/helpers/mime-types/detect-ole-mime-type.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
107
|
+
[32m✓[39m src/primitives/uuid.schema.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
107
108
|
[32m✓[39m src/helpers/eventify-constants.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
108
|
-
[32m✓[39m src/
|
|
109
|
-
|
|
110
|
-
[32m✓[39m src/primitives/location.schema.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
111
|
-
[32m✓[39m src/primitives/international-zip.schema.test.ts [2m([22m[2m29 tests[22m[2m)[22m[32m 8[2mms[22m[39m
|
|
112
|
-
|
|
113
|
-
[1m[33m ❯ [39m[22msrc/api-schemas/okay.schema.test.ts[2m 2/2[22m
|
|
114
|
-
[1m[33m ❯ [39m[22msrc/helpers/eventify-constants.test.ts[2m 9/9[22m
|
|
115
|
-
[1m[33m ❯ [39m[22msrc/helpers/mime-types/detect-ole-mime-type.test.ts[2m 10/10[22m
|
|
116
|
-
[1m[33m ❯ [39m[22msrc/primitives/geoname-id.schema.test.ts[2m 7/7[22m
|
|
117
|
-
[1m[33m ❯ [39m[22msrc/primitives/international-zip.schema.test.ts[2m 29/29[22m
|
|
118
|
-
[1m[33m ❯ [39m[22msrc/primitives/location.schema.test.ts[2m 3/3[22m
|
|
119
|
-
[1m[33m ❯ [39m[22msrc/primitives/wikidata-id.schema.test.ts[2m 8/8[22m
|
|
120
|
-
[1m[33m ❯ [39m[22msrc/time/flexible-time.schema.test.ts[2m 36/36[22m
|
|
121
|
-
[1m[33m ❯ [39m[22msrc/time/relative-time.schema.test.ts[2m [queued][22m
|
|
122
|
-
|
|
123
|
-
[2m Test Files [22m[1m[32m26 passed[39m[22m[90m (45)[39m
|
|
124
|
-
[2m Tests [22m[1m[32m418 passed[39m[22m[90m (418)[39m
|
|
125
|
-
[2m Start at [22m11:59:38
|
|
126
|
-
[2m Duration [22m503ms
|
|
127
|
-
[?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/uuid.schema.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
128
|
-
[32m✓[39m src/time/relative-time.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
129
|
-
[32m✓[39m src/time/timezone.types.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
109
|
+
[32m✓[39m src/primitives/wikidata-id.schema.test.ts [2m([22m[2m8 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
110
|
+
[32m✓[39m src/api-schemas/result.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
130
111
|
[32m✓[39m src/helpers/hash-binary.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
131
|
-
[32m✓[39m src/
|
|
132
|
-
[32m✓[39m src/api-schemas/result.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
133
|
-
[32m✓[39m src/helpers/eventify-constants.types.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
134
|
-
{"level":50,"time":1770724778675,"pid":48230,"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"}
|
|
135
|
-
{"level":50,"time":1770724778676,"pid":48230,"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"}
|
|
136
|
-
{"level":50,"time":1770724778676,"pid":48230,"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"}
|
|
137
|
-
{"level":50,"time":1770724778676,"pid":48230,"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"}
|
|
112
|
+
[32m✓[39m src/api-schemas/health.schema.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
138
113
|
|
|
114
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/error.schema.test.ts[2m 1/3[22m
|
|
115
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/health.schema.test.ts[2m 9/9[22m
|
|
139
116
|
[1m[33m ❯ [39m[22msrc/api-schemas/result.schema.test.ts[2m 2/2[22m
|
|
140
|
-
[1m[33m ❯ [39m[22msrc/helpers/eventify-constants.
|
|
117
|
+
[1m[33m ❯ [39m[22msrc/helpers/eventify-constants.test.ts[2m 9/9[22m
|
|
141
118
|
[1m[33m ❯ [39m[22msrc/helpers/hash-binary.test.ts[2m 7/7[22m
|
|
142
|
-
[1m[33m ❯ [39m[22msrc/
|
|
143
|
-
[1m[33m ❯ [39m[22msrc/primitives/longitude.schema.test.ts[2m 8/8[22m
|
|
144
|
-
[1m[33m ❯ [39m[22msrc/primitives/numeric-id.schema.test.ts[2m 0/5[22m
|
|
119
|
+
[1m[33m ❯ [39m[22msrc/primitives/geo-point.schema.test.ts[2m [queued][22m
|
|
145
120
|
[1m[33m ❯ [39m[22msrc/primitives/uuid.schema.test.ts[2m 5/5[22m
|
|
146
|
-
[1m[33m ❯ [39m[22msrc/
|
|
121
|
+
[1m[33m ❯ [39m[22msrc/primitives/wikidata-id.schema.test.ts[2m 8/8[22m
|
|
122
|
+
[1m[33m ❯ [39m[22msrc/time/boundary-enforcement.test.ts[2m 12/12[22m
|
|
123
|
+
|
|
124
|
+
[2m Test Files [22m[1m[32m25 passed[39m[22m[90m (45)[39m
|
|
125
|
+
[2m Tests [22m[1m[32m392 passed[39m[22m[90m (394)[39m
|
|
126
|
+
[2m Start at [22m05:41:42
|
|
127
|
+
[2m Duration [22m501ms
|
|
128
|
+
[?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/api-schemas/error.schema.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
129
|
+
[32m✓[39m src/primitives/geo-point.schema.test.ts [2m([22m[2m7 tests[22m[2m)[22m[32m 6[2mms[22m[39m
|
|
130
|
+
[32m✓[39m src/normalization/normalize-location.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
131
|
+
[32m✓[39m src/time/timezone.types.test.ts [2m([22m[2m4 tests[22m[2m)[22m[32m 5[2mms[22m[39m
|
|
132
|
+
|
|
133
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/error.schema.test.ts[2m 3/3[22m
|
|
134
|
+
[1m[33m ❯ [39m[22msrc/helpers/mime-types/detect-image-mime-type.test.ts[2m [queued][22m
|
|
135
|
+
[1m[33m ❯ [39m[22msrc/helpers/slugify.test.ts[2m 0/13[22m
|
|
136
|
+
[1m[33m ❯ [39m[22msrc/normalization/normalize-location.test.ts[2m 13/13[22m
|
|
137
|
+
[1m[33m ❯ [39m[22msrc/primitives/geo-point.schema.test.ts[2m 7/7[22m
|
|
138
|
+
[1m[33m ❯ [39m[22msrc/primitives/numeric-id.schema.test.ts[2m [queued][22m
|
|
139
|
+
[1m[33m ❯ [39m[22msrc/primitives/slug.schema.test.ts[2m 0/15[22m
|
|
140
|
+
[1m[33m ❯ [39m[22msrc/time/iso8601.types.test.ts[2m 0/17[22m
|
|
147
141
|
[1m[33m ❯ [39m[22msrc/time/timezone.types.test.ts[2m 4/4[22m
|
|
148
142
|
|
|
149
|
-
[2m Test Files [22m[1m[
|
|
150
|
-
[2m Tests [22m[1m[
|
|
151
|
-
[2m Start at [
|
|
152
|
-
[2m Duration [
|
|
153
|
-
[?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
|
|
154
|
-
[32m✓[39m src/
|
|
155
|
-
[32m✓[39m src/primitives/
|
|
156
|
-
[32m✓[39m src/helpers/slugify.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m
|
|
157
|
-
[32m✓[39m src/helpers/detect-
|
|
158
|
-
[32m✓[39m src/
|
|
159
|
-
[32m✓[39m src/helpers/
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
[1m[33m ❯ [39m[22msrc/helpers/detect-
|
|
164
|
-
[1m[33m ❯ [39m[22msrc/helpers/
|
|
165
|
-
[1m[33m ❯ [39m[22msrc/helpers/mime-types/detect-
|
|
166
|
-
[1m[33m ❯ [39m[22msrc/
|
|
167
|
-
|
|
168
|
-
[
|
|
169
|
-
[
|
|
170
|
-
|
|
171
|
-
[2m
|
|
172
|
-
[
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
[32m✓[39m src/helpers/
|
|
143
|
+
[2m Test Files [22m[1m[32m29 passed[39m[22m[90m (45)[39m
|
|
144
|
+
[2m Tests [22m[1m[32m418 passed[39m[22m[90m (463)[39m
|
|
145
|
+
[2m Start at [22m05:41:42
|
|
146
|
+
[2m Duration [22m601ms
|
|
147
|
+
[?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{"level":50,"time":1777268502996,"pid":20395,"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"}
|
|
148
|
+
[32m✓[39m src/time/iso8601.types.test.ts [2m([22m[2m17 tests[22m[2m)[22m[32m 7[2mms[22m[39m
|
|
149
|
+
[32m✓[39m src/primitives/slug.schema.test.ts [2m([22m[2m15 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
150
|
+
[32m✓[39m src/helpers/slugify.test.ts [2m([22m[2m13 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
151
|
+
[32m✓[39m src/helpers/mime-types/detect-image-mime-type.test.ts [2m([22m[2m11 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
152
|
+
[32m✓[39m src/primitives/numeric-id.schema.test.ts [2m([22m[2m5 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
153
|
+
[32m✓[39m src/helpers/detect-suspicious-patterns.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
154
|
+
[32m✓[39m src/helpers/detect-mime-type.test.ts [2m([22m[2m12 tests[22m[2m)[22m[32m 4[2mms[22m[39m
|
|
155
|
+
|
|
156
|
+
[1m[33m ❯ [39m[22msrc/api-schemas/okay.schema.test.ts[2m [queued][22m
|
|
157
|
+
[1m[33m ❯ [39m[22msrc/helpers/detect-suspicious-patterns.test.ts[2m 6/6[22m
|
|
158
|
+
[1m[33m ❯ [39m[22msrc/helpers/eventify-constants.types.test.ts[2m 1/9[22m
|
|
159
|
+
[1m[33m ❯ [39m[22msrc/helpers/mime-types/detect-image-mime-type.test.ts[2m 11/11[22m
|
|
160
|
+
[1m[33m ❯ [39m[22msrc/helpers/slugify.test.ts[2m 13/13[22m
|
|
161
|
+
[1m[33m ❯ [39m[22msrc/primitives/location.schema.test.ts[2m [queued][22m
|
|
162
|
+
[1m[33m ❯ [39m[22msrc/primitives/numeric-id.schema.test.ts[2m 5/5[22m
|
|
163
|
+
[1m[33m ❯ [39m[22msrc/primitives/slug.schema.test.ts[2m 15/15[22m
|
|
164
|
+
|
|
165
|
+
[2m Test Files [22m[1m[32m36 passed[39m[22m[90m (45)[39m
|
|
166
|
+
[2m Tests [22m[1m[32m498 passed[39m[22m[90m (506)[39m
|
|
167
|
+
[2m Start at [22m05:41:42
|
|
168
|
+
[2m Duration [22m701ms
|
|
169
|
+
[?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 [32m✓[39m src/helpers/eventify-constants.types.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 3[2mms[22m[39m
|
|
170
|
+
[32m✓[39m src/api-schemas/okay.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
171
|
+
[32m✓[39m src/helpers/mime-types/detect-ole-mime-type.test.ts [2m([22m[2m10 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
172
|
+
[32m✓[39m src/primitives/coordinate-precision.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
173
|
+
[32m✓[39m src/helpers/mime-types/detect-pdf-mime-type.test.ts [2m([22m[2m6 tests[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
174
|
+
[32m✓[39m src/helpers/mime-types/detect-zip-mime-type.test.ts [2m([22m[2m9 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
175
|
+
[32m✓[39m src/time/relative-time.schema.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
176
|
+
{"level":50,"time":1777268503133,"pid":20406,"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"}
|
|
177
|
+
[32m✓[39m src/primitives/location.schema.test.ts [2m([22m[2m3 tests[22m[2m)[22m[32m 2[2mms[22m[39m
|
|
176
178
|
[32m✓[39m src/time/is-relative-time.test.ts [2m([22m[2m2 tests[22m[2m)[22m[32m 1[2mms[22m[39m
|
|
177
179
|
|
|
178
180
|
[2m Test Files [22m [1m[32m45 passed[39m[22m[90m (45)[39m
|
|
179
181
|
[2m Tests [22m [1m[32m546 passed[39m[22m[90m (546)[39m
|
|
180
|
-
[2m Start at [22m
|
|
181
|
-
[2m Duration [22m
|
|
182
|
+
[2m Start at [22m 05:41:42
|
|
183
|
+
[2m Duration [22m 807ms[2m (transform 975ms, setup 0ms, import 1.81s, tests 258ms, environment 3ms)[22m
|
|
182
184
|
|
|
183
185
|
[?25h
|
|
184
186
|
> @schafevormfenster/rest-commons@0.1.10 build /Users/jan-henrik.hempel/Projects/commons/packages/rest-commons
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ResultsSchema } from "./results.schema";
|
|
2
|
+
import { ResultsSchema } from "./results.schema.js";
|
|
3
3
|
export const PaginationSchema = z.object({
|
|
4
4
|
page: z.number().describe("Current page number"),
|
|
5
5
|
limit: z.number().describe("Maximum results per page"),
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from "zod";
|
|
2
|
-
import { ResultsSchema } from "./results.schema";
|
|
2
|
+
import { ResultsSchema } from "./results.schema.js";
|
|
3
3
|
/**
|
|
4
4
|
* Schema for partial success responses where some items succeeded and others failed.
|
|
5
5
|
* Extends ResultsSchema with an errors count field.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { getHeader } from "./get-header";
|
|
1
|
+
import { getHeader } from "./get-header.js";
|
|
2
2
|
export function getCorrelationId(request) {
|
|
3
3
|
const existingId = getHeader(request, "x-correlation-id");
|
|
4
4
|
if (existingId && typeof existingId === "string" && existingId.length > 0) {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { detectImageMimeType } from "./mime-types/detect-image-mime-type";
|
|
2
|
-
import { detectOleMimeType } from "./mime-types/detect-ole-mime-type";
|
|
3
|
-
import { detectPdfMimeType } from "./mime-types/detect-pdf-mime-type";
|
|
4
|
-
import { detectZipMimeType } from "./mime-types/detect-zip-mime-type";
|
|
1
|
+
import { detectImageMimeType } from "./mime-types/detect-image-mime-type.js";
|
|
2
|
+
import { detectOleMimeType } from "./mime-types/detect-ole-mime-type.js";
|
|
3
|
+
import { detectPdfMimeType } from "./mime-types/detect-pdf-mime-type.js";
|
|
4
|
+
import { detectZipMimeType } from "./mime-types/detect-zip-mime-type.js";
|
|
5
5
|
/**
|
|
6
6
|
* Detect MIME type from file magic bytes (file signature)
|
|
7
7
|
*
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getLogger } from "@schafevormfenster/logging";
|
|
2
|
-
import { detectSuspiciousPatternsFromBody } from "./detect-suspicious-patterns";
|
|
2
|
+
import { detectSuspiciousPatternsFromBody } from "./detect-suspicious-patterns.js";
|
|
3
3
|
const log = getLogger("rest.helpers.parameter-validation");
|
|
4
4
|
/**
|
|
5
5
|
* Validates that a string parameter does not contain suspicious patterns
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getApiSecurityHeaders } from "@schafevormfenster/security";
|
|
2
|
-
import { resolveEnvironment } from "./resolve-environment";
|
|
2
|
+
import { resolveEnvironment } from "./resolve-environment.js";
|
|
3
3
|
/**
|
|
4
4
|
* Build a consistent set of headers for unauthorized API responses, including
|
|
5
5
|
* security headers and correlation id propagation.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"resolve-environment.d.ts","sourceRoot":"","sources":["../../../src/helpers/response-headers/resolve-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,
|
|
1
|
+
{"version":3,"file":"resolve-environment.d.ts","sourceRoot":"","sources":["../../../src/helpers/response-headers/resolve-environment.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,WAAW,EAAE,MAAM,wBAAwB,CAAC;AAE1D;;;;GAIG;AACH,wBAAgB,kBAAkB,IAAI,WAAW,CAShD"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,34 +1,34 @@
|
|
|
1
|
-
export * from "./api-schemas/error.schema";
|
|
2
|
-
export * from "./api-schemas/health.schema";
|
|
3
|
-
export * from "./api-schemas/okay.schema";
|
|
4
|
-
export * from "./api-schemas/result.schema";
|
|
5
|
-
export * from "./api-schemas/results.schema";
|
|
6
|
-
export * from "./primitives/location.schema";
|
|
7
|
-
export * from "./primitives/slug.schema";
|
|
8
|
-
export * from "./primitives/numeric-id.schema";
|
|
9
|
-
export * from "./primitives/uuid.schema";
|
|
10
|
-
export * from "./primitives/geoname-id.schema";
|
|
11
|
-
export * from "./primitives/wikidata-id.schema";
|
|
12
|
-
export * from "./primitives/international-zip.schema";
|
|
13
|
-
export * from "./time/timezone.types";
|
|
14
|
-
export * from "./time/iso8601.schema";
|
|
15
|
-
export * from "./time/relative-time.schema";
|
|
16
|
-
export * from "./time/flexible-time.schema";
|
|
17
|
-
export * from "./time/bounded-time.schema";
|
|
18
|
-
export * from "./time/time-helpers";
|
|
19
|
-
export * from "./time/is-relative-time";
|
|
20
|
-
export { parseFlexibleTime as parseFlexibleTimeAdvanced } from "./time/flexible-time-parser";
|
|
21
|
-
export * from "./time/boundary-enforcement";
|
|
22
|
-
export * from "./helpers/correlation/get-correlation-id";
|
|
23
|
-
export * from "./helpers/correlation/get-header";
|
|
24
|
-
export * from "./helpers/detect-mime-type";
|
|
25
|
-
export * from "./helpers/detect-suspicious-patterns";
|
|
26
|
-
export * from "./helpers/hash-binary";
|
|
27
|
-
export * from "./helpers/parameter-validation";
|
|
28
|
-
export * from "./helpers/slugify";
|
|
29
|
-
export * from "./helpers/response-headers/build-api-unauthorized-headers";
|
|
30
|
-
export * from "./helpers/response-headers/environment.types";
|
|
31
|
-
export * from "./helpers/response-headers/resolve-environment";
|
|
32
|
-
export * from "./normalization/normalize-list";
|
|
33
|
-
export * from "./normalization/normalize-location";
|
|
1
|
+
export * from "./api-schemas/error.schema.js";
|
|
2
|
+
export * from "./api-schemas/health.schema.js";
|
|
3
|
+
export * from "./api-schemas/okay.schema.js";
|
|
4
|
+
export * from "./api-schemas/result.schema.js";
|
|
5
|
+
export * from "./api-schemas/results.schema.js";
|
|
6
|
+
export * from "./primitives/location.schema.js";
|
|
7
|
+
export * from "./primitives/slug.schema.js";
|
|
8
|
+
export * from "./primitives/numeric-id.schema.js";
|
|
9
|
+
export * from "./primitives/uuid.schema.js";
|
|
10
|
+
export * from "./primitives/geoname-id.schema.js";
|
|
11
|
+
export * from "./primitives/wikidata-id.schema.js";
|
|
12
|
+
export * from "./primitives/international-zip.schema.js";
|
|
13
|
+
export * from "./time/timezone.types.js";
|
|
14
|
+
export * from "./time/iso8601.schema.js";
|
|
15
|
+
export * from "./time/relative-time.schema.js";
|
|
16
|
+
export * from "./time/flexible-time.schema.js";
|
|
17
|
+
export * from "./time/bounded-time.schema.js";
|
|
18
|
+
export * from "./time/time-helpers.js";
|
|
19
|
+
export * from "./time/is-relative-time.js";
|
|
20
|
+
export { parseFlexibleTime as parseFlexibleTimeAdvanced } from "./time/flexible-time-parser.js";
|
|
21
|
+
export * from "./time/boundary-enforcement.js";
|
|
22
|
+
export * from "./helpers/correlation/get-correlation-id.js";
|
|
23
|
+
export * from "./helpers/correlation/get-header.js";
|
|
24
|
+
export * from "./helpers/detect-mime-type.js";
|
|
25
|
+
export * from "./helpers/detect-suspicious-patterns.js";
|
|
26
|
+
export * from "./helpers/hash-binary.js";
|
|
27
|
+
export * from "./helpers/parameter-validation.js";
|
|
28
|
+
export * from "./helpers/slugify.js";
|
|
29
|
+
export * from "./helpers/response-headers/build-api-unauthorized-headers.js";
|
|
30
|
+
export * from "./helpers/response-headers/environment.types.js";
|
|
31
|
+
export * from "./helpers/response-headers/resolve-environment.js";
|
|
32
|
+
export * from "./normalization/normalize-list.js";
|
|
33
|
+
export * from "./normalization/normalize-location.js";
|
|
34
34
|
//# sourceMappingURL=index.d.ts.map
|
package/dist/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,iCAAiC,CAAC;AAGhD,cAAc,iCAAiC,CAAC;AAChD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,6BAA6B,CAAC;AAC5C,cAAc,mCAAmC,CAAC;AAClD,cAAc,oCAAoC,CAAC;AACnD,cAAc,0CAA0C,CAAC;AAGzD,cAAc,0BAA0B,CAAC;AACzC,cAAc,0BAA0B,CAAC;AACzC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,OAAO,EAAE,iBAAiB,IAAI,yBAAyB,EAAE,MAAM,gCAAgC,CAAC;AAChG,cAAc,gCAAgC,CAAC;AAG/C,cAAc,6CAA6C,CAAC;AAC5D,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,yCAAyC,CAAC;AACxD,cAAc,0BAA0B,CAAC;AACzC,cAAc,mCAAmC,CAAC;AAClD,cAAc,sBAAsB,CAAC;AACrC,cAAc,8DAA8D,CAAC;AAC7E,cAAc,iDAAiD,CAAC;AAChE,cAAc,mDAAmD,CAAC;AAGlE,cAAc,mCAAmC,CAAC;AAClD,cAAc,uCAAuC,CAAC"}
|