@poe-platform/safe-bash 0.1.750 → 0.1.752
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/safe-bash/chunks/{chunk-4GK4FAT6.js → chunk-637A2MLA.js} +8 -6
- package/dist/safe-bash/chunks/{chunk-MUWJPSGN.js → chunk-B7IBQSD4.js} +7 -5
- package/dist/safe-bash/chunks/{chunk-U7DRVFRD.js → chunk-W7QHCGDH.js} +42 -9
- package/dist/safe-bash/chunks/{src-YKSQQDD3.js → src-XCSZZ35R.js} +2 -2
- package/dist/safe-bash/commands/pr/index.browser.js +1 -1
- package/dist/safe-bash/commands/text.js +11 -3
- package/dist/safe-bash/commands/time-env/shared.d.ts +1 -0
- package/dist/safe-bash/commands/time-env/shared.js +6 -5
- package/dist/safe-bash/commands/time-env/sleep.js +6 -3
- package/dist/safe-bash/core.browser.js +190 -171
- package/dist/safe-bash/shell/pattern.js +6 -1
- package/dist/safe-bash/shell/runtime.d.ts +3 -0
- package/dist/safe-bash/shell/runtime.js +246 -207
- package/dist/safe-bash-command-ssconvert/index.js +41 -8
- package/package.json +2 -2
|
@@ -335,7 +335,12 @@ function getCompiledSyncPatternRegex(pattern) {
|
|
|
335
335
|
contents = "^";
|
|
336
336
|
cursor++;
|
|
337
337
|
}
|
|
338
|
-
|
|
338
|
+
// Bash treats a closing bracket at the start of a class as a member.
|
|
339
|
+
if (pattern.charCodeAt(cursor) === 93) {
|
|
340
|
+
contents += "\\]";
|
|
341
|
+
cursor++;
|
|
342
|
+
}
|
|
343
|
+
if (cursor >= pattern.length) {
|
|
339
344
|
syncPatternRegexCache.set(pattern, null);
|
|
340
345
|
return null;
|
|
341
346
|
}
|
|
@@ -514,6 +514,8 @@ export declare class Runtime {
|
|
|
514
514
|
private evalSyncNestedForWords;
|
|
515
515
|
private isSyncEchoCallOk;
|
|
516
516
|
private extractSyncReadHereStringSpec;
|
|
517
|
+
private canSyncLoopConditionalOperands;
|
|
518
|
+
private isSyncSubEchoCallOk;
|
|
517
519
|
private isPureSyncSubIfOrCase;
|
|
518
520
|
private canSyncLoopBody;
|
|
519
521
|
private extractIntLoopStep;
|
|
@@ -542,6 +544,7 @@ export declare class Runtime {
|
|
|
542
544
|
private _syncLoopAction;
|
|
543
545
|
private flushSyncStdoutBatch;
|
|
544
546
|
private writeSyncStdoutText;
|
|
547
|
+
private runSyncDiscardStep;
|
|
545
548
|
private writeSyncRedirectStep;
|
|
546
549
|
private runSyncArithForFallback;
|
|
547
550
|
private _syncLoopFnCheckDepth;
|