ts2famix 1.0.15 → 1.0.16

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.
@@ -52,14 +52,14 @@ class FamixFunctionsTypes {
52
52
  let fmxType;
53
53
  let isPrimitiveType = false;
54
54
  let isParameterizedType = false;
55
- console.info("Creating (or getting) type: " + typeName + "' of element: " + element.getText() + " of kind: " + element.getKindName());
55
+ console.info("Creating (or getting) type: '" + typeName + "' of element: " + element.getText() + " of kind: " + element.getKindName());
56
56
  const typeAncestor = this.findTypeAncestor(element);
57
57
  const ancestorFullyQualifiedName = this.FQNFunctions.getFQN(typeAncestor);
58
58
  const ancestor = this.getFamixEntityByFullyQualifiedName(ancestorFullyQualifiedName);
59
59
  if (!ancestor) {
60
60
  throw new Error(`Ancestor ${ancestorFullyQualifiedName} not found.`);
61
61
  }
62
- if (typeName === "number" || typeName === "string" || typeName === "boolean" || typeName === "bigint" || typeName === "symbol" || typeName === "undefined" || typeName === "null") {
62
+ if (typeName === "number" || typeName === "string" || typeName === "boolean" || typeName === "bigint" || typeName === "symbol" || typeName === "undefined" || typeName === "null" || typeName === "any" || typeName === "unknown" || typeName === "never" || typeName === "void") {
63
63
  isPrimitiveType = true;
64
64
  }
65
65
  if (!isPrimitiveType && typeName.includes("<") && typeName.includes(">") && !(typeName.includes("=>"))) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ts2famix",
3
- "version": "1.0.15",
3
+ "version": "1.0.16",
4
4
  "description": "A TypeScript to JSON importer for Moose 10.",
5
5
  "main": "dist/ts2famix-cli.js",
6
6
  "scripts": {
@@ -26,13 +26,13 @@
26
26
  },
27
27
  "license": "MIT",
28
28
  "devDependencies": {
29
- "@types/jest": "^29.5.4",
30
- "@types/node": "^20.6.0",
29
+ "@types/jest": "^29.5.5",
30
+ "@types/node": "^20.6.3",
31
31
  "@types/yargs": "^17.0.24",
32
- "@typescript-eslint/eslint-plugin": "^6.6.0",
33
- "@typescript-eslint/parser": "^6.6.0",
32
+ "@typescript-eslint/eslint-plugin": "^6.7.2",
33
+ "@typescript-eslint/parser": "^6.7.2",
34
34
  "eslint": "^8.49.0",
35
- "jest": "^29.6.4",
35
+ "jest": "^29.7.0",
36
36
  "tplant": "^3.1.2",
37
37
  "ts-jest": "^29.1.1",
38
38
  "ts-node": "^10.9.1",
@@ -34,7 +34,7 @@ export class FamixFunctionsTypes {
34
34
  let isPrimitiveType = false;
35
35
  let isParameterizedType = false;
36
36
 
37
- console.info("Creating (or getting) type: " + typeName + "' of element: " + element.getText() + " of kind: " + element.getKindName());
37
+ console.info("Creating (or getting) type: '" + typeName + "' of element: " + element.getText() + " of kind: " + element.getKindName());
38
38
 
39
39
  const typeAncestor = this.findTypeAncestor(element);
40
40
  const ancestorFullyQualifiedName = this.FQNFunctions.getFQN(typeAncestor);
@@ -43,7 +43,7 @@ export class FamixFunctionsTypes {
43
43
  throw new Error(`Ancestor ${ancestorFullyQualifiedName} not found.`);
44
44
  }
45
45
 
46
- if (typeName === "number" || typeName === "string" || typeName === "boolean" || typeName === "bigint" || typeName === "symbol" || typeName === "undefined" || typeName === "null") {
46
+ if (typeName === "number" || typeName === "string" || typeName === "boolean" || typeName === "bigint" || typeName === "symbol" || typeName === "undefined" || typeName === "null" || typeName === "any" || typeName === "unknown" || typeName === "never" || typeName === "void") {
47
47
  isPrimitiveType = true;
48
48
  }
49
49