From 284ef24deb1985a8238b8d5f59a53900bed9d2e8 Mon Sep 17 00:00:00 2001 From: Sidharth Vinod Date: Sun, 19 Feb 2023 21:43:50 +0530 Subject: [PATCH] fix viewer.js --- .esbuild/build.ts | 2 +- cypress/platform/e2e.html | 7 ++++++- cypress/platform/viewer.js | 9 +++++++-- cypress/platform/xss.html | 21 +++++++++++---------- package.json | 1 - pnpm-lock.yaml | 13 +++++-------- 6 files changed, 30 insertions(+), 23 deletions(-) diff --git a/.esbuild/build.ts b/.esbuild/build.ts index 3005c2f70..b3f4c09a3 100644 --- a/.esbuild/build.ts +++ b/.esbuild/build.ts @@ -23,7 +23,7 @@ const handler = (e) => { }; const main = async () => { - await mkdir('stats'); + await mkdir('stats').catch(() => {}); const packageNames = Object.keys(packageOptions) as (keyof typeof packageOptions)[]; for (const pkg of packageNames) { await buildPackage(pkg).catch(handler); diff --git a/cypress/platform/e2e.html b/cypress/platform/e2e.html index 949fa5798..eac2017e1 100644 --- a/cypress/platform/e2e.html +++ b/cypress/platform/e2e.html @@ -1,7 +1,12 @@ - + - +