Skip to content

Commit bda2918

Browse files
committed
sec fixes
1 parent 82b914e commit bda2918

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

dev-packages/test-utils/src/mock-sentry-server.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import http from 'node:http';
22
import fs from 'node:fs';
33
import zlib from 'node:zlib';
44
import path from 'node:path';
5-
import { execSync } from 'node:child_process';
5+
import { execFileSync } from 'node:child_process';
66
import type { RequestRecord } from './sourcemap-upload-assertions';
77

88
export interface MockSentryServerOptions {
@@ -115,7 +115,7 @@ export function startMockSentryServer(options: MockSentryServerOptions = {}): Mo
115115
// Extract the zip to inspect contents
116116
try {
117117
fs.mkdirSync(bundleDir, { recursive: true });
118-
execSync(`unzip -q -o "${zipFile}" -d "${bundleDir}" 2>/dev/null`);
118+
execFileSync('unzip', ['-q', '-o', zipFile, '-d', bundleDir], { stdio: 'ignore' });
119119

120120
// Read manifest.json if present
121121
const manifestPath = path.join(bundleDir, 'manifest.json');

0 commit comments

Comments
 (0)