jsii-rosetta 1.102.0 → 1.103.0
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/lib/languages/csharp.js +1 -1
- package/lib/o-tree.js +1 -1
- package/package.json +5 -5
package/lib/languages/csharp.js
CHANGED
|
@@ -119,7 +119,7 @@ class CSharpVisitor extends default_1.DefaultVisitor {
|
|
|
119
119
|
// tslint:disable-next-line:max-line-length
|
|
120
120
|
functionLike(node, renderer, opts = {}) {
|
|
121
121
|
const methodName = opts.isConstructor
|
|
122
|
-
? (0, ast_utils_1.findEnclosingClassDeclaration)(node)?.name?.text ?? 'MyClass'
|
|
122
|
+
? ((0, ast_utils_1.findEnclosingClassDeclaration)(node)?.name?.text ?? 'MyClass')
|
|
123
123
|
: renderer.updateContext({ propertyOrMethod: true }).convert(node.name);
|
|
124
124
|
const retType = (0, types_1.determineReturnType)(renderer.typeChecker, node);
|
|
125
125
|
const returnType = opts.isConstructor ? '' : this.renderType(node, retType, false, 'void', renderer);
|
package/lib/o-tree.js
CHANGED
|
@@ -31,7 +31,7 @@ class OTree {
|
|
|
31
31
|
for (const x of this.prefix) {
|
|
32
32
|
sink.write(x);
|
|
33
33
|
}
|
|
34
|
-
const popIndent = sink.requestIndentChange(meVisible ? this.options.indent ?? 0 : 0);
|
|
34
|
+
const popIndent = sink.requestIndentChange(meVisible ? (this.options.indent ?? 0) : 0);
|
|
35
35
|
let mark = sink.mark();
|
|
36
36
|
for (const child of this.children ?? []) {
|
|
37
37
|
if (this.options.separator) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsii-rosetta",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.103.0",
|
|
4
4
|
"description": "Translate TypeScript code snippets to other languages",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"bin": {
|
|
@@ -21,13 +21,13 @@
|
|
|
21
21
|
"@types/stream-json": "^1.7.7",
|
|
22
22
|
"@types/workerpool": "^6.4.7",
|
|
23
23
|
"@types/semver": "^7.5.8",
|
|
24
|
-
"jsii-build-tools": "1.
|
|
24
|
+
"jsii-build-tools": "1.103.0",
|
|
25
25
|
"memory-streams": "^0.1.3",
|
|
26
26
|
"mock-fs": "^5.2.0"
|
|
27
27
|
},
|
|
28
28
|
"dependencies": {
|
|
29
|
-
"@jsii/check-node": "1.
|
|
30
|
-
"@jsii/spec": "1.
|
|
29
|
+
"@jsii/check-node": "1.103.0",
|
|
30
|
+
"@jsii/spec": "1.103.0",
|
|
31
31
|
"commonmark": "^0.31.1",
|
|
32
32
|
"typescript": "~3.9.10",
|
|
33
33
|
"@xmldom/xmldom": "^0.8.10",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"semver": "^7.6.3",
|
|
38
38
|
"semver-intersect": "^1.5.0",
|
|
39
39
|
"fast-glob": "^3.3.2",
|
|
40
|
-
"jsii": "1.
|
|
40
|
+
"jsii": "1.103.0"
|
|
41
41
|
},
|
|
42
42
|
"license": "Apache-2.0",
|
|
43
43
|
"author": {
|