@living-architecture/riviere-cli 0.9.3 → 0.9.4

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/dist/bin.js CHANGED
@@ -28705,10 +28705,7 @@ function evaluateClassRule(rule, classDecl) {
28705
28705
  if ("fromClassName" in rule) {
28706
28706
  return evaluateFromClassNameRule(rule, classDecl);
28707
28707
  }
28708
- if (!("fromProperty" in rule)) {
28709
- throw new ExtractionError("Unsupported extraction rule type for class-based component", classDecl.getSourceFile().getFilePath(), classDecl.getStartLineNumber());
28710
- }
28711
- return evaluateFromPropertyRule(rule, classDecl);
28708
+ throw new ExtractionError("Unsupported extraction rule type for class-based component", classDecl.getSourceFile().getFilePath(), classDecl.getStartLineNumber());
28712
28709
  }
28713
28710
  function evaluateRule2(rule, draft, project) {
28714
28711
  if ("literal" in rule) {
@@ -28725,6 +28722,10 @@ function evaluateRule2(rule, draft, project) {
28725
28722
  const classDecl2 = findContainingClass(project, draft);
28726
28723
  return evaluateFromGenericArgRule(rule, classDecl2);
28727
28724
  }
28725
+ if ("fromProperty" in rule) {
28726
+ const classDecl2 = findContainingClass(project, draft);
28727
+ return evaluateFromPropertyRule(rule, classDecl2);
28728
+ }
28728
28729
  if ("fromParameterType" in rule) {
28729
28730
  const methodDecl = findMethodAtLine(project, draft);
28730
28731
  const params = methodDecl.getParameters();
@@ -31120,7 +31121,7 @@ function parsePackageJson(pkg) {
31120
31121
  }
31121
31122
  function loadPackageJson() {
31122
31123
  if (true) {
31123
- return { version: "0.9.2" };
31124
+ return { version: "0.9.3" };
31124
31125
  }
31125
31126
  const require2 = createRequire2(import.meta.url);
31126
31127
  return parsePackageJson(require2("../../package.json"));
@@ -31214,7 +31215,6 @@ program.parseAsync().catch(handleGlobalError);
31214
31215
  /* istanbul ignore else -- @preserve: false branch is unreachable; FindTarget is exhaustive */
31215
31216
  /* istanbul ignore next -- @preserve: unreachable with valid FindTarget type; defensive fallback */
31216
31217
  /* v8 ignore next -- @preserve: getExtends() !== undefined guarantees getBaseClass() returns a value */
31217
- /* istanbul ignore next -- @preserve: only fromProperty reaches here; defensive guard */
31218
31218
  /* istanbul ignore next -- @preserve: catch always receives Error instances from ExtractionError */
31219
31219
  /* v8 ignore start -- @preserve: default executor delegates to execFileSync; tested via CLI integration */
31220
31220
  /* v8 ignore next -- @preserve: defensive optional chain; property existence guaranteed by hasOwn check above */
package/dist/index.js CHANGED
@@ -28729,10 +28729,7 @@ function evaluateClassRule(rule, classDecl) {
28729
28729
  if ("fromClassName" in rule) {
28730
28730
  return evaluateFromClassNameRule(rule, classDecl);
28731
28731
  }
28732
- if (!("fromProperty" in rule)) {
28733
- throw new ExtractionError("Unsupported extraction rule type for class-based component", classDecl.getSourceFile().getFilePath(), classDecl.getStartLineNumber());
28734
- }
28735
- return evaluateFromPropertyRule(rule, classDecl);
28732
+ throw new ExtractionError("Unsupported extraction rule type for class-based component", classDecl.getSourceFile().getFilePath(), classDecl.getStartLineNumber());
28736
28733
  }
28737
28734
  function evaluateRule2(rule, draft, project) {
28738
28735
  if ("literal" in rule) {
@@ -28749,6 +28746,10 @@ function evaluateRule2(rule, draft, project) {
28749
28746
  const classDecl2 = findContainingClass(project, draft);
28750
28747
  return evaluateFromGenericArgRule(rule, classDecl2);
28751
28748
  }
28749
+ if ("fromProperty" in rule) {
28750
+ const classDecl2 = findContainingClass(project, draft);
28751
+ return evaluateFromPropertyRule(rule, classDecl2);
28752
+ }
28752
28753
  if ("fromParameterType" in rule) {
28753
28754
  const methodDecl = findMethodAtLine(project, draft);
28754
28755
  const params = methodDecl.getParameters();
@@ -31202,7 +31203,6 @@ export {
31202
31203
  /* istanbul ignore else -- @preserve: false branch is unreachable; FindTarget is exhaustive */
31203
31204
  /* istanbul ignore next -- @preserve: unreachable with valid FindTarget type; defensive fallback */
31204
31205
  /* v8 ignore next -- @preserve: getExtends() !== undefined guarantees getBaseClass() returns a value */
31205
- /* istanbul ignore next -- @preserve: only fromProperty reaches here; defensive guard */
31206
31206
  /* istanbul ignore next -- @preserve: catch always receives Error instances from ExtractionError */
31207
31207
  /* v8 ignore start -- @preserve: default executor delegates to execFileSync; tested via CLI integration */
31208
31208
  /* v8 ignore next -- @preserve: defensive optional chain; property existence guaranteed by hasOwn check above */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@living-architecture/riviere-cli",
3
- "version": "0.9.3",
3
+ "version": "0.9.4",
4
4
  "publishConfig": {
5
5
  "access": "public"
6
6
  },
@@ -33,9 +33,9 @@
33
33
  "ts-morph": "^24.0.0",
34
34
  "yaml": "^2.7.0",
35
35
  "@living-architecture/riviere-builder": "0.7.3",
36
- "@living-architecture/riviere-extract-ts": "0.4.2",
37
36
  "@living-architecture/riviere-extract-config": "0.5.3",
38
- "@living-architecture/riviere-schema": "0.6.3",
39
- "@living-architecture/riviere-query": "0.6.3"
37
+ "@living-architecture/riviere-query": "0.6.3",
38
+ "@living-architecture/riviere-extract-ts": "0.4.3",
39
+ "@living-architecture/riviere-schema": "0.6.3"
40
40
  }
41
41
  }