@cap-js/cds-typer 0.20.1 → 0.20.2
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 +4 -0
- package/lib/visitor.js +1 -1
- package/package.json +4 -2
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,10 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/).
|
|
|
6
6
|
|
|
7
7
|
## Version 0.21.0 - TBD
|
|
8
8
|
|
|
9
|
+
## Version 0.20.2 - 2024-04-29
|
|
10
|
+
### Fixed
|
|
11
|
+
- Referring to a property's type in a function/ action parameter no longer refers to the enclosing entity
|
|
12
|
+
|
|
9
13
|
## Version 0.20.1 - 2024-04-24
|
|
10
14
|
### Fixed
|
|
11
15
|
- Void actions no longer crash the type generation process
|
package/lib/visitor.js
CHANGED
|
@@ -353,7 +353,7 @@ class Visitor {
|
|
|
353
353
|
const paramType = this.resolver.resolveAndRequire(type, file)
|
|
354
354
|
return this.inlineDeclarationResolver.getPropertyDatatype(
|
|
355
355
|
paramType,
|
|
356
|
-
paramType.typeInfo.isArray ? paramType.typeName : paramType.typeInfo.inflection.singular
|
|
356
|
+
paramType.typeInfo.isArray || paramType.typeInfo.isDeepRequire ? paramType.typeName : paramType.typeInfo.inflection.singular
|
|
357
357
|
)
|
|
358
358
|
}
|
|
359
359
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@cap-js/cds-typer",
|
|
3
|
-
"version": "0.20.
|
|
3
|
+
"version": "0.20.2",
|
|
4
4
|
"description": "Generates .ts files for a CDS model to receive code completion in VS Code",
|
|
5
5
|
"main": "index.js",
|
|
6
6
|
"repository": "github:cap-js/cds-typer",
|
|
@@ -15,8 +15,9 @@
|
|
|
15
15
|
"scripts": {
|
|
16
16
|
"test:unit": "jest --projects test/unit.jest.config.js",
|
|
17
17
|
"test:integration": "jest --projects test/int.jest.config.js",
|
|
18
|
+
"test:smoke": "jest --projects test/smoke.jest.config.js",
|
|
18
19
|
"test:all": "jest",
|
|
19
|
-
"test": "npm run test:unit",
|
|
20
|
+
"test": "npm run test:smoke && npm run test:unit",
|
|
20
21
|
"lint": "npx eslint .",
|
|
21
22
|
"cli": "node lib/cli.js",
|
|
22
23
|
"doc:clean": "rm -rf ./doc",
|
|
@@ -49,6 +50,7 @@
|
|
|
49
50
|
},
|
|
50
51
|
"jest": {
|
|
51
52
|
"projects": [
|
|
53
|
+
"test/smoke.jest.config.js",
|
|
52
54
|
"test/unit.jest.config.js"
|
|
53
55
|
]
|
|
54
56
|
}
|