Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
exports.read = file => new Promise((resolve, reject) => {
simplePlist.readFile(file, (err, data) => {
if (err) return reject(err);
resolve(data);
});
});
return new Promise((resolve, reject) => {
readPlist(path, (error: any, data: MacosAppInfo) => {
if (error) {
reject(error)
} else {
resolve(data)
}
})
})
}
return new Promise((resolve, reject) => {
plist.readFile(join(applicationFilePath, "Contents", "Info.plist"), (err: string, data: any) => {
if (err) {
reject(err);
} else {
resolve(data);
}
});
});
}