tweak: temporarily declare local isTextualMimeType until import is fixes.
This commit will likely be reverted
This commit is contained in:
parent
85c5a33a5a
commit
c7f7928ce6
|
|
@ -20,7 +20,14 @@ import { ImageDiffView } from '@web/shared/imageDiffView';
|
||||||
import type { MultiTraceModel } from './modelUtil';
|
import type { MultiTraceModel } from './modelUtil';
|
||||||
import { PlaceholderPanel } from './placeholderPanel';
|
import { PlaceholderPanel } from './placeholderPanel';
|
||||||
import type { AfterActionTraceEventAttachment } from '@trace/trace';
|
import type { AfterActionTraceEventAttachment } from '@trace/trace';
|
||||||
import { isTextualMimeType } from 'playwright-core/lib/utils';
|
|
||||||
|
// TODO: remove local function and restore import
|
||||||
|
// import { isTextualMimeType } from 'playwright-core/lib/utils';
|
||||||
|
|
||||||
|
function isTextualMimeType(mimeType: string) {
|
||||||
|
return !!mimeType.match(/^(text\/.*?|application\/(json|(x-)?javascript|xml.*?|ecmascript|graphql|x-www-form-urlencoded)|image\/svg(\+xml)?|application\/.*?(\+json|\+xml))(;\s*charset=.*)?$/);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
type Attachment = AfterActionTraceEventAttachment & { traceUrl: string };
|
type Attachment = AfterActionTraceEventAttachment & { traceUrl: string };
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue