@ipation/specbridge 1.1.0 → 1.1.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/CHANGELOG.md +32 -1
- package/dist/cli.js +3 -3
- package/dist/cli.js.map +1 -1
- package/dist/index.js +3 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -2093,17 +2093,17 @@ function tarjanScc(graph) {
|
|
|
2093
2093
|
return result;
|
|
2094
2094
|
}
|
|
2095
2095
|
function parseMaxImportDepth(rule) {
|
|
2096
|
-
const m = rule.match(/maximum\s
|
|
2096
|
+
const m = rule.match(/maximum\s{1,5}import\s{1,5}depth\s{0,5}[:=]?\s{0,5}(\d+)/i);
|
|
2097
2097
|
return m ? Number.parseInt(m[1], 10) : null;
|
|
2098
2098
|
}
|
|
2099
2099
|
function parseBannedDependency(rule) {
|
|
2100
|
-
const m = rule.match(/no\s
|
|
2100
|
+
const m = rule.match(/no\s{1,5}dependencies?\s{1,5}on\s{1,5}(?:package\s{1,5})?(.+?)(?:\.|$)/i);
|
|
2101
2101
|
if (!m) return null;
|
|
2102
2102
|
const value = m[1].trim();
|
|
2103
2103
|
return value.length > 0 ? value : null;
|
|
2104
2104
|
}
|
|
2105
2105
|
function parseLayerRule(rule) {
|
|
2106
|
-
const m = rule.match(/(\w+)\s
|
|
2106
|
+
const m = rule.match(/(\w+)\s{1,5}layer\s{1,5}cannot\s{1,5}depend\s{1,5}on\s{1,5}(\w+)\s{1,5}layer/i);
|
|
2107
2107
|
if (!m) return null;
|
|
2108
2108
|
return { fromLayer: m[1].toLowerCase(), toLayer: m[2].toLowerCase() };
|
|
2109
2109
|
}
|