@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.
Files changed (2) hide show
  1. package/index.js +1 -2
  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
- const parts = source.split(/\r\n|\r|\n/);
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@c4a/extract-ts",
3
- "version": "0.6.18",
3
+ "version": "0.6.19",
4
4
  "type": "module",
5
5
  "description": "TypeScript extraction plugin for the Context ExtractionResult v2 contract",
6
6
  "license": "MIT",