@bugsplat/symbol-upload
Version:
Cross platform symbol upload tool
26 lines • 779 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.tryGetPdbGuid = tryGetPdbGuid;
exports.tryGetPeGuid = tryGetPeGuid;
const pdb_guid_1 = require("pdb-guid");
async function tryGetPdbGuid(pdbFilePath) {
try {
const pdbFile = await pdb_guid_1.PdbFile.createFromFile(pdbFilePath);
return `${pdbFile.guid}`;
}
catch (error) {
console.log(`Could not get UUID for ${pdbFilePath}...`);
}
return '';
}
async function tryGetPeGuid(peFilePath) {
try {
const pdbFile = await pdb_guid_1.PeFile.createFromFile(peFilePath);
return `${pdbFile.guid}`;
}
catch (error) {
console.log(`Could not get UUID for ${peFilePath}...`);
}
return '';
}
//# sourceMappingURL=pdb.js.map