@afokapu/atdd-bun 0.10.22 → 0.10.23
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.
|
@@ -27,6 +27,9 @@ for (const root of readRoots()) {
|
|
|
27
27
|
if (!text) continue;
|
|
28
28
|
const masked = maskLiteralsAndComments(text);
|
|
29
29
|
for (const m of masked.matchAll(BARE_FETCH)) {
|
|
30
|
+
// A method DEFINED as fetch is not a call: Bun.serve({ async fetch(request) { … } }) is the inbound handler, and
|
|
31
|
+
// Bun requires that name (resolver-os #iFlkkL7jvEbC). A definition's parameter list is followed by its body.
|
|
32
|
+
if (m[0].startsWith("fetch") && /^\([^()]*\)\s*(?::\s*[^{=;]+)?\{/.test(masked.slice(m.index + m[0].length - 1))) continue;
|
|
30
33
|
violations.push({ rule_id: RULE, file, ...locate(text, m.index),
|
|
31
34
|
evidence: `${layerOf(file)} layer calls the platform HTTP primitive directly; route it through the centralized client in integration/` });
|
|
32
35
|
}
|
package/integrity.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.10.
|
|
2
|
+
"version": "0.10.23",
|
|
3
3
|
"files": {
|
|
4
4
|
"HOOK_AUDIT.md": "5329d840db37671b1918f688ead26865473b87db73dbc75f7c8b2a8bbe8d6d43",
|
|
5
5
|
"PLANNER_PORT.md": "fb5935bac8b7ac18994de21e43ace3a5ef8cd55f85b0e3349fca261280054f11",
|
|
@@ -196,7 +196,7 @@
|
|
|
196
196
|
"detectors/atdd_traceability_closure/fixtures/dirty/test/no-binding.test.ts": "ea8b5b0d0bfdc397b93fb0e7d1ad99fac1a2f52f4f46bc8c9f0e9783d7402c55",
|
|
197
197
|
"detectors/bun_clean_architecture_detector/atdd.implementation.yaml": "c8682568ee3489c4e79661a59a71cfa3c25f444b03bbe151997e3650ea7e1110",
|
|
198
198
|
"detectors/bun_clean_architecture_detector/checks/_map.json": "7d680405e8514bb3c35f1e44d7441c7fd4595a231e9e6a8a1969fd30c4327f88",
|
|
199
|
-
"detectors/bun_clean_architecture_detector/checks/a_boundaries_http_client.mjs": "
|
|
199
|
+
"detectors/bun_clean_architecture_detector/checks/a_boundaries_http_client.mjs": "87ff421176965a782c4c371a27fd34be1877ced147598245a465f7ca9bb4e4d4",
|
|
200
200
|
"detectors/bun_clean_architecture_detector/checks/a_commons_application_no_integration.mjs": "08ae694a2d8b9284f1042eef188e5ea3e51bcc0c753a693bff09a0e5ef0fd74d",
|
|
201
201
|
"detectors/bun_clean_architecture_detector/checks/a_commons_cross_feature.mjs": "e501e1dfc2dc9cc8894e2220cd5a04c76749647a42d9cc982f21fbbe8216a0ea",
|
|
202
202
|
"detectors/bun_clean_architecture_detector/checks/a_commons_domain_no_outbound.mjs": "f61e52fbe3554d095cc47cff131d5c8a6e8020adf79fe6312362ab9580539f1f",
|