@c4a/extract-ts 0.6.18 → 0.6.19
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.js +1 -2
- package/package.json +1 -1
package/index.js
CHANGED
|
@@ -12631,8 +12631,7 @@ var BUILTIN_TYPES = new Set([
|
|
|
12631
12631
|
var countLines = (source) => {
|
|
12632
12632
|
if (!source)
|
|
12633
12633
|
return 0;
|
|
12634
|
-
|
|
12635
|
-
return parts[parts.length - 1] === "" ? parts.length - 1 : parts.length;
|
|
12634
|
+
return source.split(/\r\n|\r|\n/).filter((line) => line.trim().length > 0).length;
|
|
12636
12635
|
};
|
|
12637
12636
|
var createRelation = (type, from, to, isExternal, line) => ({
|
|
12638
12637
|
type,
|