@runtime-type-inspector/transpiler 2.0.11 → 2.0.13
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/index.cjs +3 -3
- package/index.mjs +3 -3
- package/package.json +2 -1
package/index.cjs
CHANGED
|
@@ -1938,15 +1938,15 @@
|
|
|
1938
1938
|
i--;
|
|
1939
1939
|
while (i >= 0) {
|
|
1940
1940
|
parent = parents[i];
|
|
1941
|
-
if (parent.leadingComments) {
|
|
1942
|
-
return parent;
|
|
1943
|
-
}
|
|
1944
1941
|
if (parent.type === 'CallExpression') {
|
|
1945
1942
|
break;
|
|
1946
1943
|
}
|
|
1947
1944
|
if (nodeIsFunction(parent)) {
|
|
1948
1945
|
break;
|
|
1949
1946
|
}
|
|
1947
|
+
if (parent.leadingComments) {
|
|
1948
|
+
return parent;
|
|
1949
|
+
}
|
|
1950
1950
|
i--;
|
|
1951
1951
|
}
|
|
1952
1952
|
}
|
package/index.mjs
CHANGED
|
@@ -1607,15 +1607,15 @@ class Asserter extends Stringifier {
|
|
|
1607
1607
|
i--;
|
|
1608
1608
|
while (i >= 0) {
|
|
1609
1609
|
parent = parents[i];
|
|
1610
|
-
if (parent.leadingComments) {
|
|
1611
|
-
return parent;
|
|
1612
|
-
}
|
|
1613
1610
|
if (parent.type === 'CallExpression') {
|
|
1614
1611
|
break;
|
|
1615
1612
|
}
|
|
1616
1613
|
if (nodeIsFunction(parent)) {
|
|
1617
1614
|
break;
|
|
1618
1615
|
}
|
|
1616
|
+
if (parent.leadingComments) {
|
|
1617
|
+
return parent;
|
|
1618
|
+
}
|
|
1619
1619
|
i--;
|
|
1620
1620
|
}
|
|
1621
1621
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@runtime-type-inspector/transpiler",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.13",
|
|
4
4
|
"description": "Validating JSDoc types at runtime for high-quality types - Trust is good, control is better.",
|
|
5
5
|
"main": "./index.cjs",
|
|
6
6
|
"module": "./index.mjs",
|
|
@@ -17,6 +17,7 @@
|
|
|
17
17
|
"homepage": "https://github.com/kungfooman/RuntimeTypeInspector.js#readme",
|
|
18
18
|
"dependencies": {
|
|
19
19
|
"@babel/core": "^7.2.0",
|
|
20
|
+
"@runtime-type-inspector/runtime": "^2.0.5",
|
|
20
21
|
"typescript": "^5.1.6"
|
|
21
22
|
},
|
|
22
23
|
"files": [
|