Skip to content

Commit d26574e

Browse files
AbicodexiSebastian SeitalahtiMayvisclaude
authored
deps: update shell-quote to 1.12.0 (#622)
Co-authored-by: Sebastian Seitalahti <sebastian.seitalahti@knowit.fi> Co-authored-by: Mayvis <kevin73911@gmail.com> Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
1 parent 13bdff1 commit d26574e

3 files changed

Lines changed: 15 additions & 6 deletions

File tree

‎lib/command-parser/expand-arguments.spec.ts‎

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,15 @@ it('argument placeholder is replaced and quoted properly', () => {
2626
expect(parser.parse(commandInfo)).toEqual({ ...commandInfo, command: "echo 'foo bar'" });
2727
});
2828

29+
it('argument placeholder with single quote and exclamation mark is quoted properly', () => {
30+
const parser = new ExpandArguments(["it's great!"]);
31+
const commandInfo = createCommandInfo('echo {1}');
32+
expect(parser.parse(commandInfo)).toEqual({
33+
...commandInfo,
34+
command: `echo 'it'"'"'s great!'`,
35+
});
36+
});
37+
2938
it('multiple single argument placeholders are replaced', () => {
3039
const parser = new ExpandArguments(['foo', 'bar']);
3140
const commandInfo = createCommandInfo('echo {2} {1}');

‎package.json‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
"dependencies": {
5454
"chalk": "5.6.2",
5555
"rxjs": "7.8.2",
56-
"shell-quote": "1.9.0",
56+
"shell-quote": "1.12.0",
5757
"supports-color": "10.2.2",
5858
"tree-kill": "1.2.2",
5959
"yargs": "18.0.0"

‎pnpm-lock.yaml‎

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)