@puppeteer/browsers
Advanced tools
Comparing version 2.2.3 to 2.2.4
@@ -39,7 +39,5 @@ "use strict"; | ||
const path = __importStar(require("path")); | ||
const util_1 = require("util"); | ||
const extract_zip_1 = __importDefault(require("extract-zip")); | ||
const tar_fs_1 = __importDefault(require("tar-fs")); | ||
const unbzip2_stream_1 = __importDefault(require("unbzip2-stream")); | ||
const exec = (0, util_1.promisify)(child_process_1.exec); | ||
/** | ||
@@ -91,4 +89,9 @@ * @internal | ||
async function installDMG(dmgPath, folderPath) { | ||
const { stdout } = await exec(`hdiutil attach -nobrowse -noautoopen "${dmgPath}"`); | ||
const volumes = stdout.match(/\/Volumes\/(.*)/m); | ||
const { stdout } = (0, child_process_1.spawnSync)(`hdiutil`, [ | ||
'attach', | ||
'-nobrowse', | ||
'-noautoopen', | ||
dmgPath, | ||
]); | ||
const volumes = stdout.toString('utf8').match(/\/Volumes\/(.*)/m); | ||
if (!volumes) { | ||
@@ -107,8 +110,8 @@ throw new Error(`Could not find volume path in ${stdout}`); | ||
const mountedPath = path.join(mountPath, appName); | ||
await exec(`cp -R "${mountedPath}" "${folderPath}"`); | ||
(0, child_process_1.spawnSync)('cp', ['-R', mountedPath, folderPath]); | ||
} | ||
finally { | ||
await exec(`hdiutil detach "${mountPath}" -quiet`); | ||
(0, child_process_1.spawnSync)('hdiutil', ['detach', mountPath, '-quiet']); | ||
} | ||
} | ||
//# sourceMappingURL=fileUtil.js.map |
@@ -6,11 +6,9 @@ /** | ||
*/ | ||
import { exec as execChildProcess, spawnSync } from 'child_process'; | ||
import { spawnSync } from 'child_process'; | ||
import { createReadStream } from 'fs'; | ||
import { mkdir, readdir } from 'fs/promises'; | ||
import * as path from 'path'; | ||
import { promisify } from 'util'; | ||
import extractZip from 'extract-zip'; | ||
import tar from 'tar-fs'; | ||
import bzip from 'unbzip2-stream'; | ||
const exec = promisify(execChildProcess); | ||
/** | ||
@@ -61,4 +59,9 @@ * @internal | ||
async function installDMG(dmgPath, folderPath) { | ||
const { stdout } = await exec(`hdiutil attach -nobrowse -noautoopen "${dmgPath}"`); | ||
const volumes = stdout.match(/\/Volumes\/(.*)/m); | ||
const { stdout } = spawnSync(`hdiutil`, [ | ||
'attach', | ||
'-nobrowse', | ||
'-noautoopen', | ||
dmgPath, | ||
]); | ||
const volumes = stdout.toString('utf8').match(/\/Volumes\/(.*)/m); | ||
if (!volumes) { | ||
@@ -77,8 +80,8 @@ throw new Error(`Could not find volume path in ${stdout}`); | ||
const mountedPath = path.join(mountPath, appName); | ||
await exec(`cp -R "${mountedPath}" "${folderPath}"`); | ||
spawnSync('cp', ['-R', mountedPath, folderPath]); | ||
} | ||
finally { | ||
await exec(`hdiutil detach "${mountPath}" -quiet`); | ||
spawnSync('hdiutil', ['detach', mountPath, '-quiet']); | ||
} | ||
} | ||
//# sourceMappingURL=fileUtil.js.map |
{ | ||
"name": "@puppeteer/browsers", | ||
"version": "2.2.3", | ||
"version": "2.2.4", | ||
"description": "Download and launch browsers", | ||
@@ -98,10 +98,10 @@ "scripts": { | ||
"dependencies": { | ||
"debug": "4.3.4", | ||
"extract-zip": "2.0.1", | ||
"progress": "2.0.3", | ||
"proxy-agent": "6.4.0", | ||
"tar-fs": "3.0.5", | ||
"unbzip2-stream": "1.4.3", | ||
"yargs": "17.7.2", | ||
"semver": "7.6.0" | ||
"debug": "^4.3.5", | ||
"extract-zip": "^2.0.1", | ||
"progress": "^2.0.3", | ||
"proxy-agent": "^6.4.0", | ||
"tar-fs": "^3.0.6", | ||
"unbzip2-stream": "^1.4.3", | ||
"yargs": "^17.7.2", | ||
"semver": "^7.6.2" | ||
}, | ||
@@ -108,0 +108,0 @@ "devDependencies": { |
@@ -7,7 +7,6 @@ /** | ||
import {exec as execChildProcess, spawnSync} from 'child_process'; | ||
import {spawnSync} from 'child_process'; | ||
import {createReadStream} from 'fs'; | ||
import {mkdir, readdir} from 'fs/promises'; | ||
import * as path from 'path'; | ||
import {promisify} from 'util'; | ||
@@ -18,4 +17,2 @@ import extractZip from 'extract-zip'; | ||
const exec = promisify(execChildProcess); | ||
/** | ||
@@ -69,7 +66,10 @@ * @internal | ||
async function installDMG(dmgPath: string, folderPath: string): Promise<void> { | ||
const {stdout} = await exec( | ||
`hdiutil attach -nobrowse -noautoopen "${dmgPath}"` | ||
); | ||
const {stdout} = spawnSync(`hdiutil`, [ | ||
'attach', | ||
'-nobrowse', | ||
'-noautoopen', | ||
dmgPath, | ||
]); | ||
const volumes = stdout.match(/\/Volumes\/(.*)/m); | ||
const volumes = stdout.toString('utf8').match(/\/Volumes\/(.*)/m); | ||
if (!volumes) { | ||
@@ -90,6 +90,6 @@ throw new Error(`Could not find volume path in ${stdout}`); | ||
await exec(`cp -R "${mountedPath}" "${folderPath}"`); | ||
spawnSync('cp', ['-R', mountedPath, folderPath]); | ||
} finally { | ||
await exec(`hdiutil detach "${mountPath}" -quiet`); | ||
spawnSync('hdiutil', ['detach', mountPath, '-quiet']); | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
8667
476179
+ Addeddebug@4.3.7(transitive)
+ Addedms@2.1.3(transitive)
+ Addedsemver@7.6.3(transitive)
+ Addedtar-fs@3.0.6(transitive)
- Removeddebug@4.3.4(transitive)
- Removedlru-cache@6.0.0(transitive)
- Removedms@2.1.2(transitive)
- Removedsemver@7.6.0(transitive)
- Removedtar-fs@3.0.5(transitive)
- Removedyallist@4.0.0(transitive)
Updateddebug@^4.3.5
Updatedextract-zip@^2.0.1
Updatedprogress@^2.0.3
Updatedproxy-agent@^6.4.0
Updatedsemver@^7.6.2
Updatedtar-fs@^3.0.6
Updatedunbzip2-stream@^1.4.3
Updatedyargs@^17.7.2