arcvision 0.1.7 → 0.1.10

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/index.js CHANGED
@@ -56271,8 +56271,9 @@ var require_parser = __commonJS({
56271
56271
  let ast;
56272
56272
  try {
56273
56273
  ast = parser.parse(content, {
56274
- sourceType: "module",
56275
- plugins: ["jsx", "typescript", "classProperties", "dynamicImport"]
56274
+ sourceType: "unambiguous",
56275
+ // Auto-detect between script and module
56276
+ plugins: ["jsx", "typescript", "classProperties", "dynamicImport", "decorators-legacy"]
56276
56277
  });
56277
56278
  } catch (error) {
56278
56279
  throw error;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "arcvision",
3
- "version": "0.1.7",
3
+ "version": "0.1.10",
4
4
  "description": "Architecture scanner for modern codebases",
5
5
  "bin": {
6
6
  "arcvision": "./dist/index.js"
@@ -9,8 +9,8 @@ function parseFile(filePath) {
9
9
 
10
10
  try {
11
11
  ast = parser.parse(content, {
12
- sourceType: 'module',
13
- plugins: ['jsx', 'typescript', 'classProperties', 'dynamicImport']
12
+ sourceType: 'unambiguous', // Auto-detect between script and module
13
+ plugins: ['jsx', 'typescript', 'classProperties', 'dynamicImport', 'decorators-legacy']
14
14
  });
15
15
  } catch (error) {
16
16
  // Re-throw the error to be handled by the scanner