mirror of
https://github.com/thelounge/thelounge
synced 2024-11-26 22:10:22 +00:00
Merge pull request #3653 from thelounge/xpaw/utf8-mistake
Fix passing utf-8 to readFileSync
This commit is contained in:
commit
27e08baf25
2 changed files with 2 additions and 2 deletions
|
@ -16,7 +16,7 @@ program
|
|||
|
||||
// Get paths to the location of packages directory
|
||||
const packagesConfig = path.join(Helper.getPackagesPath(), "package.json");
|
||||
const packagesList = JSON.parse(fs.readFileSync(packagesConfig), "utf-8").dependencies;
|
||||
const packagesList = JSON.parse(fs.readFileSync(packagesConfig, "utf-8")).dependencies;
|
||||
const argsList = ["upgrade", "--latest"];
|
||||
|
||||
let count = 0;
|
||||
|
|
|
@ -172,7 +172,7 @@ async function outdated(cacheTimeout = TIME_TO_LIVE) {
|
|||
// Get paths to the location of packages directory
|
||||
const packagesPath = Helper.getPackagesPath();
|
||||
const packagesConfig = path.join(packagesPath, "package.json");
|
||||
const packagesList = JSON.parse(fs.readFileSync(packagesConfig), "utf-8").dependencies;
|
||||
const packagesList = JSON.parse(fs.readFileSync(packagesConfig, "utf-8")).dependencies;
|
||||
const argsList = [
|
||||
"outdated",
|
||||
"--latest",
|
||||
|
|
Loading…
Reference in a new issue