@wrongstack/tools 0.277.2 → 0.280.0
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/bash.js +2 -2
- package/dist/bash.js.map +1 -1
- package/dist/builtin.js +314 -15
- package/dist/builtin.js.map +1 -1
- package/dist/codebase-index/index.js +12 -11
- package/dist/codebase-index/index.js.map +1 -1
- package/dist/codebase-index/worker.js +12 -11
- package/dist/codebase-index/worker.js.map +1 -1
- package/dist/exec-Ca3fnpUh.d.ts +121 -0
- package/dist/exec.d.ts +2 -39
- package/dist/exec.js +322 -11
- package/dist/exec.js.map +1 -1
- package/dist/index.d.ts +46 -3
- package/dist/index.js +629 -153
- package/dist/index.js.map +1 -1
- package/dist/install.js.map +1 -1
- package/dist/json.js +0 -1
- package/dist/json.js.map +1 -1
- package/dist/logs.js.map +1 -1
- package/dist/pack.js +314 -15
- package/dist/pack.js.map +1 -1
- package/dist/scaffold.js.map +1 -1
- package/dist/tool-icons.js +6 -6
- package/dist/tool-icons.js.map +1 -1
- package/package.json +2 -2
package/dist/bash.js
CHANGED
|
@@ -1340,7 +1340,7 @@ function looksLikePowerShell(command) {
|
|
|
1340
1340
|
if (/&\s+\$/.test(trimmed)) return true;
|
|
1341
1341
|
if (/(^|\s)@\s*\(/.test(trimmed)) return true;
|
|
1342
1342
|
if (/(^|\s)@\{/.test(trimmed)) return true;
|
|
1343
|
-
if (/(?:^|[\s
|
|
1343
|
+
if (/(?:^|[\s[({,;])(?:-eq|-ne|-lt|-gt|-le|-ge|-like|-notlike|-match|-notmatch|-contains|-notcontains|-in|-notin|-and|-or|-not|-band|-bor|-bxor|-replace|-isplit|-csplit|-osplit|-join|-is|-as|-f)(?:$|[\s\])},;])/i.test(trimmed)) {
|
|
1344
1344
|
return true;
|
|
1345
1345
|
}
|
|
1346
1346
|
if (PS_VERB_RE.test(trimmed)) return true;
|
|
@@ -1367,7 +1367,7 @@ function looksLikePowerShellExtended(command) {
|
|
|
1367
1367
|
return true;
|
|
1368
1368
|
}
|
|
1369
1369
|
if (/^\s*<#|#>\s*$/m.test(trimmed)) return true;
|
|
1370
|
-
if (/(?:^|\s)[
|
|
1370
|
+
if (/(?:^|\s)[-//](?:AsPlainText|PipelineVariable|pv|FilterHashtable|OutVariable|ov)(?:\s|=|$)/i.test(trimmed)) {
|
|
1371
1371
|
return true;
|
|
1372
1372
|
}
|
|
1373
1373
|
return false;
|