pasika 0.10.55 → 0.10.56

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.
@@ -5172,7 +5172,8 @@ var THRESHOLD_METRICS = ["lines", "functions", "branches", "statements"];
5172
5172
  var SOURCE_GLOB_PATTERN2 = /(?:^|[^a-z])(?:[cm]?[jt]sx?)(?:[^a-z]|$)/i;
5173
5173
  var COVERAGE_FLAG_PATTERN = /(?:^|\s)--coverage(?:[=\s]|$)/;
5174
5174
  var RELATED_PATTERN = /\brelated\b/;
5175
- var AUTO_UPDATE_PATTERN = /autoUpdate\s*:\s*\(\s*newThreshold\s*,\s*previousThreshold\s*\)\s*=>\s*Math\.max\(\s*Number\(\s*String\(\s*previousThreshold\s*\)\s*\)\s*,\s*Math\.floor\(\s*\(\s*newThreshold\s*-\s*0\.1\s*\)\s*\*\s*10\s*\)\s*\/\s*10\s*\)/;
5175
+ var AUTO_UPDATE_TRUE_PATTERN = /autoUpdate\s*:\s*true\b/;
5176
+ var BUFFERED_AUTO_UPDATE_PATTERN = /autoUpdate\s*:\s*\(\s*newThreshold\s*,\s*previousThreshold\s*\)\s*=>\s*Math\.max\(\s*Number\(\s*String\(\s*previousThreshold\s*\)\s*\)\s*,\s*Math\.floor\(\s*\(\s*newThreshold\s*-\s*0\.1\s*\)\s*\*\s*10\s*\)\s*\/\s*10\s*\)/;
5176
5177
  var vitestCoverageRule = {
5177
5178
  meta: {
5178
5179
  schema: [],
@@ -5231,10 +5232,10 @@ var vitestCoverageRule = {
5231
5232
  context.report({ node, message: `${configName} must set a coverage threshold above zero for ${metric}.` });
5232
5233
  }
5233
5234
  }
5234
- if (!AUTO_UPDATE_PATTERN.test(content)) {
5235
+ if (!AUTO_UPDATE_TRUE_PATTERN.test(content) && !BUFFERED_AUTO_UPDATE_PATTERN.test(content)) {
5235
5236
  context.report({
5236
5237
  node,
5237
- message: `${configName} must set coverage.thresholds.autoUpdate to the monotonic 0.1-point buffered formatter.`
5238
+ message: `${configName} must enable coverage.thresholds.autoUpdate with true or the monotonic 0.1-point buffered formatter.`
5238
5239
  });
5239
5240
  }
5240
5241
  const stagedTests = scriptMembers.find((member) => memberName5(member) === "test:unit:staged");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pasika",
3
- "version": "0.10.55",
3
+ "version": "0.10.56",
4
4
  "description": "Reusable agent setup package",
5
5
  "repository": {
6
6
  "type": "git",