mirror of
https://github.com/mountain-loop/yaak.git
synced 2026-03-21 17:09:37 +01:00
shell-quote doesn't support $'...' (ANSI-C quoting), which is a bash extension used by browsers when copying requests as cURL. It misinterprets the $ as variable expansion, mangling JSON bodies and escape sequences like \n, \uXXXX, \r, etc. Switches to shlex which handles $'...' natively. Adds splitCommands() to handle command separation (;, newlines) that shell-quote used to do, and a tokenize() wrapper with fallback for malformed input. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
16 lines
322 B
JSON
16 lines
322 B
JSON
{
|
|
"name": "@yaak/importer-curl",
|
|
"displayName": "cURL Importer",
|
|
"description": "Import requests from cURL commands",
|
|
"private": true,
|
|
"version": "0.1.0",
|
|
"scripts": {
|
|
"build": "yaakcli build",
|
|
"dev": "yaakcli dev",
|
|
"test": "vitest --run tests"
|
|
},
|
|
"dependencies": {
|
|
"shlex": "^3.0.0"
|
|
}
|
|
}
|