@pobammer-ts/eslint-cease-nonsense-rules 1.5.1 → 1.5.2

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.
@@ -1,5 +1,5 @@
1
1
  {
2
- "commit": "50d956502eeafe0ba32da6f4d873c0f6dc2ab2fd",
3
- "time": "2025-12-11T02:25:34.184Z",
4
- "version": "1.5.1"
2
+ "commit": "12c06ad5566d08fbf3f48f5203aff7fdc61a801f",
3
+ "time": "2025-12-11T22:26:23.456Z",
4
+ "version": "1.5.2"
5
5
  }
package/dist/index.js CHANGED
@@ -20249,14 +20249,15 @@ function collectCaptures(node, sourceCode) {
20249
20249
  function parseDependencies(node, sourceCode) {
20250
20250
  const dependencies4 = new Array;
20251
20251
  for (const element of node.elements) {
20252
- if (!element || element.type === TSESTree9.AST_NODE_TYPES.SpreadElement)
20252
+ if (!element)
20253
20253
  continue;
20254
- const name = nodeToDependencyString(element, sourceCode);
20255
- const depth = getMemberExpressionDepth(element);
20254
+ const actualNode = element.type === TSESTree9.AST_NODE_TYPES.SpreadElement ? element.argument : element;
20255
+ const name = nodeToDependencyString(actualNode, sourceCode);
20256
+ const depth = getMemberExpressionDepth(actualNode);
20256
20257
  dependencies4.push({
20257
20258
  depth,
20258
20259
  name,
20259
- node: element
20260
+ node: actualNode
20260
20261
  });
20261
20262
  }
20262
20263
  return dependencies4;
@@ -21061,4 +21062,4 @@ export {
21061
21062
  createBanInstancesOptions
21062
21063
  };
21063
21064
 
21064
- //# debugId=CF8A7F40832E416164756E2164756E21
21065
+ //# debugId=EA151AE69FFBBA3C64756E2164756E21