@opensip-cli/checks-universal 0.1.4 → 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/README.md +2 -2
- package/package.json +4 -4
- package/dist/checks/architecture/_yaml-doc-bindings.d.ts +0 -23
- package/dist/checks/architecture/_yaml-doc-bindings.d.ts.map +0 -1
- package/dist/checks/architecture/_yaml-doc-bindings.js +0 -29
- package/dist/checks/architecture/_yaml-doc-bindings.js.map +0 -1
package/README.md
CHANGED
|
@@ -23,8 +23,8 @@ This package is published for the CLI and advanced plugin authors; most users sh
|
|
|
23
23
|
## Documentation
|
|
24
24
|
|
|
25
25
|
- 📚 Project docs: https://opensip.ai/docs/opensip-cli/
|
|
26
|
-
- 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.1.
|
|
27
|
-
- 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.1.
|
|
26
|
+
- 🧭 Package catalog (what every package does): https://github.com/opensip-ai/opensip-cli/blob/v0.1.6/docs/public/70-reference/02-package-catalog.md
|
|
27
|
+
- 📦 Source: https://github.com/opensip-ai/opensip-cli/tree/v0.1.6/packages/fitness/checks-universal
|
|
28
28
|
|
|
29
29
|
## License
|
|
30
30
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opensip-cli/checks-universal",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.6",
|
|
4
4
|
"license": "Apache-2.0",
|
|
5
5
|
"description": "Cross-language fitness checks for opensip-cli",
|
|
6
6
|
"keywords": [
|
|
@@ -35,13 +35,13 @@
|
|
|
35
35
|
"NOTICE"
|
|
36
36
|
],
|
|
37
37
|
"dependencies": {
|
|
38
|
-
"@opensip-cli/core": "0.1.
|
|
39
|
-
"@opensip-cli/fitness": "0.1.
|
|
38
|
+
"@opensip-cli/core": "0.1.6",
|
|
39
|
+
"@opensip-cli/fitness": "0.1.6"
|
|
40
40
|
},
|
|
41
41
|
"devDependencies": {
|
|
42
42
|
"@types/node": "^24.13.2",
|
|
43
43
|
"vitest": "^4.1.8",
|
|
44
|
-
"@opensip-cli/test-support": "0.1.
|
|
44
|
+
"@opensip-cli/test-support": "0.1.6"
|
|
45
45
|
},
|
|
46
46
|
"scripts": {
|
|
47
47
|
"build": "tsc",
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Shared helper for the two config-document architecture checks
|
|
3
|
-
* (`one-config-document`, `no-config-loader-outside-config`).
|
|
4
|
-
*
|
|
5
|
-
* Both checks must first identify which local identifiers in a file are bound to
|
|
6
|
-
* a parsed YAML document — only a namespace/block read OFF one of those counts
|
|
7
|
-
* as a config hand-projection; a read off a request object, `scope`, etc. is
|
|
8
|
-
* unrelated and ignored. The detection was byte-identical in both files (it
|
|
9
|
-
* tripped the graph `duplicated-function-body` rule), so it lives here once.
|
|
10
|
-
*
|
|
11
|
-
* Underscore-prefixed and absent from the check barrel (`index.ts`): this is an
|
|
12
|
-
* internal helper, not a `defineCheck` export.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Identifiers bound to a parsed YAML document in this file — the result of a
|
|
16
|
-
* `const <id> = readYamlFile(...)` (or a sibling reader: `readYamlFileOrThrow`,
|
|
17
|
-
* `parseYaml`, `loadYaml`).
|
|
18
|
-
*
|
|
19
|
-
* @param content - the source text of the file under analysis.
|
|
20
|
-
* @returns the set of local binding names that hold a parsed YAML document.
|
|
21
|
-
*/
|
|
22
|
-
export declare function yamlDocBindings(content: string): Set<string>;
|
|
23
|
-
//# sourceMappingURL=_yaml-doc-bindings.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_yaml-doc-bindings.d.ts","sourceRoot":"","sources":["../../../src/checks/architecture/_yaml-doc-bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,wBAAgB,eAAe,CAAC,OAAO,EAAE,MAAM,GAAG,GAAG,CAAC,MAAM,CAAC,CAM5D"}
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @fileoverview Shared helper for the two config-document architecture checks
|
|
3
|
-
* (`one-config-document`, `no-config-loader-outside-config`).
|
|
4
|
-
*
|
|
5
|
-
* Both checks must first identify which local identifiers in a file are bound to
|
|
6
|
-
* a parsed YAML document — only a namespace/block read OFF one of those counts
|
|
7
|
-
* as a config hand-projection; a read off a request object, `scope`, etc. is
|
|
8
|
-
* unrelated and ignored. The detection was byte-identical in both files (it
|
|
9
|
-
* tripped the graph `duplicated-function-body` rule), so it lives here once.
|
|
10
|
-
*
|
|
11
|
-
* Underscore-prefixed and absent from the check barrel (`index.ts`): this is an
|
|
12
|
-
* internal helper, not a `defineCheck` export.
|
|
13
|
-
*/
|
|
14
|
-
/**
|
|
15
|
-
* Identifiers bound to a parsed YAML document in this file — the result of a
|
|
16
|
-
* `const <id> = readYamlFile(...)` (or a sibling reader: `readYamlFileOrThrow`,
|
|
17
|
-
* `parseYaml`, `loadYaml`).
|
|
18
|
-
*
|
|
19
|
-
* @param content - the source text of the file under analysis.
|
|
20
|
-
* @returns the set of local binding names that hold a parsed YAML document.
|
|
21
|
-
*/
|
|
22
|
-
export function yamlDocBindings(content) {
|
|
23
|
-
const docs = new Set();
|
|
24
|
-
const re = /(?:const|let)\s+([A-Za-z_$][\w$]*)\s*=\s*(?:await\s+)?(?:readYamlFile|readYamlFileOrThrow|parseYaml|loadYaml)\s*\(/g;
|
|
25
|
-
for (const m of content.matchAll(re))
|
|
26
|
-
docs.add(m[1]);
|
|
27
|
-
return docs;
|
|
28
|
-
}
|
|
29
|
-
//# sourceMappingURL=_yaml-doc-bindings.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"_yaml-doc-bindings.js","sourceRoot":"","sources":["../../../src/checks/architecture/_yaml-doc-bindings.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH;;;;;;;GAOG;AACH,MAAM,UAAU,eAAe,CAAC,OAAe;IAC7C,MAAM,IAAI,GAAG,IAAI,GAAG,EAAU,CAAC;IAC/B,MAAM,EAAE,GACN,qHAAqH,CAAC;IACxH,KAAK,MAAM,CAAC,IAAI,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;QAAE,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACrD,OAAO,IAAI,CAAC;AACd,CAAC"}
|