@kaynooo/cli-code 0.7.0 → 0.7.1

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/dist/hotspots.js CHANGED
@@ -943,7 +943,7 @@ var {Glob } = globalThis.Bun;
943
943
  var SESSION_FILES = new Glob("*.json");
944
944
  var ACCOUNT_DIRS = new Glob("*/sessions");
945
945
  // package.json
946
- var version = "0.7.0";
946
+ var version = "0.7.1";
947
947
 
948
948
  // src/churn.ts
949
949
  var SOURCE = /\.(?:[cm]?[jt]sx?|vue|svelte|astro|py|go|rs|rb|php|java|kt|swift|cs|c|cc|cpp|h|hpp|scala|dart|lua|sh|zsh|fish)$/;
@@ -1025,14 +1025,14 @@ async function readText(path) {
1025
1025
  }
1026
1026
 
1027
1027
  // src/units.ts
1028
- var CONTAINER = /\b(?:class|impl|trait|interface|namespace|module|object|mod|struct|enum)\b/;
1028
+ var CONTAINER = /^(?:(?:export|default|declare|abstract|final|readonly|public|pub|private|protected|internal|sealed|data|open)\s+)*(?:class|impl|trait|interface|namespace|module|object|mod|struct|enum)\b/;
1029
1029
  var CLOSER = /^[\s)\]};]*$|^\s*(?:\/\/|\/\*|\*|#)/;
1030
1030
  var LONGEST_NAME2 = 60;
1031
1031
  function indentOf(line) {
1032
1032
  return line.length - line.trimStart().length;
1033
1033
  }
1034
1034
  function opens(line, indent) {
1035
- return line.trim() !== "" && indentOf(line) === indent && !CLOSER.test(line);
1035
+ return line.trim() !== "" && line.trim() !== "{" && indentOf(line) === indent && !CLOSER.test(line);
1036
1036
  }
1037
1037
  function unitsAt(lines, from, to, indent) {
1038
1038
  const starts = [];
package/dist/peek.js CHANGED
@@ -944,7 +944,7 @@ var {Glob } = globalThis.Bun;
944
944
  var SESSION_FILES = new Glob("*.json");
945
945
  var ACCOUNT_DIRS = new Glob("*/sessions");
946
946
  // package.json
947
- var version = "0.7.0";
947
+ var version = "0.7.1";
948
948
 
949
949
  // src/files.ts
950
950
  import { existsSync, readdirSync, statSync } from "fs";
package/dist/todo-scan.js CHANGED
@@ -943,7 +943,7 @@ var {Glob } = globalThis.Bun;
943
943
  var SESSION_FILES = new Glob("*.json");
944
944
  var ACCOUNT_DIRS = new Glob("*/sessions");
945
945
  // package.json
946
- var version = "0.7.0";
946
+ var version = "0.7.1";
947
947
 
948
948
  // src/files.ts
949
949
  import { existsSync, readdirSync, statSync } from "fs";
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@kaynooo/cli-code",
3
3
  "type": "module",
4
- "version": "0.7.0",
4
+ "version": "0.7.1",
5
5
  "description": "peek, todo-scan and hotspots: source read by spans, symbols and outlines in one call, the TODO and issue-reference comments of a repository with stale ones flagged, and the files ranked by complexity times git churn.",
6
6
  "author": "Kaynooo <contact@kaynooo.fr>",
7
7
  "license": "MIT",