@runtime-type-inspector/transpiler 2.0.5 → 2.0.6
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 +2 -2
- package/index.mjs +3 -3
- package/package.json +1 -1
package/index.cjs
CHANGED
|
@@ -562,11 +562,11 @@
|
|
|
562
562
|
key: "toSource",
|
|
563
563
|
value: function toSource(node) {
|
|
564
564
|
var _node$extra;
|
|
565
|
-
var leadingComments = node.leadingComments,
|
|
566
|
-
trailingComments = node.trailingComments;
|
|
567
565
|
if (node === null) {
|
|
568
566
|
return '';
|
|
569
567
|
}
|
|
568
|
+
var leadingComments = node.leadingComments,
|
|
569
|
+
trailingComments = node.trailingComments;
|
|
570
570
|
if (node.type === 'File') {
|
|
571
571
|
this.parents.length = 0;
|
|
572
572
|
}
|
package/index.mjs
CHANGED
|
@@ -283,13 +283,13 @@ class Stringifier {
|
|
|
283
283
|
}
|
|
284
284
|
toSource(node) {
|
|
285
285
|
var _node$extra;
|
|
286
|
+
if (node === null) {
|
|
287
|
+
return '';
|
|
288
|
+
}
|
|
286
289
|
const {
|
|
287
290
|
leadingComments,
|
|
288
291
|
trailingComments
|
|
289
292
|
} = node;
|
|
290
|
-
if (node === null) {
|
|
291
|
-
return '';
|
|
292
|
-
}
|
|
293
293
|
if (node.type === 'File') {
|
|
294
294
|
this.parents.length = 0;
|
|
295
295
|
}
|
package/package.json
CHANGED