⬆️ Upgrade dependencies
This commit is contained in:
@@ -15,46 +15,46 @@
|
||||
"dependencies": {
|
||||
"@dqbd/tiktoken": "^1.0.7",
|
||||
"@planetscale/database": "^1.7.0",
|
||||
"@sentry/nextjs": "7.50.0",
|
||||
"@trpc/server": "10.23.0",
|
||||
"@sentry/nextjs": "7.53.1",
|
||||
"@trpc/server": "10.27.3",
|
||||
"@typebot.io/js": "workspace:*",
|
||||
"@typebot.io/prisma": "workspace:*",
|
||||
"@typebot.io/react": "workspace:*",
|
||||
"aws-sdk": "2.1369.0",
|
||||
"aws-sdk": "2.1384.0",
|
||||
"bot-engine": "workspace:*",
|
||||
"cors": "2.8.5",
|
||||
"eventsource-parser": "^1.0.0",
|
||||
"google-spreadsheet": "3.3.0",
|
||||
"got": "12.6.0",
|
||||
"libphonenumber-js": "1.10.28",
|
||||
"next": "13.3.4",
|
||||
"libphonenumber-js": "1.10.30",
|
||||
"next": "13.4.3",
|
||||
"nextjs-cors": "2.1.2",
|
||||
"nodemailer": "6.9.1",
|
||||
"nodemailer": "6.9.2",
|
||||
"openai": "3.2.1",
|
||||
"qs": "6.11.1",
|
||||
"qs": "6.11.2",
|
||||
"react": "18.2.0",
|
||||
"react-dom": "18.2.0",
|
||||
"stripe": "12.3.0",
|
||||
"trpc-openapi": "1.1.2"
|
||||
"stripe": "12.6.0",
|
||||
"trpc-openapi": "1.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@faire/mjml-react": "3.2.0",
|
||||
"@faire/mjml-react": "3.3.0",
|
||||
"@paralleldrive/cuid2": "2.2.0",
|
||||
"@playwright/test": "1.33.0",
|
||||
"@playwright/test": "1.34.3",
|
||||
"@typebot.io/emails": "workspace:*",
|
||||
"@typebot.io/lib": "workspace:*",
|
||||
"@typebot.io/schemas": "workspace:*",
|
||||
"@typebot.io/tsconfig": "workspace:*",
|
||||
"@types/cors": "2.8.13",
|
||||
"@types/google-spreadsheet": "3.3.1",
|
||||
"@types/node": "18.16.3",
|
||||
"@types/nodemailer": "6.4.7",
|
||||
"@types/google-spreadsheet": "3.3.2",
|
||||
"@types/node": "20.2.3",
|
||||
"@types/nodemailer": "6.4.8",
|
||||
"@types/papaparse": "5.3.7",
|
||||
"@types/qs": "6.9.7",
|
||||
"@types/react": "18.2.0",
|
||||
"@types/react": "18.2.7",
|
||||
"@types/sanitize-html": "2.9.0",
|
||||
"dotenv": "16.0.3",
|
||||
"eslint": "8.39.0",
|
||||
"eslint": "8.41.0",
|
||||
"eslint-config-custom": "workspace:*",
|
||||
"google-auth-library": "8.8.0",
|
||||
"node-fetch": "3.3.1",
|
||||
|
||||
@@ -40,9 +40,10 @@ const createStripePaymentIntent =
|
||||
: stripeKeys.live.secretKey,
|
||||
{ apiVersion: '2022-11-15' }
|
||||
)
|
||||
const amount =
|
||||
const amount = Math.round(
|
||||
Number(parseVariables(variables)(options.amount)) *
|
||||
(isZeroDecimalCurrency(options.currency) ? 1 : 100)
|
||||
(isZeroDecimalCurrency(options.currency) ? 1 : 100)
|
||||
)
|
||||
if (isNaN(amount))
|
||||
throw new TRPCError({
|
||||
code: 'BAD_REQUEST',
|
||||
|
||||
@@ -61,11 +61,6 @@ const evaluateSetVariableExpression =
|
||||
const evaluating = parseVariables(variables, { fieldToParse: 'id' })(
|
||||
str.includes('return ') ? str : `return ${str}`
|
||||
)
|
||||
console.log(
|
||||
variables.map((v) => v.id),
|
||||
...variables.map((v) => parseGuessedValueType(v.value)),
|
||||
evaluating
|
||||
)
|
||||
try {
|
||||
const func = Function(...variables.map((v) => v.id), evaluating)
|
||||
return func(...variables.map((v) => parseGuessedValueType(v.value)))
|
||||
|
||||
Reference in New Issue
Block a user