@brainervirus/workit-pi 8.26.0 → 8.26.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/workit.js +0 -4
- package/package.json +1 -1
package/dist/workit.js
CHANGED
|
@@ -21641,7 +21641,6 @@ var ALLOWED = new Set(WORKIT_ALLOWED_VERBS);
|
|
|
21641
21641
|
var isBypass = (word) => WORKIT_BYPASS_FLAGS.some((flag) => word === flag || word.startsWith(`${flag}=`));
|
|
21642
21642
|
var isWorkitWord = (word) => /^(?:.*[\\/])?workit(?:-cli)?$/u.test(word);
|
|
21643
21643
|
var bypassReason = (flag) => `Workit: \`${flag}\` overrides a Workit gate, so the user decides this call (no allow rule covers it).`;
|
|
21644
|
-
var EXPANSION_REASON = "Workit: an expansion before `--` could become a bypass flag, so the user decides this call (no allow rule covers it).";
|
|
21645
21644
|
var workitBypassFlag = (command, dialect = "posix") => {
|
|
21646
21645
|
for (const segment of segmentsOf(command, dialect)) {
|
|
21647
21646
|
if (segment.unanalyzable) {
|
|
@@ -21659,9 +21658,6 @@ var workitBypassFlag = (command, dialect = "posix") => {
|
|
|
21659
21658
|
const flag = (end < 0 ? words : words.slice(0, end)).find(isBypass);
|
|
21660
21659
|
if (flag)
|
|
21661
21660
|
return bypassReason(flag.split("=")[0] ?? flag);
|
|
21662
|
-
const limit = start + 1 + (end < 0 ? words.length : end);
|
|
21663
|
-
if (segment.expands?.some((index) => index > start && index < limit))
|
|
21664
|
-
return EXPANSION_REASON;
|
|
21665
21661
|
}
|
|
21666
21662
|
return null;
|
|
21667
21663
|
};
|