-
Notifications
You must be signed in to change notification settings - Fork 0
Patch ini parsing #18
Comments
I am actually not comfortable with this. Nor patching packages nor using packages that need to be patched. How is it possible that a package like |
This is the discussion of the problem : npm/ini#60 I do not have experience with other npm package for ini parsing (if there is any). |
Added at #39. I tried multiple libraries and |
I confirm that js-ini doesn't go boom with a dot. [achievement.goes.boom01]
timestamp = 0 "use strict"
const oldini = require("ini");
const ini = require("js-ini");
const fs = require('fs');
const raw = fs.readFileSync('test.ini', 'utf8');
console.log(ini.parse(raw));
console.log(oldini.parse(raw)); {
'achievement.goes.boom01': { timestamp: 0 }
}
{
achievement: { goes: { boom01: [Object] } }
} |
I actually added these tests: Pull This issue is now automatically tested with the first test. If the achievement name is not in the schema, it throws a very specific error notifying the conflicting platform, source, appid and achievement name. |
Reminder to use the module
ini
with this patch to avoid a problematic case where if a achievement's apiname contains a.
it would interfere in the ini to js object conversion of said module as a.
is used to separate object properties.Recommended to use the module
patch-package
as dev dep. to automatize patching when using npm icf: achievement-watcher/achievement-watcher@1f26aa2a0e42632f6e946cedc780dfbe77c359c8
The text was updated successfully, but these errors were encountered: