fix(lib): 🐛 Encode hidden variables properly
This commit is contained in:
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "typebot-js",
|
||||
"version": "2.2.1",
|
||||
"version": "2.2.2",
|
||||
"main": "dist/index.js",
|
||||
"unpkg": "dist/index.umd.min.js",
|
||||
"license": "AGPL-3.0-or-later",
|
||||
|
@ -37,7 +37,10 @@ const parseStarterVariables = (starterVariables?: {
|
||||
starterVariables
|
||||
? `&${Object.keys(starterVariables)
|
||||
.filter((key) => starterVariables[key])
|
||||
.map((key) => `${key}=${starterVariables[key]}`)
|
||||
.map(
|
||||
(key) =>
|
||||
`${key}=${encodeURIComponent(starterVariables[key] as string)}`
|
||||
)
|
||||
.join('&')}`
|
||||
: ''
|
||||
|
||||
|
Reference in New Issue
Block a user