dagger icon indicating copy to clipboard operation
dagger copied to clipboard

🐞 Node.JS : Directory.withNewFile escape error

Open zeroware opened this issue 3 years ago • 0 comments

What is the issue?

It seems that the contents arguments of the Directory.withNewFile is not properly escaped

Log output

Syntax Error GraphQL request (2:14762) Expected Name, found : [...]

Steps to reproduce

   const stringWithQuotes = "This string has quotes \""
   const newFile = await client
       .container()
       .directory("/")
       .withNewFile("myfile", stringWithQuotes)
       .file("myfile").id()

Dagger version

dagger node 0.1.1

OS version

Linux 5.15

zeroware avatar Nov 24 '22 13:11 zeroware