technical-debt-radar 1.3.0 → 1.3.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.
Files changed (2) hide show
  1. package/dist/index.js +1 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -14744,7 +14744,7 @@ var require_perf_pattern_detector = __commonJS({
14744
14744
  if (ts_morph_1.Node.isPropertyAccessExpression(obj)) {
14745
14745
  const propName = obj.getName();
14746
14746
  const thisExpr = obj.getExpression();
14747
- if (ts_morph_1.Node.isThisExpression(thisExpr) || ts_morph_1.Node.isIdentifier(thisExpr) && thisExpr.getText() === "this") {
14747
+ if (thisExpr.getKind() === ts_morph_1.SyntaxKind.ThisKeyword) {
14748
14748
  const match = propName.match(/^(\w+?)(Model|Repository|Repo|Service|Collection)$/i);
14749
14749
  if (match)
14750
14750
  return match[1].charAt(0).toUpperCase() + match[1].slice(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "technical-debt-radar",
3
- "version": "1.3.0",
3
+ "version": "1.3.1",
4
4
  "description": "Stop Node.js production crashes before merge. 47 detection patterns across 5 categories.",
5
5
  "bin": {
6
6
  "radar": "dist/index.js",